@reqvire-org/reqvire 0.15.2 → 1.0.0
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.
- package/artifacts/reqvire-darwin-arm64.tar.gz +0 -0
- package/artifacts/reqvire-darwin-x86_64.tar.gz +0 -0
- package/artifacts/reqvire-linux-x86_64.tar.gz +0 -0
- package/explorer-dist/assets/android-chrome-192x192.png +0 -0
- package/explorer-dist/assets/apple-touch-icon.png +0 -0
- package/explorer-dist/assets/browserconfig.xml +9 -0
- package/explorer-dist/assets/explorer-abap.js +1 -0
- package/explorer-dist/assets/explorer-actionscript-3.js +1 -0
- package/explorer-dist/assets/explorer-ada.js +1 -0
- package/explorer-dist/assets/explorer-andromeeda.js +1 -0
- package/explorer-dist/assets/explorer-angular-html.js +1 -0
- package/explorer-dist/assets/explorer-angular-ts.js +1 -0
- package/explorer-dist/assets/explorer-apache.js +1 -0
- package/explorer-dist/assets/explorer-apex.js +1 -0
- package/explorer-dist/assets/explorer-apl.js +1 -0
- package/explorer-dist/assets/explorer-applescript.js +1 -0
- package/explorer-dist/assets/explorer-ara.js +1 -0
- package/explorer-dist/assets/explorer-architectureDiagram-3BPJPVTR.js +36 -0
- package/explorer-dist/assets/explorer-asciidoc.js +1 -0
- package/explorer-dist/assets/explorer-asm.js +1 -0
- package/explorer-dist/assets/explorer-astro.js +1 -0
- package/explorer-dist/assets/explorer-aurora-x.js +1 -0
- package/explorer-dist/assets/explorer-awk.js +1 -0
- package/explorer-dist/assets/explorer-ayu-dark.js +1 -0
- package/explorer-dist/assets/explorer-ayu-light.js +1 -0
- package/explorer-dist/assets/explorer-ayu-mirage.js +1 -0
- package/explorer-dist/assets/explorer-ballerina.js +1 -0
- package/explorer-dist/assets/explorer-bat.js +1 -0
- package/explorer-dist/assets/explorer-beancount.js +1 -0
- package/explorer-dist/assets/explorer-berry.js +1 -0
- package/explorer-dist/assets/explorer-bibtex.js +1 -0
- package/explorer-dist/assets/explorer-bicep.js +1 -0
- package/explorer-dist/assets/explorer-bird2.js +1 -0
- package/explorer-dist/assets/explorer-blade.js +1 -0
- package/explorer-dist/assets/explorer-blockDiagram-GPEHLZMM.js +132 -0
- package/explorer-dist/assets/explorer-bsl.js +1 -0
- package/explorer-dist/assets/explorer-c.js +1 -0
- package/explorer-dist/assets/explorer-c3.js +1 -0
- package/explorer-dist/assets/explorer-c4Diagram-AAUBKEIU.js +10 -0
- package/explorer-dist/assets/explorer-cadence.js +1 -0
- package/explorer-dist/assets/explorer-cairo.js +1 -0
- package/explorer-dist/assets/explorer-catppuccin-frappe.js +1 -0
- package/explorer-dist/assets/explorer-catppuccin-latte.js +1 -0
- package/explorer-dist/assets/explorer-catppuccin-macchiato.js +1 -0
- package/explorer-dist/assets/explorer-catppuccin-mocha.js +1 -0
- package/explorer-dist/assets/explorer-channel.js +1 -0
- package/explorer-dist/assets/explorer-chunk-2J33WTMH.js +1 -0
- package/explorer-dist/assets/explorer-chunk-4BX2VUAB.js +1 -0
- package/explorer-dist/assets/explorer-chunk-55IACEB6.js +1 -0
- package/explorer-dist/assets/explorer-chunk-727SXJPM.js +206 -0
- package/explorer-dist/assets/explorer-chunk-AQP2D5EJ.js +231 -0
- package/explorer-dist/assets/explorer-chunk-FMBD7UC4.js +15 -0
- package/explorer-dist/assets/explorer-chunk-ND2GUHAM.js +1 -0
- package/explorer-dist/assets/explorer-chunk-QZHKN3VN.js +1 -0
- package/explorer-dist/assets/explorer-clarity.js +1 -0
- package/explorer-dist/assets/explorer-classDiagram-4FO5ZUOK.js +1 -0
- package/explorer-dist/assets/explorer-classDiagram-v2-Q7XG4LA2.js +1 -0
- package/explorer-dist/assets/explorer-clojure.js +1 -0
- package/explorer-dist/assets/explorer-cmake.js +1 -0
- package/explorer-dist/assets/explorer-cobol.js +1 -0
- package/explorer-dist/assets/explorer-codeowners.js +1 -0
- package/explorer-dist/assets/explorer-codeql.js +1 -0
- package/explorer-dist/assets/explorer-coffee.js +1 -0
- package/explorer-dist/assets/explorer-common-lisp.js +1 -0
- package/explorer-dist/assets/explorer-coq.js +1 -0
- package/explorer-dist/assets/explorer-cose-bilkent-S5V4N54A.js +1 -0
- package/explorer-dist/assets/explorer-cpp.js +1 -0
- package/explorer-dist/assets/explorer-crystal.js +1 -0
- package/explorer-dist/assets/explorer-csharp.js +1 -0
- package/explorer-dist/assets/explorer-css.js +1 -0
- package/explorer-dist/assets/explorer-csv.js +1 -0
- package/explorer-dist/assets/explorer-cue.js +1 -0
- package/explorer-dist/assets/explorer-cypher.js +1 -0
- package/explorer-dist/assets/explorer-cytoscape.esm.js +331 -0
- package/explorer-dist/assets/explorer-d.js +1 -0
- package/explorer-dist/assets/explorer-dagre-BM42HDAG.js +4 -0
- package/explorer-dist/assets/explorer-dark-plus.js +1 -0
- package/explorer-dist/assets/explorer-dart.js +1 -0
- package/explorer-dist/assets/explorer-dax.js +1 -0
- package/explorer-dist/assets/explorer-desktop.js +1 -0
- package/explorer-dist/assets/explorer-diagram-2AECGRRQ.js +43 -0
- package/explorer-dist/assets/explorer-diagram-5GNKFQAL.js +10 -0
- package/explorer-dist/assets/explorer-diagram-KO2AKTUF.js +3 -0
- package/explorer-dist/assets/explorer-diagram-LMA3HP47.js +24 -0
- package/explorer-dist/assets/explorer-diagram-OG6HWLK6.js +24 -0
- package/explorer-dist/assets/explorer-diff.js +1 -0
- package/explorer-dist/assets/explorer-docker.js +1 -0
- package/explorer-dist/assets/explorer-dotenv.js +1 -0
- package/explorer-dist/assets/explorer-dracula-soft.js +1 -0
- package/explorer-dist/assets/explorer-dracula.js +1 -0
- package/explorer-dist/assets/explorer-dream-maker.js +1 -0
- package/explorer-dist/assets/explorer-edge.js +1 -0
- package/explorer-dist/assets/explorer-elixir.js +1 -0
- package/explorer-dist/assets/explorer-elm.js +1 -0
- package/explorer-dist/assets/explorer-emacs-lisp.js +1 -0
- package/explorer-dist/assets/explorer-erDiagram-TEJ5UH35.js +85 -0
- package/explorer-dist/assets/explorer-erb.js +1 -0
- package/explorer-dist/assets/explorer-erlang.js +1 -0
- package/explorer-dist/assets/explorer-everforest-dark.js +1 -0
- package/explorer-dist/assets/explorer-everforest-light.js +1 -0
- package/explorer-dist/assets/explorer-fennel.js +1 -0
- package/explorer-dist/assets/explorer-fish.js +1 -0
- package/explorer-dist/assets/explorer-flowDiagram-I6XJVG4X.js +162 -0
- package/explorer-dist/assets/explorer-fluent.js +1 -0
- package/explorer-dist/assets/explorer-fortran-fixed-form.js +1 -0
- package/explorer-dist/assets/explorer-fortran-free-form.js +1 -0
- package/explorer-dist/assets/explorer-fsharp.js +1 -0
- package/explorer-dist/assets/explorer-ganttDiagram-6RSMTGT7.js +292 -0
- package/explorer-dist/assets/explorer-gdresource.js +1 -0
- package/explorer-dist/assets/explorer-gdscript.js +1 -0
- package/explorer-dist/assets/explorer-gdshader.js +1 -0
- package/explorer-dist/assets/explorer-genie.js +1 -0
- package/explorer-dist/assets/explorer-gherkin.js +1 -0
- package/explorer-dist/assets/explorer-git-commit.js +1 -0
- package/explorer-dist/assets/explorer-git-rebase.js +1 -0
- package/explorer-dist/assets/explorer-gitGraphDiagram-PVQCEYII.js +106 -0
- package/explorer-dist/assets/explorer-github-dark-default.js +1 -0
- package/explorer-dist/assets/explorer-github-dark-dimmed.js +1 -0
- package/explorer-dist/assets/explorer-github-dark-high-contrast.js +1 -0
- package/explorer-dist/assets/explorer-github-dark.js +1 -0
- package/explorer-dist/assets/explorer-github-light-default.js +1 -0
- package/explorer-dist/assets/explorer-github-light-high-contrast.js +1 -0
- package/explorer-dist/assets/explorer-github-light.js +1 -0
- package/explorer-dist/assets/explorer-gleam.js +1 -0
- package/explorer-dist/assets/explorer-glimmer-js.js +1 -0
- package/explorer-dist/assets/explorer-glimmer-ts.js +1 -0
- package/explorer-dist/assets/explorer-glsl.js +1 -0
- package/explorer-dist/assets/explorer-gn.js +1 -0
- package/explorer-dist/assets/explorer-gnuplot.js +1 -0
- package/explorer-dist/assets/explorer-go.js +1 -0
- package/explorer-dist/assets/explorer-graph.js +1 -0
- package/explorer-dist/assets/explorer-graphql.js +1 -0
- package/explorer-dist/assets/explorer-groovy.js +1 -0
- package/explorer-dist/assets/explorer-gruvbox-dark-hard.js +1 -0
- package/explorer-dist/assets/explorer-gruvbox-dark-medium.js +1 -0
- package/explorer-dist/assets/explorer-gruvbox-dark-soft.js +1 -0
- package/explorer-dist/assets/explorer-gruvbox-light-hard.js +1 -0
- package/explorer-dist/assets/explorer-gruvbox-light-medium.js +1 -0
- package/explorer-dist/assets/explorer-gruvbox-light-soft.js +1 -0
- package/explorer-dist/assets/explorer-hack.js +1 -0
- package/explorer-dist/assets/explorer-haml.js +1 -0
- package/explorer-dist/assets/explorer-handlebars.js +1 -0
- package/explorer-dist/assets/explorer-haskell.js +1 -0
- package/explorer-dist/assets/explorer-haxe.js +1 -0
- package/explorer-dist/assets/explorer-hcl.js +1 -0
- package/explorer-dist/assets/explorer-hjson.js +1 -0
- package/explorer-dist/assets/explorer-hlsl.js +1 -0
- package/explorer-dist/assets/explorer-horizon-bright.js +1 -0
- package/explorer-dist/assets/explorer-horizon.js +1 -0
- package/explorer-dist/assets/explorer-houston.js +1 -0
- package/explorer-dist/assets/explorer-html-derivative.js +1 -0
- package/explorer-dist/assets/explorer-html.js +1 -0
- package/explorer-dist/assets/explorer-http.js +1 -0
- package/explorer-dist/assets/explorer-hurl.js +1 -0
- package/explorer-dist/assets/explorer-hxml.js +1 -0
- package/explorer-dist/assets/explorer-hy.js +1 -0
- package/explorer-dist/assets/explorer-imba.js +1 -0
- package/explorer-dist/assets/explorer-infoDiagram-5YYISTIA.js +2 -0
- package/explorer-dist/assets/explorer-ini.js +1 -0
- package/explorer-dist/assets/explorer-ishikawaDiagram-YF4QCWOH.js +70 -0
- package/explorer-dist/assets/explorer-java.js +1 -0
- package/explorer-dist/assets/explorer-javascript.js +1 -0
- package/explorer-dist/assets/explorer-jinja.js +1 -0
- package/explorer-dist/assets/explorer-jison.js +1 -0
- package/explorer-dist/assets/explorer-journeyDiagram-JHISSGLW.js +139 -0
- package/explorer-dist/assets/explorer-json.js +1 -0
- package/explorer-dist/assets/explorer-json5.js +1 -0
- package/explorer-dist/assets/explorer-jsonc.js +1 -0
- package/explorer-dist/assets/explorer-jsonl.js +1 -0
- package/explorer-dist/assets/explorer-jsonnet.js +1 -0
- package/explorer-dist/assets/explorer-jssm.js +1 -0
- package/explorer-dist/assets/explorer-jsx.js +1 -0
- package/explorer-dist/assets/explorer-julia.js +1 -0
- package/explorer-dist/assets/explorer-just.js +1 -0
- package/explorer-dist/assets/explorer-kanagawa-dragon.js +1 -0
- package/explorer-dist/assets/explorer-kanagawa-lotus.js +1 -0
- package/explorer-dist/assets/explorer-kanagawa-wave.js +1 -0
- package/explorer-dist/assets/explorer-kanban-definition-UN3LZRKU.js +89 -0
- package/explorer-dist/assets/explorer-katex.js +257 -0
- package/explorer-dist/assets/explorer-kdl.js +1 -0
- package/explorer-dist/assets/explorer-kotlin.js +1 -0
- package/explorer-dist/assets/explorer-kusto.js +1 -0
- package/explorer-dist/assets/explorer-laserwave.js +1 -0
- package/explorer-dist/assets/explorer-latex.js +1 -0
- package/explorer-dist/assets/explorer-layout.js +1 -0
- package/explorer-dist/assets/explorer-lean.js +1 -0
- package/explorer-dist/assets/explorer-less.js +1 -0
- package/explorer-dist/assets/explorer-light-plus.js +1 -0
- package/explorer-dist/assets/explorer-liquid.js +1 -0
- package/explorer-dist/assets/explorer-llvm.js +1 -0
- package/explorer-dist/assets/explorer-log.js +1 -0
- package/explorer-dist/assets/explorer-logo.js +1 -0
- package/explorer-dist/assets/explorer-lua.js +1 -0
- package/explorer-dist/assets/explorer-luau.js +1 -0
- package/explorer-dist/assets/explorer-make.js +1 -0
- package/explorer-dist/assets/explorer-markdown.js +1 -0
- package/explorer-dist/assets/explorer-marko.js +1 -0
- package/explorer-dist/assets/explorer-material-theme-darker.js +1 -0
- package/explorer-dist/assets/explorer-material-theme-lighter.js +1 -0
- package/explorer-dist/assets/explorer-material-theme-ocean.js +1 -0
- package/explorer-dist/assets/explorer-material-theme-palenight.js +1 -0
- package/explorer-dist/assets/explorer-material-theme.js +1 -0
- package/explorer-dist/assets/explorer-matlab.js +1 -0
- package/explorer-dist/assets/explorer-mdc.js +1 -0
- package/explorer-dist/assets/explorer-mdx.js +1 -0
- package/explorer-dist/assets/explorer-mermaid.core.js +309 -0
- package/explorer-dist/assets/explorer-mermaid.js +1 -0
- package/explorer-dist/assets/explorer-min-dark.js +1 -0
- package/explorer-dist/assets/explorer-min-light.js +1 -0
- package/explorer-dist/assets/explorer-mindmap-definition-RKZ34NQL.js +96 -0
- package/explorer-dist/assets/explorer-mipsasm.js +1 -0
- package/explorer-dist/assets/explorer-mojo.js +1 -0
- package/explorer-dist/assets/explorer-monokai.js +1 -0
- package/explorer-dist/assets/explorer-moonbit.js +1 -0
- package/explorer-dist/assets/explorer-move.js +1 -0
- package/explorer-dist/assets/explorer-narrat.js +1 -0
- package/explorer-dist/assets/explorer-nextflow-groovy.js +1 -0
- package/explorer-dist/assets/explorer-nextflow.js +1 -0
- package/explorer-dist/assets/explorer-nginx.js +1 -0
- package/explorer-dist/assets/explorer-night-owl-light.js +1 -0
- package/explorer-dist/assets/explorer-night-owl.js +1 -0
- package/explorer-dist/assets/explorer-nim.js +1 -0
- package/explorer-dist/assets/explorer-nix.js +1 -0
- package/explorer-dist/assets/explorer-nord.js +1 -0
- package/explorer-dist/assets/explorer-nushell.js +1 -0
- package/explorer-dist/assets/explorer-objective-c.js +1 -0
- package/explorer-dist/assets/explorer-objective-cpp.js +1 -0
- package/explorer-dist/assets/explorer-ocaml.js +1 -0
- package/explorer-dist/assets/explorer-odin.js +1 -0
- package/explorer-dist/assets/explorer-one-dark-pro.js +1 -0
- package/explorer-dist/assets/explorer-one-light.js +1 -0
- package/explorer-dist/assets/explorer-openscad.js +1 -0
- package/explorer-dist/assets/explorer-pascal.js +1 -0
- package/explorer-dist/assets/explorer-perl.js +1 -0
- package/explorer-dist/assets/explorer-php.js +1 -0
- package/explorer-dist/assets/explorer-pieDiagram-4H26LBE5.js +30 -0
- package/explorer-dist/assets/explorer-pkl.js +1 -0
- package/explorer-dist/assets/explorer-plastic.js +1 -0
- package/explorer-dist/assets/explorer-plsql.js +1 -0
- package/explorer-dist/assets/explorer-po.js +1 -0
- package/explorer-dist/assets/explorer-poimandres.js +1 -0
- package/explorer-dist/assets/explorer-polar.js +1 -0
- package/explorer-dist/assets/explorer-postcss.js +1 -0
- package/explorer-dist/assets/explorer-powerquery.js +1 -0
- package/explorer-dist/assets/explorer-powershell.js +1 -0
- package/explorer-dist/assets/explorer-prisma.js +1 -0
- package/explorer-dist/assets/explorer-prolog.js +1 -0
- package/explorer-dist/assets/explorer-proto.js +1 -0
- package/explorer-dist/assets/explorer-pug.js +1 -0
- package/explorer-dist/assets/explorer-puppet.js +1 -0
- package/explorer-dist/assets/explorer-purescript.js +1 -0
- package/explorer-dist/assets/explorer-python.js +1 -0
- package/explorer-dist/assets/explorer-qml.js +1 -0
- package/explorer-dist/assets/explorer-qmldir.js +1 -0
- package/explorer-dist/assets/explorer-qss.js +1 -0
- package/explorer-dist/assets/explorer-quadrantDiagram-W4KKPZXB.js +7 -0
- package/explorer-dist/assets/explorer-r.js +1 -0
- package/explorer-dist/assets/explorer-racket.js +1 -0
- package/explorer-dist/assets/explorer-raku.js +1 -0
- package/explorer-dist/assets/explorer-razor.js +1 -0
- package/explorer-dist/assets/explorer-red.js +1 -0
- package/explorer-dist/assets/explorer-reg.js +1 -0
- package/explorer-dist/assets/explorer-regexp.js +1 -0
- package/explorer-dist/assets/explorer-rel.js +1 -0
- package/explorer-dist/assets/explorer-requirementDiagram-4Y6WPE33.js +84 -0
- package/explorer-dist/assets/explorer-riscv.js +1 -0
- package/explorer-dist/assets/explorer-ron.js +1 -0
- package/explorer-dist/assets/explorer-rose-pine-dawn.js +1 -0
- package/explorer-dist/assets/explorer-rose-pine-moon.js +1 -0
- package/explorer-dist/assets/explorer-rose-pine.js +1 -0
- package/explorer-dist/assets/explorer-rosmsg.js +1 -0
- package/explorer-dist/assets/explorer-rst.js +1 -0
- package/explorer-dist/assets/explorer-ruby.js +1 -0
- package/explorer-dist/assets/explorer-rust.js +1 -0
- package/explorer-dist/assets/explorer-sankeyDiagram-5OEKKPKP.js +40 -0
- package/explorer-dist/assets/explorer-sas.js +1 -0
- package/explorer-dist/assets/explorer-sass.js +1 -0
- package/explorer-dist/assets/explorer-scala.js +1 -0
- package/explorer-dist/assets/explorer-scheme.js +1 -0
- package/explorer-dist/assets/explorer-scss.js +1 -0
- package/explorer-dist/assets/explorer-sdbl.js +1 -0
- package/explorer-dist/assets/explorer-sequenceDiagram-3UESZ5HK.js +162 -0
- package/explorer-dist/assets/explorer-shaderlab.js +1 -0
- package/explorer-dist/assets/explorer-shellscript.js +1 -0
- package/explorer-dist/assets/explorer-shellsession.js +1 -0
- package/explorer-dist/assets/explorer-slack-dark.js +1 -0
- package/explorer-dist/assets/explorer-slack-ochin.js +1 -0
- package/explorer-dist/assets/explorer-smalltalk.js +1 -0
- package/explorer-dist/assets/explorer-snazzy-light.js +1 -0
- package/explorer-dist/assets/explorer-solarized-dark.js +1 -0
- package/explorer-dist/assets/explorer-solarized-light.js +1 -0
- package/explorer-dist/assets/explorer-solidity.js +1 -0
- package/explorer-dist/assets/explorer-soy.js +1 -0
- package/explorer-dist/assets/explorer-sparql.js +1 -0
- package/explorer-dist/assets/explorer-splunk.js +1 -0
- package/explorer-dist/assets/explorer-sql.js +1 -0
- package/explorer-dist/assets/explorer-ssh-config.js +1 -0
- package/explorer-dist/assets/explorer-stata.js +1 -0
- package/explorer-dist/assets/explorer-stateDiagram-AJRCARHV.js +1 -0
- package/explorer-dist/assets/explorer-stateDiagram-v2-BHNVJYJU.js +1 -0
- package/explorer-dist/assets/explorer-stylus.js +1 -0
- package/explorer-dist/assets/explorer-surrealql.js +1 -0
- package/explorer-dist/assets/explorer-svelte.js +1 -0
- package/explorer-dist/assets/explorer-swift.js +1 -0
- package/explorer-dist/assets/explorer-synthwave-84.js +1 -0
- package/explorer-dist/assets/explorer-system-verilog.js +1 -0
- package/explorer-dist/assets/explorer-systemd.js +1 -0
- package/explorer-dist/assets/explorer-talonscript.js +1 -0
- package/explorer-dist/assets/explorer-tasl.js +1 -0
- package/explorer-dist/assets/explorer-tcl.js +1 -0
- package/explorer-dist/assets/explorer-templ.js +1 -0
- package/explorer-dist/assets/explorer-terraform.js +1 -0
- package/explorer-dist/assets/explorer-tex.js +1 -0
- package/explorer-dist/assets/explorer-timeline-definition-PNZ67QCA.js +120 -0
- package/explorer-dist/assets/explorer-tokyo-night.js +1 -0
- package/explorer-dist/assets/explorer-toml.js +1 -0
- package/explorer-dist/assets/explorer-ts-tags.js +1 -0
- package/explorer-dist/assets/explorer-tsv.js +1 -0
- package/explorer-dist/assets/explorer-tsx.js +1 -0
- package/explorer-dist/assets/explorer-turtle.js +1 -0
- package/explorer-dist/assets/explorer-twig.js +1 -0
- package/explorer-dist/assets/explorer-typescript.js +1 -0
- package/explorer-dist/assets/explorer-typespec.js +1 -0
- package/explorer-dist/assets/explorer-typst.js +1 -0
- package/explorer-dist/assets/explorer-v.js +1 -0
- package/explorer-dist/assets/explorer-vala.js +1 -0
- package/explorer-dist/assets/explorer-vb.js +1 -0
- package/explorer-dist/assets/explorer-vennDiagram-CIIHVFJN.js +34 -0
- package/explorer-dist/assets/explorer-verilog.js +1 -0
- package/explorer-dist/assets/explorer-vesper.js +1 -0
- package/explorer-dist/assets/explorer-vhdl.js +1 -0
- package/explorer-dist/assets/explorer-viml.js +1 -0
- package/explorer-dist/assets/explorer-vitesse-black.js +1 -0
- package/explorer-dist/assets/explorer-vitesse-dark.js +1 -0
- package/explorer-dist/assets/explorer-vitesse-light.js +1 -0
- package/explorer-dist/assets/explorer-vue-html.js +1 -0
- package/explorer-dist/assets/explorer-vue-vine.js +1 -0
- package/explorer-dist/assets/explorer-vue.js +1 -0
- package/explorer-dist/assets/explorer-vyper.js +1 -0
- package/explorer-dist/assets/explorer-wardley-L42UT6IY.js +173 -0
- package/explorer-dist/assets/explorer-wardleyDiagram-YWT4CUSO.js +78 -0
- package/explorer-dist/assets/explorer-wasm.js +1 -0
- package/explorer-dist/assets/explorer-wasm2.js +1 -0
- package/explorer-dist/assets/explorer-wenyan.js +1 -0
- package/explorer-dist/assets/explorer-wgsl.js +1 -0
- package/explorer-dist/assets/explorer-wikitext.js +1 -0
- package/explorer-dist/assets/explorer-wit.js +1 -0
- package/explorer-dist/assets/explorer-wolfram.js +1 -0
- package/explorer-dist/assets/explorer-xml.js +1 -0
- package/explorer-dist/assets/explorer-xsl.js +1 -0
- package/explorer-dist/assets/explorer-xychartDiagram-2RQKCTM6.js +7 -0
- package/explorer-dist/assets/explorer-yaml.js +1 -0
- package/explorer-dist/assets/explorer-zenscript.js +1 -0
- package/explorer-dist/assets/explorer-zig.js +1 -0
- package/explorer-dist/assets/explorer.css +1 -0
- package/explorer-dist/assets/explorer.js +1158 -0
- package/explorer-dist/assets/favicon-16x16.png +0 -0
- package/explorer-dist/assets/favicon-32x32.png +0 -0
- package/explorer-dist/assets/favicon.ico +0 -0
- package/explorer-dist/assets/fonts/Geist-Variable.woff2 +0 -0
- package/explorer-dist/assets/fonts/GeistMono-Variable.woff2 +0 -0
- package/explorer-dist/assets/icon-192.png +0 -0
- package/explorer-dist/assets/icon-512.png +0 -0
- package/explorer-dist/assets/logo-mark.svg +28 -0
- package/explorer-dist/assets/logo.png +0 -0
- package/explorer-dist/assets/mstile-150x150.png +0 -0
- package/explorer-dist/assets/searchIndex.worker-BWOUMmPT.js +1 -0
- package/explorer-dist/assets/site.webmanifest +22 -0
- package/explorer-dist/fonts/Geist-Variable.woff2 +0 -0
- package/explorer-dist/fonts/GeistMono-Variable.woff2 +0 -0
- package/explorer-dist/index.html +47 -0
- package/package.json +7 -2
|
@@ -0,0 +1,1158 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./explorer-angular-html.js","./explorer-html.js","./explorer-javascript.js","./explorer-css.js","./explorer-angular-ts.js","./explorer-scss.js","./explorer-apl.js","./explorer-xml.js","./explorer-java.js","./explorer-json.js","./explorer-astro.js","./explorer-typescript.js","./explorer-postcss.js","./explorer-tsx.js","./explorer-blade.js","./explorer-html-derivative.js","./explorer-sql.js","./explorer-bsl.js","./explorer-sdbl.js","./explorer-cairo.js","./explorer-python.js","./explorer-cobol.js","./explorer-coffee.js","./explorer-cpp.js","./explorer-regexp.js","./explorer-glsl.js","./explorer-c.js","./explorer-crystal.js","./explorer-shellscript.js","./explorer-edge.js","./explorer-elixir.js","./explorer-elm.js","./explorer-erb.js","./explorer-ruby.js","./explorer-haml.js","./explorer-graphql.js","./explorer-jsx.js","./explorer-lua.js","./explorer-yaml.js","./explorer-erlang.js","./explorer-markdown.js","./explorer-fortran-fixed-form.js","./explorer-fortran-free-form.js","./explorer-fsharp.js","./explorer-gdresource.js","./explorer-gdshader.js","./explorer-gdscript.js","./explorer-git-commit.js","./explorer-diff.js","./explorer-git-rebase.js","./explorer-glimmer-js.js","./explorer-glimmer-ts.js","./explorer-hack.js","./explorer-handlebars.js","./explorer-http.js","./explorer-hurl.js","./explorer-csv.js","./explorer-hxml.js","./explorer-haxe.js","./explorer-jinja.js","./explorer-jison.js","./explorer-julia.js","./explorer-r.js","./explorer-just.js","./explorer-perl.js","./explorer-latex.js","./explorer-tex.js","./explorer-liquid.js","./explorer-marko.js","./explorer-less.js","./explorer-mdc.js","./explorer-nextflow.js","./explorer-nextflow-groovy.js","./explorer-nginx.js","./explorer-nim.js","./explorer-php.js","./explorer-pug.js","./explorer-qml.js","./explorer-razor.js","./explorer-csharp.js","./explorer-rst.js","./explorer-cmake.js","./explorer-sas.js","./explorer-shaderlab.js","./explorer-hlsl.js","./explorer-shellsession.js","./explorer-soy.js","./explorer-sparql.js","./explorer-turtle.js","./explorer-stata.js","./explorer-surrealql.js","./explorer-svelte.js","./explorer-templ.js","./explorer-go.js","./explorer-ts-tags.js","./explorer-twig.js","./explorer-vue.js","./explorer-vue-html.js","./explorer-vue-vine.js","./explorer-stylus.js","./explorer-xsl.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Hq=Object.defineProperty;var Vq=Object.getPrototypeOf;var Xq=Reflect.get;var f4=e=>{throw TypeError(e)};var Yq=(e,t,n)=>t in e?Hq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var pe=(e,t,n)=>Yq(e,typeof t!="symbol"?t+"":t,n),uv=(e,t,n)=>t.has(e)||f4("Cannot "+n);var lr=(e,t,n)=>(uv(e,t,"read from private field"),n?n.call(e):t.get(e)),Ws=(e,t,n)=>t.has(e)?f4("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Mi=(e,t,n,r)=>(uv(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),cv=(e,t,n)=>(uv(e,t,"access private method"),n);var h4=(e,t,n)=>Xq(Vq(e),n,t);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function Ml(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fv={exports:{}},Vf={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var d4;function Wq(){if(d4)return Vf;d4=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,a){var o=null;if(a!==void 0&&(o=""+a),i.key!==void 0&&(o=""+i.key),"key"in i){a={};for(var l in i)l!=="key"&&(a[l]=i[l])}else a=i;return i=a.ref,{$$typeof:e,type:r,key:o,ref:i!==void 0?i:null,props:a}}return Vf.Fragment=t,Vf.jsx=n,Vf.jsxs=n,Vf}var m4;function Kq(){return m4||(m4=1,fv.exports=Wq()),fv.exports}var b=Kq(),hv={exports:{}},nt={};/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react.production.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var p4;function Zq(){if(p4)return nt;p4=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),p=Symbol.iterator;function g(U){return U===null||typeof U!="object"?null:(U=p&&U[p]||U["@@iterator"],typeof U=="function"?U:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,k={};function w(U,K,$){this.props=U,this.context=K,this.refs=k,this.updater=$||y}w.prototype.isReactComponent={},w.prototype.setState=function(U,K){if(typeof U!="object"&&typeof U!="function"&&U!=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,U,K,"setState")},w.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};function C(){}C.prototype=w.prototype;function S(U,K,$){this.props=U,this.context=K,this.refs=k,this.updater=$||y}var T=S.prototype=new C;T.constructor=S,x(T,w.prototype),T.isPureReactComponent=!0;var z=Array.isArray;function A(){}var L={H:null,A:null,T:null,S:null},G=Object.prototype.hasOwnProperty;function H(U,K,$){var ie=$.ref;return{$$typeof:e,type:U,key:K,ref:ie!==void 0?ie:null,props:$}}function q(U,K){return H(U.type,K,U.props)}function V(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function W(U){var K={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function($){return K[$]})}var I=/\/+/g;function B(U,K){return typeof U=="object"&&U!==null&&U.key!=null?W(""+U.key):K.toString(36)}function D(U){switch(U.status){case"fulfilled":return U.value;case"rejected":throw U.reason;default:switch(typeof U.status=="string"?U.then(A,A):(U.status="pending",U.then(function(K){U.status==="pending"&&(U.status="fulfilled",U.value=K)},function(K){U.status==="pending"&&(U.status="rejected",U.reason=K)})),U.status){case"fulfilled":return U.value;case"rejected":throw U.reason}}throw U}function j(U,K,$,ie,ue){var xe=typeof U;(xe==="undefined"||xe==="boolean")&&(U=null);var we=!1;if(U===null)we=!0;else switch(xe){case"bigint":case"string":case"number":we=!0;break;case"object":switch(U.$$typeof){case e:case t:we=!0;break;case d:return we=U._init,j(we(U._payload),K,$,ie,ue)}}if(we)return ue=ue(U),we=ie===""?"."+B(U,0):ie,z(ue)?($="",we!=null&&($=we.replace(I,"$&/")+"/"),j(ue,K,$,"",function(Ae){return Ae})):ue!=null&&(V(ue)&&(ue=q(ue,$+(ue.key==null||U&&U.key===ue.key?"":(""+ue.key).replace(I,"$&/")+"/")+we)),K.push(ue)),1;we=0;var Pe=ie===""?".":ie+":";if(z(U))for(var _e=0;_e<U.length;_e++)ie=U[_e],xe=Pe+B(ie,_e),we+=j(ie,K,$,xe,ue);else if(_e=g(U),typeof _e=="function")for(U=_e.call(U),_e=0;!(ie=U.next()).done;)ie=ie.value,xe=Pe+B(ie,_e++),we+=j(ie,K,$,xe,ue);else if(xe==="object"){if(typeof U.then=="function")return j(D(U),K,$,ie,ue);throw K=String(U),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return we}function N(U,K,$){if(U==null)return U;var ie=[],ue=0;return j(U,ie,"","",function(xe){return K.call($,xe,ue++)}),ie}function F(U){if(U._status===-1){var K=U._result;K=K(),K.then(function($){(U._status===0||U._status===-1)&&(U._status=1,U._result=$)},function($){(U._status===0||U._status===-1)&&(U._status=2,U._result=$)}),U._status===-1&&(U._status=0,U._result=K)}if(U._status===1)return U._result.default;throw U._result}var Z=typeof reportError=="function"?reportError:function(U){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U),error:U});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",U);return}console.error(U)},O={map:N,forEach:function(U,K,$){N(U,function(){K.apply(this,arguments)},$)},count:function(U){var K=0;return N(U,function(){K++}),K},toArray:function(U){return N(U,function(K){return K})||[]},only:function(U){if(!V(U))throw Error("React.Children.only expected to receive a single React element child.");return U}};return nt.Activity=m,nt.Children=O,nt.Component=w,nt.Fragment=n,nt.Profiler=i,nt.PureComponent=S,nt.StrictMode=r,nt.Suspense=c,nt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,nt.__COMPILER_RUNTIME={__proto__:null,c:function(U){return L.H.useMemoCache(U)}},nt.cache=function(U){return function(){return U.apply(null,arguments)}},nt.cacheSignal=function(){return null},nt.cloneElement=function(U,K,$){if(U==null)throw Error("The argument must be a React element, but you passed "+U+".");var ie=x({},U.props),ue=U.key;if(K!=null)for(xe in K.key!==void 0&&(ue=""+K.key),K)!G.call(K,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&K.ref===void 0||(ie[xe]=K[xe]);var xe=arguments.length-2;if(xe===1)ie.children=$;else if(1<xe){for(var we=Array(xe),Pe=0;Pe<xe;Pe++)we[Pe]=arguments[Pe+2];ie.children=we}return H(U.type,ue,ie)},nt.createContext=function(U){return U={$$typeof:o,_currentValue:U,_currentValue2:U,_threadCount:0,Provider:null,Consumer:null},U.Provider=U,U.Consumer={$$typeof:a,_context:U},U},nt.createElement=function(U,K,$){var ie,ue={},xe=null;if(K!=null)for(ie in K.key!==void 0&&(xe=""+K.key),K)G.call(K,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(ue[ie]=K[ie]);var we=arguments.length-2;if(we===1)ue.children=$;else if(1<we){for(var Pe=Array(we),_e=0;_e<we;_e++)Pe[_e]=arguments[_e+2];ue.children=Pe}if(U&&U.defaultProps)for(ie in we=U.defaultProps,we)ue[ie]===void 0&&(ue[ie]=we[ie]);return H(U,xe,ue)},nt.createRef=function(){return{current:null}},nt.forwardRef=function(U){return{$$typeof:l,render:U}},nt.isValidElement=V,nt.lazy=function(U){return{$$typeof:d,_payload:{_status:-1,_result:U},_init:F}},nt.memo=function(U,K){return{$$typeof:f,type:U,compare:K===void 0?null:K}},nt.startTransition=function(U){var K=L.T,$={};L.T=$;try{var ie=U(),ue=L.S;ue!==null&&ue($,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(A,Z)}catch(xe){Z(xe)}finally{K!==null&&$.types!==null&&(K.types=$.types),L.T=K}},nt.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},nt.use=function(U){return L.H.use(U)},nt.useActionState=function(U,K,$){return L.H.useActionState(U,K,$)},nt.useCallback=function(U,K){return L.H.useCallback(U,K)},nt.useContext=function(U){return L.H.useContext(U)},nt.useDebugValue=function(){},nt.useDeferredValue=function(U,K){return L.H.useDeferredValue(U,K)},nt.useEffect=function(U,K){return L.H.useEffect(U,K)},nt.useEffectEvent=function(U){return L.H.useEffectEvent(U)},nt.useId=function(){return L.H.useId()},nt.useImperativeHandle=function(U,K,$){return L.H.useImperativeHandle(U,K,$)},nt.useInsertionEffect=function(U,K){return L.H.useInsertionEffect(U,K)},nt.useLayoutEffect=function(U,K){return L.H.useLayoutEffect(U,K)},nt.useMemo=function(U,K){return L.H.useMemo(U,K)},nt.useOptimistic=function(U,K){return L.H.useOptimistic(U,K)},nt.useReducer=function(U,K,$){return L.H.useReducer(U,K,$)},nt.useRef=function(U){return L.H.useRef(U)},nt.useState=function(U){return L.H.useState(U)},nt.useSyncExternalStore=function(U,K,$){return L.H.useSyncExternalStore(U,K,$)},nt.useTransition=function(){return L.H.useTransition()},nt.version="19.2.7",nt}var _4;function s2(){return _4||(_4=1,hv.exports=Zq()),hv.exports}var se=s2(),dv={exports:{}},Xf={},mv={exports:{}},pv={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/var g4;function Qq(){return g4||(g4=1,(function(e){function t(j,N){var F=j.length;j.push(N);e:for(;0<F;){var Z=F-1>>>1,O=j[Z];if(0<i(O,N))j[Z]=N,j[F]=O,F=Z;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var N=j[0],F=j.pop();if(F!==N){j[0]=F;e:for(var Z=0,O=j.length,U=O>>>1;Z<U;){var K=2*(Z+1)-1,$=j[K],ie=K+1,ue=j[ie];if(0>i($,F))ie<O&&0>i(ue,$)?(j[Z]=ue,j[ie]=F,Z=ie):(j[Z]=$,j[K]=F,Z=K);else if(ie<O&&0>i(ue,F))j[Z]=ue,j[ie]=F,Z=ie;else break e}}return N}function i(j,N){var F=j.sortIndex-N.sortIndex;return F!==0?F:j.id-N.id}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,l=o.now();e.unstable_now=function(){return o.now()-l}}var c=[],f=[],d=1,m=null,p=3,g=!1,y=!1,x=!1,k=!1,w=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function T(j){for(var N=n(f);N!==null;){if(N.callback===null)r(f);else if(N.startTime<=j)r(f),N.sortIndex=N.expirationTime,t(c,N);else break;N=n(f)}}function z(j){if(x=!1,T(j),!y)if(n(c)!==null)y=!0,A||(A=!0,W());else{var N=n(f);N!==null&&D(z,N.startTime-j)}}var A=!1,L=-1,G=5,H=-1;function q(){return k?!0:!(e.unstable_now()-H<G)}function V(){if(k=!1,A){var j=e.unstable_now();H=j;var N=!0;try{e:{y=!1,x&&(x=!1,C(L),L=-1),g=!0;var F=p;try{t:{for(T(j),m=n(c);m!==null&&!(m.expirationTime>j&&q());){var Z=m.callback;if(typeof Z=="function"){m.callback=null,p=m.priorityLevel;var O=Z(m.expirationTime<=j);if(j=e.unstable_now(),typeof O=="function"){m.callback=O,T(j),N=!0;break t}m===n(c)&&r(c),T(j)}else r(c);m=n(c)}if(m!==null)N=!0;else{var U=n(f);U!==null&&D(z,U.startTime-j),N=!1}}break e}finally{m=null,p=F,g=!1}N=void 0}}finally{N?W():A=!1}}}var W;if(typeof S=="function")W=function(){S(V)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,B=I.port2;I.port1.onmessage=V,W=function(){B.postMessage(null)}}else W=function(){w(V,0)};function D(j,N){L=w(function(){j(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(j){j.callback=null},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_next=function(j){switch(p){case 1:case 2:case 3:var N=3;break;default:N=p}var F=p;p=N;try{return j()}finally{p=F}},e.unstable_requestPaint=function(){k=!0},e.unstable_runWithPriority=function(j,N){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var F=p;p=j;try{return N()}finally{p=F}},e.unstable_scheduleCallback=function(j,N,F){var Z=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?Z+F:Z):F=Z,j){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=F+O,j={id:d++,callback:N,priorityLevel:j,startTime:F,expirationTime:O,sortIndex:-1},F>Z?(j.sortIndex=F,t(f,j),n(c)===null&&j===n(f)&&(x?(C(L),L=-1):x=!0,D(z,F-Z))):(j.sortIndex=O,t(c,j),y||g||(y=!0,A||(A=!0,W()))),j},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(j){var N=p;return function(){var F=p;p=N;try{return j.apply(this,arguments)}finally{p=F}}}})(pv)),pv}var y4;function Jq(){return y4||(y4=1,mv.exports=Qq()),mv.exports}var _v={exports:{}},Yn={};/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var v4;function eI(){if(v4)return Yn;v4=1;var e=s2();function t(c){var f="https://react.dev/errors/"+c;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)f+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+c+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function a(c,f,d){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:m==null?null:""+m,children:c,containerInfo:f,implementation:d}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(c,f){if(c==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return Yn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Yn.createPortal=function(c,f){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return a(c,f,null,d)},Yn.flushSync=function(c){var f=o.T,d=r.p;try{if(o.T=null,r.p=2,c)return c()}finally{o.T=f,r.p=d,r.d.f()}},Yn.preconnect=function(c,f){typeof c=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(c,f))},Yn.prefetchDNS=function(c){typeof c=="string"&&r.d.D(c)},Yn.preinit=function(c,f){if(typeof c=="string"&&f&&typeof f.as=="string"){var d=f.as,m=l(d,f.crossOrigin),p=typeof f.integrity=="string"?f.integrity:void 0,g=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;d==="style"?r.d.S(c,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:m,integrity:p,fetchPriority:g}):d==="script"&&r.d.X(c,{crossOrigin:m,integrity:p,fetchPriority:g,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Yn.preinitModule=function(c,f){if(typeof c=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var d=l(f.as,f.crossOrigin);r.d.M(c,{crossOrigin:d,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(c)},Yn.preload=function(c,f){if(typeof c=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var d=f.as,m=l(d,f.crossOrigin);r.d.L(c,d,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},Yn.preloadModule=function(c,f){if(typeof c=="string")if(f){var d=l(f.as,f.crossOrigin);r.d.m(c,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:d,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(c)},Yn.requestFormReset=function(c){r.d.r(c)},Yn.unstable_batchedUpdates=function(c,f){return c(f)},Yn.useFormState=function(c,f,d){return o.H.useFormState(c,f,d)},Yn.useFormStatus=function(){return o.H.useHostTransitionStatus()},Yn.version="19.2.7",Yn}var b4;function tj(){if(b4)return _v.exports;b4=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),_v.exports=eI(),_v.exports}/**
|
|
35
|
+
* @license React
|
|
36
|
+
* react-dom-client.production.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/var x4;function tI(){if(x4)return Xf;x4=1;var e=Jq(),t=s2(),n=tj();function r(s){var u="https://react.dev/errors/"+s;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)u+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+s+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function a(s){var u=s,h=s;if(s.alternate)for(;u.return;)u=u.return;else{s=u;do u=s,(u.flags&4098)!==0&&(h=u.return),s=u.return;while(s)}return u.tag===3?h:null}function o(s){if(s.tag===13){var u=s.memoizedState;if(u===null&&(s=s.alternate,s!==null&&(u=s.memoizedState)),u!==null)return u.dehydrated}return null}function l(s){if(s.tag===31){var u=s.memoizedState;if(u===null&&(s=s.alternate,s!==null&&(u=s.memoizedState)),u!==null)return u.dehydrated}return null}function c(s){if(a(s)!==s)throw Error(r(188))}function f(s){var u=s.alternate;if(!u){if(u=a(s),u===null)throw Error(r(188));return u!==s?null:s}for(var h=s,_=u;;){var v=h.return;if(v===null)break;var E=v.alternate;if(E===null){if(_=v.return,_!==null){h=_;continue}break}if(v.child===E.child){for(E=v.child;E;){if(E===h)return c(v),s;if(E===_)return c(v),u;E=E.sibling}throw Error(r(188))}if(h.return!==_.return)h=v,_=E;else{for(var M=!1,X=v.child;X;){if(X===h){M=!0,h=v,_=E;break}if(X===_){M=!0,_=v,h=E;break}X=X.sibling}if(!M){for(X=E.child;X;){if(X===h){M=!0,h=E,_=v;break}if(X===_){M=!0,_=E,h=v;break}X=X.sibling}if(!M)throw Error(r(189))}}if(h.alternate!==_)throw Error(r(190))}if(h.tag!==3)throw Error(r(188));return h.stateNode.current===h?s:u}function d(s){var u=s.tag;if(u===5||u===26||u===27||u===6)return s;for(s=s.child;s!==null;){if(u=d(s),u!==null)return u;s=s.sibling}return null}var m=Object.assign,p=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),S=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),V=Symbol.iterator;function W(s){return s===null||typeof s!="object"?null:(s=V&&s[V]||s["@@iterator"],typeof s=="function"?s:null)}var I=Symbol.for("react.client.reference");function B(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===I?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case x:return"Fragment";case w:return"Profiler";case k:return"StrictMode";case z:return"Suspense";case A:return"SuspenseList";case H:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case y:return"Portal";case S:return s.displayName||"Context";case C:return(s._context.displayName||"Context")+".Consumer";case T:var u=s.render;return s=s.displayName,s||(s=u.displayName||u.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case L:return u=s.displayName||null,u!==null?u:B(s.type)||"Memo";case G:u=s._payload,s=s._init;try{return B(s(u))}catch{}}return null}var D=Array.isArray,j=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},Z=[],O=-1;function U(s){return{current:s}}function K(s){0>O||(s.current=Z[O],Z[O]=null,O--)}function $(s,u){O++,Z[O]=s.current,s.current=u}var ie=U(null),ue=U(null),xe=U(null),we=U(null);function Pe(s,u){switch($(xe,u),$(ue,s),$(ie,null),u.nodeType){case 9:case 11:s=(s=u.documentElement)&&(s=s.namespaceURI)?M3(s):0;break;default:if(s=u.tagName,u=u.namespaceURI)u=M3(u),s=O3(u,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}K(ie),$(ie,s)}function _e(){K(ie),K(ue),K(xe)}function Ae(s){s.memoizedState!==null&&$(we,s);var u=ie.current,h=O3(u,s.type);u!==h&&($(ue,s),$(ie,h))}function je(s){ue.current===s&&(K(ie),K(ue)),we.current===s&&(K(we),Bf._currentValue=F)}var he,tt;function Ee(s){if(he===void 0)try{throw Error()}catch(h){var u=h.stack.trim().match(/\n( *(at )?)/);he=u&&u[1]||"",tt=-1<h.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<h.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+he+s+tt}var Ne=!1;function ce(s,u){if(!s||Ne)return"";Ne=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var _={DetermineComponentFrameRoot:function(){try{if(u){var ve=function(){throw Error()};if(Object.defineProperty(ve.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ve,[])}catch(fe){var le=fe}Reflect.construct(s,[],ve)}else{try{ve.call()}catch(fe){le=fe}s.call(ve.prototype)}}else{try{throw Error()}catch(fe){le=fe}(ve=s())&&typeof ve.catch=="function"&&ve.catch(function(){})}}catch(fe){if(fe&&le&&typeof fe.stack=="string")return[fe.stack,le.stack]}return[null,null]}};_.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(_.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(_.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E=_.DetermineComponentFrameRoot(),M=E[0],X=E[1];if(M&&X){var ee=M.split(`
|
|
45
|
+
`),oe=X.split(`
|
|
46
|
+
`);for(v=_=0;_<ee.length&&!ee[_].includes("DetermineComponentFrameRoot");)_++;for(;v<oe.length&&!oe[v].includes("DetermineComponentFrameRoot");)v++;if(_===ee.length||v===oe.length)for(_=ee.length-1,v=oe.length-1;1<=_&&0<=v&&ee[_]!==oe[v];)v--;for(;1<=_&&0<=v;_--,v--)if(ee[_]!==oe[v]){if(_!==1||v!==1)do if(_--,v--,0>v||ee[_]!==oe[v]){var me=`
|
|
47
|
+
`+ee[_].replace(" at new "," at ");return s.displayName&&me.includes("<anonymous>")&&(me=me.replace("<anonymous>",s.displayName)),me}while(1<=_&&0<=v);break}}}finally{Ne=!1,Error.prepareStackTrace=h}return(h=s?s.displayName||s.name:"")?Ee(h):""}function qe(s,u){switch(s.tag){case 26:case 27:case 5:return Ee(s.type);case 16:return Ee("Lazy");case 13:return s.child!==u&&u!==null?Ee("Suspense Fallback"):Ee("Suspense");case 19:return Ee("SuspenseList");case 0:case 15:return ce(s.type,!1);case 11:return ce(s.type.render,!1);case 1:return ce(s.type,!0);case 31:return Ee("Activity");default:return""}}function mt(s){try{var u="",h=null;do u+=qe(s,h),h=s,s=s.return;while(s);return u}catch(_){return`
|
|
48
|
+
Error generating stack: `+_.message+`
|
|
49
|
+
`+_.stack}}var Xt=Object.prototype.hasOwnProperty,Ft=e.unstable_scheduleCallback,un=e.unstable_cancelCallback,ti=e.unstable_shouldYield,ni=e.unstable_requestPaint,Yt=e.unstable_now,Wi=e.unstable_getCurrentPriorityLevel,de=e.unstable_ImmediatePriority,Se=e.unstable_UserBlockingPriority,Be=e.unstable_NormalPriority,Ze=e.unstable_LowPriority,ct=e.unstable_IdlePriority,Wt=e.log,Kt=e.unstable_setDisableYieldValue,Dn=null,Ht=null;function Hn(s){if(typeof Wt=="function"&&Kt(s),Ht&&typeof Ht.setStrictMode=="function")try{Ht.setStrictMode(Dn,s)}catch{}}var St=Math.clz32?Math.clz32:s0,Ki=Math.log,Or=Math.LN2;function s0(s){return s>>>=0,s===0?32:31-(Ki(s)/Or|0)|0}var Bl=256,Gl=262144,Es=4194304;function Zi(s){var u=s&42;if(u!==0)return u;switch(s&-s){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 s&261888;case 262144:case 524288:case 1048576:case 2097152:return s&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function Fl(s,u,h){var _=s.pendingLanes;if(_===0)return 0;var v=0,E=s.suspendedLanes,M=s.pingedLanes;s=s.warmLanes;var X=_&134217727;return X!==0?(_=X&~E,_!==0?v=Zi(_):(M&=X,M!==0?v=Zi(M):h||(h=X&~s,h!==0&&(v=Zi(h))))):(X=_&~E,X!==0?v=Zi(X):M!==0?v=Zi(M):h||(h=_&~s,h!==0&&(v=Zi(h)))),v===0?0:u!==0&&u!==v&&(u&E)===0&&(E=v&-v,h=u&-u,E>=h||E===32&&(h&4194048)!==0)?u:v}function _o(s,u){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&u)===0}function Bd(s,u){switch(s){case 1:case 2:case 4:case 8:case 64:return u+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 u+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 Gd(){var s=Es;return Es<<=1,(Es&62914560)===0&&(Es=4194304),s}function Hc(s){for(var u=[],h=0;31>h;h++)u.push(s);return u}function go(s,u){s.pendingLanes|=u,u!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function Vc(s,u,h,_,v,E){var M=s.pendingLanes;s.pendingLanes=h,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=h,s.entangledLanes&=h,s.errorRecoveryDisabledLanes&=h,s.shellSuspendCounter=0;var X=s.entanglements,ee=s.expirationTimes,oe=s.hiddenUpdates;for(h=M&~h;0<h;){var me=31-St(h),ve=1<<me;X[me]=0,ee[me]=-1;var le=oe[me];if(le!==null)for(oe[me]=null,me=0;me<le.length;me++){var fe=le[me];fe!==null&&(fe.lane&=-536870913)}h&=~ve}_!==0&&Ss(s,_,0),E!==0&&v===0&&s.tag!==0&&(s.suspendedLanes|=E&~(M&~u))}function Ss(s,u,h){s.pendingLanes|=u,s.suspendedLanes&=~u;var _=31-St(u);s.entangledLanes|=u,s.entanglements[_]=s.entanglements[_]|1073741824|h&261930}function yo(s,u){var h=s.entangledLanes|=u;for(s=s.entanglements;h;){var _=31-St(h),v=1<<_;v&u|s[_]&u&&(s[_]|=u),h&=~v}}function Fd(s,u){var h=u&-u;return h=(h&42)!==0?1:Xc(h),(h&(s.suspendedLanes|u))!==0?0:h}function Xc(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=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:s=128;break;case 268435456:s=134217728;break;default:s=0}return s}function vo(s){return s&=-s,2<s?8<s?(s&134217727)!==0?32:268435456:8:2}function Hd(){var s=N.p;return s!==0?s:(s=window.event,s===void 0?32:i4(s.type))}function Vd(s,u){var h=N.p;try{return N.p=s,u()}finally{N.p=h}}var Qi=Math.random().toString(36).slice(2),Le="__reactFiber$"+Qi,Vn="__reactProps$"+Qi,bo="__reactContainer$"+Qi,Ji="__reactEvents$"+Qi,Ts="__reactListeners$"+Qi,l0="__reactHandles$"+Qi,Xn="__reactResources$"+Qi,Ea="__reactMarker$"+Qi;function Yc(s){delete s[Le],delete s[Vn],delete s[Ji],delete s[Ts],delete s[l0]}function xo(s){var u=s[Le];if(u)return u;for(var h=s.parentNode;h;){if(u=h[bo]||h[Le]){if(h=u.alternate,u.child!==null||h!==null&&h.child!==null)for(s=B3(s);s!==null;){if(h=s[Le])return h;s=B3(s)}return u}s=h,h=s.parentNode}return null}function wo(s){if(s=s[Le]||s[bo]){var u=s.tag;if(u===5||u===6||u===13||u===31||u===26||u===27||u===3)return s}return null}function ko(s){var u=s.tag;if(u===5||u===26||u===27||u===6)return s.stateNode;throw Error(r(33))}function Sa(s){var u=s[Xn];return u||(u=s[Xn]={hoistableStyles:new Map,hoistableScripts:new Map}),u}function cn(s){s[Ea]=!0}var Xd=new Set,Wc={};function Ta(s,u){ea(s,u),ea(s+"Capture",u)}function ea(s,u){for(Wc[s]=u,s=0;s<u.length;s++)Xd.add(u[s])}var Eo=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]*$"),Yd={},Wd={};function u0(s){return Xt.call(Wd,s)?!0:Xt.call(Yd,s)?!1:Eo.test(s)?Wd[s]=!0:(Yd[s]=!0,!1)}function Hl(s,u,h){if(u0(u))if(h===null)s.removeAttribute(u);else{switch(typeof h){case"undefined":case"function":case"symbol":s.removeAttribute(u);return;case"boolean":var _=u.toLowerCase().slice(0,5);if(_!=="data-"&&_!=="aria-"){s.removeAttribute(u);return}}s.setAttribute(u,""+h)}}function Vl(s,u,h){if(h===null)s.removeAttribute(u);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(u);return}s.setAttribute(u,""+h)}}function ji(s,u,h,_){if(_===null)s.removeAttribute(h);else{switch(typeof _){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(h);return}s.setAttributeNS(u,h,""+_)}}function wr(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Kc(s){var u=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function c0(s,u,h){var _=Object.getOwnPropertyDescriptor(s.constructor.prototype,u);if(!s.hasOwnProperty(u)&&typeof _<"u"&&typeof _.get=="function"&&typeof _.set=="function"){var v=_.get,E=_.set;return Object.defineProperty(s,u,{configurable:!0,get:function(){return v.call(this)},set:function(M){h=""+M,E.call(this,M)}}),Object.defineProperty(s,u,{enumerable:_.enumerable}),{getValue:function(){return h},setValue:function(M){h=""+M},stopTracking:function(){s._valueTracker=null,delete s[u]}}}}function Zc(s){if(!s._valueTracker){var u=Kc(s)?"checked":"value";s._valueTracker=c0(s,u,""+s[u])}}function Qc(s){if(!s)return!1;var u=s._valueTracker;if(!u)return!0;var h=u.getValue(),_="";return s&&(_=Kc(s)?s.checked?"true":"false":s.value),s=_,s!==h?(u.setValue(s),!0):!1}function Xl(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var f0=/[\n"\\]/g;function kr(s){return s.replace(f0,function(u){return"\\"+u.charCodeAt(0).toString(16)+" "})}function Jc(s,u,h,_,v,E,M,X){s.name="",M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?s.type=M:s.removeAttribute("type"),u!=null?M==="number"?(u===0&&s.value===""||s.value!=u)&&(s.value=""+wr(u)):s.value!==""+wr(u)&&(s.value=""+wr(u)):M!=="submit"&&M!=="reset"||s.removeAttribute("value"),u!=null?ef(s,M,wr(u)):h!=null?ef(s,M,wr(h)):_!=null&&s.removeAttribute("value"),v==null&&E!=null&&(s.defaultChecked=!!E),v!=null&&(s.checked=v&&typeof v!="function"&&typeof v!="symbol"),X!=null&&typeof X!="function"&&typeof X!="symbol"&&typeof X!="boolean"?s.name=""+wr(X):s.removeAttribute("name")}function Kd(s,u,h,_,v,E,M,X){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(s.type=E),u!=null||h!=null){if(!(E!=="submit"&&E!=="reset"||u!=null)){Zc(s);return}h=h!=null?""+wr(h):"",u=u!=null?""+wr(u):h,X||u===s.value||(s.value=u),s.defaultValue=u}_=_??v,_=typeof _!="function"&&typeof _!="symbol"&&!!_,s.checked=X?s.checked:!!_,s.defaultChecked=!!_,M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(s.name=M),Zc(s)}function ef(s,u,h){u==="number"&&Xl(s.ownerDocument)===s||s.defaultValue===""+h||(s.defaultValue=""+h)}function So(s,u,h,_){if(s=s.options,u){u={};for(var v=0;v<h.length;v++)u["$"+h[v]]=!0;for(h=0;h<s.length;h++)v=u.hasOwnProperty("$"+s[h].value),s[h].selected!==v&&(s[h].selected=v),v&&_&&(s[h].defaultSelected=!0)}else{for(h=""+wr(h),u=null,v=0;v<s.length;v++){if(s[v].value===h){s[v].selected=!0,_&&(s[v].defaultSelected=!0);return}u!==null||s[v].disabled||(u=s[v])}u!==null&&(u.selected=!0)}}function tf(s,u,h){if(u!=null&&(u=""+wr(u),u!==s.value&&(s.value=u),h==null)){s.defaultValue!==u&&(s.defaultValue=u);return}s.defaultValue=h!=null?""+wr(h):""}function an(s,u,h,_){if(u==null){if(_!=null){if(h!=null)throw Error(r(92));if(D(_)){if(1<_.length)throw Error(r(93));_=_[0]}h=_}h==null&&(h=""),u=h}h=wr(u),s.defaultValue=h,_=s.textContent,_===h&&_!==""&&_!==null&&(s.value=_),Zc(s)}function Dr(s,u){if(u){var h=s.firstChild;if(h&&h===s.lastChild&&h.nodeType===3){h.nodeValue=u;return}}s.textContent=u}var h0=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 Zd(s,u,h){var _=u.indexOf("--")===0;h==null||typeof h=="boolean"||h===""?_?s.setProperty(u,""):u==="float"?s.cssFloat="":s[u]="":_?s.setProperty(u,h):typeof h!="number"||h===0||h0.has(u)?u==="float"?s.cssFloat=h:s[u]=(""+h).trim():s[u]=h+"px"}function Qd(s,u,h){if(u!=null&&typeof u!="object")throw Error(r(62));if(s=s.style,h!=null){for(var _ in h)!h.hasOwnProperty(_)||u!=null&&u.hasOwnProperty(_)||(_.indexOf("--")===0?s.setProperty(_,""):_==="float"?s.cssFloat="":s[_]="");for(var v in u)_=u[v],u.hasOwnProperty(v)&&h[v]!==_&&Zd(s,v,_)}else for(var E in u)u.hasOwnProperty(E)&&Zd(s,E,u[E])}function nf(s){if(s.indexOf("-")===-1)return!1;switch(s){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 Jd=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"],["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"]]),d0=/^[\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 Yl(s){return d0.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}function Ri(){}var rf=null;function Wl(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var qr=null,Ca=null;function af(s){var u=wo(s);if(u&&(s=u.stateNode)){var h=s[Vn]||null;e:switch(s=u.stateNode,u.type){case"input":if(Jc(s,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name),u=h.name,h.type==="radio"&&u!=null){for(h=s;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll('input[name="'+kr(""+u)+'"][type="radio"]'),u=0;u<h.length;u++){var _=h[u];if(_!==s&&_.form===s.form){var v=_[Vn]||null;if(!v)throw Error(r(90));Jc(_,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(u=0;u<h.length;u++)_=h[u],_.form===s.form&&Qc(_)}break e;case"textarea":tf(s,h.value,h.defaultValue);break e;case"select":u=h.value,u!=null&&So(s,!!h.multiple,u,!1)}}}var of=!1;function em(s,u,h){if(of)return s(u,h);of=!0;try{var _=s(u);return _}finally{if(of=!1,(qr!==null||Ca!==null)&&(qm(),qr&&(u=qr,s=Ca,Ca=qr=null,af(u),s)))for(u=0;u<s.length;u++)af(s[u])}}function Cs(s,u){var h=s.stateNode;if(h===null)return null;var _=h[Vn]||null;if(_===null)return null;h=_[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(_=!_.disabled)||(s=s.type,_=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!_;break e;default:s=!1}if(s)return null;if(h&&typeof h!="function")throw Error(r(231,u,typeof h));return h}var Ct=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sf=!1;if(Ct)try{var As={};Object.defineProperty(As,"passive",{get:function(){sf=!0}}),window.addEventListener("test",As,As),window.removeEventListener("test",As,As)}catch{sf=!1}var Ir=null,js=null,$r=null;function Kl(){if($r)return $r;var s,u=js,h=u.length,_,v="value"in Ir?Ir.value:Ir.textContent,E=v.length;for(s=0;s<h&&u[s]===v[s];s++);var M=h-s;for(_=1;_<=M&&u[h-_]===v[E-_];_++);return $r=v.slice(s,1<_?1-_:void 0)}function To(s){var u=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&u===13&&(s=13)):s=u,s===10&&(s=13),32<=s||s===13?s:0}function Rs(){return!0}function lf(){return!1}function qn(s){function u(h,_,v,E,M){this._reactName=h,this._targetInst=v,this.type=_,this.nativeEvent=E,this.target=M,this.currentTarget=null;for(var X in s)s.hasOwnProperty(X)&&(h=s[X],this[X]=h?h(E):E[X]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?Rs:lf,this.isPropagationStopped=lf,this}return m(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=Rs)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=Rs)},persist:function(){},isPersistent:Rs}),u}var ta={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zl=qn(ta),Ns=m({},ta,{view:0,detail:0}),tm=qn(Ns),R,P,Y,re=m({},Ns,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ls,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==Y&&(Y&&s.type==="mousemove"?(R=s.screenX-Y.screenX,P=s.screenY-Y.screenY):P=R=0,Y=s),R)},movementY:function(s){return"movementY"in s?s.movementY:P}}),ge=qn(re),be=m({},re,{dataTransfer:0}),Ge=qn(be),He=m({},Ns,{relatedTarget:0}),Je=qn(He),ze=m({},ta,{animationName:0,elapsedTime:0,pseudoElement:0}),Cn=qn(ze),gn=m({},ta,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),Tt=qn(gn),bt=m({},ta,{data:0}),$t=qn(bt),na={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zs={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"},Co={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ql(s){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(s):(s=Co[s])?!!u[s]:!1}function Ls(){return Ql}var Er=m({},Ns,{key:function(s){if(s.key){var u=na[s.key]||s.key;if(u!=="Unidentified")return u}return s.type==="keypress"?(s=To(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?zs[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ls,charCode:function(s){return s.type==="keypress"?To(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?To(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),m0=qn(Er),ra=m({},re,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$E=qn(ra),aD=m({},Ns,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ls}),oD=qn(aD),sD=m({},ta,{propertyName:0,elapsedTime:0,pseudoElement:0}),lD=qn(sD),uD=m({},re,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),cD=qn(uD),fD=m({},ta,{newState:0,oldState:0}),hD=qn(fD),dD=[9,13,27,32],p0=Ct&&"CompositionEvent"in window,uf=null;Ct&&"documentMode"in document&&(uf=document.documentMode);var mD=Ct&&"TextEvent"in window&&!uf,PE=Ct&&(!p0||uf&&8<uf&&11>=uf),UE=" ",BE=!1;function GE(s,u){switch(s){case"keyup":return dD.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function FE(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Jl=!1;function pD(s,u){switch(s){case"compositionend":return FE(u);case"keypress":return u.which!==32?null:(BE=!0,UE);case"textInput":return s=u.data,s===UE&&BE?null:s;default:return null}}function _D(s,u){if(Jl)return s==="compositionend"||!p0&&GE(s,u)?(s=Kl(),$r=js=Ir=null,Jl=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return PE&&u.locale!=="ko"?null:u.data;default:return null}}var gD={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 HE(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u==="input"?!!gD[s.type]:u==="textarea"}function VE(s,u,h,_){qr?Ca?Ca.push(_):Ca=[_]:qr=_,u=Fm(u,"onChange"),0<u.length&&(h=new Zl("onChange","change",null,h,_),s.push({event:h,listeners:u}))}var cf=null,ff=null;function yD(s){A3(s,0)}function nm(s){var u=ko(s);if(Qc(u))return s}function XE(s,u){if(s==="change")return u}var YE=!1;if(Ct){var _0;if(Ct){var g0="oninput"in document;if(!g0){var WE=document.createElement("div");WE.setAttribute("oninput","return;"),g0=typeof WE.oninput=="function"}_0=g0}else _0=!1;YE=_0&&(!document.documentMode||9<document.documentMode)}function KE(){cf&&(cf.detachEvent("onpropertychange",ZE),ff=cf=null)}function ZE(s){if(s.propertyName==="value"&&nm(ff)){var u=[];VE(u,ff,s,Wl(s)),em(yD,u)}}function vD(s,u,h){s==="focusin"?(KE(),cf=u,ff=h,cf.attachEvent("onpropertychange",ZE)):s==="focusout"&&KE()}function bD(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return nm(ff)}function xD(s,u){if(s==="click")return nm(u)}function wD(s,u){if(s==="input"||s==="change")return nm(u)}function kD(s,u){return s===u&&(s!==0||1/s===1/u)||s!==s&&u!==u}var Pr=typeof Object.is=="function"?Object.is:kD;function hf(s,u){if(Pr(s,u))return!0;if(typeof s!="object"||s===null||typeof u!="object"||u===null)return!1;var h=Object.keys(s),_=Object.keys(u);if(h.length!==_.length)return!1;for(_=0;_<h.length;_++){var v=h[_];if(!Xt.call(u,v)||!Pr(s[v],u[v]))return!1}return!0}function QE(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function JE(s,u){var h=QE(s);s=0;for(var _;h;){if(h.nodeType===3){if(_=s+h.textContent.length,s<=u&&_>=u)return{node:h,offset:u-s};s=_}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=QE(h)}}function eS(s,u){return s&&u?s===u?!0:s&&s.nodeType===3?!1:u&&u.nodeType===3?eS(s,u.parentNode):"contains"in s?s.contains(u):s.compareDocumentPosition?!!(s.compareDocumentPosition(u)&16):!1:!1}function tS(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var u=Xl(s.document);u instanceof s.HTMLIFrameElement;){try{var h=typeof u.contentWindow.location.href=="string"}catch{h=!1}if(h)s=u.contentWindow;else break;u=Xl(s.document)}return u}function y0(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u&&(u==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||u==="textarea"||s.contentEditable==="true")}var ED=Ct&&"documentMode"in document&&11>=document.documentMode,eu=null,v0=null,df=null,b0=!1;function nS(s,u,h){var _=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;b0||eu==null||eu!==Xl(_)||(_=eu,"selectionStart"in _&&y0(_)?_={start:_.selectionStart,end:_.selectionEnd}:(_=(_.ownerDocument&&_.ownerDocument.defaultView||window).getSelection(),_={anchorNode:_.anchorNode,anchorOffset:_.anchorOffset,focusNode:_.focusNode,focusOffset:_.focusOffset}),df&&hf(df,_)||(df=_,_=Fm(v0,"onSelect"),0<_.length&&(u=new Zl("onSelect","select",null,u,h),s.push({event:u,listeners:_}),u.target=eu)))}function Ms(s,u){var h={};return h[s.toLowerCase()]=u.toLowerCase(),h["Webkit"+s]="webkit"+u,h["Moz"+s]="moz"+u,h}var tu={animationend:Ms("Animation","AnimationEnd"),animationiteration:Ms("Animation","AnimationIteration"),animationstart:Ms("Animation","AnimationStart"),transitionrun:Ms("Transition","TransitionRun"),transitionstart:Ms("Transition","TransitionStart"),transitioncancel:Ms("Transition","TransitionCancel"),transitionend:Ms("Transition","TransitionEnd")},x0={},rS={};Ct&&(rS=document.createElement("div").style,"AnimationEvent"in window||(delete tu.animationend.animation,delete tu.animationiteration.animation,delete tu.animationstart.animation),"TransitionEvent"in window||delete tu.transitionend.transition);function Os(s){if(x0[s])return x0[s];if(!tu[s])return s;var u=tu[s],h;for(h in u)if(u.hasOwnProperty(h)&&h in rS)return x0[s]=u[h];return s}var iS=Os("animationend"),aS=Os("animationiteration"),oS=Os("animationstart"),SD=Os("transitionrun"),TD=Os("transitionstart"),CD=Os("transitioncancel"),sS=Os("transitionend"),lS=new Map,w0="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error 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(" ");w0.push("scrollEnd");function Ni(s,u){lS.set(s,u),Ta(u,[s])}var rm=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)},ri=[],nu=0,k0=0;function im(){for(var s=nu,u=k0=nu=0;u<s;){var h=ri[u];ri[u++]=null;var _=ri[u];ri[u++]=null;var v=ri[u];ri[u++]=null;var E=ri[u];if(ri[u++]=null,_!==null&&v!==null){var M=_.pending;M===null?v.next=v:(v.next=M.next,M.next=v),_.pending=v}E!==0&&uS(h,v,E)}}function am(s,u,h,_){ri[nu++]=s,ri[nu++]=u,ri[nu++]=h,ri[nu++]=_,k0|=_,s.lanes|=_,s=s.alternate,s!==null&&(s.lanes|=_)}function E0(s,u,h,_){return am(s,u,h,_),om(s)}function Ds(s,u){return am(s,null,null,u),om(s)}function uS(s,u,h){s.lanes|=h;var _=s.alternate;_!==null&&(_.lanes|=h);for(var v=!1,E=s.return;E!==null;)E.childLanes|=h,_=E.alternate,_!==null&&(_.childLanes|=h),E.tag===22&&(s=E.stateNode,s===null||s._visibility&1||(v=!0)),s=E,E=E.return;return s.tag===3?(E=s.stateNode,v&&u!==null&&(v=31-St(h),s=E.hiddenUpdates,_=s[v],_===null?s[v]=[u]:_.push(u),u.lane=h|536870912),E):null}function om(s){if(50<Of)throw Of=0,Ly=null,Error(r(185));for(var u=s.return;u!==null;)s=u,u=s.return;return s.tag===3?s.stateNode:null}var ru={};function AD(s,u,h,_){this.tag=s,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=_,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ur(s,u,h,_){return new AD(s,u,h,_)}function S0(s){return s=s.prototype,!(!s||!s.isReactComponent)}function Aa(s,u){var h=s.alternate;return h===null?(h=Ur(s.tag,u,s.key,s.mode),h.elementType=s.elementType,h.type=s.type,h.stateNode=s.stateNode,h.alternate=s,s.alternate=h):(h.pendingProps=u,h.type=s.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=s.flags&65011712,h.childLanes=s.childLanes,h.lanes=s.lanes,h.child=s.child,h.memoizedProps=s.memoizedProps,h.memoizedState=s.memoizedState,h.updateQueue=s.updateQueue,u=s.dependencies,h.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},h.sibling=s.sibling,h.index=s.index,h.ref=s.ref,h.refCleanup=s.refCleanup,h}function cS(s,u){s.flags&=65011714;var h=s.alternate;return h===null?(s.childLanes=0,s.lanes=u,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=h.childLanes,s.lanes=h.lanes,s.child=h.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=h.memoizedProps,s.memoizedState=h.memoizedState,s.updateQueue=h.updateQueue,s.type=h.type,u=h.dependencies,s.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext}),s}function sm(s,u,h,_,v,E){var M=0;if(_=s,typeof s=="function")S0(s)&&(M=1);else if(typeof s=="string")M=Lq(s,h,ie.current)?26:s==="html"||s==="head"||s==="body"?27:5;else e:switch(s){case H:return s=Ur(31,h,u,v),s.elementType=H,s.lanes=E,s;case x:return qs(h.children,v,E,u);case k:M=8,v|=24;break;case w:return s=Ur(12,h,u,v|2),s.elementType=w,s.lanes=E,s;case z:return s=Ur(13,h,u,v),s.elementType=z,s.lanes=E,s;case A:return s=Ur(19,h,u,v),s.elementType=A,s.lanes=E,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case S:M=10;break e;case C:M=9;break e;case T:M=11;break e;case L:M=14;break e;case G:M=16,_=null;break e}M=29,h=Error(r(130,s===null?"null":typeof s,"")),_=null}return u=Ur(M,h,u,v),u.elementType=s,u.type=_,u.lanes=E,u}function qs(s,u,h,_){return s=Ur(7,s,_,u),s.lanes=h,s}function T0(s,u,h){return s=Ur(6,s,null,u),s.lanes=h,s}function fS(s){var u=Ur(18,null,null,0);return u.stateNode=s,u}function C0(s,u,h){return u=Ur(4,s.children!==null?s.children:[],s.key,u),u.lanes=h,u.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},u}var hS=new WeakMap;function ii(s,u){if(typeof s=="object"&&s!==null){var h=hS.get(s);return h!==void 0?h:(u={value:s,source:u,stack:mt(u)},hS.set(s,u),u)}return{value:s,source:u,stack:mt(u)}}var iu=[],au=0,lm=null,mf=0,ai=[],oi=0,Ao=null,ia=1,aa="";function ja(s,u){iu[au++]=mf,iu[au++]=lm,lm=s,mf=u}function dS(s,u,h){ai[oi++]=ia,ai[oi++]=aa,ai[oi++]=Ao,Ao=s;var _=ia;s=aa;var v=32-St(_)-1;_&=~(1<<v),h+=1;var E=32-St(u)+v;if(30<E){var M=v-v%5;E=(_&(1<<M)-1).toString(32),_>>=M,v-=M,ia=1<<32-St(u)+v|h<<v|_,aa=E+s}else ia=1<<E|h<<v|_,aa=s}function A0(s){s.return!==null&&(ja(s,1),dS(s,1,0))}function j0(s){for(;s===lm;)lm=iu[--au],iu[au]=null,mf=iu[--au],iu[au]=null;for(;s===Ao;)Ao=ai[--oi],ai[oi]=null,aa=ai[--oi],ai[oi]=null,ia=ai[--oi],ai[oi]=null}function mS(s,u){ai[oi++]=ia,ai[oi++]=aa,ai[oi++]=Ao,ia=u.id,aa=u.overflow,Ao=s}var In=null,Ut=null,yt=!1,jo=null,si=!1,R0=Error(r(519));function Ro(s){var u=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw pf(ii(u,s)),R0}function pS(s){var u=s.stateNode,h=s.type,_=s.memoizedProps;switch(u[Le]=s,u[Vn]=_,h){case"dialog":ht("cancel",u),ht("close",u);break;case"iframe":case"object":case"embed":ht("load",u);break;case"video":case"audio":for(h=0;h<qf.length;h++)ht(qf[h],u);break;case"source":ht("error",u);break;case"img":case"image":case"link":ht("error",u),ht("load",u);break;case"details":ht("toggle",u);break;case"input":ht("invalid",u),Kd(u,_.value,_.defaultValue,_.checked,_.defaultChecked,_.type,_.name,!0);break;case"select":ht("invalid",u);break;case"textarea":ht("invalid",u),an(u,_.value,_.defaultValue,_.children)}h=_.children,typeof h!="string"&&typeof h!="number"&&typeof h!="bigint"||u.textContent===""+h||_.suppressHydrationWarning===!0||z3(u.textContent,h)?(_.popover!=null&&(ht("beforetoggle",u),ht("toggle",u)),_.onScroll!=null&&ht("scroll",u),_.onScrollEnd!=null&&ht("scrollend",u),_.onClick!=null&&(u.onclick=Ri),u=!0):u=!1,u||Ro(s,!0)}function _S(s){for(In=s.return;In;)switch(In.tag){case 5:case 31:case 13:si=!1;return;case 27:case 3:si=!0;return;default:In=In.return}}function ou(s){if(s!==In)return!1;if(!yt)return _S(s),yt=!0,!1;var u=s.tag,h;if((h=u!==3&&u!==27)&&((h=u===5)&&(h=s.type,h=!(h!=="form"&&h!=="button")||Yy(s.type,s.memoizedProps)),h=!h),h&&Ut&&Ro(s),_S(s),u===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));Ut=U3(s)}else if(u===31){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));Ut=U3(s)}else u===27?(u=Ut,Fo(s.type)?(s=Jy,Jy=null,Ut=s):Ut=u):Ut=In?ui(s.stateNode.nextSibling):null;return!0}function Is(){Ut=In=null,yt=!1}function N0(){var s=jo;return s!==null&&(Ar===null?Ar=s:Ar.push.apply(Ar,s),jo=null),s}function pf(s){jo===null?jo=[s]:jo.push(s)}var z0=U(null),$s=null,Ra=null;function No(s,u,h){$(z0,u._currentValue),u._currentValue=h}function Na(s){s._currentValue=z0.current,K(z0)}function L0(s,u,h){for(;s!==null;){var _=s.alternate;if((s.childLanes&u)!==u?(s.childLanes|=u,_!==null&&(_.childLanes|=u)):_!==null&&(_.childLanes&u)!==u&&(_.childLanes|=u),s===h)break;s=s.return}}function M0(s,u,h,_){var v=s.child;for(v!==null&&(v.return=s);v!==null;){var E=v.dependencies;if(E!==null){var M=v.child;E=E.firstContext;e:for(;E!==null;){var X=E;E=v;for(var ee=0;ee<u.length;ee++)if(X.context===u[ee]){E.lanes|=h,X=E.alternate,X!==null&&(X.lanes|=h),L0(E.return,h,s),_||(M=null);break e}E=X.next}}else if(v.tag===18){if(M=v.return,M===null)throw Error(r(341));M.lanes|=h,E=M.alternate,E!==null&&(E.lanes|=h),L0(M,h,s),M=null}else M=v.child;if(M!==null)M.return=v;else for(M=v;M!==null;){if(M===s){M=null;break}if(v=M.sibling,v!==null){v.return=M.return,M=v;break}M=M.return}v=M}}function su(s,u,h,_){s=null;for(var v=u,E=!1;v!==null;){if(!E){if((v.flags&524288)!==0)E=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var M=v.alternate;if(M===null)throw Error(r(387));if(M=M.memoizedProps,M!==null){var X=v.type;Pr(v.pendingProps.value,M.value)||(s!==null?s.push(X):s=[X])}}else if(v===we.current){if(M=v.alternate,M===null)throw Error(r(387));M.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(s!==null?s.push(Bf):s=[Bf])}v=v.return}s!==null&&M0(u,s,h,_),u.flags|=262144}function um(s){for(s=s.firstContext;s!==null;){if(!Pr(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function Ps(s){$s=s,Ra=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function $n(s){return gS($s,s)}function cm(s,u){return $s===null&&Ps(s),gS(s,u)}function gS(s,u){var h=u._currentValue;if(u={context:u,memoizedValue:h,next:null},Ra===null){if(s===null)throw Error(r(308));Ra=u,s.dependencies={lanes:0,firstContext:u},s.flags|=524288}else Ra=Ra.next=u;return h}var jD=typeof AbortController<"u"?AbortController:function(){var s=[],u=this.signal={aborted:!1,addEventListener:function(h,_){s.push(_)}};this.abort=function(){u.aborted=!0,s.forEach(function(h){return h()})}},RD=e.unstable_scheduleCallback,ND=e.unstable_NormalPriority,fn={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function O0(){return{controller:new jD,data:new Map,refCount:0}}function _f(s){s.refCount--,s.refCount===0&&RD(ND,function(){s.controller.abort()})}var gf=null,D0=0,lu=0,uu=null;function zD(s,u){if(gf===null){var h=gf=[];D0=0,lu=$y(),uu={status:"pending",value:void 0,then:function(_){h.push(_)}}}return D0++,u.then(yS,yS),u}function yS(){if(--D0===0&&gf!==null){uu!==null&&(uu.status="fulfilled");var s=gf;gf=null,lu=0,uu=null;for(var u=0;u<s.length;u++)(0,s[u])()}}function LD(s,u){var h=[],_={status:"pending",value:null,reason:null,then:function(v){h.push(v)}};return s.then(function(){_.status="fulfilled",_.value=u;for(var v=0;v<h.length;v++)(0,h[v])(u)},function(v){for(_.status="rejected",_.reason=v,v=0;v<h.length;v++)(0,h[v])(void 0)}),_}var vS=j.S;j.S=function(s,u){n3=Yt(),typeof u=="object"&&u!==null&&typeof u.then=="function"&&zD(s,u),vS!==null&&vS(s,u)};var Us=U(null);function q0(){var s=Us.current;return s!==null?s:Mt.pooledCache}function fm(s,u){u===null?$(Us,Us.current):$(Us,u.pool)}function bS(){var s=q0();return s===null?null:{parent:fn._currentValue,pool:s}}var cu=Error(r(460)),I0=Error(r(474)),hm=Error(r(542)),dm={then:function(){}};function xS(s){return s=s.status,s==="fulfilled"||s==="rejected"}function wS(s,u,h){switch(h=s[h],h===void 0?s.push(u):h!==u&&(u.then(Ri,Ri),u=h),u.status){case"fulfilled":return u.value;case"rejected":throw s=u.reason,ES(s),s;default:if(typeof u.status=="string")u.then(Ri,Ri);else{if(s=Mt,s!==null&&100<s.shellSuspendCounter)throw Error(r(482));s=u,s.status="pending",s.then(function(_){if(u.status==="pending"){var v=u;v.status="fulfilled",v.value=_}},function(_){if(u.status==="pending"){var v=u;v.status="rejected",v.reason=_}})}switch(u.status){case"fulfilled":return u.value;case"rejected":throw s=u.reason,ES(s),s}throw Gs=u,cu}}function Bs(s){try{var u=s._init;return u(s._payload)}catch(h){throw h!==null&&typeof h=="object"&&typeof h.then=="function"?(Gs=h,cu):h}}var Gs=null;function kS(){if(Gs===null)throw Error(r(459));var s=Gs;return Gs=null,s}function ES(s){if(s===cu||s===hm)throw Error(r(483))}var fu=null,yf=0;function mm(s){var u=yf;return yf+=1,fu===null&&(fu=[]),wS(fu,s,u)}function vf(s,u){u=u.props.ref,s.ref=u!==void 0?u:null}function pm(s,u){throw u.$$typeof===p?Error(r(525)):(s=Object.prototype.toString.call(u),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":s)))}function SS(s){function u(ne,te){if(s){var ae=ne.deletions;ae===null?(ne.deletions=[te],ne.flags|=16):ae.push(te)}}function h(ne,te){if(!s)return null;for(;te!==null;)u(ne,te),te=te.sibling;return null}function _(ne){for(var te=new Map;ne!==null;)ne.key!==null?te.set(ne.key,ne):te.set(ne.index,ne),ne=ne.sibling;return te}function v(ne,te){return ne=Aa(ne,te),ne.index=0,ne.sibling=null,ne}function E(ne,te,ae){return ne.index=ae,s?(ae=ne.alternate,ae!==null?(ae=ae.index,ae<te?(ne.flags|=67108866,te):ae):(ne.flags|=67108866,te)):(ne.flags|=1048576,te)}function M(ne){return s&&ne.alternate===null&&(ne.flags|=67108866),ne}function X(ne,te,ae,ye){return te===null||te.tag!==6?(te=T0(ae,ne.mode,ye),te.return=ne,te):(te=v(te,ae),te.return=ne,te)}function ee(ne,te,ae,ye){var Fe=ae.type;return Fe===x?me(ne,te,ae.props.children,ye,ae.key):te!==null&&(te.elementType===Fe||typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===G&&Bs(Fe)===te.type)?(te=v(te,ae.props),vf(te,ae),te.return=ne,te):(te=sm(ae.type,ae.key,ae.props,null,ne.mode,ye),vf(te,ae),te.return=ne,te)}function oe(ne,te,ae,ye){return te===null||te.tag!==4||te.stateNode.containerInfo!==ae.containerInfo||te.stateNode.implementation!==ae.implementation?(te=C0(ae,ne.mode,ye),te.return=ne,te):(te=v(te,ae.children||[]),te.return=ne,te)}function me(ne,te,ae,ye,Fe){return te===null||te.tag!==7?(te=qs(ae,ne.mode,ye,Fe),te.return=ne,te):(te=v(te,ae),te.return=ne,te)}function ve(ne,te,ae){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return te=T0(""+te,ne.mode,ae),te.return=ne,te;if(typeof te=="object"&&te!==null){switch(te.$$typeof){case g:return ae=sm(te.type,te.key,te.props,null,ne.mode,ae),vf(ae,te),ae.return=ne,ae;case y:return te=C0(te,ne.mode,ae),te.return=ne,te;case G:return te=Bs(te),ve(ne,te,ae)}if(D(te)||W(te))return te=qs(te,ne.mode,ae,null),te.return=ne,te;if(typeof te.then=="function")return ve(ne,mm(te),ae);if(te.$$typeof===S)return ve(ne,cm(ne,te),ae);pm(ne,te)}return null}function le(ne,te,ae,ye){var Fe=te!==null?te.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return Fe!==null?null:X(ne,te,""+ae,ye);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case g:return ae.key===Fe?ee(ne,te,ae,ye):null;case y:return ae.key===Fe?oe(ne,te,ae,ye):null;case G:return ae=Bs(ae),le(ne,te,ae,ye)}if(D(ae)||W(ae))return Fe!==null?null:me(ne,te,ae,ye,null);if(typeof ae.then=="function")return le(ne,te,mm(ae),ye);if(ae.$$typeof===S)return le(ne,te,cm(ne,ae),ye);pm(ne,ae)}return null}function fe(ne,te,ae,ye,Fe){if(typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint")return ne=ne.get(ae)||null,X(te,ne,""+ye,Fe);if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case g:return ne=ne.get(ye.key===null?ae:ye.key)||null,ee(te,ne,ye,Fe);case y:return ne=ne.get(ye.key===null?ae:ye.key)||null,oe(te,ne,ye,Fe);case G:return ye=Bs(ye),fe(ne,te,ae,ye,Fe)}if(D(ye)||W(ye))return ne=ne.get(ae)||null,me(te,ne,ye,Fe,null);if(typeof ye.then=="function")return fe(ne,te,ae,mm(ye),Fe);if(ye.$$typeof===S)return fe(ne,te,ae,cm(te,ye),Fe);pm(te,ye)}return null}function De(ne,te,ae,ye){for(var Fe=null,xt=null,Ie=te,lt=te=0,_t=null;Ie!==null&<<ae.length;lt++){Ie.index>lt?(_t=Ie,Ie=null):_t=Ie.sibling;var wt=le(ne,Ie,ae[lt],ye);if(wt===null){Ie===null&&(Ie=_t);break}s&&Ie&&wt.alternate===null&&u(ne,Ie),te=E(wt,te,lt),xt===null?Fe=wt:xt.sibling=wt,xt=wt,Ie=_t}if(lt===ae.length)return h(ne,Ie),yt&&ja(ne,lt),Fe;if(Ie===null){for(;lt<ae.length;lt++)Ie=ve(ne,ae[lt],ye),Ie!==null&&(te=E(Ie,te,lt),xt===null?Fe=Ie:xt.sibling=Ie,xt=Ie);return yt&&ja(ne,lt),Fe}for(Ie=_(Ie);lt<ae.length;lt++)_t=fe(Ie,ne,lt,ae[lt],ye),_t!==null&&(s&&_t.alternate!==null&&Ie.delete(_t.key===null?lt:_t.key),te=E(_t,te,lt),xt===null?Fe=_t:xt.sibling=_t,xt=_t);return s&&Ie.forEach(function(Wo){return u(ne,Wo)}),yt&&ja(ne,lt),Fe}function We(ne,te,ae,ye){if(ae==null)throw Error(r(151));for(var Fe=null,xt=null,Ie=te,lt=te=0,_t=null,wt=ae.next();Ie!==null&&!wt.done;lt++,wt=ae.next()){Ie.index>lt?(_t=Ie,Ie=null):_t=Ie.sibling;var Wo=le(ne,Ie,wt.value,ye);if(Wo===null){Ie===null&&(Ie=_t);break}s&&Ie&&Wo.alternate===null&&u(ne,Ie),te=E(Wo,te,lt),xt===null?Fe=Wo:xt.sibling=Wo,xt=Wo,Ie=_t}if(wt.done)return h(ne,Ie),yt&&ja(ne,lt),Fe;if(Ie===null){for(;!wt.done;lt++,wt=ae.next())wt=ve(ne,wt.value,ye),wt!==null&&(te=E(wt,te,lt),xt===null?Fe=wt:xt.sibling=wt,xt=wt);return yt&&ja(ne,lt),Fe}for(Ie=_(Ie);!wt.done;lt++,wt=ae.next())wt=fe(Ie,ne,lt,wt.value,ye),wt!==null&&(s&&wt.alternate!==null&&Ie.delete(wt.key===null?lt:wt.key),te=E(wt,te,lt),xt===null?Fe=wt:xt.sibling=wt,xt=wt);return s&&Ie.forEach(function(Fq){return u(ne,Fq)}),yt&&ja(ne,lt),Fe}function Lt(ne,te,ae,ye){if(typeof ae=="object"&&ae!==null&&ae.type===x&&ae.key===null&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case g:e:{for(var Fe=ae.key;te!==null;){if(te.key===Fe){if(Fe=ae.type,Fe===x){if(te.tag===7){h(ne,te.sibling),ye=v(te,ae.props.children),ye.return=ne,ne=ye;break e}}else if(te.elementType===Fe||typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===G&&Bs(Fe)===te.type){h(ne,te.sibling),ye=v(te,ae.props),vf(ye,ae),ye.return=ne,ne=ye;break e}h(ne,te);break}else u(ne,te);te=te.sibling}ae.type===x?(ye=qs(ae.props.children,ne.mode,ye,ae.key),ye.return=ne,ne=ye):(ye=sm(ae.type,ae.key,ae.props,null,ne.mode,ye),vf(ye,ae),ye.return=ne,ne=ye)}return M(ne);case y:e:{for(Fe=ae.key;te!==null;){if(te.key===Fe)if(te.tag===4&&te.stateNode.containerInfo===ae.containerInfo&&te.stateNode.implementation===ae.implementation){h(ne,te.sibling),ye=v(te,ae.children||[]),ye.return=ne,ne=ye;break e}else{h(ne,te);break}else u(ne,te);te=te.sibling}ye=C0(ae,ne.mode,ye),ye.return=ne,ne=ye}return M(ne);case G:return ae=Bs(ae),Lt(ne,te,ae,ye)}if(D(ae))return De(ne,te,ae,ye);if(W(ae)){if(Fe=W(ae),typeof Fe!="function")throw Error(r(150));return ae=Fe.call(ae),We(ne,te,ae,ye)}if(typeof ae.then=="function")return Lt(ne,te,mm(ae),ye);if(ae.$$typeof===S)return Lt(ne,te,cm(ne,ae),ye);pm(ne,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint"?(ae=""+ae,te!==null&&te.tag===6?(h(ne,te.sibling),ye=v(te,ae),ye.return=ne,ne=ye):(h(ne,te),ye=T0(ae,ne.mode,ye),ye.return=ne,ne=ye),M(ne)):h(ne,te)}return function(ne,te,ae,ye){try{yf=0;var Fe=Lt(ne,te,ae,ye);return fu=null,Fe}catch(Ie){if(Ie===cu||Ie===hm)throw Ie;var xt=Ur(29,Ie,null,ne.mode);return xt.lanes=ye,xt.return=ne,xt}finally{}}}var Fs=SS(!0),TS=SS(!1),zo=!1;function $0(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function P0(s,u){s=s.updateQueue,u.updateQueue===s&&(u.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function Lo(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function Mo(s,u,h){var _=s.updateQueue;if(_===null)return null;if(_=_.shared,(Et&2)!==0){var v=_.pending;return v===null?u.next=u:(u.next=v.next,v.next=u),_.pending=u,u=om(s),uS(s,null,h),u}return am(s,_,u,h),om(s)}function bf(s,u,h){if(u=u.updateQueue,u!==null&&(u=u.shared,(h&4194048)!==0)){var _=u.lanes;_&=s.pendingLanes,h|=_,u.lanes=h,yo(s,h)}}function U0(s,u){var h=s.updateQueue,_=s.alternate;if(_!==null&&(_=_.updateQueue,h===_)){var v=null,E=null;if(h=h.firstBaseUpdate,h!==null){do{var M={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};E===null?v=E=M:E=E.next=M,h=h.next}while(h!==null);E===null?v=E=u:E=E.next=u}else v=E=u;h={baseState:_.baseState,firstBaseUpdate:v,lastBaseUpdate:E,shared:_.shared,callbacks:_.callbacks},s.updateQueue=h;return}s=h.lastBaseUpdate,s===null?h.firstBaseUpdate=u:s.next=u,h.lastBaseUpdate=u}var B0=!1;function xf(){if(B0){var s=uu;if(s!==null)throw s}}function wf(s,u,h,_){B0=!1;var v=s.updateQueue;zo=!1;var E=v.firstBaseUpdate,M=v.lastBaseUpdate,X=v.shared.pending;if(X!==null){v.shared.pending=null;var ee=X,oe=ee.next;ee.next=null,M===null?E=oe:M.next=oe,M=ee;var me=s.alternate;me!==null&&(me=me.updateQueue,X=me.lastBaseUpdate,X!==M&&(X===null?me.firstBaseUpdate=oe:X.next=oe,me.lastBaseUpdate=ee))}if(E!==null){var ve=v.baseState;M=0,me=oe=ee=null,X=E;do{var le=X.lane&-536870913,fe=le!==X.lane;if(fe?(pt&le)===le:(_&le)===le){le!==0&&le===lu&&(B0=!0),me!==null&&(me=me.next={lane:0,tag:X.tag,payload:X.payload,callback:null,next:null});e:{var De=s,We=X;le=u;var Lt=h;switch(We.tag){case 1:if(De=We.payload,typeof De=="function"){ve=De.call(Lt,ve,le);break e}ve=De;break e;case 3:De.flags=De.flags&-65537|128;case 0:if(De=We.payload,le=typeof De=="function"?De.call(Lt,ve,le):De,le==null)break e;ve=m({},ve,le);break e;case 2:zo=!0}}le=X.callback,le!==null&&(s.flags|=64,fe&&(s.flags|=8192),fe=v.callbacks,fe===null?v.callbacks=[le]:fe.push(le))}else fe={lane:le,tag:X.tag,payload:X.payload,callback:X.callback,next:null},me===null?(oe=me=fe,ee=ve):me=me.next=fe,M|=le;if(X=X.next,X===null){if(X=v.shared.pending,X===null)break;fe=X,X=fe.next,fe.next=null,v.lastBaseUpdate=fe,v.shared.pending=null}}while(!0);me===null&&(ee=ve),v.baseState=ee,v.firstBaseUpdate=oe,v.lastBaseUpdate=me,E===null&&(v.shared.lanes=0),$o|=M,s.lanes=M,s.memoizedState=ve}}function CS(s,u){if(typeof s!="function")throw Error(r(191,s));s.call(u)}function AS(s,u){var h=s.callbacks;if(h!==null)for(s.callbacks=null,s=0;s<h.length;s++)CS(h[s],u)}var hu=U(null),_m=U(0);function jS(s,u){s=Pa,$(_m,s),$(hu,u),Pa=s|u.baseLanes}function G0(){$(_m,Pa),$(hu,hu.current)}function F0(){Pa=_m.current,K(hu),K(_m)}var Br=U(null),li=null;function Oo(s){var u=s.alternate;$(on,on.current&1),$(Br,s),li===null&&(u===null||hu.current!==null||u.memoizedState!==null)&&(li=s)}function H0(s){$(on,on.current),$(Br,s),li===null&&(li=s)}function RS(s){s.tag===22?($(on,on.current),$(Br,s),li===null&&(li=s)):Do()}function Do(){$(on,on.current),$(Br,Br.current)}function Gr(s){K(Br),li===s&&(li=null),K(on)}var on=U(0);function gm(s){for(var u=s;u!==null;){if(u.tag===13){var h=u.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||Zy(h)||Qy(h)))return u}else if(u.tag===19&&(u.memoizedProps.revealOrder==="forwards"||u.memoizedProps.revealOrder==="backwards"||u.memoizedProps.revealOrder==="unstable_legacy-backwards"||u.memoizedProps.revealOrder==="together")){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var za=0,ot=null,Nt=null,hn=null,ym=!1,du=!1,Hs=!1,vm=0,kf=0,mu=null,MD=0;function en(){throw Error(r(321))}function V0(s,u){if(u===null)return!1;for(var h=0;h<u.length&&h<s.length;h++)if(!Pr(s[h],u[h]))return!1;return!0}function X0(s,u,h,_,v,E){return za=E,ot=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,j.H=s===null||s.memoizedState===null?dT:ly,Hs=!1,E=h(_,v),Hs=!1,du&&(E=zS(u,h,_,v)),NS(s),E}function NS(s){j.H=Tf;var u=Nt!==null&&Nt.next!==null;if(za=0,hn=Nt=ot=null,ym=!1,kf=0,mu=null,u)throw Error(r(300));s===null||dn||(s=s.dependencies,s!==null&&um(s)&&(dn=!0))}function zS(s,u,h,_){ot=s;var v=0;do{if(du&&(mu=null),kf=0,du=!1,25<=v)throw Error(r(301));if(v+=1,hn=Nt=null,s.updateQueue!=null){var E=s.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}j.H=mT,E=u(h,_)}while(du);return E}function OD(){var s=j.H,u=s.useState()[0];return u=typeof u.then=="function"?Ef(u):u,s=s.useState()[0],(Nt!==null?Nt.memoizedState:null)!==s&&(ot.flags|=1024),u}function Y0(){var s=vm!==0;return vm=0,s}function W0(s,u,h){u.updateQueue=s.updateQueue,u.flags&=-2053,s.lanes&=~h}function K0(s){if(ym){for(s=s.memoizedState;s!==null;){var u=s.queue;u!==null&&(u.pending=null),s=s.next}ym=!1}za=0,hn=Nt=ot=null,du=!1,kf=vm=0,mu=null}function sr(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return hn===null?ot.memoizedState=hn=s:hn=hn.next=s,hn}function sn(){if(Nt===null){var s=ot.alternate;s=s!==null?s.memoizedState:null}else s=Nt.next;var u=hn===null?ot.memoizedState:hn.next;if(u!==null)hn=u,Nt=s;else{if(s===null)throw ot.alternate===null?Error(r(467)):Error(r(310));Nt=s,s={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},hn===null?ot.memoizedState=hn=s:hn=hn.next=s}return hn}function bm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ef(s){var u=kf;return kf+=1,mu===null&&(mu=[]),s=wS(mu,s,u),u=ot,(hn===null?u.memoizedState:hn.next)===null&&(u=u.alternate,j.H=u===null||u.memoizedState===null?dT:ly),s}function xm(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return Ef(s);if(s.$$typeof===S)return $n(s)}throw Error(r(438,String(s)))}function Z0(s){var u=null,h=ot.updateQueue;if(h!==null&&(u=h.memoCache),u==null){var _=ot.alternate;_!==null&&(_=_.updateQueue,_!==null&&(_=_.memoCache,_!=null&&(u={data:_.data.map(function(v){return v.slice()}),index:0})))}if(u==null&&(u={data:[],index:0}),h===null&&(h=bm(),ot.updateQueue=h),h.memoCache=u,h=u.data[u.index],h===void 0)for(h=u.data[u.index]=Array(s),_=0;_<s;_++)h[_]=q;return u.index++,h}function La(s,u){return typeof u=="function"?u(s):u}function wm(s){var u=sn();return Q0(u,Nt,s)}function Q0(s,u,h){var _=s.queue;if(_===null)throw Error(r(311));_.lastRenderedReducer=h;var v=s.baseQueue,E=_.pending;if(E!==null){if(v!==null){var M=v.next;v.next=E.next,E.next=M}u.baseQueue=v=E,_.pending=null}if(E=s.baseState,v===null)s.memoizedState=E;else{u=v.next;var X=M=null,ee=null,oe=u,me=!1;do{var ve=oe.lane&-536870913;if(ve!==oe.lane?(pt&ve)===ve:(za&ve)===ve){var le=oe.revertLane;if(le===0)ee!==null&&(ee=ee.next={lane:0,revertLane:0,gesture:null,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null}),ve===lu&&(me=!0);else if((za&le)===le){oe=oe.next,le===lu&&(me=!0);continue}else ve={lane:0,revertLane:oe.revertLane,gesture:null,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null},ee===null?(X=ee=ve,M=E):ee=ee.next=ve,ot.lanes|=le,$o|=le;ve=oe.action,Hs&&h(E,ve),E=oe.hasEagerState?oe.eagerState:h(E,ve)}else le={lane:ve,revertLane:oe.revertLane,gesture:oe.gesture,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null},ee===null?(X=ee=le,M=E):ee=ee.next=le,ot.lanes|=ve,$o|=ve;oe=oe.next}while(oe!==null&&oe!==u);if(ee===null?M=E:ee.next=X,!Pr(E,s.memoizedState)&&(dn=!0,me&&(h=uu,h!==null)))throw h;s.memoizedState=E,s.baseState=M,s.baseQueue=ee,_.lastRenderedState=E}return v===null&&(_.lanes=0),[s.memoizedState,_.dispatch]}function J0(s){var u=sn(),h=u.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=s;var _=h.dispatch,v=h.pending,E=u.memoizedState;if(v!==null){h.pending=null;var M=v=v.next;do E=s(E,M.action),M=M.next;while(M!==v);Pr(E,u.memoizedState)||(dn=!0),u.memoizedState=E,u.baseQueue===null&&(u.baseState=E),h.lastRenderedState=E}return[E,_]}function LS(s,u,h){var _=ot,v=sn(),E=yt;if(E){if(h===void 0)throw Error(r(407));h=h()}else h=u();var M=!Pr((Nt||v).memoizedState,h);if(M&&(v.memoizedState=h,dn=!0),v=v.queue,ny(DS.bind(null,_,v,s),[s]),v.getSnapshot!==u||M||hn!==null&&hn.memoizedState.tag&1){if(_.flags|=2048,pu(9,{destroy:void 0},OS.bind(null,_,v,h,u),null),Mt===null)throw Error(r(349));E||(za&127)!==0||MS(_,u,h)}return h}function MS(s,u,h){s.flags|=16384,s={getSnapshot:u,value:h},u=ot.updateQueue,u===null?(u=bm(),ot.updateQueue=u,u.stores=[s]):(h=u.stores,h===null?u.stores=[s]:h.push(s))}function OS(s,u,h,_){u.value=h,u.getSnapshot=_,qS(u)&&IS(s)}function DS(s,u,h){return h(function(){qS(u)&&IS(s)})}function qS(s){var u=s.getSnapshot;s=s.value;try{var h=u();return!Pr(s,h)}catch{return!0}}function IS(s){var u=Ds(s,2);u!==null&&jr(u,s,2)}function ey(s){var u=sr();if(typeof s=="function"){var h=s;if(s=h(),Hs){Hn(!0);try{h()}finally{Hn(!1)}}}return u.memoizedState=u.baseState=s,u.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:La,lastRenderedState:s},u}function $S(s,u,h,_){return s.baseState=h,Q0(s,Nt,typeof _=="function"?_:La)}function DD(s,u,h,_,v){if(Sm(s))throw Error(r(485));if(s=u.action,s!==null){var E={payload:v,action:s,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(M){E.listeners.push(M)}};j.T!==null?h(!0):E.isTransition=!1,_(E),h=u.pending,h===null?(E.next=u.pending=E,PS(u,E)):(E.next=h.next,u.pending=h.next=E)}}function PS(s,u){var h=u.action,_=u.payload,v=s.state;if(u.isTransition){var E=j.T,M={};j.T=M;try{var X=h(v,_),ee=j.S;ee!==null&&ee(M,X),US(s,u,X)}catch(oe){ty(s,u,oe)}finally{E!==null&&M.types!==null&&(E.types=M.types),j.T=E}}else try{E=h(v,_),US(s,u,E)}catch(oe){ty(s,u,oe)}}function US(s,u,h){h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(function(_){BS(s,u,_)},function(_){return ty(s,u,_)}):BS(s,u,h)}function BS(s,u,h){u.status="fulfilled",u.value=h,GS(u),s.state=h,u=s.pending,u!==null&&(h=u.next,h===u?s.pending=null:(h=h.next,u.next=h,PS(s,h)))}function ty(s,u,h){var _=s.pending;if(s.pending=null,_!==null){_=_.next;do u.status="rejected",u.reason=h,GS(u),u=u.next;while(u!==_)}s.action=null}function GS(s){s=s.listeners;for(var u=0;u<s.length;u++)(0,s[u])()}function FS(s,u){return u}function HS(s,u){if(yt){var h=Mt.formState;if(h!==null){e:{var _=ot;if(yt){if(Ut){t:{for(var v=Ut,E=si;v.nodeType!==8;){if(!E){v=null;break t}if(v=ui(v.nextSibling),v===null){v=null;break t}}E=v.data,v=E==="F!"||E==="F"?v:null}if(v){Ut=ui(v.nextSibling),_=v.data==="F!";break e}}Ro(_)}_=!1}_&&(u=h[0])}}return h=sr(),h.memoizedState=h.baseState=u,_={pending:null,lanes:0,dispatch:null,lastRenderedReducer:FS,lastRenderedState:u},h.queue=_,h=cT.bind(null,ot,_),_.dispatch=h,_=ey(!1),E=sy.bind(null,ot,!1,_.queue),_=sr(),v={state:u,dispatch:null,action:s,pending:null},_.queue=v,h=DD.bind(null,ot,v,E,h),v.dispatch=h,_.memoizedState=s,[u,h,!1]}function VS(s){var u=sn();return XS(u,Nt,s)}function XS(s,u,h){if(u=Q0(s,u,FS)[0],s=wm(La)[0],typeof u=="object"&&u!==null&&typeof u.then=="function")try{var _=Ef(u)}catch(M){throw M===cu?hm:M}else _=u;u=sn();var v=u.queue,E=v.dispatch;return h!==u.memoizedState&&(ot.flags|=2048,pu(9,{destroy:void 0},qD.bind(null,v,h),null)),[_,E,s]}function qD(s,u){s.action=u}function YS(s){var u=sn(),h=Nt;if(h!==null)return XS(u,h,s);sn(),u=u.memoizedState,h=sn();var _=h.queue.dispatch;return h.memoizedState=s,[u,_,!1]}function pu(s,u,h,_){return s={tag:s,create:h,deps:_,inst:u,next:null},u=ot.updateQueue,u===null&&(u=bm(),ot.updateQueue=u),h=u.lastEffect,h===null?u.lastEffect=s.next=s:(_=h.next,h.next=s,s.next=_,u.lastEffect=s),s}function WS(){return sn().memoizedState}function km(s,u,h,_){var v=sr();ot.flags|=s,v.memoizedState=pu(1|u,{destroy:void 0},h,_===void 0?null:_)}function Em(s,u,h,_){var v=sn();_=_===void 0?null:_;var E=v.memoizedState.inst;Nt!==null&&_!==null&&V0(_,Nt.memoizedState.deps)?v.memoizedState=pu(u,E,h,_):(ot.flags|=s,v.memoizedState=pu(1|u,E,h,_))}function KS(s,u){km(8390656,8,s,u)}function ny(s,u){Em(2048,8,s,u)}function ID(s){ot.flags|=4;var u=ot.updateQueue;if(u===null)u=bm(),ot.updateQueue=u,u.events=[s];else{var h=u.events;h===null?u.events=[s]:h.push(s)}}function ZS(s){var u=sn().memoizedState;return ID({ref:u,nextImpl:s}),function(){if((Et&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}function QS(s,u){return Em(4,2,s,u)}function JS(s,u){return Em(4,4,s,u)}function eT(s,u){if(typeof u=="function"){s=s();var h=u(s);return function(){typeof h=="function"?h():u(null)}}if(u!=null)return s=s(),u.current=s,function(){u.current=null}}function tT(s,u,h){h=h!=null?h.concat([s]):null,Em(4,4,eT.bind(null,u,s),h)}function ry(){}function nT(s,u){var h=sn();u=u===void 0?null:u;var _=h.memoizedState;return u!==null&&V0(u,_[1])?_[0]:(h.memoizedState=[s,u],s)}function rT(s,u){var h=sn();u=u===void 0?null:u;var _=h.memoizedState;if(u!==null&&V0(u,_[1]))return _[0];if(_=s(),Hs){Hn(!0);try{s()}finally{Hn(!1)}}return h.memoizedState=[_,u],_}function iy(s,u,h){return h===void 0||(za&1073741824)!==0&&(pt&261930)===0?s.memoizedState=u:(s.memoizedState=h,s=i3(),ot.lanes|=s,$o|=s,h)}function iT(s,u,h,_){return Pr(h,u)?h:hu.current!==null?(s=iy(s,h,_),Pr(s,u)||(dn=!0),s):(za&42)===0||(za&1073741824)!==0&&(pt&261930)===0?(dn=!0,s.memoizedState=h):(s=i3(),ot.lanes|=s,$o|=s,u)}function aT(s,u,h,_,v){var E=N.p;N.p=E!==0&&8>E?E:8;var M=j.T,X={};j.T=X,sy(s,!1,u,h);try{var ee=v(),oe=j.S;if(oe!==null&&oe(X,ee),ee!==null&&typeof ee=="object"&&typeof ee.then=="function"){var me=LD(ee,_);Sf(s,u,me,Vr(s))}else Sf(s,u,_,Vr(s))}catch(ve){Sf(s,u,{then:function(){},status:"rejected",reason:ve},Vr())}finally{N.p=E,M!==null&&X.types!==null&&(M.types=X.types),j.T=M}}function $D(){}function ay(s,u,h,_){if(s.tag!==5)throw Error(r(476));var v=oT(s).queue;aT(s,v,u,F,h===null?$D:function(){return sT(s),h(_)})}function oT(s){var u=s.memoizedState;if(u!==null)return u;u={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:La,lastRenderedState:F},next:null};var h={};return u.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:La,lastRenderedState:h},next:null},s.memoizedState=u,s=s.alternate,s!==null&&(s.memoizedState=u),u}function sT(s){var u=oT(s);u.next===null&&(u=s.alternate.memoizedState),Sf(s,u.next.queue,{},Vr())}function oy(){return $n(Bf)}function lT(){return sn().memoizedState}function uT(){return sn().memoizedState}function PD(s){for(var u=s.return;u!==null;){switch(u.tag){case 24:case 3:var h=Vr();s=Lo(h);var _=Mo(u,s,h);_!==null&&(jr(_,u,h),bf(_,u,h)),u={cache:O0()},s.payload=u;return}u=u.return}}function UD(s,u,h){var _=Vr();h={lane:_,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},Sm(s)?fT(u,h):(h=E0(s,u,h,_),h!==null&&(jr(h,s,_),hT(h,u,_)))}function cT(s,u,h){var _=Vr();Sf(s,u,h,_)}function Sf(s,u,h,_){var v={lane:_,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null};if(Sm(s))fT(u,v);else{var E=s.alternate;if(s.lanes===0&&(E===null||E.lanes===0)&&(E=u.lastRenderedReducer,E!==null))try{var M=u.lastRenderedState,X=E(M,h);if(v.hasEagerState=!0,v.eagerState=X,Pr(X,M))return am(s,u,v,0),Mt===null&&im(),!1}catch{}finally{}if(h=E0(s,u,v,_),h!==null)return jr(h,s,_),hT(h,u,_),!0}return!1}function sy(s,u,h,_){if(_={lane:2,revertLane:$y(),gesture:null,action:_,hasEagerState:!1,eagerState:null,next:null},Sm(s)){if(u)throw Error(r(479))}else u=E0(s,h,_,2),u!==null&&jr(u,s,2)}function Sm(s){var u=s.alternate;return s===ot||u!==null&&u===ot}function fT(s,u){du=ym=!0;var h=s.pending;h===null?u.next=u:(u.next=h.next,h.next=u),s.pending=u}function hT(s,u,h){if((h&4194048)!==0){var _=u.lanes;_&=s.pendingLanes,h|=_,u.lanes=h,yo(s,h)}}var Tf={readContext:$n,use:xm,useCallback:en,useContext:en,useEffect:en,useImperativeHandle:en,useLayoutEffect:en,useInsertionEffect:en,useMemo:en,useReducer:en,useRef:en,useState:en,useDebugValue:en,useDeferredValue:en,useTransition:en,useSyncExternalStore:en,useId:en,useHostTransitionStatus:en,useFormState:en,useActionState:en,useOptimistic:en,useMemoCache:en,useCacheRefresh:en};Tf.useEffectEvent=en;var dT={readContext:$n,use:xm,useCallback:function(s,u){return sr().memoizedState=[s,u===void 0?null:u],s},useContext:$n,useEffect:KS,useImperativeHandle:function(s,u,h){h=h!=null?h.concat([s]):null,km(4194308,4,eT.bind(null,u,s),h)},useLayoutEffect:function(s,u){return km(4194308,4,s,u)},useInsertionEffect:function(s,u){km(4,2,s,u)},useMemo:function(s,u){var h=sr();u=u===void 0?null:u;var _=s();if(Hs){Hn(!0);try{s()}finally{Hn(!1)}}return h.memoizedState=[_,u],_},useReducer:function(s,u,h){var _=sr();if(h!==void 0){var v=h(u);if(Hs){Hn(!0);try{h(u)}finally{Hn(!1)}}}else v=u;return _.memoizedState=_.baseState=v,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:v},_.queue=s,s=s.dispatch=UD.bind(null,ot,s),[_.memoizedState,s]},useRef:function(s){var u=sr();return s={current:s},u.memoizedState=s},useState:function(s){s=ey(s);var u=s.queue,h=cT.bind(null,ot,u);return u.dispatch=h,[s.memoizedState,h]},useDebugValue:ry,useDeferredValue:function(s,u){var h=sr();return iy(h,s,u)},useTransition:function(){var s=ey(!1);return s=aT.bind(null,ot,s.queue,!0,!1),sr().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,u,h){var _=ot,v=sr();if(yt){if(h===void 0)throw Error(r(407));h=h()}else{if(h=u(),Mt===null)throw Error(r(349));(pt&127)!==0||MS(_,u,h)}v.memoizedState=h;var E={value:h,getSnapshot:u};return v.queue=E,KS(DS.bind(null,_,E,s),[s]),_.flags|=2048,pu(9,{destroy:void 0},OS.bind(null,_,E,h,u),null),h},useId:function(){var s=sr(),u=Mt.identifierPrefix;if(yt){var h=aa,_=ia;h=(_&~(1<<32-St(_)-1)).toString(32)+h,u="_"+u+"R_"+h,h=vm++,0<h&&(u+="H"+h.toString(32)),u+="_"}else h=MD++,u="_"+u+"r_"+h.toString(32)+"_";return s.memoizedState=u},useHostTransitionStatus:oy,useFormState:HS,useActionState:HS,useOptimistic:function(s){var u=sr();u.memoizedState=u.baseState=s;var h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return u.queue=h,u=sy.bind(null,ot,!0,h),h.dispatch=u,[s,u]},useMemoCache:Z0,useCacheRefresh:function(){return sr().memoizedState=PD.bind(null,ot)},useEffectEvent:function(s){var u=sr(),h={impl:s};return u.memoizedState=h,function(){if((Et&2)!==0)throw Error(r(440));return h.impl.apply(void 0,arguments)}}},ly={readContext:$n,use:xm,useCallback:nT,useContext:$n,useEffect:ny,useImperativeHandle:tT,useInsertionEffect:QS,useLayoutEffect:JS,useMemo:rT,useReducer:wm,useRef:WS,useState:function(){return wm(La)},useDebugValue:ry,useDeferredValue:function(s,u){var h=sn();return iT(h,Nt.memoizedState,s,u)},useTransition:function(){var s=wm(La)[0],u=sn().memoizedState;return[typeof s=="boolean"?s:Ef(s),u]},useSyncExternalStore:LS,useId:lT,useHostTransitionStatus:oy,useFormState:VS,useActionState:VS,useOptimistic:function(s,u){var h=sn();return $S(h,Nt,s,u)},useMemoCache:Z0,useCacheRefresh:uT};ly.useEffectEvent=ZS;var mT={readContext:$n,use:xm,useCallback:nT,useContext:$n,useEffect:ny,useImperativeHandle:tT,useInsertionEffect:QS,useLayoutEffect:JS,useMemo:rT,useReducer:J0,useRef:WS,useState:function(){return J0(La)},useDebugValue:ry,useDeferredValue:function(s,u){var h=sn();return Nt===null?iy(h,s,u):iT(h,Nt.memoizedState,s,u)},useTransition:function(){var s=J0(La)[0],u=sn().memoizedState;return[typeof s=="boolean"?s:Ef(s),u]},useSyncExternalStore:LS,useId:lT,useHostTransitionStatus:oy,useFormState:YS,useActionState:YS,useOptimistic:function(s,u){var h=sn();return Nt!==null?$S(h,Nt,s,u):(h.baseState=s,[s,h.queue.dispatch])},useMemoCache:Z0,useCacheRefresh:uT};mT.useEffectEvent=ZS;function uy(s,u,h,_){u=s.memoizedState,h=h(_,u),h=h==null?u:m({},u,h),s.memoizedState=h,s.lanes===0&&(s.updateQueue.baseState=h)}var cy={enqueueSetState:function(s,u,h){s=s._reactInternals;var _=Vr(),v=Lo(_);v.payload=u,h!=null&&(v.callback=h),u=Mo(s,v,_),u!==null&&(jr(u,s,_),bf(u,s,_))},enqueueReplaceState:function(s,u,h){s=s._reactInternals;var _=Vr(),v=Lo(_);v.tag=1,v.payload=u,h!=null&&(v.callback=h),u=Mo(s,v,_),u!==null&&(jr(u,s,_),bf(u,s,_))},enqueueForceUpdate:function(s,u){s=s._reactInternals;var h=Vr(),_=Lo(h);_.tag=2,u!=null&&(_.callback=u),u=Mo(s,_,h),u!==null&&(jr(u,s,h),bf(u,s,h))}};function pT(s,u,h,_,v,E,M){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(_,E,M):u.prototype&&u.prototype.isPureReactComponent?!hf(h,_)||!hf(v,E):!0}function _T(s,u,h,_){s=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(h,_),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(h,_),u.state!==s&&cy.enqueueReplaceState(u,u.state,null)}function Vs(s,u){var h=u;if("ref"in u){h={};for(var _ in u)_!=="ref"&&(h[_]=u[_])}if(s=s.defaultProps){h===u&&(h=m({},h));for(var v in s)h[v]===void 0&&(h[v]=s[v])}return h}function gT(s){rm(s)}function yT(s){console.error(s)}function vT(s){rm(s)}function Tm(s,u){try{var h=s.onUncaughtError;h(u.value,{componentStack:u.stack})}catch(_){setTimeout(function(){throw _})}}function bT(s,u,h){try{var _=s.onCaughtError;_(h.value,{componentStack:h.stack,errorBoundary:u.tag===1?u.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function fy(s,u,h){return h=Lo(h),h.tag=3,h.payload={element:null},h.callback=function(){Tm(s,u)},h}function xT(s){return s=Lo(s),s.tag=3,s}function wT(s,u,h,_){var v=h.type.getDerivedStateFromError;if(typeof v=="function"){var E=_.value;s.payload=function(){return v(E)},s.callback=function(){bT(u,h,_)}}var M=h.stateNode;M!==null&&typeof M.componentDidCatch=="function"&&(s.callback=function(){bT(u,h,_),typeof v!="function"&&(Po===null?Po=new Set([this]):Po.add(this));var X=_.stack;this.componentDidCatch(_.value,{componentStack:X!==null?X:""})})}function BD(s,u,h,_,v){if(h.flags|=32768,_!==null&&typeof _=="object"&&typeof _.then=="function"){if(u=h.alternate,u!==null&&su(u,h,v,!0),h=Br.current,h!==null){switch(h.tag){case 31:case 13:return li===null?Im():h.alternate===null&&tn===0&&(tn=3),h.flags&=-257,h.flags|=65536,h.lanes=v,_===dm?h.flags|=16384:(u=h.updateQueue,u===null?h.updateQueue=new Set([_]):u.add(_),Dy(s,_,v)),!1;case 22:return h.flags|=65536,_===dm?h.flags|=16384:(u=h.updateQueue,u===null?(u={transitions:null,markerInstances:null,retryQueue:new Set([_])},h.updateQueue=u):(h=u.retryQueue,h===null?u.retryQueue=new Set([_]):h.add(_)),Dy(s,_,v)),!1}throw Error(r(435,h.tag))}return Dy(s,_,v),Im(),!1}if(yt)return u=Br.current,u!==null?((u.flags&65536)===0&&(u.flags|=256),u.flags|=65536,u.lanes=v,_!==R0&&(s=Error(r(422),{cause:_}),pf(ii(s,h)))):(_!==R0&&(u=Error(r(423),{cause:_}),pf(ii(u,h))),s=s.current.alternate,s.flags|=65536,v&=-v,s.lanes|=v,_=ii(_,h),v=fy(s.stateNode,_,v),U0(s,v),tn!==4&&(tn=2)),!1;var E=Error(r(520),{cause:_});if(E=ii(E,h),Mf===null?Mf=[E]:Mf.push(E),tn!==4&&(tn=2),u===null)return!0;_=ii(_,h),h=u;do{switch(h.tag){case 3:return h.flags|=65536,s=v&-v,h.lanes|=s,s=fy(h.stateNode,_,s),U0(h,s),!1;case 1:if(u=h.type,E=h.stateNode,(h.flags&128)===0&&(typeof u.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(Po===null||!Po.has(E))))return h.flags|=65536,v&=-v,h.lanes|=v,v=xT(v),wT(v,s,h,_),U0(h,v),!1}h=h.return}while(h!==null);return!1}var hy=Error(r(461)),dn=!1;function Pn(s,u,h,_){u.child=s===null?TS(u,null,h,_):Fs(u,s.child,h,_)}function kT(s,u,h,_,v){h=h.render;var E=u.ref;if("ref"in _){var M={};for(var X in _)X!=="ref"&&(M[X]=_[X])}else M=_;return Ps(u),_=X0(s,u,h,M,E,v),X=Y0(),s!==null&&!dn?(W0(s,u,v),Ma(s,u,v)):(yt&&X&&A0(u),u.flags|=1,Pn(s,u,_,v),u.child)}function ET(s,u,h,_,v){if(s===null){var E=h.type;return typeof E=="function"&&!S0(E)&&E.defaultProps===void 0&&h.compare===null?(u.tag=15,u.type=E,ST(s,u,E,_,v)):(s=sm(h.type,null,_,u,u.mode,v),s.ref=u.ref,s.return=u,u.child=s)}if(E=s.child,!by(s,v)){var M=E.memoizedProps;if(h=h.compare,h=h!==null?h:hf,h(M,_)&&s.ref===u.ref)return Ma(s,u,v)}return u.flags|=1,s=Aa(E,_),s.ref=u.ref,s.return=u,u.child=s}function ST(s,u,h,_,v){if(s!==null){var E=s.memoizedProps;if(hf(E,_)&&s.ref===u.ref)if(dn=!1,u.pendingProps=_=E,by(s,v))(s.flags&131072)!==0&&(dn=!0);else return u.lanes=s.lanes,Ma(s,u,v)}return dy(s,u,h,_,v)}function TT(s,u,h,_){var v=_.children,E=s!==null?s.memoizedState:null;if(s===null&&u.stateNode===null&&(u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),_.mode==="hidden"){if((u.flags&128)!==0){if(E=E!==null?E.baseLanes|h:h,s!==null){for(_=u.child=s.child,v=0;_!==null;)v=v|_.lanes|_.childLanes,_=_.sibling;_=v&~E}else _=0,u.child=null;return CT(s,u,E,h,_)}if((h&536870912)!==0)u.memoizedState={baseLanes:0,cachePool:null},s!==null&&fm(u,E!==null?E.cachePool:null),E!==null?jS(u,E):G0(),RS(u);else return _=u.lanes=536870912,CT(s,u,E!==null?E.baseLanes|h:h,h,_)}else E!==null?(fm(u,E.cachePool),jS(u,E),Do(),u.memoizedState=null):(s!==null&&fm(u,null),G0(),Do());return Pn(s,u,v,h),u.child}function Cf(s,u){return s!==null&&s.tag===22||u.stateNode!==null||(u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.sibling}function CT(s,u,h,_,v){var E=q0();return E=E===null?null:{parent:fn._currentValue,pool:E},u.memoizedState={baseLanes:h,cachePool:E},s!==null&&fm(u,null),G0(),RS(u),s!==null&&su(s,u,_,!0),u.childLanes=v,null}function Cm(s,u){return u=jm({mode:u.mode,children:u.children},s.mode),u.ref=s.ref,s.child=u,u.return=s,u}function AT(s,u,h){return Fs(u,s.child,null,h),s=Cm(u,u.pendingProps),s.flags|=2,Gr(u),u.memoizedState=null,s}function GD(s,u,h){var _=u.pendingProps,v=(u.flags&128)!==0;if(u.flags&=-129,s===null){if(yt){if(_.mode==="hidden")return s=Cm(u,_),u.lanes=536870912,Cf(null,s);if(H0(u),(s=Ut)?(s=P3(s,si),s=s!==null&&s.data==="&"?s:null,s!==null&&(u.memoizedState={dehydrated:s,treeContext:Ao!==null?{id:ia,overflow:aa}:null,retryLane:536870912,hydrationErrors:null},h=fS(s),h.return=u,u.child=h,In=u,Ut=null)):s=null,s===null)throw Ro(u);return u.lanes=536870912,null}return Cm(u,_)}var E=s.memoizedState;if(E!==null){var M=E.dehydrated;if(H0(u),v)if(u.flags&256)u.flags&=-257,u=AT(s,u,h);else if(u.memoizedState!==null)u.child=s.child,u.flags|=128,u=null;else throw Error(r(558));else if(dn||su(s,u,h,!1),v=(h&s.childLanes)!==0,dn||v){if(_=Mt,_!==null&&(M=Fd(_,h),M!==0&&M!==E.retryLane))throw E.retryLane=M,Ds(s,M),jr(_,s,M),hy;Im(),u=AT(s,u,h)}else s=E.treeContext,Ut=ui(M.nextSibling),In=u,yt=!0,jo=null,si=!1,s!==null&&mS(u,s),u=Cm(u,_),u.flags|=4096;return u}return s=Aa(s.child,{mode:_.mode,children:_.children}),s.ref=u.ref,u.child=s,s.return=u,s}function Am(s,u){var h=u.ref;if(h===null)s!==null&&s.ref!==null&&(u.flags|=4194816);else{if(typeof h!="function"&&typeof h!="object")throw Error(r(284));(s===null||s.ref!==h)&&(u.flags|=4194816)}}function dy(s,u,h,_,v){return Ps(u),h=X0(s,u,h,_,void 0,v),_=Y0(),s!==null&&!dn?(W0(s,u,v),Ma(s,u,v)):(yt&&_&&A0(u),u.flags|=1,Pn(s,u,h,v),u.child)}function jT(s,u,h,_,v,E){return Ps(u),u.updateQueue=null,h=zS(u,_,h,v),NS(s),_=Y0(),s!==null&&!dn?(W0(s,u,E),Ma(s,u,E)):(yt&&_&&A0(u),u.flags|=1,Pn(s,u,h,E),u.child)}function RT(s,u,h,_,v){if(Ps(u),u.stateNode===null){var E=ru,M=h.contextType;typeof M=="object"&&M!==null&&(E=$n(M)),E=new h(_,E),u.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,E.updater=cy,u.stateNode=E,E._reactInternals=u,E=u.stateNode,E.props=_,E.state=u.memoizedState,E.refs={},$0(u),M=h.contextType,E.context=typeof M=="object"&&M!==null?$n(M):ru,E.state=u.memoizedState,M=h.getDerivedStateFromProps,typeof M=="function"&&(uy(u,h,M,_),E.state=u.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(M=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),M!==E.state&&cy.enqueueReplaceState(E,E.state,null),wf(u,_,E,v),xf(),E.state=u.memoizedState),typeof E.componentDidMount=="function"&&(u.flags|=4194308),_=!0}else if(s===null){E=u.stateNode;var X=u.memoizedProps,ee=Vs(h,X);E.props=ee;var oe=E.context,me=h.contextType;M=ru,typeof me=="object"&&me!==null&&(M=$n(me));var ve=h.getDerivedStateFromProps;me=typeof ve=="function"||typeof E.getSnapshotBeforeUpdate=="function",X=u.pendingProps!==X,me||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(X||oe!==M)&&_T(u,E,_,M),zo=!1;var le=u.memoizedState;E.state=le,wf(u,_,E,v),xf(),oe=u.memoizedState,X||le!==oe||zo?(typeof ve=="function"&&(uy(u,h,ve,_),oe=u.memoizedState),(ee=zo||pT(u,h,ee,_,le,oe,M))?(me||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(u.flags|=4194308)):(typeof E.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=_,u.memoizedState=oe),E.props=_,E.state=oe,E.context=M,_=ee):(typeof E.componentDidMount=="function"&&(u.flags|=4194308),_=!1)}else{E=u.stateNode,P0(s,u),M=u.memoizedProps,me=Vs(h,M),E.props=me,ve=u.pendingProps,le=E.context,oe=h.contextType,ee=ru,typeof oe=="object"&&oe!==null&&(ee=$n(oe)),X=h.getDerivedStateFromProps,(oe=typeof X=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(M!==ve||le!==ee)&&_T(u,E,_,ee),zo=!1,le=u.memoizedState,E.state=le,wf(u,_,E,v),xf();var fe=u.memoizedState;M!==ve||le!==fe||zo||s!==null&&s.dependencies!==null&&um(s.dependencies)?(typeof X=="function"&&(uy(u,h,X,_),fe=u.memoizedState),(me=zo||pT(u,h,me,_,le,fe,ee)||s!==null&&s.dependencies!==null&&um(s.dependencies))?(oe||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(_,fe,ee),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(_,fe,ee)),typeof E.componentDidUpdate=="function"&&(u.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof E.componentDidUpdate!="function"||M===s.memoizedProps&&le===s.memoizedState||(u.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||M===s.memoizedProps&&le===s.memoizedState||(u.flags|=1024),u.memoizedProps=_,u.memoizedState=fe),E.props=_,E.state=fe,E.context=ee,_=me):(typeof E.componentDidUpdate!="function"||M===s.memoizedProps&&le===s.memoizedState||(u.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||M===s.memoizedProps&&le===s.memoizedState||(u.flags|=1024),_=!1)}return E=_,Am(s,u),_=(u.flags&128)!==0,E||_?(E=u.stateNode,h=_&&typeof h.getDerivedStateFromError!="function"?null:E.render(),u.flags|=1,s!==null&&_?(u.child=Fs(u,s.child,null,v),u.child=Fs(u,null,h,v)):Pn(s,u,h,v),u.memoizedState=E.state,s=u.child):s=Ma(s,u,v),s}function NT(s,u,h,_){return Is(),u.flags|=256,Pn(s,u,h,_),u.child}var my={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function py(s){return{baseLanes:s,cachePool:bS()}}function _y(s,u,h){return s=s!==null?s.childLanes&~h:0,u&&(s|=Hr),s}function zT(s,u,h){var _=u.pendingProps,v=!1,E=(u.flags&128)!==0,M;if((M=E)||(M=s!==null&&s.memoizedState===null?!1:(on.current&2)!==0),M&&(v=!0,u.flags&=-129),M=(u.flags&32)!==0,u.flags&=-33,s===null){if(yt){if(v?Oo(u):Do(),(s=Ut)?(s=P3(s,si),s=s!==null&&s.data!=="&"?s:null,s!==null&&(u.memoizedState={dehydrated:s,treeContext:Ao!==null?{id:ia,overflow:aa}:null,retryLane:536870912,hydrationErrors:null},h=fS(s),h.return=u,u.child=h,In=u,Ut=null)):s=null,s===null)throw Ro(u);return Qy(s)?u.lanes=32:u.lanes=536870912,null}var X=_.children;return _=_.fallback,v?(Do(),v=u.mode,X=jm({mode:"hidden",children:X},v),_=qs(_,v,h,null),X.return=u,_.return=u,X.sibling=_,u.child=X,_=u.child,_.memoizedState=py(h),_.childLanes=_y(s,M,h),u.memoizedState=my,Cf(null,_)):(Oo(u),gy(u,X))}var ee=s.memoizedState;if(ee!==null&&(X=ee.dehydrated,X!==null)){if(E)u.flags&256?(Oo(u),u.flags&=-257,u=yy(s,u,h)):u.memoizedState!==null?(Do(),u.child=s.child,u.flags|=128,u=null):(Do(),X=_.fallback,v=u.mode,_=jm({mode:"visible",children:_.children},v),X=qs(X,v,h,null),X.flags|=2,_.return=u,X.return=u,_.sibling=X,u.child=_,Fs(u,s.child,null,h),_=u.child,_.memoizedState=py(h),_.childLanes=_y(s,M,h),u.memoizedState=my,u=Cf(null,_));else if(Oo(u),Qy(X)){if(M=X.nextSibling&&X.nextSibling.dataset,M)var oe=M.dgst;M=oe,_=Error(r(419)),_.stack="",_.digest=M,pf({value:_,source:null,stack:null}),u=yy(s,u,h)}else if(dn||su(s,u,h,!1),M=(h&s.childLanes)!==0,dn||M){if(M=Mt,M!==null&&(_=Fd(M,h),_!==0&&_!==ee.retryLane))throw ee.retryLane=_,Ds(s,_),jr(M,s,_),hy;Zy(X)||Im(),u=yy(s,u,h)}else Zy(X)?(u.flags|=192,u.child=s.child,u=null):(s=ee.treeContext,Ut=ui(X.nextSibling),In=u,yt=!0,jo=null,si=!1,s!==null&&mS(u,s),u=gy(u,_.children),u.flags|=4096);return u}return v?(Do(),X=_.fallback,v=u.mode,ee=s.child,oe=ee.sibling,_=Aa(ee,{mode:"hidden",children:_.children}),_.subtreeFlags=ee.subtreeFlags&65011712,oe!==null?X=Aa(oe,X):(X=qs(X,v,h,null),X.flags|=2),X.return=u,_.return=u,_.sibling=X,u.child=_,Cf(null,_),_=u.child,X=s.child.memoizedState,X===null?X=py(h):(v=X.cachePool,v!==null?(ee=fn._currentValue,v=v.parent!==ee?{parent:ee,pool:ee}:v):v=bS(),X={baseLanes:X.baseLanes|h,cachePool:v}),_.memoizedState=X,_.childLanes=_y(s,M,h),u.memoizedState=my,Cf(s.child,_)):(Oo(u),h=s.child,s=h.sibling,h=Aa(h,{mode:"visible",children:_.children}),h.return=u,h.sibling=null,s!==null&&(M=u.deletions,M===null?(u.deletions=[s],u.flags|=16):M.push(s)),u.child=h,u.memoizedState=null,h)}function gy(s,u){return u=jm({mode:"visible",children:u},s.mode),u.return=s,s.child=u}function jm(s,u){return s=Ur(22,s,null,u),s.lanes=0,s}function yy(s,u,h){return Fs(u,s.child,null,h),s=gy(u,u.pendingProps.children),s.flags|=2,u.memoizedState=null,s}function LT(s,u,h){s.lanes|=u;var _=s.alternate;_!==null&&(_.lanes|=u),L0(s.return,u,h)}function vy(s,u,h,_,v,E){var M=s.memoizedState;M===null?s.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:_,tail:h,tailMode:v,treeForkCount:E}:(M.isBackwards=u,M.rendering=null,M.renderingStartTime=0,M.last=_,M.tail=h,M.tailMode=v,M.treeForkCount=E)}function MT(s,u,h){var _=u.pendingProps,v=_.revealOrder,E=_.tail;_=_.children;var M=on.current,X=(M&2)!==0;if(X?(M=M&1|2,u.flags|=128):M&=1,$(on,M),Pn(s,u,_,h),_=yt?mf:0,!X&&s!==null&&(s.flags&128)!==0)e:for(s=u.child;s!==null;){if(s.tag===13)s.memoizedState!==null&<(s,h,u);else if(s.tag===19)LT(s,h,u);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===u)break e;for(;s.sibling===null;){if(s.return===null||s.return===u)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}switch(v){case"forwards":for(h=u.child,v=null;h!==null;)s=h.alternate,s!==null&&gm(s)===null&&(v=h),h=h.sibling;h=v,h===null?(v=u.child,u.child=null):(v=h.sibling,h.sibling=null),vy(u,!1,v,h,E,_);break;case"backwards":case"unstable_legacy-backwards":for(h=null,v=u.child,u.child=null;v!==null;){if(s=v.alternate,s!==null&&gm(s)===null){u.child=v;break}s=v.sibling,v.sibling=h,h=v,v=s}vy(u,!0,h,null,E,_);break;case"together":vy(u,!1,null,null,void 0,_);break;default:u.memoizedState=null}return u.child}function Ma(s,u,h){if(s!==null&&(u.dependencies=s.dependencies),$o|=u.lanes,(h&u.childLanes)===0)if(s!==null){if(su(s,u,h,!1),(h&u.childLanes)===0)return null}else return null;if(s!==null&&u.child!==s.child)throw Error(r(153));if(u.child!==null){for(s=u.child,h=Aa(s,s.pendingProps),u.child=h,h.return=u;s.sibling!==null;)s=s.sibling,h=h.sibling=Aa(s,s.pendingProps),h.return=u;h.sibling=null}return u.child}function by(s,u){return(s.lanes&u)!==0?!0:(s=s.dependencies,!!(s!==null&&um(s)))}function FD(s,u,h){switch(u.tag){case 3:Pe(u,u.stateNode.containerInfo),No(u,fn,s.memoizedState.cache),Is();break;case 27:case 5:Ae(u);break;case 4:Pe(u,u.stateNode.containerInfo);break;case 10:No(u,u.type,u.memoizedProps.value);break;case 31:if(u.memoizedState!==null)return u.flags|=128,H0(u),null;break;case 13:var _=u.memoizedState;if(_!==null)return _.dehydrated!==null?(Oo(u),u.flags|=128,null):(h&u.child.childLanes)!==0?zT(s,u,h):(Oo(u),s=Ma(s,u,h),s!==null?s.sibling:null);Oo(u);break;case 19:var v=(s.flags&128)!==0;if(_=(h&u.childLanes)!==0,_||(su(s,u,h,!1),_=(h&u.childLanes)!==0),v){if(_)return MT(s,u,h);u.flags|=128}if(v=u.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),$(on,on.current),_)break;return null;case 22:return u.lanes=0,TT(s,u,h,u.pendingProps);case 24:No(u,fn,s.memoizedState.cache)}return Ma(s,u,h)}function OT(s,u,h){if(s!==null)if(s.memoizedProps!==u.pendingProps)dn=!0;else{if(!by(s,h)&&(u.flags&128)===0)return dn=!1,FD(s,u,h);dn=(s.flags&131072)!==0}else dn=!1,yt&&(u.flags&1048576)!==0&&dS(u,mf,u.index);switch(u.lanes=0,u.tag){case 16:e:{var _=u.pendingProps;if(s=Bs(u.elementType),u.type=s,typeof s=="function")S0(s)?(_=Vs(s,_),u.tag=1,u=RT(null,u,s,_,h)):(u.tag=0,u=dy(null,u,s,_,h));else{if(s!=null){var v=s.$$typeof;if(v===T){u.tag=11,u=kT(null,u,s,_,h);break e}else if(v===L){u.tag=14,u=ET(null,u,s,_,h);break e}}throw u=B(s)||s,Error(r(306,u,""))}}return u;case 0:return dy(s,u,u.type,u.pendingProps,h);case 1:return _=u.type,v=Vs(_,u.pendingProps),RT(s,u,_,v,h);case 3:e:{if(Pe(u,u.stateNode.containerInfo),s===null)throw Error(r(387));_=u.pendingProps;var E=u.memoizedState;v=E.element,P0(s,u),wf(u,_,null,h);var M=u.memoizedState;if(_=M.cache,No(u,fn,_),_!==E.cache&&M0(u,[fn],h,!0),xf(),_=M.element,E.isDehydrated)if(E={element:_,isDehydrated:!1,cache:M.cache},u.updateQueue.baseState=E,u.memoizedState=E,u.flags&256){u=NT(s,u,_,h);break e}else if(_!==v){v=ii(Error(r(424)),u),pf(v),u=NT(s,u,_,h);break e}else{switch(s=u.stateNode.containerInfo,s.nodeType){case 9:s=s.body;break;default:s=s.nodeName==="HTML"?s.ownerDocument.body:s}for(Ut=ui(s.firstChild),In=u,yt=!0,jo=null,si=!0,h=TS(u,null,_,h),u.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling}else{if(Is(),_===v){u=Ma(s,u,h);break e}Pn(s,u,_,h)}u=u.child}return u;case 26:return Am(s,u),s===null?(h=V3(u.type,null,u.pendingProps,null))?u.memoizedState=h:yt||(h=u.type,s=u.pendingProps,_=Hm(xe.current).createElement(h),_[Le]=u,_[Vn]=s,Un(_,h,s),cn(_),u.stateNode=_):u.memoizedState=V3(u.type,s.memoizedProps,u.pendingProps,s.memoizedState),null;case 27:return Ae(u),s===null&&yt&&(_=u.stateNode=G3(u.type,u.pendingProps,xe.current),In=u,si=!0,v=Ut,Fo(u.type)?(Jy=v,Ut=ui(_.firstChild)):Ut=v),Pn(s,u,u.pendingProps.children,h),Am(s,u),s===null&&(u.flags|=4194304),u.child;case 5:return s===null&&yt&&((v=_=Ut)&&(_=bq(_,u.type,u.pendingProps,si),_!==null?(u.stateNode=_,In=u,Ut=ui(_.firstChild),si=!1,v=!0):v=!1),v||Ro(u)),Ae(u),v=u.type,E=u.pendingProps,M=s!==null?s.memoizedProps:null,_=E.children,Yy(v,E)?_=null:M!==null&&Yy(v,M)&&(u.flags|=32),u.memoizedState!==null&&(v=X0(s,u,OD,null,null,h),Bf._currentValue=v),Am(s,u),Pn(s,u,_,h),u.child;case 6:return s===null&&yt&&((s=h=Ut)&&(h=xq(h,u.pendingProps,si),h!==null?(u.stateNode=h,In=u,Ut=null,s=!0):s=!1),s||Ro(u)),null;case 13:return zT(s,u,h);case 4:return Pe(u,u.stateNode.containerInfo),_=u.pendingProps,s===null?u.child=Fs(u,null,_,h):Pn(s,u,_,h),u.child;case 11:return kT(s,u,u.type,u.pendingProps,h);case 7:return Pn(s,u,u.pendingProps,h),u.child;case 8:return Pn(s,u,u.pendingProps.children,h),u.child;case 12:return Pn(s,u,u.pendingProps.children,h),u.child;case 10:return _=u.pendingProps,No(u,u.type,_.value),Pn(s,u,_.children,h),u.child;case 9:return v=u.type._context,_=u.pendingProps.children,Ps(u),v=$n(v),_=_(v),u.flags|=1,Pn(s,u,_,h),u.child;case 14:return ET(s,u,u.type,u.pendingProps,h);case 15:return ST(s,u,u.type,u.pendingProps,h);case 19:return MT(s,u,h);case 31:return GD(s,u,h);case 22:return TT(s,u,h,u.pendingProps);case 24:return Ps(u),_=$n(fn),s===null?(v=q0(),v===null&&(v=Mt,E=O0(),v.pooledCache=E,E.refCount++,E!==null&&(v.pooledCacheLanes|=h),v=E),u.memoizedState={parent:_,cache:v},$0(u),No(u,fn,v)):((s.lanes&h)!==0&&(P0(s,u),wf(u,null,null,h),xf()),v=s.memoizedState,E=u.memoizedState,v.parent!==_?(v={parent:_,cache:_},u.memoizedState=v,u.lanes===0&&(u.memoizedState=u.updateQueue.baseState=v),No(u,fn,_)):(_=E.cache,No(u,fn,_),_!==v.cache&&M0(u,[fn],h,!0))),Pn(s,u,u.pendingProps.children,h),u.child;case 29:throw u.pendingProps}throw Error(r(156,u.tag))}function Oa(s){s.flags|=4}function xy(s,u,h,_,v){if((u=(s.mode&32)!==0)&&(u=!1),u){if(s.flags|=16777216,(v&335544128)===v)if(s.stateNode.complete)s.flags|=8192;else if(l3())s.flags|=8192;else throw Gs=dm,I0}else s.flags&=-16777217}function DT(s,u){if(u.type!=="stylesheet"||(u.state.loading&4)!==0)s.flags&=-16777217;else if(s.flags|=16777216,!Z3(u))if(l3())s.flags|=8192;else throw Gs=dm,I0}function Rm(s,u){u!==null&&(s.flags|=4),s.flags&16384&&(u=s.tag!==22?Gd():536870912,s.lanes|=u,vu|=u)}function Af(s,u){if(!yt)switch(s.tailMode){case"hidden":u=s.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?s.tail=null:h.sibling=null;break;case"collapsed":h=s.tail;for(var _=null;h!==null;)h.alternate!==null&&(_=h),h=h.sibling;_===null?u||s.tail===null?s.tail=null:s.tail.sibling=null:_.sibling=null}}function Bt(s){var u=s.alternate!==null&&s.alternate.child===s.child,h=0,_=0;if(u)for(var v=s.child;v!==null;)h|=v.lanes|v.childLanes,_|=v.subtreeFlags&65011712,_|=v.flags&65011712,v.return=s,v=v.sibling;else for(v=s.child;v!==null;)h|=v.lanes|v.childLanes,_|=v.subtreeFlags,_|=v.flags,v.return=s,v=v.sibling;return s.subtreeFlags|=_,s.childLanes=h,u}function HD(s,u,h){var _=u.pendingProps;switch(j0(u),u.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(u),null;case 1:return Bt(u),null;case 3:return h=u.stateNode,_=null,s!==null&&(_=s.memoizedState.cache),u.memoizedState.cache!==_&&(u.flags|=2048),Na(fn),_e(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(s===null||s.child===null)&&(ou(u)?Oa(u):s===null||s.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,N0())),Bt(u),null;case 26:var v=u.type,E=u.memoizedState;return s===null?(Oa(u),E!==null?(Bt(u),DT(u,E)):(Bt(u),xy(u,v,null,_,h))):E?E!==s.memoizedState?(Oa(u),Bt(u),DT(u,E)):(Bt(u),u.flags&=-16777217):(s=s.memoizedProps,s!==_&&Oa(u),Bt(u),xy(u,v,s,_,h)),null;case 27:if(je(u),h=xe.current,v=u.type,s!==null&&u.stateNode!=null)s.memoizedProps!==_&&Oa(u);else{if(!_){if(u.stateNode===null)throw Error(r(166));return Bt(u),null}s=ie.current,ou(u)?pS(u):(s=G3(v,_,h),u.stateNode=s,Oa(u))}return Bt(u),null;case 5:if(je(u),v=u.type,s!==null&&u.stateNode!=null)s.memoizedProps!==_&&Oa(u);else{if(!_){if(u.stateNode===null)throw Error(r(166));return Bt(u),null}if(E=ie.current,ou(u))pS(u);else{var M=Hm(xe.current);switch(E){case 1:E=M.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:E=M.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":E=M.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":E=M.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":E=M.createElement("div"),E.innerHTML="<script><\/script>",E=E.removeChild(E.firstChild);break;case"select":E=typeof _.is=="string"?M.createElement("select",{is:_.is}):M.createElement("select"),_.multiple?E.multiple=!0:_.size&&(E.size=_.size);break;default:E=typeof _.is=="string"?M.createElement(v,{is:_.is}):M.createElement(v)}}E[Le]=u,E[Vn]=_;e:for(M=u.child;M!==null;){if(M.tag===5||M.tag===6)E.appendChild(M.stateNode);else if(M.tag!==4&&M.tag!==27&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===u)break e;for(;M.sibling===null;){if(M.return===null||M.return===u)break e;M=M.return}M.sibling.return=M.return,M=M.sibling}u.stateNode=E;e:switch(Un(E,v,_),v){case"button":case"input":case"select":case"textarea":_=!!_.autoFocus;break e;case"img":_=!0;break e;default:_=!1}_&&Oa(u)}}return Bt(u),xy(u,u.type,s===null?null:s.memoizedProps,u.pendingProps,h),null;case 6:if(s&&u.stateNode!=null)s.memoizedProps!==_&&Oa(u);else{if(typeof _!="string"&&u.stateNode===null)throw Error(r(166));if(s=xe.current,ou(u)){if(s=u.stateNode,h=u.memoizedProps,_=null,v=In,v!==null)switch(v.tag){case 27:case 5:_=v.memoizedProps}s[Le]=u,s=!!(s.nodeValue===h||_!==null&&_.suppressHydrationWarning===!0||z3(s.nodeValue,h)),s||Ro(u,!0)}else s=Hm(s).createTextNode(_),s[Le]=u,u.stateNode=s}return Bt(u),null;case 31:if(h=u.memoizedState,s===null||s.memoizedState!==null){if(_=ou(u),h!==null){if(s===null){if(!_)throw Error(r(318));if(s=u.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(557));s[Le]=u}else Is(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;Bt(u),s=!1}else h=N0(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=h),s=!0;if(!s)return u.flags&256?(Gr(u),u):(Gr(u),null);if((u.flags&128)!==0)throw Error(r(558))}return Bt(u),null;case 13:if(_=u.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(v=ou(u),_!==null&&_.dehydrated!==null){if(s===null){if(!v)throw Error(r(318));if(v=u.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[Le]=u}else Is(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;Bt(u),v=!1}else v=N0(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=v),v=!0;if(!v)return u.flags&256?(Gr(u),u):(Gr(u),null)}return Gr(u),(u.flags&128)!==0?(u.lanes=h,u):(h=_!==null,s=s!==null&&s.memoizedState!==null,h&&(_=u.child,v=null,_.alternate!==null&&_.alternate.memoizedState!==null&&_.alternate.memoizedState.cachePool!==null&&(v=_.alternate.memoizedState.cachePool.pool),E=null,_.memoizedState!==null&&_.memoizedState.cachePool!==null&&(E=_.memoizedState.cachePool.pool),E!==v&&(_.flags|=2048)),h!==s&&h&&(u.child.flags|=8192),Rm(u,u.updateQueue),Bt(u),null);case 4:return _e(),s===null&&Gy(u.stateNode.containerInfo),Bt(u),null;case 10:return Na(u.type),Bt(u),null;case 19:if(K(on),_=u.memoizedState,_===null)return Bt(u),null;if(v=(u.flags&128)!==0,E=_.rendering,E===null)if(v)Af(_,!1);else{if(tn!==0||s!==null&&(s.flags&128)!==0)for(s=u.child;s!==null;){if(E=gm(s),E!==null){for(u.flags|=128,Af(_,!1),s=E.updateQueue,u.updateQueue=s,Rm(u,s),u.subtreeFlags=0,s=h,h=u.child;h!==null;)cS(h,s),h=h.sibling;return $(on,on.current&1|2),yt&&ja(u,_.treeForkCount),u.child}s=s.sibling}_.tail!==null&&Yt()>Om&&(u.flags|=128,v=!0,Af(_,!1),u.lanes=4194304)}else{if(!v)if(s=gm(E),s!==null){if(u.flags|=128,v=!0,s=s.updateQueue,u.updateQueue=s,Rm(u,s),Af(_,!0),_.tail===null&&_.tailMode==="hidden"&&!E.alternate&&!yt)return Bt(u),null}else 2*Yt()-_.renderingStartTime>Om&&h!==536870912&&(u.flags|=128,v=!0,Af(_,!1),u.lanes=4194304);_.isBackwards?(E.sibling=u.child,u.child=E):(s=_.last,s!==null?s.sibling=E:u.child=E,_.last=E)}return _.tail!==null?(s=_.tail,_.rendering=s,_.tail=s.sibling,_.renderingStartTime=Yt(),s.sibling=null,h=on.current,$(on,v?h&1|2:h&1),yt&&ja(u,_.treeForkCount),s):(Bt(u),null);case 22:case 23:return Gr(u),F0(),_=u.memoizedState!==null,s!==null?s.memoizedState!==null!==_&&(u.flags|=8192):_&&(u.flags|=8192),_?(h&536870912)!==0&&(u.flags&128)===0&&(Bt(u),u.subtreeFlags&6&&(u.flags|=8192)):Bt(u),h=u.updateQueue,h!==null&&Rm(u,h.retryQueue),h=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),_=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(_=u.memoizedState.cachePool.pool),_!==h&&(u.flags|=2048),s!==null&&K(Us),null;case 24:return h=null,s!==null&&(h=s.memoizedState.cache),u.memoizedState.cache!==h&&(u.flags|=2048),Na(fn),Bt(u),null;case 25:return null;case 30:return null}throw Error(r(156,u.tag))}function VD(s,u){switch(j0(u),u.tag){case 1:return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 3:return Na(fn),_e(),s=u.flags,(s&65536)!==0&&(s&128)===0?(u.flags=s&-65537|128,u):null;case 26:case 27:case 5:return je(u),null;case 31:if(u.memoizedState!==null){if(Gr(u),u.alternate===null)throw Error(r(340));Is()}return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 13:if(Gr(u),s=u.memoizedState,s!==null&&s.dehydrated!==null){if(u.alternate===null)throw Error(r(340));Is()}return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 19:return K(on),null;case 4:return _e(),null;case 10:return Na(u.type),null;case 22:case 23:return Gr(u),F0(),s!==null&&K(Us),s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 24:return Na(fn),null;case 25:return null;default:return null}}function qT(s,u){switch(j0(u),u.tag){case 3:Na(fn),_e();break;case 26:case 27:case 5:je(u);break;case 4:_e();break;case 31:u.memoizedState!==null&&Gr(u);break;case 13:Gr(u);break;case 19:K(on);break;case 10:Na(u.type);break;case 22:case 23:Gr(u),F0(),s!==null&&K(Us);break;case 24:Na(fn)}}function jf(s,u){try{var h=u.updateQueue,_=h!==null?h.lastEffect:null;if(_!==null){var v=_.next;h=v;do{if((h.tag&s)===s){_=void 0;var E=h.create,M=h.inst;_=E(),M.destroy=_}h=h.next}while(h!==v)}}catch(X){jt(u,u.return,X)}}function qo(s,u,h){try{var _=u.updateQueue,v=_!==null?_.lastEffect:null;if(v!==null){var E=v.next;_=E;do{if((_.tag&s)===s){var M=_.inst,X=M.destroy;if(X!==void 0){M.destroy=void 0,v=u;var ee=h,oe=X;try{oe()}catch(me){jt(v,ee,me)}}}_=_.next}while(_!==E)}}catch(me){jt(u,u.return,me)}}function IT(s){var u=s.updateQueue;if(u!==null){var h=s.stateNode;try{AS(u,h)}catch(_){jt(s,s.return,_)}}}function $T(s,u,h){h.props=Vs(s.type,s.memoizedProps),h.state=s.memoizedState;try{h.componentWillUnmount()}catch(_){jt(s,u,_)}}function Rf(s,u){try{var h=s.ref;if(h!==null){switch(s.tag){case 26:case 27:case 5:var _=s.stateNode;break;case 30:_=s.stateNode;break;default:_=s.stateNode}typeof h=="function"?s.refCleanup=h(_):h.current=_}}catch(v){jt(s,u,v)}}function oa(s,u){var h=s.ref,_=s.refCleanup;if(h!==null)if(typeof _=="function")try{_()}catch(v){jt(s,u,v)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof h=="function")try{h(null)}catch(v){jt(s,u,v)}else h.current=null}function PT(s){var u=s.type,h=s.memoizedProps,_=s.stateNode;try{e:switch(u){case"button":case"input":case"select":case"textarea":h.autoFocus&&_.focus();break e;case"img":h.src?_.src=h.src:h.srcSet&&(_.srcset=h.srcSet)}}catch(v){jt(s,s.return,v)}}function wy(s,u,h){try{var _=s.stateNode;mq(_,s.type,h,u),_[Vn]=u}catch(v){jt(s,s.return,v)}}function UT(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&Fo(s.type)||s.tag===4}function ky(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||UT(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&Fo(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Ey(s,u,h){var _=s.tag;if(_===5||_===6)s=s.stateNode,u?(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h).insertBefore(s,u):(u=h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,u.appendChild(s),h=h._reactRootContainer,h!=null||u.onclick!==null||(u.onclick=Ri));else if(_!==4&&(_===27&&Fo(s.type)&&(h=s.stateNode,u=null),s=s.child,s!==null))for(Ey(s,u,h),s=s.sibling;s!==null;)Ey(s,u,h),s=s.sibling}function Nm(s,u,h){var _=s.tag;if(_===5||_===6)s=s.stateNode,u?h.insertBefore(s,u):h.appendChild(s);else if(_!==4&&(_===27&&Fo(s.type)&&(h=s.stateNode),s=s.child,s!==null))for(Nm(s,u,h),s=s.sibling;s!==null;)Nm(s,u,h),s=s.sibling}function BT(s){var u=s.stateNode,h=s.memoizedProps;try{for(var _=s.type,v=u.attributes;v.length;)u.removeAttributeNode(v[0]);Un(u,_,h),u[Le]=s,u[Vn]=h}catch(E){jt(s,s.return,E)}}var Da=!1,mn=!1,Sy=!1,GT=typeof WeakSet=="function"?WeakSet:Set,An=null;function XD(s,u){if(s=s.containerInfo,Vy=Qm,s=tS(s),y0(s)){if("selectionStart"in s)var h={start:s.selectionStart,end:s.selectionEnd};else e:{h=(h=s.ownerDocument)&&h.defaultView||window;var _=h.getSelection&&h.getSelection();if(_&&_.rangeCount!==0){h=_.anchorNode;var v=_.anchorOffset,E=_.focusNode;_=_.focusOffset;try{h.nodeType,E.nodeType}catch{h=null;break e}var M=0,X=-1,ee=-1,oe=0,me=0,ve=s,le=null;t:for(;;){for(var fe;ve!==h||v!==0&&ve.nodeType!==3||(X=M+v),ve!==E||_!==0&&ve.nodeType!==3||(ee=M+_),ve.nodeType===3&&(M+=ve.nodeValue.length),(fe=ve.firstChild)!==null;)le=ve,ve=fe;for(;;){if(ve===s)break t;if(le===h&&++oe===v&&(X=M),le===E&&++me===_&&(ee=M),(fe=ve.nextSibling)!==null)break;ve=le,le=ve.parentNode}ve=fe}h=X===-1||ee===-1?null:{start:X,end:ee}}else h=null}h=h||{start:0,end:0}}else h=null;for(Xy={focusedElem:s,selectionRange:h},Qm=!1,An=u;An!==null;)if(u=An,s=u.child,(u.subtreeFlags&1028)!==0&&s!==null)s.return=u,An=s;else for(;An!==null;){switch(u=An,E=u.alternate,s=u.flags,u.tag){case 0:if((s&4)!==0&&(s=u.updateQueue,s=s!==null?s.events:null,s!==null))for(h=0;h<s.length;h++)v=s[h],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((s&1024)!==0&&E!==null){s=void 0,h=u,v=E.memoizedProps,E=E.memoizedState,_=h.stateNode;try{var De=Vs(h.type,v);s=_.getSnapshotBeforeUpdate(De,E),_.__reactInternalSnapshotBeforeUpdate=s}catch(We){jt(h,h.return,We)}}break;case 3:if((s&1024)!==0){if(s=u.stateNode.containerInfo,h=s.nodeType,h===9)Ky(s);else if(h===1)switch(s.nodeName){case"HEAD":case"HTML":case"BODY":Ky(s);break;default:s.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(r(163))}if(s=u.sibling,s!==null){s.return=u.return,An=s;break}An=u.return}}function FT(s,u,h){var _=h.flags;switch(h.tag){case 0:case 11:case 15:Ia(s,h),_&4&&jf(5,h);break;case 1:if(Ia(s,h),_&4)if(s=h.stateNode,u===null)try{s.componentDidMount()}catch(M){jt(h,h.return,M)}else{var v=Vs(h.type,u.memoizedProps);u=u.memoizedState;try{s.componentDidUpdate(v,u,s.__reactInternalSnapshotBeforeUpdate)}catch(M){jt(h,h.return,M)}}_&64&&IT(h),_&512&&Rf(h,h.return);break;case 3:if(Ia(s,h),_&64&&(s=h.updateQueue,s!==null)){if(u=null,h.child!==null)switch(h.child.tag){case 27:case 5:u=h.child.stateNode;break;case 1:u=h.child.stateNode}try{AS(s,u)}catch(M){jt(h,h.return,M)}}break;case 27:u===null&&_&4&&BT(h);case 26:case 5:Ia(s,h),u===null&&_&4&&PT(h),_&512&&Rf(h,h.return);break;case 12:Ia(s,h);break;case 31:Ia(s,h),_&4&&XT(s,h);break;case 13:Ia(s,h),_&4&&YT(s,h),_&64&&(s=h.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(h=nq.bind(null,h),wq(s,h))));break;case 22:if(_=h.memoizedState!==null||Da,!_){u=u!==null&&u.memoizedState!==null||mn,v=Da;var E=mn;Da=_,(mn=u)&&!E?$a(s,h,(h.subtreeFlags&8772)!==0):Ia(s,h),Da=v,mn=E}break;case 30:break;default:Ia(s,h)}}function HT(s){var u=s.alternate;u!==null&&(s.alternate=null,HT(u)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(u=s.stateNode,u!==null&&Yc(u)),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}var Vt=null,Sr=!1;function qa(s,u,h){for(h=h.child;h!==null;)VT(s,u,h),h=h.sibling}function VT(s,u,h){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(Dn,h)}catch{}switch(h.tag){case 26:mn||oa(h,u),qa(s,u,h),h.memoizedState?h.memoizedState.count--:h.stateNode&&(h=h.stateNode,h.parentNode.removeChild(h));break;case 27:mn||oa(h,u);var _=Vt,v=Sr;Fo(h.type)&&(Vt=h.stateNode,Sr=!1),qa(s,u,h),$f(h.stateNode),Vt=_,Sr=v;break;case 5:mn||oa(h,u);case 6:if(_=Vt,v=Sr,Vt=null,qa(s,u,h),Vt=_,Sr=v,Vt!==null)if(Sr)try{(Vt.nodeType===9?Vt.body:Vt.nodeName==="HTML"?Vt.ownerDocument.body:Vt).removeChild(h.stateNode)}catch(E){jt(h,u,E)}else try{Vt.removeChild(h.stateNode)}catch(E){jt(h,u,E)}break;case 18:Vt!==null&&(Sr?(s=Vt,I3(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,h.stateNode),Cu(s)):I3(Vt,h.stateNode));break;case 4:_=Vt,v=Sr,Vt=h.stateNode.containerInfo,Sr=!0,qa(s,u,h),Vt=_,Sr=v;break;case 0:case 11:case 14:case 15:qo(2,h,u),mn||qo(4,h,u),qa(s,u,h);break;case 1:mn||(oa(h,u),_=h.stateNode,typeof _.componentWillUnmount=="function"&&$T(h,u,_)),qa(s,u,h);break;case 21:qa(s,u,h);break;case 22:mn=(_=mn)||h.memoizedState!==null,qa(s,u,h),mn=_;break;default:qa(s,u,h)}}function XT(s,u){if(u.memoizedState===null&&(s=u.alternate,s!==null&&(s=s.memoizedState,s!==null))){s=s.dehydrated;try{Cu(s)}catch(h){jt(u,u.return,h)}}}function YT(s,u){if(u.memoizedState===null&&(s=u.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{Cu(s)}catch(h){jt(u,u.return,h)}}function YD(s){switch(s.tag){case 31:case 13:case 19:var u=s.stateNode;return u===null&&(u=s.stateNode=new GT),u;case 22:return s=s.stateNode,u=s._retryCache,u===null&&(u=s._retryCache=new GT),u;default:throw Error(r(435,s.tag))}}function zm(s,u){var h=YD(s);u.forEach(function(_){if(!h.has(_)){h.add(_);var v=rq.bind(null,s,_);_.then(v,v)}})}function Tr(s,u){var h=u.deletions;if(h!==null)for(var _=0;_<h.length;_++){var v=h[_],E=s,M=u,X=M;e:for(;X!==null;){switch(X.tag){case 27:if(Fo(X.type)){Vt=X.stateNode,Sr=!1;break e}break;case 5:Vt=X.stateNode,Sr=!1;break e;case 3:case 4:Vt=X.stateNode.containerInfo,Sr=!0;break e}X=X.return}if(Vt===null)throw Error(r(160));VT(E,M,v),Vt=null,Sr=!1,E=v.alternate,E!==null&&(E.return=null),v.return=null}if(u.subtreeFlags&13886)for(u=u.child;u!==null;)WT(u,s),u=u.sibling}var zi=null;function WT(s,u){var h=s.alternate,_=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:Tr(u,s),Cr(s),_&4&&(qo(3,s,s.return),jf(3,s),qo(5,s,s.return));break;case 1:Tr(u,s),Cr(s),_&512&&(mn||h===null||oa(h,h.return)),_&64&&Da&&(s=s.updateQueue,s!==null&&(_=s.callbacks,_!==null&&(h=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=h===null?_:h.concat(_))));break;case 26:var v=zi;if(Tr(u,s),Cr(s),_&512&&(mn||h===null||oa(h,h.return)),_&4){var E=h!==null?h.memoizedState:null;if(_=s.memoizedState,h===null)if(_===null)if(s.stateNode===null){e:{_=s.type,h=s.memoizedProps,v=v.ownerDocument||v;t:switch(_){case"title":E=v.getElementsByTagName("title")[0],(!E||E[Ea]||E[Le]||E.namespaceURI==="http://www.w3.org/2000/svg"||E.hasAttribute("itemprop"))&&(E=v.createElement(_),v.head.insertBefore(E,v.querySelector("head > title"))),Un(E,_,h),E[Le]=s,cn(E),_=E;break e;case"link":var M=W3("link","href",v).get(_+(h.href||""));if(M){for(var X=0;X<M.length;X++)if(E=M[X],E.getAttribute("href")===(h.href==null||h.href===""?null:h.href)&&E.getAttribute("rel")===(h.rel==null?null:h.rel)&&E.getAttribute("title")===(h.title==null?null:h.title)&&E.getAttribute("crossorigin")===(h.crossOrigin==null?null:h.crossOrigin)){M.splice(X,1);break t}}E=v.createElement(_),Un(E,_,h),v.head.appendChild(E);break;case"meta":if(M=W3("meta","content",v).get(_+(h.content||""))){for(X=0;X<M.length;X++)if(E=M[X],E.getAttribute("content")===(h.content==null?null:""+h.content)&&E.getAttribute("name")===(h.name==null?null:h.name)&&E.getAttribute("property")===(h.property==null?null:h.property)&&E.getAttribute("http-equiv")===(h.httpEquiv==null?null:h.httpEquiv)&&E.getAttribute("charset")===(h.charSet==null?null:h.charSet)){M.splice(X,1);break t}}E=v.createElement(_),Un(E,_,h),v.head.appendChild(E);break;default:throw Error(r(468,_))}E[Le]=s,cn(E),_=E}s.stateNode=_}else K3(v,s.type,s.stateNode);else s.stateNode=Y3(v,_,s.memoizedProps);else E!==_?(E===null?h.stateNode!==null&&(h=h.stateNode,h.parentNode.removeChild(h)):E.count--,_===null?K3(v,s.type,s.stateNode):Y3(v,_,s.memoizedProps)):_===null&&s.stateNode!==null&&wy(s,s.memoizedProps,h.memoizedProps)}break;case 27:Tr(u,s),Cr(s),_&512&&(mn||h===null||oa(h,h.return)),h!==null&&_&4&&wy(s,s.memoizedProps,h.memoizedProps);break;case 5:if(Tr(u,s),Cr(s),_&512&&(mn||h===null||oa(h,h.return)),s.flags&32){v=s.stateNode;try{Dr(v,"")}catch(De){jt(s,s.return,De)}}_&4&&s.stateNode!=null&&(v=s.memoizedProps,wy(s,v,h!==null?h.memoizedProps:v)),_&1024&&(Sy=!0);break;case 6:if(Tr(u,s),Cr(s),_&4){if(s.stateNode===null)throw Error(r(162));_=s.memoizedProps,h=s.stateNode;try{h.nodeValue=_}catch(De){jt(s,s.return,De)}}break;case 3:if(Ym=null,v=zi,zi=Vm(u.containerInfo),Tr(u,s),zi=v,Cr(s),_&4&&h!==null&&h.memoizedState.isDehydrated)try{Cu(u.containerInfo)}catch(De){jt(s,s.return,De)}Sy&&(Sy=!1,KT(s));break;case 4:_=zi,zi=Vm(s.stateNode.containerInfo),Tr(u,s),Cr(s),zi=_;break;case 12:Tr(u,s),Cr(s);break;case 31:Tr(u,s),Cr(s),_&4&&(_=s.updateQueue,_!==null&&(s.updateQueue=null,zm(s,_)));break;case 13:Tr(u,s),Cr(s),s.child.flags&8192&&s.memoizedState!==null!=(h!==null&&h.memoizedState!==null)&&(Mm=Yt()),_&4&&(_=s.updateQueue,_!==null&&(s.updateQueue=null,zm(s,_)));break;case 22:v=s.memoizedState!==null;var ee=h!==null&&h.memoizedState!==null,oe=Da,me=mn;if(Da=oe||v,mn=me||ee,Tr(u,s),mn=me,Da=oe,Cr(s),_&8192)e:for(u=s.stateNode,u._visibility=v?u._visibility&-2:u._visibility|1,v&&(h===null||ee||Da||mn||Xs(s)),h=null,u=s;;){if(u.tag===5||u.tag===26){if(h===null){ee=h=u;try{if(E=ee.stateNode,v)M=E.style,typeof M.setProperty=="function"?M.setProperty("display","none","important"):M.display="none";else{X=ee.stateNode;var ve=ee.memoizedProps.style,le=ve!=null&&ve.hasOwnProperty("display")?ve.display:null;X.style.display=le==null||typeof le=="boolean"?"":(""+le).trim()}}catch(De){jt(ee,ee.return,De)}}}else if(u.tag===6){if(h===null){ee=u;try{ee.stateNode.nodeValue=v?"":ee.memoizedProps}catch(De){jt(ee,ee.return,De)}}}else if(u.tag===18){if(h===null){ee=u;try{var fe=ee.stateNode;v?$3(fe,!0):$3(ee.stateNode,!1)}catch(De){jt(ee,ee.return,De)}}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===s)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===s)break e;for(;u.sibling===null;){if(u.return===null||u.return===s)break e;h===u&&(h=null),u=u.return}h===u&&(h=null),u.sibling.return=u.return,u=u.sibling}_&4&&(_=s.updateQueue,_!==null&&(h=_.retryQueue,h!==null&&(_.retryQueue=null,zm(s,h))));break;case 19:Tr(u,s),Cr(s),_&4&&(_=s.updateQueue,_!==null&&(s.updateQueue=null,zm(s,_)));break;case 30:break;case 21:break;default:Tr(u,s),Cr(s)}}function Cr(s){var u=s.flags;if(u&2){try{for(var h,_=s.return;_!==null;){if(UT(_)){h=_;break}_=_.return}if(h==null)throw Error(r(160));switch(h.tag){case 27:var v=h.stateNode,E=ky(s);Nm(s,E,v);break;case 5:var M=h.stateNode;h.flags&32&&(Dr(M,""),h.flags&=-33);var X=ky(s);Nm(s,X,M);break;case 3:case 4:var ee=h.stateNode.containerInfo,oe=ky(s);Ey(s,oe,ee);break;default:throw Error(r(161))}}catch(me){jt(s,s.return,me)}s.flags&=-3}u&4096&&(s.flags&=-4097)}function KT(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var u=s;KT(u),u.tag===5&&u.flags&1024&&u.stateNode.reset(),s=s.sibling}}function Ia(s,u){if(u.subtreeFlags&8772)for(u=u.child;u!==null;)FT(s,u.alternate,u),u=u.sibling}function Xs(s){for(s=s.child;s!==null;){var u=s;switch(u.tag){case 0:case 11:case 14:case 15:qo(4,u,u.return),Xs(u);break;case 1:oa(u,u.return);var h=u.stateNode;typeof h.componentWillUnmount=="function"&&$T(u,u.return,h),Xs(u);break;case 27:$f(u.stateNode);case 26:case 5:oa(u,u.return),Xs(u);break;case 22:u.memoizedState===null&&Xs(u);break;case 30:Xs(u);break;default:Xs(u)}s=s.sibling}}function $a(s,u,h){for(h=h&&(u.subtreeFlags&8772)!==0,u=u.child;u!==null;){var _=u.alternate,v=s,E=u,M=E.flags;switch(E.tag){case 0:case 11:case 15:$a(v,E,h),jf(4,E);break;case 1:if($a(v,E,h),_=E,v=_.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(oe){jt(_,_.return,oe)}if(_=E,v=_.updateQueue,v!==null){var X=_.stateNode;try{var ee=v.shared.hiddenCallbacks;if(ee!==null)for(v.shared.hiddenCallbacks=null,v=0;v<ee.length;v++)CS(ee[v],X)}catch(oe){jt(_,_.return,oe)}}h&&M&64&&IT(E),Rf(E,E.return);break;case 27:BT(E);case 26:case 5:$a(v,E,h),h&&_===null&&M&4&&PT(E),Rf(E,E.return);break;case 12:$a(v,E,h);break;case 31:$a(v,E,h),h&&M&4&&XT(v,E);break;case 13:$a(v,E,h),h&&M&4&&YT(v,E);break;case 22:E.memoizedState===null&&$a(v,E,h),Rf(E,E.return);break;case 30:break;default:$a(v,E,h)}u=u.sibling}}function Ty(s,u){var h=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),s=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(s=u.memoizedState.cachePool.pool),s!==h&&(s!=null&&s.refCount++,h!=null&&_f(h))}function Cy(s,u){s=null,u.alternate!==null&&(s=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==s&&(u.refCount++,s!=null&&_f(s))}function Li(s,u,h,_){if(u.subtreeFlags&10256)for(u=u.child;u!==null;)ZT(s,u,h,_),u=u.sibling}function ZT(s,u,h,_){var v=u.flags;switch(u.tag){case 0:case 11:case 15:Li(s,u,h,_),v&2048&&jf(9,u);break;case 1:Li(s,u,h,_);break;case 3:Li(s,u,h,_),v&2048&&(s=null,u.alternate!==null&&(s=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==s&&(u.refCount++,s!=null&&_f(s)));break;case 12:if(v&2048){Li(s,u,h,_),s=u.stateNode;try{var E=u.memoizedProps,M=E.id,X=E.onPostCommit;typeof X=="function"&&X(M,u.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(ee){jt(u,u.return,ee)}}else Li(s,u,h,_);break;case 31:Li(s,u,h,_);break;case 13:Li(s,u,h,_);break;case 23:break;case 22:E=u.stateNode,M=u.alternate,u.memoizedState!==null?E._visibility&2?Li(s,u,h,_):Nf(s,u):E._visibility&2?Li(s,u,h,_):(E._visibility|=2,_u(s,u,h,_,(u.subtreeFlags&10256)!==0||!1)),v&2048&&Ty(M,u);break;case 24:Li(s,u,h,_),v&2048&&Cy(u.alternate,u);break;default:Li(s,u,h,_)}}function _u(s,u,h,_,v){for(v=v&&((u.subtreeFlags&10256)!==0||!1),u=u.child;u!==null;){var E=s,M=u,X=h,ee=_,oe=M.flags;switch(M.tag){case 0:case 11:case 15:_u(E,M,X,ee,v),jf(8,M);break;case 23:break;case 22:var me=M.stateNode;M.memoizedState!==null?me._visibility&2?_u(E,M,X,ee,v):Nf(E,M):(me._visibility|=2,_u(E,M,X,ee,v)),v&&oe&2048&&Ty(M.alternate,M);break;case 24:_u(E,M,X,ee,v),v&&oe&2048&&Cy(M.alternate,M);break;default:_u(E,M,X,ee,v)}u=u.sibling}}function Nf(s,u){if(u.subtreeFlags&10256)for(u=u.child;u!==null;){var h=s,_=u,v=_.flags;switch(_.tag){case 22:Nf(h,_),v&2048&&Ty(_.alternate,_);break;case 24:Nf(h,_),v&2048&&Cy(_.alternate,_);break;default:Nf(h,_)}u=u.sibling}}var zf=8192;function gu(s,u,h){if(s.subtreeFlags&zf)for(s=s.child;s!==null;)QT(s,u,h),s=s.sibling}function QT(s,u,h){switch(s.tag){case 26:gu(s,u,h),s.flags&zf&&s.memoizedState!==null&&Mq(h,zi,s.memoizedState,s.memoizedProps);break;case 5:gu(s,u,h);break;case 3:case 4:var _=zi;zi=Vm(s.stateNode.containerInfo),gu(s,u,h),zi=_;break;case 22:s.memoizedState===null&&(_=s.alternate,_!==null&&_.memoizedState!==null?(_=zf,zf=16777216,gu(s,u,h),zf=_):gu(s,u,h));break;default:gu(s,u,h)}}function JT(s){var u=s.alternate;if(u!==null&&(s=u.child,s!==null)){u.child=null;do u=s.sibling,s.sibling=null,s=u;while(s!==null)}}function Lf(s){var u=s.deletions;if((s.flags&16)!==0){if(u!==null)for(var h=0;h<u.length;h++){var _=u[h];An=_,t3(_,s)}JT(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)e3(s),s=s.sibling}function e3(s){switch(s.tag){case 0:case 11:case 15:Lf(s),s.flags&2048&&qo(9,s,s.return);break;case 3:Lf(s);break;case 12:Lf(s);break;case 22:var u=s.stateNode;s.memoizedState!==null&&u._visibility&2&&(s.return===null||s.return.tag!==13)?(u._visibility&=-3,Lm(s)):Lf(s);break;default:Lf(s)}}function Lm(s){var u=s.deletions;if((s.flags&16)!==0){if(u!==null)for(var h=0;h<u.length;h++){var _=u[h];An=_,t3(_,s)}JT(s)}for(s=s.child;s!==null;){switch(u=s,u.tag){case 0:case 11:case 15:qo(8,u,u.return),Lm(u);break;case 22:h=u.stateNode,h._visibility&2&&(h._visibility&=-3,Lm(u));break;default:Lm(u)}s=s.sibling}}function t3(s,u){for(;An!==null;){var h=An;switch(h.tag){case 0:case 11:case 15:qo(8,h,u);break;case 23:case 22:if(h.memoizedState!==null&&h.memoizedState.cachePool!==null){var _=h.memoizedState.cachePool.pool;_!=null&&_.refCount++}break;case 24:_f(h.memoizedState.cache)}if(_=h.child,_!==null)_.return=h,An=_;else e:for(h=s;An!==null;){_=An;var v=_.sibling,E=_.return;if(HT(_),_===h){An=null;break e}if(v!==null){v.return=E,An=v;break e}An=E}}}var WD={getCacheForType:function(s){var u=$n(fn),h=u.data.get(s);return h===void 0&&(h=s(),u.data.set(s,h)),h},cacheSignal:function(){return $n(fn).controller.signal}},KD=typeof WeakMap=="function"?WeakMap:Map,Et=0,Mt=null,ft=null,pt=0,At=0,Fr=null,Io=!1,yu=!1,Ay=!1,Pa=0,tn=0,$o=0,Ys=0,jy=0,Hr=0,vu=0,Mf=null,Ar=null,Ry=!1,Mm=0,n3=0,Om=1/0,Dm=null,Po=null,yn=0,Uo=null,bu=null,Ua=0,Ny=0,zy=null,r3=null,Of=0,Ly=null;function Vr(){return(Et&2)!==0&&pt!==0?pt&-pt:j.T!==null?$y():Hd()}function i3(){if(Hr===0)if((pt&536870912)===0||yt){var s=Gl;Gl<<=1,(Gl&3932160)===0&&(Gl=262144),Hr=s}else Hr=536870912;return s=Br.current,s!==null&&(s.flags|=32),Hr}function jr(s,u,h){(s===Mt&&(At===2||At===9)||s.cancelPendingCommit!==null)&&(xu(s,0),Bo(s,pt,Hr,!1)),go(s,h),((Et&2)===0||s!==Mt)&&(s===Mt&&((Et&2)===0&&(Ys|=h),tn===4&&Bo(s,pt,Hr,!1)),sa(s))}function a3(s,u,h){if((Et&6)!==0)throw Error(r(327));var _=!h&&(u&127)===0&&(u&s.expiredLanes)===0||_o(s,u),v=_?JD(s,u):Oy(s,u,!0),E=_;do{if(v===0){yu&&!_&&Bo(s,u,0,!1);break}else{if(h=s.current.alternate,E&&!ZD(h)){v=Oy(s,u,!1),E=!1;continue}if(v===2){if(E=u,s.errorRecoveryDisabledLanes&E)var M=0;else M=s.pendingLanes&-536870913,M=M!==0?M:M&536870912?536870912:0;if(M!==0){u=M;e:{var X=s;v=Mf;var ee=X.current.memoizedState.isDehydrated;if(ee&&(xu(X,M).flags|=256),M=Oy(X,M,!1),M!==2){if(Ay&&!ee){X.errorRecoveryDisabledLanes|=E,Ys|=E,v=4;break e}E=Ar,Ar=v,E!==null&&(Ar===null?Ar=E:Ar.push.apply(Ar,E))}v=M}if(E=!1,v!==2)continue}}if(v===1){xu(s,0),Bo(s,u,0,!0);break}e:{switch(_=s,E=v,E){case 0:case 1:throw Error(r(345));case 4:if((u&4194048)!==u)break;case 6:Bo(_,u,Hr,!Io);break e;case 2:Ar=null;break;case 3:case 5:break;default:throw Error(r(329))}if((u&62914560)===u&&(v=Mm+300-Yt(),10<v)){if(Bo(_,u,Hr,!Io),Fl(_,0,!0)!==0)break e;Ua=u,_.timeoutHandle=D3(o3.bind(null,_,h,Ar,Dm,Ry,u,Hr,Ys,vu,Io,E,"Throttled",-0,0),v);break e}o3(_,h,Ar,Dm,Ry,u,Hr,Ys,vu,Io,E,null,-0,0)}}break}while(!0);sa(s)}function o3(s,u,h,_,v,E,M,X,ee,oe,me,ve,le,fe){if(s.timeoutHandle=-1,ve=u.subtreeFlags,ve&8192||(ve&16785408)===16785408){ve={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ri},QT(u,E,ve);var De=(E&62914560)===E?Mm-Yt():(E&4194048)===E?n3-Yt():0;if(De=Oq(ve,De),De!==null){Ua=E,s.cancelPendingCommit=De(m3.bind(null,s,u,E,h,_,v,M,X,ee,me,ve,null,le,fe)),Bo(s,E,M,!oe);return}}m3(s,u,E,h,_,v,M,X,ee)}function ZD(s){for(var u=s;;){var h=u.tag;if((h===0||h===11||h===15)&&u.flags&16384&&(h=u.updateQueue,h!==null&&(h=h.stores,h!==null)))for(var _=0;_<h.length;_++){var v=h[_],E=v.getSnapshot;v=v.value;try{if(!Pr(E(),v))return!1}catch{return!1}}if(h=u.child,u.subtreeFlags&16384&&h!==null)h.return=u,u=h;else{if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function Bo(s,u,h,_){u&=~jy,u&=~Ys,s.suspendedLanes|=u,s.pingedLanes&=~u,_&&(s.warmLanes|=u),_=s.expirationTimes;for(var v=u;0<v;){var E=31-St(v),M=1<<E;_[E]=-1,v&=~M}h!==0&&Ss(s,h,u)}function qm(){return(Et&6)===0?(Df(0),!1):!0}function My(){if(ft!==null){if(At===0)var s=ft.return;else s=ft,Ra=$s=null,K0(s),fu=null,yf=0,s=ft;for(;s!==null;)qT(s.alternate,s),s=s.return;ft=null}}function xu(s,u){var h=s.timeoutHandle;h!==-1&&(s.timeoutHandle=-1,gq(h)),h=s.cancelPendingCommit,h!==null&&(s.cancelPendingCommit=null,h()),Ua=0,My(),Mt=s,ft=h=Aa(s.current,null),pt=u,At=0,Fr=null,Io=!1,yu=_o(s,u),Ay=!1,vu=Hr=jy=Ys=$o=tn=0,Ar=Mf=null,Ry=!1,(u&8)!==0&&(u|=u&32);var _=s.entangledLanes;if(_!==0)for(s=s.entanglements,_&=u;0<_;){var v=31-St(_),E=1<<v;u|=s[v],_&=~E}return Pa=u,im(),h}function s3(s,u){ot=null,j.H=Tf,u===cu||u===hm?(u=kS(),At=3):u===I0?(u=kS(),At=4):At=u===hy?8:u!==null&&typeof u=="object"&&typeof u.then=="function"?6:1,Fr=u,ft===null&&(tn=1,Tm(s,ii(u,s.current)))}function l3(){var s=Br.current;return s===null?!0:(pt&4194048)===pt?li===null:(pt&62914560)===pt||(pt&536870912)!==0?s===li:!1}function u3(){var s=j.H;return j.H=Tf,s===null?Tf:s}function c3(){var s=j.A;return j.A=WD,s}function Im(){tn=4,Io||(pt&4194048)!==pt&&Br.current!==null||(yu=!0),($o&134217727)===0&&(Ys&134217727)===0||Mt===null||Bo(Mt,pt,Hr,!1)}function Oy(s,u,h){var _=Et;Et|=2;var v=u3(),E=c3();(Mt!==s||pt!==u)&&(Dm=null,xu(s,u)),u=!1;var M=tn;e:do try{if(At!==0&&ft!==null){var X=ft,ee=Fr;switch(At){case 8:My(),M=6;break e;case 3:case 2:case 9:case 6:Br.current===null&&(u=!0);var oe=At;if(At=0,Fr=null,wu(s,X,ee,oe),h&&yu){M=0;break e}break;default:oe=At,At=0,Fr=null,wu(s,X,ee,oe)}}QD(),M=tn;break}catch(me){s3(s,me)}while(!0);return u&&s.shellSuspendCounter++,Ra=$s=null,Et=_,j.H=v,j.A=E,ft===null&&(Mt=null,pt=0,im()),M}function QD(){for(;ft!==null;)f3(ft)}function JD(s,u){var h=Et;Et|=2;var _=u3(),v=c3();Mt!==s||pt!==u?(Dm=null,Om=Yt()+500,xu(s,u)):yu=_o(s,u);e:do try{if(At!==0&&ft!==null){u=ft;var E=Fr;t:switch(At){case 1:At=0,Fr=null,wu(s,u,E,1);break;case 2:case 9:if(xS(E)){At=0,Fr=null,h3(u);break}u=function(){At!==2&&At!==9||Mt!==s||(At=7),sa(s)},E.then(u,u);break e;case 3:At=7;break e;case 4:At=5;break e;case 7:xS(E)?(At=0,Fr=null,h3(u)):(At=0,Fr=null,wu(s,u,E,7));break;case 5:var M=null;switch(ft.tag){case 26:M=ft.memoizedState;case 5:case 27:var X=ft;if(M?Z3(M):X.stateNode.complete){At=0,Fr=null;var ee=X.sibling;if(ee!==null)ft=ee;else{var oe=X.return;oe!==null?(ft=oe,$m(oe)):ft=null}break t}}At=0,Fr=null,wu(s,u,E,5);break;case 6:At=0,Fr=null,wu(s,u,E,6);break;case 8:My(),tn=6;break e;default:throw Error(r(462))}}eq();break}catch(me){s3(s,me)}while(!0);return Ra=$s=null,j.H=_,j.A=v,Et=h,ft!==null?0:(Mt=null,pt=0,im(),tn)}function eq(){for(;ft!==null&&!ti();)f3(ft)}function f3(s){var u=OT(s.alternate,s,Pa);s.memoizedProps=s.pendingProps,u===null?$m(s):ft=u}function h3(s){var u=s,h=u.alternate;switch(u.tag){case 15:case 0:u=jT(h,u,u.pendingProps,u.type,void 0,pt);break;case 11:u=jT(h,u,u.pendingProps,u.type.render,u.ref,pt);break;case 5:K0(u);default:qT(h,u),u=ft=cS(u,Pa),u=OT(h,u,Pa)}s.memoizedProps=s.pendingProps,u===null?$m(s):ft=u}function wu(s,u,h,_){Ra=$s=null,K0(u),fu=null,yf=0;var v=u.return;try{if(BD(s,v,u,h,pt)){tn=1,Tm(s,ii(h,s.current)),ft=null;return}}catch(E){if(v!==null)throw ft=v,E;tn=1,Tm(s,ii(h,s.current)),ft=null;return}u.flags&32768?(yt||_===1?s=!0:yu||(pt&536870912)!==0?s=!1:(Io=s=!0,(_===2||_===9||_===3||_===6)&&(_=Br.current,_!==null&&_.tag===13&&(_.flags|=16384))),d3(u,s)):$m(u)}function $m(s){var u=s;do{if((u.flags&32768)!==0){d3(u,Io);return}s=u.return;var h=HD(u.alternate,u,Pa);if(h!==null){ft=h;return}if(u=u.sibling,u!==null){ft=u;return}ft=u=s}while(u!==null);tn===0&&(tn=5)}function d3(s,u){do{var h=VD(s.alternate,s);if(h!==null){h.flags&=32767,ft=h;return}if(h=s.return,h!==null&&(h.flags|=32768,h.subtreeFlags=0,h.deletions=null),!u&&(s=s.sibling,s!==null)){ft=s;return}ft=s=h}while(s!==null);tn=6,ft=null}function m3(s,u,h,_,v,E,M,X,ee){s.cancelPendingCommit=null;do Pm();while(yn!==0);if((Et&6)!==0)throw Error(r(327));if(u!==null){if(u===s.current)throw Error(r(177));if(E=u.lanes|u.childLanes,E|=k0,Vc(s,h,E,M,X,ee),s===Mt&&(ft=Mt=null,pt=0),bu=u,Uo=s,Ua=h,Ny=E,zy=v,r3=_,(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,iq(Be,function(){return v3(),null})):(s.callbackNode=null,s.callbackPriority=0),_=(u.flags&13878)!==0,(u.subtreeFlags&13878)!==0||_){_=j.T,j.T=null,v=N.p,N.p=2,M=Et,Et|=4;try{XD(s,u,h)}finally{Et=M,N.p=v,j.T=_}}yn=1,p3(),_3(),g3()}}function p3(){if(yn===1){yn=0;var s=Uo,u=bu,h=(u.flags&13878)!==0;if((u.subtreeFlags&13878)!==0||h){h=j.T,j.T=null;var _=N.p;N.p=2;var v=Et;Et|=4;try{WT(u,s);var E=Xy,M=tS(s.containerInfo),X=E.focusedElem,ee=E.selectionRange;if(M!==X&&X&&X.ownerDocument&&eS(X.ownerDocument.documentElement,X)){if(ee!==null&&y0(X)){var oe=ee.start,me=ee.end;if(me===void 0&&(me=oe),"selectionStart"in X)X.selectionStart=oe,X.selectionEnd=Math.min(me,X.value.length);else{var ve=X.ownerDocument||document,le=ve&&ve.defaultView||window;if(le.getSelection){var fe=le.getSelection(),De=X.textContent.length,We=Math.min(ee.start,De),Lt=ee.end===void 0?We:Math.min(ee.end,De);!fe.extend&&We>Lt&&(M=Lt,Lt=We,We=M);var ne=JE(X,We),te=JE(X,Lt);if(ne&&te&&(fe.rangeCount!==1||fe.anchorNode!==ne.node||fe.anchorOffset!==ne.offset||fe.focusNode!==te.node||fe.focusOffset!==te.offset)){var ae=ve.createRange();ae.setStart(ne.node,ne.offset),fe.removeAllRanges(),We>Lt?(fe.addRange(ae),fe.extend(te.node,te.offset)):(ae.setEnd(te.node,te.offset),fe.addRange(ae))}}}}for(ve=[],fe=X;fe=fe.parentNode;)fe.nodeType===1&&ve.push({element:fe,left:fe.scrollLeft,top:fe.scrollTop});for(typeof X.focus=="function"&&X.focus(),X=0;X<ve.length;X++){var ye=ve[X];ye.element.scrollLeft=ye.left,ye.element.scrollTop=ye.top}}Qm=!!Vy,Xy=Vy=null}finally{Et=v,N.p=_,j.T=h}}s.current=u,yn=2}}function _3(){if(yn===2){yn=0;var s=Uo,u=bu,h=(u.flags&8772)!==0;if((u.subtreeFlags&8772)!==0||h){h=j.T,j.T=null;var _=N.p;N.p=2;var v=Et;Et|=4;try{FT(s,u.alternate,u)}finally{Et=v,N.p=_,j.T=h}}yn=3}}function g3(){if(yn===4||yn===3){yn=0,ni();var s=Uo,u=bu,h=Ua,_=r3;(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?yn=5:(yn=0,bu=Uo=null,y3(s,s.pendingLanes));var v=s.pendingLanes;if(v===0&&(Po=null),vo(h),u=u.stateNode,Ht&&typeof Ht.onCommitFiberRoot=="function")try{Ht.onCommitFiberRoot(Dn,u,void 0,(u.current.flags&128)===128)}catch{}if(_!==null){u=j.T,v=N.p,N.p=2,j.T=null;try{for(var E=s.onRecoverableError,M=0;M<_.length;M++){var X=_[M];E(X.value,{componentStack:X.stack})}}finally{j.T=u,N.p=v}}(Ua&3)!==0&&Pm(),sa(s),v=s.pendingLanes,(h&261930)!==0&&(v&42)!==0?s===Ly?Of++:(Of=0,Ly=s):Of=0,Df(0)}}function y3(s,u){(s.pooledCacheLanes&=u)===0&&(u=s.pooledCache,u!=null&&(s.pooledCache=null,_f(u)))}function Pm(){return p3(),_3(),g3(),v3()}function v3(){if(yn!==5)return!1;var s=Uo,u=Ny;Ny=0;var h=vo(Ua),_=j.T,v=N.p;try{N.p=32>h?32:h,j.T=null,h=zy,zy=null;var E=Uo,M=Ua;if(yn=0,bu=Uo=null,Ua=0,(Et&6)!==0)throw Error(r(331));var X=Et;if(Et|=4,e3(E.current),ZT(E,E.current,M,h),Et=X,Df(0,!1),Ht&&typeof Ht.onPostCommitFiberRoot=="function")try{Ht.onPostCommitFiberRoot(Dn,E)}catch{}return!0}finally{N.p=v,j.T=_,y3(s,u)}}function b3(s,u,h){u=ii(h,u),u=fy(s.stateNode,u,2),s=Mo(s,u,2),s!==null&&(go(s,2),sa(s))}function jt(s,u,h){if(s.tag===3)b3(s,s,h);else for(;u!==null;){if(u.tag===3){b3(u,s,h);break}else if(u.tag===1){var _=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof _.componentDidCatch=="function"&&(Po===null||!Po.has(_))){s=ii(h,s),h=xT(2),_=Mo(u,h,2),_!==null&&(wT(h,_,u,s),go(_,2),sa(_));break}}u=u.return}}function Dy(s,u,h){var _=s.pingCache;if(_===null){_=s.pingCache=new KD;var v=new Set;_.set(u,v)}else v=_.get(u),v===void 0&&(v=new Set,_.set(u,v));v.has(h)||(Ay=!0,v.add(h),s=tq.bind(null,s,u,h),u.then(s,s))}function tq(s,u,h){var _=s.pingCache;_!==null&&_.delete(u),s.pingedLanes|=s.suspendedLanes&h,s.warmLanes&=~h,Mt===s&&(pt&h)===h&&(tn===4||tn===3&&(pt&62914560)===pt&&300>Yt()-Mm?(Et&2)===0&&xu(s,0):jy|=h,vu===pt&&(vu=0)),sa(s)}function x3(s,u){u===0&&(u=Gd()),s=Ds(s,u),s!==null&&(go(s,u),sa(s))}function nq(s){var u=s.memoizedState,h=0;u!==null&&(h=u.retryLane),x3(s,h)}function rq(s,u){var h=0;switch(s.tag){case 31:case 13:var _=s.stateNode,v=s.memoizedState;v!==null&&(h=v.retryLane);break;case 19:_=s.stateNode;break;case 22:_=s.stateNode._retryCache;break;default:throw Error(r(314))}_!==null&&_.delete(u),x3(s,h)}function iq(s,u){return Ft(s,u)}var Um=null,ku=null,qy=!1,Bm=!1,Iy=!1,Go=0;function sa(s){s!==ku&&s.next===null&&(ku===null?Um=ku=s:ku=ku.next=s),Bm=!0,qy||(qy=!0,oq())}function Df(s,u){if(!Iy&&Bm){Iy=!0;do for(var h=!1,_=Um;_!==null;){if(s!==0){var v=_.pendingLanes;if(v===0)var E=0;else{var M=_.suspendedLanes,X=_.pingedLanes;E=(1<<31-St(42|s)+1)-1,E&=v&~(M&~X),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(h=!0,S3(_,E))}else E=pt,E=Fl(_,_===Mt?E:0,_.cancelPendingCommit!==null||_.timeoutHandle!==-1),(E&3)===0||_o(_,E)||(h=!0,S3(_,E));_=_.next}while(h);Iy=!1}}function aq(){w3()}function w3(){Bm=qy=!1;var s=0;Go!==0&&_q()&&(s=Go);for(var u=Yt(),h=null,_=Um;_!==null;){var v=_.next,E=k3(_,u);E===0?(_.next=null,h===null?Um=v:h.next=v,v===null&&(ku=h)):(h=_,(s!==0||(E&3)!==0)&&(Bm=!0)),_=v}yn!==0&&yn!==5||Df(s),Go!==0&&(Go=0)}function k3(s,u){for(var h=s.suspendedLanes,_=s.pingedLanes,v=s.expirationTimes,E=s.pendingLanes&-62914561;0<E;){var M=31-St(E),X=1<<M,ee=v[M];ee===-1?((X&h)===0||(X&_)!==0)&&(v[M]=Bd(X,u)):ee<=u&&(s.expiredLanes|=X),E&=~X}if(u=Mt,h=pt,h=Fl(s,s===u?h:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),_=s.callbackNode,h===0||s===u&&(At===2||At===9)||s.cancelPendingCommit!==null)return _!==null&&_!==null&&un(_),s.callbackNode=null,s.callbackPriority=0;if((h&3)===0||_o(s,h)){if(u=h&-h,u===s.callbackPriority)return u;switch(_!==null&&un(_),vo(h)){case 2:case 8:h=Se;break;case 32:h=Be;break;case 268435456:h=ct;break;default:h=Be}return _=E3.bind(null,s),h=Ft(h,_),s.callbackPriority=u,s.callbackNode=h,u}return _!==null&&_!==null&&un(_),s.callbackPriority=2,s.callbackNode=null,2}function E3(s,u){if(yn!==0&&yn!==5)return s.callbackNode=null,s.callbackPriority=0,null;var h=s.callbackNode;if(Pm()&&s.callbackNode!==h)return null;var _=pt;return _=Fl(s,s===Mt?_:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),_===0?null:(a3(s,_,u),k3(s,Yt()),s.callbackNode!=null&&s.callbackNode===h?E3.bind(null,s):null)}function S3(s,u){if(Pm())return null;a3(s,u,!0)}function oq(){yq(function(){(Et&6)!==0?Ft(de,aq):w3()})}function $y(){if(Go===0){var s=lu;s===0&&(s=Bl,Bl<<=1,(Bl&261888)===0&&(Bl=256)),Go=s}return Go}function T3(s){return s==null||typeof s=="symbol"||typeof s=="boolean"?null:typeof s=="function"?s:Yl(""+s)}function C3(s,u){var h=u.ownerDocument.createElement("input");return h.name=u.name,h.value=u.value,s.id&&h.setAttribute("form",s.id),u.parentNode.insertBefore(h,u),s=new FormData(s),h.parentNode.removeChild(h),s}function sq(s,u,h,_,v){if(u==="submit"&&h&&h.stateNode===v){var E=T3((v[Vn]||null).action),M=_.submitter;M&&(u=(u=M[Vn]||null)?T3(u.formAction):M.getAttribute("formAction"),u!==null&&(E=u,M=null));var X=new Zl("action","action",null,_,v);s.push({event:X,listeners:[{instance:null,listener:function(){if(_.defaultPrevented){if(Go!==0){var ee=M?C3(v,M):new FormData(v);ay(h,{pending:!0,data:ee,method:v.method,action:E},null,ee)}}else typeof E=="function"&&(X.preventDefault(),ee=M?C3(v,M):new FormData(v),ay(h,{pending:!0,data:ee,method:v.method,action:E},E,ee))},currentTarget:v}]})}}for(var Py=0;Py<w0.length;Py++){var Uy=w0[Py],lq=Uy.toLowerCase(),uq=Uy[0].toUpperCase()+Uy.slice(1);Ni(lq,"on"+uq)}Ni(iS,"onAnimationEnd"),Ni(aS,"onAnimationIteration"),Ni(oS,"onAnimationStart"),Ni("dblclick","onDoubleClick"),Ni("focusin","onFocus"),Ni("focusout","onBlur"),Ni(SD,"onTransitionRun"),Ni(TD,"onTransitionStart"),Ni(CD,"onTransitionCancel"),Ni(sS,"onTransitionEnd"),ea("onMouseEnter",["mouseout","mouseover"]),ea("onMouseLeave",["mouseout","mouseover"]),ea("onPointerEnter",["pointerout","pointerover"]),ea("onPointerLeave",["pointerout","pointerover"]),Ta("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ta("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ta("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ta("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ta("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ta("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qf="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(" "),cq=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(qf));function A3(s,u){u=(u&4)!==0;for(var h=0;h<s.length;h++){var _=s[h],v=_.event;_=_.listeners;e:{var E=void 0;if(u)for(var M=_.length-1;0<=M;M--){var X=_[M],ee=X.instance,oe=X.currentTarget;if(X=X.listener,ee!==E&&v.isPropagationStopped())break e;E=X,v.currentTarget=oe;try{E(v)}catch(me){rm(me)}v.currentTarget=null,E=ee}else for(M=0;M<_.length;M++){if(X=_[M],ee=X.instance,oe=X.currentTarget,X=X.listener,ee!==E&&v.isPropagationStopped())break e;E=X,v.currentTarget=oe;try{E(v)}catch(me){rm(me)}v.currentTarget=null,E=ee}}}}function ht(s,u){var h=u[Ji];h===void 0&&(h=u[Ji]=new Set);var _=s+"__bubble";h.has(_)||(j3(u,s,2,!1),h.add(_))}function By(s,u,h){var _=0;u&&(_|=4),j3(h,s,_,u)}var Gm="_reactListening"+Math.random().toString(36).slice(2);function Gy(s){if(!s[Gm]){s[Gm]=!0,Xd.forEach(function(h){h!=="selectionchange"&&(cq.has(h)||By(h,!1,s),By(h,!0,s))});var u=s.nodeType===9?s:s.ownerDocument;u===null||u[Gm]||(u[Gm]=!0,By("selectionchange",!1,u))}}function j3(s,u,h,_){switch(i4(u)){case 2:var v=Iq;break;case 8:v=$q;break;default:v=iv}h=v.bind(null,u,h,s),v=void 0,!sf||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(v=!0),_?v!==void 0?s.addEventListener(u,h,{capture:!0,passive:v}):s.addEventListener(u,h,!0):v!==void 0?s.addEventListener(u,h,{passive:v}):s.addEventListener(u,h,!1)}function Fy(s,u,h,_,v){var E=_;if((u&1)===0&&(u&2)===0&&_!==null)e:for(;;){if(_===null)return;var M=_.tag;if(M===3||M===4){var X=_.stateNode.containerInfo;if(X===v)break;if(M===4)for(M=_.return;M!==null;){var ee=M.tag;if((ee===3||ee===4)&&M.stateNode.containerInfo===v)return;M=M.return}for(;X!==null;){if(M=xo(X),M===null)return;if(ee=M.tag,ee===5||ee===6||ee===26||ee===27){_=E=M;continue e}X=X.parentNode}}_=_.return}em(function(){var oe=E,me=Wl(h),ve=[];e:{var le=lS.get(s);if(le!==void 0){var fe=Zl,De=s;switch(s){case"keypress":if(To(h)===0)break e;case"keydown":case"keyup":fe=m0;break;case"focusin":De="focus",fe=Je;break;case"focusout":De="blur",fe=Je;break;case"beforeblur":case"afterblur":fe=Je;break;case"click":if(h.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":fe=ge;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":fe=Ge;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":fe=oD;break;case iS:case aS:case oS:fe=Cn;break;case sS:fe=lD;break;case"scroll":case"scrollend":fe=tm;break;case"wheel":fe=cD;break;case"copy":case"cut":case"paste":fe=Tt;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":fe=$E;break;case"toggle":case"beforetoggle":fe=hD}var We=(u&4)!==0,Lt=!We&&(s==="scroll"||s==="scrollend"),ne=We?le!==null?le+"Capture":null:le;We=[];for(var te=oe,ae;te!==null;){var ye=te;if(ae=ye.stateNode,ye=ye.tag,ye!==5&&ye!==26&&ye!==27||ae===null||ne===null||(ye=Cs(te,ne),ye!=null&&We.push(If(te,ye,ae))),Lt)break;te=te.return}0<We.length&&(le=new fe(le,De,null,h,me),ve.push({event:le,listeners:We}))}}if((u&7)===0){e:{if(le=s==="mouseover"||s==="pointerover",fe=s==="mouseout"||s==="pointerout",le&&h!==rf&&(De=h.relatedTarget||h.fromElement)&&(xo(De)||De[bo]))break e;if((fe||le)&&(le=me.window===me?me:(le=me.ownerDocument)?le.defaultView||le.parentWindow:window,fe?(De=h.relatedTarget||h.toElement,fe=oe,De=De?xo(De):null,De!==null&&(Lt=a(De),We=De.tag,De!==Lt||We!==5&&We!==27&&We!==6)&&(De=null)):(fe=null,De=oe),fe!==De)){if(We=ge,ye="onMouseLeave",ne="onMouseEnter",te="mouse",(s==="pointerout"||s==="pointerover")&&(We=$E,ye="onPointerLeave",ne="onPointerEnter",te="pointer"),Lt=fe==null?le:ko(fe),ae=De==null?le:ko(De),le=new We(ye,te+"leave",fe,h,me),le.target=Lt,le.relatedTarget=ae,ye=null,xo(me)===oe&&(We=new We(ne,te+"enter",De,h,me),We.target=ae,We.relatedTarget=Lt,ye=We),Lt=ye,fe&&De)t:{for(We=fq,ne=fe,te=De,ae=0,ye=ne;ye;ye=We(ye))ae++;ye=0;for(var Fe=te;Fe;Fe=We(Fe))ye++;for(;0<ae-ye;)ne=We(ne),ae--;for(;0<ye-ae;)te=We(te),ye--;for(;ae--;){if(ne===te||te!==null&&ne===te.alternate){We=ne;break t}ne=We(ne),te=We(te)}We=null}else We=null;fe!==null&&R3(ve,le,fe,We,!1),De!==null&&Lt!==null&&R3(ve,Lt,De,We,!0)}}e:{if(le=oe?ko(oe):window,fe=le.nodeName&&le.nodeName.toLowerCase(),fe==="select"||fe==="input"&&le.type==="file")var xt=XE;else if(HE(le))if(YE)xt=wD;else{xt=bD;var Ie=vD}else fe=le.nodeName,!fe||fe.toLowerCase()!=="input"||le.type!=="checkbox"&&le.type!=="radio"?oe&&nf(oe.elementType)&&(xt=XE):xt=xD;if(xt&&(xt=xt(s,oe))){VE(ve,xt,h,me);break e}Ie&&Ie(s,le,oe),s==="focusout"&&oe&&le.type==="number"&&oe.memoizedProps.value!=null&&ef(le,"number",le.value)}switch(Ie=oe?ko(oe):window,s){case"focusin":(HE(Ie)||Ie.contentEditable==="true")&&(eu=Ie,v0=oe,df=null);break;case"focusout":df=v0=eu=null;break;case"mousedown":b0=!0;break;case"contextmenu":case"mouseup":case"dragend":b0=!1,nS(ve,h,me);break;case"selectionchange":if(ED)break;case"keydown":case"keyup":nS(ve,h,me)}var lt;if(p0)e:{switch(s){case"compositionstart":var _t="onCompositionStart";break e;case"compositionend":_t="onCompositionEnd";break e;case"compositionupdate":_t="onCompositionUpdate";break e}_t=void 0}else Jl?GE(s,h)&&(_t="onCompositionEnd"):s==="keydown"&&h.keyCode===229&&(_t="onCompositionStart");_t&&(PE&&h.locale!=="ko"&&(Jl||_t!=="onCompositionStart"?_t==="onCompositionEnd"&&Jl&&(lt=Kl()):(Ir=me,js="value"in Ir?Ir.value:Ir.textContent,Jl=!0)),Ie=Fm(oe,_t),0<Ie.length&&(_t=new $t(_t,s,null,h,me),ve.push({event:_t,listeners:Ie}),lt?_t.data=lt:(lt=FE(h),lt!==null&&(_t.data=lt)))),(lt=mD?pD(s,h):_D(s,h))&&(_t=Fm(oe,"onBeforeInput"),0<_t.length&&(Ie=new $t("onBeforeInput","beforeinput",null,h,me),ve.push({event:Ie,listeners:_t}),Ie.data=lt)),sq(ve,s,oe,h,me)}A3(ve,u)})}function If(s,u,h){return{instance:s,listener:u,currentTarget:h}}function Fm(s,u){for(var h=u+"Capture",_=[];s!==null;){var v=s,E=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||E===null||(v=Cs(s,h),v!=null&&_.unshift(If(s,v,E)),v=Cs(s,u),v!=null&&_.push(If(s,v,E))),s.tag===3)return _;s=s.return}return[]}function fq(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function R3(s,u,h,_,v){for(var E=u._reactName,M=[];h!==null&&h!==_;){var X=h,ee=X.alternate,oe=X.stateNode;if(X=X.tag,ee!==null&&ee===_)break;X!==5&&X!==26&&X!==27||oe===null||(ee=oe,v?(oe=Cs(h,E),oe!=null&&M.unshift(If(h,oe,ee))):v||(oe=Cs(h,E),oe!=null&&M.push(If(h,oe,ee)))),h=h.return}M.length!==0&&s.push({event:u,listeners:M})}var hq=/\r\n?/g,dq=/\u0000|\uFFFD/g;function N3(s){return(typeof s=="string"?s:""+s).replace(hq,`
|
|
50
|
+
`).replace(dq,"")}function z3(s,u){return u=N3(u),N3(s)===u}function zt(s,u,h,_,v,E){switch(h){case"children":typeof _=="string"?u==="body"||u==="textarea"&&_===""||Dr(s,_):(typeof _=="number"||typeof _=="bigint")&&u!=="body"&&Dr(s,""+_);break;case"className":Vl(s,"class",_);break;case"tabIndex":Vl(s,"tabindex",_);break;case"dir":case"role":case"viewBox":case"width":case"height":Vl(s,h,_);break;case"style":Qd(s,_,E);break;case"data":if(u!=="object"){Vl(s,"data",_);break}case"src":case"href":if(_===""&&(u!=="a"||h!=="href")){s.removeAttribute(h);break}if(_==null||typeof _=="function"||typeof _=="symbol"||typeof _=="boolean"){s.removeAttribute(h);break}_=Yl(""+_),s.setAttribute(h,_);break;case"action":case"formAction":if(typeof _=="function"){s.setAttribute(h,"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}else typeof E=="function"&&(h==="formAction"?(u!=="input"&&zt(s,u,"name",v.name,v,null),zt(s,u,"formEncType",v.formEncType,v,null),zt(s,u,"formMethod",v.formMethod,v,null),zt(s,u,"formTarget",v.formTarget,v,null)):(zt(s,u,"encType",v.encType,v,null),zt(s,u,"method",v.method,v,null),zt(s,u,"target",v.target,v,null)));if(_==null||typeof _=="symbol"||typeof _=="boolean"){s.removeAttribute(h);break}_=Yl(""+_),s.setAttribute(h,_);break;case"onClick":_!=null&&(s.onclick=Ri);break;case"onScroll":_!=null&&ht("scroll",s);break;case"onScrollEnd":_!=null&&ht("scrollend",s);break;case"dangerouslySetInnerHTML":if(_!=null){if(typeof _!="object"||!("__html"in _))throw Error(r(61));if(h=_.__html,h!=null){if(v.children!=null)throw Error(r(60));s.innerHTML=h}}break;case"multiple":s.multiple=_&&typeof _!="function"&&typeof _!="symbol";break;case"muted":s.muted=_&&typeof _!="function"&&typeof _!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(_==null||typeof _=="function"||typeof _=="boolean"||typeof _=="symbol"){s.removeAttribute("xlink:href");break}h=Yl(""+_),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",h);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":_!=null&&typeof _!="function"&&typeof _!="symbol"?s.setAttribute(h,""+_):s.removeAttribute(h);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":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":_&&typeof _!="function"&&typeof _!="symbol"?s.setAttribute(h,""):s.removeAttribute(h);break;case"capture":case"download":_===!0?s.setAttribute(h,""):_!==!1&&_!=null&&typeof _!="function"&&typeof _!="symbol"?s.setAttribute(h,_):s.removeAttribute(h);break;case"cols":case"rows":case"size":case"span":_!=null&&typeof _!="function"&&typeof _!="symbol"&&!isNaN(_)&&1<=_?s.setAttribute(h,_):s.removeAttribute(h);break;case"rowSpan":case"start":_==null||typeof _=="function"||typeof _=="symbol"||isNaN(_)?s.removeAttribute(h):s.setAttribute(h,_);break;case"popover":ht("beforetoggle",s),ht("toggle",s),Hl(s,"popover",_);break;case"xlinkActuate":ji(s,"http://www.w3.org/1999/xlink","xlink:actuate",_);break;case"xlinkArcrole":ji(s,"http://www.w3.org/1999/xlink","xlink:arcrole",_);break;case"xlinkRole":ji(s,"http://www.w3.org/1999/xlink","xlink:role",_);break;case"xlinkShow":ji(s,"http://www.w3.org/1999/xlink","xlink:show",_);break;case"xlinkTitle":ji(s,"http://www.w3.org/1999/xlink","xlink:title",_);break;case"xlinkType":ji(s,"http://www.w3.org/1999/xlink","xlink:type",_);break;case"xmlBase":ji(s,"http://www.w3.org/XML/1998/namespace","xml:base",_);break;case"xmlLang":ji(s,"http://www.w3.org/XML/1998/namespace","xml:lang",_);break;case"xmlSpace":ji(s,"http://www.w3.org/XML/1998/namespace","xml:space",_);break;case"is":Hl(s,"is",_);break;case"innerText":case"textContent":break;default:(!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(h=Jd.get(h)||h,Hl(s,h,_))}}function Hy(s,u,h,_,v,E){switch(h){case"style":Qd(s,_,E);break;case"dangerouslySetInnerHTML":if(_!=null){if(typeof _!="object"||!("__html"in _))throw Error(r(61));if(h=_.__html,h!=null){if(v.children!=null)throw Error(r(60));s.innerHTML=h}}break;case"children":typeof _=="string"?Dr(s,_):(typeof _=="number"||typeof _=="bigint")&&Dr(s,""+_);break;case"onScroll":_!=null&&ht("scroll",s);break;case"onScrollEnd":_!=null&&ht("scrollend",s);break;case"onClick":_!=null&&(s.onclick=Ri);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Wc.hasOwnProperty(h))e:{if(h[0]==="o"&&h[1]==="n"&&(v=h.endsWith("Capture"),u=h.slice(2,v?h.length-7:void 0),E=s[Vn]||null,E=E!=null?E[h]:null,typeof E=="function"&&s.removeEventListener(u,E,v),typeof _=="function")){typeof E!="function"&&E!==null&&(h in s?s[h]=null:s.hasAttribute(h)&&s.removeAttribute(h)),s.addEventListener(u,_,v);break e}h in s?s[h]=_:_===!0?s.setAttribute(h,""):Hl(s,h,_)}}}function Un(s,u,h){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ht("error",s),ht("load",s);var _=!1,v=!1,E;for(E in h)if(h.hasOwnProperty(E)){var M=h[E];if(M!=null)switch(E){case"src":_=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,u));default:zt(s,u,E,M,h,null)}}v&&zt(s,u,"srcSet",h.srcSet,h,null),_&&zt(s,u,"src",h.src,h,null);return;case"input":ht("invalid",s);var X=E=M=v=null,ee=null,oe=null;for(_ in h)if(h.hasOwnProperty(_)){var me=h[_];if(me!=null)switch(_){case"name":v=me;break;case"type":M=me;break;case"checked":ee=me;break;case"defaultChecked":oe=me;break;case"value":E=me;break;case"defaultValue":X=me;break;case"children":case"dangerouslySetInnerHTML":if(me!=null)throw Error(r(137,u));break;default:zt(s,u,_,me,h,null)}}Kd(s,E,X,ee,oe,M,v,!1);return;case"select":ht("invalid",s),_=M=E=null;for(v in h)if(h.hasOwnProperty(v)&&(X=h[v],X!=null))switch(v){case"value":E=X;break;case"defaultValue":M=X;break;case"multiple":_=X;default:zt(s,u,v,X,h,null)}u=E,h=M,s.multiple=!!_,u!=null?So(s,!!_,u,!1):h!=null&&So(s,!!_,h,!0);return;case"textarea":ht("invalid",s),E=v=_=null;for(M in h)if(h.hasOwnProperty(M)&&(X=h[M],X!=null))switch(M){case"value":_=X;break;case"defaultValue":v=X;break;case"children":E=X;break;case"dangerouslySetInnerHTML":if(X!=null)throw Error(r(91));break;default:zt(s,u,M,X,h,null)}an(s,_,v,E);return;case"option":for(ee in h)if(h.hasOwnProperty(ee)&&(_=h[ee],_!=null))switch(ee){case"selected":s.selected=_&&typeof _!="function"&&typeof _!="symbol";break;default:zt(s,u,ee,_,h,null)}return;case"dialog":ht("beforetoggle",s),ht("toggle",s),ht("cancel",s),ht("close",s);break;case"iframe":case"object":ht("load",s);break;case"video":case"audio":for(_=0;_<qf.length;_++)ht(qf[_],s);break;case"image":ht("error",s),ht("load",s);break;case"details":ht("toggle",s);break;case"embed":case"source":case"link":ht("error",s),ht("load",s);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(oe in h)if(h.hasOwnProperty(oe)&&(_=h[oe],_!=null))switch(oe){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,u));default:zt(s,u,oe,_,h,null)}return;default:if(nf(u)){for(me in h)h.hasOwnProperty(me)&&(_=h[me],_!==void 0&&Hy(s,u,me,_,h,void 0));return}}for(X in h)h.hasOwnProperty(X)&&(_=h[X],_!=null&&zt(s,u,X,_,h,null))}function mq(s,u,h,_){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,E=null,M=null,X=null,ee=null,oe=null,me=null;for(fe in h){var ve=h[fe];if(h.hasOwnProperty(fe)&&ve!=null)switch(fe){case"checked":break;case"value":break;case"defaultValue":ee=ve;default:_.hasOwnProperty(fe)||zt(s,u,fe,null,_,ve)}}for(var le in _){var fe=_[le];if(ve=h[le],_.hasOwnProperty(le)&&(fe!=null||ve!=null))switch(le){case"type":E=fe;break;case"name":v=fe;break;case"checked":oe=fe;break;case"defaultChecked":me=fe;break;case"value":M=fe;break;case"defaultValue":X=fe;break;case"children":case"dangerouslySetInnerHTML":if(fe!=null)throw Error(r(137,u));break;default:fe!==ve&&zt(s,u,le,fe,_,ve)}}Jc(s,M,X,ee,oe,me,E,v);return;case"select":fe=M=X=le=null;for(E in h)if(ee=h[E],h.hasOwnProperty(E)&&ee!=null)switch(E){case"value":break;case"multiple":fe=ee;default:_.hasOwnProperty(E)||zt(s,u,E,null,_,ee)}for(v in _)if(E=_[v],ee=h[v],_.hasOwnProperty(v)&&(E!=null||ee!=null))switch(v){case"value":le=E;break;case"defaultValue":X=E;break;case"multiple":M=E;default:E!==ee&&zt(s,u,v,E,_,ee)}u=X,h=M,_=fe,le!=null?So(s,!!h,le,!1):!!_!=!!h&&(u!=null?So(s,!!h,u,!0):So(s,!!h,h?[]:"",!1));return;case"textarea":fe=le=null;for(X in h)if(v=h[X],h.hasOwnProperty(X)&&v!=null&&!_.hasOwnProperty(X))switch(X){case"value":break;case"children":break;default:zt(s,u,X,null,_,v)}for(M in _)if(v=_[M],E=h[M],_.hasOwnProperty(M)&&(v!=null||E!=null))switch(M){case"value":le=v;break;case"defaultValue":fe=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==E&&zt(s,u,M,v,_,E)}tf(s,le,fe);return;case"option":for(var De in h)if(le=h[De],h.hasOwnProperty(De)&&le!=null&&!_.hasOwnProperty(De))switch(De){case"selected":s.selected=!1;break;default:zt(s,u,De,null,_,le)}for(ee in _)if(le=_[ee],fe=h[ee],_.hasOwnProperty(ee)&&le!==fe&&(le!=null||fe!=null))switch(ee){case"selected":s.selected=le&&typeof le!="function"&&typeof le!="symbol";break;default:zt(s,u,ee,le,_,fe)}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 We in h)le=h[We],h.hasOwnProperty(We)&&le!=null&&!_.hasOwnProperty(We)&&zt(s,u,We,null,_,le);for(oe in _)if(le=_[oe],fe=h[oe],_.hasOwnProperty(oe)&&le!==fe&&(le!=null||fe!=null))switch(oe){case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(r(137,u));break;default:zt(s,u,oe,le,_,fe)}return;default:if(nf(u)){for(var Lt in h)le=h[Lt],h.hasOwnProperty(Lt)&&le!==void 0&&!_.hasOwnProperty(Lt)&&Hy(s,u,Lt,void 0,_,le);for(me in _)le=_[me],fe=h[me],!_.hasOwnProperty(me)||le===fe||le===void 0&&fe===void 0||Hy(s,u,me,le,_,fe);return}}for(var ne in h)le=h[ne],h.hasOwnProperty(ne)&&le!=null&&!_.hasOwnProperty(ne)&&zt(s,u,ne,null,_,le);for(ve in _)le=_[ve],fe=h[ve],!_.hasOwnProperty(ve)||le===fe||le==null&&fe==null||zt(s,u,ve,le,_,fe)}function L3(s){switch(s){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function pq(){if(typeof performance.getEntriesByType=="function"){for(var s=0,u=0,h=performance.getEntriesByType("resource"),_=0;_<h.length;_++){var v=h[_],E=v.transferSize,M=v.initiatorType,X=v.duration;if(E&&X&&L3(M)){for(M=0,X=v.responseEnd,_+=1;_<h.length;_++){var ee=h[_],oe=ee.startTime;if(oe>X)break;var me=ee.transferSize,ve=ee.initiatorType;me&&L3(ve)&&(ee=ee.responseEnd,M+=me*(ee<X?1:(X-oe)/(ee-oe)))}if(--_,u+=8*(E+M)/(v.duration/1e3),s++,10<s)break}}if(0<s)return u/s/1e6}return navigator.connection&&(s=navigator.connection.downlink,typeof s=="number")?s:5}var Vy=null,Xy=null;function Hm(s){return s.nodeType===9?s:s.ownerDocument}function M3(s){switch(s){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function O3(s,u){if(s===0)switch(u){case"svg":return 1;case"math":return 2;default:return 0}return s===1&&u==="foreignObject"?0:s}function Yy(s,u){return s==="textarea"||s==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.children=="bigint"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var Wy=null;function _q(){var s=window.event;return s&&s.type==="popstate"?s===Wy?!1:(Wy=s,!0):(Wy=null,!1)}var D3=typeof setTimeout=="function"?setTimeout:void 0,gq=typeof clearTimeout=="function"?clearTimeout:void 0,q3=typeof Promise=="function"?Promise:void 0,yq=typeof queueMicrotask=="function"?queueMicrotask:typeof q3<"u"?function(s){return q3.resolve(null).then(s).catch(vq)}:D3;function vq(s){setTimeout(function(){throw s})}function Fo(s){return s==="head"}function I3(s,u){var h=u,_=0;do{var v=h.nextSibling;if(s.removeChild(h),v&&v.nodeType===8)if(h=v.data,h==="/$"||h==="/&"){if(_===0){s.removeChild(v),Cu(u);return}_--}else if(h==="$"||h==="$?"||h==="$~"||h==="$!"||h==="&")_++;else if(h==="html")$f(s.ownerDocument.documentElement);else if(h==="head"){h=s.ownerDocument.head,$f(h);for(var E=h.firstChild;E;){var M=E.nextSibling,X=E.nodeName;E[Ea]||X==="SCRIPT"||X==="STYLE"||X==="LINK"&&E.rel.toLowerCase()==="stylesheet"||h.removeChild(E),E=M}}else h==="body"&&$f(s.ownerDocument.body);h=v}while(h);Cu(u)}function $3(s,u){var h=s;s=0;do{var _=h.nextSibling;if(h.nodeType===1?u?(h._stashedDisplay=h.style.display,h.style.display="none"):(h.style.display=h._stashedDisplay||"",h.getAttribute("style")===""&&h.removeAttribute("style")):h.nodeType===3&&(u?(h._stashedText=h.nodeValue,h.nodeValue=""):h.nodeValue=h._stashedText||""),_&&_.nodeType===8)if(h=_.data,h==="/$"){if(s===0)break;s--}else h!=="$"&&h!=="$?"&&h!=="$~"&&h!=="$!"||s++;h=_}while(h)}function Ky(s){var u=s.firstChild;for(u&&u.nodeType===10&&(u=u.nextSibling);u;){var h=u;switch(u=u.nextSibling,h.nodeName){case"HTML":case"HEAD":case"BODY":Ky(h),Yc(h);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(h.rel.toLowerCase()==="stylesheet")continue}s.removeChild(h)}}function bq(s,u,h,_){for(;s.nodeType===1;){var v=h;if(s.nodeName.toLowerCase()!==u.toLowerCase()){if(!_&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(_){if(!s[Ea])switch(u){case"meta":if(!s.hasAttribute("itemprop"))break;return s;case"link":if(E=s.getAttribute("rel"),E==="stylesheet"&&s.hasAttribute("data-precedence"))break;if(E!==v.rel||s.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||s.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||s.getAttribute("title")!==(v.title==null?null:v.title))break;return s;case"style":if(s.hasAttribute("data-precedence"))break;return s;case"script":if(E=s.getAttribute("src"),(E!==(v.src==null?null:v.src)||s.getAttribute("type")!==(v.type==null?null:v.type)||s.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&E&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(u==="input"&&s.type==="hidden"){var E=v.name==null?null:""+v.name;if(v.type==="hidden"&&s.getAttribute("name")===E)return s}else return s;if(s=ui(s.nextSibling),s===null)break}return null}function xq(s,u,h){if(u==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!h||(s=ui(s.nextSibling),s===null))return null;return s}function P3(s,u){for(;s.nodeType!==8;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!u||(s=ui(s.nextSibling),s===null))return null;return s}function Zy(s){return s.data==="$?"||s.data==="$~"}function Qy(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState!=="loading"}function wq(s,u){var h=s.ownerDocument;if(s.data==="$~")s._reactRetry=u;else if(s.data!=="$?"||h.readyState!=="loading")u();else{var _=function(){u(),h.removeEventListener("DOMContentLoaded",_)};h.addEventListener("DOMContentLoaded",_),s._reactRetry=_}}function ui(s){for(;s!=null;s=s.nextSibling){var u=s.nodeType;if(u===1||u===3)break;if(u===8){if(u=s.data,u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"||u==="F!"||u==="F")break;if(u==="/$"||u==="/&")return null}}return s}var Jy=null;function U3(s){s=s.nextSibling;for(var u=0;s;){if(s.nodeType===8){var h=s.data;if(h==="/$"||h==="/&"){if(u===0)return ui(s.nextSibling);u--}else h!=="$"&&h!=="$!"&&h!=="$?"&&h!=="$~"&&h!=="&"||u++}s=s.nextSibling}return null}function B3(s){s=s.previousSibling;for(var u=0;s;){if(s.nodeType===8){var h=s.data;if(h==="$"||h==="$!"||h==="$?"||h==="$~"||h==="&"){if(u===0)return s;u--}else h!=="/$"&&h!=="/&"||u++}s=s.previousSibling}return null}function G3(s,u,h){switch(u=Hm(h),s){case"html":if(s=u.documentElement,!s)throw Error(r(452));return s;case"head":if(s=u.head,!s)throw Error(r(453));return s;case"body":if(s=u.body,!s)throw Error(r(454));return s;default:throw Error(r(451))}}function $f(s){for(var u=s.attributes;u.length;)s.removeAttributeNode(u[0]);Yc(s)}var ci=new Map,F3=new Set;function Vm(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var Ba=N.d;N.d={f:kq,r:Eq,D:Sq,C:Tq,L:Cq,m:Aq,X:Rq,S:jq,M:Nq};function kq(){var s=Ba.f(),u=qm();return s||u}function Eq(s){var u=wo(s);u!==null&&u.tag===5&&u.type==="form"?sT(u):Ba.r(s)}var Eu=typeof document>"u"?null:document;function H3(s,u,h){var _=Eu;if(_&&typeof u=="string"&&u){var v=kr(u);v='link[rel="'+s+'"][href="'+v+'"]',typeof h=="string"&&(v+='[crossorigin="'+h+'"]'),F3.has(v)||(F3.add(v),s={rel:s,crossOrigin:h,href:u},_.querySelector(v)===null&&(u=_.createElement("link"),Un(u,"link",s),cn(u),_.head.appendChild(u)))}}function Sq(s){Ba.D(s),H3("dns-prefetch",s,null)}function Tq(s,u){Ba.C(s,u),H3("preconnect",s,u)}function Cq(s,u,h){Ba.L(s,u,h);var _=Eu;if(_&&s&&u){var v='link[rel="preload"][as="'+kr(u)+'"]';u==="image"&&h&&h.imageSrcSet?(v+='[imagesrcset="'+kr(h.imageSrcSet)+'"]',typeof h.imageSizes=="string"&&(v+='[imagesizes="'+kr(h.imageSizes)+'"]')):v+='[href="'+kr(s)+'"]';var E=v;switch(u){case"style":E=Su(s);break;case"script":E=Tu(s)}ci.has(E)||(s=m({rel:"preload",href:u==="image"&&h&&h.imageSrcSet?void 0:s,as:u},h),ci.set(E,s),_.querySelector(v)!==null||u==="style"&&_.querySelector(Pf(E))||u==="script"&&_.querySelector(Uf(E))||(u=_.createElement("link"),Un(u,"link",s),cn(u),_.head.appendChild(u)))}}function Aq(s,u){Ba.m(s,u);var h=Eu;if(h&&s){var _=u&&typeof u.as=="string"?u.as:"script",v='link[rel="modulepreload"][as="'+kr(_)+'"][href="'+kr(s)+'"]',E=v;switch(_){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=Tu(s)}if(!ci.has(E)&&(s=m({rel:"modulepreload",href:s},u),ci.set(E,s),h.querySelector(v)===null)){switch(_){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(h.querySelector(Uf(E)))return}_=h.createElement("link"),Un(_,"link",s),cn(_),h.head.appendChild(_)}}}function jq(s,u,h){Ba.S(s,u,h);var _=Eu;if(_&&s){var v=Sa(_).hoistableStyles,E=Su(s);u=u||"default";var M=v.get(E);if(!M){var X={loading:0,preload:null};if(M=_.querySelector(Pf(E)))X.loading=5;else{s=m({rel:"stylesheet",href:s,"data-precedence":u},h),(h=ci.get(E))&&ev(s,h);var ee=M=_.createElement("link");cn(ee),Un(ee,"link",s),ee._p=new Promise(function(oe,me){ee.onload=oe,ee.onerror=me}),ee.addEventListener("load",function(){X.loading|=1}),ee.addEventListener("error",function(){X.loading|=2}),X.loading|=4,Xm(M,u,_)}M={type:"stylesheet",instance:M,count:1,state:X},v.set(E,M)}}}function Rq(s,u){Ba.X(s,u);var h=Eu;if(h&&s){var _=Sa(h).hoistableScripts,v=Tu(s),E=_.get(v);E||(E=h.querySelector(Uf(v)),E||(s=m({src:s,async:!0},u),(u=ci.get(v))&&tv(s,u),E=h.createElement("script"),cn(E),Un(E,"link",s),h.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},_.set(v,E))}}function Nq(s,u){Ba.M(s,u);var h=Eu;if(h&&s){var _=Sa(h).hoistableScripts,v=Tu(s),E=_.get(v);E||(E=h.querySelector(Uf(v)),E||(s=m({src:s,async:!0,type:"module"},u),(u=ci.get(v))&&tv(s,u),E=h.createElement("script"),cn(E),Un(E,"link",s),h.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},_.set(v,E))}}function V3(s,u,h,_){var v=(v=xe.current)?Vm(v):null;if(!v)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof h.precedence=="string"&&typeof h.href=="string"?(u=Su(h.href),h=Sa(v).hoistableStyles,_=h.get(u),_||(_={type:"style",instance:null,count:0,state:null},h.set(u,_)),_):{type:"void",instance:null,count:0,state:null};case"link":if(h.rel==="stylesheet"&&typeof h.href=="string"&&typeof h.precedence=="string"){s=Su(h.href);var E=Sa(v).hoistableStyles,M=E.get(s);if(M||(v=v.ownerDocument||v,M={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},E.set(s,M),(E=v.querySelector(Pf(s)))&&!E._p&&(M.instance=E,M.state.loading=5),ci.has(s)||(h={rel:"preload",as:"style",href:h.href,crossOrigin:h.crossOrigin,integrity:h.integrity,media:h.media,hrefLang:h.hrefLang,referrerPolicy:h.referrerPolicy},ci.set(s,h),E||zq(v,s,h,M.state))),u&&_===null)throw Error(r(528,""));return M}if(u&&_!==null)throw Error(r(529,""));return null;case"script":return u=h.async,h=h.src,typeof h=="string"&&u&&typeof u!="function"&&typeof u!="symbol"?(u=Tu(h),h=Sa(v).hoistableScripts,_=h.get(u),_||(_={type:"script",instance:null,count:0,state:null},h.set(u,_)),_):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function Su(s){return'href="'+kr(s)+'"'}function Pf(s){return'link[rel="stylesheet"]['+s+"]"}function X3(s){return m({},s,{"data-precedence":s.precedence,precedence:null})}function zq(s,u,h,_){s.querySelector('link[rel="preload"][as="style"]['+u+"]")?_.loading=1:(u=s.createElement("link"),_.preload=u,u.addEventListener("load",function(){return _.loading|=1}),u.addEventListener("error",function(){return _.loading|=2}),Un(u,"link",h),cn(u),s.head.appendChild(u))}function Tu(s){return'[src="'+kr(s)+'"]'}function Uf(s){return"script[async]"+s}function Y3(s,u,h){if(u.count++,u.instance===null)switch(u.type){case"style":var _=s.querySelector('style[data-href~="'+kr(h.href)+'"]');if(_)return u.instance=_,cn(_),_;var v=m({},h,{"data-href":h.href,"data-precedence":h.precedence,href:null,precedence:null});return _=(s.ownerDocument||s).createElement("style"),cn(_),Un(_,"style",v),Xm(_,h.precedence,s),u.instance=_;case"stylesheet":v=Su(h.href);var E=s.querySelector(Pf(v));if(E)return u.state.loading|=4,u.instance=E,cn(E),E;_=X3(h),(v=ci.get(v))&&ev(_,v),E=(s.ownerDocument||s).createElement("link"),cn(E);var M=E;return M._p=new Promise(function(X,ee){M.onload=X,M.onerror=ee}),Un(E,"link",_),u.state.loading|=4,Xm(E,h.precedence,s),u.instance=E;case"script":return E=Tu(h.src),(v=s.querySelector(Uf(E)))?(u.instance=v,cn(v),v):(_=h,(v=ci.get(E))&&(_=m({},h),tv(_,v)),s=s.ownerDocument||s,v=s.createElement("script"),cn(v),Un(v,"link",_),s.head.appendChild(v),u.instance=v);case"void":return null;default:throw Error(r(443,u.type))}else u.type==="stylesheet"&&(u.state.loading&4)===0&&(_=u.instance,u.state.loading|=4,Xm(_,h.precedence,s));return u.instance}function Xm(s,u,h){for(var _=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=_.length?_[_.length-1]:null,E=v,M=0;M<_.length;M++){var X=_[M];if(X.dataset.precedence===u)E=X;else if(E!==v)break}E?E.parentNode.insertBefore(s,E.nextSibling):(u=h.nodeType===9?h.head:h,u.insertBefore(s,u.firstChild))}function ev(s,u){s.crossOrigin==null&&(s.crossOrigin=u.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=u.referrerPolicy),s.title==null&&(s.title=u.title)}function tv(s,u){s.crossOrigin==null&&(s.crossOrigin=u.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=u.referrerPolicy),s.integrity==null&&(s.integrity=u.integrity)}var Ym=null;function W3(s,u,h){if(Ym===null){var _=new Map,v=Ym=new Map;v.set(h,_)}else v=Ym,_=v.get(h),_||(_=new Map,v.set(h,_));if(_.has(s))return _;for(_.set(s,null),h=h.getElementsByTagName(s),v=0;v<h.length;v++){var E=h[v];if(!(E[Ea]||E[Le]||s==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!=="http://www.w3.org/2000/svg"){var M=E.getAttribute(u)||"";M=s+M;var X=_.get(M);X?X.push(E):_.set(M,[E])}}return _}function K3(s,u,h){s=s.ownerDocument||s,s.head.insertBefore(h,u==="title"?s.querySelector("head > title"):null)}function Lq(s,u,h){if(h===1||u.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof u.precedence!="string"||typeof u.href!="string"||u.href==="")break;return!0;case"link":if(typeof u.rel!="string"||typeof u.href!="string"||u.href===""||u.onLoad||u.onError)break;switch(u.rel){case"stylesheet":return s=u.disabled,typeof u.precedence=="string"&&s==null;default:return!0}case"script":if(u.async&&typeof u.async!="function"&&typeof u.async!="symbol"&&!u.onLoad&&!u.onError&&u.src&&typeof u.src=="string")return!0}return!1}function Z3(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}function Mq(s,u,h,_){if(h.type==="stylesheet"&&(typeof _.media!="string"||matchMedia(_.media).matches!==!1)&&(h.state.loading&4)===0){if(h.instance===null){var v=Su(_.href),E=u.querySelector(Pf(v));if(E){u=E._p,u!==null&&typeof u=="object"&&typeof u.then=="function"&&(s.count++,s=Wm.bind(s),u.then(s,s)),h.state.loading|=4,h.instance=E,cn(E);return}E=u.ownerDocument||u,_=X3(_),(v=ci.get(v))&&ev(_,v),E=E.createElement("link"),cn(E);var M=E;M._p=new Promise(function(X,ee){M.onload=X,M.onerror=ee}),Un(E,"link",_),h.instance=E}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(h,u),(u=h.state.preload)&&(h.state.loading&3)===0&&(s.count++,h=Wm.bind(s),u.addEventListener("load",h),u.addEventListener("error",h))}}var nv=0;function Oq(s,u){return s.stylesheets&&s.count===0&&Zm(s,s.stylesheets),0<s.count||0<s.imgCount?function(h){var _=setTimeout(function(){if(s.stylesheets&&Zm(s,s.stylesheets),s.unsuspend){var E=s.unsuspend;s.unsuspend=null,E()}},6e4+u);0<s.imgBytes&&nv===0&&(nv=62500*pq());var v=setTimeout(function(){if(s.waitingForImages=!1,s.count===0&&(s.stylesheets&&Zm(s,s.stylesheets),s.unsuspend)){var E=s.unsuspend;s.unsuspend=null,E()}},(s.imgBytes>nv?50:800)+u);return s.unsuspend=h,function(){s.unsuspend=null,clearTimeout(_),clearTimeout(v)}}:null}function Wm(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zm(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var Km=null;function Zm(s,u){s.stylesheets=null,s.unsuspend!==null&&(s.count++,Km=new Map,u.forEach(Dq,s),Km=null,Wm.call(s))}function Dq(s,u){if(!(u.state.loading&4)){var h=Km.get(s);if(h)var _=h.get(null);else{h=new Map,Km.set(s,h);for(var v=s.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<v.length;E++){var M=v[E];(M.nodeName==="LINK"||M.getAttribute("media")!=="not all")&&(h.set(M.dataset.precedence,M),_=M)}_&&h.set(null,_)}v=u.instance,M=v.getAttribute("data-precedence"),E=h.get(M)||_,E===_&&h.set(null,v),h.set(M,v),this.count++,_=Wm.bind(this),v.addEventListener("load",_),v.addEventListener("error",_),E?E.parentNode.insertBefore(v,E.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(v,s.firstChild)),u.state.loading|=4}}var Bf={$$typeof:S,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function qq(s,u,h,_,v,E,M,X,ee){this.tag=1,this.containerInfo=s,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=Hc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hc(0),this.hiddenUpdates=Hc(null),this.identifierPrefix=_,this.onUncaughtError=v,this.onCaughtError=E,this.onRecoverableError=M,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ee,this.incompleteTransitions=new Map}function Q3(s,u,h,_,v,E,M,X,ee,oe,me,ve){return s=new qq(s,u,h,M,ee,oe,me,ve,X),u=1,E===!0&&(u|=24),E=Ur(3,null,null,u),s.current=E,E.stateNode=s,u=O0(),u.refCount++,s.pooledCache=u,u.refCount++,E.memoizedState={element:_,isDehydrated:h,cache:u},$0(E),s}function J3(s){return s?(s=ru,s):ru}function e4(s,u,h,_,v,E){v=J3(v),_.context===null?_.context=v:_.pendingContext=v,_=Lo(u),_.payload={element:h},E=E===void 0?null:E,E!==null&&(_.callback=E),h=Mo(s,_,u),h!==null&&(jr(h,s,u),bf(h,s,u))}function t4(s,u){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var h=s.retryLane;s.retryLane=h!==0&&h<u?h:u}}function rv(s,u){t4(s,u),(s=s.alternate)&&t4(s,u)}function n4(s){if(s.tag===13||s.tag===31){var u=Ds(s,67108864);u!==null&&jr(u,s,67108864),rv(s,67108864)}}function r4(s){if(s.tag===13||s.tag===31){var u=Vr();u=Xc(u);var h=Ds(s,u);h!==null&&jr(h,s,u),rv(s,u)}}var Qm=!0;function Iq(s,u,h,_){var v=j.T;j.T=null;var E=N.p;try{N.p=2,iv(s,u,h,_)}finally{N.p=E,j.T=v}}function $q(s,u,h,_){var v=j.T;j.T=null;var E=N.p;try{N.p=8,iv(s,u,h,_)}finally{N.p=E,j.T=v}}function iv(s,u,h,_){if(Qm){var v=av(_);if(v===null)Fy(s,u,_,Jm,h),a4(s,_);else if(Uq(v,s,u,h,_))_.stopPropagation();else if(a4(s,_),u&4&&-1<Pq.indexOf(s)){for(;v!==null;){var E=wo(v);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var M=Zi(E.pendingLanes);if(M!==0){var X=E;for(X.pendingLanes|=2,X.entangledLanes|=2;M;){var ee=1<<31-St(M);X.entanglements[1]|=ee,M&=~ee}sa(E),(Et&6)===0&&(Om=Yt()+500,Df(0))}}break;case 31:case 13:X=Ds(E,2),X!==null&&jr(X,E,2),qm(),rv(E,2)}if(E=av(_),E===null&&Fy(s,u,_,Jm,h),E===v)break;v=E}v!==null&&_.stopPropagation()}else Fy(s,u,_,null,h)}}function av(s){return s=Wl(s),ov(s)}var Jm=null;function ov(s){if(Jm=null,s=xo(s),s!==null){var u=a(s);if(u===null)s=null;else{var h=u.tag;if(h===13){if(s=o(u),s!==null)return s;s=null}else if(h===31){if(s=l(u),s!==null)return s;s=null}else if(h===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;s=null}else u!==s&&(s=null)}}return Jm=s,null}function i4(s){switch(s){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"resize":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"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"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Wi()){case de:return 2;case Se:return 8;case Be:case Ze:return 32;case ct:return 268435456;default:return 32}default:return 32}}var sv=!1,Ho=null,Vo=null,Xo=null,Gf=new Map,Ff=new Map,Yo=[],Pq="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 a4(s,u){switch(s){case"focusin":case"focusout":Ho=null;break;case"dragenter":case"dragleave":Vo=null;break;case"mouseover":case"mouseout":Xo=null;break;case"pointerover":case"pointerout":Gf.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ff.delete(u.pointerId)}}function Hf(s,u,h,_,v,E){return s===null||s.nativeEvent!==E?(s={blockedOn:u,domEventName:h,eventSystemFlags:_,nativeEvent:E,targetContainers:[v]},u!==null&&(u=wo(u),u!==null&&n4(u)),s):(s.eventSystemFlags|=_,u=s.targetContainers,v!==null&&u.indexOf(v)===-1&&u.push(v),s)}function Uq(s,u,h,_,v){switch(u){case"focusin":return Ho=Hf(Ho,s,u,h,_,v),!0;case"dragenter":return Vo=Hf(Vo,s,u,h,_,v),!0;case"mouseover":return Xo=Hf(Xo,s,u,h,_,v),!0;case"pointerover":var E=v.pointerId;return Gf.set(E,Hf(Gf.get(E)||null,s,u,h,_,v)),!0;case"gotpointercapture":return E=v.pointerId,Ff.set(E,Hf(Ff.get(E)||null,s,u,h,_,v)),!0}return!1}function o4(s){var u=xo(s.target);if(u!==null){var h=a(u);if(h!==null){if(u=h.tag,u===13){if(u=o(h),u!==null){s.blockedOn=u,Vd(s.priority,function(){r4(h)});return}}else if(u===31){if(u=l(h),u!==null){s.blockedOn=u,Vd(s.priority,function(){r4(h)});return}}else if(u===3&&h.stateNode.current.memoizedState.isDehydrated){s.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}s.blockedOn=null}function ep(s){if(s.blockedOn!==null)return!1;for(var u=s.targetContainers;0<u.length;){var h=av(s.nativeEvent);if(h===null){h=s.nativeEvent;var _=new h.constructor(h.type,h);rf=_,h.target.dispatchEvent(_),rf=null}else return u=wo(h),u!==null&&n4(u),s.blockedOn=h,!1;u.shift()}return!0}function s4(s,u,h){ep(s)&&h.delete(u)}function Bq(){sv=!1,Ho!==null&&ep(Ho)&&(Ho=null),Vo!==null&&ep(Vo)&&(Vo=null),Xo!==null&&ep(Xo)&&(Xo=null),Gf.forEach(s4),Ff.forEach(s4)}function tp(s,u){s.blockedOn===u&&(s.blockedOn=null,sv||(sv=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Bq)))}var np=null;function l4(s){np!==s&&(np=s,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){np===s&&(np=null);for(var u=0;u<s.length;u+=3){var h=s[u],_=s[u+1],v=s[u+2];if(typeof _!="function"){if(ov(_||h)===null)continue;break}var E=wo(h);E!==null&&(s.splice(u,3),u-=3,ay(E,{pending:!0,data:v,method:h.method,action:_},_,v))}}))}function Cu(s){function u(ee){return tp(ee,s)}Ho!==null&&tp(Ho,s),Vo!==null&&tp(Vo,s),Xo!==null&&tp(Xo,s),Gf.forEach(u),Ff.forEach(u);for(var h=0;h<Yo.length;h++){var _=Yo[h];_.blockedOn===s&&(_.blockedOn=null)}for(;0<Yo.length&&(h=Yo[0],h.blockedOn===null);)o4(h),h.blockedOn===null&&Yo.shift();if(h=(s.ownerDocument||s).$$reactFormReplay,h!=null)for(_=0;_<h.length;_+=3){var v=h[_],E=h[_+1],M=v[Vn]||null;if(typeof E=="function")M||l4(h);else if(M){var X=null;if(E&&E.hasAttribute("formAction")){if(v=E,M=E[Vn]||null)X=M.formAction;else if(ov(v)!==null)continue}else X=M.action;typeof X=="function"?h[_+1]=X:(h.splice(_,3),_-=3),l4(h)}}}function u4(){function s(E){E.canIntercept&&E.info==="react-transition"&&E.intercept({handler:function(){return new Promise(function(M){return v=M})},focusReset:"manual",scroll:"manual"})}function u(){v!==null&&(v(),v=null),_||setTimeout(h,20)}function h(){if(!_&&!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 _=!1,v=null;return navigation.addEventListener("navigate",s),navigation.addEventListener("navigatesuccess",u),navigation.addEventListener("navigateerror",u),setTimeout(h,100),function(){_=!0,navigation.removeEventListener("navigate",s),navigation.removeEventListener("navigatesuccess",u),navigation.removeEventListener("navigateerror",u),v!==null&&(v(),v=null)}}}function lv(s){this._internalRoot=s}rp.prototype.render=lv.prototype.render=function(s){var u=this._internalRoot;if(u===null)throw Error(r(409));var h=u.current,_=Vr();e4(h,_,s,u,null,null)},rp.prototype.unmount=lv.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var u=s.containerInfo;e4(s.current,2,null,s,null,null),qm(),u[bo]=null}};function rp(s){this._internalRoot=s}rp.prototype.unstable_scheduleHydration=function(s){if(s){var u=Hd();s={blockedOn:null,target:s,priority:u};for(var h=0;h<Yo.length&&u!==0&&u<Yo[h].priority;h++);Yo.splice(h,0,s),h===0&&o4(s)}};var c4=t.version;if(c4!=="19.2.7")throw Error(r(527,c4,"19.2.7"));N.findDOMNode=function(s){var u=s._reactInternals;if(u===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=f(u),s=s!==null?d(s):null,s=s===null?null:s.stateNode,s};var Gq={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ip=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ip.isDisabled&&ip.supportsFiber)try{Dn=ip.inject(Gq),Ht=ip}catch{}}return Xf.createRoot=function(s,u){if(!i(s))throw Error(r(299));var h=!1,_="",v=gT,E=yT,M=vT;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(_=u.identifierPrefix),u.onUncaughtError!==void 0&&(v=u.onUncaughtError),u.onCaughtError!==void 0&&(E=u.onCaughtError),u.onRecoverableError!==void 0&&(M=u.onRecoverableError)),u=Q3(s,1,!1,null,null,h,_,null,v,E,M,u4),s[bo]=u.current,Gy(s),new lv(u)},Xf.hydrateRoot=function(s,u,h){if(!i(s))throw Error(r(299));var _=!1,v="",E=gT,M=yT,X=vT,ee=null;return h!=null&&(h.unstable_strictMode===!0&&(_=!0),h.identifierPrefix!==void 0&&(v=h.identifierPrefix),h.onUncaughtError!==void 0&&(E=h.onUncaughtError),h.onCaughtError!==void 0&&(M=h.onCaughtError),h.onRecoverableError!==void 0&&(X=h.onRecoverableError),h.formState!==void 0&&(ee=h.formState)),u=Q3(s,1,!0,u,h??null,_,v,ee,E,M,X,u4),u.context=J3(null),h=u.current,_=Vr(),_=Xc(_),v=Lo(_),v.callback=null,Mo(h,v,_),h=_,u.current.lanes=h,go(u,h),sa(u),s[bo]=u.current,Gy(s),new rp(u)},Xf.version="19.2.7",Xf}var w4;function nI(){if(w4)return dv.exports;w4=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),dv.exports=tI(),dv.exports}var rI=nI();function Jt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function nj(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ug(e){let t,n,r;e.length!==2?(t=Jt,n=(l,c)=>Jt(e(l),c),r=(l,c)=>e(l)-c):(t=e===Jt||e===nj?e:iI,n=e,r=e);function i(l,c,f=0,d=l.length){if(f<d){if(t(c,c)!==0)return d;do{const m=f+d>>>1;n(l[m],c)<0?f=m+1:d=m}while(f<d)}return f}function a(l,c,f=0,d=l.length){if(f<d){if(t(c,c)!==0)return d;do{const m=f+d>>>1;n(l[m],c)<=0?f=m+1:d=m}while(f<d)}return f}function o(l,c,f=0,d=l.length){const m=i(l,c,f,d-1);return m>f&&r(l[m-1],c)>-r(l[m],c)?m-1:m}return{left:i,center:o,right:a}}function iI(){return 0}function C_(e){return e===null?NaN:+e}function*aI(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const rj=Ug(Jt),ds=rj.right,oI=rj.left,sI=Ug(C_).center;function lI(e,t){if(!((t=+t)>=0))throw new RangeError("invalid r");let n=e.length;if(!((n=Math.floor(n))>=0))throw new RangeError("invalid length");if(!n||!t)return e;const r=l2(t),i=e.slice();return r(e,i,0,n,1),r(i,e,0,n,1),r(e,i,0,n,1),e}const ij=aj(l2),uI=aj(cI);function aj(e){return function(t,n,r=n){if(!((n=+n)>=0))throw new RangeError("invalid rx");if(!((r=+r)>=0))throw new RangeError("invalid ry");let{data:i,width:a,height:o}=t;if(!((a=Math.floor(a))>=0))throw new RangeError("invalid width");if(!((o=Math.floor(o!==void 0?o:i.length/a))>=0))throw new RangeError("invalid height");if(!a||!o||!n&&!r)return t;const l=n&&e(n),c=r&&e(r),f=i.slice();return l&&c?(Au(l,f,i,a,o),Au(l,i,f,a,o),Au(l,f,i,a,o),ju(c,i,f,a,o),ju(c,f,i,a,o),ju(c,i,f,a,o)):l?(Au(l,i,f,a,o),Au(l,f,i,a,o),Au(l,i,f,a,o)):c&&(ju(c,i,f,a,o),ju(c,f,i,a,o),ju(c,i,f,a,o)),t}}function Au(e,t,n,r,i){for(let a=0,o=r*i;a<o;)e(t,n,a,a+=r,1)}function ju(e,t,n,r,i){for(let a=0,o=r*i;a<r;++a)e(t,n,a,a+o,r)}function cI(e){const t=l2(e);return(n,r,i,a,o)=>{i<<=2,a<<=2,o<<=2,t(n,r,i+0,a+0,o),t(n,r,i+1,a+1,o),t(n,r,i+2,a+2,o),t(n,r,i+3,a+3,o)}}function l2(e){const t=Math.floor(e);if(t===e)return fI(e);const n=e-t,r=2*e+1;return(i,a,o,l,c)=>{if(!((l-=c)>=o))return;let f=t*a[o];const d=c*t,m=d+c;for(let p=o,g=o+d;p<g;p+=c)f+=a[Math.min(l,p)];for(let p=o,g=l;p<=g;p+=c)f+=a[Math.min(l,p+d)],i[p]=(f+n*(a[Math.max(o,p-m)]+a[Math.min(l,p+m)]))/r,f-=a[Math.max(o,p-d)]}}function fI(e){const t=2*e+1;return(n,r,i,a,o)=>{if(!((a-=o)>=i))return;let l=e*r[i];const c=o*e;for(let f=i,d=i+c;f<d;f+=o)l+=r[Math.min(a,f)];for(let f=i,d=a;f<=d;f+=o)l+=r[Math.min(a,f+c)],n[f]=l/t,l-=r[Math.max(i,f-c)]}}function Bg(e,t){let n=0;if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(i=+i)>=i&&++n}return n}function hI(e){return e.length|0}function dI(e){return!(e>0)}function mI(e){return typeof e!="object"||"length"in e?e:Array.from(e)}function pI(e){return t=>e(...t)}function _I(...e){const t=typeof e[e.length-1]=="function"&&pI(e.pop());e=e.map(mI);const n=e.map(hI),r=e.length-1,i=new Array(r+1).fill(0),a=[];if(r<0||n.some(dI))return a;for(;;){a.push(i.map((l,c)=>e[c][l]));let o=r;for(;++i[o]===n[o];){if(o===0)return t?a.map(t):a;i[o--]=0}}}function gI(e,t){var n=0,r=0;return Float64Array.from(e,t===void 0?i=>n+=+i||0:i=>n+=+t(i,r++,e)||0)}function oj(e,t){let n=0,r,i=0,a=0;if(t===void 0)for(let o of e)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++n,a+=r*(o-i));else{let o=-1;for(let l of e)(l=t(l,++o,e))!=null&&(l=+l)>=l&&(r=l-i,i+=r/++n,a+=r*(l-i))}if(n>1)return a/(n-1)}function sj(e,t){const n=oj(e,t);return n&&Math.sqrt(n)}function Nh(e,t){let n,r;if(t===void 0)for(const i of e)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}class Sn{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let r=0;for(let i=0;i<this._n&&i<32;i++){const a=n[i],o=t+a,l=Math.abs(t)<Math.abs(a)?t-(o-a):a-(o-t);l&&(n[r++]=l),t=o}return n[r]=t,this._n=r+1,this}valueOf(){const t=this._partials;let n=this._n,r,i,a,o=0;if(n>0){for(o=t[--n];n>0&&(r=o,i=t[--n],o=r+i,a=i-(o-r),!a););n>0&&(a<0&&t[n-1]<0||a>0&&t[n-1]>0)&&(i=a*2,r=o+i,i==r-o&&(o=r))}return o}}function yI(e,t){const n=new Sn;if(t===void 0)for(let r of e)(r=+r)&&n.add(r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&n.add(i)}return+n}function vI(e,t){const n=new Sn;let r=-1;return Float64Array.from(e,t===void 0?i=>n.add(+i||0):i=>n.add(+t(i,++r,e)||0))}class Vh extends Map{constructor(t,n=cj){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(sx(this,t))}has(t){return super.has(sx(this,t))}set(t,n){return super.set(lj(this,t),n)}delete(t){return super.delete(uj(this,t))}}class vl extends Set{constructor(t,n=cj){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const r of t)this.add(r)}has(t){return super.has(sx(this,t))}add(t){return super.add(lj(this,t))}delete(t){return super.delete(uj(this,t))}}function sx({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function lj({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function uj({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function cj(e){return e!==null&&typeof e=="object"?e.valueOf():e}function ac(e){return e}function fj(e,...t){return Oc(e,ac,ac,t)}function hj(e,...t){return Oc(e,Array.from,ac,t)}function dj(e,t){for(let n=1,r=t.length;n<r;++n)e=e.flatMap(i=>i.pop().map(([a,o])=>[...i,a,o]));return e}function bI(e,...t){return dj(hj(e,...t),t)}function xI(e,t,...n){return dj(pj(e,t,...n),n)}function mj(e,t,...n){return Oc(e,ac,t,n)}function pj(e,t,...n){return Oc(e,Array.from,t,n)}function wI(e,...t){return Oc(e,ac,_j,t)}function kI(e,...t){return Oc(e,Array.from,_j,t)}function _j(e){if(e.length!==1)throw new Error("duplicate key");return e[0]}function Oc(e,t,n,r){return(function i(a,o){if(o>=r.length)return n(a);const l=new Vh,c=r[o++];let f=-1;for(const d of a){const m=c(d,++f,a),p=l.get(m);p?p.push(d):l.set(m,[d])}for(const[d,m]of l)l.set(d,i(m,o));return t(l)})(e,0)}function gj(e,t){return Array.from(t,n=>e[n])}function lx(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[n]=t;if(n&&n.length!==2||t.length>1){const r=Uint32Array.from(e,(i,a)=>a);return t.length>1?(t=t.map(i=>e.map(i)),r.sort((i,a)=>{for(const o of t){const l=oc(o[i],o[a]);if(l)return l}})):(n=e.map(n),r.sort((i,a)=>oc(n[i],n[a]))),gj(e,r)}return e.sort(u2(n))}function u2(e=Jt){if(e===Jt)return oc;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function oc(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}function EI(e,t,n){return(t.length!==2?lx(mj(e,t,n),(([r,i],[a,o])=>Jt(i,o)||Jt(r,a))):lx(fj(e,n),(([r,i],[a,o])=>t(i,o)||Jt(r,a)))).map(([r])=>r)}var SI=Array.prototype,TI=SI.slice;function gv(e){return()=>e}const CI=Math.sqrt(50),AI=Math.sqrt(10),jI=Math.sqrt(2);function A_(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=CI?10:a>=AI?5:a>=jI?2:1;let l,c,f;return i<0?(f=Math.pow(10,-i)/o,l=Math.round(e*f),c=Math.round(t*f),l/f<e&&++l,c/f>t&&--c,f=-f):(f=Math.pow(10,i)*o,l=Math.round(e/f),c=Math.round(t/f),l*f<e&&++l,c*f>t&&--c),c<l&&.5<=n&&n<2?A_(e,t,n*2):[l,c,f]}function bl(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?A_(t,e,n):A_(e,t,n);if(!(a>=i))return[];const l=a-i+1,c=new Array(l);if(r)if(o<0)for(let f=0;f<l;++f)c[f]=(a-f)/-o;else for(let f=0;f<l;++f)c[f]=(a-f)*o;else if(o<0)for(let f=0;f<l;++f)c[f]=(i+f)/-o;else for(let f=0;f<l;++f)c[f]=(i+f)*o;return c}function xl(e,t,n){return t=+t,e=+e,n=+n,A_(e,t,n)[2]}function j_(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?xl(t,e,n):xl(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function c2(e,t,n){let r;for(;;){const i=xl(e,t,n);if(i===r||i===0||!isFinite(i))return[e,t];i>0?(e=Math.floor(e/i)*i,t=Math.ceil(t/i)*i):i<0&&(e=Math.ceil(e*i)/i,t=Math.floor(t*i)/i),r=i}}function f2(e){return Math.max(1,Math.ceil(Math.log(Bg(e))/Math.LN2)+1)}function k4(){var e=ac,t=Nh,n=f2;function r(i){Array.isArray(i)||(i=Array.from(i));var a,o=i.length,l,c,f=new Array(o);for(a=0;a<o;++a)f[a]=e(i[a],a,i);var d=t(f),m=d[0],p=d[1],g=n(f,m,p);if(!Array.isArray(g)){const S=p,T=+g;if(t===Nh&&([m,p]=c2(m,p,T)),g=bl(m,p,T),g[0]<=m&&(c=xl(m,p,T)),g[g.length-1]>=p)if(S>=p&&t===Nh){const z=xl(m,p,T);isFinite(z)&&(z>0?p=(Math.floor(p/z)+1)*z:z<0&&(p=(Math.ceil(p*-z)+1)/-z))}else g.pop()}for(var y=g.length,x=0,k=y;g[x]<=m;)++x;for(;g[k-1]>p;)--k;(x||k<y)&&(g=g.slice(x,k),y=k-x);var w=new Array(y+1),C;for(a=0;a<=y;++a)C=w[a]=[],C.x0=a>0?g[a-1]:m,C.x1=a<y?g[a]:p;if(isFinite(c)){if(c>0)for(a=0;a<o;++a)(l=f[a])!=null&&m<=l&&l<=p&&w[Math.min(y,Math.floor((l-m)/c))].push(i[a]);else if(c<0){for(a=0;a<o;++a)if((l=f[a])!=null&&m<=l&&l<=p){const S=Math.floor((m-l)*c);w[Math.min(y,S+(g[S]<=l))].push(i[a])}}}else for(a=0;a<o;++a)(l=f[a])!=null&&m<=l&&l<=p&&w[ds(g,l,0,y)].push(i[a]);return w}return r.value=function(i){return arguments.length?(e=typeof i=="function"?i:gv(i),r):e},r.domain=function(i){return arguments.length?(t=typeof i=="function"?i:gv([i[0],i[1]]),r):t},r.thresholds=function(i){return arguments.length?(n=typeof i=="function"?i:gv(Array.isArray(i)?TI.call(i):i),r):n},r}function Xh(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function h2(e,t){let n,r=-1,i=-1;if(t===void 0)for(const a of e)++i,a!=null&&(n<a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of e)(a=t(a,++i,e))!=null&&(n<a||n===void 0&&a>=a)&&(n=a,r=i);return r}function R_(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function d2(e,t){let n,r=-1,i=-1;if(t===void 0)for(const a of e)++i,a!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of e)(a=t(a,++i,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);return r}function Gg(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?oc:u2(i);r>n;){if(r-n>600){const c=r-n+1,f=t-n+1,d=Math.log(c),m=.5*Math.exp(2*d/3),p=.5*Math.sqrt(d*m*(c-m)/c)*(f-c/2<0?-1:1),g=Math.max(n,Math.floor(t-f*m/c+p)),y=Math.min(r,Math.floor(t+(c-f)*m/c+p));Gg(e,t,g,y,i)}const a=e[t];let o=n,l=r;for(Yf(e,n,t),i(e[r],a)>0&&Yf(e,n,r);o<l;){for(Yf(e,o,l),++o,--l;i(e[o],a)<0;)++o;for(;i(e[l],a)>0;)--l}i(e[n],a)===0?Yf(e,n,l):(++l,Yf(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function Yf(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function yj(e,t=Jt){let n,r=!1;if(t.length===1){let i;for(const a of e){const o=t(a);(r?Jt(o,i)>0:Jt(o,o)===0)&&(n=a,i=o,r=!0)}}else for(const i of e)(r?t(i,n)>0:t(i,i)===0)&&(n=i,r=!0);return n}function Yh(e,t,n){if(e=Float64Array.from(aI(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return R_(e);if(t>=1)return Xh(e);var r,i=(r-1)*t,a=Math.floor(i),o=Xh(Gg(e,a).subarray(0,a+1)),l=R_(e.subarray(a+1));return o+(l-o)*(i-a)}}function vj(e,t,n=C_){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e),l=+n(e[a+1],a+1,e);return o+(l-o)*(i-a)}}function bj(e,t,n=C_){if(!isNaN(t=+t)){if(r=Float64Array.from(e,(l,c)=>C_(n(e[c],c,e))),t<=0)return d2(r);if(t>=1)return h2(r);var r,i=Uint32Array.from(e,(l,c)=>c),a=r.length-1,o=Math.floor(a*t);return Gg(i,o,0,a,(l,c)=>oc(r[l],r[c])),o=yj(i.subarray(0,o+1),l=>r[l]),o>=0?o:-1}}function RI(e,t,n){const r=Bg(e),i=Yh(e,.75)-Yh(e,.25);return r&&i?Math.ceil((n-t)/(2*i*Math.pow(r,-1/3))):1}function NI(e,t,n){const r=Bg(e),i=sj(e);return r&&i?Math.ceil((n-t)*Math.cbrt(r)/(3.49*i)):1}function zI(e,t){let n=0,r=0;if(t===void 0)for(let i of e)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}function LI(e,t){return Yh(e,.5,t)}function MI(e,t){return bj(e,.5,t)}function*OI(e){for(const t of e)yield*t}function m2(e){return Array.from(OI(e))}function DI(e,t){const n=new Vh;if(t===void 0)for(let a of e)a!=null&&a>=a&&n.set(a,(n.get(a)||0)+1);else{let a=-1;for(let o of e)(o=t(o,++a,e))!=null&&o>=o&&n.set(o,(n.get(o)||0)+1)}let r,i=0;for(const[a,o]of n)o>i&&(i=o,r=a);return r}function qI(e,t=II){const n=[];let r,i=!1;for(const a of e)i&&n.push(t(r,a)),r=a,i=!0;return n}function II(e,t){return[e,t]}function os(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function $I(e,t=Jt){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");let n=Array.from(e);const r=new Float64Array(n.length);t.length!==2&&(n=n.map(t),t=Jt);const i=(l,c)=>t(n[l],n[c]);let a,o;return e=Uint32Array.from(n,(l,c)=>c),e.sort(t===Jt?(l,c)=>oc(n[l],n[c]):u2(i)),e.forEach((l,c)=>{const f=i(l,a===void 0?l:a);f>=0?((a===void 0||f>0)&&(a=l,o=c),r[l]=o):r[l]=NaN}),r}function PI(e,t=Jt){let n,r=!1;if(t.length===1){let i;for(const a of e){const o=t(a);(r?Jt(o,i)<0:Jt(o,o)===0)&&(n=a,i=o,r=!0)}}else for(const i of e)(r?t(i,n)<0:t(i,i)===0)&&(n=i,r=!0);return n}function xj(e,t=Jt){if(t.length===1)return d2(e,t);let n,r=-1,i=-1;for(const a of e)++i,(r<0?t(a,a)===0:t(a,n)<0)&&(n=a,r=i);return r}function UI(e,t=Jt){if(t.length===1)return h2(e,t);let n,r=-1,i=-1;for(const a of e)++i,(r<0?t(a,a)===0:t(a,n)>0)&&(n=a,r=i);return r}function BI(e,t){const n=xj(e,t);return n<0?void 0:n}const GI=wj(Math.random);function wj(e){return function(n,r=0,i=n.length){let a=i-(r=+r);for(;a;){const o=e()*a--|0,l=n[a+r];n[a+r]=n[o+r],n[o+r]=l}return n}}function FI(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function kj(e){if(!(a=e.length))return[];for(var t=-1,n=R_(e,HI),r=new Array(n);++t<n;)for(var i=-1,a,o=r[t]=new Array(a);++i<a;)o[i]=e[i][t];return r}function HI(e){return e.length}function VI(){return kj(arguments)}function XI(e,t){if(typeof t!="function")throw new TypeError("test is not a function");let n=-1;for(const r of e)if(!t(r,++n,e))return!1;return!0}function YI(e,t){if(typeof t!="function")throw new TypeError("test is not a function");let n=-1;for(const r of e)if(t(r,++n,e))return!0;return!1}function WI(e,t){if(typeof t!="function")throw new TypeError("test is not a function");const n=[];let r=-1;for(const i of e)t(i,++r,e)&&n.push(i);return n}function KI(e,t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");if(typeof t!="function")throw new TypeError("mapper is not a function");return Array.from(e,(n,r)=>t(n,r,e))}function ZI(e,t,n){if(typeof t!="function")throw new TypeError("reducer is not a function");const r=e[Symbol.iterator]();let i,a,o=-1;if(arguments.length<3){if({done:i,value:n}=r.next(),i)return;++o}for(;{done:i,value:a}=r.next(),!i;)n=t(n,a,++o,e);return n}function QI(e){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(e).reverse()}function JI(e,...t){e=new vl(e);for(const n of t)for(const r of n)e.delete(r);return e}function e$(e,t){const n=t[Symbol.iterator](),r=new vl;for(const i of e){if(r.has(i))return!1;let a,o;for(;({value:a,done:o}=n.next())&&!o;){if(Object.is(i,a))return!1;r.add(a)}}return!0}function t$(e,...t){e=new vl(e),t=t.map(n$);e:for(const n of e)for(const r of t)if(!r.has(n)){e.delete(n);continue e}return e}function n$(e){return e instanceof vl?e:new vl(e)}function Ej(e,t){const n=e[Symbol.iterator](),r=new Set;for(const i of t){const a=E4(i);if(r.has(a))continue;let o,l;for(;{value:o,done:l}=n.next();){if(l)return!1;const c=E4(o);if(r.add(c),Object.is(a,c))break}}return!0}function E4(e){return e!==null&&typeof e=="object"?e.valueOf():e}function r$(e,t){return Ej(t,e)}function i$(...e){const t=new vl;for(const n of e)for(const r of n)t.add(r);return t}function a$(e){return e}var a_=1,o_=2,ux=3,gh=4,S4=1e-6;function o$(e){return"translate("+e+",0)"}function s$(e){return"translate(0,"+e+")"}function l$(e){return t=>+e(t)}function u$(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function c$(){return!this.__axis}function Fg(e,t){var n=[],r=null,i=null,a=6,o=6,l=3,c=typeof window<"u"&&window.devicePixelRatio>1?0:.5,f=e===a_||e===gh?-1:1,d=e===gh||e===o_?"x":"y",m=e===a_||e===ux?o$:s$;function p(g){var y=r??(t.ticks?t.ticks.apply(t,n):t.domain()),x=i??(t.tickFormat?t.tickFormat.apply(t,n):a$),k=Math.max(a,0)+l,w=t.range(),C=+w[0]+c,S=+w[w.length-1]+c,T=(t.bandwidth?u$:l$)(t.copy(),c),z=g.selection?g.selection():g,A=z.selectAll(".domain").data([null]),L=z.selectAll(".tick").data(y,t).order(),G=L.exit(),H=L.enter().append("g").attr("class","tick"),q=L.select("line"),V=L.select("text");A=A.merge(A.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),L=L.merge(H),q=q.merge(H.append("line").attr("stroke","currentColor").attr(d+"2",f*a)),V=V.merge(H.append("text").attr("fill","currentColor").attr(d,f*k).attr("dy",e===a_?"0em":e===ux?"0.71em":"0.32em")),g!==z&&(A=A.transition(g),L=L.transition(g),q=q.transition(g),V=V.transition(g),G=G.transition(g).attr("opacity",S4).attr("transform",function(W){return isFinite(W=T(W))?m(W+c):this.getAttribute("transform")}),H.attr("opacity",S4).attr("transform",function(W){var I=this.parentNode.__axis;return m((I&&isFinite(I=I(W))?I:T(W))+c)})),G.remove(),A.attr("d",e===gh||e===o_?o?"M"+f*o+","+C+"H"+c+"V"+S+"H"+f*o:"M"+c+","+C+"V"+S:o?"M"+C+","+f*o+"V"+c+"H"+S+"V"+f*o:"M"+C+","+c+"H"+S),L.attr("opacity",1).attr("transform",function(W){return m(T(W)+c)}),q.attr(d+"2",f*a),V.attr(d,f*k).text(x),z.filter(c$).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===o_?"start":e===gh?"end":"middle"),z.each(function(){this.__axis=T})}return p.scale=function(g){return arguments.length?(t=g,p):t},p.ticks=function(){return n=Array.from(arguments),p},p.tickArguments=function(g){return arguments.length?(n=g==null?[]:Array.from(g),p):n.slice()},p.tickValues=function(g){return arguments.length?(r=g==null?null:Array.from(g),p):r&&r.slice()},p.tickFormat=function(g){return arguments.length?(i=g,p):i},p.tickSize=function(g){return arguments.length?(a=o=+g,p):a},p.tickSizeInner=function(g){return arguments.length?(a=+g,p):a},p.tickSizeOuter=function(g){return arguments.length?(o=+g,p):o},p.tickPadding=function(g){return arguments.length?(l=+g,p):l},p.offset=function(g){return arguments.length?(c=+g,p):c},p}function f$(e){return Fg(a_,e)}function h$(e){return Fg(o_,e)}function d$(e){return Fg(ux,e)}function m$(e){return Fg(gh,e)}var p$={value:()=>{}};function Ol(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new s_(n)}function s_(e){this._=e}function _$(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}s_.prototype=Ol.prototype={constructor:s_,on:function(e,t){var n=this._,r=_$(e+"",n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=g$(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=T4(n[i],e.name,t);else if(t==null)for(i in n)n[i]=T4(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new s_(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function g$(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function T4(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=p$,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var cx="http://www.w3.org/1999/xhtml";const fx={svg:"http://www.w3.org/2000/svg",xhtml:cx,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function xd(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),fx.hasOwnProperty(t)?{space:fx[t],local:e}:e}function y$(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===cx&&t.documentElement.namespaceURI===cx?t.createElement(e):t.createElementNS(n,e)}}function v$(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Hg(e){var t=xd(e);return(t.local?v$:y$)(t)}function b$(){}function Vg(e){return e==null?b$:function(){return this.querySelector(e)}}function x$(e){typeof e!="function"&&(e=Vg(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,l=r[i]=new Array(o),c,f,d=0;d<o;++d)(c=a[d])&&(f=e.call(c,c.__data__,d,a))&&("__data__"in c&&(f.__data__=c.__data__),l[d]=f);return new _r(r,this._parents)}function Sj(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function w$(){return[]}function p2(e){return e==null?w$:function(){return this.querySelectorAll(e)}}function k$(e){return function(){return Sj(e.apply(this,arguments))}}function E$(e){typeof e=="function"?e=k$(e):e=p2(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],l=o.length,c,f=0;f<l;++f)(c=o[f])&&(r.push(e.call(c,c.__data__,f,o)),i.push(c));return new _r(r,i)}function _2(e){return function(){return this.matches(e)}}function Tj(e){return function(t){return t.matches(e)}}var S$=Array.prototype.find;function T$(e){return function(){return S$.call(this.children,e)}}function C$(){return this.firstElementChild}function A$(e){return this.select(e==null?C$:T$(typeof e=="function"?e:Tj(e)))}var j$=Array.prototype.filter;function R$(){return Array.from(this.children)}function N$(e){return function(){return j$.call(this.children,e)}}function z$(e){return this.selectAll(e==null?R$:N$(typeof e=="function"?e:Tj(e)))}function L$(e){typeof e!="function"&&(e=_2(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,l=r[i]=[],c,f=0;f<o;++f)(c=a[f])&&e.call(c,c.__data__,f,a)&&l.push(c);return new _r(r,this._parents)}function Cj(e){return new Array(e.length)}function M$(){return new _r(this._enter||this._groups.map(Cj),this._parents)}function N_(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}N_.prototype={constructor:N_,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function O$(e){return function(){return e}}function D$(e,t,n,r,i,a){for(var o=0,l,c=t.length,f=a.length;o<f;++o)(l=t[o])?(l.__data__=a[o],r[o]=l):n[o]=new N_(e,a[o]);for(;o<c;++o)(l=t[o])&&(i[o]=l)}function q$(e,t,n,r,i,a,o){var l,c,f=new Map,d=t.length,m=a.length,p=new Array(d),g;for(l=0;l<d;++l)(c=t[l])&&(p[l]=g=o.call(c,c.__data__,l,t)+"",f.has(g)?i[l]=c:f.set(g,c));for(l=0;l<m;++l)g=o.call(e,a[l],l,a)+"",(c=f.get(g))?(r[l]=c,c.__data__=a[l],f.delete(g)):n[l]=new N_(e,a[l]);for(l=0;l<d;++l)(c=t[l])&&f.get(p[l])===c&&(i[l]=c)}function I$(e){return e.__data__}function $$(e,t){if(!arguments.length)return Array.from(this,I$);var n=t?q$:D$,r=this._parents,i=this._groups;typeof e!="function"&&(e=O$(e));for(var a=i.length,o=new Array(a),l=new Array(a),c=new Array(a),f=0;f<a;++f){var d=r[f],m=i[f],p=m.length,g=P$(e.call(d,d&&d.__data__,f,r)),y=g.length,x=l[f]=new Array(y),k=o[f]=new Array(y),w=c[f]=new Array(p);n(d,m,x,k,w,g,t);for(var C=0,S=0,T,z;C<y;++C)if(T=x[C]){for(C>=S&&(S=C+1);!(z=k[S])&&++S<y;);T._next=z||null}}return o=new _r(o,r),o._enter=l,o._exit=c,o}function P$(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function U$(){return new _r(this._exit||this._groups.map(Cj),this._parents)}function B$(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function G$(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),l=new Array(i),c=0;c<o;++c)for(var f=n[c],d=r[c],m=f.length,p=l[c]=new Array(m),g,y=0;y<m;++y)(g=f[y]||d[y])&&(p[y]=g);for(;c<i;++c)l[c]=n[c];return new _r(l,this._parents)}function F$(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function H$(e){e||(e=V$);function t(m,p){return m&&p?e(m.__data__,p.__data__):!m-!p}for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o=n[a],l=o.length,c=i[a]=new Array(l),f,d=0;d<l;++d)(f=o[d])&&(c[d]=f);c.sort(t)}return new _r(i,this._parents).order()}function V$(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function X$(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Y$(){return Array.from(this)}function W$(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function K$(){let e=0;for(const t of this)++e;return e}function Z$(){return!this.node()}function Q$(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,l;a<o;++a)(l=i[a])&&e.call(l,l.__data__,a,i);return this}function J$(e){return function(){this.removeAttribute(e)}}function eP(e){return function(){this.removeAttributeNS(e.space,e.local)}}function tP(e,t){return function(){this.setAttribute(e,t)}}function nP(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function rP(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function iP(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function aP(e,t){var n=xd(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?eP:J$:typeof t=="function"?n.local?iP:rP:n.local?nP:tP)(n,t))}function g2(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function oP(e){return function(){this.style.removeProperty(e)}}function sP(e,t,n){return function(){this.style.setProperty(e,t,n)}}function lP(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function uP(e,t,n){return arguments.length>1?this.each((t==null?oP:typeof t=="function"?lP:sP)(e,t,n??"")):wl(this.node(),e)}function wl(e,t){return e.style.getPropertyValue(t)||g2(e).getComputedStyle(e,null).getPropertyValue(t)}function cP(e){return function(){delete this[e]}}function fP(e,t){return function(){this[e]=t}}function hP(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function dP(e,t){return arguments.length>1?this.each((t==null?cP:typeof t=="function"?hP:fP)(e,t)):this.node()[e]}function Aj(e){return e.trim().split(/^|\s+/)}function y2(e){return e.classList||new jj(e)}function jj(e){this._node=e,this._names=Aj(e.getAttribute("class")||"")}jj.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Rj(e,t){for(var n=y2(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Nj(e,t){for(var n=y2(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function mP(e){return function(){Rj(this,e)}}function pP(e){return function(){Nj(this,e)}}function _P(e,t){return function(){(t.apply(this,arguments)?Rj:Nj)(this,e)}}function gP(e,t){var n=Aj(e+"");if(arguments.length<2){for(var r=y2(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?_P:t?mP:pP)(n,t))}function yP(){this.textContent=""}function vP(e){return function(){this.textContent=e}}function bP(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function xP(e){return arguments.length?this.each(e==null?yP:(typeof e=="function"?bP:vP)(e)):this.node().textContent}function wP(){this.innerHTML=""}function kP(e){return function(){this.innerHTML=e}}function EP(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function SP(e){return arguments.length?this.each(e==null?wP:(typeof e=="function"?EP:kP)(e)):this.node().innerHTML}function TP(){this.nextSibling&&this.parentNode.appendChild(this)}function CP(){return this.each(TP)}function AP(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function jP(){return this.each(AP)}function RP(e){var t=typeof e=="function"?e:Hg(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function NP(){return null}function zP(e,t){var n=typeof e=="function"?e:Hg(e),r=t==null?NP:typeof t=="function"?t:Vg(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function LP(){var e=this.parentNode;e&&e.removeChild(this)}function MP(){return this.each(LP)}function OP(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function DP(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function qP(e){return this.select(e?DP:OP)}function IP(e){return arguments.length?this.property("__data__",e):this.node().__data__}function $P(e){return function(t){e.call(this,t,this.__data__)}}function PP(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function UP(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function BP(e,t,n){return function(){var r=this.__on,i,a=$P(t);if(r){for(var o=0,l=r.length;o<l;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function GP(e,t,n){var r=PP(e+""),i,a=r.length,o;if(arguments.length<2){var l=this.node().__on;if(l){for(var c=0,f=l.length,d;c<f;++c)for(i=0,d=l[c];i<a;++i)if((o=r[i]).type===d.type&&o.name===d.name)return d.value}return}for(l=t?BP:UP,i=0;i<a;++i)this.each(l(r[i],t,n));return this}function zj(e,t,n){var r=g2(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function FP(e,t){return function(){return zj(this,e,t)}}function HP(e,t){return function(){return zj(this,e,t.apply(this,arguments))}}function VP(e,t){return this.each((typeof t=="function"?HP:FP)(e,t))}function*XP(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var v2=[null];function _r(e,t){this._groups=e,this._parents=t}function Dl(){return new _r([[document.documentElement]],v2)}function YP(){return this}_r.prototype=Dl.prototype={constructor:_r,select:x$,selectAll:E$,selectChild:A$,selectChildren:z$,filter:L$,data:$$,enter:M$,exit:U$,join:B$,merge:G$,selection:YP,order:F$,sort:H$,call:X$,nodes:Y$,node:W$,size:K$,empty:Z$,each:Q$,attr:aP,style:uP,property:dP,classed:gP,text:xP,html:SP,raise:CP,lower:jP,append:RP,insert:zP,remove:MP,clone:qP,datum:IP,on:GP,dispatch:VP,[Symbol.iterator]:XP};function Bn(e){return typeof e=="string"?new _r([[document.querySelector(e)]],[document.documentElement]):new _r([[e]],v2)}function WP(e){return Bn(Hg(e).call(document.documentElement))}var KP=0;function Lj(){return new hx}function hx(){this._="@"+(++KP).toString(36)}hx.prototype=Lj.prototype={constructor:hx,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};function Mj(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Wr(e,t){if(e=Mj(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}function ZP(e,t){return e.target&&(e=Mj(e),t===void 0&&(t=e.currentTarget),e=e.touches||[e]),Array.from(e,n=>Wr(n,t))}function QP(e){return typeof e=="string"?new _r([document.querySelectorAll(e)],[document.documentElement]):new _r([Sj(e)],v2)}const JP={passive:!1},Wh={capture:!0,passive:!1};function yv(e){e.stopImmediatePropagation()}function Qu(e){e.preventDefault(),e.stopImmediatePropagation()}function Xg(e){var t=e.document.documentElement,n=Bn(e).on("dragstart.drag",Qu,Wh);"onselectstart"in t?n.on("selectstart.drag",Qu,Wh):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Yg(e,t){var n=e.document.documentElement,r=Bn(e).on("dragstart.drag",null);t&&(r.on("click.drag",Qu,Wh),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const ap=e=>()=>e;function dx(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:a,x:o,y:l,dx:c,dy:f,dispatch:d}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:f,enumerable:!0,configurable:!0},_:{value:d}})}dx.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function eU(e){return!e.ctrlKey&&!e.button}function tU(){return this.parentNode}function nU(e,t){return t??{x:e.x,y:e.y}}function rU(){return navigator.maxTouchPoints||"ontouchstart"in this}function iU(){var e=eU,t=tU,n=nU,r=rU,i={},a=Ol("start","drag","end"),o=0,l,c,f,d,m=0;function p(T){T.on("mousedown.drag",g).filter(r).on("touchstart.drag",k).on("touchmove.drag",w,JP).on("touchend.drag touchcancel.drag",C).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(T,z){if(!(d||!e.call(this,T,z))){var A=S(this,t.call(this,T,z),T,z,"mouse");A&&(Bn(T.view).on("mousemove.drag",y,Wh).on("mouseup.drag",x,Wh),Xg(T.view),yv(T),f=!1,l=T.clientX,c=T.clientY,A("start",T))}}function y(T){if(Qu(T),!f){var z=T.clientX-l,A=T.clientY-c;f=z*z+A*A>m}i.mouse("drag",T)}function x(T){Bn(T.view).on("mousemove.drag mouseup.drag",null),Yg(T.view,f),Qu(T),i.mouse("end",T)}function k(T,z){if(e.call(this,T,z)){var A=T.changedTouches,L=t.call(this,T,z),G=A.length,H,q;for(H=0;H<G;++H)(q=S(this,L,T,z,A[H].identifier,A[H]))&&(yv(T),q("start",T,A[H]))}}function w(T){var z=T.changedTouches,A=z.length,L,G;for(L=0;L<A;++L)(G=i[z[L].identifier])&&(Qu(T),G("drag",T,z[L]))}function C(T){var z=T.changedTouches,A=z.length,L,G;for(d&&clearTimeout(d),d=setTimeout(function(){d=null},500),L=0;L<A;++L)(G=i[z[L].identifier])&&(yv(T),G("end",T,z[L]))}function S(T,z,A,L,G,H){var q=a.copy(),V=Wr(H||A,z),W,I,B;if((B=n.call(T,new dx("beforestart",{sourceEvent:A,target:p,identifier:G,active:o,x:V[0],y:V[1],dx:0,dy:0,dispatch:q}),L))!=null)return W=B.x-V[0]||0,I=B.y-V[1]||0,function D(j,N,F){var Z=V,O;switch(j){case"start":i[G]=D,O=o++;break;case"end":delete i[G],--o;case"drag":V=Wr(F||N,z),O=o;break}q.call(j,T,new dx(j,{sourceEvent:N,subject:B,target:p,identifier:G,active:O,x:V[0]+W,y:V[1]+I,dx:V[0]-Z[0],dy:V[1]-Z[1],dispatch:q}),L)}}return p.filter=function(T){return arguments.length?(e=typeof T=="function"?T:ap(!!T),p):e},p.container=function(T){return arguments.length?(t=typeof T=="function"?T:ap(T),p):t},p.subject=function(T){return arguments.length?(n=typeof T=="function"?T:ap(T),p):n},p.touchable=function(T){return arguments.length?(r=typeof T=="function"?T:ap(!!T),p):r},p.on=function(){var T=a.on.apply(a,arguments);return T===a?p:T},p.clickDistance=function(T){return arguments.length?(m=(T=+T)*T,p):Math.sqrt(m)},p}function Dc(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function wd(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ys(){}var kl=.7,sc=1/kl,Ju="\\s*([+-]?\\d+)\\s*",Kh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",pa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",aU=/^#([0-9a-f]{3,8})$/,oU=new RegExp(`^rgb\\(${Ju},${Ju},${Ju}\\)$`),sU=new RegExp(`^rgb\\(${pa},${pa},${pa}\\)$`),lU=new RegExp(`^rgba\\(${Ju},${Ju},${Ju},${Kh}\\)$`),uU=new RegExp(`^rgba\\(${pa},${pa},${pa},${Kh}\\)$`),cU=new RegExp(`^hsl\\(${Kh},${pa},${pa}\\)$`),fU=new RegExp(`^hsla\\(${Kh},${pa},${pa},${Kh}\\)$`),C4={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Dc(ys,ms,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:A4,formatHex:A4,formatHex8:hU,formatHsl:dU,formatRgb:j4,toString:j4});function A4(){return this.rgb().formatHex()}function hU(){return this.rgb().formatHex8()}function dU(){return Oj(this).formatHsl()}function j4(){return this.rgb().formatRgb()}function ms(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=aU.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?R4(t):n===3?new Nn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?op(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?op(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=oU.exec(e))?new Nn(t[1],t[2],t[3],1):(t=sU.exec(e))?new Nn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=lU.exec(e))?op(t[1],t[2],t[3],t[4]):(t=uU.exec(e))?op(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=cU.exec(e))?L4(t[1],t[2]/100,t[3]/100,1):(t=fU.exec(e))?L4(t[1],t[2]/100,t[3]/100,t[4]):C4.hasOwnProperty(e)?R4(C4[e]):e==="transparent"?new Nn(NaN,NaN,NaN,0):null}function R4(e){return new Nn(e>>16&255,e>>8&255,e&255,1)}function op(e,t,n,r){return r<=0&&(e=t=n=NaN),new Nn(e,t,n,r)}function b2(e){return e instanceof ys||(e=ms(e)),e?(e=e.rgb(),new Nn(e.r,e.g,e.b,e.opacity)):new Nn}function lc(e,t,n,r){return arguments.length===1?b2(e):new Nn(e,t,n,r??1)}function Nn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Dc(Nn,lc,wd(ys,{brighter(e){return e=e==null?sc:Math.pow(sc,e),new Nn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?kl:Math.pow(kl,e),new Nn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Nn(pl(this.r),pl(this.g),pl(this.b),z_(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:N4,formatHex:N4,formatHex8:mU,formatRgb:z4,toString:z4}));function N4(){return`#${ll(this.r)}${ll(this.g)}${ll(this.b)}`}function mU(){return`#${ll(this.r)}${ll(this.g)}${ll(this.b)}${ll((isNaN(this.opacity)?1:this.opacity)*255)}`}function z4(){const e=z_(this.opacity);return`${e===1?"rgb(":"rgba("}${pl(this.r)}, ${pl(this.g)}, ${pl(this.b)}${e===1?")":`, ${e})`}`}function z_(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function pl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ll(e){return e=pl(e),(e<16?"0":"")+e.toString(16)}function L4(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ii(e,t,n,r)}function Oj(e){if(e instanceof Ii)return new Ii(e.h,e.s,e.l,e.opacity);if(e instanceof ys||(e=ms(e)),!e)return new Ii;if(e instanceof Ii)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,l=a-i,c=(a+i)/2;return l?(t===a?o=(n-r)/l+(n<r)*6:n===a?o=(r-t)/l+2:o=(t-n)/l+4,l/=c<.5?a+i:2-a-i,o*=60):l=c>0&&c<1?0:o,new Ii(o,l,c,e.opacity)}function L_(e,t,n,r){return arguments.length===1?Oj(e):new Ii(e,t,n,r??1)}function Ii(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Dc(Ii,L_,wd(ys,{brighter(e){return e=e==null?sc:Math.pow(sc,e),new Ii(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?kl:Math.pow(kl,e),new Ii(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Nn(vv(e>=240?e-240:e+120,i,r),vv(e,i,r),vv(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ii(M4(this.h),sp(this.s),sp(this.l),z_(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=z_(this.opacity);return`${e===1?"hsl(":"hsla("}${M4(this.h)}, ${sp(this.s)*100}%, ${sp(this.l)*100}%${e===1?")":`, ${e})`}`}}));function M4(e){return e=(e||0)%360,e<0?e+360:e}function sp(e){return Math.max(0,Math.min(1,e||0))}function vv(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Dj=Math.PI/180,qj=180/Math.PI,M_=18,Ij=.96422,$j=1,Pj=.82521,Uj=4/29,ec=6/29,Bj=3*ec*ec,pU=ec*ec*ec;function Gj(e){if(e instanceof Fi)return new Fi(e.l,e.a,e.b,e.opacity);if(e instanceof da)return Hj(e);e instanceof Nn||(e=b2(e));var t=kv(e.r),n=kv(e.g),r=kv(e.b),i=bv((.2225045*t+.7168786*n+.0606169*r)/$j),a,o;return t===n&&n===r?a=o=i:(a=bv((.4360747*t+.3850649*n+.1430804*r)/Ij),o=bv((.0139322*t+.0971045*n+.7141733*r)/Pj)),new Fi(116*i-16,500*(a-i),200*(i-o),e.opacity)}function _U(e,t){return new Fi(e,0,0,t??1)}function O_(e,t,n,r){return arguments.length===1?Gj(e):new Fi(e,t,n,r??1)}function Fi(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}Dc(Fi,O_,wd(ys,{brighter(e){return new Fi(this.l+M_*(e??1),this.a,this.b,this.opacity)},darker(e){return new Fi(this.l-M_*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=Ij*xv(t),e=$j*xv(e),n=Pj*xv(n),new Nn(wv(3.1338561*t-1.6168667*e-.4906146*n),wv(-.9787684*t+1.9161415*e+.033454*n),wv(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function bv(e){return e>pU?Math.pow(e,1/3):e/Bj+Uj}function xv(e){return e>ec?e*e*e:Bj*(e-Uj)}function wv(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function kv(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Fj(e){if(e instanceof da)return new da(e.h,e.c,e.l,e.opacity);if(e instanceof Fi||(e=Gj(e)),e.a===0&&e.b===0)return new da(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*qj;return new da(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function gU(e,t,n,r){return arguments.length===1?Fj(e):new da(n,t,e,r??1)}function D_(e,t,n,r){return arguments.length===1?Fj(e):new da(e,t,n,r??1)}function da(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Hj(e){if(isNaN(e.h))return new Fi(e.l,0,0,e.opacity);var t=e.h*Dj;return new Fi(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Dc(da,D_,wd(ys,{brighter(e){return new da(this.h,this.c,this.l+M_*(e??1),this.opacity)},darker(e){return new da(this.h,this.c,this.l-M_*(e??1),this.opacity)},rgb(){return Hj(this).rgb()}}));var Vj=-.14861,x2=1.78277,w2=-.29227,Wg=-.90649,Zh=1.97294,O4=Zh*Wg,D4=Zh*x2,q4=x2*w2-Wg*Vj;function yU(e){if(e instanceof _l)return new _l(e.h,e.s,e.l,e.opacity);e instanceof Nn||(e=b2(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(q4*r+O4*t-D4*n)/(q4+O4-D4),a=r-i,o=(Zh*(n-i)-w2*a)/Wg,l=Math.sqrt(o*o+a*a)/(Zh*i*(1-i)),c=l?Math.atan2(o,a)*qj-120:NaN;return new _l(c<0?c+360:c,l,i,e.opacity)}function Xi(e,t,n,r){return arguments.length===1?yU(e):new _l(e,t,n,r??1)}function _l(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Dc(_l,Xi,wd(ys,{brighter(e){return e=e==null?sc:Math.pow(sc,e),new _l(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?kl:Math.pow(kl,e),new _l(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Dj,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Nn(255*(t+n*(Vj*r+x2*i)),255*(t+n*(w2*r+Wg*i)),255*(t+n*(Zh*r)),this.opacity)}}));function Xj(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}function Yj(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,l=r<t-1?e[r+2]:2*a-i;return Xj((n-r/t)*t,o,i,a,l)}}function Wj(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],a=e[r%t],o=e[(r+1)%t],l=e[(r+2)%t];return Xj((n-r/t)*t,i,a,o,l)}}const Kg=e=>()=>e;function Kj(e,t){return function(n){return e+n*t}}function vU(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Zg(e,t){var n=t-e;return n?Kj(e,n>180||n<-180?n-360*Math.round(n/360):n):Kg(isNaN(e)?t:e)}function bU(e){return(e=+e)==1?zn:function(t,n){return n-t?vU(t,n,e):Kg(isNaN(t)?n:t)}}function zn(e,t){var n=t-e;return n?Kj(e,n):Kg(isNaN(e)?t:e)}const Qh=(function e(t){var n=bU(t);function r(i,a){var o=n((i=lc(i)).r,(a=lc(a)).r),l=n(i.g,a.g),c=n(i.b,a.b),f=zn(i.opacity,a.opacity);return function(d){return i.r=o(d),i.g=l(d),i.b=c(d),i.opacity=f(d),i+""}}return r.gamma=e,r})(1);function Zj(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),a=new Array(n),o,l;for(o=0;o<n;++o)l=lc(t[o]),r[o]=l.r||0,i[o]=l.g||0,a[o]=l.b||0;return r=e(r),i=e(i),a=e(a),l.opacity=1,function(c){return l.r=r(c),l.g=i(c),l.b=a(c),l+""}}}var Qj=Zj(Yj),xU=Zj(Wj);function k2(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function Jj(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function wU(e,t){return(Jj(t)?k2:eR)(e,t)}function eR(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=vs(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(l){for(o=0;o<r;++o)a[o]=i[o](l);return a}}function tR(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function pi(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function nR(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=vs(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var mx=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ev=new RegExp(mx.source,"g");function kU(e){return function(){return e}}function EU(e){return function(t){return e(t)+""}}function E2(e,t){var n=mx.lastIndex=Ev.lastIndex=0,r,i,a,o=-1,l=[],c=[];for(e=e+"",t=t+"";(r=mx.exec(e))&&(i=Ev.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),l[o]?l[o]+=a:l[++o]=a),(r=r[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,c.push({i:o,x:pi(r,i)})),n=Ev.lastIndex;return n<t.length&&(a=t.slice(n),l[o]?l[o]+=a:l[++o]=a),l.length<2?c[0]?EU(c[0].x):kU(t):(t=c.length,function(f){for(var d=0,m;d<t;++d)l[(m=c[d]).i]=m.x(f);return l.join("")})}function vs(e,t){var n=typeof t,r;return t==null||n==="boolean"?Kg(t):(n==="number"?pi:n==="string"?(r=ms(t))?(t=r,Qh):E2:t instanceof ms?Qh:t instanceof Date?tR:Jj(t)?k2:Array.isArray(t)?eR:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?nR:pi)(e,t)}function SU(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}function TU(e,t){var n=Zg(+e,+t);return function(r){var i=n(r);return i-360*Math.floor(i/360)}}function Qg(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var I4=180/Math.PI,px={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function rR(e,t,n,r,i,a){var o,l,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(l=Math.sqrt(n*n+r*r))&&(n/=l,r/=l,c/=l),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*I4,skewX:Math.atan(c)*I4,scaleX:o,scaleY:l}}var lp;function CU(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?px:rR(t.a,t.b,t.c,t.d,t.e,t.f)}function AU(e){return e==null||(lp||(lp=document.createElementNS("http://www.w3.org/2000/svg","g")),lp.setAttribute("transform",e),!(e=lp.transform.baseVal.consolidate()))?px:(e=e.matrix,rR(e.a,e.b,e.c,e.d,e.e,e.f))}function iR(e,t,n,r){function i(f){return f.length?f.pop()+" ":""}function a(f,d,m,p,g,y){if(f!==m||d!==p){var x=g.push("translate(",null,t,null,n);y.push({i:x-4,x:pi(f,m)},{i:x-2,x:pi(d,p)})}else(m||p)&&g.push("translate("+m+t+p+n)}function o(f,d,m,p){f!==d?(f-d>180?d+=360:d-f>180&&(f+=360),p.push({i:m.push(i(m)+"rotate(",null,r)-2,x:pi(f,d)})):d&&m.push(i(m)+"rotate("+d+r)}function l(f,d,m,p){f!==d?p.push({i:m.push(i(m)+"skewX(",null,r)-2,x:pi(f,d)}):d&&m.push(i(m)+"skewX("+d+r)}function c(f,d,m,p,g,y){if(f!==m||d!==p){var x=g.push(i(g)+"scale(",null,",",null,")");y.push({i:x-4,x:pi(f,m)},{i:x-2,x:pi(d,p)})}else(m!==1||p!==1)&&g.push(i(g)+"scale("+m+","+p+")")}return function(f,d){var m=[],p=[];return f=e(f),d=e(d),a(f.translateX,f.translateY,d.translateX,d.translateY,m,p),o(f.rotate,d.rotate,m,p),l(f.skewX,d.skewX,m,p),c(f.scaleX,f.scaleY,d.scaleX,d.scaleY,m,p),f=d=null,function(g){for(var y=-1,x=p.length,k;++y<x;)m[(k=p[y]).i]=k.x(g);return m.join("")}}}var aR=iR(CU,"px, ","px)","deg)"),oR=iR(AU,", ",")",")"),jU=1e-12;function $4(e){return((e=Math.exp(e))+1/e)/2}function RU(e){return((e=Math.exp(e))-1/e)/2}function NU(e){return((e=Math.exp(2*e))-1)/(e+1)}const sR=(function e(t,n,r){function i(a,o){var l=a[0],c=a[1],f=a[2],d=o[0],m=o[1],p=o[2],g=d-l,y=m-c,x=g*g+y*y,k,w;if(x<jU)w=Math.log(p/f)/t,k=function(L){return[l+L*g,c+L*y,f*Math.exp(t*L*w)]};else{var C=Math.sqrt(x),S=(p*p-f*f+r*x)/(2*f*n*C),T=(p*p-f*f-r*x)/(2*p*n*C),z=Math.log(Math.sqrt(S*S+1)-S),A=Math.log(Math.sqrt(T*T+1)-T);w=(A-z)/t,k=function(L){var G=L*w,H=$4(z),q=f/(n*C)*(H*NU(t*G+z)-RU(z));return[l+q*g,c+q*y,f*H/$4(t*G+z)]}}return k.duration=w*1e3*t/Math.SQRT2,k}return i.rho=function(a){var o=Math.max(.001,+a),l=o*o,c=l*l;return e(o,l,c)},i})(Math.SQRT2,2,4);function lR(e){return function(t,n){var r=e((t=L_(t)).h,(n=L_(n)).h),i=zn(t.s,n.s),a=zn(t.l,n.l),o=zn(t.opacity,n.opacity);return function(l){return t.h=r(l),t.s=i(l),t.l=a(l),t.opacity=o(l),t+""}}}const zU=lR(Zg);var LU=lR(zn);function MU(e,t){var n=zn((e=O_(e)).l,(t=O_(t)).l),r=zn(e.a,t.a),i=zn(e.b,t.b),a=zn(e.opacity,t.opacity);return function(o){return e.l=n(o),e.a=r(o),e.b=i(o),e.opacity=a(o),e+""}}function uR(e){return function(t,n){var r=e((t=D_(t)).h,(n=D_(n)).h),i=zn(t.c,n.c),a=zn(t.l,n.l),o=zn(t.opacity,n.opacity);return function(l){return t.h=r(l),t.c=i(l),t.l=a(l),t.opacity=o(l),t+""}}}const OU=uR(Zg);var DU=uR(zn);function cR(e){return(function t(n){n=+n;function r(i,a){var o=e((i=Xi(i)).h,(a=Xi(a)).h),l=zn(i.s,a.s),c=zn(i.l,a.l),f=zn(i.opacity,a.opacity);return function(d){return i.h=o(d),i.s=l(d),i.l=c(Math.pow(d,n)),i.opacity=f(d),i+""}}return r.gamma=t,r})(1)}const qU=cR(Zg);var Jg=cR(zn);function fR(e,t){t===void 0&&(t=e,e=vs);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(o){var l=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return a[l](o-l)}}function IU(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}var uc=0,yh=0,Wf=0,hR=1e3,q_,vh,I_=0,El=0,e1=0,Jh=typeof performance=="object"&&performance.now?performance:Date,dR=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function kd(){return El||(dR($U),El=Jh.now()+e1)}function $U(){El=0}function ed(){this._call=this._time=this._next=null}ed.prototype=t1.prototype={constructor:ed,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?kd():+n)+(t==null?0:+t),!this._next&&vh!==this&&(vh?vh._next=this:q_=this,vh=this),this._call=e,this._time=n,_x()},stop:function(){this._call&&(this._call=null,this._time=1/0,_x())}};function t1(e,t,n){var r=new ed;return r.restart(e,t,n),r}function mR(){kd(),++uc;for(var e=q_,t;e;)(t=El-e._time)>=0&&e._call.call(void 0,t),e=e._next;--uc}function P4(){El=(I_=Jh.now())+e1,uc=yh=0;try{mR()}finally{uc=0,UU(),El=0}}function PU(){var e=Jh.now(),t=e-I_;t>hR&&(e1-=t,I_=e)}function UU(){for(var e,t=q_,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:q_=n);vh=e,_x(r)}function _x(e){if(!uc){yh&&(yh=clearTimeout(yh));var t=e-El;t>24?(e<1/0&&(yh=setTimeout(P4,e-Jh.now()-e1)),Wf&&(Wf=clearInterval(Wf))):(Wf||(I_=Jh.now(),Wf=setInterval(PU,hR)),uc=1,dR(P4))}}function gx(e,t,n){var r=new ed;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}function BU(e,t,n){var r=new ed,i=t;return t==null?(r.restart(e,t,n),r):(r._restart=r.restart,r.restart=function(a,o,l){o=+o,l=l==null?kd():+l,r._restart(function c(f){f+=i,r._restart(c,i+=o,l),a(f)},o,l)},r.restart(e,t,n),r)}var GU=Ol("start","end","cancel","interrupt"),FU=[],pR=0,yx=1,vx=2,l_=3,U4=4,bx=5,u_=6;function n1(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;HU(e,n,{name:t,index:r,group:i,on:GU,tween:FU,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:pR})}function S2(e,t){var n=Yi(e,t);if(n.state>pR)throw new Error("too late; already scheduled");return n}function xa(e,t){var n=Yi(e,t);if(n.state>l_)throw new Error("too late; already running");return n}function Yi(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function HU(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=t1(a,0,n.time);function a(f){n.state=yx,n.timer.restart(o,n.delay,n.time),n.delay<=f&&o(f-n.delay)}function o(f){var d,m,p,g;if(n.state!==yx)return c();for(d in r)if(g=r[d],g.name===n.name){if(g.state===l_)return gx(o);g.state===U4?(g.state=u_,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete r[d]):+d<t&&(g.state=u_,g.timer.stop(),g.on.call("cancel",e,e.__data__,g.index,g.group),delete r[d])}if(gx(function(){n.state===l_&&(n.state=U4,n.timer.restart(l,n.delay,n.time),l(f))}),n.state=vx,n.on.call("start",e,e.__data__,n.index,n.group),n.state===vx){for(n.state=l_,i=new Array(p=n.tween.length),d=0,m=-1;d<p;++d)(g=n.tween[d].value.call(e,e.__data__,n.index,n.group))&&(i[++m]=g);i.length=m+1}}function l(f){for(var d=f<n.duration?n.ease.call(null,f/n.duration):(n.timer.restart(c),n.state=bx,1),m=-1,p=i.length;++m<p;)i[m].call(e,d);n.state===bx&&(n.on.call("end",e,e.__data__,n.index,n.group),c())}function c(){n.state=u_,n.timer.stop(),delete r[t];for(var f in r)return;delete e.__transition}}function gl(e,t){var n=e.__transition,r,i,a=!0,o;if(n){t=t==null?null:t+"";for(o in n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>vx&&r.state<bx,r.state=u_,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function VU(e){return this.each(function(){gl(this,e)})}function XU(e,t){var n,r;return function(){var i=xa(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,l=r.length;o<l;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function YU(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var a=xa(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var l={name:t,value:n},c=0,f=i.length;c<f;++c)if(i[c].name===t){i[c]=l;break}c===f&&i.push(l)}a.tween=i}}function WU(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Yi(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?XU:YU)(n,e,t))}function T2(e,t,n){var r=e._id;return e.each(function(){var i=xa(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return Yi(i,r).value[t]}}function _R(e,t){var n;return(typeof t=="number"?pi:t instanceof ms?Qh:(n=ms(t))?(t=n,Qh):E2)(e,t)}function KU(e){return function(){this.removeAttribute(e)}}function ZU(e){return function(){this.removeAttributeNS(e.space,e.local)}}function QU(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function JU(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function eB(e,t,n){var r,i,a;return function(){var o,l=n(this),c;return l==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=l+"",o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,l)))}}function tB(e,t,n){var r,i,a;return function(){var o,l=n(this),c;return l==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=l+"",o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,l)))}}function nB(e,t){var n=xd(e),r=n==="transform"?oR:_R;return this.attrTween(e,typeof t=="function"?(n.local?tB:eB)(n,r,T2(this,"attr."+e,t)):t==null?(n.local?ZU:KU)(n):(n.local?JU:QU)(n,r,t))}function rB(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function iB(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function aB(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&iB(e,a)),n}return i._value=t,i}function oB(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&rB(e,a)),n}return i._value=t,i}function sB(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=xd(e);return this.tween(n,(r.local?aB:oB)(r,t))}function lB(e,t){return function(){S2(this,e).delay=+t.apply(this,arguments)}}function uB(e,t){return t=+t,function(){S2(this,e).delay=t}}function cB(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?lB:uB)(t,e)):Yi(this.node(),t).delay}function fB(e,t){return function(){xa(this,e).duration=+t.apply(this,arguments)}}function hB(e,t){return t=+t,function(){xa(this,e).duration=t}}function dB(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?fB:hB)(t,e)):Yi(this.node(),t).duration}function mB(e,t){if(typeof t!="function")throw new Error;return function(){xa(this,e).ease=t}}function pB(e){var t=this._id;return arguments.length?this.each(mB(t,e)):Yi(this.node(),t).ease}function _B(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;xa(this,e).ease=n}}function gB(e){if(typeof e!="function")throw new Error;return this.each(_B(this._id,e))}function yB(e){typeof e!="function"&&(e=_2(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,l=r[i]=[],c,f=0;f<o;++f)(c=a[f])&&e.call(c,c.__data__,f,a)&&l.push(c);return new _a(r,this._parents,this._name,this._id)}function vB(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=new Array(r),l=0;l<a;++l)for(var c=t[l],f=n[l],d=c.length,m=o[l]=new Array(d),p,g=0;g<d;++g)(p=c[g]||f[g])&&(m[g]=p);for(;l<r;++l)o[l]=t[l];return new _a(o,this._parents,this._name,this._id)}function bB(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function xB(e,t,n){var r,i,a=bB(t)?S2:xa;return function(){var o=a(this,e),l=o.on;l!==r&&(i=(r=l).copy()).on(t,n),o.on=i}}function wB(e,t){var n=this._id;return arguments.length<2?Yi(this.node(),n).on.on(e):this.each(xB(n,e,t))}function kB(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function EB(){return this.on("end.remove",kB(this._id))}function SB(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Vg(e));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var l=r[o],c=l.length,f=a[o]=new Array(c),d,m,p=0;p<c;++p)(d=l[p])&&(m=e.call(d,d.__data__,p,l))&&("__data__"in d&&(m.__data__=d.__data__),f[p]=m,n1(f[p],t,n,p,f,Yi(d,n)));return new _a(a,this._parents,t,n)}function TB(e){var t=this._name,n=this._id;typeof e!="function"&&(e=p2(e));for(var r=this._groups,i=r.length,a=[],o=[],l=0;l<i;++l)for(var c=r[l],f=c.length,d,m=0;m<f;++m)if(d=c[m]){for(var p=e.call(d,d.__data__,m,c),g,y=Yi(d,n),x=0,k=p.length;x<k;++x)(g=p[x])&&n1(g,t,n,x,p,y);a.push(p),o.push(d)}return new _a(a,o,t,n)}var CB=Dl.prototype.constructor;function AB(){return new CB(this._groups,this._parents)}function jB(e,t){var n,r,i;return function(){var a=wl(this,e),o=(this.style.removeProperty(e),wl(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function gR(e){return function(){this.style.removeProperty(e)}}function RB(e,t,n){var r,i=n+"",a;return function(){var o=wl(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function NB(e,t,n){var r,i,a;return function(){var o=wl(this,e),l=n(this),c=l+"";return l==null&&(c=l=(this.style.removeProperty(e),wl(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,l))}}function zB(e,t){var n,r,i,a="style."+t,o="end."+a,l;return function(){var c=xa(this,e),f=c.on,d=c.value[a]==null?l||(l=gR(t)):void 0;(f!==n||i!==d)&&(r=(n=f).copy()).on(o,i=d),c.on=r}}function LB(e,t,n){var r=(e+="")=="transform"?aR:_R;return t==null?this.styleTween(e,jB(e,r)).on("end.style."+e,gR(e)):typeof t=="function"?this.styleTween(e,NB(e,r,T2(this,"style."+e,t))).each(zB(this._id,e)):this.styleTween(e,RB(e,r,t),n).on("end.style."+e,null)}function MB(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function OB(e,t,n){var r,i;function a(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&MB(e,o,n)),r}return a._value=t,a}function DB(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,OB(e,t,n??""))}function qB(e){return function(){this.textContent=e}}function IB(e){return function(){var t=e(this);this.textContent=t??""}}function $B(e){return this.tween("text",typeof e=="function"?IB(T2(this,"text",e)):qB(e==null?"":e+""))}function PB(e){return function(t){this.textContent=e.call(this,t)}}function UB(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&PB(i)),t}return r._value=e,r}function BB(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,UB(e))}function GB(){for(var e=this._name,t=this._id,n=vR(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],l=o.length,c,f=0;f<l;++f)if(c=o[f]){var d=Yi(c,t);n1(c,e,n,f,o,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new _a(r,this._parents,e,n)}function FB(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var l={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var f=xa(this,r),d=f.on;d!==e&&(t=(e=d).copy(),t._.cancel.push(l),t._.interrupt.push(l),t._.end.push(c)),f.on=t}),i===0&&a()})}var HB=0;function _a(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function yR(e){return Dl().transition(e)}function vR(){return++HB}var Ga=Dl.prototype;_a.prototype=yR.prototype={constructor:_a,select:SB,selectAll:TB,selectChild:Ga.selectChild,selectChildren:Ga.selectChildren,filter:yB,merge:vB,selection:AB,transition:GB,call:Ga.call,nodes:Ga.nodes,node:Ga.node,size:Ga.size,empty:Ga.empty,each:Ga.each,on:wB,attr:nB,attrTween:sB,style:LB,styleTween:DB,text:$B,textTween:BB,remove:EB,tween:WU,delay:cB,duration:dB,ease:pB,easeVarying:gB,end:FB,[Symbol.iterator]:Ga[Symbol.iterator]};const VB=e=>+e;function XB(e){return e*e}function YB(e){return e*(2-e)}function B4(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function WB(e){return e*e*e}function KB(e){return--e*e*e+1}function xx(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var C2=3,ZB=(function e(t){t=+t;function n(r){return Math.pow(r,t)}return n.exponent=e,n})(C2),QB=(function e(t){t=+t;function n(r){return 1-Math.pow(1-r,t)}return n.exponent=e,n})(C2),G4=(function e(t){t=+t;function n(r){return((r*=2)<=1?Math.pow(r,t):2-Math.pow(2-r,t))/2}return n.exponent=e,n})(C2),bR=Math.PI,xR=bR/2;function JB(e){return+e==1?1:1-Math.cos(e*xR)}function eG(e){return Math.sin(e*xR)}function F4(e){return(1-Math.cos(bR*e))/2}function ps(e){return(Math.pow(2,-10*e)-.0009765625)*1.0009775171065494}function tG(e){return ps(1-+e)}function nG(e){return 1-ps(e)}function H4(e){return((e*=2)<=1?ps(1-e):2-ps(e-1))/2}function rG(e){return 1-Math.sqrt(1-e*e)}function iG(e){return Math.sqrt(1- --e*e)}function V4(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var wx=4/11,aG=6/11,oG=8/11,sG=3/4,lG=9/11,uG=10/11,cG=15/16,fG=21/22,hG=63/64,up=1/wx/wx;function dG(e){return 1-td(1-e)}function td(e){return(e=+e)<wx?up*e*e:e<oG?up*(e-=aG)*e+sG:e<uG?up*(e-=lG)*e+cG:up*(e-=fG)*e+hG}function mG(e){return((e*=2)<=1?1-td(1-e):td(e-1)+1)/2}var A2=1.70158,pG=(function e(t){t=+t;function n(r){return(r=+r)*r*(t*(r-1)+r)}return n.overshoot=e,n})(A2),_G=(function e(t){t=+t;function n(r){return--r*r*((r+1)*t+r)+1}return n.overshoot=e,n})(A2),X4=(function e(t){t=+t;function n(r){return((r*=2)<1?r*r*((t+1)*r-t):(r-=2)*r*((t+1)*r+t)+2)/2}return n.overshoot=e,n})(A2),cc=2*Math.PI,j2=1,R2=.3,gG=(function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=cc);function i(a){return t*ps(- --a)*Math.sin((r-a)/n)}return i.amplitude=function(a){return e(a,n*cc)},i.period=function(a){return e(t,a)},i})(j2,R2),Y4=(function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=cc);function i(a){return 1-t*ps(a=+a)*Math.sin((a+r)/n)}return i.amplitude=function(a){return e(a,n*cc)},i.period=function(a){return e(t,a)},i})(j2,R2),yG=(function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=cc);function i(a){return((a=a*2-1)<0?t*ps(-a)*Math.sin((r-a)/n):2-t*ps(a)*Math.sin((r+a)/n))/2}return i.amplitude=function(a){return e(a,n*cc)},i.period=function(a){return e(t,a)},i})(j2,R2),vG={time:null,delay:0,duration:250,ease:xx};function bG(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function xG(e){var t,n;e instanceof _a?(t=e._id,e=e._name):(t=vR(),(n=vG).time=kd(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],l=o.length,c,f=0;f<l;++f)(c=o[f])&&n1(c,e,t,f,o,n||bG(c,t));return new _a(r,this._parents,e,t)}Dl.prototype.interrupt=VU;Dl.prototype.transition=xG;var wG=[null];function kG(e,t){var n=e.__transition,r,i;if(n){t=t==null?null:t+"";for(i in n)if((r=n[i]).state>yx&&r.name===t)return new _a([[e]],wG,t,+i)}return null}const Sv=e=>()=>e;function EG(e,{sourceEvent:t,target:n,selection:r,mode:i,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:a}})}function SG(e){e.stopImmediatePropagation()}function Tv(e){e.preventDefault(),e.stopImmediatePropagation()}var W4={name:"drag"},Cv={name:"space"},Ru={name:"handle"},Nu={name:"center"};const{abs:K4,max:Wn,min:Kn}=Math;function Z4(e){return[+e[0],+e[1]]}function kx(e){return[Z4(e[0]),Z4(e[1])]}var c_={name:"x",handles:["w","e"].map(nd),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},f_={name:"y",handles:["n","s"].map(nd),input:function(e,t){return e==null?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},TG={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(nd),input:function(e){return e==null?null:kx(e)},output:function(e){return e}},Fa={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Q4={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},J4={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},CG={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},AG={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function nd(e){return{type:e}}function jG(e){return!e.ctrlKey&&!e.button}function RG(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function NG(){return navigator.maxTouchPoints||"ontouchstart"in this}function Av(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function zG(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function LG(e){var t=e.__brush;return t?t.dim.output(t.selection):null}function MG(){return N2(c_)}function OG(){return N2(f_)}function DG(){return N2(TG)}function N2(e){var t=RG,n=jG,r=NG,i=!0,a=Ol("start","brush","end"),o=6,l;function c(k){var w=k.property("__brush",x).selectAll(".overlay").data([nd("overlay")]);w.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Fa.overlay).merge(w).each(function(){var S=Av(this).extent;Bn(this).attr("x",S[0][0]).attr("y",S[0][1]).attr("width",S[1][0]-S[0][0]).attr("height",S[1][1]-S[0][1])}),k.selectAll(".selection").data([nd("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Fa.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var C=k.selectAll(".handle").data(e.handles,function(S){return S.type});C.exit().remove(),C.enter().append("rect").attr("class",function(S){return"handle handle--"+S.type}).attr("cursor",function(S){return Fa[S.type]}),k.each(f).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",p).filter(r).on("touchstart.brush",p).on("touchmove.brush",g).on("touchend.brush touchcancel.brush",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}c.move=function(k,w,C){k.tween?k.on("start.brush",function(S){d(this,arguments).beforestart().start(S)}).on("interrupt.brush end.brush",function(S){d(this,arguments).end(S)}).tween("brush",function(){var S=this,T=S.__brush,z=d(S,arguments),A=T.selection,L=e.input(typeof w=="function"?w.apply(this,arguments):w,T.extent),G=vs(A,L);function H(q){T.selection=q===1&&L===null?null:G(q),f.call(S),z.brush()}return A!==null&&L!==null?H:H(1)}):k.each(function(){var S=this,T=arguments,z=S.__brush,A=e.input(typeof w=="function"?w.apply(S,T):w,z.extent),L=d(S,T).beforestart();gl(S),z.selection=A===null?null:A,f.call(S),L.start(C).brush(C).end(C)})},c.clear=function(k,w){c.move(k,null,w)};function f(){var k=Bn(this),w=Av(this).selection;w?(k.selectAll(".selection").style("display",null).attr("x",w[0][0]).attr("y",w[0][1]).attr("width",w[1][0]-w[0][0]).attr("height",w[1][1]-w[0][1]),k.selectAll(".handle").style("display",null).attr("x",function(C){return C.type[C.type.length-1]==="e"?w[1][0]-o/2:w[0][0]-o/2}).attr("y",function(C){return C.type[0]==="s"?w[1][1]-o/2:w[0][1]-o/2}).attr("width",function(C){return C.type==="n"||C.type==="s"?w[1][0]-w[0][0]+o:o}).attr("height",function(C){return C.type==="e"||C.type==="w"?w[1][1]-w[0][1]+o:o})):k.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function d(k,w,C){var S=k.__brush.emitter;return S&&(!C||!S.clean)?S:new m(k,w,C)}function m(k,w,C){this.that=k,this.args=w,this.state=k.__brush,this.active=0,this.clean=C}m.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(k,w){return this.starting?(this.starting=!1,this.emit("start",k,w)):this.emit("brush",k),this},brush:function(k,w){return this.emit("brush",k,w),this},end:function(k,w){return--this.active===0&&(delete this.state.emitter,this.emit("end",k,w)),this},emit:function(k,w,C){var S=Bn(this.that).datum();a.call(k,this.that,new EG(k,{sourceEvent:w,target:c,selection:e.output(this.state.selection),mode:C,dispatch:a}),S)}};function p(k){if(l&&!k.touches||!n.apply(this,arguments))return;var w=this,C=k.target.__data__.type,S=(i&&k.metaKey?C="overlay":C)==="selection"?W4:i&&k.altKey?Nu:Ru,T=e===f_?null:CG[C],z=e===c_?null:AG[C],A=Av(w),L=A.extent,G=A.selection,H=L[0][0],q,V,W=L[0][1],I,B,D=L[1][0],j,N,F=L[1][1],Z,O,U=0,K=0,$,ie=T&&z&&i&&k.shiftKey,ue,xe,we=Array.from(k.touches||[k],qe=>{const mt=qe.identifier;return qe=Wr(qe,w),qe.point0=qe.slice(),qe.identifier=mt,qe});gl(w);var Pe=d(w,arguments,!0).beforestart();if(C==="overlay"){G&&($=!0);const qe=[we[0],we[1]||we[0]];A.selection=G=[[q=e===f_?H:Kn(qe[0][0],qe[1][0]),I=e===c_?W:Kn(qe[0][1],qe[1][1])],[j=e===f_?D:Wn(qe[0][0],qe[1][0]),Z=e===c_?F:Wn(qe[0][1],qe[1][1])]],we.length>1&&tt(k)}else q=G[0][0],I=G[0][1],j=G[1][0],Z=G[1][1];V=q,B=I,N=j,O=Z;var _e=Bn(w).attr("pointer-events","none"),Ae=_e.selectAll(".overlay").attr("cursor",Fa[C]);if(k.touches)Pe.moved=he,Pe.ended=Ee;else{var je=Bn(k.view).on("mousemove.brush",he,!0).on("mouseup.brush",Ee,!0);i&&je.on("keydown.brush",Ne,!0).on("keyup.brush",ce,!0),Xg(k.view)}f.call(w),Pe.start(k,S.name);function he(qe){for(const mt of qe.changedTouches||[qe])for(const Xt of we)Xt.identifier===mt.identifier&&(Xt.cur=Wr(mt,w));if(ie&&!ue&&!xe&&we.length===1){const mt=we[0];K4(mt.cur[0]-mt[0])>K4(mt.cur[1]-mt[1])?xe=!0:ue=!0}for(const mt of we)mt.cur&&(mt[0]=mt.cur[0],mt[1]=mt.cur[1]);$=!0,Tv(qe),tt(qe)}function tt(qe){const mt=we[0],Xt=mt.point0;var Ft;switch(U=mt[0]-Xt[0],K=mt[1]-Xt[1],S){case Cv:case W4:{T&&(U=Wn(H-q,Kn(D-j,U)),V=q+U,N=j+U),z&&(K=Wn(W-I,Kn(F-Z,K)),B=I+K,O=Z+K);break}case Ru:{we[1]?(T&&(V=Wn(H,Kn(D,we[0][0])),N=Wn(H,Kn(D,we[1][0])),T=1),z&&(B=Wn(W,Kn(F,we[0][1])),O=Wn(W,Kn(F,we[1][1])),z=1)):(T<0?(U=Wn(H-q,Kn(D-q,U)),V=q+U,N=j):T>0&&(U=Wn(H-j,Kn(D-j,U)),V=q,N=j+U),z<0?(K=Wn(W-I,Kn(F-I,K)),B=I+K,O=Z):z>0&&(K=Wn(W-Z,Kn(F-Z,K)),B=I,O=Z+K));break}case Nu:{T&&(V=Wn(H,Kn(D,q-U*T)),N=Wn(H,Kn(D,j+U*T))),z&&(B=Wn(W,Kn(F,I-K*z)),O=Wn(W,Kn(F,Z+K*z)));break}}N<V&&(T*=-1,Ft=q,q=j,j=Ft,Ft=V,V=N,N=Ft,C in Q4&&Ae.attr("cursor",Fa[C=Q4[C]])),O<B&&(z*=-1,Ft=I,I=Z,Z=Ft,Ft=B,B=O,O=Ft,C in J4&&Ae.attr("cursor",Fa[C=J4[C]])),A.selection&&(G=A.selection),ue&&(V=G[0][0],N=G[1][0]),xe&&(B=G[0][1],O=G[1][1]),(G[0][0]!==V||G[0][1]!==B||G[1][0]!==N||G[1][1]!==O)&&(A.selection=[[V,B],[N,O]],f.call(w),Pe.brush(qe,S.name))}function Ee(qe){if(SG(qe),qe.touches){if(qe.touches.length)return;l&&clearTimeout(l),l=setTimeout(function(){l=null},500)}else Yg(qe.view,$),je.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);_e.attr("pointer-events","all"),Ae.attr("cursor",Fa.overlay),A.selection&&(G=A.selection),zG(G)&&(A.selection=null,f.call(w)),Pe.end(qe,S.name)}function Ne(qe){switch(qe.keyCode){case 16:{ie=T&&z;break}case 18:{S===Ru&&(T&&(j=N-U*T,q=V+U*T),z&&(Z=O-K*z,I=B+K*z),S=Nu,tt(qe));break}case 32:{(S===Ru||S===Nu)&&(T<0?j=N-U:T>0&&(q=V-U),z<0?Z=O-K:z>0&&(I=B-K),S=Cv,Ae.attr("cursor",Fa.selection),tt(qe));break}default:return}Tv(qe)}function ce(qe){switch(qe.keyCode){case 16:{ie&&(ue=xe=ie=!1,tt(qe));break}case 18:{S===Nu&&(T<0?j=N:T>0&&(q=V),z<0?Z=O:z>0&&(I=B),S=Ru,tt(qe));break}case 32:{S===Cv&&(qe.altKey?(T&&(j=N-U*T,q=V+U*T),z&&(Z=O-K*z,I=B+K*z),S=Nu):(T<0?j=N:T>0&&(q=V),z<0?Z=O:z>0&&(I=B),S=Ru),Ae.attr("cursor",Fa[C]),tt(qe));break}default:return}Tv(qe)}}function g(k){d(this,arguments).moved(k)}function y(k){d(this,arguments).ended(k)}function x(){var k=this.__brush||{selection:null};return k.extent=kx(t.apply(this,arguments)),k.dim=e,k}return c.extent=function(k){return arguments.length?(t=typeof k=="function"?k:Sv(kx(k)),c):t},c.filter=function(k){return arguments.length?(n=typeof k=="function"?k:Sv(!!k),c):n},c.touchable=function(k){return arguments.length?(r=typeof k=="function"?k:Sv(!!k),c):r},c.handleSize=function(k){return arguments.length?(o=+k,c):o},c.keyModifiers=function(k){return arguments.length?(i=!!k,c):i},c.on=function(){var k=a.on.apply(a,arguments);return k===a?c:k},c}var e6=Math.abs,zu=Math.cos,Lu=Math.sin,wR=Math.PI,cp=wR/2,t6=wR*2,n6=Math.max,jv=1e-12;function Rv(e,t){return Array.from({length:t-e},(n,r)=>e+r)}function qG(e){return function(t,n){return e(t.source.value+t.target.value,n.source.value+n.target.value)}}function IG(){return z2(!1,!1)}function $G(){return z2(!1,!0)}function PG(){return z2(!0,!1)}function z2(e,t){var n=0,r=null,i=null,a=null;function o(l){var c=l.length,f=new Array(c),d=Rv(0,c),m=new Array(c*c),p=new Array(c),g=0,y;l=Float64Array.from({length:c*c},t?(x,k)=>l[k%c][k/c|0]:(x,k)=>l[k/c|0][k%c]);for(let x=0;x<c;++x){let k=0;for(let w=0;w<c;++w)k+=l[x*c+w]+e*l[w*c+x];g+=f[x]=k}g=n6(0,t6-n*c)/g,y=g?n:t6/c;{let x=0;r&&d.sort((k,w)=>r(f[k],f[w]));for(const k of d){const w=x;if(e){const C=Rv(~c+1,c).filter(S=>S<0?l[~S*c+k]:l[k*c+S]);i&&C.sort((S,T)=>i(S<0?-l[~S*c+k]:l[k*c+S],T<0?-l[~T*c+k]:l[k*c+T]));for(const S of C)if(S<0){const T=m[~S*c+k]||(m[~S*c+k]={source:null,target:null});T.target={index:k,startAngle:x,endAngle:x+=l[~S*c+k]*g,value:l[~S*c+k]}}else{const T=m[k*c+S]||(m[k*c+S]={source:null,target:null});T.source={index:k,startAngle:x,endAngle:x+=l[k*c+S]*g,value:l[k*c+S]}}p[k]={index:k,startAngle:w,endAngle:x,value:f[k]}}else{const C=Rv(0,c).filter(S=>l[k*c+S]||l[S*c+k]);i&&C.sort((S,T)=>i(l[k*c+S],l[k*c+T]));for(const S of C){let T;if(k<S?(T=m[k*c+S]||(m[k*c+S]={source:null,target:null}),T.source={index:k,startAngle:x,endAngle:x+=l[k*c+S]*g,value:l[k*c+S]}):(T=m[S*c+k]||(m[S*c+k]={source:null,target:null}),T.target={index:k,startAngle:x,endAngle:x+=l[k*c+S]*g,value:l[k*c+S]},k===S&&(T.source=T.target)),T.source&&T.target&&T.source.value<T.target.value){const z=T.source;T.source=T.target,T.target=z}}p[k]={index:k,startAngle:w,endAngle:x,value:f[k]}}x+=y}}return m=Object.values(m),m.groups=p,a?m.sort(a):m}return o.padAngle=function(l){return arguments.length?(n=n6(0,l),o):n},o.sortGroups=function(l){return arguments.length?(r=l,o):r},o.sortSubgroups=function(l){return arguments.length?(i=l,o):i},o.sortChords=function(l){return arguments.length?(l==null?a=null:(a=qG(l))._=l,o):a&&a._},o}const Ex=Math.PI,Sx=2*Ex,rl=1e-6,UG=Sx-rl;function kR(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function BG(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return kR;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let Ed=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?kR:BG(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,l=this._y1,c=r-t,f=i-n,d=o-t,m=l-n,p=d*d+m*m;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(p>rl)if(!(Math.abs(m*c-f*d)>rl)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let g=r-o,y=i-l,x=c*c+f*f,k=g*g+y*y,w=Math.sqrt(x),C=Math.sqrt(p),S=a*Math.tan((Ex-Math.acos((x+p-k)/(2*w*C)))/2),T=S/C,z=S/w;Math.abs(T-1)>rl&&this._append`L${t+T*d},${n+T*m}`,this._append`A${a},${a},0,0,${+(m*g>d*y)},${this._x1=t+z*c},${this._y1=n+z*f}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),c=r*Math.sin(i),f=t+l,d=n+c,m=1^o,p=o?i-a:a-i;this._x1===null?this._append`M${f},${d}`:(Math.abs(this._x1-f)>rl||Math.abs(this._y1-d)>rl)&&this._append`L${f},${d}`,r&&(p<0&&(p=p%Sx+Sx),p>UG?this._append`A${r},${r},0,1,${m},${t-l},${n-c}A${r},${r},0,1,${m},${this._x1=f},${this._y1=d}`:p>rl&&this._append`A${r},${r},0,${+(p>=Ex)},${m},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function L2(){return new Ed}L2.prototype=Ed.prototype;function GG(e=3){return new Ed(+e)}var FG=Array.prototype.slice;function Ks(e){return function(){return e}}function HG(e){return e.source}function VG(e){return e.target}function r6(e){return e.radius}function XG(e){return e.startAngle}function YG(e){return e.endAngle}function WG(){return 0}function KG(){return 10}function ER(e){var t=HG,n=VG,r=r6,i=r6,a=XG,o=YG,l=WG,c=null;function f(){var d,m=t.apply(this,arguments),p=n.apply(this,arguments),g=l.apply(this,arguments)/2,y=FG.call(arguments),x=+r.apply(this,(y[0]=m,y)),k=a.apply(this,y)-cp,w=o.apply(this,y)-cp,C=+i.apply(this,(y[0]=p,y)),S=a.apply(this,y)-cp,T=o.apply(this,y)-cp;if(c||(c=d=L2()),g>jv&&(e6(w-k)>g*2+jv?w>k?(k+=g,w-=g):(k-=g,w+=g):k=w=(k+w)/2,e6(T-S)>g*2+jv?T>S?(S+=g,T-=g):(S-=g,T+=g):S=T=(S+T)/2),c.moveTo(x*zu(k),x*Lu(k)),c.arc(0,0,x,k,w),k!==S||w!==T)if(e){var z=+e.apply(this,arguments),A=C-z,L=(S+T)/2;c.quadraticCurveTo(0,0,A*zu(S),A*Lu(S)),c.lineTo(C*zu(L),C*Lu(L)),c.lineTo(A*zu(T),A*Lu(T))}else c.quadraticCurveTo(0,0,C*zu(S),C*Lu(S)),c.arc(0,0,C,S,T);if(c.quadraticCurveTo(0,0,x*zu(k),x*Lu(k)),c.closePath(),d)return c=null,d+""||null}return e&&(f.headRadius=function(d){return arguments.length?(e=typeof d=="function"?d:Ks(+d),f):e}),f.radius=function(d){return arguments.length?(r=i=typeof d=="function"?d:Ks(+d),f):r},f.sourceRadius=function(d){return arguments.length?(r=typeof d=="function"?d:Ks(+d),f):r},f.targetRadius=function(d){return arguments.length?(i=typeof d=="function"?d:Ks(+d),f):i},f.startAngle=function(d){return arguments.length?(a=typeof d=="function"?d:Ks(+d),f):a},f.endAngle=function(d){return arguments.length?(o=typeof d=="function"?d:Ks(+d),f):o},f.padAngle=function(d){return arguments.length?(l=typeof d=="function"?d:Ks(+d),f):l},f.source=function(d){return arguments.length?(t=d,f):t},f.target=function(d){return arguments.length?(n=d,f):n},f.context=function(d){return arguments.length?(c=d??null,f):c},f}function ZG(){return ER()}function QG(){return ER(KG)}var JG=Array.prototype,SR=JG.slice;function eF(e,t){return e-t}function tF(e){for(var t=0,n=e.length,r=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++t<n;)r+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return r}const ns=e=>()=>e;function nF(e,t){for(var n=-1,r=t.length,i;++n<r;)if(i=rF(e,t[n]))return i;return 0}function rF(e,t){for(var n=t[0],r=t[1],i=-1,a=0,o=e.length,l=o-1;a<o;l=a++){var c=e[a],f=c[0],d=c[1],m=e[l],p=m[0],g=m[1];if(iF(c,m,t))return 0;d>r!=g>r&&n<(p-f)*(r-d)/(g-d)+f&&(i=-i)}return i}function iF(e,t,n){var r;return aF(e,t,n)&&oF(e[r=+(e[0]===t[0])],n[r],t[r])}function aF(e,t,n){return(t[0]-e[0])*(n[1]-e[1])===(n[0]-e[0])*(t[1]-e[1])}function oF(e,t,n){return e<=t&&t<=n||n<=t&&t<=e}function sF(){}var Ha=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Tx(){var e=1,t=1,n=f2,r=c;function i(f){var d=n(f);if(Array.isArray(d))d=d.slice().sort(eF);else{const m=Nh(f,lF);for(d=bl(...c2(m[0],m[1],d),d);d[d.length-1]>=m[1];)d.pop();for(;d[1]<m[0];)d.shift()}return d.map(m=>a(f,m))}function a(f,d){const m=d==null?NaN:+d;if(isNaN(m))throw new Error(`invalid value: ${d}`);var p=[],g=[];return o(f,m,function(y){r(y,f,m),tF(y)>0?p.push([y]):g.push(y)}),g.forEach(function(y){for(var x=0,k=p.length,w;x<k;++x)if(nF((w=p[x])[0],y)!==-1){w.push(y);return}}),{type:"MultiPolygon",value:d,coordinates:p}}function o(f,d,m){var p=new Array,g=new Array,y,x,k,w,C,S;for(y=x=-1,w=Zs(f[0],d),Ha[w<<1].forEach(T);++y<e-1;)k=w,w=Zs(f[y+1],d),Ha[k|w<<1].forEach(T);for(Ha[w<<0].forEach(T);++x<t-1;){for(y=-1,w=Zs(f[x*e+e],d),C=Zs(f[x*e],d),Ha[w<<1|C<<2].forEach(T);++y<e-1;)k=w,w=Zs(f[x*e+e+y+1],d),S=C,C=Zs(f[x*e+y+1],d),Ha[k|w<<1|C<<2|S<<3].forEach(T);Ha[w|C<<3].forEach(T)}for(y=-1,C=f[x*e]>=d,Ha[C<<2].forEach(T);++y<e-1;)S=C,C=Zs(f[x*e+y+1],d),Ha[C<<2|S<<3].forEach(T);Ha[C<<3].forEach(T);function T(z){var A=[z[0][0]+y,z[0][1]+x],L=[z[1][0]+y,z[1][1]+x],G=l(A),H=l(L),q,V;(q=g[G])?(V=p[H])?(delete g[q.end],delete p[V.start],q===V?(q.ring.push(L),m(q.ring)):p[q.start]=g[V.end]={start:q.start,end:V.end,ring:q.ring.concat(V.ring)}):(delete g[q.end],q.ring.push(L),g[q.end=H]=q):(q=p[H])?(V=g[G])?(delete p[q.start],delete g[V.end],q===V?(q.ring.push(L),m(q.ring)):p[V.start]=g[q.end]={start:V.start,end:q.end,ring:V.ring.concat(q.ring)}):(delete p[q.start],q.ring.unshift(A),p[q.start=G]=q):p[G]=g[H]={start:G,end:H,ring:[A,L]}}}function l(f){return f[0]*2+f[1]*(e+1)*4}function c(f,d,m){f.forEach(function(p){var g=p[0],y=p[1],x=g|0,k=y|0,w=Nv(d[k*e+x]);g>0&&g<e&&x===g&&(p[0]=i6(g,Nv(d[k*e+x-1]),w,m)),y>0&&y<t&&k===y&&(p[1]=i6(y,Nv(d[(k-1)*e+x]),w,m))})}return i.contour=a,i.size=function(f){if(!arguments.length)return[e,t];var d=Math.floor(f[0]),m=Math.floor(f[1]);if(!(d>=0&&m>=0))throw new Error("invalid size");return e=d,t=m,i},i.thresholds=function(f){return arguments.length?(n=typeof f=="function"?f:Array.isArray(f)?ns(SR.call(f)):ns(f),i):n},i.smooth=function(f){return arguments.length?(r=f?c:sF,i):r===c},i}function lF(e){return isFinite(e)?e:NaN}function Zs(e,t){return e==null?!1:+e>=t}function Nv(e){return e==null||isNaN(e=+e)?-1/0:e}function i6(e,t,n,r){const i=r-t,a=n-t,o=isFinite(i)||isFinite(a)?i/a:Math.sign(i)/Math.sign(a);return isNaN(o)?e:e+o-.5}function uF(e){return e[0]}function cF(e){return e[1]}function fF(){return 1}function hF(){var e=uF,t=cF,n=fF,r=960,i=500,a=20,o=2,l=a*3,c=r+l*2>>o,f=i+l*2>>o,d=ns(20);function m(C){var S=new Float32Array(c*f),T=Math.pow(2,-o),z=-1;for(const I of C){var A=(e(I,++z,C)+l)*T,L=(t(I,z,C)+l)*T,G=+n(I,z,C);if(G&&A>=0&&A<c&&L>=0&&L<f){var H=Math.floor(A),q=Math.floor(L),V=A-H-.5,W=L-q-.5;S[H+q*c]+=(1-V)*(1-W)*G,S[H+1+q*c]+=V*(1-W)*G,S[H+1+(q+1)*c]+=V*W*G,S[H+(q+1)*c]+=(1-V)*W*G}}return ij({data:S,width:c,height:f},a*T),S}function p(C){var S=m(C),T=d(S),z=Math.pow(2,2*o);return Array.isArray(T)||(T=bl(Number.MIN_VALUE,Xh(S)/z,T)),Tx().size([c,f]).thresholds(T.map(A=>A*z))(S).map((A,L)=>(A.value=+T[L],g(A)))}p.contours=function(C){var S=m(C),T=Tx().size([c,f]),z=Math.pow(2,2*o),A=L=>{L=+L;var G=g(T.contour(S,L*z));return G.value=L,G};return Object.defineProperty(A,"max",{get:()=>Xh(S)/z}),A};function g(C){return C.coordinates.forEach(y),C}function y(C){C.forEach(x)}function x(C){C.forEach(k)}function k(C){C[0]=C[0]*Math.pow(2,o)-l,C[1]=C[1]*Math.pow(2,o)-l}function w(){return l=a*3,c=r+l*2>>o,f=i+l*2>>o,p}return p.x=function(C){return arguments.length?(e=typeof C=="function"?C:ns(+C),p):e},p.y=function(C){return arguments.length?(t=typeof C=="function"?C:ns(+C),p):t},p.weight=function(C){return arguments.length?(n=typeof C=="function"?C:ns(+C),p):n},p.size=function(C){if(!arguments.length)return[r,i];var S=+C[0],T=+C[1];if(!(S>=0&&T>=0))throw new Error("invalid size");return r=S,i=T,w()},p.cellSize=function(C){if(!arguments.length)return 1<<o;if(!((C=+C)>=1))throw new Error("invalid cell size");return o=Math.floor(Math.log(C)/Math.LN2),w()},p.thresholds=function(C){return arguments.length?(d=typeof C=="function"?C:Array.isArray(C)?ns(SR.call(C)):ns(C),p):d},p.bandwidth=function(C){if(!arguments.length)return Math.sqrt(a*(a+1));if(!((C=+C)>=0))throw new Error("invalid bandwidth");return a=(Math.sqrt(4*C*C+1)-1)/2,w()},p}const lo=11102230246251565e-32,Zn=134217729,dF=(3+8*lo)*lo;function zv(e,t,n,r,i){let a,o,l,c,f=t[0],d=r[0],m=0,p=0;d>f==d>-f?(a=f,f=t[++m]):(a=d,d=r[++p]);let g=0;if(m<e&&p<n)for(d>f==d>-f?(o=f+a,l=a-(o-f),f=t[++m]):(o=d+a,l=a-(o-d),d=r[++p]),a=o,l!==0&&(i[g++]=l);m<e&&p<n;)d>f==d>-f?(o=a+f,c=o-a,l=a-(o-c)+(f-c),f=t[++m]):(o=a+d,c=o-a,l=a-(o-c)+(d-c),d=r[++p]),a=o,l!==0&&(i[g++]=l);for(;m<e;)o=a+f,c=o-a,l=a-(o-c)+(f-c),f=t[++m],a=o,l!==0&&(i[g++]=l);for(;p<n;)o=a+d,c=o-a,l=a-(o-c)+(d-c),d=r[++p],a=o,l!==0&&(i[g++]=l);return(a!==0||g===0)&&(i[g++]=a),g}function mF(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function Sd(e){return new Float64Array(e)}const pF=(3+16*lo)*lo,_F=(2+12*lo)*lo,gF=(9+64*lo)*lo*lo,Mu=Sd(4),a6=Sd(8),o6=Sd(12),s6=Sd(16),ur=Sd(4);function yF(e,t,n,r,i,a,o){let l,c,f,d,m,p,g,y,x,k,w,C,S,T,z,A,L,G;const H=e-i,q=n-i,V=t-a,W=r-a;T=H*W,p=Zn*H,g=p-(p-H),y=H-g,p=Zn*W,x=p-(p-W),k=W-x,z=y*k-(T-g*x-y*x-g*k),A=V*q,p=Zn*V,g=p-(p-V),y=V-g,p=Zn*q,x=p-(p-q),k=q-x,L=y*k-(A-g*x-y*x-g*k),w=z-L,m=z-w,Mu[0]=z-(w+m)+(m-L),C=T+w,m=C-T,S=T-(C-m)+(w-m),w=S-A,m=S-w,Mu[1]=S-(w+m)+(m-A),G=C+w,m=G-C,Mu[2]=C-(G-m)+(w-m),Mu[3]=G;let I=mF(4,Mu),B=_F*o;if(I>=B||-I>=B||(m=e-H,l=e-(H+m)+(m-i),m=n-q,f=n-(q+m)+(m-i),m=t-V,c=t-(V+m)+(m-a),m=r-W,d=r-(W+m)+(m-a),l===0&&c===0&&f===0&&d===0)||(B=gF*o+dF*Math.abs(I),I+=H*d+W*l-(V*f+q*c),I>=B||-I>=B))return I;T=l*W,p=Zn*l,g=p-(p-l),y=l-g,p=Zn*W,x=p-(p-W),k=W-x,z=y*k-(T-g*x-y*x-g*k),A=c*q,p=Zn*c,g=p-(p-c),y=c-g,p=Zn*q,x=p-(p-q),k=q-x,L=y*k-(A-g*x-y*x-g*k),w=z-L,m=z-w,ur[0]=z-(w+m)+(m-L),C=T+w,m=C-T,S=T-(C-m)+(w-m),w=S-A,m=S-w,ur[1]=S-(w+m)+(m-A),G=C+w,m=G-C,ur[2]=C-(G-m)+(w-m),ur[3]=G;const D=zv(4,Mu,4,ur,a6);T=H*d,p=Zn*H,g=p-(p-H),y=H-g,p=Zn*d,x=p-(p-d),k=d-x,z=y*k-(T-g*x-y*x-g*k),A=V*f,p=Zn*V,g=p-(p-V),y=V-g,p=Zn*f,x=p-(p-f),k=f-x,L=y*k-(A-g*x-y*x-g*k),w=z-L,m=z-w,ur[0]=z-(w+m)+(m-L),C=T+w,m=C-T,S=T-(C-m)+(w-m),w=S-A,m=S-w,ur[1]=S-(w+m)+(m-A),G=C+w,m=G-C,ur[2]=C-(G-m)+(w-m),ur[3]=G;const j=zv(D,a6,4,ur,o6);T=l*d,p=Zn*l,g=p-(p-l),y=l-g,p=Zn*d,x=p-(p-d),k=d-x,z=y*k-(T-g*x-y*x-g*k),A=c*f,p=Zn*c,g=p-(p-c),y=c-g,p=Zn*f,x=p-(p-f),k=f-x,L=y*k-(A-g*x-y*x-g*k),w=z-L,m=z-w,ur[0]=z-(w+m)+(m-L),C=T+w,m=C-T,S=T-(C-m)+(w-m),w=S-A,m=S-w,ur[1]=S-(w+m)+(m-A),G=C+w,m=G-C,ur[2]=C-(G-m)+(w-m),ur[3]=G;const N=zv(j,o6,4,ur,s6);return s6[N-1]}function fp(e,t,n,r,i,a){const o=(t-a)*(n-i),l=(e-i)*(r-a),c=o-l,f=Math.abs(o+l);return Math.abs(c)>=pF*f?c:-yF(e,t,n,r,i,a,f)}const l6=Math.pow(2,-52),hp=new Uint32Array(512);class $_{static from(t,n=kF,r=EF){const i=t.length,a=new Float64Array(i*2);for(let o=0;o<i;o++){const l=t[o];a[2*o]=n(l),a[2*o+1]=r(l)}return new $_(a)}constructor(t){const n=t.length>>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.trianglesLen=0,this._cx=0,this._cy=0,this._hullStart=0,this.hull=this._triangles,this.triangles=this._triangles,this.halfedges=this._halfedges,this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:i,_hullHash:a}=this,o=t.length>>1;let l=1/0,c=1/0,f=-1/0,d=-1/0;for(let H=0;H<o;H++){const q=t[2*H],V=t[2*H+1];q<l&&(l=q),V<c&&(c=V),q>f&&(f=q),V>d&&(d=V),this._ids[H]=H}const m=(l+f)/2,p=(c+d)/2;let g=0,y=0,x=0;for(let H=0,q=1/0;H<o;H++){const V=Lv(m,p,t[2*H],t[2*H+1]);V<q&&(g=H,q=V)}const k=t[2*g],w=t[2*g+1];for(let H=0,q=1/0;H<o;H++){if(H===g)continue;const V=Lv(k,w,t[2*H],t[2*H+1]);V<q&&V>0&&(y=H,q=V)}let C=t[2*y],S=t[2*y+1],T=1/0;for(let H=0;H<o;H++){if(H===g||H===y)continue;const q=xF(k,w,C,S,t[2*H],t[2*H+1]);q<T&&(x=H,T=q)}let z=t[2*x],A=t[2*x+1];if(T===1/0){for(let V=0;V<o;V++)this._dists[V]=t[2*V]-t[0]||t[2*V+1]-t[1];Ku(this._ids,this._dists,0,o-1);const H=new Uint32Array(o);let q=0;for(let V=0,W=-1/0;V<o;V++){const I=this._ids[V],B=this._dists[I];B>W&&(H[q++]=I,W=B)}this.hull=H.subarray(0,q),this.triangles=new Uint32Array(0),this.halfedges=new Int32Array(0);return}if(fp(k,w,C,S,z,A)<0){const H=y,q=C,V=S;y=x,C=z,S=A,x=H,z=q,A=V}const L=wF(k,w,C,S,z,A);this._cx=L.x,this._cy=L.y;for(let H=0;H<o;H++)this._dists[H]=Lv(t[2*H],t[2*H+1],L.x,L.y);Ku(this._ids,this._dists,0,o-1),this._hullStart=g;let G=3;r[g]=n[x]=y,r[y]=n[g]=x,r[x]=n[y]=g,i[g]=0,i[y]=1,i[x]=2,a.fill(-1),a[this._hashKey(k,w)]=g,a[this._hashKey(C,S)]=y,a[this._hashKey(z,A)]=x,this.trianglesLen=0,this._addTriangle(g,y,x,-1,-1,-1);for(let H=0,q=0,V=0;H<this._ids.length;H++){const W=this._ids[H],I=t[2*W],B=t[2*W+1];if(H>0&&Math.abs(I-q)<=l6&&Math.abs(B-V)<=l6||(q=I,V=B,W===g||W===y||W===x))continue;let D=0;for(let O=0,U=this._hashKey(I,B);O<this._hashSize&&(D=a[(U+O)%this._hashSize],!(D!==-1&&D!==r[D]));O++);D=n[D];let j=D,N;for(;N=r[j],fp(I,B,t[2*j],t[2*j+1],t[2*N],t[2*N+1])>=0;)if(j=N,j===D){j=-1;break}if(j===-1)continue;let F=this._addTriangle(j,W,r[j],-1,-1,i[j]);i[W]=this._legalize(F+2),i[j]=F,G++;let Z=r[j];for(;N=r[Z],fp(I,B,t[2*Z],t[2*Z+1],t[2*N],t[2*N+1])<0;)F=this._addTriangle(Z,W,N,i[W],-1,i[Z]),i[W]=this._legalize(F+2),r[Z]=Z,G--,Z=N;if(j===D)for(;N=n[j],fp(I,B,t[2*N],t[2*N+1],t[2*j],t[2*j+1])<0;)F=this._addTriangle(N,W,j,-1,i[j],i[N]),this._legalize(F+2),i[N]=F,r[j]=j,G--,j=N;this._hullStart=n[W]=j,r[j]=n[Z]=W,r[W]=Z,a[this._hashKey(I,B)]=W,a[this._hashKey(t[2*j],t[2*j+1])]=j}this.hull=new Uint32Array(G);for(let H=0,q=this._hullStart;H<G;H++)this.hull[H]=q,q=r[q];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(vF(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:r,coords:i}=this;let a=0,o=0;for(;;){const l=r[t],c=t-t%3;if(o=c+(t+2)%3,l===-1){if(a===0)break;t=hp[--a];continue}const f=l-l%3,d=c+(t+1)%3,m=f+(l+2)%3,p=n[o],g=n[t],y=n[d],x=n[m];if(bF(i[2*p],i[2*p+1],i[2*g],i[2*g+1],i[2*y],i[2*y+1],i[2*x],i[2*x+1])){n[t]=x,n[l]=p;const w=r[m];if(w===-1){let S=this._hullStart;do{if(this._hullTri[S]===m){this._hullTri[S]=t;break}S=this._hullPrev[S]}while(S!==this._hullStart)}this._link(t,w),this._link(l,r[o]),this._link(o,m);const C=f+(l+1)%3;a<hp.length&&(hp[a++]=C)}else{if(a===0)break;t=hp[--a]}}return o}_link(t,n){this._halfedges[t]=n,n!==-1&&(this._halfedges[n]=t)}_addTriangle(t,n,r,i,a,o){const l=this.trianglesLen;return this._triangles[l]=t,this._triangles[l+1]=n,this._triangles[l+2]=r,this._link(l,i),this._link(l+1,a),this._link(l+2,o),this.trianglesLen+=3,l}}function vF(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function Lv(e,t,n,r){const i=e-n,a=t-r;return i*i+a*a}function bF(e,t,n,r,i,a,o,l){const c=e-o,f=t-l,d=n-o,m=r-l,p=i-o,g=a-l,y=c*c+f*f,x=d*d+m*m,k=p*p+g*g;return c*(m*k-x*g)-f*(d*k-x*p)+y*(d*g-m*p)<0}function xF(e,t,n,r,i,a){const o=n-e,l=r-t,c=i-e,f=a-t,d=o*o+l*l,m=c*c+f*f,p=.5/(o*f-l*c),g=(f*d-l*m)*p,y=(o*m-c*d)*p;return g*g+y*y}function wF(e,t,n,r,i,a){const o=n-e,l=r-t,c=i-e,f=a-t,d=o*o+l*l,m=c*c+f*f,p=.5/(o*f-l*c),g=e+(f*d-l*m)*p,y=t+(o*m-c*d)*p;return{x:g,y}}function Ku(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const a=e[i],o=t[a];let l=i-1;for(;l>=n&&t[e[l]]>o;)e[l+1]=e[l--];e[l+1]=a}else{const i=n+r>>1;let a=n+1,o=r;Kf(e,i,a),t[e[n]]>t[e[r]]&&Kf(e,n,r),t[e[a]]>t[e[r]]&&Kf(e,a,r),t[e[n]]>t[e[a]]&&Kf(e,n,a);const l=e[a],c=t[l];for(;;){do a++;while(t[e[a]]<c);do o--;while(t[e[o]]>c);if(o<a)break;Kf(e,a,o)}e[n+1]=e[o],e[o]=l,r-a+1>=o-n?(Ku(e,t,a,r),Ku(e,t,n,o-1)):(Ku(e,t,n,o-1),Ku(e,t,a,r))}}function Kf(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function kF(e){return e[0]}function EF(e){return e[1]}const u6=1e-6;let ul=class{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const i=t+r,a=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${i},${a}`:(Math.abs(this._x1-i)>u6||Math.abs(this._y1-a)>u6)&&(this._+="L"+i+","+a),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=i},${this._y1=a}`)}rect(t,n,r,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+i}h${-r}Z`}value(){return this._||null}};class Cx{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class TR{constructor(t,[n,r,i,a]=[0,0,960,500]){if(!((i=+i)>=(n=+n))||!((a=+a)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=i,this.xmin=n,this.ymax=a,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:i}=this;let a,o;const l=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let x=0,k=0,w=r.length,C,S;x<w;x+=3,k+=2){const T=r[x]*2,z=r[x+1]*2,A=r[x+2]*2,L=t[T],G=t[T+1],H=t[z],q=t[z+1],V=t[A],W=t[A+1],I=H-L,B=q-G,D=V-L,j=W-G,N=(I*j-B*D)*2;if(Math.abs(N)<1e-9){if(a===void 0){a=o=0;for(const Z of n)a+=t[Z*2],o+=t[Z*2+1];a/=n.length,o/=n.length}const F=1e9*Math.sign((a-L)*j-(o-G)*D);C=(L+V)/2-F*j,S=(G+W)/2+F*D}else{const F=1/N,Z=I*I+B*B,O=D*D+j*j;C=L+(j*Z-B*O)*F,S=G+(I*O-D*Z)*F}l[k]=C,l[k+1]=S}let c=n[n.length-1],f,d=c*4,m,p=t[2*c],g,y=t[2*c+1];i.fill(0);for(let x=0;x<n.length;++x)c=n[x],f=d,m=p,g=y,d=c*4,p=t[2*c],y=t[2*c+1],i[f+2]=i[d]=g-y,i[f+3]=i[d+1]=p-m}render(t){const n=t==null?t=new ul:void 0,{delaunay:{halfedges:r,inedges:i,hull:a},circumcenters:o,vectors:l}=this;if(a.length<=1)return null;for(let d=0,m=r.length;d<m;++d){const p=r[d];if(p<d)continue;const g=Math.floor(d/3)*2,y=Math.floor(p/3)*2,x=o[g],k=o[g+1],w=o[y],C=o[y+1];this._renderSegment(x,k,w,C,t)}let c,f=a[a.length-1];for(let d=0;d<a.length;++d){c=f,f=a[d];const m=Math.floor(i[f]/3)*2,p=o[m],g=o[m+1],y=c*4,x=this._project(p,g,l[y+2],l[y+3]);x&&this._renderSegment(p,g,x[0],x[1],t)}return n&&n.value()}renderBounds(t){const n=t==null?t=new ul:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(t,n){const r=n==null?n=new ul:void 0,i=this._clip(t);if(i===null||!i.length)return;n.moveTo(i[0],i[1]);let a=i.length;for(;i[0]===i[a-2]&&i[1]===i[a-1]&&a>1;)a-=2;for(let o=2;o<a;o+=2)(i[o]!==i[o-2]||i[o+1]!==i[o-1])&&n.lineTo(i[o],i[o+1]);return n.closePath(),r&&r.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,r=t.length/2;n<r;++n){const i=this.cellPolygon(n);i&&(i.index=n,yield i)}}cellPolygon(t){const n=new Cx;return this.renderCell(t,n),n.value()}_renderSegment(t,n,r,i,a){let o;const l=this._regioncode(t,n),c=this._regioncode(r,i);l===0&&c===0?(a.moveTo(t,n),a.lineTo(r,i)):(o=this._clipSegment(t,n,r,i,l,c))&&(a.moveTo(o[0],o[1]),a.lineTo(o[2],o[3]))}contains(t,n,r){return n=+n,n!==n||(r=+r,r!==r)?!1:this.delaunay._step(t,n,r)===t}*neighbors(t){const n=this._clip(t);if(n)for(const r of this.delaunay.neighbors(t)){const i=this._clip(r);if(i){e:for(let a=0,o=n.length;a<o;a+=2)for(let l=0,c=i.length;l<c;l+=2)if(n[a]===i[l]&&n[a+1]===i[l+1]&&n[(a+2)%o]===i[(l+c-2)%c]&&n[(a+3)%o]===i[(l+c-1)%c]){yield r;break e}}}}_cell(t){const{circumcenters:n,delaunay:{inedges:r,halfedges:i,triangles:a}}=this,o=r[t];if(o===-1)return null;const l=[];let c=o;do{const f=Math.floor(c/3);if(l.push(n[f*2],n[f*2+1]),c=c%3===2?c-2:c+1,a[c]!==t)break;c=i[c]}while(c!==o&&c!==-1);return l}_clip(t){if(t===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const n=this._cell(t);if(n===null)return null;const{vectors:r}=this,i=t*4;return this._simplify(r[i]||r[i+1]?this._clipInfinite(t,n,r[i],r[i+1],r[i+2],r[i+3]):this._clipFinite(t,n))}_clipFinite(t,n){const r=n.length;let i=null,a,o,l=n[r-2],c=n[r-1],f,d=this._regioncode(l,c),m,p=0;for(let g=0;g<r;g+=2)if(a=l,o=c,l=n[g],c=n[g+1],f=d,d=this._regioncode(l,c),f===0&&d===0)m=p,p=0,i?i.push(l,c):i=[l,c];else{let y,x,k,w,C;if(f===0){if((y=this._clipSegment(a,o,l,c,f,d))===null)continue;[x,k,w,C]=y}else{if((y=this._clipSegment(l,c,a,o,d,f))===null)continue;[w,C,x,k]=y,m=p,p=this._edgecode(x,k),m&&p&&this._edge(t,m,p,i,i.length),i?i.push(x,k):i=[x,k]}m=p,p=this._edgecode(w,C),m&&p&&this._edge(t,m,p,i,i.length),i?i.push(w,C):i=[w,C]}if(i)m=p,p=this._edgecode(i[0],i[1]),m&&p&&this._edge(t,m,p,i,i.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return i}_clipSegment(t,n,r,i,a,o){const l=a<o;for(l&&([t,n,r,i,a,o]=[r,i,t,n,o,a]);;){if(a===0&&o===0)return l?[r,i,t,n]:[t,n,r,i];if(a&o)return null;let c,f,d=a||o;d&8?(c=t+(r-t)*(this.ymax-n)/(i-n),f=this.ymax):d&4?(c=t+(r-t)*(this.ymin-n)/(i-n),f=this.ymin):d&2?(f=n+(i-n)*(this.xmax-t)/(r-t),c=this.xmax):(f=n+(i-n)*(this.xmin-t)/(r-t),c=this.xmin),a?(t=c,n=f,a=this._regioncode(t,n)):(r=c,i=f,o=this._regioncode(r,i))}}_clipInfinite(t,n,r,i,a,o){let l=Array.from(n),c;if((c=this._project(l[0],l[1],r,i))&&l.unshift(c[0],c[1]),(c=this._project(l[l.length-2],l[l.length-1],a,o))&&l.push(c[0],c[1]),l=this._clipFinite(t,l))for(let f=0,d=l.length,m,p=this._edgecode(l[d-2],l[d-1]);f<d;f+=2)m=p,p=this._edgecode(l[f],l[f+1]),m&&p&&(f=this._edge(t,m,p,l,f),d=l.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(l=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return l}_edge(t,n,r,i,a){for(;n!==r;){let o,l;switch(n){case 5:n=4;continue;case 4:n=6,o=this.xmax,l=this.ymin;break;case 6:n=2;continue;case 2:n=10,o=this.xmax,l=this.ymax;break;case 10:n=8;continue;case 8:n=9,o=this.xmin,l=this.ymax;break;case 9:n=1;continue;case 1:n=5,o=this.xmin,l=this.ymin;break}(i[a]!==o||i[a+1]!==l)&&this.contains(t,o,l)&&(i.splice(a,0,o,l),a+=2)}return a}_project(t,n,r,i){let a=1/0,o,l,c;if(i<0){if(n<=this.ymin)return null;(o=(this.ymin-n)/i)<a&&(c=this.ymin,l=t+(a=o)*r)}else if(i>0){if(n>=this.ymax)return null;(o=(this.ymax-n)/i)<a&&(c=this.ymax,l=t+(a=o)*r)}if(r>0){if(t>=this.xmax)return null;(o=(this.xmax-t)/r)<a&&(l=this.xmax,c=n+(a=o)*i)}else if(r<0){if(t<=this.xmin)return null;(o=(this.xmin-t)/r)<a&&(l=this.xmin,c=n+(a=o)*i)}return[l,c]}_edgecode(t,n){return(t===this.xmin?1:t===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(t,n){return(t<this.xmin?1:t>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let n=0;n<t.length;n+=2){const r=(n+2)%t.length,i=(n+4)%t.length;(t[n]===t[r]&&t[r]===t[i]||t[n+1]===t[r+1]&&t[r+1]===t[i+1])&&(t.splice(r,2),n-=2)}t.length||(t=null)}return t}}const SF=2*Math.PI,Ou=Math.pow;function TF(e){return e[0]}function CF(e){return e[1]}function AF(e){const{triangles:t,coords:n}=e;for(let r=0;r<t.length;r+=3){const i=2*t[r],a=2*t[r+1],o=2*t[r+2];if((n[o]-n[i])*(n[a+1]-n[i+1])-(n[a]-n[i])*(n[o+1]-n[i+1])>1e-10)return!1}return!0}function jF(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class M2{static from(t,n=TF,r=CF,i){return new M2("length"in t?RF(t,n,r,i):Float64Array.from(NF(t,n,r,i)))}constructor(t){this._delaunator=new $_(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&AF(t)){this.collinear=Int32Array.from({length:n.length/2},(p,g)=>g).sort((p,g)=>n[2*p]-n[2*g]||n[2*p+1]-n[2*g+1]);const c=this.collinear[0],f=this.collinear[this.collinear.length-1],d=[n[2*c],n[2*c+1],n[2*f],n[2*f+1]],m=1e-8*Math.hypot(d[3]-d[1],d[2]-d[0]);for(let p=0,g=n.length/2;p<g;++p){const y=jF(n[2*p],n[2*p+1],m);n[2*p]=y[0],n[2*p+1]=y[1]}this._delaunator=new $_(n)}else delete this.collinear;const r=this.halfedges=this._delaunator.halfedges,i=this.hull=this._delaunator.hull,a=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),l=this._hullIndex.fill(-1);for(let c=0,f=r.length;c<f;++c){const d=a[c%3===2?c-2:c+1];(r[c]===-1||o[d]===-1)&&(o[d]=c)}for(let c=0,f=i.length;c<f;++c)l[i[c]]=c;i.length<=2&&i.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=i[0],o[i[0]]=1,i.length===2&&(o[i[1]]=0,this.triangles[1]=i[1],this.triangles[2]=i[1]))}voronoi(t){return new TR(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:i,halfedges:a,triangles:o,collinear:l}=this;if(l){const m=l.indexOf(t);m>0&&(yield l[m-1]),m<l.length-1&&(yield l[m+1]);return}const c=n[t];if(c===-1)return;let f=c,d=-1;do{if(yield d=o[f],f=f%3===2?f-2:f+1,o[f]!==t)return;if(f=a[f],f===-1){const m=r[(i[t]+1)%r.length];m!==d&&(yield m);return}}while(f!==c)}find(t,n,r=0){if(t=+t,t!==t||(n=+n,n!==n))return-1;const i=r;let a;for(;(a=this._step(r,t,n))>=0&&a!==r&&a!==i;)r=a;return a}_step(t,n,r){const{inedges:i,hull:a,_hullIndex:o,halfedges:l,triangles:c,points:f}=this;if(i[t]===-1||!f.length)return(t+1)%(f.length>>1);let d=t,m=Ou(n-f[t*2],2)+Ou(r-f[t*2+1],2);const p=i[t];let g=p;do{let y=c[g];const x=Ou(n-f[y*2],2)+Ou(r-f[y*2+1],2);if(x<m&&(m=x,d=y),g=g%3===2?g-2:g+1,c[g]!==t)break;if(g=l[g],g===-1){if(g=a[(o[t]+1)%a.length],g!==y&&Ou(n-f[g*2],2)+Ou(r-f[g*2+1],2)<m)return g;break}}while(g!==p);return d}render(t){const n=t==null?t=new ul:void 0,{points:r,halfedges:i,triangles:a}=this;for(let o=0,l=i.length;o<l;++o){const c=i[o];if(c<o)continue;const f=a[o]*2,d=a[c]*2;t.moveTo(r[f],r[f+1]),t.lineTo(r[d],r[d+1])}return this.renderHull(t),n&&n.value()}renderPoints(t,n){n===void 0&&(!t||typeof t.moveTo!="function")&&(n=t,t=null),n=n==null?2:+n;const r=t==null?t=new ul:void 0,{points:i}=this;for(let a=0,o=i.length;a<o;a+=2){const l=i[a],c=i[a+1];t.moveTo(l+n,c),t.arc(l,c,n,0,SF)}return r&&r.value()}renderHull(t){const n=t==null?t=new ul:void 0,{hull:r,points:i}=this,a=r[0]*2,o=r.length;t.moveTo(i[a],i[a+1]);for(let l=1;l<o;++l){const c=2*r[l];t.lineTo(i[c],i[c+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new Cx;return this.renderHull(t),t.value()}renderTriangle(t,n){const r=n==null?n=new ul:void 0,{points:i,triangles:a}=this,o=a[t*=3]*2,l=a[t+1]*2,c=a[t+2]*2;return n.moveTo(i[o],i[o+1]),n.lineTo(i[l],i[l+1]),n.lineTo(i[c],i[c+1]),n.closePath(),r&&r.value()}*trianglePolygons(){const{triangles:t}=this;for(let n=0,r=t.length/3;n<r;++n)yield this.trianglePolygon(n)}trianglePolygon(t){const n=new Cx;return this.renderTriangle(t,n),n.value()}}function RF(e,t,n,r){const i=e.length,a=new Float64Array(i*2);for(let o=0;o<i;++o){const l=e[o];a[o*2]=t.call(r,l,o,e),a[o*2+1]=n.call(r,l,o,e)}return a}function*NF(e,t,n,r){let i=0;for(const a of e)yield t.call(r,a,i,e),yield n.call(r,a,i,e),++i}var c6={},Mv={},Ov=34,Zf=10,Dv=13;function CR(e){return new Function("d","return {"+e.map(function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'}).join(",")+"}")}function zF(e,t){var n=CR(e);return function(r,i){return t(n(r),i,e)}}function f6(e){var t=Object.create(null),n=[];return e.forEach(function(r){for(var i in r)i in t||n.push(t[i]=i)}),n}function Nr(e,t){var n=e+"",r=n.length;return r<t?new Array(t-r+1).join(0)+n:n}function LF(e){return e<0?"-"+Nr(-e,6):e>9999?"+"+Nr(e,6):Nr(e,4)}function MF(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),r=e.getUTCSeconds(),i=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":LF(e.getUTCFullYear())+"-"+Nr(e.getUTCMonth()+1,2)+"-"+Nr(e.getUTCDate(),2)+(i?"T"+Nr(t,2)+":"+Nr(n,2)+":"+Nr(r,2)+"."+Nr(i,3)+"Z":r?"T"+Nr(t,2)+":"+Nr(n,2)+":"+Nr(r,2)+"Z":n||t?"T"+Nr(t,2)+":"+Nr(n,2)+"Z":"")}function r1(e){var t=new RegExp('["'+e+`
|
|
51
|
+
\r]`),n=e.charCodeAt(0);function r(m,p){var g,y,x=i(m,function(k,w){if(g)return g(k,w-1);y=k,g=p?zF(k,p):CR(k)});return x.columns=y||[],x}function i(m,p){var g=[],y=m.length,x=0,k=0,w,C=y<=0,S=!1;m.charCodeAt(y-1)===Zf&&--y,m.charCodeAt(y-1)===Dv&&--y;function T(){if(C)return Mv;if(S)return S=!1,c6;var A,L=x,G;if(m.charCodeAt(L)===Ov){for(;x++<y&&m.charCodeAt(x)!==Ov||m.charCodeAt(++x)===Ov;);return(A=x)>=y?C=!0:(G=m.charCodeAt(x++))===Zf?S=!0:G===Dv&&(S=!0,m.charCodeAt(x)===Zf&&++x),m.slice(L+1,A-1).replace(/""/g,'"')}for(;x<y;){if((G=m.charCodeAt(A=x++))===Zf)S=!0;else if(G===Dv)S=!0,m.charCodeAt(x)===Zf&&++x;else if(G!==n)continue;return m.slice(L,A)}return C=!0,m.slice(L,y)}for(;(w=T())!==Mv;){for(var z=[];w!==c6&&w!==Mv;)z.push(w),w=T();p&&(z=p(z,k++))==null||g.push(z)}return g}function a(m,p){return m.map(function(g){return p.map(function(y){return d(g[y])}).join(e)})}function o(m,p){return p==null&&(p=f6(m)),[p.map(d).join(e)].concat(a(m,p)).join(`
|
|
52
|
+
`)}function l(m,p){return p==null&&(p=f6(m)),a(m,p).join(`
|
|
53
|
+
`)}function c(m){return m.map(f).join(`
|
|
54
|
+
`)}function f(m){return m.map(d).join(e)}function d(m){return m==null?"":m instanceof Date?MF(m):t.test(m+="")?'"'+m.replace(/"/g,'""')+'"':m}return{parse:r,parseRows:i,format:o,formatBody:l,formatRows:c,formatRow:f,formatValue:d}}var ql=r1(","),AR=ql.parse,OF=ql.parseRows,DF=ql.format,qF=ql.formatBody,IF=ql.formatRows,$F=ql.formatRow,PF=ql.formatValue,Il=r1(" "),jR=Il.parse,UF=Il.parseRows,BF=Il.format,GF=Il.formatBody,FF=Il.formatRows,HF=Il.formatRow,VF=Il.formatValue;function XF(e){for(var t in e){var n=e[t].trim(),r,i;if(!n)n=null;else if(n==="true")n=!0;else if(n==="false")n=!1;else if(n==="NaN")n=NaN;else if(!isNaN(r=+n))n=r;else if(i=n.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/))YF&&i[4]&&!i[7]&&(n=n.replace(/-/g,"/").replace(/T/," ")),n=new Date(n);else continue;e[t]=n}return e}const YF=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function WF(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.blob()}function KF(e,t){return fetch(e,t).then(WF)}function ZF(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.arrayBuffer()}function QF(e,t){return fetch(e,t).then(ZF)}function JF(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}function i1(e,t){return fetch(e,t).then(JF)}function RR(e){return function(t,n,r){return arguments.length===2&&typeof n=="function"&&(r=n,n=void 0),i1(t,n).then(function(i){return e(i,r)})}}function eH(e,t,n,r){arguments.length===3&&typeof n=="function"&&(r=n,n=void 0);var i=r1(e);return i1(t,n).then(function(a){return i.parse(a,r)})}var tH=RR(AR),nH=RR(jR);function rH(e,t){return new Promise(function(n,r){var i=new Image;for(var a in t)i[a]=t[a];i.onerror=r,i.onload=function(){n(i)},i.src=e})}function iH(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);if(!(e.status===204||e.status===205))return e.json()}function aH(e,t){return fetch(e,t).then(iH)}function O2(e){return(t,n)=>i1(t,n).then(r=>new DOMParser().parseFromString(r,e))}const oH=O2("application/xml");var sH=O2("text/html"),lH=O2("image/svg+xml");function uH(e,t){var n,r=1;e==null&&(e=0),t==null&&(t=0);function i(){var a,o=n.length,l,c=0,f=0;for(a=0;a<o;++a)l=n[a],c+=l.x,f+=l.y;for(c=(c/o-e)*r,f=(f/o-t)*r,a=0;a<o;++a)l=n[a],l.x-=c,l.y-=f}return i.initialize=function(a){n=a},i.x=function(a){return arguments.length?(e=+a,i):e},i.y=function(a){return arguments.length?(t=+a,i):t},i.strength=function(a){return arguments.length?(r=+a,i):r},i}function cH(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return NR(this.cover(t,n),t,n,e)}function NR(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,a=e._root,o={data:r},l=e._x0,c=e._y0,f=e._x1,d=e._y1,m,p,g,y,x,k,w,C;if(!a)return e._root=o,e;for(;a.length;)if((x=t>=(m=(l+f)/2))?l=m:f=m,(k=n>=(p=(c+d)/2))?c=p:d=p,i=a,!(a=a[w=k<<1|x]))return i[w]=o,e;if(g=+e._x.call(null,a.data),y=+e._y.call(null,a.data),t===g&&n===y)return o.next=a,i?i[w]=o:e._root=o,e;do i=i?i[w]=new Array(4):e._root=new Array(4),(x=t>=(m=(l+f)/2))?l=m:f=m,(k=n>=(p=(c+d)/2))?c=p:d=p;while((w=k<<1|x)===(C=(y>=p)<<1|g>=m));return i[C]=a,i[w]=o,e}function fH(e){var t,n,r=e.length,i,a,o=new Array(r),l=new Array(r),c=1/0,f=1/0,d=-1/0,m=-1/0;for(n=0;n<r;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(a=+this._y.call(null,t))||(o[n]=i,l[n]=a,i<c&&(c=i),i>d&&(d=i),a<f&&(f=a),a>m&&(m=a));if(c>d||f>m)return this;for(this.cover(c,f).cover(d,m),n=0;n<r;++n)NR(this,o[n],l[n],e[n]);return this}function hH(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,a=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,a=(r=Math.floor(t))+1;else{for(var o=i-n||1,l=this._root,c,f;n>e||e>=i||r>t||t>=a;)switch(f=(t<r)<<1|e<n,c=new Array(4),c[f]=l,l=c,o*=2,f){case 0:i=n+o,a=r+o;break;case 1:n=i-o,a=r+o;break;case 2:i=n+o,r=a-o;break;case 3:n=i-o,r=a-o;break}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=i,this._y1=a,this}function dH(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function mH(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function dr(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function pH(e,t,n){var r,i=this._x0,a=this._y0,o,l,c,f,d=this._x1,m=this._y1,p=[],g=this._root,y,x;for(g&&p.push(new dr(g,i,a,d,m)),n==null?n=1/0:(i=e-n,a=t-n,d=e+n,m=t+n,n*=n);y=p.pop();)if(!(!(g=y.node)||(o=y.x0)>d||(l=y.y0)>m||(c=y.x1)<i||(f=y.y1)<a))if(g.length){var k=(o+c)/2,w=(l+f)/2;p.push(new dr(g[3],k,w,c,f),new dr(g[2],o,w,k,f),new dr(g[1],k,l,c,w),new dr(g[0],o,l,k,w)),(x=(t>=w)<<1|e>=k)&&(y=p[p.length-1],p[p.length-1]=p[p.length-1-x],p[p.length-1-x]=y)}else{var C=e-+this._x.call(null,g.data),S=t-+this._y.call(null,g.data),T=C*C+S*S;if(T<n){var z=Math.sqrt(n=T);i=e-z,a=t-z,d=e+z,m=t+z,r=g.data}}return r}function _H(e){if(isNaN(d=+this._x.call(null,e))||isNaN(m=+this._y.call(null,e)))return this;var t,n=this._root,r,i,a,o=this._x0,l=this._y0,c=this._x1,f=this._y1,d,m,p,g,y,x,k,w;if(!n)return this;if(n.length)for(;;){if((y=d>=(p=(o+c)/2))?o=p:c=p,(x=m>=(g=(l+f)/2))?l=g:f=g,t=n,!(n=n[k=x<<1|y]))return this;if(!n.length)break;(t[k+1&3]||t[k+2&3]||t[k+3&3])&&(r=t,w=k)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(a=n.next)&&delete n.next,i?(a?i.next=a:delete i.next,this):t?(a?t[k]=a:delete t[k],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[w]=n:this._root=n),this):(this._root=a,this)}function gH(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function yH(){return this._root}function vH(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function bH(e){var t=[],n,r=this._root,i,a,o,l,c;for(r&&t.push(new dr(r,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(r=n.node,a=n.x0,o=n.y0,l=n.x1,c=n.y1)&&r.length){var f=(a+l)/2,d=(o+c)/2;(i=r[3])&&t.push(new dr(i,f,d,l,c)),(i=r[2])&&t.push(new dr(i,a,d,f,c)),(i=r[1])&&t.push(new dr(i,f,o,l,d)),(i=r[0])&&t.push(new dr(i,a,o,f,d))}return this}function xH(e){var t=[],n=[],r;for(this._root&&t.push(new dr(this._root,this._x0,this._y0,this._x1,this._y1));r=t.pop();){var i=r.node;if(i.length){var a,o=r.x0,l=r.y0,c=r.x1,f=r.y1,d=(o+c)/2,m=(l+f)/2;(a=i[0])&&t.push(new dr(a,o,l,d,m)),(a=i[1])&&t.push(new dr(a,d,l,c,m)),(a=i[2])&&t.push(new dr(a,o,m,d,f)),(a=i[3])&&t.push(new dr(a,d,m,c,f))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.y0,r.x1,r.y1);return this}function wH(e){return e[0]}function kH(e){return arguments.length?(this._x=e,this):this._x}function EH(e){return e[1]}function SH(e){return arguments.length?(this._y=e,this):this._y}function a1(e,t,n){var r=new D2(t??wH,n??EH,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function D2(e,t,n,r,i,a){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function h6(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var br=a1.prototype=D2.prototype;br.copy=function(){var e=new D2(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=h6(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var i=0;i<4;++i)(r=t.source[i])&&(r.length?n.push({source:r,target:t.target[i]=new Array(4)}):t.target[i]=h6(r));return e};br.add=cH;br.addAll=fH;br.cover=hH;br.data=dH;br.extent=mH;br.find=pH;br.remove=_H;br.removeAll=gH;br.root=yH;br.size=vH;br.visit=bH;br.visitAfter=xH;br.x=kH;br.y=SH;function En(e){return function(){return e}}function ss(e){return(e()-.5)*1e-6}function TH(e){return e.x+e.vx}function CH(e){return e.y+e.vy}function AH(e){var t,n,r,i=1,a=1;typeof e!="function"&&(e=En(e==null?1:+e));function o(){for(var f,d=t.length,m,p,g,y,x,k,w=0;w<a;++w)for(m=a1(t,TH,CH).visitAfter(l),f=0;f<d;++f)p=t[f],x=n[p.index],k=x*x,g=p.x+p.vx,y=p.y+p.vy,m.visit(C);function C(S,T,z,A,L){var G=S.data,H=S.r,q=x+H;if(G){if(G.index>p.index){var V=g-G.x-G.vx,W=y-G.y-G.vy,I=V*V+W*W;I<q*q&&(V===0&&(V=ss(r),I+=V*V),W===0&&(W=ss(r),I+=W*W),I=(q-(I=Math.sqrt(I)))/I*i,p.vx+=(V*=I)*(q=(H*=H)/(k+H)),p.vy+=(W*=I)*q,G.vx-=V*(q=1-q),G.vy-=W*q)}return}return T>g+q||A<g-q||z>y+q||L<y-q}}function l(f){if(f.data)return f.r=n[f.data.index];for(var d=f.r=0;d<4;++d)f[d]&&f[d].r>f.r&&(f.r=f[d].r)}function c(){if(t){var f,d=t.length,m;for(n=new Array(d),f=0;f<d;++f)m=t[f],n[m.index]=+e(m,f,t)}}return o.initialize=function(f,d){t=f,r=d,c()},o.iterations=function(f){return arguments.length?(a=+f,o):a},o.strength=function(f){return arguments.length?(i=+f,o):i},o.radius=function(f){return arguments.length?(e=typeof f=="function"?f:En(+f),c(),o):e},o}function jH(e){return e.index}function d6(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function RH(e){var t=jH,n=m,r,i=En(30),a,o,l,c,f,d=1;e==null&&(e=[]);function m(k){return 1/Math.min(l[k.source.index],l[k.target.index])}function p(k){for(var w=0,C=e.length;w<d;++w)for(var S=0,T,z,A,L,G,H,q;S<C;++S)T=e[S],z=T.source,A=T.target,L=A.x+A.vx-z.x-z.vx||ss(f),G=A.y+A.vy-z.y-z.vy||ss(f),H=Math.sqrt(L*L+G*G),H=(H-a[S])/H*k*r[S],L*=H,G*=H,A.vx-=L*(q=c[S]),A.vy-=G*q,z.vx+=L*(q=1-q),z.vy+=G*q}function g(){if(o){var k,w=o.length,C=e.length,S=new Map(o.map((z,A)=>[t(z,A,o),z])),T;for(k=0,l=new Array(w);k<C;++k)T=e[k],T.index=k,typeof T.source!="object"&&(T.source=d6(S,T.source)),typeof T.target!="object"&&(T.target=d6(S,T.target)),l[T.source.index]=(l[T.source.index]||0)+1,l[T.target.index]=(l[T.target.index]||0)+1;for(k=0,c=new Array(C);k<C;++k)T=e[k],c[k]=l[T.source.index]/(l[T.source.index]+l[T.target.index]);r=new Array(C),y(),a=new Array(C),x()}}function y(){if(o)for(var k=0,w=e.length;k<w;++k)r[k]=+n(e[k],k,e)}function x(){if(o)for(var k=0,w=e.length;k<w;++k)a[k]=+i(e[k],k,e)}return p.initialize=function(k,w){o=k,f=w,g()},p.links=function(k){return arguments.length?(e=k,g(),p):e},p.id=function(k){return arguments.length?(t=k,p):t},p.iterations=function(k){return arguments.length?(d=+k,p):d},p.strength=function(k){return arguments.length?(n=typeof k=="function"?k:En(+k),y(),p):n},p.distance=function(k){return arguments.length?(i=typeof k=="function"?k:En(+k),x(),p):i},p}const NH=1664525,zH=1013904223,m6=4294967296;function LH(){let e=1;return()=>(e=(NH*e+zH)%m6)/m6}function MH(e){return e.x}function OH(e){return e.y}var DH=10,qH=Math.PI*(3-Math.sqrt(5));function IH(e){var t,n=1,r=.001,i=1-Math.pow(r,1/300),a=0,o=.6,l=new Map,c=t1(m),f=Ol("tick","end"),d=LH();e==null&&(e=[]);function m(){p(),f.call("tick",t),n<r&&(c.stop(),f.call("end",t))}function p(x){var k,w=e.length,C;x===void 0&&(x=1);for(var S=0;S<x;++S)for(n+=(a-n)*i,l.forEach(function(T){T(n)}),k=0;k<w;++k)C=e[k],C.fx==null?C.x+=C.vx*=o:(C.x=C.fx,C.vx=0),C.fy==null?C.y+=C.vy*=o:(C.y=C.fy,C.vy=0);return t}function g(){for(var x=0,k=e.length,w;x<k;++x){if(w=e[x],w.index=x,w.fx!=null&&(w.x=w.fx),w.fy!=null&&(w.y=w.fy),isNaN(w.x)||isNaN(w.y)){var C=DH*Math.sqrt(.5+x),S=x*qH;w.x=C*Math.cos(S),w.y=C*Math.sin(S)}(isNaN(w.vx)||isNaN(w.vy))&&(w.vx=w.vy=0)}}function y(x){return x.initialize&&x.initialize(e,d),x}return g(),t={tick:p,restart:function(){return c.restart(m),t},stop:function(){return c.stop(),t},nodes:function(x){return arguments.length?(e=x,g(),l.forEach(y),t):e},alpha:function(x){return arguments.length?(n=+x,t):n},alphaMin:function(x){return arguments.length?(r=+x,t):r},alphaDecay:function(x){return arguments.length?(i=+x,t):+i},alphaTarget:function(x){return arguments.length?(a=+x,t):a},velocityDecay:function(x){return arguments.length?(o=1-x,t):1-o},randomSource:function(x){return arguments.length?(d=x,l.forEach(y),t):d},force:function(x,k){return arguments.length>1?(k==null?l.delete(x):l.set(x,y(k)),t):l.get(x)},find:function(x,k,w){var C=0,S=e.length,T,z,A,L,G;for(w==null?w=1/0:w*=w,C=0;C<S;++C)L=e[C],T=x-L.x,z=k-L.y,A=T*T+z*z,A<w&&(G=L,w=A);return G},on:function(x,k){return arguments.length>1?(f.on(x,k),t):f.on(x)}}}function $H(){var e,t,n,r,i=En(-30),a,o=1,l=1/0,c=.81;function f(g){var y,x=e.length,k=a1(e,MH,OH).visitAfter(m);for(r=g,y=0;y<x;++y)t=e[y],k.visit(p)}function d(){if(e){var g,y=e.length,x;for(a=new Array(y),g=0;g<y;++g)x=e[g],a[x.index]=+i(x,g,e)}}function m(g){var y=0,x,k,w=0,C,S,T;if(g.length){for(C=S=T=0;T<4;++T)(x=g[T])&&(k=Math.abs(x.value))&&(y+=x.value,w+=k,C+=k*x.x,S+=k*x.y);g.x=C/w,g.y=S/w}else{x=g,x.x=x.data.x,x.y=x.data.y;do y+=a[x.data.index];while(x=x.next)}g.value=y}function p(g,y,x,k){if(!g.value)return!0;var w=g.x-t.x,C=g.y-t.y,S=k-y,T=w*w+C*C;if(S*S/c<T)return T<l&&(w===0&&(w=ss(n),T+=w*w),C===0&&(C=ss(n),T+=C*C),T<o&&(T=Math.sqrt(o*T)),t.vx+=w*g.value*r/T,t.vy+=C*g.value*r/T),!0;if(g.length||T>=l)return;(g.data!==t||g.next)&&(w===0&&(w=ss(n),T+=w*w),C===0&&(C=ss(n),T+=C*C),T<o&&(T=Math.sqrt(o*T)));do g.data!==t&&(S=a[g.data.index]*r/T,t.vx+=w*S,t.vy+=C*S);while(g=g.next)}return f.initialize=function(g,y){e=g,n=y,d()},f.strength=function(g){return arguments.length?(i=typeof g=="function"?g:En(+g),d(),f):i},f.distanceMin=function(g){return arguments.length?(o=g*g,f):Math.sqrt(o)},f.distanceMax=function(g){return arguments.length?(l=g*g,f):Math.sqrt(l)},f.theta=function(g){return arguments.length?(c=g*g,f):Math.sqrt(c)},f}function PH(e,t,n){var r,i=En(.1),a,o;typeof e!="function"&&(e=En(+e)),t==null&&(t=0),n==null&&(n=0);function l(f){for(var d=0,m=r.length;d<m;++d){var p=r[d],g=p.x-t||1e-6,y=p.y-n||1e-6,x=Math.sqrt(g*g+y*y),k=(o[d]-x)*a[d]*f/x;p.vx+=g*k,p.vy+=y*k}}function c(){if(r){var f,d=r.length;for(a=new Array(d),o=new Array(d),f=0;f<d;++f)o[f]=+e(r[f],f,r),a[f]=isNaN(o[f])?0:+i(r[f],f,r)}}return l.initialize=function(f){r=f,c()},l.strength=function(f){return arguments.length?(i=typeof f=="function"?f:En(+f),c(),l):i},l.radius=function(f){return arguments.length?(e=typeof f=="function"?f:En(+f),c(),l):e},l.x=function(f){return arguments.length?(t=+f,l):t},l.y=function(f){return arguments.length?(n=+f,l):n},l}function UH(e){var t=En(.1),n,r,i;typeof e!="function"&&(e=En(e==null?0:+e));function a(l){for(var c=0,f=n.length,d;c<f;++c)d=n[c],d.vx+=(i[c]-d.x)*r[c]*l}function o(){if(n){var l,c=n.length;for(r=new Array(c),i=new Array(c),l=0;l<c;++l)r[l]=isNaN(i[l]=+e(n[l],l,n))?0:+t(n[l],l,n)}}return a.initialize=function(l){n=l,o()},a.strength=function(l){return arguments.length?(t=typeof l=="function"?l:En(+l),o(),a):t},a.x=function(l){return arguments.length?(e=typeof l=="function"?l:En(+l),o(),a):e},a}function BH(e){var t=En(.1),n,r,i;typeof e!="function"&&(e=En(e==null?0:+e));function a(l){for(var c=0,f=n.length,d;c<f;++c)d=n[c],d.vy+=(i[c]-d.y)*r[c]*l}function o(){if(n){var l,c=n.length;for(r=new Array(c),i=new Array(c),l=0;l<c;++l)r[l]=isNaN(i[l]=+e(n[l],l,n))?0:+t(n[l],l,n)}}return a.initialize=function(l){n=l,o()},a.strength=function(l){return arguments.length?(t=typeof l=="function"?l:En(+l),o(),a):t},a.y=function(l){return arguments.length?(e=typeof l=="function"?l:En(+l),o(),a):e},a}function GH(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function P_(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function fc(e){return e=P_(Math.abs(e)),e?e[1]:NaN}function FH(e,t){return function(n,r){for(var i=n.length,a=[],o=0,l=e[0],c=0;i>0&&l>0&&(c+l+1>r&&(l=Math.max(1,r-c)),a.push(n.substring(i-=l,i+l)),!((c+=l+1)>r));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function HH(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var VH=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function hc(e){if(!(t=VH.exec(e)))throw new Error("invalid format: "+e);var t;return new o1({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}hc.prototype=o1.prototype;function o1(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}o1.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function XH(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var U_;function YH(e,t){var n=P_(e,t);if(!n)return U_=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(U_=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+P_(e,Math.max(0,t+a-1))[0]}function p6(e,t){var n=P_(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const _6={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:GH,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>p6(e*100,t),r:p6,s:YH,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function g6(e){return e}var y6=Array.prototype.map,v6=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function zR(e){var t=e.grouping===void 0||e.thousands===void 0?g6:FH(y6.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?g6:HH(y6.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function f(m,p){m=hc(m);var g=m.fill,y=m.align,x=m.sign,k=m.symbol,w=m.zero,C=m.width,S=m.comma,T=m.precision,z=m.trim,A=m.type;A==="n"?(S=!0,A="g"):_6[A]||(T===void 0&&(T=12),z=!0,A="g"),(w||g==="0"&&y==="=")&&(w=!0,g="0",y="=");var L=(p&&p.prefix!==void 0?p.prefix:"")+(k==="$"?n:k==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():""),G=(k==="$"?r:/[%p]/.test(A)?o:"")+(p&&p.suffix!==void 0?p.suffix:""),H=_6[A],q=/[defgprs%]/.test(A);T=T===void 0?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,T)):Math.max(0,Math.min(20,T));function V(W){var I=L,B=G,D,j,N;if(A==="c")B=H(W)+B,W="";else{W=+W;var F=W<0||1/W<0;if(W=isNaN(W)?c:H(Math.abs(W),T),z&&(W=XH(W)),F&&+W==0&&x!=="+"&&(F=!1),I=(F?x==="("?x:l:x==="-"||x==="("?"":x)+I,B=(A==="s"&&!isNaN(W)&&U_!==void 0?v6[8+U_/3]:"")+B+(F&&x==="("?")":""),q){for(D=-1,j=W.length;++D<j;)if(N=W.charCodeAt(D),48>N||N>57){B=(N===46?i+W.slice(D+1):W.slice(D))+B,W=W.slice(0,D);break}}}S&&!w&&(W=t(W,1/0));var Z=I.length+W.length+B.length,O=Z<C?new Array(C-Z+1).join(g):"";switch(S&&w&&(W=t(O+W,O.length?C-B.length:1/0),O=""),y){case"<":W=I+W+B+O;break;case"=":W=I+O+W+B;break;case"^":W=O.slice(0,Z=O.length>>1)+I+W+B+O.slice(Z);break;default:W=O+I+W+B;break}return a(W)}return V.toString=function(){return m+""},V}function d(m,p){var g=Math.max(-8,Math.min(8,Math.floor(fc(p)/3)))*3,y=Math.pow(10,-g),x=f((m=hc(m),m.type="f",m),{suffix:v6[8+g/3]});return function(k){return x(y*k)}}return{format:f,formatPrefix:d}}var dp,s1,q2;LR({thousands:",",grouping:[3],currency:["$",""]});function LR(e){return dp=zR(e),s1=dp.format,q2=dp.formatPrefix,dp}function MR(e){return Math.max(0,-fc(Math.abs(e)))}function OR(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(fc(t)/3)))*3-fc(Math.abs(e)))}function DR(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,fc(t)-fc(e))+1}var Ve=1e-6,rd=1e-12,ut=Math.PI,rn=ut/2,B_=ut/4,gr=ut*2,Dt=180/ut,Xe=ut/180,gt=Math.abs,qc=Math.atan,yr=Math.atan2,Ue=Math.cos,mp=Math.ceil,qR=Math.exp,Ax=Math.hypot,G_=Math.log,qv=Math.pow,Oe=Math.sin,bi=Math.sign||function(e){return e>0?1:e<0?-1:0},Mn=Math.sqrt,I2=Math.tan;function IR(e){return e>1?0:e<-1?ut:Math.acos(e)}function vr(e){return e>1?rn:e<-1?-rn:Math.asin(e)}function b6(e){return(e=Oe(e/2))*e}function Qt(){}function F_(e,t){e&&w6.hasOwnProperty(e.type)&&w6[e.type](e,t)}var x6={Feature:function(e,t){F_(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)F_(n[r].geometry,t)}},w6={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){jx(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)jx(n[r],t,0)},Polygon:function(e,t){k6(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)k6(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)F_(n[r],t)}};function jx(e,t,n){var r=-1,i=e.length-n,a;for(t.lineStart();++r<i;)a=e[r],t.point(a[0],a[1],a[2]);t.lineEnd()}function k6(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)jx(e[n],t,1);t.polygonEnd()}function $i(e,t){e&&x6.hasOwnProperty(e.type)?x6[e.type](e,t):F_(e,t)}var H_=new Sn,V_=new Sn,$R,PR,Rx,Nx,zx,ga={point:Qt,lineStart:Qt,lineEnd:Qt,polygonStart:function(){H_=new Sn,ga.lineStart=WH,ga.lineEnd=KH},polygonEnd:function(){var e=+H_;V_.add(e<0?gr+e:e),this.lineStart=this.lineEnd=this.point=Qt},sphere:function(){V_.add(gr)}};function WH(){ga.point=ZH}function KH(){UR($R,PR)}function ZH(e,t){ga.point=UR,$R=e,PR=t,e*=Xe,t*=Xe,Rx=e,Nx=Ue(t=t/2+B_),zx=Oe(t)}function UR(e,t){e*=Xe,t*=Xe,t=t/2+B_;var n=e-Rx,r=n>=0?1:-1,i=r*n,a=Ue(t),o=Oe(t),l=zx*o,c=Nx*a+l*Ue(i),f=l*r*Oe(i);H_.add(yr(f,c)),Rx=e,Nx=a,zx=o}function QH(e){return V_=new Sn,$i(e,ga),V_*2}function X_(e){return[yr(e[1],e[0]),vr(e[2])]}function Sl(e){var t=e[0],n=e[1],r=Ue(n);return[r*Ue(t),r*Oe(t),Oe(n)]}function pp(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function dc(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Iv(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function _p(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Y_(e){var t=Mn(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var Zt,Lr,nn,Kr,il,BR,GR,tc,zh,rs,co,Ja={point:Lx,lineStart:E6,lineEnd:S6,polygonStart:function(){Ja.point=HR,Ja.lineStart=JH,Ja.lineEnd=eV,zh=new Sn,ga.polygonStart()},polygonEnd:function(){ga.polygonEnd(),Ja.point=Lx,Ja.lineStart=E6,Ja.lineEnd=S6,H_<0?(Zt=-(nn=180),Lr=-(Kr=90)):zh>Ve?Kr=90:zh<-Ve&&(Lr=-90),co[0]=Zt,co[1]=nn},sphere:function(){Zt=-(nn=180),Lr=-(Kr=90)}};function Lx(e,t){rs.push(co=[Zt=e,nn=e]),t<Lr&&(Lr=t),t>Kr&&(Kr=t)}function FR(e,t){var n=Sl([e*Xe,t*Xe]);if(tc){var r=dc(tc,n),i=[r[1],-r[0],0],a=dc(i,r);Y_(a),a=X_(a);var o=e-il,l=o>0?1:-1,c=a[0]*Dt*l,f,d=gt(o)>180;d^(l*il<c&&c<l*e)?(f=a[1]*Dt,f>Kr&&(Kr=f)):(c=(c+360)%360-180,d^(l*il<c&&c<l*e)?(f=-a[1]*Dt,f<Lr&&(Lr=f)):(t<Lr&&(Lr=t),t>Kr&&(Kr=t))),d?e<il?Yr(Zt,e)>Yr(Zt,nn)&&(nn=e):Yr(e,nn)>Yr(Zt,nn)&&(Zt=e):nn>=Zt?(e<Zt&&(Zt=e),e>nn&&(nn=e)):e>il?Yr(Zt,e)>Yr(Zt,nn)&&(nn=e):Yr(e,nn)>Yr(Zt,nn)&&(Zt=e)}else rs.push(co=[Zt=e,nn=e]);t<Lr&&(Lr=t),t>Kr&&(Kr=t),tc=n,il=e}function E6(){Ja.point=FR}function S6(){co[0]=Zt,co[1]=nn,Ja.point=Lx,tc=null}function HR(e,t){if(tc){var n=e-il;zh.add(gt(n)>180?n+(n>0?360:-360):n)}else BR=e,GR=t;ga.point(e,t),FR(e,t)}function JH(){ga.lineStart()}function eV(){HR(BR,GR),ga.lineEnd(),gt(zh)>Ve&&(Zt=-(nn=180)),co[0]=Zt,co[1]=nn,tc=null}function Yr(e,t){return(t-=e)<0?t+360:t}function tV(e,t){return e[0]-t[0]}function T6(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}function nV(e){var t,n,r,i,a,o,l;if(Kr=nn=-(Zt=Lr=1/0),rs=[],$i(e,Ja),n=rs.length){for(rs.sort(tV),t=1,r=rs[0],a=[r];t<n;++t)i=rs[t],T6(r,i[0])||T6(r,i[1])?(Yr(r[0],i[1])>Yr(r[0],r[1])&&(r[1]=i[1]),Yr(i[0],r[1])>Yr(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,n=a.length-1,t=0,r=a[n];t<=n;r=i,++t)i=a[t],(l=Yr(r[1],i[0]))>o&&(o=l,Zt=i[0],nn=r[1])}return rs=co=null,Zt===1/0||Lr===1/0?[[NaN,NaN],[NaN,NaN]]:[[Zt,Lr],[nn,Kr]]}var bh,W_,K_,Z_,Q_,J_,eg,tg,Mx,Ox,Dx,VR,XR,cr,fr,hr,Gi={sphere:Qt,point:$2,lineStart:C6,lineEnd:A6,polygonStart:function(){Gi.lineStart=aV,Gi.lineEnd=oV},polygonEnd:function(){Gi.lineStart=C6,Gi.lineEnd=A6}};function $2(e,t){e*=Xe,t*=Xe;var n=Ue(t);Td(n*Ue(e),n*Oe(e),Oe(t))}function Td(e,t,n){++bh,K_+=(e-K_)/bh,Z_+=(t-Z_)/bh,Q_+=(n-Q_)/bh}function C6(){Gi.point=rV}function rV(e,t){e*=Xe,t*=Xe;var n=Ue(t);cr=n*Ue(e),fr=n*Oe(e),hr=Oe(t),Gi.point=iV,Td(cr,fr,hr)}function iV(e,t){e*=Xe,t*=Xe;var n=Ue(t),r=n*Ue(e),i=n*Oe(e),a=Oe(t),o=yr(Mn((o=fr*a-hr*i)*o+(o=hr*r-cr*a)*o+(o=cr*i-fr*r)*o),cr*r+fr*i+hr*a);W_+=o,J_+=o*(cr+(cr=r)),eg+=o*(fr+(fr=i)),tg+=o*(hr+(hr=a)),Td(cr,fr,hr)}function A6(){Gi.point=$2}function aV(){Gi.point=sV}function oV(){YR(VR,XR),Gi.point=$2}function sV(e,t){VR=e,XR=t,e*=Xe,t*=Xe,Gi.point=YR;var n=Ue(t);cr=n*Ue(e),fr=n*Oe(e),hr=Oe(t),Td(cr,fr,hr)}function YR(e,t){e*=Xe,t*=Xe;var n=Ue(t),r=n*Ue(e),i=n*Oe(e),a=Oe(t),o=fr*a-hr*i,l=hr*r-cr*a,c=cr*i-fr*r,f=Ax(o,l,c),d=vr(f),m=f&&-d/f;Mx.add(m*o),Ox.add(m*l),Dx.add(m*c),W_+=d,J_+=d*(cr+(cr=r)),eg+=d*(fr+(fr=i)),tg+=d*(hr+(hr=a)),Td(cr,fr,hr)}function lV(e){bh=W_=K_=Z_=Q_=J_=eg=tg=0,Mx=new Sn,Ox=new Sn,Dx=new Sn,$i(e,Gi);var t=+Mx,n=+Ox,r=+Dx,i=Ax(t,n,r);return i<rd&&(t=J_,n=eg,r=tg,W_<Ve&&(t=K_,n=Z_,r=Q_),i=Ax(t,n,r),i<rd)?[NaN,NaN]:[yr(n,t)*Dt,vr(r/i)*Dt]}function Du(e){return function(){return e}}function qx(e,t){function n(r,i){return r=e(r,i),t(r[0],r[1])}return e.invert&&t.invert&&(n.invert=function(r,i){return r=t.invert(r,i),r&&e.invert(r[0],r[1])}),n}function Ix(e,t){return gt(e)>ut&&(e-=Math.round(e/gr)*gr),[e,t]}Ix.invert=Ix;function P2(e,t,n){return(e%=gr)?t||n?qx(R6(e),N6(t,n)):R6(e):t||n?N6(t,n):Ix}function j6(e){return function(t,n){return t+=e,gt(t)>ut&&(t-=Math.round(t/gr)*gr),[t,n]}}function R6(e){var t=j6(e);return t.invert=j6(-e),t}function N6(e,t){var n=Ue(e),r=Oe(e),i=Ue(t),a=Oe(t);function o(l,c){var f=Ue(c),d=Ue(l)*f,m=Oe(l)*f,p=Oe(c),g=p*n+d*r;return[yr(m*i-g*a,d*n-p*r),vr(g*i+m*a)]}return o.invert=function(l,c){var f=Ue(c),d=Ue(l)*f,m=Oe(l)*f,p=Oe(c),g=p*i-m*a;return[yr(m*i+p*a,d*n+g*r),vr(g*n-d*r)]},o}function WR(e){e=P2(e[0]*Xe,e[1]*Xe,e.length>2?e[2]*Xe:0);function t(n){return n=e(n[0]*Xe,n[1]*Xe),n[0]*=Dt,n[1]*=Dt,n}return t.invert=function(n){return n=e.invert(n[0]*Xe,n[1]*Xe),n[0]*=Dt,n[1]*=Dt,n},t}function KR(e,t,n,r,i,a){if(n){var o=Ue(t),l=Oe(t),c=r*n;i==null?(i=t+r*gr,a=t-c/2):(i=z6(o,i),a=z6(o,a),(r>0?i<a:i>a)&&(i+=r*gr));for(var f,d=i;r>0?d>a:d<a;d-=c)f=X_([o,-l*Ue(d),-l*Oe(d)]),e.point(f[0],f[1])}}function z6(e,t){t=Sl(t),t[0]-=e,Y_(t);var n=IR(-t[1]);return((-t[2]<0?-n:n)+gr-Ve)%gr}function uV(){var e=Du([0,0]),t=Du(90),n=Du(2),r,i,a={point:o};function o(c,f){r.push(c=i(c,f)),c[0]*=Dt,c[1]*=Dt}function l(){var c=e.apply(this,arguments),f=t.apply(this,arguments)*Xe,d=n.apply(this,arguments)*Xe;return r=[],i=P2(-c[0]*Xe,-c[1]*Xe,0).invert,KR(a,f,d,1),c={type:"Polygon",coordinates:[r]},r=i=null,c}return l.center=function(c){return arguments.length?(e=typeof c=="function"?c:Du([+c[0],+c[1]]),l):e},l.radius=function(c){return arguments.length?(t=typeof c=="function"?c:Du(+c),l):t},l.precision=function(c){return arguments.length?(n=typeof c=="function"?c:Du(+c),l):n},l}function ZR(){var e=[],t;return{point:function(n,r,i){t.push([n,r,i])},lineStart:function(){e.push(t=[])},lineEnd:Qt,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function h_(e,t){return gt(e[0]-t[0])<Ve&>(e[1]-t[1])<Ve}function gp(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function QR(e,t,n,r,i){var a=[],o=[],l,c;if(e.forEach(function(y){if(!((x=y.length-1)<=0)){var x,k=y[0],w=y[x],C;if(h_(k,w)){if(!k[2]&&!w[2]){for(i.lineStart(),l=0;l<x;++l)i.point((k=y[l])[0],k[1]);i.lineEnd();return}w[0]+=2*Ve}a.push(C=new gp(k,y,null,!0)),o.push(C.o=new gp(k,null,C,!1)),a.push(C=new gp(w,y,null,!1)),o.push(C.o=new gp(w,null,C,!0))}}),!!a.length){for(o.sort(t),L6(a),L6(o),l=0,c=o.length;l<c;++l)o[l].e=n=!n;for(var f=a[0],d,m;;){for(var p=f,g=!0;p.v;)if((p=p.n)===f)return;d=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(g)for(l=0,c=d.length;l<c;++l)i.point((m=d[l])[0],m[1]);else r(p.x,p.n.x,1,i);p=p.n}else{if(g)for(d=p.p.z,l=d.length-1;l>=0;--l)i.point((m=d[l])[0],m[1]);else r(p.x,p.p.x,-1,i);p=p.p}p=p.o,d=p.z,g=!g}while(!p.v);i.lineEnd()}}}function L6(e){if(t=e.length){for(var t,n=0,r=e[0],i;++n<t;)r.n=i=e[n],i.p=r,r=i;r.n=i=e[0],i.p=r}}function $v(e){return gt(e[0])<=ut?e[0]:bi(e[0])*((gt(e[0])+ut)%gr-ut)}function JR(e,t){var n=$v(t),r=t[1],i=Oe(r),a=[Oe(n),-Ue(n),0],o=0,l=0,c=new Sn;i===1?r=rn+Ve:i===-1&&(r=-rn-Ve);for(var f=0,d=e.length;f<d;++f)if(p=(m=e[f]).length)for(var m,p,g=m[p-1],y=$v(g),x=g[1]/2+B_,k=Oe(x),w=Ue(x),C=0;C<p;++C,y=T,k=A,w=L,g=S){var S=m[C],T=$v(S),z=S[1]/2+B_,A=Oe(z),L=Ue(z),G=T-y,H=G>=0?1:-1,q=H*G,V=q>ut,W=k*A;if(c.add(yr(W*H*Oe(q),w*L+W*Ue(q))),o+=V?G+H*gr:G,V^y>=n^T>=n){var I=dc(Sl(g),Sl(S));Y_(I);var B=dc(a,I);Y_(B);var D=(V^G>=0?-1:1)*vr(B[2]);(r>D||r===D&&(I[0]||I[1]))&&(l+=V^G>=0?1:-1)}}return(o<-Ve||o<Ve&&c<-rd)^l&1}function e9(e,t,n,r){return function(i){var a=t(i),o=ZR(),l=t(o),c=!1,f,d,m,p={point:g,lineStart:x,lineEnd:k,polygonStart:function(){p.point=w,p.lineStart=C,p.lineEnd=S,d=[],f=[]},polygonEnd:function(){p.point=g,p.lineStart=x,p.lineEnd=k,d=m2(d);var T=JR(f,r);d.length?(c||(i.polygonStart(),c=!0),QR(d,fV,T,n,i)):T&&(c||(i.polygonStart(),c=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),c&&(i.polygonEnd(),c=!1),d=f=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function g(T,z){e(T,z)&&i.point(T,z)}function y(T,z){a.point(T,z)}function x(){p.point=y,a.lineStart()}function k(){p.point=g,a.lineEnd()}function w(T,z){m.push([T,z]),l.point(T,z)}function C(){l.lineStart(),m=[]}function S(){w(m[0][0],m[0][1]),l.lineEnd();var T=l.clean(),z=o.result(),A,L=z.length,G,H,q;if(m.pop(),f.push(m),m=null,!!L){if(T&1){if(H=z[0],(G=H.length-1)>0){for(c||(i.polygonStart(),c=!0),i.lineStart(),A=0;A<G;++A)i.point((q=H[A])[0],q[1]);i.lineEnd()}return}L>1&&T&2&&z.push(z.pop().concat(z.shift())),d.push(z.filter(cV))}}return p}}function cV(e){return e.length>1}function fV(e,t){return((e=e.x)[0]<0?e[1]-rn-Ve:rn-e[1])-((t=t.x)[0]<0?t[1]-rn-Ve:rn-t[1])}const $x=e9(function(){return!0},hV,mV,[-ut,-rn]);function hV(e){var t=NaN,n=NaN,r=NaN,i;return{lineStart:function(){e.lineStart(),i=1},point:function(a,o){var l=a>0?ut:-ut,c=gt(a-t);gt(c-ut)<Ve?(e.point(t,n=(n+o)/2>0?rn:-rn),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(l,n),e.point(a,n),i=0):r!==l&&c>=ut&&(gt(t-r)<Ve&&(t-=r*Ve),gt(a-l)<Ve&&(a-=l*Ve),n=dV(t,n,a,o),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(l,n),i=0),e.point(t=a,n=o),r=l},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-i}}}function dV(e,t,n,r){var i,a,o=Oe(e-n);return gt(o)>Ve?qc((Oe(t)*(a=Ue(r))*Oe(n)-Oe(r)*(i=Ue(t))*Oe(e))/(i*a*o)):(t+r)/2}function mV(e,t,n,r){var i;if(e==null)i=n*rn,r.point(-ut,i),r.point(0,i),r.point(ut,i),r.point(ut,0),r.point(ut,-i),r.point(0,-i),r.point(-ut,-i),r.point(-ut,0),r.point(-ut,i);else if(gt(e[0]-t[0])>Ve){var a=e[0]<t[0]?ut:-ut;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(t[0],t[1])}function t9(e){var t=Ue(e),n=2*Xe,r=t>0,i=gt(t)>Ve;function a(d,m,p,g){KR(g,e,n,p,d,m)}function o(d,m){return Ue(d)*Ue(m)>t}function l(d){var m,p,g,y,x;return{lineStart:function(){y=g=!1,x=1},point:function(k,w){var C=[k,w],S,T=o(k,w),z=r?T?0:f(k,w):T?f(k+(k<0?ut:-ut),w):0;if(!m&&(y=g=T)&&d.lineStart(),T!==g&&(S=c(m,C),(!S||h_(m,S)||h_(C,S))&&(C[2]=1)),T!==g)x=0,T?(d.lineStart(),S=c(C,m),d.point(S[0],S[1])):(S=c(m,C),d.point(S[0],S[1],2),d.lineEnd()),m=S;else if(i&&m&&r^T){var A;!(z&p)&&(A=c(C,m,!0))&&(x=0,r?(d.lineStart(),d.point(A[0][0],A[0][1]),d.point(A[1][0],A[1][1]),d.lineEnd()):(d.point(A[1][0],A[1][1]),d.lineEnd(),d.lineStart(),d.point(A[0][0],A[0][1],3)))}T&&(!m||!h_(m,C))&&d.point(C[0],C[1]),m=C,g=T,p=z},lineEnd:function(){g&&d.lineEnd(),m=null},clean:function(){return x|(y&&g)<<1}}}function c(d,m,p){var g=Sl(d),y=Sl(m),x=[1,0,0],k=dc(g,y),w=pp(k,k),C=k[0],S=w-C*C;if(!S)return!p&&d;var T=t*w/S,z=-t*C/S,A=dc(x,k),L=_p(x,T),G=_p(k,z);Iv(L,G);var H=A,q=pp(L,H),V=pp(H,H),W=q*q-V*(pp(L,L)-1);if(!(W<0)){var I=Mn(W),B=_p(H,(-q-I)/V);if(Iv(B,L),B=X_(B),!p)return B;var D=d[0],j=m[0],N=d[1],F=m[1],Z;j<D&&(Z=D,D=j,j=Z);var O=j-D,U=gt(O-ut)<Ve,K=U||O<Ve;if(!U&&F<N&&(Z=N,N=F,F=Z),K?U?N+F>0^B[1]<(gt(B[0]-D)<Ve?N:F):N<=B[1]&&B[1]<=F:O>ut^(D<=B[0]&&B[0]<=j)){var $=_p(H,(-q+I)/V);return Iv($,L),[B,X_($)]}}}function f(d,m){var p=r?e:ut-e,g=0;return d<-p?g|=1:d>p&&(g|=2),m<-p?g|=4:m>p&&(g|=8),g}return e9(o,l,a,r?[0,-e]:[-ut,e-ut])}function pV(e,t,n,r,i,a){var o=e[0],l=e[1],c=t[0],f=t[1],d=0,m=1,p=c-o,g=f-l,y;if(y=n-o,!(!p&&y>0)){if(y/=p,p<0){if(y<d)return;y<m&&(m=y)}else if(p>0){if(y>m)return;y>d&&(d=y)}if(y=i-o,!(!p&&y<0)){if(y/=p,p<0){if(y>m)return;y>d&&(d=y)}else if(p>0){if(y<d)return;y<m&&(m=y)}if(y=r-l,!(!g&&y>0)){if(y/=g,g<0){if(y<d)return;y<m&&(m=y)}else if(g>0){if(y>m)return;y>d&&(d=y)}if(y=a-l,!(!g&&y<0)){if(y/=g,g<0){if(y>m)return;y>d&&(d=y)}else if(g>0){if(y<d)return;y<m&&(m=y)}return d>0&&(e[0]=o+d*p,e[1]=l+d*g),m<1&&(t[0]=o+m*p,t[1]=l+m*g),!0}}}}}var xh=1e9,yp=-xh;function l1(e,t,n,r){function i(f,d){return e<=f&&f<=n&&t<=d&&d<=r}function a(f,d,m,p){var g=0,y=0;if(f==null||(g=o(f,m))!==(y=o(d,m))||c(f,d)<0^m>0)do p.point(g===0||g===3?e:n,g>1?r:t);while((g=(g+m+4)%4)!==y);else p.point(d[0],d[1])}function o(f,d){return gt(f[0]-e)<Ve?d>0?0:3:gt(f[0]-n)<Ve?d>0?2:1:gt(f[1]-t)<Ve?d>0?1:0:d>0?3:2}function l(f,d){return c(f.x,d.x)}function c(f,d){var m=o(f,1),p=o(d,1);return m!==p?m-p:m===0?d[1]-f[1]:m===1?f[0]-d[0]:m===2?f[1]-d[1]:d[0]-f[0]}return function(f){var d=f,m=ZR(),p,g,y,x,k,w,C,S,T,z,A,L={point:G,lineStart:W,lineEnd:I,polygonStart:q,polygonEnd:V};function G(D,j){i(D,j)&&d.point(D,j)}function H(){for(var D=0,j=0,N=g.length;j<N;++j)for(var F=g[j],Z=1,O=F.length,U=F[0],K,$,ie=U[0],ue=U[1];Z<O;++Z)K=ie,$=ue,U=F[Z],ie=U[0],ue=U[1],$<=r?ue>r&&(ie-K)*(r-$)>(ue-$)*(e-K)&&++D:ue<=r&&(ie-K)*(r-$)<(ue-$)*(e-K)&&--D;return D}function q(){d=m,p=[],g=[],A=!0}function V(){var D=H(),j=A&&D,N=(p=m2(p)).length;(j||N)&&(f.polygonStart(),j&&(f.lineStart(),a(null,null,1,f),f.lineEnd()),N&&QR(p,l,D,a,f),f.polygonEnd()),d=f,p=g=y=null}function W(){L.point=B,g&&g.push(y=[]),z=!0,T=!1,C=S=NaN}function I(){p&&(B(x,k),w&&T&&m.rejoin(),p.push(m.result())),L.point=G,T&&d.lineEnd()}function B(D,j){var N=i(D,j);if(g&&y.push([D,j]),z)x=D,k=j,w=N,z=!1,N&&(d.lineStart(),d.point(D,j));else if(N&&T)d.point(D,j);else{var F=[C=Math.max(yp,Math.min(xh,C)),S=Math.max(yp,Math.min(xh,S))],Z=[D=Math.max(yp,Math.min(xh,D)),j=Math.max(yp,Math.min(xh,j))];pV(F,Z,e,t,n,r)?(T||(d.lineStart(),d.point(F[0],F[1])),d.point(Z[0],Z[1]),N||d.lineEnd(),A=!1):N&&(d.lineStart(),d.point(D,j),A=!1)}C=D,S=j,T=N}return L}}function _V(){var e=0,t=0,n=960,r=500,i,a,o;return o={stream:function(l){return i&&a===l?i:i=l1(e,t,n,r)(a=l)},extent:function(l){return arguments.length?(e=+l[0][0],t=+l[0][1],n=+l[1][0],r=+l[1][1],i=a=null,o):[[e,t],[n,r]]}}}var Px,Ux,d_,m_,mc={sphere:Qt,point:Qt,lineStart:gV,lineEnd:Qt,polygonStart:Qt,polygonEnd:Qt};function gV(){mc.point=vV,mc.lineEnd=yV}function yV(){mc.point=mc.lineEnd=Qt}function vV(e,t){e*=Xe,t*=Xe,Ux=e,d_=Oe(t),m_=Ue(t),mc.point=bV}function bV(e,t){e*=Xe,t*=Xe;var n=Oe(t),r=Ue(t),i=gt(e-Ux),a=Ue(i),o=Oe(i),l=r*o,c=m_*n-d_*r*a,f=d_*n+m_*r*a;Px.add(yr(Mn(l*l+c*c),f)),Ux=e,d_=n,m_=r}function n9(e){return Px=new Sn,$i(e,mc),+Px}var Bx=[null,null],xV={type:"LineString",coordinates:Bx};function ng(e,t){return Bx[0]=e,Bx[1]=t,n9(xV)}var M6={Feature:function(e,t){return rg(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)if(rg(n[r].geometry,t))return!0;return!1}},O6={Sphere:function(){return!0},Point:function(e,t){return D6(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(D6(n[r],t))return!0;return!1},LineString:function(e,t){return q6(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(q6(n[r],t))return!0;return!1},Polygon:function(e,t){return I6(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(I6(n[r],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)if(rg(n[r],t))return!0;return!1}};function rg(e,t){return e&&O6.hasOwnProperty(e.type)?O6[e.type](e,t):!1}function D6(e,t){return ng(e,t)===0}function q6(e,t){for(var n,r,i,a=0,o=e.length;a<o;a++){if(r=ng(e[a],t),r===0||a>0&&(i=ng(e[a],e[a-1]),i>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<rd*i))return!0;n=r}return!1}function I6(e,t){return!!JR(e.map(wV),r9(t))}function wV(e){return e=e.map(r9),e.pop(),e}function r9(e){return[e[0]*Xe,e[1]*Xe]}function kV(e,t){return(e&&M6.hasOwnProperty(e.type)?M6[e.type]:rg)(e,t)}function $6(e,t,n){var r=os(e,t-Ve,n).concat(t);return function(i){return r.map(function(a){return[i,a]})}}function P6(e,t,n){var r=os(e,t-Ve,n).concat(t);return function(i){return r.map(function(a){return[a,i]})}}function i9(){var e,t,n,r,i,a,o,l,c=10,f=c,d=90,m=360,p,g,y,x,k=2.5;function w(){return{type:"MultiLineString",coordinates:C()}}function C(){return os(mp(r/d)*d,n,d).map(y).concat(os(mp(l/m)*m,o,m).map(x)).concat(os(mp(t/c)*c,e,c).filter(function(S){return gt(S%d)>Ve}).map(p)).concat(os(mp(a/f)*f,i,f).filter(function(S){return gt(S%m)>Ve}).map(g))}return w.lines=function(){return C().map(function(S){return{type:"LineString",coordinates:S}})},w.outline=function(){return{type:"Polygon",coordinates:[y(r).concat(x(o).slice(1),y(n).reverse().slice(1),x(l).reverse().slice(1))]}},w.extent=function(S){return arguments.length?w.extentMajor(S).extentMinor(S):w.extentMinor()},w.extentMajor=function(S){return arguments.length?(r=+S[0][0],n=+S[1][0],l=+S[0][1],o=+S[1][1],r>n&&(S=r,r=n,n=S),l>o&&(S=l,l=o,o=S),w.precision(k)):[[r,l],[n,o]]},w.extentMinor=function(S){return arguments.length?(t=+S[0][0],e=+S[1][0],a=+S[0][1],i=+S[1][1],t>e&&(S=t,t=e,e=S),a>i&&(S=a,a=i,i=S),w.precision(k)):[[t,a],[e,i]]},w.step=function(S){return arguments.length?w.stepMajor(S).stepMinor(S):w.stepMinor()},w.stepMajor=function(S){return arguments.length?(d=+S[0],m=+S[1],w):[d,m]},w.stepMinor=function(S){return arguments.length?(c=+S[0],f=+S[1],w):[c,f]},w.precision=function(S){return arguments.length?(k=+S,p=$6(a,i,90),g=P6(t,e,k),y=$6(l,o,90),x=P6(r,n,k),w):k},w.extentMajor([[-180,-90+Ve],[180,90-Ve]]).extentMinor([[-180,-80-Ve],[180,80+Ve]])}function EV(){return i9()()}function SV(e,t){var n=e[0]*Xe,r=e[1]*Xe,i=t[0]*Xe,a=t[1]*Xe,o=Ue(r),l=Oe(r),c=Ue(a),f=Oe(a),d=o*Ue(n),m=o*Oe(n),p=c*Ue(i),g=c*Oe(i),y=2*vr(Mn(b6(a-r)+o*c*b6(i-n))),x=Oe(y),k=y?function(w){var C=Oe(w*=y)/x,S=Oe(y-w)/x,T=S*d+C*p,z=S*m+C*g,A=S*l+C*f;return[yr(z,T)*Dt,yr(A,Mn(T*T+z*z))*Dt]}:function(){return[n*Dt,r*Dt]};return k.distance=y,k}const id=e=>e;var Pv=new Sn,Gx=new Sn,a9,o9,Fx,Hx,to={point:Qt,lineStart:Qt,lineEnd:Qt,polygonStart:function(){to.lineStart=TV,to.lineEnd=AV},polygonEnd:function(){to.lineStart=to.lineEnd=to.point=Qt,Pv.add(gt(Gx)),Gx=new Sn},result:function(){var e=Pv/2;return Pv=new Sn,e}};function TV(){to.point=CV}function CV(e,t){to.point=s9,a9=Fx=e,o9=Hx=t}function s9(e,t){Gx.add(Hx*e-Fx*t),Fx=e,Hx=t}function AV(){s9(a9,o9)}var pc=1/0,ig=pc,ad=-pc,ag=ad,og={point:jV,lineStart:Qt,lineEnd:Qt,polygonStart:Qt,polygonEnd:Qt,result:function(){var e=[[pc,ig],[ad,ag]];return ad=ag=-(ig=pc=1/0),e}};function jV(e,t){e<pc&&(pc=e),e>ad&&(ad=e),t<ig&&(ig=t),t>ag&&(ag=t)}var Vx=0,Xx=0,wh=0,sg=0,lg=0,Zu=0,Yx=0,Wx=0,kh=0,l9,u9,fa,ha,yi={point:Tl,lineStart:U6,lineEnd:B6,polygonStart:function(){yi.lineStart=zV,yi.lineEnd=LV},polygonEnd:function(){yi.point=Tl,yi.lineStart=U6,yi.lineEnd=B6},result:function(){var e=kh?[Yx/kh,Wx/kh]:Zu?[sg/Zu,lg/Zu]:wh?[Vx/wh,Xx/wh]:[NaN,NaN];return Vx=Xx=wh=sg=lg=Zu=Yx=Wx=kh=0,e}};function Tl(e,t){Vx+=e,Xx+=t,++wh}function U6(){yi.point=RV}function RV(e,t){yi.point=NV,Tl(fa=e,ha=t)}function NV(e,t){var n=e-fa,r=t-ha,i=Mn(n*n+r*r);sg+=i*(fa+e)/2,lg+=i*(ha+t)/2,Zu+=i,Tl(fa=e,ha=t)}function B6(){yi.point=Tl}function zV(){yi.point=MV}function LV(){c9(l9,u9)}function MV(e,t){yi.point=c9,Tl(l9=fa=e,u9=ha=t)}function c9(e,t){var n=e-fa,r=t-ha,i=Mn(n*n+r*r);sg+=i*(fa+e)/2,lg+=i*(ha+t)/2,Zu+=i,i=ha*e-fa*t,Yx+=i*(fa+e),Wx+=i*(ha+t),kh+=i*3,Tl(fa=e,ha=t)}function f9(e){this._context=e}f9.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:{this._context.moveTo(e,t),this._point=1;break}case 1:{this._context.lineTo(e,t);break}default:{this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,gr);break}}},result:Qt};var Kx=new Sn,Uv,h9,d9,Eh,Sh,od={point:Qt,lineStart:function(){od.point=OV},lineEnd:function(){Uv&&m9(h9,d9),od.point=Qt},polygonStart:function(){Uv=!0},polygonEnd:function(){Uv=null},result:function(){var e=+Kx;return Kx=new Sn,e}};function OV(e,t){od.point=m9,h9=Eh=e,d9=Sh=t}function m9(e,t){Eh-=e,Sh-=t,Kx.add(Mn(Eh*Eh+Sh*Sh)),Eh=e,Sh=t}let G6,ug,F6,H6;class V6{constructor(t){this._append=t==null?p9:DV(t),this._radius=4.5,this._=""}pointRadius(t){return this._radius=+t,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+="Z"),this._point=NaN}point(t,n){switch(this._point){case 0:{this._append`M${t},${n}`,this._point=1;break}case 1:{this._append`L${t},${n}`;break}default:{if(this._append`M${t},${n}`,this._radius!==F6||this._append!==ug){const r=this._radius,i=this._;this._="",this._append`m0,${r}a${r},${r} 0 1,1 0,${-2*r}a${r},${r} 0 1,1 0,${2*r}z`,F6=r,ug=this._append,H6=this._,this._=i}this._+=H6;break}}}result(){const t=this._;return this._="",t.length?t:null}}function p9(e){let t=1;this._+=e[0];for(const n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function DV(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return p9;if(t!==G6){const n=10**t;G6=t,ug=function(i){let a=1;this._+=i[0];for(const o=i.length;a<o;++a)this._+=Math.round(arguments[a]*n)/n+i[a]}}return ug}function qV(e,t){let n=3,r=4.5,i,a;function o(l){return l&&(typeof r=="function"&&a.pointRadius(+r.apply(this,arguments)),$i(l,i(a))),a.result()}return o.area=function(l){return $i(l,i(to)),to.result()},o.measure=function(l){return $i(l,i(od)),od.result()},o.bounds=function(l){return $i(l,i(og)),og.result()},o.centroid=function(l){return $i(l,i(yi)),yi.result()},o.projection=function(l){return arguments.length?(i=l==null?(e=null,id):(e=l).stream,o):e},o.context=function(l){return arguments.length?(a=l==null?(t=null,new V6(n)):new f9(t=l),typeof r!="function"&&a.pointRadius(r),o):t},o.pointRadius=function(l){return arguments.length?(r=typeof l=="function"?l:(a.pointRadius(+l),+l),o):r},o.digits=function(l){if(!arguments.length)return n;if(l==null)n=null;else{const c=Math.floor(l);if(!(c>=0))throw new RangeError(`invalid digits: ${l}`);n=c}return t===null&&(a=new V6(n)),o},o.projection(e).digits(n).context(t)}function IV(e){return{stream:Cd(e)}}function Cd(e){return function(t){var n=new Zx;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Zx(){}Zx.prototype={constructor:Zx,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function U2(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),$i(n,e.stream(og)),t(og.result()),r!=null&&e.clipExtent(r),e}function u1(e,t,n){return U2(e,function(r){var i=t[1][0]-t[0][0],a=t[1][1]-t[0][1],o=Math.min(i/(r[1][0]-r[0][0]),a/(r[1][1]-r[0][1])),l=+t[0][0]+(i-o*(r[1][0]+r[0][0]))/2,c=+t[0][1]+(a-o*(r[1][1]+r[0][1]))/2;e.scale(150*o).translate([l,c])},n)}function B2(e,t,n){return u1(e,[[0,0],t],n)}function G2(e,t,n){return U2(e,function(r){var i=+t,a=i/(r[1][0]-r[0][0]),o=(i-a*(r[1][0]+r[0][0]))/2,l=-a*r[0][1];e.scale(150*a).translate([o,l])},n)}function F2(e,t,n){return U2(e,function(r){var i=+t,a=i/(r[1][1]-r[0][1]),o=-a*r[0][0],l=(i-a*(r[1][1]+r[0][1]))/2;e.scale(150*a).translate([o,l])},n)}var X6=16,$V=Ue(30*Xe);function Y6(e,t){return+t?UV(e,t):PV(e)}function PV(e){return Cd({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function UV(e,t){function n(r,i,a,o,l,c,f,d,m,p,g,y,x,k){var w=f-r,C=d-i,S=w*w+C*C;if(S>4*t&&x--){var T=o+p,z=l+g,A=c+y,L=Mn(T*T+z*z+A*A),G=vr(A/=L),H=gt(gt(A)-1)<Ve||gt(a-m)<Ve?(a+m)/2:yr(z,T),q=e(H,G),V=q[0],W=q[1],I=V-r,B=W-i,D=C*I-w*B;(D*D/S>t||gt((w*I+C*B)/S-.5)>.3||o*p+l*g+c*y<$V)&&(n(r,i,a,o,l,c,V,W,H,T/=L,z/=L,A,x,k),k.point(V,W),n(V,W,H,T,z,A,f,d,m,p,g,y,x,k))}}return function(r){var i,a,o,l,c,f,d,m,p,g,y,x,k={point:w,lineStart:C,lineEnd:T,polygonStart:function(){r.polygonStart(),k.lineStart=z},polygonEnd:function(){r.polygonEnd(),k.lineStart=C}};function w(G,H){G=e(G,H),r.point(G[0],G[1])}function C(){m=NaN,k.point=S,r.lineStart()}function S(G,H){var q=Sl([G,H]),V=e(G,H);n(m,p,d,g,y,x,m=V[0],p=V[1],d=G,g=q[0],y=q[1],x=q[2],X6,r),r.point(m,p)}function T(){k.point=w,r.lineEnd()}function z(){C(),k.point=A,k.lineEnd=L}function A(G,H){S(i=G,H),a=m,o=p,l=g,c=y,f=x,k.point=S}function L(){n(m,p,d,g,y,x,a,o,i,l,c,f,X6,r),k.lineEnd=T,T()}return k}}var BV=Cd({point:function(e,t){this.stream.point(e*Xe,t*Xe)}});function GV(e){return Cd({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function FV(e,t,n,r,i){function a(o,l){return o*=r,l*=i,[t+e*o,n-e*l]}return a.invert=function(o,l){return[(o-t)/e*r,(n-l)/e*i]},a}function W6(e,t,n,r,i,a){if(!a)return FV(e,t,n,r,i);var o=Ue(a),l=Oe(a),c=o*e,f=l*e,d=o/e,m=l/e,p=(l*n-o*t)/e,g=(l*t+o*n)/e;function y(x,k){return x*=r,k*=i,[c*x-f*k+t,n-f*x-c*k]}return y.invert=function(x,k){return[r*(d*x-m*k+p),i*(g-m*x-d*k)]},y}function wa(e){return H2(function(){return e})()}function H2(e){var t,n=150,r=480,i=250,a=0,o=0,l=0,c=0,f=0,d,m=0,p=1,g=1,y=null,x=$x,k=null,w,C,S,T=id,z=.5,A,L,G,H,q;function V(D){return G(D[0]*Xe,D[1]*Xe)}function W(D){return D=G.invert(D[0],D[1]),D&&[D[0]*Dt,D[1]*Dt]}V.stream=function(D){return H&&q===D?H:H=BV(GV(d)(x(A(T(q=D)))))},V.preclip=function(D){return arguments.length?(x=D,y=void 0,B()):x},V.postclip=function(D){return arguments.length?(T=D,k=w=C=S=null,B()):T},V.clipAngle=function(D){return arguments.length?(x=+D?t9(y=D*Xe):(y=null,$x),B()):y*Dt},V.clipExtent=function(D){return arguments.length?(T=D==null?(k=w=C=S=null,id):l1(k=+D[0][0],w=+D[0][1],C=+D[1][0],S=+D[1][1]),B()):k==null?null:[[k,w],[C,S]]},V.scale=function(D){return arguments.length?(n=+D,I()):n},V.translate=function(D){return arguments.length?(r=+D[0],i=+D[1],I()):[r,i]},V.center=function(D){return arguments.length?(a=D[0]%360*Xe,o=D[1]%360*Xe,I()):[a*Dt,o*Dt]},V.rotate=function(D){return arguments.length?(l=D[0]%360*Xe,c=D[1]%360*Xe,f=D.length>2?D[2]%360*Xe:0,I()):[l*Dt,c*Dt,f*Dt]},V.angle=function(D){return arguments.length?(m=D%360*Xe,I()):m*Dt},V.reflectX=function(D){return arguments.length?(p=D?-1:1,I()):p<0},V.reflectY=function(D){return arguments.length?(g=D?-1:1,I()):g<0},V.precision=function(D){return arguments.length?(A=Y6(L,z=D*D),B()):Mn(z)},V.fitExtent=function(D,j){return u1(V,D,j)},V.fitSize=function(D,j){return B2(V,D,j)},V.fitWidth=function(D,j){return G2(V,D,j)},V.fitHeight=function(D,j){return F2(V,D,j)};function I(){var D=W6(n,0,0,p,g,m).apply(null,t(a,o)),j=W6(n,r-D[0],i-D[1],p,g,m);return d=P2(l,c,f),L=qx(t,j),G=qx(d,L),A=Y6(L,z),B()}function B(){return H=q=null,V}return function(){return t=e.apply(this,arguments),V.invert=t.invert&&W,I()}}function V2(e){var t=0,n=ut/3,r=H2(e),i=r(t,n);return i.parallels=function(a){return arguments.length?r(t=a[0]*Xe,n=a[1]*Xe):[t*Dt,n*Dt]},i}function HV(e){var t=Ue(e);function n(r,i){return[r*t,Oe(i)/t]}return n.invert=function(r,i){return[r/t,vr(i*t)]},n}function _9(e,t){var n=Oe(e),r=(n+Oe(t))/2;if(gt(r)<Ve)return HV(e);var i=1+n*(2*r-n),a=Mn(i)/r;function o(l,c){var f=Mn(i-2*r*Oe(c))/r;return[f*Oe(l*=r),a-f*Ue(l)]}return o.invert=function(l,c){var f=a-c,d=yr(l,gt(f))*bi(f);return f*r<0&&(d-=ut*bi(l)*bi(f)),[d/r,vr((i-(l*l+f*f)*r*r)/(2*r))]},o}function cg(){return V2(_9).scale(155.424).center([0,33.6442])}function g9(){return cg().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function VV(e){var t=e.length;return{point:function(n,r){for(var i=-1;++i<t;)e[i].point(n,r)},sphere:function(){for(var n=-1;++n<t;)e[n].sphere()},lineStart:function(){for(var n=-1;++n<t;)e[n].lineStart()},lineEnd:function(){for(var n=-1;++n<t;)e[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<t;)e[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<t;)e[n].polygonEnd()}}}function XV(){var e,t,n=g9(),r,i=cg().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a,o=cg().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l,c,f={point:function(p,g){c=[p,g]}};function d(p){var g=p[0],y=p[1];return c=null,r.point(g,y),c||(a.point(g,y),c)||(l.point(g,y),c)}d.invert=function(p){var g=n.scale(),y=n.translate(),x=(p[0]-y[0])/g,k=(p[1]-y[1])/g;return(k>=.12&&k<.234&&x>=-.425&&x<-.214?i:k>=.166&&k<.234&&x>=-.214&&x<-.115?o:n).invert(p)},d.stream=function(p){return e&&t===p?e:e=VV([n.stream(t=p),i.stream(p),o.stream(p)])},d.precision=function(p){return arguments.length?(n.precision(p),i.precision(p),o.precision(p),m()):n.precision()},d.scale=function(p){return arguments.length?(n.scale(p),i.scale(p*.35),o.scale(p),d.translate(n.translate())):n.scale()},d.translate=function(p){if(!arguments.length)return n.translate();var g=n.scale(),y=+p[0],x=+p[1];return r=n.translate(p).clipExtent([[y-.455*g,x-.238*g],[y+.455*g,x+.238*g]]).stream(f),a=i.translate([y-.307*g,x+.201*g]).clipExtent([[y-.425*g+Ve,x+.12*g+Ve],[y-.214*g-Ve,x+.234*g-Ve]]).stream(f),l=o.translate([y-.205*g,x+.212*g]).clipExtent([[y-.214*g+Ve,x+.166*g+Ve],[y-.115*g-Ve,x+.234*g-Ve]]).stream(f),m()},d.fitExtent=function(p,g){return u1(d,p,g)},d.fitSize=function(p,g){return B2(d,p,g)},d.fitWidth=function(p,g){return G2(d,p,g)},d.fitHeight=function(p,g){return F2(d,p,g)};function m(){return e=t=null,d}return d.scale(1070)}function y9(e){return function(t,n){var r=Ue(t),i=Ue(n),a=e(r*i);return a===1/0?[2,0]:[a*i*Oe(t),a*Oe(n)]}}function Ad(e){return function(t,n){var r=Mn(t*t+n*n),i=e(r),a=Oe(i),o=Ue(i);return[yr(t*a,r*o),vr(r&&n*a/r)]}}var X2=y9(function(e){return Mn(2/(1+e))});X2.invert=Ad(function(e){return 2*vr(e/2)});function YV(){return wa(X2).scale(124.75).clipAngle(180-.001)}var Y2=y9(function(e){return(e=IR(e))&&e/Oe(e)});Y2.invert=Ad(function(e){return e});function WV(){return wa(Y2).scale(79.4188).clipAngle(180-.001)}function jd(e,t){return[e,G_(I2((rn+t)/2))]}jd.invert=function(e,t){return[e,2*qc(qR(t))-rn]};function KV(){return v9(jd).scale(961/gr)}function v9(e){var t=wa(e),n=t.center,r=t.scale,i=t.translate,a=t.clipExtent,o=null,l,c,f;t.scale=function(m){return arguments.length?(r(m),d()):r()},t.translate=function(m){return arguments.length?(i(m),d()):i()},t.center=function(m){return arguments.length?(n(m),d()):n()},t.clipExtent=function(m){return arguments.length?(m==null?o=l=c=f=null:(o=+m[0][0],l=+m[0][1],c=+m[1][0],f=+m[1][1]),d()):o==null?null:[[o,l],[c,f]]};function d(){var m=ut*r(),p=t(WR(t.rotate()).invert([0,0]));return a(o==null?[[p[0]-m,p[1]-m],[p[0]+m,p[1]+m]]:e===jd?[[Math.max(p[0]-m,o),l],[Math.min(p[0]+m,c),f]]:[[o,Math.max(p[1]-m,l)],[c,Math.min(p[1]+m,f)]])}return d()}function vp(e){return I2((rn+e)/2)}function b9(e,t){var n=Ue(e),r=e===t?Oe(e):G_(n/Ue(t))/G_(vp(t)/vp(e)),i=n*qv(vp(e),r)/r;if(!r)return jd;function a(o,l){i>0?l<-rn+Ve&&(l=-rn+Ve):l>rn-Ve&&(l=rn-Ve);var c=i/qv(vp(l),r);return[c*Oe(r*o),i-c*Ue(r*o)]}return a.invert=function(o,l){var c=i-l,f=bi(r)*Mn(o*o+c*c),d=yr(o,gt(c))*bi(c);return c*r<0&&(d-=ut*bi(o)*bi(c)),[d/r,2*qc(qv(i/f,1/r))-rn]},a}function ZV(){return V2(b9).scale(109.5).parallels([30,30])}function sd(e,t){return[e,t]}sd.invert=sd;function QV(){return wa(sd).scale(152.63)}function x9(e,t){var n=Ue(e),r=e===t?Oe(e):(n-Ue(t))/(t-e),i=n/r+e;if(gt(r)<Ve)return sd;function a(o,l){var c=i-l,f=r*o;return[c*Oe(f),i-c*Ue(f)]}return a.invert=function(o,l){var c=i-l,f=yr(o,gt(c))*bi(c);return c*r<0&&(f-=ut*bi(o)*bi(c)),[f/r,i-bi(r)*Mn(o*o+c*c)]},a}function JV(){return V2(x9).scale(131.154).center([0,13.9389])}var Lh=1.340264,Mh=-.081106,Oh=893e-6,Dh=.003796,fg=Mn(3)/2,eX=12;function W2(e,t){var n=vr(fg*Oe(t)),r=n*n,i=r*r*r;return[e*Ue(n)/(fg*(Lh+3*Mh*r+i*(7*Oh+9*Dh*r))),n*(Lh+Mh*r+i*(Oh+Dh*r))]}W2.invert=function(e,t){for(var n=t,r=n*n,i=r*r*r,a=0,o,l,c;a<eX&&(l=n*(Lh+Mh*r+i*(Oh+Dh*r))-t,c=Lh+3*Mh*r+i*(7*Oh+9*Dh*r),n-=o=l/c,r=n*n,i=r*r*r,!(gt(o)<rd));++a);return[fg*e*(Lh+3*Mh*r+i*(7*Oh+9*Dh*r))/Ue(n),vr(Oe(n)/fg)]};function tX(){return wa(W2).scale(177.158)}function K2(e,t){var n=Ue(t),r=Ue(e)*n;return[n*Oe(e)/r,Oe(t)/r]}K2.invert=Ad(qc);function nX(){return wa(K2).scale(144.049).clipAngle(60)}function rX(){var e=1,t=0,n=0,r=1,i=1,a=0,o,l,c=null,f,d,m,p=1,g=1,y=Cd({point:function(T,z){var A=S([T,z]);this.stream.point(A[0],A[1])}}),x=id,k,w;function C(){return p=e*r,g=e*i,k=w=null,S}function S(T){var z=T[0]*p,A=T[1]*g;if(a){var L=A*o-z*l;z=z*o+A*l,A=L}return[z+t,A+n]}return S.invert=function(T){var z=T[0]-t,A=T[1]-n;if(a){var L=A*o+z*l;z=z*o-A*l,A=L}return[z/p,A/g]},S.stream=function(T){return k&&w===T?k:k=y(x(w=T))},S.postclip=function(T){return arguments.length?(x=T,c=f=d=m=null,C()):x},S.clipExtent=function(T){return arguments.length?(x=T==null?(c=f=d=m=null,id):l1(c=+T[0][0],f=+T[0][1],d=+T[1][0],m=+T[1][1]),C()):c==null?null:[[c,f],[d,m]]},S.scale=function(T){return arguments.length?(e=+T,C()):e},S.translate=function(T){return arguments.length?(t=+T[0],n=+T[1],C()):[t,n]},S.angle=function(T){return arguments.length?(a=T%360*Xe,l=Oe(a),o=Ue(a),C()):a*Dt},S.reflectX=function(T){return arguments.length?(r=T?-1:1,C()):r<0},S.reflectY=function(T){return arguments.length?(i=T?-1:1,C()):i<0},S.fitExtent=function(T,z){return u1(S,T,z)},S.fitSize=function(T,z){return B2(S,T,z)},S.fitWidth=function(T,z){return G2(S,T,z)},S.fitHeight=function(T,z){return F2(S,T,z)},S}function Z2(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(-.013791+r*(.003971*n-.001529*r))),t*(1.007226+n*(.015085+r*(-.044475+.028874*n-.005916*r)))]}Z2.invert=function(e,t){var n=t,r=25,i;do{var a=n*n,o=a*a;n-=i=(n*(1.007226+a*(.015085+o*(-.044475+.028874*a-.005916*o)))-t)/(1.007226+a*(.015085*3+o*(-.044475*7+.028874*9*a-.005916*11*o)))}while(gt(i)>Ve&&--r>0);return[e/(.8707+(a=n*n)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),n]};function iX(){return wa(Z2).scale(175.295)}function Q2(e,t){return[Ue(t)*Oe(e),Oe(t)]}Q2.invert=Ad(vr);function aX(){return wa(Q2).scale(249.5).clipAngle(90+Ve)}function J2(e,t){var n=Ue(t),r=1+Ue(e)*n;return[n*Oe(e)/r,Oe(t)/r]}J2.invert=Ad(function(e){return 2*qc(e)});function oX(){return wa(J2).scale(250).clipAngle(142)}function ek(e,t){return[G_(I2((rn+t)/2)),-e]}ek.invert=function(e,t){return[-t,2*qc(qR(e))-rn]};function sX(){var e=v9(ek),t=e.center,n=e.rotate;return e.center=function(r){return arguments.length?t([-r[1],r[0]]):(r=t(),[r[1],-r[0]])},e.rotate=function(r){return arguments.length?n([r[0],r[1],r.length>2?r[2]+90:90]):(r=n(),[r[0],r[1],r[2]-90])},n([0,0,90]).scale(159.155)}function lX(e,t){return e.parent===t.parent?1:2}function uX(e){return e.reduce(cX,0)/e.length}function cX(e,t){return e+t.x}function fX(e){return 1+e.reduce(hX,0)}function hX(e,t){return Math.max(e,t.y)}function dX(e){for(var t;t=e.children;)e=t[0];return e}function mX(e){for(var t;t=e.children;)e=t[t.length-1];return e}function pX(){var e=lX,t=1,n=1,r=!1;function i(a){var o,l=0;a.eachAfter(function(p){var g=p.children;g?(p.x=uX(g),p.y=fX(g)):(p.x=o?l+=e(p,o):0,p.y=0,o=p)});var c=dX(a),f=mX(a),d=c.x-e(c,f)/2,m=f.x+e(f,c)/2;return a.eachAfter(r?function(p){p.x=(p.x-a.x)*t,p.y=(a.y-p.y)*n}:function(p){p.x=(p.x-d)/(m-d)*t,p.y=(1-(a.y?p.y/a.y:1))*n})}return i.separation=function(a){return arguments.length?(e=a,i):e},i.size=function(a){return arguments.length?(r=!1,t=+a[0],n=+a[1],i):r?null:[t,n]},i.nodeSize=function(a){return arguments.length?(r=!0,t=+a[0],n=+a[1],i):r?[t,n]:null},i}function _X(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function gX(){return this.eachAfter(_X)}function yX(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}function vX(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function bX(e,t){for(var n=this,r=[n],i=[],a,o,l,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,l=a.length;o<l;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++c,this);return this}function xX(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r}function wX(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function kX(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function EX(e){for(var t=this,n=SX(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function SX(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function TX(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function CX(){return Array.from(this)}function AX(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function jX(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*RX(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function c1(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=LX)):t===void 0&&(t=zX);for(var n=new Cl(e),r,i=[n],a,o,l,c;r=i.pop();)if((o=t(r.data))&&(c=(o=Array.from(o)).length))for(r.children=o,l=c-1;l>=0;--l)i.push(a=o[l]=new Cl(o[l])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(w9)}function NX(){return c1(this).eachBefore(MX)}function zX(e){return e.children}function LX(e){return Array.isArray(e)?e[1]:null}function MX(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function w9(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Cl(e){this.data=e,this.depth=this.height=0,this.parent=null}Cl.prototype=c1.prototype={constructor:Cl,count:gX,each:yX,eachAfter:bX,eachBefore:vX,find:xX,sum:wX,sort:kX,path:EX,ancestors:TX,descendants:CX,leaves:AX,links:jX,copy:NX,[Symbol.iterator]:RX};function p_(e){return e==null?null:k9(e)}function k9(e){if(typeof e!="function")throw new Error;return e}function ol(){return 0}function Hu(e){return function(){return e}}const OX=1664525,DX=1013904223,K6=4294967296;function tk(){let e=1;return()=>(e=(OX*e+DX)%K6)/K6}function qX(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function IX(e,t){let n=e.length,r,i;for(;n;)i=t()*n--|0,r=e[n],e[n]=e[i],e[i]=r;return e}function $X(e){return E9(e,tk())}function E9(e,t){for(var n=0,r=(e=IX(Array.from(e),t)).length,i=[],a,o;n<r;)a=e[n],o&&S9(o,a)?++n:(o=UX(i=PX(i,a)),n=0);return o}function PX(e,t){var n,r;if(Bv(t,e))return[t];for(n=0;n<e.length;++n)if(bp(t,e[n])&&Bv(Th(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(bp(Th(e[n],e[r]),t)&&bp(Th(e[n],t),e[r])&&bp(Th(e[r],t),e[n])&&Bv(T9(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function bp(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function S9(e,t){var n=e.r-t.r+Math.max(e.r,t.r,1)*1e-9,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function Bv(e,t){for(var n=0;n<t.length;++n)if(!S9(e,t[n]))return!1;return!0}function UX(e){switch(e.length){case 1:return BX(e[0]);case 2:return Th(e[0],e[1]);case 3:return T9(e[0],e[1],e[2])}}function BX(e){return{x:e.x,y:e.y,r:e.r}}function Th(e,t){var n=e.x,r=e.y,i=e.r,a=t.x,o=t.y,l=t.r,c=a-n,f=o-r,d=l-i,m=Math.sqrt(c*c+f*f);return{x:(n+a+c/m*d)/2,y:(r+o+f/m*d)/2,r:(m+i+l)/2}}function T9(e,t,n){var r=e.x,i=e.y,a=e.r,o=t.x,l=t.y,c=t.r,f=n.x,d=n.y,m=n.r,p=r-o,g=r-f,y=i-l,x=i-d,k=c-a,w=m-a,C=r*r+i*i-a*a,S=C-o*o-l*l+c*c,T=C-f*f-d*d+m*m,z=g*y-p*x,A=(y*T-x*S)/(z*2)-r,L=(x*k-y*w)/z,G=(g*S-p*T)/(z*2)-i,H=(p*w-g*k)/z,q=L*L+H*H-1,V=2*(a+A*L+G*H),W=A*A+G*G-a*a,I=-(Math.abs(q)>1e-6?(V+Math.sqrt(V*V-4*q*W))/(2*q):W/V);return{x:r+A+L*I,y:i+G+H*I,r:I}}function Z6(e,t,n){var r=e.x-t.x,i,a,o=e.y-t.y,l,c,f=r*r+o*o;f?(a=t.r+n.r,a*=a,c=e.r+n.r,c*=c,a>c?(i=(f+c-a)/(2*f),l=Math.sqrt(Math.max(0,c/f-i*i)),n.x=e.x-i*r-l*o,n.y=e.y-i*o+l*r):(i=(f+a-c)/(2*f),l=Math.sqrt(Math.max(0,a/f-i*i)),n.x=t.x+i*r-l*o,n.y=t.y+i*o+l*r)):(n.x=t.x+n.r,n.y=t.y)}function Q6(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function J6(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,a=(t.y*n.r+n.y*t.r)/r;return i*i+a*a}function xp(e){this._=e,this.next=null,this.previous=null}function C9(e,t){if(!(a=(e=qX(e)).length))return 0;var n,r,i,a,o,l,c,f,d,m,p;if(n=e[0],n.x=0,n.y=0,!(a>1))return n.r;if(r=e[1],n.x=-r.r,r.x=n.r,r.y=0,!(a>2))return n.r+r.r;Z6(r,n,i=e[2]),n=new xp(n),r=new xp(r),i=new xp(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;e:for(c=3;c<a;++c){Z6(n._,r._,i=e[c]),i=new xp(i),f=r.next,d=n.previous,m=r._.r,p=n._.r;do if(m<=p){if(Q6(f._,i._)){r=f,n.next=r,r.previous=n,--c;continue e}m+=f._.r,f=f.next}else{if(Q6(d._,i._)){n=d,n.next=r,r.previous=n,--c;continue e}p+=d._.r,d=d.previous}while(f!==d.next);for(i.previous=n,i.next=r,n.next=r.previous=r=i,o=J6(n);(i=i.next)!==r;)(l=J6(i))<o&&(n=i,o=l);r=n.next}for(n=[r._],i=r;(i=i.next)!==r;)n.push(i._);for(i=E9(n,t),c=0;c<a;++c)n=e[c],n.x-=i.x,n.y-=i.y;return i.r}function GX(e){return C9(e,tk()),e}function FX(e){return Math.sqrt(e.value)}function HX(){var e=null,t=1,n=1,r=ol;function i(a){const o=tk();return a.x=t/2,a.y=n/2,e?a.eachBefore(eC(e)).eachAfter(Gv(r,.5,o)).eachBefore(tC(1)):a.eachBefore(eC(FX)).eachAfter(Gv(ol,1,o)).eachAfter(Gv(r,a.r/Math.min(t,n),o)).eachBefore(tC(Math.min(t,n)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=p_(a),i):e},i.size=function(a){return arguments.length?(t=+a[0],n=+a[1],i):[t,n]},i.padding=function(a){return arguments.length?(r=typeof a=="function"?a:Hu(+a),i):r},i}function eC(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Gv(e,t,n){return function(r){if(i=r.children){var i,a,o=i.length,l=e(r)*t||0,c;if(l)for(a=0;a<o;++a)i[a].r+=l;if(c=C9(i,n),l)for(a=0;a<o;++a)i[a].r-=l;r.r=c+l}}}function tC(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function A9(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Rd(e,t,n,r,i){for(var a=e.children,o,l=-1,c=a.length,f=e.value&&(r-t)/e.value;++l<c;)o=a[l],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*f}function j9(){var e=1,t=1,n=0,r=!1;function i(o){var l=o.height+1;return o.x0=o.y0=n,o.x1=e,o.y1=t/l,o.eachBefore(a(t,l)),r&&o.eachBefore(A9),o}function a(o,l){return function(c){c.children&&Rd(c,c.x0,o*(c.depth+1)/l,c.x1,o*(c.depth+2)/l);var f=c.x0,d=c.y0,m=c.x1-n,p=c.y1-n;m<f&&(f=m=(f+m)/2),p<d&&(d=p=(d+p)/2),c.x0=f,c.y0=d,c.x1=m,c.y1=p}}return i.round=function(o){return arguments.length?(r=!!o,i):r},i.size=function(o){return arguments.length?(e=+o[0],t=+o[1],i):[e,t]},i.padding=function(o){return arguments.length?(n=+o,i):n},i}var VX={depth:-1},nC={},Fv={};function XX(e){return e.id}function YX(e){return e.parentId}function WX(){var e=XX,t=YX,n;function r(i){var a=Array.from(i),o=e,l=t,c,f,d,m,p,g,y,x,k=new Map;if(n!=null){const w=a.map((T,z)=>KX(n(T,z,i))),C=w.map(rC),S=new Set(w).add("");for(const T of C)S.has(T)||(S.add(T),w.push(T),C.push(rC(T)),a.push(Fv));o=(T,z)=>w[z],l=(T,z)=>C[z]}for(d=0,c=a.length;d<c;++d)f=a[d],g=a[d]=new Cl(f),(y=o(f,d,i))!=null&&(y+="")&&(x=g.id=y,k.set(x,k.has(x)?nC:g)),(y=l(f,d,i))!=null&&(y+="")&&(g.parent=y);for(d=0;d<c;++d)if(g=a[d],y=g.parent){if(p=k.get(y),!p)throw new Error("missing: "+y);if(p===nC)throw new Error("ambiguous: "+y);p.children?p.children.push(g):p.children=[g],g.parent=p}else{if(m)throw new Error("multiple roots");m=g}if(!m)throw new Error("no root");if(n!=null){for(;m.data===Fv&&m.children.length===1;)m=m.children[0],--c;for(let w=a.length-1;w>=0&&(g=a[w],g.data===Fv);--w)g.data=null}if(m.parent=VX,m.eachBefore(function(w){w.depth=w.parent.depth+1,--c}).eachBefore(w9),m.parent=null,c>0)throw new Error("cycle");return m}return r.id=function(i){return arguments.length?(e=p_(i),r):e},r.parentId=function(i){return arguments.length?(t=p_(i),r):t},r.path=function(i){return arguments.length?(n=p_(i),r):n},r}function KX(e){e=`${e}`;let t=e.length;return Qx(e,t-1)&&!Qx(e,t-2)&&(e=e.slice(0,-1)),e[0]==="/"?e:`/${e}`}function rC(e){let t=e.length;if(t<2)return"";for(;--t>1&&!Qx(e,t););return e.slice(0,t)}function Qx(e,t){if(e[t]==="/"){let n=0;for(;t>0&&e[--t]==="\\";)++n;if((n&1)===0)return!0}return!1}function ZX(e,t){return e.parent===t.parent?1:2}function Hv(e){var t=e.children;return t?t[0]:e.t}function Vv(e){var t=e.children;return t?t[t.length-1]:e.t}function QX(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function JX(e){for(var t=0,n=0,r=e.children,i=r.length,a;--i>=0;)a=r[i],a.z+=t,a.m+=t,t+=a.s+(n+=a.c)}function eY(e,t,n){return e.a.parent===t.parent?e.a:n}function __(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}__.prototype=Object.create(Cl.prototype);function tY(e){for(var t=new __(e,0),n,r=[t],i,a,o,l;n=r.pop();)if(a=n._.children)for(n.children=new Array(l=a.length),o=l-1;o>=0;--o)r.push(i=n.children[o]=new __(a[o],o)),i.parent=n;return(t.parent=new __(null,0)).children=[t],t}function R9(){var e=ZX,t=1,n=1,r=null;function i(f){var d=tY(f);if(d.eachAfter(a),d.parent.m=-d.z,d.eachBefore(o),r)f.eachBefore(c);else{var m=f,p=f,g=f;f.eachBefore(function(C){C.x<m.x&&(m=C),C.x>p.x&&(p=C),C.depth>g.depth&&(g=C)});var y=m===p?1:e(m,p)/2,x=y-m.x,k=t/(p.x+y+x),w=n/(g.depth||1);f.eachBefore(function(C){C.x=(C.x+x)*k,C.y=C.depth*w})}return f}function a(f){var d=f.children,m=f.parent.children,p=f.i?m[f.i-1]:null;if(d){JX(f);var g=(d[0].z+d[d.length-1].z)/2;p?(f.z=p.z+e(f._,p._),f.m=f.z-g):f.z=g}else p&&(f.z=p.z+e(f._,p._));f.parent.A=l(f,p,f.parent.A||m[0])}function o(f){f._.x=f.z+f.parent.m,f.m+=f.parent.m}function l(f,d,m){if(d){for(var p=f,g=f,y=d,x=p.parent.children[0],k=p.m,w=g.m,C=y.m,S=x.m,T;y=Vv(y),p=Hv(p),y&&p;)x=Hv(x),g=Vv(g),g.a=f,T=y.z+C-p.z-k+e(y._,p._),T>0&&(QX(eY(y,f,m),f,T),k+=T,w+=T),C+=y.m,k+=p.m,S+=x.m,w+=g.m;y&&!Vv(g)&&(g.t=y,g.m+=C-w),p&&!Hv(x)&&(x.t=p,x.m+=k-S,m=f)}return m}function c(f){f.x*=t,f.y=f.depth*n}return i.separation=function(f){return arguments.length?(e=f,i):e},i.size=function(f){return arguments.length?(r=!1,t=+f[0],n=+f[1],i):r?null:[t,n]},i.nodeSize=function(f){return arguments.length?(r=!0,t=+f[0],n=+f[1],i):r?[t,n]:null},i}function f1(e,t,n,r,i){for(var a=e.children,o,l=-1,c=a.length,f=e.value&&(i-n)/e.value;++l<c;)o=a[l],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*f}var N9=(1+Math.sqrt(5))/2;function z9(e,t,n,r,i,a){for(var o=[],l=t.children,c,f,d=0,m=0,p=l.length,g,y,x=t.value,k,w,C,S,T,z,A;d<p;){g=i-n,y=a-r;do k=l[m++].value;while(!k&&m<p);for(w=C=k,z=Math.max(y/g,g/y)/(x*e),A=k*k*z,T=Math.max(C/A,A/w);m<p;++m){if(k+=f=l[m].value,f<w&&(w=f),f>C&&(C=f),A=k*k*z,S=Math.max(C/A,A/w),S>T){k-=f;break}T=S}o.push(c={value:k,dice:g<y,children:l.slice(d,m)}),c.dice?Rd(c,n,r,i,x?r+=y*k/x:a):f1(c,n,r,x?n+=g*k/x:i,a),x-=k,d=m}return o}const L9=(function e(t){function n(r,i,a,o,l){z9(t,r,i,a,o,l)}return n.ratio=function(r){return e((r=+r)>1?r:1)},n})(N9);function nY(){var e=L9,t=!1,n=1,r=1,i=[0],a=ol,o=ol,l=ol,c=ol,f=ol;function d(p){return p.x0=p.y0=0,p.x1=n,p.y1=r,p.eachBefore(m),i=[0],t&&p.eachBefore(A9),p}function m(p){var g=i[p.depth],y=p.x0+g,x=p.y0+g,k=p.x1-g,w=p.y1-g;k<y&&(y=k=(y+k)/2),w<x&&(x=w=(x+w)/2),p.x0=y,p.y0=x,p.x1=k,p.y1=w,p.children&&(g=i[p.depth+1]=a(p)/2,y+=f(p)-g,x+=o(p)-g,k-=l(p)-g,w-=c(p)-g,k<y&&(y=k=(y+k)/2),w<x&&(x=w=(x+w)/2),e(p,y,x,k,w))}return d.round=function(p){return arguments.length?(t=!!p,d):t},d.size=function(p){return arguments.length?(n=+p[0],r=+p[1],d):[n,r]},d.tile=function(p){return arguments.length?(e=k9(p),d):e},d.padding=function(p){return arguments.length?d.paddingInner(p).paddingOuter(p):d.paddingInner()},d.paddingInner=function(p){return arguments.length?(a=typeof p=="function"?p:Hu(+p),d):a},d.paddingOuter=function(p){return arguments.length?d.paddingTop(p).paddingRight(p).paddingBottom(p).paddingLeft(p):d.paddingTop()},d.paddingTop=function(p){return arguments.length?(o=typeof p=="function"?p:Hu(+p),d):o},d.paddingRight=function(p){return arguments.length?(l=typeof p=="function"?p:Hu(+p),d):l},d.paddingBottom=function(p){return arguments.length?(c=typeof p=="function"?p:Hu(+p),d):c},d.paddingLeft=function(p){return arguments.length?(f=typeof p=="function"?p:Hu(+p),d):f},d}function rY(e,t,n,r,i){var a=e.children,o,l=a.length,c,f=new Array(l+1);for(f[0]=c=o=0;o<l;++o)f[o+1]=c+=a[o].value;d(0,l,e.value,t,n,r,i);function d(m,p,g,y,x,k,w){if(m>=p-1){var C=a[m];C.x0=y,C.y0=x,C.x1=k,C.y1=w;return}for(var S=f[m],T=g/2+S,z=m+1,A=p-1;z<A;){var L=z+A>>>1;f[L]<T?z=L+1:A=L}T-f[z-1]<f[z]-T&&m+1<z&&--z;var G=f[z]-S,H=g-G;if(k-y>w-x){var q=g?(y*H+k*G)/g:k;d(m,z,G,y,x,q,w),d(z,p,H,q,x,k,w)}else{var V=g?(x*H+w*G)/g:w;d(m,z,G,y,x,k,V),d(z,p,H,y,V,k,w)}}}function iY(e,t,n,r,i){(e.depth&1?f1:Rd)(e,t,n,r,i)}const aY=(function e(t){function n(r,i,a,o,l){if((c=r._squarify)&&c.ratio===t)for(var c,f,d,m,p=-1,g,y=c.length,x=r.value;++p<y;){for(f=c[p],d=f.children,m=f.value=0,g=d.length;m<g;++m)f.value+=d[m].value;f.dice?Rd(f,i,a,o,x?a+=(l-a)*f.value/x:l):f1(f,i,a,x?i+=(o-i)*f.value/x:o,l),x-=f.value}else r._squarify=c=z9(t,r,i,a,o,l),c.ratio=t}return n.ratio=function(r){return e((r=+r)>1?r:1)},n})(N9);function oY(e){for(var t=-1,n=e.length,r,i=e[n-1],a=0;++t<n;)r=i,i=e[t],a+=r[1]*i[0]-r[0]*i[1];return a/2}function sY(e){for(var t=-1,n=e.length,r=0,i=0,a,o=e[n-1],l,c=0;++t<n;)a=o,o=e[t],c+=l=a[0]*o[1]-o[0]*a[1],r+=(a[0]+o[0])*l,i+=(a[1]+o[1])*l;return c*=3,[r/c,i/c]}function lY(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function uY(e,t){return e[0]-t[0]||e[1]-t[1]}function iC(e){const t=e.length,n=[0,1];let r=2,i;for(i=2;i<t;++i){for(;r>1&&lY(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function cY(e){if((n=e.length)<3)return null;var t,n,r=new Array(n),i=new Array(n);for(t=0;t<n;++t)r[t]=[+e[t][0],+e[t][1],t];for(r.sort(uY),t=0;t<n;++t)i[t]=[r[t][0],-r[t][1]];var a=iC(r),o=iC(i),l=o[0]===a[0],c=o[o.length-1]===a[a.length-1],f=[];for(t=a.length-1;t>=0;--t)f.push(e[r[a[t]][2]]);for(t=+l;t<o.length-c;++t)f.push(e[r[o[t]][2]]);return f}function fY(e,t){for(var n=e.length,r=e[n-1],i=t[0],a=t[1],o=r[0],l=r[1],c,f,d=!1,m=0;m<n;++m)r=e[m],c=r[0],f=r[1],f>a!=l>a&&i<(o-c)*(a-f)/(l-f)+c&&(d=!d),o=c,l=f;return d}function hY(e){for(var t=-1,n=e.length,r=e[n-1],i,a,o=r[0],l=r[1],c=0;++t<n;)i=o,a=l,r=e[t],o=r[0],l=r[1],i-=o,a-=l,c+=Math.hypot(i,a);return c}const Fn=Math.random,dY=(function e(t){function n(r,i){return r=r==null?0:+r,i=i==null?1:+i,arguments.length===1?(i=r,r=0):i-=r,function(){return t()*i+r}}return n.source=e,n})(Fn),mY=(function e(t){function n(r,i){return arguments.length<2&&(i=r,r=0),r=Math.floor(r),i=Math.floor(i)-r,function(){return Math.floor(t()*i+r)}}return n.source=e,n})(Fn),nk=(function e(t){function n(r,i){var a,o;return r=r==null?0:+r,i=i==null?1:+i,function(){var l;if(a!=null)l=a,a=null;else do a=t()*2-1,l=t()*2-1,o=a*a+l*l;while(!o||o>1);return r+i*l*Math.sqrt(-2*Math.log(o)/o)}}return n.source=e,n})(Fn),pY=(function e(t){var n=nk.source(t);function r(){var i=n.apply(this,arguments);return function(){return Math.exp(i())}}return r.source=e,r})(Fn),M9=(function e(t){function n(r){return(r=+r)<=0?()=>0:function(){for(var i=0,a=r;a>1;--a)i+=t();return i+a*t()}}return n.source=e,n})(Fn),_Y=(function e(t){var n=M9.source(t);function r(i){if((i=+i)==0)return t;var a=n(i);return function(){return a()/i}}return r.source=e,r})(Fn),gY=(function e(t){function n(r){return function(){return-Math.log1p(-t())/r}}return n.source=e,n})(Fn),yY=(function e(t){function n(r){if((r=+r)<0)throw new RangeError("invalid alpha");return r=1/-r,function(){return Math.pow(1-t(),r)}}return n.source=e,n})(Fn),vY=(function e(t){function n(r){if((r=+r)<0||r>1)throw new RangeError("invalid p");return function(){return Math.floor(t()+r)}}return n.source=e,n})(Fn),O9=(function e(t){function n(r){if((r=+r)<0||r>1)throw new RangeError("invalid p");return r===0?()=>1/0:r===1?()=>1:(r=Math.log1p(-r),function(){return 1+Math.floor(Math.log1p(-t())/r)})}return n.source=e,n})(Fn),rk=(function e(t){var n=nk.source(t)();function r(i,a){if((i=+i)<0)throw new RangeError("invalid k");if(i===0)return()=>0;if(a=a==null?1:+a,i===1)return()=>-Math.log1p(-t())*a;var o=(i<1?i+1:i)-1/3,l=1/(3*Math.sqrt(o)),c=i<1?()=>Math.pow(t(),1/i):()=>1;return function(){do{do var f=n(),d=1+l*f;while(d<=0);d*=d*d;var m=1-t()}while(m>=1-.0331*f*f*f*f&&Math.log(m)>=.5*f*f+o*(1-d+Math.log(d)));return o*d*c()*a}}return r.source=e,r})(Fn),D9=(function e(t){var n=rk.source(t);function r(i,a){var o=n(i),l=n(a);return function(){var c=o();return c===0?0:c/(c+l())}}return r.source=e,r})(Fn),q9=(function e(t){var n=O9.source(t),r=D9.source(t);function i(a,o){return a=+a,(o=+o)>=1?()=>a:o<=0?()=>0:function(){for(var l=0,c=a,f=o;c*f>16&&c*(1-f)>16;){var d=Math.floor((c+1)*f),m=r(d,c-d+1)();m<=f?(l+=d,c-=d,f=(f-m)/(1-m)):(c=d-1,f/=m)}for(var p=f<.5,g=p?f:1-f,y=n(g),x=y(),k=0;x<=c;++k)x+=y();return l+(p?k:c-k)}}return i.source=e,i})(Fn),bY=(function e(t){function n(r,i,a){var o;return(r=+r)==0?o=l=>-Math.log(l):(r=1/r,o=l=>Math.pow(l,r)),i=i==null?0:+i,a=a==null?1:+a,function(){return i+a*o(-Math.log1p(-t()))}}return n.source=e,n})(Fn),xY=(function e(t){function n(r,i){return r=r==null?0:+r,i=i==null?1:+i,function(){return r+i*Math.tan(Math.PI*t())}}return n.source=e,n})(Fn),wY=(function e(t){function n(r,i){return r=r==null?0:+r,i=i==null?1:+i,function(){var a=t();return r+i*Math.log(a/(1-a))}}return n.source=e,n})(Fn),kY=(function e(t){var n=rk.source(t),r=q9.source(t);function i(a){return function(){for(var o=0,l=a;l>16;){var c=Math.floor(.875*l),f=n(c)();if(f>l)return o+r(c-1,l/f)();o+=c,l-=f}for(var d=-Math.log1p(-t()),m=0;d<=l;++m)d-=Math.log1p(-t());return o+m}}return i.source=e,i})(Fn),EY=1664525,SY=1013904223,aC=1/4294967296;function TY(e=Math.random()){let t=(0<=e&&e<1?e/aC:Math.abs(e))|0;return()=>(t=EY*t+SY|0,aC*(t>>>0))}function Ti(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ho(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Jx=Symbol("implicit");function h1(){var e=new Vh,t=[],n=[],r=Jx;function i(a){let o=e.get(a);if(o===void 0){if(r!==Jx)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Vh;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return h1(t,n).unknown(r)},Ti.apply(i,arguments),i}function ik(){var e=h1().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,l=!1,c=0,f=0,d=.5;delete e.unknown;function m(){var p=t().length,g=i<r,y=g?i:r,x=g?r:i;a=(x-y)/Math.max(1,p-c+f*2),l&&(a=Math.floor(a)),y+=(x-y-a*(p-c))*d,o=a*(1-c),l&&(y=Math.round(y),o=Math.round(o));var k=os(p).map(function(w){return y+a*w});return n(g?k.reverse():k)}return e.domain=function(p){return arguments.length?(t(p),m()):t()},e.range=function(p){return arguments.length?([r,i]=p,r=+r,i=+i,m()):[r,i]},e.rangeRound=function(p){return[r,i]=p,r=+r,i=+i,l=!0,m()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(p){return arguments.length?(l=!!p,m()):l},e.padding=function(p){return arguments.length?(c=Math.min(1,f=+p),m()):c},e.paddingInner=function(p){return arguments.length?(c=Math.min(1,p),m()):c},e.paddingOuter=function(p){return arguments.length?(f=+p,m()):f},e.align=function(p){return arguments.length?(d=Math.max(0,Math.min(1,p)),m()):d},e.copy=function(){return ik(t(),[r,i]).round(l).paddingInner(c).paddingOuter(f).align(d)},Ti.apply(m(),arguments)}function I9(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return I9(t())},e}function CY(){return I9(ik.apply(null,arguments).paddingInner(1))}function AY(e){return function(){return e}}function hg(e){return+e}var oC=[0,1];function pr(e){return e}function ew(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:AY(isNaN(t)?NaN:.5)}function jY(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function RY(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=ew(i,r),a=n(o,a)):(r=ew(r,i),a=n(a,o)),function(l){return a(r(l))}}function NY(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=ew(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(l){var c=ds(e,l,1,r)-1;return a[c](i[c](l))}}function Nd(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function d1(){var e=oC,t=oC,n=vs,r,i,a,o=pr,l,c,f;function d(){var p=Math.min(e.length,t.length);return o!==pr&&(o=jY(e[0],e[p-1])),l=p>2?NY:RY,c=f=null,m}function m(p){return p==null||isNaN(p=+p)?a:(c||(c=l(e.map(r),t,n)))(r(o(p)))}return m.invert=function(p){return o(i((f||(f=l(t,e.map(r),pi)))(p)))},m.domain=function(p){return arguments.length?(e=Array.from(p,hg),d()):e.slice()},m.range=function(p){return arguments.length?(t=Array.from(p),d()):t.slice()},m.rangeRound=function(p){return t=Array.from(p),n=Qg,d()},m.clamp=function(p){return arguments.length?(o=p?!0:pr,d()):o!==pr},m.interpolate=function(p){return arguments.length?(n=p,d()):n},m.unknown=function(p){return arguments.length?(a=p,m):a},function(p,g){return r=p,i=g,d()}}function ak(){return d1()(pr,pr)}function $9(e,t,n,r){var i=j_(e,t,n),a;switch(r=hc(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=OR(i,o))&&(r.precision=a),q2(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=DR(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=MR(i))&&(r.precision=a-(r.type==="%")*2);break}}return s1(r)}function bs(e){var t=e.domain;return e.ticks=function(n){var r=t();return bl(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return $9(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],l=r[a],c,f,d=10;for(l<o&&(f=o,o=l,l=f,f=i,i=a,a=f);d-- >0;){if(f=xl(o,l,n),f===c)return r[i]=o,r[a]=l,t(r);if(f>0)o=Math.floor(o/f)*f,l=Math.ceil(l/f)*f;else if(f<0)o=Math.ceil(o*f)/f,l=Math.floor(l*f)/f;else break;c=f}return e},e}function P9(){var e=ak();return e.copy=function(){return Nd(e,P9())},Ti.apply(e,arguments),bs(e)}function U9(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,hg),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return U9(e).unknown(t)},e=arguments.length?Array.from(e,hg):[0,1],bs(n)}function B9(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function sC(e){return Math.log(e)}function lC(e){return Math.exp(e)}function zY(e){return-Math.log(-e)}function LY(e){return-Math.exp(-e)}function MY(e){return isFinite(e)?+("1e"+e):e<0?0:e}function OY(e){return e===10?MY:e===Math.E?Math.exp:t=>Math.pow(e,t)}function DY(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function uC(e){return(t,n)=>-e(-t,n)}function ok(e){const t=e(sC,lC),n=t.domain;let r=10,i,a;function o(){return i=DY(r),a=OY(r),n()[0]<0?(i=uC(i),a=uC(a),e(zY,LY)):e(sC,lC),t}return t.base=function(l){return arguments.length?(r=+l,o()):r},t.domain=function(l){return arguments.length?(n(l),o()):n()},t.ticks=l=>{const c=n();let f=c[0],d=c[c.length-1];const m=d<f;m&&([f,d]=[d,f]);let p=i(f),g=i(d),y,x;const k=l==null?10:+l;let w=[];if(!(r%1)&&g-p<k){if(p=Math.floor(p),g=Math.ceil(g),f>0){for(;p<=g;++p)for(y=1;y<r;++y)if(x=p<0?y/a(-p):y*a(p),!(x<f)){if(x>d)break;w.push(x)}}else for(;p<=g;++p)for(y=r-1;y>=1;--y)if(x=p>0?y/a(-p):y*a(p),!(x<f)){if(x>d)break;w.push(x)}w.length*2<k&&(w=bl(f,d,k))}else w=bl(p,g,Math.min(g-p,k)).map(a);return m?w.reverse():w},t.tickFormat=(l,c)=>{if(l==null&&(l=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=hc(c)).precision==null&&(c.trim=!0),c=s1(c)),l===1/0)return c;const f=Math.max(1,r*l/t.ticks().length);return d=>{let m=d/a(Math.round(i(d)));return m*r<r-.5&&(m*=r),m<=f?c(d):""}},t.nice=()=>n(B9(n(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function G9(){const e=ok(d1()).domain([1,10]);return e.copy=()=>Nd(e,G9()).base(e.base()),Ti.apply(e,arguments),e}function cC(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function fC(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function sk(e){var t=1,n=e(cC(t),fC(t));return n.constant=function(r){return arguments.length?e(cC(t=+r),fC(t)):t},bs(n)}function F9(){var e=sk(d1());return e.copy=function(){return Nd(e,F9()).constant(e.constant())},Ti.apply(e,arguments)}function hC(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function qY(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function IY(e){return e<0?-e*e:e*e}function lk(e){var t=e(pr,pr),n=1;function r(){return n===1?e(pr,pr):n===.5?e(qY,IY):e(hC(n),hC(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},bs(t)}function uk(){var e=lk(d1());return e.copy=function(){return Nd(e,uk()).exponent(e.exponent())},Ti.apply(e,arguments),e}function $Y(){return uk.apply(null,arguments).exponent(.5)}function dC(e){return Math.sign(e)*e*e}function PY(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function H9(){var e=ak(),t=[0,1],n=!1,r;function i(a){var o=PY(e(a));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(a){return e.invert(dC(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,hg)).map(dC)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return H9(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Ti.apply(i,arguments),bs(i)}function V9(){var e=[],t=[],n=[],r;function i(){var o=0,l=Math.max(1,t.length);for(n=new Array(l-1);++o<l;)n[o-1]=vj(e,o/l);return a}function a(o){return o==null||isNaN(o=+o)?r:t[ds(n,o)]}return a.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(Jt),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return V9().domain(e).range(t).unknown(r)},Ti.apply(a,arguments)}function X9(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[ds(r,c,0,n)]:a}function l(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*t-(c-n)*e)/(n+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,l()):[e,t]},o.range=function(c){return arguments.length?(n=(i=Array.from(c)).length-1,l()):i.slice()},o.invertExtent=function(c){var f=i.indexOf(c);return f<0?[NaN,NaN]:f<1?[e,r[0]]:f>=n?[r[n-1],t]:[r[f-1],r[f]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return r.slice()},o.copy=function(){return X9().domain([e,t]).range(i).unknown(a)},Ti.apply(bs(o),arguments)}function Y9(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[ds(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Y9().domain(e).range(t).unknown(n)},Ti.apply(i,arguments)}const Xv=new Date,Yv=new Date;function _n(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),l=i.ceil(a);return a-o<l-a?o:l},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,l)=>{const c=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return c;let f;do c.push(f=new Date(+a)),t(a,l),e(a);while(f<a&&a<o);return c},i.filter=a=>_n(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(Xv.setTime(+a),Yv.setTime(+o),e(Xv),e(Yv),Math.floor(n(Xv,Yv))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const _c=_n(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);_c.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?_n(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):_c);const mC=_c.range,io=1e3,xi=io*60,ao=xi*60,fo=ao*24,ck=fo*7,pC=fo*30,Wv=fo*365,oo=_n(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*io)},(e,t)=>(t-e)/io,e=>e.getUTCSeconds()),_C=oo.range,m1=_n(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*io)},(e,t)=>{e.setTime(+e+t*xi)},(e,t)=>(t-e)/xi,e=>e.getMinutes()),UY=m1.range,p1=_n(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*xi)},(e,t)=>(t-e)/xi,e=>e.getUTCMinutes()),BY=p1.range,_1=_n(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*io-e.getMinutes()*xi)},(e,t)=>{e.setTime(+e+t*ao)},(e,t)=>(t-e)/ao,e=>e.getHours()),GY=_1.range,g1=_n(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ao)},(e,t)=>(t-e)/ao,e=>e.getUTCHours()),FY=g1.range,Ic=_n(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*xi)/fo,e=>e.getDate()-1),HY=Ic.range,zd=_n(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/fo,e=>e.getUTCDate()-1),VY=zd.range,fk=_n(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/fo,e=>Math.floor(e/fo)),XY=fk.range;function $l(e){return _n(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*xi)/ck)}const gc=$l(0),ld=$l(1),W9=$l(2),K9=$l(3),Al=$l(4),Z9=$l(5),Q9=$l(6),gC=gc.range,YY=ld.range,WY=W9.range,KY=K9.range,ZY=Al.range,QY=Z9.range,JY=Q9.range;function Pl(e){return _n(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/ck)}const yc=Pl(0),ud=Pl(1),J9=Pl(2),eN=Pl(3),jl=Pl(4),tN=Pl(5),nN=Pl(6),yC=yc.range,eW=ud.range,tW=J9.range,nW=eN.range,rW=jl.range,iW=tN.range,aW=nN.range,y1=_n(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),oW=y1.range,v1=_n(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),sW=v1.range,ya=_n(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ya.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:_n(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});const lW=ya.range,va=_n(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());va.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:_n(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});const uW=va.range;function rN(e,t,n,r,i,a){const o=[[oo,1,io],[oo,5,5*io],[oo,15,15*io],[oo,30,30*io],[a,1,xi],[a,5,5*xi],[a,15,15*xi],[a,30,30*xi],[i,1,ao],[i,3,3*ao],[i,6,6*ao],[i,12,12*ao],[r,1,fo],[r,2,2*fo],[n,1,ck],[t,1,pC],[t,3,3*pC],[e,1,Wv]];function l(f,d,m){const p=d<f;p&&([f,d]=[d,f]);const g=m&&typeof m.range=="function"?m:c(f,d,m),y=g?g.range(f,+d+1):[];return p?y.reverse():y}function c(f,d,m){const p=Math.abs(d-f)/m,g=Ug(([,,k])=>k).right(o,p);if(g===o.length)return e.every(j_(f/Wv,d/Wv,m));if(g===0)return _c.every(Math.max(j_(f,d,m),1));const[y,x]=o[p/o[g-1][2]<o[g][2]/p?g-1:g];return y.every(x)}return[l,c]}const[iN,aN]=rN(va,v1,yc,fk,g1,p1),[oN,sN]=rN(ya,y1,gc,Ic,_1,m1);function Kv(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Zv(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Qf(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function lN(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,c=e.shortMonths,f=Jf(i),d=eh(i),m=Jf(a),p=eh(a),g=Jf(o),y=eh(o),x=Jf(l),k=eh(l),w=Jf(c),C=eh(c),S={a:N,A:F,b:Z,B:O,c:null,d:EC,e:EC,f:zW,g:BW,G:FW,H:jW,I:RW,j:NW,L:uN,m:LW,M:MW,p:U,q:K,Q:CC,s:AC,S:OW,u:DW,U:qW,V:IW,w:$W,W:PW,x:null,X:null,y:UW,Y:GW,Z:HW,"%":TC},T={a:$,A:ie,b:ue,B:xe,c:null,d:SC,e:SC,f:WW,g:aK,G:sK,H:VW,I:XW,j:YW,L:fN,m:KW,M:ZW,p:we,q:Pe,Q:CC,s:AC,S:QW,u:JW,U:eK,V:tK,w:nK,W:rK,x:null,X:null,y:iK,Y:oK,Z:lK,"%":TC},z={a:q,A:V,b:W,B:I,c:B,d:wC,e:wC,f:SW,g:xC,G:bC,H:kC,I:kC,j:xW,L:EW,m:bW,M:wW,p:H,q:vW,Q:CW,s:AW,S:kW,u:mW,U:pW,V:_W,w:dW,W:gW,x:D,X:j,y:xC,Y:bC,Z:yW,"%":TW};S.x=A(n,S),S.X=A(r,S),S.c=A(t,S),T.x=A(n,T),T.X=A(r,T),T.c=A(t,T);function A(_e,Ae){return function(je){var he=[],tt=-1,Ee=0,Ne=_e.length,ce,qe,mt;for(je instanceof Date||(je=new Date(+je));++tt<Ne;)_e.charCodeAt(tt)===37&&(he.push(_e.slice(Ee,tt)),(qe=vC[ce=_e.charAt(++tt)])!=null?ce=_e.charAt(++tt):qe=ce==="e"?" ":"0",(mt=Ae[ce])&&(ce=mt(je,qe)),he.push(ce),Ee=tt+1);return he.push(_e.slice(Ee,tt)),he.join("")}}function L(_e,Ae){return function(je){var he=Qf(1900,void 0,1),tt=G(he,_e,je+="",0),Ee,Ne;if(tt!=je.length)return null;if("Q"in he)return new Date(he.Q);if("s"in he)return new Date(he.s*1e3+("L"in he?he.L:0));if(Ae&&!("Z"in he)&&(he.Z=0),"p"in he&&(he.H=he.H%12+he.p*12),he.m===void 0&&(he.m="q"in he?he.q:0),"V"in he){if(he.V<1||he.V>53)return null;"w"in he||(he.w=1),"Z"in he?(Ee=Zv(Qf(he.y,0,1)),Ne=Ee.getUTCDay(),Ee=Ne>4||Ne===0?ud.ceil(Ee):ud(Ee),Ee=zd.offset(Ee,(he.V-1)*7),he.y=Ee.getUTCFullYear(),he.m=Ee.getUTCMonth(),he.d=Ee.getUTCDate()+(he.w+6)%7):(Ee=Kv(Qf(he.y,0,1)),Ne=Ee.getDay(),Ee=Ne>4||Ne===0?ld.ceil(Ee):ld(Ee),Ee=Ic.offset(Ee,(he.V-1)*7),he.y=Ee.getFullYear(),he.m=Ee.getMonth(),he.d=Ee.getDate()+(he.w+6)%7)}else("W"in he||"U"in he)&&("w"in he||(he.w="u"in he?he.u%7:"W"in he?1:0),Ne="Z"in he?Zv(Qf(he.y,0,1)).getUTCDay():Kv(Qf(he.y,0,1)).getDay(),he.m=0,he.d="W"in he?(he.w+6)%7+he.W*7-(Ne+5)%7:he.w+he.U*7-(Ne+6)%7);return"Z"in he?(he.H+=he.Z/100|0,he.M+=he.Z%100,Zv(he)):Kv(he)}}function G(_e,Ae,je,he){for(var tt=0,Ee=Ae.length,Ne=je.length,ce,qe;tt<Ee;){if(he>=Ne)return-1;if(ce=Ae.charCodeAt(tt++),ce===37){if(ce=Ae.charAt(tt++),qe=z[ce in vC?Ae.charAt(tt++):ce],!qe||(he=qe(_e,je,he))<0)return-1}else if(ce!=je.charCodeAt(he++))return-1}return he}function H(_e,Ae,je){var he=f.exec(Ae.slice(je));return he?(_e.p=d.get(he[0].toLowerCase()),je+he[0].length):-1}function q(_e,Ae,je){var he=g.exec(Ae.slice(je));return he?(_e.w=y.get(he[0].toLowerCase()),je+he[0].length):-1}function V(_e,Ae,je){var he=m.exec(Ae.slice(je));return he?(_e.w=p.get(he[0].toLowerCase()),je+he[0].length):-1}function W(_e,Ae,je){var he=w.exec(Ae.slice(je));return he?(_e.m=C.get(he[0].toLowerCase()),je+he[0].length):-1}function I(_e,Ae,je){var he=x.exec(Ae.slice(je));return he?(_e.m=k.get(he[0].toLowerCase()),je+he[0].length):-1}function B(_e,Ae,je){return G(_e,t,Ae,je)}function D(_e,Ae,je){return G(_e,n,Ae,je)}function j(_e,Ae,je){return G(_e,r,Ae,je)}function N(_e){return o[_e.getDay()]}function F(_e){return a[_e.getDay()]}function Z(_e){return c[_e.getMonth()]}function O(_e){return l[_e.getMonth()]}function U(_e){return i[+(_e.getHours()>=12)]}function K(_e){return 1+~~(_e.getMonth()/3)}function $(_e){return o[_e.getUTCDay()]}function ie(_e){return a[_e.getUTCDay()]}function ue(_e){return c[_e.getUTCMonth()]}function xe(_e){return l[_e.getUTCMonth()]}function we(_e){return i[+(_e.getUTCHours()>=12)]}function Pe(_e){return 1+~~(_e.getUTCMonth()/3)}return{format:function(_e){var Ae=A(_e+="",S);return Ae.toString=function(){return _e},Ae},parse:function(_e){var Ae=L(_e+="",!1);return Ae.toString=function(){return _e},Ae},utcFormat:function(_e){var Ae=A(_e+="",T);return Ae.toString=function(){return _e},Ae},utcParse:function(_e){var Ae=L(_e+="",!0);return Ae.toString=function(){return _e},Ae}}}var vC={"-":"",_:" ",0:"0"},On=/^\s*\d+/,cW=/^%/,fW=/[\\^$*+?|[\]().{}]/g;function kt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function hW(e){return e.replace(fW,"\\$&")}function Jf(e){return new RegExp("^(?:"+e.map(hW).join("|")+")","i")}function eh(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function dW(e,t,n){var r=On.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function mW(e,t,n){var r=On.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function pW(e,t,n){var r=On.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function _W(e,t,n){var r=On.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function gW(e,t,n){var r=On.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function bC(e,t,n){var r=On.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function xC(e,t,n){var r=On.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function yW(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function vW(e,t,n){var r=On.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function bW(e,t,n){var r=On.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function wC(e,t,n){var r=On.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function xW(e,t,n){var r=On.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function kC(e,t,n){var r=On.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function wW(e,t,n){var r=On.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function kW(e,t,n){var r=On.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function EW(e,t,n){var r=On.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function SW(e,t,n){var r=On.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function TW(e,t,n){var r=cW.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function CW(e,t,n){var r=On.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function AW(e,t,n){var r=On.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function EC(e,t){return kt(e.getDate(),t,2)}function jW(e,t){return kt(e.getHours(),t,2)}function RW(e,t){return kt(e.getHours()%12||12,t,2)}function NW(e,t){return kt(1+Ic.count(ya(e),e),t,3)}function uN(e,t){return kt(e.getMilliseconds(),t,3)}function zW(e,t){return uN(e,t)+"000"}function LW(e,t){return kt(e.getMonth()+1,t,2)}function MW(e,t){return kt(e.getMinutes(),t,2)}function OW(e,t){return kt(e.getSeconds(),t,2)}function DW(e){var t=e.getDay();return t===0?7:t}function qW(e,t){return kt(gc.count(ya(e)-1,e),t,2)}function cN(e){var t=e.getDay();return t>=4||t===0?Al(e):Al.ceil(e)}function IW(e,t){return e=cN(e),kt(Al.count(ya(e),e)+(ya(e).getDay()===4),t,2)}function $W(e){return e.getDay()}function PW(e,t){return kt(ld.count(ya(e)-1,e),t,2)}function UW(e,t){return kt(e.getFullYear()%100,t,2)}function BW(e,t){return e=cN(e),kt(e.getFullYear()%100,t,2)}function GW(e,t){return kt(e.getFullYear()%1e4,t,4)}function FW(e,t){var n=e.getDay();return e=n>=4||n===0?Al(e):Al.ceil(e),kt(e.getFullYear()%1e4,t,4)}function HW(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+kt(t/60|0,"0",2)+kt(t%60,"0",2)}function SC(e,t){return kt(e.getUTCDate(),t,2)}function VW(e,t){return kt(e.getUTCHours(),t,2)}function XW(e,t){return kt(e.getUTCHours()%12||12,t,2)}function YW(e,t){return kt(1+zd.count(va(e),e),t,3)}function fN(e,t){return kt(e.getUTCMilliseconds(),t,3)}function WW(e,t){return fN(e,t)+"000"}function KW(e,t){return kt(e.getUTCMonth()+1,t,2)}function ZW(e,t){return kt(e.getUTCMinutes(),t,2)}function QW(e,t){return kt(e.getUTCSeconds(),t,2)}function JW(e){var t=e.getUTCDay();return t===0?7:t}function eK(e,t){return kt(yc.count(va(e)-1,e),t,2)}function hN(e){var t=e.getUTCDay();return t>=4||t===0?jl(e):jl.ceil(e)}function tK(e,t){return e=hN(e),kt(jl.count(va(e),e)+(va(e).getUTCDay()===4),t,2)}function nK(e){return e.getUTCDay()}function rK(e,t){return kt(ud.count(va(e)-1,e),t,2)}function iK(e,t){return kt(e.getUTCFullYear()%100,t,2)}function aK(e,t){return e=hN(e),kt(e.getUTCFullYear()%100,t,2)}function oK(e,t){return kt(e.getUTCFullYear()%1e4,t,4)}function sK(e,t){var n=e.getUTCDay();return e=n>=4||n===0?jl(e):jl.ceil(e),kt(e.getUTCFullYear()%1e4,t,4)}function lK(){return"+0000"}function TC(){return"%"}function CC(e){return+e}function AC(e){return Math.floor(+e/1e3)}var qu,hk,dN,b1,dk;mN({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function mN(e){return qu=lN(e),hk=qu.format,dN=qu.parse,b1=qu.utcFormat,dk=qu.utcParse,qu}var pN="%Y-%m-%dT%H:%M:%S.%LZ";function uK(e){return e.toISOString()}var cK=Date.prototype.toISOString?uK:b1(pN);function fK(e){var t=new Date(e);return isNaN(t)?null:t}var hK=+new Date("2000-01-01T00:00:00.000Z")?fK:dk(pN);function dK(e){return new Date(e)}function mK(e){return e instanceof Date?+e:+new Date(+e)}function mk(e,t,n,r,i,a,o,l,c,f){var d=ak(),m=d.invert,p=d.domain,g=f(".%L"),y=f(":%S"),x=f("%I:%M"),k=f("%I %p"),w=f("%a %d"),C=f("%b %d"),S=f("%B"),T=f("%Y");function z(A){return(c(A)<A?g:l(A)<A?y:o(A)<A?x:a(A)<A?k:r(A)<A?i(A)<A?w:C:n(A)<A?S:T)(A)}return d.invert=function(A){return new Date(m(A))},d.domain=function(A){return arguments.length?p(Array.from(A,mK)):p().map(dK)},d.ticks=function(A){var L=p();return e(L[0],L[L.length-1],A??10)},d.tickFormat=function(A,L){return L==null?z:f(L)},d.nice=function(A){var L=p();return(!A||typeof A.range!="function")&&(A=t(L[0],L[L.length-1],A??10)),A?p(B9(L,A)):d},d.copy=function(){return Nd(d,mk(e,t,n,r,i,a,o,l,c,f))},d}function pK(){return Ti.apply(mk(oN,sN,ya,y1,gc,Ic,_1,m1,oo,hk).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function _K(){return Ti.apply(mk(iN,aN,va,v1,yc,zd,g1,p1,oo,b1).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function x1(){var e=0,t=1,n,r,i,a,o=pr,l=!1,c;function f(m){return m==null||isNaN(m=+m)?c:o(i===0?.5:(m=(a(m)-n)*i,l?Math.max(0,Math.min(1,m)):m))}f.domain=function(m){return arguments.length?([e,t]=m,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),f):[e,t]},f.clamp=function(m){return arguments.length?(l=!!m,f):l},f.interpolator=function(m){return arguments.length?(o=m,f):o};function d(m){return function(p){var g,y;return arguments.length?([g,y]=p,o=m(g,y),f):[o(0),o(1)]}}return f.range=d(vs),f.rangeRound=d(Qg),f.unknown=function(m){return arguments.length?(c=m,f):c},function(m){return a=m,n=m(e),r=m(t),i=n===r?0:1/(r-n),f}}function xs(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function _N(){var e=bs(x1()(pr));return e.copy=function(){return xs(e,_N())},ho.apply(e,arguments)}function gN(){var e=ok(x1()).domain([1,10]);return e.copy=function(){return xs(e,gN()).base(e.base())},ho.apply(e,arguments)}function yN(){var e=sk(x1());return e.copy=function(){return xs(e,yN()).constant(e.constant())},ho.apply(e,arguments)}function pk(){var e=lk(x1());return e.copy=function(){return xs(e,pk()).exponent(e.exponent())},ho.apply(e,arguments)}function gK(){return pk.apply(null,arguments).exponent(.5)}function vN(){var e=[],t=pr;function n(r){if(r!=null&&!isNaN(r=+r))return t((ds(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Jt),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,a)=>Yh(e,a/r))},n.copy=function(){return vN(t).domain(e)},ho.apply(n,arguments)}function w1(){var e=0,t=.5,n=1,r=1,i,a,o,l,c,f=pr,d,m=!1,p;function g(x){return isNaN(x=+x)?p:(x=.5+((x=+d(x))-a)*(r*x<r*a?l:c),f(m?Math.max(0,Math.min(1,x)):x))}g.domain=function(x){return arguments.length?([e,t,n]=x,i=d(e=+e),a=d(t=+t),o=d(n=+n),l=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,g):[e,t,n]},g.clamp=function(x){return arguments.length?(m=!!x,g):m},g.interpolator=function(x){return arguments.length?(f=x,g):f};function y(x){return function(k){var w,C,S;return arguments.length?([w,C,S]=k,f=fR(x,[w,C,S]),g):[f(0),f(.5),f(1)]}}return g.range=y(vs),g.rangeRound=y(Qg),g.unknown=function(x){return arguments.length?(p=x,g):p},function(x){return d=x,i=x(e),a=x(t),o=x(n),l=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,g}}function bN(){var e=bs(w1()(pr));return e.copy=function(){return xs(e,bN())},ho.apply(e,arguments)}function xN(){var e=ok(w1()).domain([.1,1,10]);return e.copy=function(){return xs(e,xN()).base(e.base())},ho.apply(e,arguments)}function wN(){var e=sk(w1());return e.copy=function(){return xs(e,wN()).constant(e.constant())},ho.apply(e,arguments)}function _k(){var e=lk(w1());return e.copy=function(){return xs(e,_k()).exponent(e.exponent())},ho.apply(e,arguments)}function yK(){return _k.apply(null,arguments).exponent(.5)}function st(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const vK=st("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),bK=st("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),xK=st("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),wK=st("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),kK=st("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),EK=st("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),SK=st("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),TK=st("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),CK=st("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),AK=st("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),kN=st("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),It=e=>Qj(e[e.length-1]);var EN=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(st);const jK=It(EN);var SN=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(st);const RK=It(SN);var TN=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(st);const NK=It(TN);var CN=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(st);const zK=It(CN);var AN=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(st);const LK=It(AN);var jN=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(st);const MK=It(jN);var RN=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(st);const OK=It(RN);var NN=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(st);const DK=It(NN);var zN=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(st);const qK=It(zN);var LN=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(st);const IK=It(LN);var MN=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(st);const $K=It(MN);var ON=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(st);const PK=It(ON);var DN=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(st);const UK=It(DN);var qN=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(st);const BK=It(qN);var IN=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(st);const GK=It(IN);var $N=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(st);const FK=It($N);var PN=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(st);const HK=It(PN);var UN=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(st);const VK=It(UN);var BN=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(st);const XK=It(BN);var GN=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(st);const YK=It(GN);var FN=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(st);const WK=It(FN);var HN=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(st);const KK=It(HN);var VN=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(st);const ZK=It(VN);var XN=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(st);const QK=It(XN);var YN=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(st);const JK=It(YN);var WN=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(st);const eZ=It(WN);var KN=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(st);const tZ=It(KN);function nZ(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const rZ=Jg(Xi(300,.5,0),Xi(-240,.5,1));var iZ=Jg(Xi(-100,.75,.35),Xi(80,1.5,.8)),aZ=Jg(Xi(260,.75,.35),Xi(80,1.5,.8)),wp=Xi();function oZ(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return wp.h=360*e-100,wp.s=1.5-1.5*t,wp.l=.8-.9*t,wp+""}var kp=lc(),sZ=Math.PI/3,lZ=Math.PI*2/3;function uZ(e){var t;return e=(.5-e)*Math.PI,kp.r=255*(t=Math.sin(e))*t,kp.g=255*(t=Math.sin(e+sZ))*t,kp.b=255*(t=Math.sin(e+lZ))*t,kp+""}function cZ(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function k1(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const fZ=k1(st("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var hZ=k1(st("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),dZ=k1(st("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),mZ=k1(st("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function it(e){return function(){return e}}const jC=Math.abs,Qn=Math.atan2,Qa=Math.cos,pZ=Math.max,nc=Math.min,zr=Math.sin,Gt=Math.sqrt,er=1e-12,_s=Math.PI,dg=_s/2,us=2*_s;function _Z(e){return e>1?0:e<-1?_s:Math.acos(e)}function RC(e){return e>=1?dg:e<=-1?-dg:Math.asin(e)}function Ld(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Ed(t)}function gZ(e){return e.innerRadius}function yZ(e){return e.outerRadius}function vZ(e){return e.startAngle}function bZ(e){return e.endAngle}function xZ(e){return e&&e.padAngle}function wZ(e,t,n,r,i,a,o,l){var c=n-e,f=r-t,d=o-i,m=l-a,p=m*c-d*f;if(!(p*p<er))return p=(d*(t-a)-m*(e-i))/p,[e+p*c,t+p*f]}function Ep(e,t,n,r,i,a,o){var l=e-n,c=t-r,f=(o?a:-a)/Gt(l*l+c*c),d=f*c,m=-f*l,p=e+d,g=t+m,y=n+d,x=r+m,k=(p+y)/2,w=(g+x)/2,C=y-p,S=x-g,T=C*C+S*S,z=i-a,A=p*x-y*g,L=(S<0?-1:1)*Gt(pZ(0,z*z*T-A*A)),G=(A*S-C*L)/T,H=(-A*C-S*L)/T,q=(A*S+C*L)/T,V=(-A*C+S*L)/T,W=G-k,I=H-w,B=q-k,D=V-w;return W*W+I*I>B*B+D*D&&(G=q,H=V),{cx:G,cy:H,x01:-d,y01:-m,x11:G*(i/z-1),y11:H*(i/z-1)}}function ZN(){var e=gZ,t=yZ,n=it(0),r=null,i=vZ,a=bZ,o=xZ,l=null,c=Ld(f);function f(){var d,m,p=+e.apply(this,arguments),g=+t.apply(this,arguments),y=i.apply(this,arguments)-dg,x=a.apply(this,arguments)-dg,k=jC(x-y),w=x>y;if(l||(l=d=c()),g<p&&(m=g,g=p,p=m),!(g>er))l.moveTo(0,0);else if(k>us-er)l.moveTo(g*Qa(y),g*zr(y)),l.arc(0,0,g,y,x,!w),p>er&&(l.moveTo(p*Qa(x),p*zr(x)),l.arc(0,0,p,x,y,w));else{var C=y,S=x,T=y,z=x,A=k,L=k,G=o.apply(this,arguments)/2,H=G>er&&(r?+r.apply(this,arguments):Gt(p*p+g*g)),q=nc(jC(g-p)/2,+n.apply(this,arguments)),V=q,W=q,I,B;if(H>er){var D=RC(H/p*zr(G)),j=RC(H/g*zr(G));(A-=D*2)>er?(D*=w?1:-1,T+=D,z-=D):(A=0,T=z=(y+x)/2),(L-=j*2)>er?(j*=w?1:-1,C+=j,S-=j):(L=0,C=S=(y+x)/2)}var N=g*Qa(C),F=g*zr(C),Z=p*Qa(z),O=p*zr(z);if(q>er){var U=g*Qa(S),K=g*zr(S),$=p*Qa(T),ie=p*zr(T),ue;if(k<_s)if(ue=wZ(N,F,$,ie,U,K,Z,O)){var xe=N-ue[0],we=F-ue[1],Pe=U-ue[0],_e=K-ue[1],Ae=1/zr(_Z((xe*Pe+we*_e)/(Gt(xe*xe+we*we)*Gt(Pe*Pe+_e*_e)))/2),je=Gt(ue[0]*ue[0]+ue[1]*ue[1]);V=nc(q,(p-je)/(Ae-1)),W=nc(q,(g-je)/(Ae+1))}else V=W=0}L>er?W>er?(I=Ep($,ie,N,F,g,W,w),B=Ep(U,K,Z,O,g,W,w),l.moveTo(I.cx+I.x01,I.cy+I.y01),W<q?l.arc(I.cx,I.cy,W,Qn(I.y01,I.x01),Qn(B.y01,B.x01),!w):(l.arc(I.cx,I.cy,W,Qn(I.y01,I.x01),Qn(I.y11,I.x11),!w),l.arc(0,0,g,Qn(I.cy+I.y11,I.cx+I.x11),Qn(B.cy+B.y11,B.cx+B.x11),!w),l.arc(B.cx,B.cy,W,Qn(B.y11,B.x11),Qn(B.y01,B.x01),!w))):(l.moveTo(N,F),l.arc(0,0,g,C,S,!w)):l.moveTo(N,F),!(p>er)||!(A>er)?l.lineTo(Z,O):V>er?(I=Ep(Z,O,U,K,p,-V,w),B=Ep(N,F,$,ie,p,-V,w),l.lineTo(I.cx+I.x01,I.cy+I.y01),V<q?l.arc(I.cx,I.cy,V,Qn(I.y01,I.x01),Qn(B.y01,B.x01),!w):(l.arc(I.cx,I.cy,V,Qn(I.y01,I.x01),Qn(I.y11,I.x11),!w),l.arc(0,0,p,Qn(I.cy+I.y11,I.cx+I.x11),Qn(B.cy+B.y11,B.cx+B.x11),w),l.arc(B.cx,B.cy,V,Qn(B.y11,B.x11),Qn(B.y01,B.x01),!w))):l.arc(0,0,p,z,T,w)}if(l.closePath(),d)return l=null,d+""||null}return f.centroid=function(){var d=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,m=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-_s/2;return[Qa(m)*d,zr(m)*d]},f.innerRadius=function(d){return arguments.length?(e=typeof d=="function"?d:it(+d),f):e},f.outerRadius=function(d){return arguments.length?(t=typeof d=="function"?d:it(+d),f):t},f.cornerRadius=function(d){return arguments.length?(n=typeof d=="function"?d:it(+d),f):n},f.padRadius=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:it(+d),f):r},f.startAngle=function(d){return arguments.length?(i=typeof d=="function"?d:it(+d),f):i},f.endAngle=function(d){return arguments.length?(a=typeof d=="function"?d:it(+d),f):a},f.padAngle=function(d){return arguments.length?(o=typeof d=="function"?d:it(+d),f):o},f.context=function(d){return arguments.length?(l=d??null,f):l},f}var kZ=Array.prototype.slice;function E1(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function QN(e){this._context=e}QN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function S1(e){return new QN(e)}function gk(e){return e[0]}function yk(e){return e[1]}function vk(e,t){var n=it(!0),r=null,i=S1,a=null,o=Ld(l);e=typeof e=="function"?e:e===void 0?gk:it(e),t=typeof t=="function"?t:t===void 0?yk:it(t);function l(c){var f,d=(c=E1(c)).length,m,p=!1,g;for(r==null&&(a=i(g=o())),f=0;f<=d;++f)!(f<d&&n(m=c[f],f,c))===p&&((p=!p)?a.lineStart():a.lineEnd()),p&&a.point(+e(m,f,c),+t(m,f,c));if(g)return a=null,g+""||null}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:it(+c),l):e},l.y=function(c){return arguments.length?(t=typeof c=="function"?c:it(+c),l):t},l.defined=function(c){return arguments.length?(n=typeof c=="function"?c:it(!!c),l):n},l.curve=function(c){return arguments.length?(i=c,r!=null&&(a=i(r)),l):i},l.context=function(c){return arguments.length?(c==null?r=a=null:a=i(r=c),l):r},l}function JN(e,t,n){var r=null,i=it(!0),a=null,o=S1,l=null,c=Ld(f);e=typeof e=="function"?e:e===void 0?gk:it(+e),t=typeof t=="function"?t:it(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?yk:it(+n);function f(m){var p,g,y,x=(m=E1(m)).length,k,w=!1,C,S=new Array(x),T=new Array(x);for(a==null&&(l=o(C=c())),p=0;p<=x;++p){if(!(p<x&&i(k=m[p],p,m))===w)if(w=!w)g=p,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),y=p-1;y>=g;--y)l.point(S[y],T[y]);l.lineEnd(),l.areaEnd()}w&&(S[p]=+e(k,p,m),T[p]=+t(k,p,m),l.point(r?+r(k,p,m):S[p],n?+n(k,p,m):T[p]))}if(C)return l=null,C+""||null}function d(){return vk().defined(i).curve(o).context(a)}return f.x=function(m){return arguments.length?(e=typeof m=="function"?m:it(+m),r=null,f):e},f.x0=function(m){return arguments.length?(e=typeof m=="function"?m:it(+m),f):e},f.x1=function(m){return arguments.length?(r=m==null?null:typeof m=="function"?m:it(+m),f):r},f.y=function(m){return arguments.length?(t=typeof m=="function"?m:it(+m),n=null,f):t},f.y0=function(m){return arguments.length?(t=typeof m=="function"?m:it(+m),f):t},f.y1=function(m){return arguments.length?(n=m==null?null:typeof m=="function"?m:it(+m),f):n},f.lineX0=f.lineY0=function(){return d().x(e).y(t)},f.lineY1=function(){return d().x(e).y(n)},f.lineX1=function(){return d().x(r).y(t)},f.defined=function(m){return arguments.length?(i=typeof m=="function"?m:it(!!m),f):i},f.curve=function(m){return arguments.length?(o=m,a!=null&&(l=o(a)),f):o},f.context=function(m){return arguments.length?(m==null?a=l=null:l=o(a=m),f):a},f}function EZ(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function SZ(e){return e}function TZ(){var e=SZ,t=EZ,n=null,r=it(0),i=it(us),a=it(0);function o(l){var c,f=(l=E1(l)).length,d,m,p=0,g=new Array(f),y=new Array(f),x=+r.apply(this,arguments),k=Math.min(us,Math.max(-us,i.apply(this,arguments)-x)),w,C=Math.min(Math.abs(k)/f,a.apply(this,arguments)),S=C*(k<0?-1:1),T;for(c=0;c<f;++c)(T=y[g[c]=c]=+e(l[c],c,l))>0&&(p+=T);for(t!=null?g.sort(function(z,A){return t(y[z],y[A])}):n!=null&&g.sort(function(z,A){return n(l[z],l[A])}),c=0,m=p?(k-f*S)/p:0;c<f;++c,x=w)d=g[c],T=y[d],w=x+(T>0?T*m:0)+S,y[d]={data:l[d],index:c,value:T,startAngle:x,endAngle:w,padAngle:C};return y}return o.value=function(l){return arguments.length?(e=typeof l=="function"?l:it(+l),o):e},o.sortValues=function(l){return arguments.length?(t=l,n=null,o):t},o.sort=function(l){return arguments.length?(n=l,t=null,o):n},o.startAngle=function(l){return arguments.length?(r=typeof l=="function"?l:it(+l),o):r},o.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:it(+l),o):i},o.padAngle=function(l){return arguments.length?(a=typeof l=="function"?l:it(+l),o):a},o}var ez=bk(S1);function tz(e){this._curve=e}tz.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function bk(e){function t(n){return new tz(e(n))}return t._curve=e,t}function Ch(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(n){return arguments.length?t(bk(n)):t()._curve},e}function NC(){return Ch(vk().curve(ez))}function zC(){var e=JN().curve(ez),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return Ch(n())},delete e.lineX0,e.lineEndAngle=function(){return Ch(r())},delete e.lineX1,e.lineInnerRadius=function(){return Ch(i())},delete e.lineY0,e.lineOuterRadius=function(){return Ch(a())},delete e.lineY1,e.curve=function(o){return arguments.length?t(bk(o)):t()._curve},e}function Ah(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}class nz{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}class CZ{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,this._point===0)this._point=1;else{const r=Ah(this._x0,this._y0),i=Ah(this._x0,this._y0=(this._y0+n)/2),a=Ah(t,this._y0),o=Ah(t,n);this._context.moveTo(...r),this._context.bezierCurveTo(...i,...a,...o)}this._x0=t,this._y0=n}}function rz(e){return new nz(e,!0)}function iz(e){return new nz(e,!1)}function AZ(e){return new CZ(e)}function jZ(e){return e.source}function RZ(e){return e.target}function T1(e){let t=jZ,n=RZ,r=gk,i=yk,a=null,o=null,l=Ld(c);function c(){let f;const d=kZ.call(arguments),m=t.apply(this,d),p=n.apply(this,d);if(a==null&&(o=e(f=l())),o.lineStart(),d[0]=m,o.point(+r.apply(this,d),+i.apply(this,d)),d[0]=p,o.point(+r.apply(this,d),+i.apply(this,d)),o.lineEnd(),f)return o=null,f+""||null}return c.source=function(f){return arguments.length?(t=f,c):t},c.target=function(f){return arguments.length?(n=f,c):n},c.x=function(f){return arguments.length?(r=typeof f=="function"?f:it(+f),c):r},c.y=function(f){return arguments.length?(i=typeof f=="function"?f:it(+f),c):i},c.context=function(f){return arguments.length?(f==null?a=o=null:o=e(a=f),c):a},c}function az(){return T1(rz)}function NZ(){return T1(iz)}function zZ(){const e=T1(AZ);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const LZ=Gt(3),oz={draw(e,t){const n=Gt(t+nc(t/28,.75))*.59436,r=n/2,i=r*LZ;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-i,-r),e.lineTo(i,r),e.moveTo(-i,r),e.lineTo(i,-r)}},C1={draw(e,t){const n=Gt(t/_s);e.moveTo(n,0),e.arc(0,0,n,0,us)}},sz={draw(e,t){const n=Gt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},lz=Gt(1/3),MZ=lz*2,uz={draw(e,t){const n=Gt(t/MZ),r=n*lz;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},cz={draw(e,t){const n=Gt(t)*.62625;e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},fz={draw(e,t){const n=Gt(t-nc(t/7,2))*.87559;e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},hz={draw(e,t){const n=Gt(t),r=-n/2;e.rect(r,r,n,n)}},dz={draw(e,t){const n=Gt(t)*.4431;e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},OZ=.8908130915292852,mz=zr(_s/10)/zr(7*_s/10),DZ=zr(us/10)*mz,qZ=-Qa(us/10)*mz,pz={draw(e,t){const n=Gt(t*OZ),r=DZ*n,i=qZ*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=us*a/5,l=Qa(o),c=zr(o);e.lineTo(c*n,-l*n),e.lineTo(l*r-c*i,c*r+l*i)}e.closePath()}},Qv=Gt(3),_z={draw(e,t){const n=-Gt(t/(Qv*3));e.moveTo(0,n*2),e.lineTo(-Qv*n,-n),e.lineTo(Qv*n,-n),e.closePath()}},IZ=Gt(3),gz={draw(e,t){const n=Gt(t)*.6824,r=n/2,i=n*IZ/2;e.moveTo(0,-n),e.lineTo(i,r),e.lineTo(-i,r),e.closePath()}},fi=-.5,hi=Gt(3)/2,tw=1/Gt(12),$Z=(tw/2+1)*3,yz={draw(e,t){const n=Gt(t/$Z),r=n/2,i=n*tw,a=r,o=n*tw+n,l=-a,c=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(l,c),e.lineTo(fi*r-hi*i,hi*r+fi*i),e.lineTo(fi*a-hi*o,hi*a+fi*o),e.lineTo(fi*l-hi*c,hi*l+fi*c),e.lineTo(fi*r+hi*i,fi*i-hi*r),e.lineTo(fi*a+hi*o,fi*o-hi*a),e.lineTo(fi*l+hi*c,fi*c-hi*l),e.closePath()}},nw={draw(e,t){const n=Gt(t-nc(t/6,1.7))*.6189;e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},LC=[C1,sz,uz,hz,pz,_z,yz],PZ=[C1,fz,nw,gz,oz,dz,cz];function UZ(e,t){let n=null,r=Ld(i);e=typeof e=="function"?e:it(e||C1),t=typeof t=="function"?t:it(t===void 0?64:+t);function i(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:it(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:it(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function gs(){}function mg(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function A1(e){this._context=e}A1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:mg(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:mg(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function BZ(e){return new A1(e)}function vz(e){this._context=e}vz.prototype={areaStart:gs,areaEnd:gs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:mg(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function GZ(e){return new vz(e)}function bz(e){this._context=e}bz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:mg(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function FZ(e){return new bz(e)}function xz(e,t){this._basis=new A1(e),this._beta=t}xz.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,l=-1,c;++l<=n;)c=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(r+c*a),this._beta*t[l]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const HZ=(function e(t){function n(r){return t===1?new A1(r):new xz(r,t)}return n.beta=function(r){return e(+r)},n})(.85);function pg(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function xk(e,t){this._context=e,this._k=(1-t)/6}xk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:pg(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:pg(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const VZ=(function e(t){function n(r){return new xk(r,t)}return n.tension=function(r){return e(+r)},n})(0);function wk(e,t){this._context=e,this._k=(1-t)/6}wk.prototype={areaStart:gs,areaEnd:gs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:pg(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const XZ=(function e(t){function n(r){return new wk(r,t)}return n.tension=function(r){return e(+r)},n})(0);function kk(e,t){this._context=e,this._k=(1-t)/6}kk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:pg(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const YZ=(function e(t){function n(r){return new kk(r,t)}return n.tension=function(r){return e(+r)},n})(0);function Ek(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>er){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>er){var f=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*f+e._x1*e._l23_2a-t*e._l12_2a)/d,o=(o*f+e._y1*e._l23_2a-n*e._l12_2a)/d}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function wz(e,t){this._context=e,this._alpha=t}wz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Ek(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const WZ=(function e(t){function n(r){return t?new wz(r,t):new xk(r,0)}return n.alpha=function(r){return e(+r)},n})(.5);function kz(e,t){this._context=e,this._alpha=t}kz.prototype={areaStart:gs,areaEnd:gs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ek(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const KZ=(function e(t){function n(r){return t?new kz(r,t):new wk(r,0)}return n.alpha=function(r){return e(+r)},n})(.5);function Ez(e,t){this._context=e,this._alpha=t}Ez.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ek(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ZZ=(function e(t){function n(r){return t?new Ez(r,t):new kk(r,0)}return n.alpha=function(r){return e(+r)},n})(.5);function Sz(e){this._context=e}Sz.prototype={areaStart:gs,areaEnd:gs,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function QZ(e){return new Sz(e)}function MC(e){return e<0?-1:1}function OC(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),l=(a*i+o*r)/(r+i);return(MC(a)+MC(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function DC(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Jv(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-r)/3;e._context.bezierCurveTo(r+l,i+l*t,a-l,o-l*n,a,o)}function _g(e){this._context=e}_g.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Jv(this,this._t0,DC(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Jv(this,DC(this,n=OC(this,e,t)),n);break;default:Jv(this,this._t0,n=OC(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Tz(e){this._context=new Cz(e)}(Tz.prototype=Object.create(_g.prototype)).point=function(e,t){_g.prototype.point.call(this,t,e)};function Cz(e){this._context=e}Cz.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function JZ(e){return new _g(e)}function eQ(e){return new Tz(e)}function Az(e){this._context=e}Az.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=qC(e),i=qC(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function qC(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function tQ(e){return new Az(e)}function j1(e,t){this._context=e,this._t=t}j1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function nQ(e){return new j1(e,.5)}function rQ(e){return new j1(e,0)}function iQ(e){return new j1(e,1)}function vc(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,l=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<l;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function bc(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function aQ(e,t){return e[t]}function oQ(e){const t=[];return t.key=e,t}function sQ(){var e=it([]),t=bc,n=vc,r=aQ;function i(a){var o=Array.from(e.apply(this,arguments),oQ),l,c=o.length,f=-1,d;for(const m of a)for(l=0,++f;l<c;++l)(o[l][f]=[0,+r(m,o[l].key,f,a)]).data=m;for(l=0,d=E1(t(o));l<c;++l)o[d[l]].index=l;return n(o,d),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:it(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:it(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?bc:typeof a=="function"?a:it(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??vc,i):n},i}function lQ(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}vc(e,t)}}function uQ(e,t){if((c=e.length)>0)for(var n,r=0,i,a,o,l,c,f=e[t[0]].length;r<f;++r)for(o=l=0,n=0;n<c;++n)(a=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=o,i[1]=o+=a):a<0?(i[1]=l,i[0]=l+=a):(i[0]=0,i[1]=a)}function cQ(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,l=0;o<i;++o)l+=e[o][n][1]||0;r[n][1]+=r[n][0]=-l/2}vc(e,t)}}function fQ(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var l=0,c=0,f=0;l<o;++l){for(var d=e[t[l]],m=d[r][1]||0,p=d[r-1][1]||0,g=(m-p)/2,y=0;y<l;++y){var x=e[t[y]],k=x[r][1]||0,w=x[r-1][1]||0;g+=k-w}c+=m,f+=g*m}i[r-1][1]+=i[r-1][0]=n,c&&(n-=f/c)}i[r-1][1]+=i[r-1][0]=n,vc(e,t)}}function jz(e){var t=e.map(hQ);return bc(e).sort(function(n,r){return t[n]-t[r]})}function hQ(e){for(var t=-1,n=0,r=e.length,i,a=-1/0;++t<r;)(i=+e[t][1])>a&&(a=i,n=t);return n}function Rz(e){var t=e.map(Nz);return bc(e).sort(function(n,r){return t[n]-t[r]})}function Nz(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function dQ(e){return Rz(e).reverse()}function mQ(e){var t=e.length,n,r,i=e.map(Nz),a=jz(e),o=0,l=0,c=[],f=[];for(n=0;n<t;++n)r=a[n],o<l?(o+=i[r],c.push(r)):(l+=i[r],f.push(r));return f.reverse().concat(c)}function pQ(e){return bc(e).reverse()}const Sp=e=>()=>e;function _Q(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function ma(e,t,n){this.k=e,this.x=t,this.y=n}ma.prototype={constructor:ma,scale:function(e){return e===1?this:new ma(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ma(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var R1=new ma(1,0,0);zz.prototype=ma.prototype;function zz(e){for(;!e.__zoom;)if(!(e=e.parentNode))return R1;return e.__zoom}function eb(e){e.stopImmediatePropagation()}function th(e){e.preventDefault(),e.stopImmediatePropagation()}function gQ(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function yQ(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function IC(){return this.__zoom||R1}function vQ(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function bQ(){return navigator.maxTouchPoints||"ontouchstart"in this}function xQ(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function wQ(){var e=gQ,t=yQ,n=xQ,r=vQ,i=bQ,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],l=250,c=sR,f=Ol("start","zoom","end"),d,m,p,g=500,y=150,x=0,k=10;function w(B){B.property("__zoom",IC).on("wheel.zoom",G,{passive:!1}).on("mousedown.zoom",H).on("dblclick.zoom",q).filter(i).on("touchstart.zoom",V).on("touchmove.zoom",W).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}w.transform=function(B,D,j,N){var F=B.selection?B.selection():B;F.property("__zoom",IC),B!==F?z(B,D,j,N):F.interrupt().each(function(){A(this,arguments).event(N).start().zoom(null,typeof D=="function"?D.apply(this,arguments):D).end()})},w.scaleBy=function(B,D,j,N){w.scaleTo(B,function(){var F=this.__zoom.k,Z=typeof D=="function"?D.apply(this,arguments):D;return F*Z},j,N)},w.scaleTo=function(B,D,j,N){w.transform(B,function(){var F=t.apply(this,arguments),Z=this.__zoom,O=j==null?T(F):typeof j=="function"?j.apply(this,arguments):j,U=Z.invert(O),K=typeof D=="function"?D.apply(this,arguments):D;return n(S(C(Z,K),O,U),F,o)},j,N)},w.translateBy=function(B,D,j,N){w.transform(B,function(){return n(this.__zoom.translate(typeof D=="function"?D.apply(this,arguments):D,typeof j=="function"?j.apply(this,arguments):j),t.apply(this,arguments),o)},null,N)},w.translateTo=function(B,D,j,N,F){w.transform(B,function(){var Z=t.apply(this,arguments),O=this.__zoom,U=N==null?T(Z):typeof N=="function"?N.apply(this,arguments):N;return n(R1.translate(U[0],U[1]).scale(O.k).translate(typeof D=="function"?-D.apply(this,arguments):-D,typeof j=="function"?-j.apply(this,arguments):-j),Z,o)},N,F)};function C(B,D){return D=Math.max(a[0],Math.min(a[1],D)),D===B.k?B:new ma(D,B.x,B.y)}function S(B,D,j){var N=D[0]-j[0]*B.k,F=D[1]-j[1]*B.k;return N===B.x&&F===B.y?B:new ma(B.k,N,F)}function T(B){return[(+B[0][0]+ +B[1][0])/2,(+B[0][1]+ +B[1][1])/2]}function z(B,D,j,N){B.on("start.zoom",function(){A(this,arguments).event(N).start()}).on("interrupt.zoom end.zoom",function(){A(this,arguments).event(N).end()}).tween("zoom",function(){var F=this,Z=arguments,O=A(F,Z).event(N),U=t.apply(F,Z),K=j==null?T(U):typeof j=="function"?j.apply(F,Z):j,$=Math.max(U[1][0]-U[0][0],U[1][1]-U[0][1]),ie=F.__zoom,ue=typeof D=="function"?D.apply(F,Z):D,xe=c(ie.invert(K).concat($/ie.k),ue.invert(K).concat($/ue.k));return function(we){if(we===1)we=ue;else{var Pe=xe(we),_e=$/Pe[2];we=new ma(_e,K[0]-Pe[0]*_e,K[1]-Pe[1]*_e)}O.zoom(null,we)}})}function A(B,D,j){return!j&&B.__zooming||new L(B,D)}function L(B,D){this.that=B,this.args=D,this.active=0,this.sourceEvent=null,this.extent=t.apply(B,D),this.taps=0}L.prototype={event:function(B){return B&&(this.sourceEvent=B),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(B,D){return this.mouse&&B!=="mouse"&&(this.mouse[1]=D.invert(this.mouse[0])),this.touch0&&B!=="touch"&&(this.touch0[1]=D.invert(this.touch0[0])),this.touch1&&B!=="touch"&&(this.touch1[1]=D.invert(this.touch1[0])),this.that.__zoom=D,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(B){var D=Bn(this.that).datum();f.call(B,this.that,new _Q(B,{sourceEvent:this.sourceEvent,target:w,transform:this.that.__zoom,dispatch:f}),D)}};function G(B,...D){if(!e.apply(this,arguments))return;var j=A(this,D).event(B),N=this.__zoom,F=Math.max(a[0],Math.min(a[1],N.k*Math.pow(2,r.apply(this,arguments)))),Z=Wr(B);if(j.wheel)(j.mouse[0][0]!==Z[0]||j.mouse[0][1]!==Z[1])&&(j.mouse[1]=N.invert(j.mouse[0]=Z)),clearTimeout(j.wheel);else{if(N.k===F)return;j.mouse=[Z,N.invert(Z)],gl(this),j.start()}th(B),j.wheel=setTimeout(O,y),j.zoom("mouse",n(S(C(N,F),j.mouse[0],j.mouse[1]),j.extent,o));function O(){j.wheel=null,j.end()}}function H(B,...D){if(p||!e.apply(this,arguments))return;var j=B.currentTarget,N=A(this,D,!0).event(B),F=Bn(B.view).on("mousemove.zoom",K,!0).on("mouseup.zoom",$,!0),Z=Wr(B,j),O=B.clientX,U=B.clientY;Xg(B.view),eb(B),N.mouse=[Z,this.__zoom.invert(Z)],gl(this),N.start();function K(ie){if(th(ie),!N.moved){var ue=ie.clientX-O,xe=ie.clientY-U;N.moved=ue*ue+xe*xe>x}N.event(ie).zoom("mouse",n(S(N.that.__zoom,N.mouse[0]=Wr(ie,j),N.mouse[1]),N.extent,o))}function $(ie){F.on("mousemove.zoom mouseup.zoom",null),Yg(ie.view,N.moved),th(ie),N.event(ie).end()}}function q(B,...D){if(e.apply(this,arguments)){var j=this.__zoom,N=Wr(B.changedTouches?B.changedTouches[0]:B,this),F=j.invert(N),Z=j.k*(B.shiftKey?.5:2),O=n(S(C(j,Z),N,F),t.apply(this,D),o);th(B),l>0?Bn(this).transition().duration(l).call(z,O,N,B):Bn(this).call(w.transform,O,N,B)}}function V(B,...D){if(e.apply(this,arguments)){var j=B.touches,N=j.length,F=A(this,D,B.changedTouches.length===N).event(B),Z,O,U,K;for(eb(B),O=0;O<N;++O)U=j[O],K=Wr(U,this),K=[K,this.__zoom.invert(K),U.identifier],F.touch0?!F.touch1&&F.touch0[2]!==K[2]&&(F.touch1=K,F.taps=0):(F.touch0=K,Z=!0,F.taps=1+!!d);d&&(d=clearTimeout(d)),Z&&(F.taps<2&&(m=K[0],d=setTimeout(function(){d=null},g)),gl(this),F.start())}}function W(B,...D){if(this.__zooming){var j=A(this,D).event(B),N=B.changedTouches,F=N.length,Z,O,U,K;for(th(B),Z=0;Z<F;++Z)O=N[Z],U=Wr(O,this),j.touch0&&j.touch0[2]===O.identifier?j.touch0[0]=U:j.touch1&&j.touch1[2]===O.identifier&&(j.touch1[0]=U);if(O=j.that.__zoom,j.touch1){var $=j.touch0[0],ie=j.touch0[1],ue=j.touch1[0],xe=j.touch1[1],we=(we=ue[0]-$[0])*we+(we=ue[1]-$[1])*we,Pe=(Pe=xe[0]-ie[0])*Pe+(Pe=xe[1]-ie[1])*Pe;O=C(O,Math.sqrt(we/Pe)),U=[($[0]+ue[0])/2,($[1]+ue[1])/2],K=[(ie[0]+xe[0])/2,(ie[1]+xe[1])/2]}else if(j.touch0)U=j.touch0[0],K=j.touch0[1];else return;j.zoom("touch",n(S(O,U,K),j.extent,o))}}function I(B,...D){if(this.__zooming){var j=A(this,D).event(B),N=B.changedTouches,F=N.length,Z,O;for(eb(B),p&&clearTimeout(p),p=setTimeout(function(){p=null},g),Z=0;Z<F;++Z)O=N[Z],j.touch0&&j.touch0[2]===O.identifier?delete j.touch0:j.touch1&&j.touch1[2]===O.identifier&&delete j.touch1;if(j.touch1&&!j.touch0&&(j.touch0=j.touch1,delete j.touch1),j.touch0)j.touch0[1]=this.__zoom.invert(j.touch0[0]);else if(j.end(),j.taps===2&&(O=Wr(O,this),Math.hypot(m[0]-O[0],m[1]-O[1])<k)){var U=Bn(this).on("dblclick.zoom");U&&U.apply(this,arguments)}}}return w.wheelDelta=function(B){return arguments.length?(r=typeof B=="function"?B:Sp(+B),w):r},w.filter=function(B){return arguments.length?(e=typeof B=="function"?B:Sp(!!B),w):e},w.touchable=function(B){return arguments.length?(i=typeof B=="function"?B:Sp(!!B),w):i},w.extent=function(B){return arguments.length?(t=typeof B=="function"?B:Sp([[+B[0][0],+B[0][1]],[+B[1][0],+B[1][1]]]),w):t},w.scaleExtent=function(B){return arguments.length?(a[0]=+B[0],a[1]=+B[1],w):[a[0],a[1]]},w.translateExtent=function(B){return arguments.length?(o[0][0]=+B[0][0],o[1][0]=+B[1][0],o[0][1]=+B[0][1],o[1][1]=+B[1][1],w):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},w.constrain=function(B){return arguments.length?(n=B,w):n},w.duration=function(B){return arguments.length?(l=+B,w):l},w.interpolate=function(B){return arguments.length?(c=B,w):c},w.on=function(){var B=f.on.apply(f,arguments);return B===f?w:B},w.clickDistance=function(B){return arguments.length?(x=(B=+B)*B,w):Math.sqrt(x)},w.tapDistance=function(B){return arguments.length?(k=+B,w):k},w}const kQ=Object.freeze(Object.defineProperty({__proto__:null,Adder:Sn,Delaunay:M2,FormatSpecifier:o1,InternMap:Vh,InternSet:vl,Node:Cl,Path:Ed,Voronoi:TR,ZoomTransform:ma,active:kG,arc:ZN,area:JN,areaRadial:zC,ascending:Jt,autoType:XF,axisBottom:d$,axisLeft:m$,axisRight:h$,axisTop:f$,bin:k4,bisect:ds,bisectCenter:sI,bisectLeft:oI,bisectRight:ds,bisector:Ug,blob:KF,blur:lI,blur2:ij,blurImage:uI,brush:DG,brushSelection:LG,brushX:MG,brushY:OG,buffer:QF,chord:IG,chordDirected:PG,chordTranspose:$G,cluster:pX,color:ms,contourDensity:hF,contours:Tx,count:Bg,create:WP,creator:Hg,cross:_I,csv:tH,csvFormat:DF,csvFormatBody:qF,csvFormatRow:$F,csvFormatRows:IF,csvFormatValue:PF,csvParse:AR,csvParseRows:OF,cubehelix:Xi,cumsum:gI,curveBasis:BZ,curveBasisClosed:GZ,curveBasisOpen:FZ,curveBumpX:rz,curveBumpY:iz,curveBundle:HZ,curveCardinal:VZ,curveCardinalClosed:XZ,curveCardinalOpen:YZ,curveCatmullRom:WZ,curveCatmullRomClosed:KZ,curveCatmullRomOpen:ZZ,curveLinear:S1,curveLinearClosed:QZ,curveMonotoneX:JZ,curveMonotoneY:eQ,curveNatural:tQ,curveStep:nQ,curveStepAfter:iQ,curveStepBefore:rQ,descending:nj,deviation:sj,difference:JI,disjoint:e$,dispatch:Ol,drag:iU,dragDisable:Xg,dragEnable:Yg,dsv:eH,dsvFormat:r1,easeBack:X4,easeBackIn:pG,easeBackInOut:X4,easeBackOut:_G,easeBounce:td,easeBounceIn:dG,easeBounceInOut:mG,easeBounceOut:td,easeCircle:V4,easeCircleIn:rG,easeCircleInOut:V4,easeCircleOut:iG,easeCubic:xx,easeCubicIn:WB,easeCubicInOut:xx,easeCubicOut:KB,easeElastic:Y4,easeElasticIn:gG,easeElasticInOut:yG,easeElasticOut:Y4,easeExp:H4,easeExpIn:tG,easeExpInOut:H4,easeExpOut:nG,easeLinear:VB,easePoly:G4,easePolyIn:ZB,easePolyInOut:G4,easePolyOut:QB,easeQuad:B4,easeQuadIn:XB,easeQuadInOut:B4,easeQuadOut:YB,easeSin:F4,easeSinIn:JB,easeSinInOut:F4,easeSinOut:eG,every:XI,extent:Nh,fcumsum:vI,filter:WI,flatGroup:bI,flatRollup:xI,forceCenter:uH,forceCollide:AH,forceLink:RH,forceManyBody:$H,forceRadial:PH,forceSimulation:IH,forceX:UH,forceY:BH,get format(){return s1},formatDefaultLocale:LR,formatLocale:zR,get formatPrefix(){return q2},formatSpecifier:hc,fsum:yI,geoAlbers:g9,geoAlbersUsa:XV,geoArea:QH,geoAzimuthalEqualArea:YV,geoAzimuthalEqualAreaRaw:X2,geoAzimuthalEquidistant:WV,geoAzimuthalEquidistantRaw:Y2,geoBounds:nV,geoCentroid:lV,geoCircle:uV,geoClipAntimeridian:$x,geoClipCircle:t9,geoClipExtent:_V,geoClipRectangle:l1,geoConicConformal:ZV,geoConicConformalRaw:b9,geoConicEqualArea:cg,geoConicEqualAreaRaw:_9,geoConicEquidistant:JV,geoConicEquidistantRaw:x9,geoContains:kV,geoDistance:ng,geoEqualEarth:tX,geoEqualEarthRaw:W2,geoEquirectangular:QV,geoEquirectangularRaw:sd,geoGnomonic:nX,geoGnomonicRaw:K2,geoGraticule:i9,geoGraticule10:EV,geoIdentity:rX,geoInterpolate:SV,geoLength:n9,geoMercator:KV,geoMercatorRaw:jd,geoNaturalEarth1:iX,geoNaturalEarth1Raw:Z2,geoOrthographic:aX,geoOrthographicRaw:Q2,geoPath:qV,geoProjection:wa,geoProjectionMutator:H2,geoRotation:WR,geoStereographic:oX,geoStereographicRaw:J2,geoStream:$i,geoTransform:IV,geoTransverseMercator:sX,geoTransverseMercatorRaw:ek,gray:_U,greatest:yj,greatestIndex:UI,group:fj,groupSort:EI,groups:hj,hcl:D_,hierarchy:c1,histogram:k4,hsl:L_,html:sH,image:rH,index:wI,indexes:kI,interpolate:vs,interpolateArray:wU,interpolateBasis:Yj,interpolateBasisClosed:Wj,interpolateBlues:KK,interpolateBrBG:jK,interpolateBuGn:IK,interpolateBuPu:$K,interpolateCividis:nZ,interpolateCool:aZ,interpolateCubehelix:qU,interpolateCubehelixDefault:rZ,interpolateCubehelixLong:Jg,interpolateDate:tR,interpolateDiscrete:SU,interpolateGnBu:PK,interpolateGreens:ZK,interpolateGreys:QK,interpolateHcl:OU,interpolateHclLong:DU,interpolateHsl:zU,interpolateHslLong:LU,interpolateHue:TU,interpolateInferno:dZ,interpolateLab:MU,interpolateMagma:hZ,interpolateNumber:pi,interpolateNumberArray:k2,interpolateObject:nR,interpolateOrRd:UK,interpolateOranges:tZ,interpolatePRGn:RK,interpolatePiYG:NK,interpolatePlasma:mZ,interpolatePuBu:GK,interpolatePuBuGn:BK,interpolatePuOr:zK,interpolatePuRd:FK,interpolatePurples:JK,interpolateRainbow:oZ,interpolateRdBu:LK,interpolateRdGy:MK,interpolateRdPu:HK,interpolateRdYlBu:OK,interpolateRdYlGn:DK,interpolateReds:eZ,interpolateRgb:Qh,interpolateRgbBasis:Qj,interpolateRgbBasisClosed:xU,interpolateRound:Qg,interpolateSinebow:uZ,interpolateSpectral:qK,interpolateString:E2,interpolateTransformCss:aR,interpolateTransformSvg:oR,interpolateTurbo:cZ,interpolateViridis:fZ,interpolateWarm:iZ,interpolateYlGn:XK,interpolateYlGnBu:VK,interpolateYlOrBr:YK,interpolateYlOrRd:WK,interpolateZoom:sR,interrupt:gl,intersection:t$,interval:BU,isoFormat:cK,isoParse:hK,json:aH,lab:O_,lch:gU,least:PI,leastIndex:xj,line:vk,lineRadial:NC,link:T1,linkHorizontal:az,linkRadial:zZ,linkVertical:NZ,local:Lj,map:KI,matcher:_2,max:Xh,maxIndex:h2,mean:zI,median:LI,medianIndex:MI,merge:m2,min:R_,minIndex:d2,mode:DI,namespace:xd,namespaces:fx,nice:c2,now:kd,pack:HX,packEnclose:$X,packSiblings:GX,pairs:qI,partition:j9,path:L2,pathRound:GG,permute:gj,pie:TZ,piecewise:fR,pointRadial:Ah,pointer:Wr,pointers:ZP,polygonArea:oY,polygonCentroid:sY,polygonContains:fY,polygonHull:cY,polygonLength:hY,precisionFixed:MR,precisionPrefix:OR,precisionRound:DR,quadtree:a1,quantile:Yh,quantileIndex:bj,quantileSorted:vj,quantize:IU,quickselect:Gg,radialArea:zC,radialLine:NC,randomBates:_Y,randomBernoulli:vY,randomBeta:D9,randomBinomial:q9,randomCauchy:xY,randomExponential:gY,randomGamma:rk,randomGeometric:O9,randomInt:mY,randomIrwinHall:M9,randomLcg:TY,randomLogNormal:pY,randomLogistic:wY,randomNormal:nk,randomPareto:yY,randomPoisson:kY,randomUniform:dY,randomWeibull:bY,range:os,rank:$I,reduce:ZI,reverse:QI,rgb:lc,ribbon:ZG,ribbonArrow:QG,rollup:mj,rollups:pj,scaleBand:ik,scaleDiverging:bN,scaleDivergingLog:xN,scaleDivergingPow:_k,scaleDivergingSqrt:yK,scaleDivergingSymlog:wN,scaleIdentity:U9,scaleImplicit:Jx,scaleLinear:P9,scaleLog:G9,scaleOrdinal:h1,scalePoint:CY,scalePow:uk,scaleQuantile:V9,scaleQuantize:X9,scaleRadial:H9,scaleSequential:_N,scaleSequentialLog:gN,scaleSequentialPow:pk,scaleSequentialQuantile:vN,scaleSequentialSqrt:gK,scaleSequentialSymlog:yN,scaleSqrt:$Y,scaleSymlog:F9,scaleThreshold:Y9,scaleTime:pK,scaleUtc:_K,scan:BI,schemeAccent:bK,schemeBlues:HN,schemeBrBG:EN,schemeBuGn:LN,schemeBuPu:MN,schemeCategory10:vK,schemeDark2:xK,schemeGnBu:ON,schemeGreens:VN,schemeGreys:XN,schemeObservable10:wK,schemeOrRd:DN,schemeOranges:KN,schemePRGn:SN,schemePaired:kK,schemePastel1:EK,schemePastel2:SK,schemePiYG:TN,schemePuBu:IN,schemePuBuGn:qN,schemePuOr:CN,schemePuRd:$N,schemePurples:YN,schemeRdBu:AN,schemeRdGy:jN,schemeRdPu:PN,schemeRdYlBu:RN,schemeRdYlGn:NN,schemeReds:WN,schemeSet1:TK,schemeSet2:CK,schemeSet3:AK,schemeSpectral:zN,schemeTableau10:kN,schemeYlGn:BN,schemeYlGnBu:UN,schemeYlOrBr:GN,schemeYlOrRd:FN,select:Bn,selectAll:QP,selection:Dl,selector:Vg,selectorAll:p2,shuffle:GI,shuffler:wj,some:YI,sort:lx,stack:sQ,stackOffsetDiverging:uQ,stackOffsetExpand:lQ,stackOffsetNone:vc,stackOffsetSilhouette:cQ,stackOffsetWiggle:fQ,stackOrderAppearance:jz,stackOrderAscending:Rz,stackOrderDescending:dQ,stackOrderInsideOut:mQ,stackOrderNone:bc,stackOrderReverse:pQ,stratify:WX,style:wl,subset:r$,sum:FI,superset:Ej,svg:lH,symbol:UZ,symbolAsterisk:oz,symbolCircle:C1,symbolCross:sz,symbolDiamond:uz,symbolDiamond2:cz,symbolPlus:fz,symbolSquare:hz,symbolSquare2:dz,symbolStar:pz,symbolTimes:nw,symbolTriangle:_z,symbolTriangle2:gz,symbolWye:yz,symbolX:nw,symbols:LC,symbolsFill:LC,symbolsStroke:PZ,text:i1,thresholdFreedmanDiaconis:RI,thresholdScott:NI,thresholdSturges:f2,tickFormat:$9,tickIncrement:xl,tickStep:j_,ticks:bl,timeDay:Ic,timeDays:HY,get timeFormat(){return hk},timeFormatDefaultLocale:mN,timeFormatLocale:lN,timeFriday:Z9,timeFridays:QY,timeHour:_1,timeHours:GY,timeInterval:_n,timeMillisecond:_c,timeMilliseconds:mC,timeMinute:m1,timeMinutes:UY,timeMonday:ld,timeMondays:YY,timeMonth:y1,timeMonths:oW,get timeParse(){return dN},timeSaturday:Q9,timeSaturdays:JY,timeSecond:oo,timeSeconds:_C,timeSunday:gc,timeSundays:gC,timeThursday:Al,timeThursdays:ZY,timeTickInterval:sN,timeTicks:oN,timeTuesday:W9,timeTuesdays:WY,timeWednesday:K9,timeWednesdays:KY,timeWeek:gc,timeWeeks:gC,timeYear:ya,timeYears:lW,timeout:gx,timer:t1,timerFlush:mR,transition:yR,transpose:kj,tree:R9,treemap:nY,treemapBinary:rY,treemapDice:Rd,treemapResquarify:aY,treemapSlice:f1,treemapSliceDice:iY,treemapSquarify:L9,tsv:nH,tsvFormat:BF,tsvFormatBody:GF,tsvFormatRow:HF,tsvFormatRows:FF,tsvFormatValue:VF,tsvParse:jR,tsvParseRows:UF,union:i$,unixDay:fk,unixDays:XY,utcDay:zd,utcDays:VY,get utcFormat(){return b1},utcFriday:tN,utcFridays:iW,utcHour:g1,utcHours:FY,utcMillisecond:_c,utcMilliseconds:mC,utcMinute:p1,utcMinutes:BY,utcMonday:ud,utcMondays:eW,utcMonth:v1,utcMonths:sW,get utcParse(){return dk},utcSaturday:nN,utcSaturdays:aW,utcSecond:oo,utcSeconds:_C,utcSunday:yc,utcSundays:yC,utcThursday:jl,utcThursdays:rW,utcTickInterval:aN,utcTicks:iN,utcTuesday:J9,utcTuesdays:tW,utcWednesday:eN,utcWednesdays:nW,utcWeek:yc,utcWeeks:yC,utcYear:va,utcYears:uW,variance:oj,window:g2,xml:oH,zip:VI,zoom:wQ,zoomIdentity:R1,zoomTransform:zz},Symbol.toStringTag,{value:"Module"}));function $C(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Lz(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function tb(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function EQ(e){return e.target.depth}function SQ(e){return e.depth}function TQ(e,t){return t-1-e.height}function Mz(e,t){return e.sourceLinks.length?e.depth:t-1}function CQ(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?Lz(e.sourceLinks,EQ)-1:0}function Tp(e){return function(){return e}}function PC(e,t){return gg(e.source,t.source)||e.index-t.index}function UC(e,t){return gg(e.target,t.target)||e.index-t.index}function gg(e,t){return e.y0-t.y0}function nb(e){return e.value}function AQ(e){return e.index}function jQ(e){return e.nodes}function RQ(e){return e.links}function BC(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function GC({nodes:e}){for(const t of e){let n=t.y0,r=n;for(const i of t.sourceLinks)i.y0=n+i.width/2,n+=i.width;for(const i of t.targetLinks)i.y1=r+i.width/2,r+=i.width}}function NQ(){let e=0,t=0,n=1,r=1,i=24,a=8,o,l=AQ,c=Mz,f,d,m=jQ,p=RQ,g=6;function y(){const D={nodes:m.apply(null,arguments),links:p.apply(null,arguments)};return x(D),k(D),w(D),C(D),z(D),GC(D),D}y.update=function(D){return GC(D),D},y.nodeId=function(D){return arguments.length?(l=typeof D=="function"?D:Tp(D),y):l},y.nodeAlign=function(D){return arguments.length?(c=typeof D=="function"?D:Tp(D),y):c},y.nodeSort=function(D){return arguments.length?(f=D,y):f},y.nodeWidth=function(D){return arguments.length?(i=+D,y):i},y.nodePadding=function(D){return arguments.length?(a=o=+D,y):a},y.nodes=function(D){return arguments.length?(m=typeof D=="function"?D:Tp(D),y):m},y.links=function(D){return arguments.length?(p=typeof D=="function"?D:Tp(D),y):p},y.linkSort=function(D){return arguments.length?(d=D,y):d},y.size=function(D){return arguments.length?(e=t=0,n=+D[0],r=+D[1],y):[n-e,r-t]},y.extent=function(D){return arguments.length?(e=+D[0][0],n=+D[1][0],t=+D[0][1],r=+D[1][1],y):[[e,t],[n,r]]},y.iterations=function(D){return arguments.length?(g=+D,y):g};function x({nodes:D,links:j}){for(const[F,Z]of D.entries())Z.index=F,Z.sourceLinks=[],Z.targetLinks=[];const N=new Map(D.map((F,Z)=>[l(F,Z,D),F]));for(const[F,Z]of j.entries()){Z.index=F;let{source:O,target:U}=Z;typeof O!="object"&&(O=Z.source=BC(N,O)),typeof U!="object"&&(U=Z.target=BC(N,U)),O.sourceLinks.push(Z),U.targetLinks.push(Z)}if(d!=null)for(const{sourceLinks:F,targetLinks:Z}of D)F.sort(d),Z.sort(d)}function k({nodes:D}){for(const j of D)j.value=j.fixedValue===void 0?Math.max(tb(j.sourceLinks,nb),tb(j.targetLinks,nb)):j.fixedValue}function w({nodes:D}){const j=D.length;let N=new Set(D),F=new Set,Z=0;for(;N.size;){for(const O of N){O.depth=Z;for(const{target:U}of O.sourceLinks)F.add(U)}if(++Z>j)throw new Error("circular link");N=F,F=new Set}}function C({nodes:D}){const j=D.length;let N=new Set(D),F=new Set,Z=0;for(;N.size;){for(const O of N){O.height=Z;for(const{source:U}of O.targetLinks)F.add(U)}if(++Z>j)throw new Error("circular link");N=F,F=new Set}}function S({nodes:D}){const j=$C(D,Z=>Z.depth)+1,N=(n-e-i)/(j-1),F=new Array(j);for(const Z of D){const O=Math.max(0,Math.min(j-1,Math.floor(c.call(null,Z,j))));Z.layer=O,Z.x0=e+O*N,Z.x1=Z.x0+i,F[O]?F[O].push(Z):F[O]=[Z]}if(f)for(const Z of F)Z.sort(f);return F}function T(D){const j=Lz(D,N=>(r-t-(N.length-1)*o)/tb(N,nb));for(const N of D){let F=t;for(const Z of N){Z.y0=F,Z.y1=F+Z.value*j,F=Z.y1+o;for(const O of Z.sourceLinks)O.width=O.value*j}F=(r-F+o)/(N.length+1);for(let Z=0;Z<N.length;++Z){const O=N[Z];O.y0+=F*(Z+1),O.y1+=F*(Z+1)}W(N)}}function z(D){const j=S(D);o=Math.min(a,(r-t)/($C(j,N=>N.length)-1)),T(j);for(let N=0;N<g;++N){const F=Math.pow(.99,N),Z=Math.max(1-F,(N+1)/g);L(j,F,Z),A(j,F,Z)}}function A(D,j,N){for(let F=1,Z=D.length;F<Z;++F){const O=D[F];for(const U of O){let K=0,$=0;for(const{source:ue,value:xe}of U.targetLinks){let we=xe*(U.layer-ue.layer);K+=I(ue,U)*we,$+=we}if(!($>0))continue;let ie=(K/$-U.y0)*j;U.y0+=ie,U.y1+=ie,V(U)}f===void 0&&O.sort(gg),G(O,N)}}function L(D,j,N){for(let F=D.length,Z=F-2;Z>=0;--Z){const O=D[Z];for(const U of O){let K=0,$=0;for(const{target:ue,value:xe}of U.sourceLinks){let we=xe*(ue.layer-U.layer);K+=B(U,ue)*we,$+=we}if(!($>0))continue;let ie=(K/$-U.y0)*j;U.y0+=ie,U.y1+=ie,V(U)}f===void 0&&O.sort(gg),G(O,N)}}function G(D,j){const N=D.length>>1,F=D[N];q(D,F.y0-o,N-1,j),H(D,F.y1+o,N+1,j),q(D,r,D.length-1,j),H(D,t,0,j)}function H(D,j,N,F){for(;N<D.length;++N){const Z=D[N],O=(j-Z.y0)*F;O>1e-6&&(Z.y0+=O,Z.y1+=O),j=Z.y1+o}}function q(D,j,N,F){for(;N>=0;--N){const Z=D[N],O=(Z.y1-j)*F;O>1e-6&&(Z.y0-=O,Z.y1-=O),j=Z.y0-o}}function V({sourceLinks:D,targetLinks:j}){if(d===void 0){for(const{source:{sourceLinks:N}}of j)N.sort(UC);for(const{target:{targetLinks:N}}of D)N.sort(PC)}}function W(D){if(d===void 0)for(const{sourceLinks:j,targetLinks:N}of D)j.sort(UC),N.sort(PC)}function I(D,j){let N=D.y0-(D.sourceLinks.length-1)*o/2;for(const{target:F,width:Z}of D.sourceLinks){if(F===j)break;N+=Z+o}for(const{source:F,width:Z}of j.targetLinks){if(F===D)break;N-=Z}return N}function B(D,j){let N=j.y0-(j.targetLinks.length-1)*o/2;for(const{source:F,width:Z}of j.targetLinks){if(F===D)break;N+=Z+o}for(const{target:F,width:Z}of D.sourceLinks){if(F===j)break;N-=Z}return N}return y}var rw=Math.PI,iw=2*rw,al=1e-6,zQ=iw-al;function aw(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Oz(){return new aw}aw.prototype=Oz.prototype={constructor:aw,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,a){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,l=n-e,c=r-t,f=a-e,d=o-t,m=f*f+d*d;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(m>al)if(!(Math.abs(d*l-c*f)>al)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var p=n-a,g=r-o,y=l*l+c*c,x=p*p+g*g,k=Math.sqrt(y),w=Math.sqrt(m),C=i*Math.tan((rw-Math.acos((y+m-x)/(2*k*w)))/2),S=C/w,T=C/k;Math.abs(S-1)>al&&(this._+="L"+(e+S*f)+","+(t+S*d)),this._+="A"+i+","+i+",0,0,"+ +(d*p>f*g)+","+(this._x1=e+T*l)+","+(this._y1=t+T*c)}},arc:function(e,t,n,r,i,a){e=+e,t=+t,n=+n,a=!!a;var o=n*Math.cos(r),l=n*Math.sin(r),c=e+o,f=t+l,d=1^a,m=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+c+","+f:(Math.abs(this._x1-c)>al||Math.abs(this._y1-f)>al)&&(this._+="L"+c+","+f),n&&(m<0&&(m=m%iw+iw),m>zQ?this._+="A"+n+","+n+",0,1,"+d+","+(e-o)+","+(t-l)+"A"+n+","+n+",0,1,"+d+","+(this._x1=c)+","+(this._y1=f):m>al&&(this._+="A"+n+","+n+",0,"+ +(m>=rw)+","+d+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function FC(e){return function(){return e}}function LQ(e){return e[0]}function MQ(e){return e[1]}var OQ=Array.prototype.slice;function DQ(e){return e.source}function qQ(e){return e.target}function IQ(e){var t=DQ,n=qQ,r=LQ,i=MQ,a=null;function o(){var l,c=OQ.call(arguments),f=t.apply(this,c),d=n.apply(this,c);if(a||(a=l=Oz()),e(a,+r.apply(this,(c[0]=f,c)),+i.apply(this,c),+r.apply(this,(c[0]=d,c)),+i.apply(this,c)),l)return a=null,l+""||null}return o.source=function(l){return arguments.length?(t=l,o):t},o.target=function(l){return arguments.length?(n=l,o):n},o.x=function(l){return arguments.length?(r=typeof l=="function"?l:FC(+l),o):r},o.y=function(l){return arguments.length?(i=typeof l=="function"?l:FC(+l),o):i},o.context=function(l){return arguments.length?(a=l??null,o):a},o}function $Q(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function PQ(){return IQ($Q)}function UQ(e){return[e.source.x1,e.y0]}function BQ(e){return[e.target.x0,e.y1]}function GQ(){return PQ().source(UQ).target(BQ)}const FQ=Object.freeze(Object.defineProperty({__proto__:null,sankey:NQ,sankeyCenter:CQ,sankeyJustify:Mz,sankeyLeft:SQ,sankeyLinkHorizontal:GQ,sankeyRight:TQ},Symbol.toStringTag,{value:"Module"}));var HQ=function(){const t=Array.prototype.slice.call(arguments).filter(Boolean),n={},r=[];t.forEach(a=>{(a?a.split(" "):[]).forEach(l=>{if(l.startsWith("atm_")){const[,c]=l.split("_");n[c]=l}else r.push(l)})});const i=[];for(const a in n)Object.prototype.hasOwnProperty.call(n,a)&&i.push(n[a]);return i.push(...r),i.join(" ")},J=HQ;const VQ="atm_9s_116y0ak atm_jb_1yvxh5s atm_e2_tel60m atm_h_1h6ojuz atm_fc_1h6ojuz atm_l8_9wwvsf atm_5j_1i9d2r atm_c8_1o6fbio atm_cp_1ts48j8 atm_cs_1d1fc98 atm_g3_kb7nvz",HC="atm_26_yzuxxm atm_7l_1uoma54",XQ="atm_26_rnzfq9 atm_7l_hq4ovn",YQ="atm_26_fqxs1t atm_7l_4fh4vv atm_f7ac6m_xtbq9y atm_17yse2l_1u1jrmn",WQ="atm_jb_idpfg4 atm_vy_kn8yyo atm_e2_kn8yyo atm_l8_idpfg4",KQ={default:HC,accent:XQ,solid:YQ,dot:J(HC,WQ)};function Md({children:e,variant:t="default",className:n="",...r}){const i=J("ds-badge",VQ,KQ[t],t!=="default"?`ds-badge--${t}`:"",n);return b.jsx("span",{className:i,...r,children:t==="dot"?null:e})}const ZQ="data:image/svg+xml,%3csvg%20width='200'%20height='200'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='translate(16%2016)%20scale(1.14)'%3e%3cg%20transform='rotate(0)'%3e%3ccircle%20cx='0'%20cy='-9.5'%20r='3.3'%20fill='%232e90fa'/%3e%3cpath%20d='M-0.9%20-7L0.9%20-7L0%20-0.9Z'%20fill='%232e90fa'/%3e%3c/g%3e%3cg%20transform='rotate(60)'%3e%3ccircle%20cx='0'%20cy='-9.5'%20r='3.3'%20fill='%238b5cf6'/%3e%3cpath%20d='M-0.9%20-7L0.9%20-7L0%20-0.9Z'%20fill='%238b5cf6'/%3e%3c/g%3e%3cg%20transform='rotate(120)'%3e%3ccircle%20cx='0'%20cy='-9.5'%20r='3.3'%20fill='%231f9d57'/%3e%3cpath%20d='M-0.9%20-7L0.9%20-7L0%20-0.9Z'%20fill='%231f9d57'/%3e%3c/g%3e%3cg%20transform='rotate(180)'%3e%3ccircle%20cx='0'%20cy='-9.5'%20r='3.3'%20fill='%23e07b14'/%3e%3cpath%20d='M-0.9%20-7L0.9%20-7L0%20-0.9Z'%20fill='%23e07b14'/%3e%3c/g%3e%3cg%20transform='rotate(240)'%3e%3ccircle%20cx='0'%20cy='-9.5'%20r='3.3'%20fill='%23e0a90b'/%3e%3cpath%20d='M-0.9%20-7L0.9%20-7L0%20-0.9Z'%20fill='%23e0a90b'/%3e%3c/g%3e%3cg%20transform='rotate(300)'%3e%3ccircle%20cx='0'%20cy='-9.5'%20r='3.3'%20fill='%238a7d1f'/%3e%3cpath%20d='M-0.9%20-7L0.9%20-7L0%20-0.9Z'%20fill='%238a7d1f'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",QQ="atm_9s_1ulexfb atm_vy_1c988v4 atm_e2_1c988v4 atm_jp_1f51e7f";function Dz({className:e="",decorative:t=!1,alt:n="Reqvire",...r}){return b.jsx("img",{src:ZQ,className:J("ds-brandmark",QQ,e),alt:t?"":n,"aria-hidden":t||void 0,...r})}const JQ={primary:"ds-btn--primary",accent:"ds-btn--accent",secondary:"ds-btn--secondary",ghost:"ds-btn--ghost",danger:"ds-btn--danger",link:"ds-btn--link"},eJ={sm:"ds-btn--sm",md:"",lg:"ds-btn--lg"},tJ="atm_9s_116y0ak atm_e2_15fao4p atm_h_1h6ojuz atm_fc_1h6ojuz atm_cx_tx1for atm_l8_1yx7vd1 atm_3f_e8f45q atm_5j_ab5uq2 atm_9j_tlke0l atm_bx_rhlbdi atm_c8_1m800s6 atm_cs_19dj2kj atm_g3_kb7nvz atm_rd_glywfm atm_vb_glywfm atm_vv_1q9ccgz atm_uc_yfy9nd atm_6tqpqf_1ulexfb atm_1pqnrs9_1aou828 atm_1dlbvfv_1aou828 atm_yqcrq0_12336oc atm_17yrrpa_glywfm atm_1yl5u20_13i1o1w atm_1jhk75u_3g36qu atm_1vt4hf4_glywfm",nJ="atm_26_1u1jrmn atm_4b_1u1jrmn atm_7l_4fh4vv atm_1tgqd35_wrwb40 atm_18vqbco_wrwb40 atm_1kevezh_7oqvg0 atm_f7ac6m_4fh4vv atm_18b2yil_4fh4vv atm_17yse2l_1u1jrmn atm_s2sod9_1dy96rj atm_1sjwpa0_1dy96rj",rJ="atm_26_hq4ovn atm_4b_hq4ovn atm_7l_9541rp atm_1tgqd35_iq6dbe atm_18vqbco_iq6dbe atm_1kevezh_1bhb51v",iJ="atm_26_1u3842e atm_4b_icygq7 atm_7l_an4usv atm_70_1xzuvaq atm_1tgqd35_8o97w atm_18vqbco_1627y59 atm_1kevezh_cr53r2",aJ="atm_26_1j28jx2 atm_7l_1uoma54 atm_1tgqd35_8o97w atm_18uqgji_1r1dq30 atm_1kevezh_cr53r2",oJ="atm_26_1ox2th8 atm_4b_1ox2th8 atm_7l_4fh4vv atm_dzm1xb_1y7bjl8",sJ="atm_e2_1mv84c8 atm_l8_1vxnein atm_5j_mrub5a atm_c8_ouk0ow",lJ="atm_e2_qp9j9c atm_l8_16ggvab atm_c8_1c8rstr",uJ="atm_9s_1txwivl atm_vy_1osqo2v",VC="atm_9s_116y0ak",cJ="atm_e2_1wugsn5 atm_l8_14k80hk atm_3f_idpfg4 atm_26_1j28jx2 atm_7l_1uoma54 atm_18uqgji_1r1dq30",fJ={primary:nJ,accent:rJ,secondary:iJ,ghost:aJ,danger:oJ,link:cJ},hJ={sm:sJ,md:"",lg:lJ};function cs({children:e,tone:t="secondary",size:n="md",iconLeft:r,iconRight:i,block:a=!1,className:o="",type:l="button",...c}){return b.jsxs("button",{type:l,className:J("ds-btn",tJ,fJ[t],JQ[t],hJ[n],eJ[n],a?uJ:"",a?"ds-btn--block":"",o),...c,children:[r?b.jsx("span",{className:J("ds-btn__icon",VC),children:r}):null,e?b.jsx("span",{className:"ds-btn__label",children:e}):null,i?b.jsx("span",{className:J("ds-btn__icon",VC),children:i}):null]})}const dJ="atm_mk_h2mmj6 atm_uc_1skjoc2 atm_6tqpqf_1ulexfb atm_yqcrq0_12336oc",mJ="atm_26_hqzwp4 atm_3f_xbw5ta atm_5j_1pr0uq2 atm_70_1xzuvaq",pJ="atm_l8_1doep66",_J="atm_9j_tlke0l atm_18vqbco_1627y59 atm_raf0b7_3p501a",gJ="atm_26_11e0c7w atm_4b_md3425 atm_70_1q7zb atm_18vqbco_3h7s58 atm_raf0b7_11o4pai",yJ="atm_mk_stnw88 atm_tk_idpfg4 atm_6i_idpfg4 atm_fq_idpfg4 atm_vy_12flxjw atm_5j_amy8ow atm_26_z7ltq2",vJ="atm_wqwwid_hq4ovn atm_17ek204_ob1ic4 atm_1m42hzi_18o30sh atm_1ke6a83_1ukkuzo atm_sx5p8j_vda1xk atm_hlv8he_dilh6o atm_cqituh_1423x9t atm_70r1a7_1pqzlyb atm_90xhky_k6z0tu";function N1({children:e,interactive:t=!1,selected:n=!1,padded:r=!0,accentColorToken:i,className:a="",...o}){return b.jsxs("div",{className:J("ds-card",dJ,mJ,r?pJ:"",r?"ds-card--pad":"",t?_J:"",t?"ds-card--interactive":"",n?gJ:"",n?"ds-card--selected":"",i?vJ:"",a),"data-accent-token":i,...o,children:[i?b.jsx("span",{className:J("ds-card__accent",yJ)}):null,e]})}const bJ={search:'<circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/>',x:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',plus:'<path d="M5 12h14"/><path d="M12 5v14"/>',minus:'<path d="M5 12h14"/>',check:'<path d="M20 6 9 17l-5-5"/>',"chevron-right":'<path d="m9 18 6-6-6-6"/>',"chevron-left":'<path d="m15 18-6-6 6-6"/>',"chevron-down":'<path d="m6 9 6 6 6-6"/>',"chevron-up":'<path d="m18 15-6-6-6 6"/>',"arrow-up-right":'<path d="M7 7h10v10"/><path d="M7 17 17 7"/>',"alert-triangle":'<path d="m21.73 18-8-14a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"/><path d="M12 9v4"/><path d="M12 17h.01"/>',archive:'<rect width="20" height="5" x="2" y="3" rx="1"/><path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"/><path d="M10 12h4"/>',folder:'<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>',"folder-open":'<path d="m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"/>',file:'<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/>',"file-text":'<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M16 13H8"/><path d="M16 17H8"/><path d="M10 9H8"/>',"external-link":'<path d="M15 3h6v6"/><path d="M10 14 21 3"/><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>',box:'<path d="M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"/><path d="m3.3 7 8.7 5 8.7-5"/><path d="M12 22V12"/>',database:'<ellipse cx="12" cy="5" rx="9" ry="3"/><path d="M3 5v14a9 3 0 0 0 18 0V5"/><path d="M3 12a9 3 0 0 0 18 0"/>',tags:'<path d="m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4l-5.6 5.6a2.4 2.4 0 0 1-3.4 0L6 14V5z"/><path d="M9.5 9.5h.01"/><path d="m3 7 8.6 8.6"/>',network:'<circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><path d="m8.6 13.5 6.8 3.9"/><path d="m15.4 6.5-6.8 3.9"/>',globe:'<circle cx="12" cy="12" r="10"/><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"/><path d="M2 12h20"/>',activity:'<path d="M22 12h-4l-3 9L9 3l-3 9H2"/>',grid:'<rect width="7" height="7" x="3" y="3" rx="1"/><rect width="7" height="7" x="14" y="3" rx="1"/><rect width="7" height="7" x="14" y="14" rx="1"/><rect width="7" height="7" x="3" y="14" rx="1"/>',"layout-grid":'<rect width="7" height="7" x="3" y="3" rx="1"/><rect width="7" height="7" x="14" y="3" rx="1"/><rect width="7" height="7" x="14" y="14" rx="1"/><rect width="7" height="7" x="3" y="14" rx="1"/>',list:'<path d="M8 6h13"/><path d="M8 12h13"/><path d="M8 18h13"/><path d="M3 6h.01"/><path d="M3 12h.01"/><path d="M3 18h.01"/>',"layout-list":'<rect width="7" height="7" x="3" y="3" rx="1"/><path d="M14 4h7"/><path d="M14 9h7"/><rect width="7" height="7" x="3" y="14" rx="1"/><path d="M14 15h7"/><path d="M14 20h7"/>',table:'<path d="M12 3v18"/><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M3 9h18"/><path d="M3 15h18"/>',"pie-chart":'<path d="M21 12c.6 0 1-.4.9-1A10 10 0 0 0 13 2.1c-.6-.1-1 .4-1 .9v8a1 1 0 0 0 1 1z"/><path d="M21.2 15a10 10 0 1 1-12.2-12"/>',"rotate-ccw":'<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.7 2.7L3 8"/><path d="M3 3v5h5"/>',settings:'<path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/>',sliders:'<path d="M4 21v-7"/><path d="M4 10V3"/><path d="M12 21v-9"/><path d="M12 8V3"/><path d="M20 21v-5"/><path d="M20 12V3"/><path d="M2 14h4"/><path d="M10 8h4"/><path d="M18 16h4"/>',download:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><path d="m7 10 5 5 5-5"/><path d="M12 15V3"/>',"git-branch":'<path d="M6 3v12"/><circle cx="18" cy="6" r="3"/><circle cx="6" cy="18" r="3"/><path d="M18 9a9 9 0 0 1-9 9"/>',target:'<circle cx="12" cy="12" r="10"/><circle cx="12" cy="12" r="6"/><circle cx="12" cy="12" r="2"/>',sun:'<circle cx="12" cy="12" r="4"/><path d="M12 2v2"/><path d="M12 20v2"/><path d="m4.93 4.93 1.41 1.41"/><path d="m17.66 17.66 1.41 1.41"/><path d="M2 12h2"/><path d="M20 12h2"/><path d="m6.34 17.66-1.41 1.41"/><path d="m19.07 4.93-1.41 1.41"/>',moon:'<path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"/>',"help-circle":'<circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><path d="M12 17h.01"/>',filter:'<polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"/>',diamond:'<path d="M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0Z"/>',layers:'<path d="m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z"/><path d="m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65"/><path d="m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65"/>',link:'<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/>',copy:'<rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',"wrap-text":'<path d="M3 6h18"/><path d="M3 12h15a3 3 0 1 1 0 6h-4"/><path d="m16 16-2 2 2 2"/><path d="M3 18h7"/>',circle:'<circle cx="12" cy="12" r="10"/>'},xJ="atm_9s_1ulexfb atm_am_12336oc";function at({name:e,size:t=18,strokeWidth:n=2,className:r="",...i}){const a=bJ[e];return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t,height:t,fill:"none",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:J("ds-icon",xJ,r),"aria-hidden":"true",dangerouslySetInnerHTML:{__html:a},...i})}const wJ="atm_9s_116y0ak atm_vy_15fao4p atm_e2_15fao4p atm_h_1h6ojuz atm_fc_1h6ojuz atm_3f_e8f45q atm_5j_ab5uq2 atm_9j_tlke0l atm_uc_jb2mq9 atm_6tqpqf_1ulexfb atm_1pqnrs9_fjcok3 atm_1dlbvfv_fjcok3 atm_yqcrq0_12336oc atm_17yrrpa_glywfm atm_1yl5u20_13i1o1w atm_1jhk75u_3g36qu atm_1vt4hf4_glywfm",kJ="atm_26_1j28jx2 atm_7l_1mqbmot atm_1tgqd35_8o97w atm_18uqgji_1r1dq30 atm_1kevezh_cr53r2 atm_fezvbd_rnzfq9 atm_1cm2nw2_hq4ovn",EJ="atm_1tgqd35_1j28jx2 atm_18uqgji_1r1dq30",SJ="atm_vy_1mv84c8 atm_e2_1mv84c8 atm_1pqnrs9_1aou828 atm_1dlbvfv_1aou828";function xc({children:e,size:t="md",tone:n="secondary",active:r=!1,className:i="",type:a="button",...o}){return b.jsx("button",{type:a,className:J("ds-iconbtn",wJ,kJ,t==="sm"?SJ:"",t==="sm"?"ds-iconbtn--sm":"",n==="ghost"?EJ:"",n==="ghost"?"ds-iconbtn--ghost":"",r?"is-active":"",i),"aria-pressed":r||void 0,...o,children:e})}var TJ=tj();const qz=se.createContext(null),Iz=se.createContext(null),CJ="atm_uio85f_127d50b atm_lylcde_13pr3wf atm_mk_1n9t6rb atm_f3_idpfg4 atm_wq_1lpfmp2 atm_9s_1txwivl atm_73_usvi9m atm_h_1y6m0gg atm_fc_1h6ojuz atm_ks_1wugsn5 atm_l8_1qtjdrn atm_26_qsh5ud atm_20_isg5lq",AJ="atm_1a8o0m0_cpeews atm_9s_1txwivl atm_vy_1i0w06v atm_iy_jk6imf atm_ar_1bp4okc atm_ks_15vqwwr atm_3f_ag7trk atm_5j_19ma0su atm_26_198lp58 atm_7l_an4usv atm_70_dxqsf1 atm_6tqpqf_1ulexfb atm_yqcrq0_12336oc",jJ="atm_9s_1txwivl atm_am_12336oc atm_h_1h6ojuz atm_cx_1aqtv8w atm_l8_jvtp5e atm_40_xbw5ta atm_26_1u3842e",RJ="atm_am_ggq5uc atm_j6_idpfg4 atm_ks_1wugsn5 atm_l8_198x15b",NJ="atm_9s_1txwivl atm_am_12336oc atm_h_1h6ojuz atm_cx_1aqtv8w atm_l8_1d3q60g atm_67_xbw5ta atm_26_198lp58",zJ="atm_am_ggq5uc atm_jb_idpfg4 atm_c8_asey3o";function Sk({open:e,onOpenChange:t,children:n}){return se.useEffect(()=>{if(!e)return;const r=i=>{i.key==="Escape"&&(t==null||t(!1))};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[t,e]),b.jsx(qz.Provider,{value:{open:e,onOpenChange:t},children:n})}function Tk({className:e="",children:t,showCloseButton:n,"aria-describedby":r,...i}){const a=se.useContext(qz);return a!=null&&a.open?TJ.createPortal(b.jsx(Iz.Provider,{value:a,children:b.jsx("div",{className:J("ds-modal__overlay",CJ),role:"presentation",onMouseDown:o=>{var l;o.target===o.currentTarget&&((l=a.onOpenChange)==null||l.call(a,!1))},children:b.jsx("div",{className:J("ds-modal",AJ,e),role:"dialog","aria-modal":"true","aria-describedby":r,tabIndex:-1,...i,children:t})})}),document.body):null}function z1({className:e="",children:t,...n}){return b.jsx("div",{className:J("ds-modal__head",jJ,e),...n,children:t})}function yg({className:e="",children:t,...n}){return b.jsx("div",{className:J("ds-modal__body",RJ,e),...n,children:t})}function Ck({className:e="",children:t,...n}){return b.jsx("div",{className:J("ds-modal__foot",NJ,e),...n,children:t})}function L1({className:e="",children:t,...n}){return b.jsx("h2",{className:J("ds-modal__title",zJ,e),...n,children:t})}function wc({asChild:e=!1,children:t,onClick:n,...r}){const i=se.useContext(Iz),a=()=>{var o;return(o=i==null?void 0:i.onOpenChange)==null?void 0:o.call(i,!1)};if(e&&se.isValidElement(t)){const o=t;return se.cloneElement(o,{...r,onClick:l=>{var c,f;(f=(c=o.props).onClick)==null||f.call(c,l),n==null||n(l),l.defaultPrevented||a()}})}return b.jsx("button",{type:"button",onClick:o=>{n==null||n(o),o.defaultPrevented||a()},...r,children:t})}const LJ="atm_mk_h2mmj6 atm_9s_1txwivl atm_h_1h6ojuz atm_vy_1osqo2v atm_l5yjj2_1osqo2v atm_10v1dpd_twvvju atm_1mn6vw9_1gu3nbf atm_g5371v_rhlbdi atm_13kqde0_8q8ejr atm_dsllz1_glywfm atm_qt8kjj_craoge atm_17u6gxd_tqb53b atm_5rvr21_ly2sax atm_1pzn1aw_stnw88 atm_n3sdp0_3qeuor atm_7hkyni_116y0ak atm_18pqx7h_glywfm atm_1junx1r_bsk7q5 atm_1syykut_bsk7q5 atm_1i0r3uh_stnw88 atm_4dief4_ek2tx5 atm_gi5rv4_ohusjj atm_8ygghq_l6f2xw atm_vf0s2d_1o6fbio atm_1eryx3b_ecmuoo atm_6tqpqf_1ulexfb atm_yqcrq0_12336oc",MJ="atm_107uv0v_1onyx65 atm_1odutdl_1udocy6 atm_3hx951_14oi5nx atm_1dxv5io_19ngvdh atm_12b3elg_15gap19 atm_xtsype_12k0ett atm_hckj7y_1mqtkib atm_1m2wwse_5pxrf4 atm_uqn6ho_1y5v5r3 atm_w78jez_e726ol atm_1vbphwy_19vs8gd atm_8ocf17_suuzbj",OJ="atm_10v1dpd_qp9j9c atm_18civp3_motwzl atm_13kqde0_1c8rstr atm_n3sdp0_1aqtv8w atm_1junx1r_fjcok3 atm_1syykut_fjcok3";function $z({size:e="md",icon:t,kbd:n,className:r="",type:i="text",...a}){return b.jsxs("div",{className:J("ds-search",LJ,MJ,e==="lg"&&"ds-search--lg",e==="lg"&&OJ,r),children:[b.jsx("span",{className:"ds-search__icon","aria-hidden":"true",children:t??b.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("circle",{cx:"11",cy:"11",r:"8"}),b.jsx("path",{d:"m21 21-4.3-4.3"})]})}),b.jsx("input",{className:"ds-search__input",type:i,...a}),n?b.jsx("span",{className:"ds-search__kbd",children:n}):null]})}const DJ="atm_9s_116y0ak atm_h_1h6ojuz atm_cx_1xi6ry0 atm_l8_3kbd78 atm_3f_xbw5ta atm_5j_ab5uq2 atm_6tqpqf_1ulexfb atm_yqcrq0_12336oc",qJ="atm_9s_116y0ak atm_h_1h6ojuz atm_cx_tx1for atm_e2_hxdwz8 atm_l8_vb8vu1 atm_3f_idpfg4 atm_5j_mrub5a atm_c8_ouk0ow atm_cs_19dj2kj atm_vv_1q9ccgz atm_9j_tlke0l atm_uc_142lsp5 atm_umrj8i_116y0ak atm_1pqnrs9_1aou828 atm_1dlbvfv_1aou828",IJ="atm_26_yzuxxm atm_1w6k2uc_1uoma54 atm_17huow9_1j28jx2 atm_173k4ye_1r1dq30 atm_1s2e1af_1gxx8tw atm_11ogxtl_1r1dq30 atm_103tymd_1xzuvaq";function Pz({items:e,value:t,onChange:n,className:r="",ariaLabel:i}){return b.jsx("div",{className:J("ds-segmented",DJ,IJ,r),role:"group","aria-label":i,children:e.map(a=>{const o=a.value===t;return b.jsxs("button",{type:"button","aria-pressed":o,className:J("ds-segmented__item",qJ,o&&"is-active"),onClick:()=>n(a.value),children:[a.icon?b.jsx("span",{className:"ds-segmented__icon",children:a.icon}):null,a.label?b.jsx("span",{children:a.label}):null]},a.value)})})}const $J="atm_9s_1txwivl atm_h_1fhbwtr atm_cx_1xi6ry0 atm_mk_h2mmj6 atm_e2_1vsscdl atm_6tqpqf_1ulexfb atm_yqcrq0_12336oc",PJ="atm_9s_116y0ak atm_mk_h2mmj6 atm_h_1h6ojuz atm_cx_ek2tx5 atm_e2_b2crx2 atm_l8_vb8vu1 atm_3f_idpfg4 atm_c8_1m800s6 atm_cs_19dj2kj atm_vv_1q9ccgz atm_9j_tlke0l atm_uc_1flctpa atm_1pqnrs9_1aou828 atm_1dlbvfv_1aou828 atm_f7m7nm_pwduj4 atm_10fmpuy_116y0ak atm_mvfadj_1mqbmot atm_1ak0vmh_1o6fbio atm_1bbx2l1_1ts48j8",UJ="atm_40_csoyjr",BJ="atm_7l_1uoma54 atm_26_1j28jx2 atm_18uqgji_1r1dq30 atm_1938jqx_b3btdj atm_2zt8x3_stnw88 atm_1gmmsae_ynj908 atm_1hhqkaf_idpfg4 atm_89ifzh_ynj908 atm_1054lsl_13tcsv8 atm_7otamn_1l5q1qu atm_135rde5_1j28jx2 atm_rxbg8t_1gderh0 atm_1id5f2l_1r1dq30 atm_1pt1mng_hq4ovn atm_18e30ls_kb7nvz atm_1i91w7s_hq4ovn",GJ="atm_cx_iqvn5y atm_l8_3kbd78 atm_3f_idpfg4 atm_5j_ab5uq2 atm_26_yzuxxm",FJ="atm_e2_1mv84c8 atm_l8_vb8vu1 atm_5j_mrub5a atm_7l_1uoma54 atm_26_1j28jx2 atm_18uqgji_1r1dq30 atm_1id5f2l_1gxx8tw atm_mf4jcj_1r1dq30 atm_yfv1tv_1xzuvaq atm_f035cg_1gxx8tw atm_11xrbmu_1gxx8tw atm_1pt1mng_1gxx8tw atm_18e30ls_kb7nvz";function HJ({items:e=[],value:t,onChange:n,variant:r="underline",className:i="",...a}){const o=J("ds-tabs",$J,`ds-tabs--${r}`,r==="underline"&&UJ,r==="pill"&&GJ,i);return b.jsx("div",{className:o,role:"tablist",...a,children:e.map(l=>{const c=l.value===t,f=r==="pill"?FJ:BJ;return b.jsxs("button",{type:"button",role:"tab","aria-selected":c,className:J("ds-tab",PJ,f,c&&"is-active"),onClick:()=>n==null?void 0:n(l.value),children:[l.icon?b.jsx("span",{className:"ds-tab__icon",children:l.icon}):null,b.jsx("span",{children:l.label??l.value}),l.badge!=null?b.jsx("span",{className:"ds-tab__badge",children:l.badge}):null]},l.value)})})}const VJ="atm_9s_116y0ak atm_vy_dyyhha atm_e2_dyyhha atm_am_glywfm atm_5j_1ymv7hy atm_26_q4qxsi atm_70_1uanll8",Ak="atm_1iusgg0_hq4ovn atm_1h0kfrz_iq6dbe atm_po5r9r_1bhb51v atm_1nf85lq_rnzfq9 atm_1hy98_zfbly4 atm_3u5iah_6lcubb atm_1dukbe5_1u3842e atm_10ha597_hqzwp4 atm_1tckthx_198lp58 atm_1i2mm3p_yzuxxm atm_1kk0yk8_8o97w atm_hpsos6_cr53r2 atm_jqr15c_1c05cp1 atm_w5iopd_1tizr4b atm_1r6fby5_189kj12 atm_1a3w2w3_dwx51l atm_8e6t6l_6glbde atm_1smp3gu_1ox2th8 atm_d916u2_1muz9yu atm_1cqyysr_1fhzt1z atm_19jh8f4_8gp6io atm_yoex2e_1r1dq30 atm_d7rmf6_an4usv atm_8j1fl1_1uoma54 atm_1lae84l_1mqbmot atm_1dty34b_ole0cg atm_1f2ffma_1gxx8tw atm_4atth8_127xd9b atm_1w69mli_tlqex5 atm_1674f0z_21k9f7 atm_1xc8ml3_icygq7 atm_1hnprr3_1627y59 atm_1x3onn_2iq75o atm_4avs1z_ylntdi atm_12xev63_ob1ic4 atm_172s4j0_1jzg480 atm_1fcp51o_qwzapi atm_1y2spxa_18o30sh atm_tihlcl_c8z8bz atm_lqxz48_l869cw atm_1iaq0g2_1ukkuzo atm_172b242_4b91tz atm_1nvgyfl_1o4rrys atm_qoa53z_vda1xk atm_1as7e7_qjhoaz atm_1k3etme_12ibgig atm_1s88ph4_dilh6o atm_klca8c_94psdl atm_10dwbvn_176n7gj atm_ph3cjg_1423x9t atm_12ns0xz_1kp8x2i atm_2j4w22_x7afls atm_17712nv_1pqzlyb atm_th538q_15a6j9h atm_15rbqob_5un85m atm_17qadlg_k6z0tu atm_i3klx0_1o35fvf atm_fs7j3c_13cj5v1 atm_pvxovx_18kz8gp atm_uf9tfd_1p9ft20 atm_1hvwg6c_1tjvulq atm_fgjv53_axydeg atm_3c6epm_pfmuvc atm_o11lzx_1rxe704 atm_uifzt6_wif9fk atm_z8ag0t_1vky53y atm_169n2up_8zxu4w atm_u68wbh_1xbx5xr atm_nhxplr_m3ec7v atm_1xyatij_ytdjbw atm_7j72g2_1ngrtye atm_11zsjju_1as38wo atm_17it5en_15udj5h atm_1l3sflo_1xg740 atm_gsa58x_192rwf5 atm_1xxrxzd_nt4cwc atm_v333hr_nt4cwc atm_5k1gjx_nt4cwc",XJ="atm_9s_11p5wf0 atm_mg_1h6ojuz atm_b7es6b_1ekttcd atm_pk41y9_1osqo2v atm_1gn284m_1osqo2v atm_f05zka_2i467f atm_1ewr2w9_glywfm atm_r8u2rv_yzuxxm atm_11yzlo7_ek2tx5 atm_7d06w9_glywfm atm_1dpnt45_1597ol6 atm_34rk24_ek2tx5 atm_iqcj7f_121ixow atm_14b5yhw_1ekttcd atm_oqyrqk_feh88b",YJ="atm_9s_1ulexfb atm_1s861g7_1ulexfb atm_98bfb1_1osqo2v atm_1vjurx4_1osqo2v atm_191fk33_tmmlot";function Uz(e){return Math.max(0,Math.min(100,Number.isFinite(e)?e:0))}function ow({colorToken:e,className:t="",...n}){return b.jsx("span",{className:J("ds-token-swatch",VJ,Ak,t),"data-color-token":e,...n})}function WJ({percent:e,colorToken:t,className:n="",children:r,...i}){const a=Uz(e);return b.jsxs("div",{className:J("ds-donut",XJ,Ak,n),"data-color-token":t,...i,children:[b.jsxs("svg",{className:"ds-donut__svg",viewBox:"0 0 100 100","aria-hidden":"true",children:[b.jsx("circle",{className:"ds-donut__track",cx:"50",cy:"50",r:"40"}),b.jsx("circle",{className:"ds-donut__fill",cx:"50",cy:"50",r:"40",pathLength:100,strokeDasharray:`${a} ${100-a}`})]}),b.jsx("span",{className:"ds-donut__content",children:r})]})}function KJ({value:e,colorToken:t,className:n="",...r}){const i=Uz(e);return b.jsx("span",{className:J("ds-bar",YJ,Ak,n),"data-color-token":t,...r,children:b.jsx("svg",{className:"ds-bar__svg",viewBox:"0 0 100 1",preserveAspectRatio:"none","aria-hidden":"true",children:b.jsx("rect",{className:"ds-bar__fill",x:"0",y:"0",width:i,height:"1"})})})}const ZJ="atm_9s_1txwivl atm_h_1h6ojuz atm_fc_1x0r81l atm_cx_65h41v atm_vy_1osqo2v atm_e2_92zl2a atm_j6_wyofes atm_l8_1gr00ck atm_c8_1m800s6 atm_cs_19dj2kj atm_r3_1e5hqsa atm_9j_tlke0l atm_uc_1hzgs2p atm_3dt8w5_glywfm atm_hahm9h_w63zqx atm_1wddu4c_14eiutg atm_1ilv14g_g3cdbo atm_3yf2dh_suuzbj atm_8b6ihz_y12phr atm_am3sse_y12phr atm_1lxonxj_un7t6q atm_qeoxmu_116y0ak atm_1tsxn61_glywfm atm_1xeiqmf_1h6ojuz atm_1n8v75d_1h6ojuz atm_1sk9z68_fjcok3 atm_1nutier_fjcok3 atm_1aljmbo_ggq5uc atm_1c24c03_1mwiday atm_d4nhzu_106mb6 atm_18z50w2_jfauhi atm_1j0xo6e_rk0qi2 atm_ob0ufj_pwfbaq atm_1qsxssm_1en0nkw atm_mb3wyg_1j4gn9x atm_phtlsz_1ccli84 atm_1dladoi_pmnlpg atm_n9eb9h_9bezhr atm_di7ddg_9rgtx8 atm_lree9d_1o6fbio atm_k09av4_7na0uz atm_14askjy_1ts48j8 atm_16egwwr_1csiron atm_6tqpqf_1ulexfb atm_yqcrq0_12336oc",QJ="atm_7l_an4usv atm_26_lfxt8n atm_3f_1x7fh1e atm_5j_1fhonsn atm_70_tnh052 atm_14ahry7_hf7dd6 atm_bi99t3_pl2gqr atm_1tgqd35_1ja4rbq atm_18vqbco_t04iwo atm_11j0j21_98gn7e atm_1xsyii8_1mk7fn1 atm_1rwa4ld_1c2kefl atm_10dpn9e_rw9xxe atm_9nmhpg_hq4ovn atm_19dm1vf_hq4ovn atm_1uhn9w2_1856fub atm_1sjpren_ji4qki atm_1s5gpbp_11angqw atm_qyac2j_kwex7x atm_jzzl9h_1hk5ijr atm_1350egl_kjsyl3 atm_1b78w19_148oem8 atm_fspp6l_3ygida atm_1fouj4k_1hcdn24 atm_1yd0fxm_1fcei97 atm_16yefxm_10elt2 atm_14emf48_1j28jx2 atm_jjvlfz_1j28jx2 atm_ni45fz_122t8kk atm_o0c8im_1j28jx2 atm_zfngys_1j28jx2",JJ="atm_j2fhl8_ytqdwr atm_1ljptmp_blxe3z atm_1cwp11u_18by0e2 atm_62vbd9_zlw10r atm_1g5ffml_idpfg4 atm_3f_idpfg4 atm_7l_146zx9l atm_26_1j28jx2 atm_1tgqd35_1j28jx2 atm_1ilv14g_idpfg4 atm_mwejjp_1u132tq atm_am3sse_1la8bsr atm_3yf2dh_idpfg4 atm_8b6ihz_1n9petn atm_1lxonxj_glywfm",eee="atm_9j_hmp3cb atm_1tgqd35_6yz816 atm_18vqbco_1jk0t39",tee="atm_1muvceb_1j28jx2 atm_l9n1dy_8o97w atm_3snx7x_8o97w atm_2632s2_8o97w";function jh({label:e,colorToken:t,icon:n,meta:r,on:i=!0,line:a=!1,static:o=!1,variant:l="default",className:c="",onToggle:f,onClick:d,...m}){const p=c.split(/\s+/).includes("ds-togglerow--static"),g=y=>{d==null||d(y),y.defaultPrevented||f==null||f()};return b.jsxs("button",{type:"button",className:J("ds-togglerow",ZJ,QJ,a&&"ds-togglerow--line",a&&JJ,l==="filter"&&tee,(o||p)&&"ds-togglerow--static",(o||p)&&eee,i&&"is-on",!i&&"is-off",c),"aria-pressed":i,"data-color-token":t,...m,onClick:g,children:[n?b.jsx("span",{className:"ds-togglerow__icon",children:n}):t?b.jsx(ow,{colorToken:t,className:"ds-togglerow__swatch"}):b.jsx("span",{className:"ds-togglerow__swatch"}),b.jsx("span",{className:"ds-togglerow__label",children:e}),r!=null?b.jsx(Md,{className:"ds-togglerow__meta",children:r}):null]})}const nee="atm_9s_1o8liyq atm_jb_i19uzh atm_j3_1osqo2v atm_l8_1m019qc atm_5j_mrub5a atm_26_8xaiz7 atm_7l_12hgb06 atm_bx_l6f2xw atm_c8_1kw7nm4 atm_g3_yv70g4 atm_kz_qqvjny atm_r3_vv0mcu atm_vv_4dq2uc";function Pi({children:e,className:t="",...n}){return b.jsx("code",{className:J("ds-coderef",nee,t),...n,children:e})}const Bz={capability:{fill:"--capability",ink:"--capability-ink",tint:"--capability-tint"},requirement:{fill:"--requirement",ink:"--requirement-ink",tint:"--requirement-tint"},contract:{fill:"--contract",ink:"--contract-ink",tint:"--contract-tint"},source:{fill:"--contract",ink:"--contract-ink",tint:"--contract-tint"},constraint:{fill:"--contract",ink:"--contract-ink",tint:"--contract-tint"},behavior:{fill:"--contract",ink:"--contract-ink",tint:"--contract-tint"},state:{fill:"--contract",ink:"--contract-ink",tint:"--contract-tint"},"input-output":{fill:"--contract",ink:"--contract-ink",tint:"--contract-tint"},"verification-objective":{fill:"--verification-objective",ink:"--verification-objective-ink",tint:"--verification-objective-tint"},"test-verification":{fill:"--verification",ink:"--verification-ink",tint:"--verification-tint"},"formal-proof-verification":{fill:"--verification",ink:"--verification-ink",tint:"--verification-tint"},"analysis-verification":{fill:"--verification",ink:"--verification-ink",tint:"--verification-tint"},"inspection-verification":{fill:"--verification",ink:"--verification-ink",tint:"--verification-tint"},"demonstration-verification":{fill:"--verification",ink:"--verification-ink",tint:"--verification-tint"},verification:{fill:"--verification",ink:"--verification-ink",tint:"--verification-tint"},specification:{fill:"--contract",ink:"--contract-ink",tint:"--contract-tint"},"semantic-contract":{fill:"--semantic-contract",ink:"--semantic-contract-ink",tint:"--semantic-contract-tint"},ontology:{fill:"--ontology",ink:"--ontology-ink",tint:"--ontology-tint"},resource:{fill:"--resource",ink:"--resource-ink",tint:"--resource-tint"},other:{fill:"--other",ink:"--other-ink",tint:"--other-tint"}},ls={capability:{color:"var(--capability)",shape:"square",role:"capability"},requirement:{color:"var(--requirement)",shape:"square",role:"requirement"},contract:{color:"var(--contract)",shape:"diamond",role:"contract",glyph:"C"},source:{color:"var(--contract)",shape:"diamond",role:"source",glyph:"↗"},constraint:{color:"var(--contract)",shape:"diamond",role:"constraint",glyph:"!"},behavior:{color:"var(--contract)",shape:"diamond",role:"behavior",glyph:"→"},state:{color:"var(--contract)",shape:"diamond",role:"state",glyph:"●"},"input-output":{color:"var(--contract)",shape:"diamond",role:"input-output",glyph:"↔"},"verification-objective":{color:"var(--verification-objective)",shape:"square",role:"verification-objective"},"test-verification":{color:"var(--verification)",shape:"square",role:"verification",glyph:"T"},"formal-proof-verification":{color:"var(--verification)",shape:"square",role:"verification",glyph:"FP"},"analysis-verification":{color:"var(--verification)",shape:"square",role:"verification",glyph:"A"},"inspection-verification":{color:"var(--verification)",shape:"square",role:"verification",glyph:"I"},"demonstration-verification":{color:"var(--verification)",shape:"square",role:"verification",glyph:"D"},verification:{color:"var(--verification)",shape:"square",role:"verification"},specification:{color:"var(--contract)",shape:"diamond",role:"specification",glyph:"≡"},"semantic-contract":{color:"var(--semantic-contract)",shape:"square",role:"semantic-contract"},ontology:{color:"var(--ontology)",shape:"square",role:"ontology"},resource:{color:"var(--resource)",shape:"square",role:"resource"}},jk={"--capability":"#bbdefb","--capability-ink":"#1565c0","--capability-tint":"#e3f2fd","--requirement":"#673ab7","--requirement-ink":"#512da8","--requirement-tint":"#ede7f6","--contract":"#ff9800","--contract-ink":"#e65100","--contract-tint":"#fff3e0","--semantic-contract":"#d32f2f","--semantic-contract-ink":"#b71c1c","--semantic-contract-tint":"#ffebee","--verification":"#4caf50","--verification-ink":"#2e7d32","--verification-tint":"#e8f5e9","--verification-objective":"#1b5e20","--verification-objective-ink":"#0b3d12","--verification-objective-tint":"#d7ead8","--ontology":"#b08a00","--ontology-ink":"#6f5600","--ontology-tint":"#f4e3a1","--resource":"#ffca28","--resource-ink":"#8d6e00","--resource-tint":"#fff3cf","--other":"#9e9e9e","--other-ink":"#616161","--other-tint":"#ececec","--node-generic-fill":"#eceff1","--edge-default":"#c0c8d4","--edge-derive":"#673ab7","--edge-satisfy":"#4caf50","--edge-trace":"#97a2b4","--edge-reuse":"#2196f3","--bg-canvas":"#fbfaf7","--bg-sunken":"#f3f1eb","--bg-surface":"#ffffff","--border-default":"#d8d2c6","--accent":"#e11d48","--accent-ring":"rgba(225,29,72,0.32)","--rdf-class":"#94a3b8","--rdf-objprop":"#64748b","--rdf-dtprop":"#0f766e","--rdf-rdfprop":"#115e59","--rdf-individual":"#7c3aed","--rdf-datatype":"#d6a43f","--rdf-restriction":"#cbd5e1","--rdf-classexpr":"#e2e8f0","--rdf-nodeshape":"#dc2626","--rdf-propshape":"#be123c","--rdf-resource":"#14b8a6","--rdf-shacl":"#ef4444","--success":"#1f9d57","--slate-0":"#ffffff","--slate-950":"#0d1119","--text-body":"#232b37","--text-faint":"#97a2b4","--text-muted":"#6b7688","--text-strong":"#161d27"},ree=new Set(["source","specification","constraint","behavior","state","input-output"]);function M1(e,t){const n=(e??"").toLowerCase(),r=(t??"").toLowerCase();return n in ls?ls[n].role:n.includes("capability")||r==="capability"?"capability":n.includes("verification")||r==="verification"?"verification":n.includes("ontology")||r==="ontology"?"ontology":n==="evidence-file"||n.includes("evidence")?"other":n==="concept-reference"||n.includes("concept-reference")||n.includes("resource")||n==="file"||r==="resource"?"resource":ree.has(n)&&n in ls?ls[n].role:n==="contract"||r==="contract"?"contract":n.includes("requirement")||r==="requirement"?"requirement":n.includes("contract")?"semantic-contract":n.includes("specification")?"specification":"other"}function iee(e,t="fill"){return Bz[M1(e)][t]}function XC(e,t="fill"){return Qe(iee(e,t))}function Qe(e){if(typeof window>"u")return`var(${e})`;const t=Rk(e);return Nk(t)??t}function Rk(e,t=new Set){if(t.has(e))return`var(${e})`;t.add(e);const n=window.getComputedStyle(document.documentElement).getPropertyValue(e).trim();return n?aee(n,t):jk[e]??`var(${e})`}function aee(e,t=new Set){const n=e.trim(),r=n.match(/^var\((--[a-z0-9-]+)(?:,\s*([^)]+))?\)$/i);return r?Rk(r[1],t):n}function oee(e){return e.replace(/var\((--[a-z0-9-]+)\)/gi,(t,n)=>{const r=n;return Nk(Rk(n))??jk[r]??t})}function see(){const e=(t,n,r="2px")=>{const i=Bz[n];return` classDef ${t} fill:${rb(i.tint)},stroke:${rb(i.fill)},stroke-width:${r},color:${rb("--text-body")};`};return[e("capability","capability","2.5px"),e("systemRequirement","requirement","2px"),e("requirement","requirement","2px"),e("contract","contract","2px"),e("source","source","2px"),e("constraint","constraint","2px"),e("behavior","behavior","2px"),e("state","state","2px"),e("inputOutput","input-output","2px"),e("specification","specification","2px"),e("semanticContract","semantic-contract","2px"),e("verificationObjective","verification-objective","2px"),e("verification","verification","2px"),e("ontology","ontology","2px"),e("resource","resource","2px"),e("file","resource","2px"),e("folder","resource","2px"),e("default","other","1.5px")]}function rb(e){const t=Nk(Qe(e));if(t)return t;const n=jk[e];if(n)return n;throw new Error(`Missing Mermaid-safe CSS token value for ${e}`)}function Nk(e){var a;if(!e||typeof document>"u")return null;const t=document.createElement("span");if(t.style.color="",t.style.color=e.trim(),!t.style.color)return null;(document.body??document.documentElement).appendChild(t);const r=window.getComputedStyle(t).color;t.remove();const i=lee(r);if(i)return i;if(/\bjsdom\b/i.test(((a=window.navigator)==null?void 0:a.userAgent)??""))return null;try{const o=document.createElement("canvas");o.width=o.height=1;const l=o.getContext("2d");if(!l)return null;l.fillStyle=r,l.fillRect(0,0,1,1);const[c,f,d]=l.getImageData(0,0,1,1).data;return`#${c.toString(16).padStart(2,"0")}${f.toString(16).padStart(2,"0")}${d.toString(16).padStart(2,"0")}`}catch{return null}}function lee(e){const t=e.match(/^rgba?\(\s*([0-9.]+)\s*,\s*([0-9.]+)\s*,\s*([0-9.]+)(?:\s*,\s*([0-9.]+))?\s*\)$/i);if(!t)return null;const[n,r,i]=t.slice(1,4).map(c=>{const f=Number.parseFloat(c);return Number.isFinite(f)?Math.max(0,Math.min(255,Math.round(f))):null});if(n===null||r===null||i===null)return null;const a=t[4]===void 0?1:Number.parseFloat(t[4]),o=[n,r,i].map(c=>c.toString(16).padStart(2,"0")).join("");if(!Number.isFinite(a)||a>=1)return`#${o}`;const l=Math.max(0,Math.min(255,Math.round(a*255))).toString(16).padStart(2,"0");return`#${o}${l}`}const uee="atm_a3dd4b_z0onc3 atm_ent53u_b62f0m atm_m91vh0_705yeh atm_9s_116y0ak atm_h_1h6ojuz atm_fc_1h6ojuz atm_am_glywfm atm_vy_1vx9jc2 atm_e2_1vx9jc2 atm_5j_suuzbj atm_1pqnrs9_1nrftia atm_1dlbvfv_1nrftia atm_nyq9zu_116y0ak atm_gcz429_1h6ojuz atm_1bknayf_1h6ojuz atm_l6d64d_1osqo2v atm_4l26lw_1osqo2v atm_1jcqdhi_l6f2xw atm_1x3ssnv_1ha41sg atm_rhfka_1mvar2t atm_1iosvla_idpfg4 atm_ku3ywk_kb7nvz atm_hdngs8_uauh2f atm_1m8nm4r_jhfywp atm_1txkrek_38t29w atm_psydcp_mrub5a atm_h7i5yi_wddbar atm_19w6stl_1tpwk13 atm_10joq6r_1e9fziy atm_1q11kel_1l0d4wk atm_1bouas6_zk8bua atm_1g6i0n2_wn1dc8 atm_it7fai_utna8q atm_ekbsmm_utna8q atm_1bz2fa8_1ssbidh",cee="atm_7l_4fh4vv atm_26_ygerxk atm_70_14cigfu atm_5eapdu_1r1dq30 atm_21kv04_1u1jrmn atm_oxmxd1_1o64miw atm_f485ly_5ho45x",fee="atm_kc50cj_ob1ic4 atm_1blwtic_18o30sh atm_1uthcj7_1ukkuzo atm_okgt86_vda1xk atm_kv026o_1qotw4 atm_1r98dev_dilh6o atm_wyz73l_1423x9t atm_vo76f7_1pqzlyb atm_1mqcluo_k6z0tu",hee=new Set(["source","specification","constraint","behavior","state","input-output"]);function Ln({type:e,family:t,size:n="md",className:r="",title:i,shape:a,glyph:o,...l}){const c=M1(e,t),f=(e??"").toLowerCase(),d=f in ls?ls[f]:null,m=a??(d==null?void 0:d.shape)??(hee.has(f)?"diamond":"square"),p=o??(d==null?void 0:d.glyph)??null,g=m==="diamond",y=m==="hub",x=!!(p&&[...p].length>1),k=J("ds-elemicon",uee,cee,fee,n!=="md"?`ds-elemicon--${n}`:void 0,g?"ds-elemicon--diamond":void 0,y?"ds-elemicon--hub":void 0,x?"ds-elemicon--wide-glyph":void 0,r);return b.jsxs("span",{className:k,"data-element-role":c,title:i??e??c,"aria-label":e??c,...l,children:[y?b.jsx("span",{className:"ds-elemicon__pip"}):null,!y&&p?b.jsx("span",{className:"ds-elemicon__glyph",children:p}):null]})}const dee="atm_9s_reclyk atm_jb_2klq05 atm_h_1q9ycp6 atm_fc_1yy88cy atm_cx_owgaek atm_10sesiq_1bp4okc atm_1599oqs_1oyiw06",mee="atm_vqt9vf_1mqbmot atm_1kcroyy_ouk0ow atm_2hco28_1r1dq30 atm_1uy2j1m_ouk0ow atm_lk8446_1ts48j8 atm_45q8sr_1d1fc98 atm_8bzxh7_1heflvk atm_1870696_1d1fc98 atm_19rsh7f_1gnru8i",pee="atm_9s_1txwivl atm_be_1g80g66 atm_h_1q9ycp6 atm_cx_6skkmd";function Gz({label:e,value:t,stacked:n=!1,className:r="",...i}){return b.jsx("span",{className:J("ds-stat",dee,mee,n?"ds-stat--stacked":void 0,r),...i,children:n?b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"ds-stat__value",children:t}),b.jsx("span",{className:"ds-stat__label",children:e})]}):b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"ds-stat__label",children:e}),b.jsx("span",{className:"ds-stat__value",children:t})]})})}function Fz({children:e,className:t="",...n}){return b.jsx("div",{className:J("ds-statrow",pee,t),...n,children:e})}const _ee="atm_j6_idpfg4 atm_ks_1wugsn5",gee="atm_26_n1na9d atm_3f_16wmnwb atm_5j_geazv7",yee="atm_9s_5mfbs0 atm_vy_1osqo2v atm_jb_zudyve atm_4a_cfaqiv atm_c8_1m800s6",vee="atm_7l_an4usv",bee="atm_9s_zh62nn",xee="atm_9s_8xuz71",wee="atm_9s_2e77qe",kee="atm_1f2n1bj_gjv5lv atm_1clex5o_1r1dq30 atm_1b7glui_1wu1lss",Eee="atm_mk_1if85x1 atm_tk_idpfg4 atm_wq_feh88b atm_9s_dav6mi atm_l8_25h4do atm_r3_1e5hqsa atm_h7hwvs_idpfg4",See="atm_7l_1uoma54 atm_26_1nn0ihp atm_40_zp8cu4 atm_cs_19w01x4",Tee="atm_9s_dav6mi atm_l8_1s07rtz atm_vh_nkobfv",Cee="atm_40_to1h0g atm_ctwle1_idpfg4",Aee="atm_9s_1txwivl atm_vy_1osqo2v atm_h_1h6ojuz atm_fc_1yb4nlp atm_cx_ek2tx5 atm_l8_25h4do atm_3f_idpfg4 atm_r3_1e5hqsa atm_bv_1kw7nm4 atm_9j_tlke0l atm_1qlq76a_1o6fbio atm_1cjp85g_1d1fc98",jee="atm_7l_1kw7nm4 atm_26_1j28jx2 atm_18uqgji_1r1dq30 atm_pyurd2_1r1dq30";function Ree({children:e,className:t="",...n}){return b.jsx("div",{className:J("ds-tablewrap",_ee,gee,t),...n,children:e})}function Nee({children:e,className:t="",...n}){return b.jsx("table",{className:J("ds-table",yee,vee,t),...n,children:e})}function zee({children:e,className:t="",...n}){return b.jsx("thead",{className:J(bee,t),...n,children:e})}function Lee({children:e,className:t="",...n}){return b.jsx("tbody",{className:J(xee,t),...n,children:e})}function YC({children:e,selected:t=!1,className:n="",...r}){return b.jsx("tr",{className:J(wee,kee,t?"is-selected":void 0,n),...r,children:e})}function Mee({children:e,className:t="",...n}){return b.jsx("th",{className:J(Eee,See,t),...n,children:e})}function Cp({children:e,className:t="",...n}){return b.jsx("td",{className:J(Tee,Cee,t),...n,children:e})}function Oee({children:e,direction:t,className:n="",...r}){return b.jsxs("button",{type:"button",className:J("ds-table__sort",Aee,jee,n),...r,children:[b.jsx("span",{children:e}),t?b.jsx("span",{className:"ds-table__sortdir",children:t}):null]})}const Dee="atm_9s_116y0ak atm_h_1h6ojuz atm_cx_owgaek atm_e2_3cxs9l atm_l8_3ofa5r atm_5j_mrub5a atm_c8_1o6fbio atm_cs_19dj2kj atm_g3_kb7nvz atm_vv_1q9ccgz atm_16803i4_116y0ak atm_19tafd3_1h6ojuz atm_113t0oo_1h6ojuz atm_7yfrpi_glywfm atm_bl3evz_7hyak2 atm_1ro766l_7hyak2 atm_jh4idr_1az89lo atm_14wvpfi_l6f2xw atm_1y1eyv0_1o6fbio atm_1r3unkb_1mvar2t atm_1j4bcgg_idpfg4 atm_dcszb1_kb7nvz atm_1miskve_1d4bnt0 atm_myfq1w_uauh2f atm_kh7cl5_1r1dq30 atm_1f6wdz9_1687kf3 atm_ypob0s_116y0ak atm_1nfawgy_1h6ojuz atm_di9v7v_1h6ojuz atm_19vb7bo_zk8bua",qee="atm_7l_1uoma54 atm_26_yzuxxm atm_jdr78w_1tv5sgz atm_8sjwfw_17abx8h atm_1rurjgk_1mazdkv",Iee="atm_16gywjv_ob1ic4 atm_1nh8uwv_1jzg480 atm_vpu41p_qwzapi atm_42lboc_18o30sh atm_23cq5u_c8z8bz atm_1daabjz_l869cw atm_i2iux_1ukkuzo atm_1p0gpe_4b91tz atm_1wejisk_1o4rrys atm_324i7b_vda1xk atm_hu33cw_qjhoaz atm_ce8t89_12ibgig atm_3cqic8_1qotw4 atm_1522tqu_d1amxh atm_rdrsqd_1nodl4x atm_117jmas_dilh6o atm_1pbiepb_94psdl atm_vrva8a_176n7gj atm_1z0nhgb_1423x9t atm_1qkw5bh_1kp8x2i atm_oibu0z_x7afls atm_blortm_1pqzlyb atm_7p1w8y_15a6j9h atm_1rb7nwg_5un85m atm_5sz0ww_k6z0tu atm_1b6ox03_1o35fvf atm_bkry1c_13cj5v1";function Jr({type:e,family:t,children:n,dot:r=!0,tinted:i=!1,className:a="",...o}){const l=M1(e,t),c=(e??"").toLowerCase(),f=c in ls?ls[c]:null,d=(f==null?void 0:f.shape)??"square",m=(f==null?void 0:f.glyph)??null,p=!!(m&&[...m].length>1);return b.jsxs("span",{className:J("ds-typebadge",Dee,qee,Iee,i?"ds-typebadge--tinted":void 0,a),"data-element-role":l,...o,children:[r?b.jsx("span",{className:J("ds-typebadge__dot",d==="diamond"?"ds-typebadge__dot--diamond":void 0,m?"ds-typebadge__dot--glyph":void 0,p?"ds-typebadge__dot--wide-glyph":void 0),children:m?b.jsx("span",{className:"ds-typebadge__glyph",children:m}):null}):null,n??e]})}const $ee="atm_9s_1txwivl atm_jb_idpfg4 atm_ar_1bp4okc atm_cx_129m9ft atm_13knuqb_1txwivl atm_8v0qpk_idpfg4 atm_qx45pz_1h6ojuz atm_ej65wx_1yb4nlp atm_18ouobx_ynj908 atm_1od1q8l_idpfg4 atm_18n3bky_15vqwwr atm_efklur_1l2sidv atm_a70gov_1q9ccgz atm_14lov02_116y0ak atm_kj3ukg_12336oc atm_rmuwbn_1h6ojuz atm_9vec3v_1txwivl atm_ef3r1i_idpfg4 atm_g0mby4_1bp4okc atm_kkf6g8_gacizy atm_6tqpqf_1ulexfb atm_yqcrq0_12336oc",Pee="atm_11ummen_th8d35 atm_nyn20a_1mqbmot atm_kq9ymx_1o6fbio atm_pcar64_1d1fc98 atm_1tsf9w7_1lzc1s3 atm_1jetfa8_3szr2b atm_oespae_angws6 atm_bovmug_127xd9b atm_1sbtyby_ouk0ow atm_1wj2uia_3szr2b";function Uee({title:e,action:t,children:n,className:r="",...i}){return b.jsxs("section",{className:J("ds-section",$ee,Pee,r),...i,children:[e||t?b.jsxs("div",{className:"ds-section__head",children:[e?b.jsx("span",{className:"ds-section__title",children:e}):b.jsx("span",{}),t?b.jsx("span",{className:"ds-section__action",children:t}):null]}):null,b.jsx("div",{className:"ds-section__body",children:n})]})}const Bee="atm_73_usvi9m atm_9s_1txwivl atm_vy_3g8w0h atm_jb_idpfg4 atm_e2_jhlp9 atm_h_1h6ojuz atm_cx_1edz5vk atm_lb_idpfg4 atm_lh_zdm8jh atm_lj_1ck5efj atm_5e_13x2ym7 atm_5j_sl7ugj atm_c8_1m800s6 atm_g3_7nxbvg atm_9j_tlke0l atm_vb_glywfm atm_uc_11sbhvv atm_1tgqd35_i6sjcc atm_17yrrpa_glywfm atm_1yl5u20_13i1o1w atm_18zg0qy_1c4g2fu atm_19s06m1_1u4gdat atm_1emii6y_car6c6 atm_yctv6h_1tgii9k atm_5vq8h2_116y0ak atm_nmyny7_movtkq atm_dxi3la_1aou828 atm_1qo80uz_1vw34wn atm_m7nknt_1h6ojuz atm_cpq6vx_1h6ojuz atm_jkduch_y88kzl atm_ku70x_1ropadh atm_15akl6q_14uhfce atm_1qb69va_14uhfce atm_196658b_14w8a5s atm_4jpiig_116y0ak atm_so4c4i_12336oc atm_1v60znn_1h6ojuz atm_1f4tuc1_1h6ojuz atm_12g7gaw_1lqqplv atm_nhn8hu_1aou828 atm_2yjr2o_1aou828 atm_fzqsuh_uixm4p atm_rs2mb2_idpfg4 atm_1nycnki_1qsfvvr atm_1entnyf_15vqwwr atm_189kvwi_1l2sidv atm_1mzeuna_1q9ccgz atm_d1b9ho_116y0ak atm_11js0b4_12336oc atm_xjatqo_fzv2vq atm_pgm8nq_12336oc atm_1nrjvku_jp7aw9 atm_oo4na7_12d6awd atm_6oibm6_1g68dh6 atm_13loh2e_5zoav2 atm_otrr60_1n1zkut atm_1epv0jd_nmzknh atm_6tqpqf_1ulexfb atm_yqcrq0_12336oc",Gee="atm_7l_an4usv atm_26_1j28jx2",Fee="atm_18hli6x_5un85m atm_b9wcxg_fjcok3 atm_1fsixnt_fjcok3 atm_nvqu25_suuzbj atm_9f185o_15a6j9h atm_myjxmd_an4usv atm_fzqsuh_5un85m atm_i61ux4_15a6j9h",Hee="atm_1auwxrf_ek2tx5 atm_8qei1c_8o97w atm_ul58c7_1c05cp1 atm_7l_1uoma54 atm_18fmhfi_1xi6ry0 atm_myjxmd_1uoma54 atm_1ujvao3_1r1dq30";function kc({label:e,icon:t,count:n,depth:r=0,open:i=!1,selected:a=!1,expandable:o=!1,kind:l="folder",onToggle:c,onSelect:f,className:d="",onClick:m,...p}){const g=`ds-treeitem--depth-${Math.min(Math.max(0,r),6)}`,y=x=>{m==null||m(x),x.defaultPrevented||f==null||f()};return b.jsxs("div",{className:J("ds-treeitem",Bee,Gee,l==="file"?Fee:void 0,l==="element"?Hee:void 0,`ds-treeitem--${l}`,g,i?"is-open":void 0,a?"is-selected":void 0,d),...p,onClick:y,children:[b.jsx("span",{className:"ds-treeitem__twist",onClick:x=>{x.stopPropagation(),c==null||c()},children:o?b.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:b.jsx("path",{d:"m9 18 6-6-6-6"})}):null}),t?b.jsx("span",{className:"ds-treeitem__icon",children:t}):null,b.jsx("span",{className:"ds-treeitem__label",children:e}),n!=null?b.jsx("span",{className:"ds-treeitem__count",children:b.jsx(Md,{children:n})}):null]})}const Vee="atm_73_usvi9m",Xee="atm_mk_stnw88 atm_tk_ek2tx5 atm_fq_1ssbidh atm_9s_1ulexfb atm_vy_1q4684i atm_e2_1q4684i atm_tr_zr6sja",Yee="atm_mk_pfqszd atm_tk_1wugsn5 atm_fq_1wugsn5 atm_9s_1ulexfb atm_am_12336oc atm_vy_14k5dlv atm_e2_14k5dlv atm_tr_glywfm",Wee="atm_9s_1txwivl atm_am_12336oc atm_h_1h6ojuz atm_cx_ek2tx5 atm_j6_10y9mp3 atm_l8_1yx7vd1 atm_1jnihqa_116y0ak atm_13oh2ge_1h6ojuz atm_au8vxp_ouk0ow atm_5vy2xq_1mvar2t atm_2q1y0j_v3rtn5 atm_1i76or1_kb7nvz atm_w7jtjl_angws6 atm_e5ifxj_glywfm",Kee="atm_40_xbw5ta atm_26_1u3842e atm_7l_1r1dq30";function Hz({className:e="",placement:t="rail"}){return b.jsx(Dz,{className:J(Vee,Xee,t==="inline"&&Yee,e),"data-product-pattern":"reqvire-rail-mark","data-placement":t,decorative:!0})}function Zee({title:e}){return b.jsxs("div",{className:J("ux-pane-chrome-header",Wee,Kee),"data-product-pattern":"pane-chrome-header",children:[b.jsx(Hz,{placement:"inline"}),b.jsx("span",{children:e})]})}const Qee="atm_73_usvi9m",Jee="atm_7l_1kw7nm4";function ete({className:e="",leading:t,title:n,description:r,meta:i,actions:a,children:o,...l}){return b.jsxs("div",{...l,className:J("ux-workspace-toolbar","ux-graph-control-panel",Qee,Jee,e),"data-product-pattern":"workspace-toolbar",children:[t!=null?b.jsx("div",{"data-product-pattern-slot":"leading",children:t}):null,n!=null||r!=null||i!=null?b.jsxs("div",{"data-product-pattern-slot":"summary",children:[n!=null?b.jsx("div",{"data-product-pattern-slot":"title",children:n}):null,r!=null?b.jsx("div",{"data-product-pattern-slot":"description",children:r}):null,i!=null?b.jsx("div",{"data-product-pattern-slot":"meta",children:i}):null]}):null,o,a!=null?b.jsx("div",{"data-product-pattern-slot":"actions",children:a}):null]})}const tte="ux-source-code-preview__toolbar",nte="ux-source-code-preview__title",rte="ux-source-code-preview__kind",ite="ux-source-code-preview__actions",WC="ux-source-code-preview__button",ate="ux-source-code-preview__body",ote="ux-source-code-preview__collapsed",ste="ux-source-code-preview__code",lte="ux-source-code-preview__fallback",ute="atm_9s_11p5wf0 atm_5j_1pr0uq2 atm_rlxjd7_1if85x1 atm_r2y4nl_idpfg4 atm_14cg7id_ke7gi9 atm_vck24y_1txwivl atm_11ve1qk_idpfg4 atm_i9mt2d_1h6ojuz atm_1kjnh0r_1yb4nlp atm_dkvy2h_ek2tx5 atm_1s1kub7_5vcghk atm_8zkzoi_tvxayk atm_t26cqb_1txwivl atm_3v123l_idpfg4 atm_1ukmqx1_ggq5uc atm_1ethvz0_1h6ojuz atm_tawn8s_tx1for atm_ds559m_idpfg4 atm_17chmrh_idpfg4 atm_1srbz5f_tlke0l atm_1d9jsad_ouk0ow atm_hhova6_1e5hqsa atm_1nj4www_1aou828 atm_18jxqf0_1aou828 atm_1yzbnxd_12336oc atm_mxwtbq_idpfg4 atm_kmhl2q_15vqwwr atm_4sc2ty_l6f2xw atm_1a1diav_ouk0ow atm_ckzzxw_1d1fc98 atm_r1woy3_1l2sidv atm_1lebw16_1q9ccgz atm_10y06tk_12336oc atm_1p3vhg_1i9d2r atm_1izdd7x_ohusjj atm_getkfg_1mvar2t atm_77utgy_116y0ak atm_eg9w3c_12336oc atm_1s6zjgd_1h6ojuz atm_ig6bjb_owgaek atm_ctkdzy_116y0ak atm_7mpws7_14dey03 atm_13srhu6_1h6ojuz atm_1l98py9_owgaek atm_1osvloc_ab5uq2 atm_af8ki9_o0ucy6 atm_1mem8sh_tlke0l atm_1em17te_ouk0ow atm_pbo3lr_1mvar2t atm_1ldrjpy_idpfg4 atm_1r13q6g_ewfl5b atm_meekf9_1osqo2v atm_95h1k4_1wugsn5 atm_4bl57x_ewfl5b atm_qqboie_idpfg4 atm_j9vty2_1aqtv8w atm_ya1aq4_l6f2xw atm_6f4ixp_ouk0ow atm_1a17x3_1sx85p0 atm_16k6692_cs5v99 atm_7az72q_1risgsc atm_h3v5kx_1osqo2v atm_1rxoi0y_1wugsn5 atm_1ap86ni_ewfl5b atm_16a7xlq_1kw7nm4 atm_1yzgbo6_ek2tx5 atm_k74eil_ouk0ow",cte="atm_3f_xbw5ta atm_26_1u3842e atm_70_1xzuvaq atm_13xrw5z_xbw5ta atm_oqq1o6_1u3842e atm_qoupc9_1j28jx2 atm_19dvvdx_1mqbmot atm_bhvvh4_an4usv atm_19u0imh_yzuxxm atm_1mt6dv0_1mqbmot atm_rzhigz_xbw5ta atm_1m0xyir_6lcubb atm_1qro7lj_1mqbmot atm_1u3zxdm_1627y59 atm_nyo18c_8o97w atm_15tq64w_an4usv atm_11my16c_ylntdi atm_1bgysyq_1c05cp1 atm_v9utu8_an4usv atm_t3j43_yzuxxm atm_zs72hj_1j28jx2 atm_2hd35e_an4usv atm_o6gavh_1mqbmot atm_mx8pxj_xbw5ta atm_1n7x8zq_yzuxxm",fte="atm_162yzw4_idpfg4 atm_1epzofa_fg65tv atm_1nq4x11_1jtmq4";function hte({wrapped:e=!1,children:t,className:n="",...r}){return b.jsx("section",{className:J("ux-source-code-preview",ute,cte,e?fte:"",n),"data-product-pattern":"code-preview-frame",...r,children:t})}function dte({expanded:e,onToggleExpanded:t,kind:n,path:r,showPath:i=!0,languageLabel:a,lineCount:o,relationTypes:l=[],wrapped:c,copied:f,onToggleWrap:d,onCopy:m,className:p="",...g}){return b.jsxs("div",{className:J(tte,p),"data-product-pattern-slot":"toolbar",...g,children:[b.jsxs("button",{type:"button",className:nte,"aria-expanded":e,onClick:t,children:[e?b.jsx(at,{name:"chevron-down"}):b.jsx(at,{name:"chevron-right"}),b.jsx("span",{className:rte,children:n}),i?b.jsx("strong",{children:r||"source"}):null,b.jsx("span",{children:a}),b.jsxs("span",{children:[o," lines"]}),l.length>0?b.jsxs("span",{children:["via ",l.join(", ")]}):null]}),b.jsxs("div",{className:ite,children:[b.jsx(cs,{tone:"secondary",size:"sm",className:WC,"aria-label":c?"Disable line wrap":"Enable line wrap","aria-pressed":c,onClick:d,title:c?"Disable line wrap":"Enable line wrap",children:b.jsx(at,{name:"wrap-text"})}),b.jsx(cs,{tone:"secondary",size:"sm",className:WC,"aria-label":f?"Copied":"Copy source",onClick:m,title:f?"Copied!":"Copy source",children:f?b.jsx(at,{name:"check"}):b.jsx(at,{name:"copy"})})]})]})}function KC({collapsed:e=!1,lineCount:t=0,children:n,className:r="",...i}){return e?b.jsx("div",{className:J(ote,r),"data-product-pattern-slot":"collapsed",...i,children:n??`${t} lines hidden`}):b.jsx("div",{className:J(ate,r),"data-product-pattern-slot":"body",...i,children:n})}const mte="atm_8liq13_1lk486g atm_gi_1j63nv9 atm_ks_1wugsn5 atm_l8_ek2tx5 atm_6tqpqf_1ulexfb atm_1pqnrs9_1osqo2v atm_1wqwlc2_193pygy",pte="atm_3f_xbw5ta atm_5j_ab5uq2 atm_26_1u3842e";function zk({children:e,className:t="",...n}){return b.jsx("div",{className:J("ux-diagram-block-frame",mte,pte,t),"data-product-pattern":"diagram-block-frame",...n,children:e})}const _te="atm_mk_h2mmj6 atm_9s_11p5wf0 atm_73_usvi9m atm_dz_i47zc9 atm_84_idpfg4 atm_e2_1kxcs5u atm_j6_idpfg4 atm_ll_idpfg4 atm_lk_l705tw atm_1415qz7_1osqo2v atm_d0vgki_idpfg4 atm_1dan2p0_15vqwwr atm_11n9v5k_idpfg4 atm_13uyt28_idpfg4",gte="atm_26_6lcubb atm_7l_an4usv atm_1g05x3d_6lcubb",yte="atm_am_ggq5uc atm_e2_1osqo2v atm_j6_idpfg4 atm_lk_idpfg4",vte="atm_mk_h2mmj6 atm_73_usvi9m atm_jb_idpfg4 atm_j6_idpfg4 atm_ks_1wugsn5 atm_l8_1h5vprv atm_1415qz7_1osqo2v atm_d0vgki_idpfg4 atm_1dan2p0_1wugsn5 atm_kxr2ln_1ru0ig4",bte="atm_5q_19lzvi5 atm_5e_19lzvi5 atm_26_1u3842e atm_10w44b5_idpfg4 atm_1hfqlcp_idpfg4 atm_1g05x3d_1u3842e",xte="atm_9s_1txwivl atm_h_1h6ojuz atm_fc_1yb4nlp atm_cx_ynj908 atm_gq_1aqtv8w atm_l8_1hh10yn atm_dur37s_11p5wf0 atm_1e5nxn4_idpfg4 atm_kmbmcf_1xi6ry0 atm_19fc0t4_1o6fbio atm_6adg5r_1mvar2t atm_1qr6m1c_idpfg4 atm_1xf982h_angws6 atm_13q3c41_idpfg4 atm_16mg600_15vqwwr atm_syjkcl_1c8rstr atm_10wcbon_1l2sidv atm_1if9keh_1q9ccgz",wte="atm_40_xbw5ta atm_k425c2_1mqbmot atm_dig3yl_an4usv",kte="atm_3f_idpfg4 atm_5j_ab5uq2 atm_l8_1vz6rot atm_9j_tlke0l atm_c8_1m800s6 atm_r3_1e5hqsa atm_rd_glywfm",Ete="atm_26_hq4ovn atm_7l_9541rp";function Ap({toolbar:e,children:t,layout:n="page",className:r="",...i}){return b.jsx("div",{className:J("ux-content-route",_te,n==="embedded"&&yte,gte,r),"data-product-pattern":"document-panel","data-layout":n,...i,children:b.jsxs("section",{className:J("ux-content-document-panel",vte,bte),children:[e?b.jsx(Vz,{...e}):null,t]})})}function Vz({label:e="Source page",title:t,actionHref:n,actionLabel:r}){const i=n&&r;return b.jsxs("div",{className:J("ux-content-page__toolbar",xte,wte),children:[b.jsxs("div",{className:"ux-content-page__title",children:[b.jsx("span",{children:e}),b.jsx("strong",{children:t||"Unknown file"})]}),i?b.jsx("a",{className:J("ux-content-page__command",kte,Ete),href:n,children:r}):null]})}const Ste="atm_73_usvi9m atm_mk_h2mmj6 atm_9s_11p5wf0 atm_dz_i47zc9 atm_84_idpfg4 atm_e2_1kxcs5u atm_j6_idpfg4 atm_lk_l705tw atm_ll_idpfg4 atm_og4esw_ggq5uc atm_1gssvx3_1wugsn5 atm_101uomu_1osqo2v atm_1luas71_idpfg4 atm_10w7pc2_15vqwwr atm_7j151f_idpfg4 atm_1jtv9z9_idpfg4",Tte="atm_26_1u3842e atm_7l_an4usv",Cte="atm_mk_h2mmj6 atm_jb_idpfg4 atm_j6_idpfg4 atm_ks_15vqwwr",Ate="atm_26_6lcubb",jte="atm_9s_1ulexfb atm_vy_1osqo2v atm_e2_1osqo2v atm_j6_idpfg4 atm_3r4ecv_1lk486g atm_fi8d2z_1a3zy5o",Rte="atm_26_6lcubb",Nte="atm_mk_stnw88 atm_tk_1ssbidh atm_fq_1ssbidh atm_c8_1c8rstr atm_cd_1m30gqx atm_tr_1ooetej",zte="atm_7l_1mqbmot";function Lk({embedded:e=!1,children:t,className:n="",...r}){return b.jsx("div",{"data-product-pattern":"graph-route","data-embedded":e?"true":void 0,className:J("ux-graph-route",Ste,Tte,n),...r,children:t})}function Mk({children:e,className:t="",...n}){return b.jsx("div",{"data-product-pattern":"graph-canvas-frame",className:J("ux-graph-canvas-frame",Cte,Ate,t),...n,children:e})}const Xz=se.forwardRef(function({variant:t="knowledge",className:n="",...r},i){return b.jsx("div",{ref:i,"data-product-pattern":"graph-canvas-surface","data-graph-surface":t,className:J("ux-graph-canvas-surface",jte,Rte,n),...r})});function Yz({children:e,className:t="",...n}){return b.jsx("div",{"data-product-pattern":"graph-canvas-notice",className:J("ux-graph-canvas-notice",Nte,zte,t),...n,children:e})}const Lte="ux-markdown-table-wrap",Mte="atm_bq1472_1aqtv8w atm_1w2t34u_iqvn5y atm_c8_dtbmau atm_g3_zc8ygv atm_19zh4bz_idpfg4 atm_1y0imk_idpfg4 atm_1lw6bl4_1l8d0ps atm_ql6csr_1d1fc98 atm_1rgm2zr_10nfu4p atm_1ik9yws_1heflvk atm_19hgg51_asey3o atm_10jxl4n_1ye8rbs atm_gon3un_1c8rstr atm_dwpvdg_1tbrl4p atm_2fe0xc_idpfg4 atm_bveobi_glywfm atm_o46ohl_h2mmj6 atm_425m93_ynkk2f atm_67nu5e_bffgoz atm_uo82e7_ynkk2f atm_10zy8nm_177qeyn atm_w2i1ve_b3btdj atm_1wtb738_stnw88 atm_16sfhk1_iqvn5y atm_1m89ilf_1swohsp atm_c37wi0_177ah3i atm_prx2yt_177ah3i atm_1mmy5t_1i9d2r atm_5ar3rq_1wdt8vi atm_hpockt_1wdt8vi atm_1e2w4x8_m8pcc8 atm_muzcs1_stnw88 atm_1infl1i_idpfg4 atm_1gbk6qc_idpfg4 atm_1rvazdw_ynj908 atm_s68k9l_usich2 atm_1qn3x30_1m800s6 atm_gmu1v2_19dj2kj atm_1b707sb_1kw7nm4 atm_1kqc8kk_8stvzk atm_1l5jvtr_1xi6ry0 atm_sjz5bo_1ulexfb atm_17hnt88_1osqo2v atm_12unxwb_1wugsn5 atm_e2bpx4_1j63nv9 atm_1fafjcd_ab5uq2 atm_8m8je0_bqp6sg atm_2i224p_w4wse3 atm_23oz9t_1wugsn5 atm_1ii5m9r_ab5uq2 atm_5nzslz_ek2tx5 atm_aujn1z_idpfg4 atm_husugj_ek2tx5 atm_4szxr0_1wugsn5 atm_1vi0v7b_1osqo2v atm_1xqubnc_cfaqiv atm_1npyiia_bg8mon atm_73wglx_1vz6rot atm_ce0fnb_1e5hqsa atm_1rnbxcd_jp4btk",Ote="atm_7l_an4usv atm_99d6af_an4usv atm_dlv3ej_127xd9b atm_1wc41so_iq6dbe atm_zcqchd_xbw5ta atm_8i26bz_yzuxxm atm_1iryd98_1j28jx2 atm_xz3cpx_1viig0m atm_1w0fi5a_1mqbmot atm_44xr0n_1mqbmot atm_1x9wr5e_1mqbmot atm_weabrt_xbw5ta atm_1okwm0h_yzuxxm atm_1uh4tmn_1d1fc98",Dte="atm_h3_iqvn5y atm_9s_cj1kg8 atm_ks_15vqwwr atm_6w_1e54zos atm_fy_cs5v99 atm_t868qm_idpfg4",qte="atm_7l_1mqbmot";function Ite({variant:e="detail",children:t,className:n="",...r}){return b.jsx("div",{className:J("ux-markdown",`ux-markdown-${e}`,Mte,Ote,e==="preview"&&Dte,e==="preview"&&qte,n),"data-product-pattern":"markdown-frame","data-variant":e,...r,children:t})}const $te="atm_mk_stnw88 atm_wq_18g0jgm atm_9j_uf7jqg atm_tl_glywfm atm_6hjprp_stnw88 atm_1aj71h3_1j28jx2 atm_lzn0r3_b3btdj atm_1pe8nox_1627y59 atm_17yrrpa_glywfm",Pte="atm_tk_idpfg4 atm_6i_idpfg4 atm_fq_ejos9l atm_vy_owgaek atm_tr_zr6sja atm_2stpi8_idpfg4 atm_mbezp2_idpfg4 atm_44hr8e_1ssbidh atm_1v8yup7_1ohcsmr atm_69el5p_zr6sja",Ute="atm_n3_idpfg4 atm_6i_16zoofi atm_fq_idpfg4 atm_e2_owgaek atm_9j_mivt1e atm_tr_pqlc17 atm_2stpi8_1ssbidh atm_gloser_idpfg4 atm_44hr8e_idpfg4 atm_1oletfx_1ohcsmr atm_69el5p_1i34xl8";function Bte({orientation:e="vertical",active:t=!1,role:n="separator",className:r="",...i}){return b.jsx("div",{"data-product-pattern":"pane-resizer","data-orientation":e,"data-active":t||void 0,role:n,className:J("ux-pane-resizer",$te,e==="vertical"?Pte:Ute,r),...i})}const Gte="atm_mk_h2mmj6 atm_am_ggq5uc atm_jb_idpfg4 atm_j6_idpfg4 atm_ks_15vqwwr atm_26_6lcubb",Fte="atm_mk_stnw88 atm_tk_1aqtv8w atm_n3_1aqtv8w atm_fq_1aqtv8w atm_wq_1du6iyk",Hte="atm_9s_1txwivl atm_h_1h6ojuz atm_cx_ek2tx5 atm_gi_tx1for atm_l8_5z7wz8 atm_yqcrq0_glywfm",Vte="atm_3f_moqrwa atm_5j_ab5uq2 atm_26_1muz9yu atm_7l_1r1dq30 atm_70_1xzuvaq atm_tej1as_1ox2th8",Xte="atm_vy_1aqtv8w atm_e2_1aqtv8w atm_am_glywfm";function Yte({warning:e,children:t,className:n="",...r}){return b.jsxs("main",{"data-product-pattern":"shell-main","data-product-pattern-slot":"main",className:J("ux-shell-main",Gte,n),...r,children:[e!=null?b.jsx("div",{className:J(Fte),children:b.jsxs("div",{role:"alert",className:J(Hte,Vte),children:[b.jsx(at,{name:"alert-triangle",className:J(Xte)}),b.jsx("span",{children:e})]})}):null,t]})}const Wte="atm_9s_1txwivl atm_jb_idpfg4 atm_j6_idpfg4",Kte="atm_am_14je7hw atm_vy_l705tw atm_e2_1osqo2v",Zte="atm_mk_h2mmj6 atm_am_ggq5uc atm_e2_1osqo2v",Qte="atm_am_1nshikl atm_vy_1vchpkz atm_e2_1osqo2v",Jte="atm_9s_glywfm";function ZC({placement:e="main",collapsed:t=!1,children:n,className:r="",...i}){return b.jsx("section",{"data-product-pattern":"shell-pane","data-product-pattern-slot":`${e}-pane`,"data-placement":e,"data-collapsed":t||void 0,className:J("ux-shell-pane",Wte,e==="start"&&Kte,e==="main"&&Zte,e==="end"&&Qte,t&&Jte,r),...i,children:n})}const ene="atm_3ux45p_xilxc7 atm_7enurt_1ul9x4n atm_xrwmvn_1sa4g6l atm_131t7x5_1pnai9a atm_jijb4g_mpnfgn atm_5f7sk5_grho7r atm_mk_stnw88 atm_f3_idpfg4 atm_9s_1txwivl atm_ar_1bp4okc atm_ks_15vqwwr atm_bx_rhlbdi atm_rdikh7_16f6m6j atm_1x84mu2_grho7r atm_c55rhu_uf7jqg atm_1uhjr1p_glywfm atm_ecihg_glywfm atm_10ksiv3_1txwivl atm_1kijzu3_h2mmj6 atm_1iefpba_1wugsn5 atm_yaxn93_1wugsn5 atm_ko42wp_1fhbwtr atm_10lsymm_14je7hw atm_1rvq92s_l705tw atm_172uwyg_idpfg4 atm_1fvgr9n_idpfg4 atm_1bph1dv_1osqo2v atm_9ddw67_glywfm atm_1gubk6t_1txwivl atm_1sp0tzn_ggq5uc atm_1bc2xyu_1bp4okc atm_1fcxf65_1osqo2v atm_v7xi9x_1osqo2v atm_71pju9_idpfg4 atm_1h37yxn_15vqwwr atm_srjbw4_1xi6ry0 atm_1rwb2pj_1ru0ig4 atm_ojglny_1pywi5l atm_8ns5lf_cjiytx atm_1yemdah_ynj908 atm_12x7efd_1wz40ms atm_lwllai_1mqbmot atm_1feo289_1uoma54 atm_1ntqfac_ggq5uc atm_1oqp3de_idpfg4 atm_x9xdhn_15vqwwr atm_1aerayh_1wugsn5 atm_1yhzyu7_1n7o584 atm_1tarpjs_noze7a atm_1ljmije_p27btl atm_1y4zt3u_glywfm atm_1w7swc1_1osqo2v atm_15knt46_idpfg4 atm_hqz9gm_15vqwwr atm_1goo8mn_idpfg4 atm_2cta3c_idpfg4 atm_1efuv80_99d5r0 atm_nc44ax_1osqo2v atm_hyk4gq_idpfg4 atm_1o7ctz5_1wugsn5 atm_1s3qamy_1ru0ig4 atm_160p80y_627g3t atm_188ttql_h2mmj6 atm_udzxna_1txwivl atm_1seeos9_ggq5uc atm_1v6rkac_1bp4okc atm_r79hod_1oyiw06 atm_5klteb_idpfg4 atm_19vekdg_15vqwwr atm_15e0t8c_1wugsn5 atm_c0xlp_1jbrbnu atm_g1urbn_p27btl atm_50pdhg_1y6m0gg atm_1qhfrly_15fao4p atm_18feplh_idpfg4 atm_c0jtka_idpfg4 atm_lje45h_glywfm atm_1wwgx0s_idpfg4 atm_1mj8x1f_15vqwwr atm_15ppeyb_1l2sidv atm_o27oij_1q9ccgz atm_1nw8nhp_116y0ak atm_sici2z_lafzln atm_cnzmvn_lafzln atm_zi9grc_1h6ojuz atm_a3xwe7_1h6ojuz atm_pjzbv7_9wwvsf atm_1pd1ogi_1i9d2r atm_1ula9zs_1d1fc98 atm_brvn2b_kb7nvz atm_vpoi7h_1mv84c8 atm_h1c6rm_1n5mw07 atm_fxqoaj_73adwj atm_1g1dy40_1jleg3m atm_1eodxbn_1ye8rbs atm_1c373q3_1d1fc98 atm_gpgv10_idpfg4 atm_4w31ht_3szr2b atm_zs36ux_1ulexfb atm_9abbz0_20g1vd atm_1q3glny_1k2i9i8 atm_t4tbn8_1o6fbio atm_1iqlrkt_1d1fc98 atm_7tida4_1lzc1s3 atm_2ezvx_kb7nvz atm_1xxam19_angws6 atm_gh0pxy_idpfg4 atm_ofa1ll_1txwivl atm_177cxc6_1bp4okc atm_1fi7wrl_1fhbwtr atm_1p9dk8_ek2tx5 atm_7iurbl_lxkxdv atm_7l40kj_idpfg4 atm_1b8rsww_idpfg4 atm_djj5i0_11p5wf0 atm_1d65hsf_wxktsh atm_62i14_6skkmd atm_2xs6mu_1txwivl atm_8lhdc5_idpfg4 atm_c1n4yv_1yb4nlp atm_1r3xg9n_1txwivl atm_oz6ehr_1g80g66 atm_14g0a2j_1h6ojuz atm_1f5j3rc_ek2tx5 atm_2mex6r_idpfg4 atm_48cui3_116y0ak atm_sfpxqs_1h6ojuz atm_69v9z7_tx1for atm_8cnxsf_1mv84c8 atm_1yfwqyr_1vxnein atm_1qhdtiv_mrub5a atm_jsxh0o_ouk0ow atm_1081n74_19dj2kj atm_139gqpd_glywfm atm_oleumc_1ulexfb atm_169wq1q_1aou828 atm_1nh7oix_1aou828 atm_1p4ityy_12336oc atm_5sbcir_1txwivl atm_17sqc6y_1bp4okc atm_1x1tink_1oyiw06 atm_1jws8z7_11p5wf0 atm_1y5tmpx_1gpoo8t atm_ouliue_1h6ojuz atm_jjxqxj_ek2tx5 atm_17se9h6_1osqo2v atm_19fqfjv_15fao4p atm_1ao9kg0_3ofa5r atm_1r9qgi4_tlke0l atm_9csj2c_1kw7nm4 atm_1jo9o0e_1e5hqsa atm_8b8yde_116y0ak atm_s04oss_1h6ojuz atm_gvf495_1h6ojuz atm_156c7m0_15vqwwr atm_1x2bwkg_1m800s6 atm_1ybb52q_19dj2kj atm_kzt9fc_1l2sidv atm_10ebec4_1q9ccgz atm_1ig1k6o_116y0ak atm_1haqavj_lafzln atm_o9si51_lafzln atm_q1f8b4_1h6ojuz atm_1y66fov_1h6ojuz atm_1g65iep_9wwvsf atm_15eg51j_1o6fbio atm_c0kg4v_1d1fc98 atm_10r3gnr_kb7nvz atm_1a13fzl_1mv84c8 atm_1ear0g9_1mv84c8 atm_5gpatv_ynj908 atm_1i1lwtt_vb8vu1 atm_f2e1yx_1mv84c8 atm_5952ev_1mv84c8 atm_qyltn_vb8vu1 atm_11l199c_1rmyi83 atm_qaq6xw_1mqbmot atm_1xf45k3_1txwivl atm_pikml5_1bp4okc atm_118jzqv_1oyiw06 atm_11ki9gp_1txwivl atm_po16k8_1h6ojuz atm_1qfyrm9_ynj908 atm_vna3q2_1mv84c8 atm_1eihh09_vb8vu1 atm_6a1v6r_ouk0ow atm_1pyx9rc_nqt0r7 atm_6fhrtr_116y0ak atm_1twcqgo_15fao4p atm_teul4h_14k5dlv atm_1mimi60_1h6ojuz atm_wp2e30_1h6ojuz atm_5qv58s_ab5uq2 atm_10io2cj_1o6fbio atm_kmgorq_1mvar2t atm_158su4r_kb7nvz atm_1o7zs3j_11p5wf0 atm_e3701e_ek2tx5 atm_108n3uo_idpfg4 atm_go9cn5_idpfg4 atm_13bgq2s_idpfg4 atm_ncyz2l_116y0ak atm_1gltp7c_1osqo2v atm_xsjzwl_idpfg4 atm_1x0r2fh_1h6ojuz atm_1kmrkut_1y6m0gg atm_14wykfo_ek2tx5 atm_e9wwt6_1kxw53v atm_1avepw_tlke0l atm_c0eztd_1kw7nm4 atm_1hsl3gk_1e5hqsa atm_1ojumga_glywfm atm_1hsewpi_idpfg4 atm_r34puo_15vqwwr atm_1f8pkp3_1l2sidv atm_19zt755_1q9ccgz atm_i5tpul_1txwivl atm_biz1oi_idpfg4 atm_lo3z5o_1h6ojuz atm_qbejmc_iqvn5y atm_15cqjux_ggq5uc atm_4od0u4_ggq5uc atm_1nu3o08_idpfg4 atm_s7hp26_15vqwwr atm_1hrax50_1l2sidv atm_rju795_1q9ccgz atm_153o23t_12336oc atm_1x8m39z_ewfl5b atm_1y62n2o_ohusjj atm_z6wgyi_1i9d2r atm_d5kv8z_1o6fbio atm_1ttqzmg_1d1fc98 atm_ozd62a_cjiytx atm_63e1k2_idpfg4 atm_1sauz3i_ouk0ow atm_93f6k7_1xhgn5n atm_1meko8n_16f6m6j",tne="atm_26_6lcubb atm_7l_an4usv atm_dszr3u_xbw5ta atm_gabbo7_1u3842e atm_1yhh93k_an4usv atm_l5nbzw_21k9f7 atm_1oh3oos_6lcubb atm_1al7dlc_idpfg4 atm_1encuka_idpfg4 atm_vqlst0_1u3842e atm_1xn0sjc_1j28jx2 atm_136b0pp_yzuxxm atm_1wxhtsd_1uoma54 atm_1i0zy70_1r31cwp atm_calf5j_1j28jx2 atm_rutvxp_1r1dq30 atm_cw3fjw_1mqbmot atm_1bdg6id_1mqbmot atm_1pxcxun_xbw5ta atm_1qogrin_yzuxxm atm_gkbomr_127xd9b atm_11a7dcu_1uoma54 atm_1x4mh2t_glywfm atm_la9xfr_1m800s6 atm_zu03n7_1r1dq30 atm_7w9bp4_8stvzk atm_6ac4sz_1uoma54 atm_11hgn3j_1j28jx2 atm_dq0f0_8o97w atm_1gst134_1r1dq30 atm_17w9nqg_ag7trk atm_1qbqml0_mrub5a atm_7jjoth_1u3842e atm_1f1h52d_an4usv atm_ookfbr_1627y59 atm_ept4rc_8o97w atm_v0z9h9_yzuxxm atm_1vzq0u1_1mqbmot atm_14ezcbg_1mqbmot atm_13o3x2y_idpfg4 atm_1mfq3vw_ab5uq2 atm_gvp5zp_1j28jx2 atm_1198tn7_an4usv atm_17fb0sr_8o97w atm_r1e1ux_9snglw atm_zmfrd2_1xi6ry0 atm_t1sm2i_1mqbmot atm_1ft8udg_an4usv atm_1wm52g9_1i9d2r atm_1ufemz8_yzuxxm atm_1eeudo7_1uoma54",nne="atm_wq_18g0jgm atm_9s_1txwivl atm_am_k7cqs8 atm_h_1fhbwtr atm_e2_3fip7g atm_lttsoj_idpfg4",rne="atm_40_xbw5ta atm_26_1u3842e",ine="atm_10gvs4z_jijo1b atm_9s_1txwivl atm_am_14je7hw atm_h_1h6ojuz atm_cx_ek2tx5 atm_73_usvi9m atm_5q_xbw5ta atm_l8_13lkfmx atm_10a8e0q_1wugsn5 atm_7v5fnw_1wugsn5 atm_140bc1r_4qz7n2",ane="atm_mk_pfqszd atm_tk_1wugsn5 atm_fq_1wugsn5 atm_9s_1ulexfb atm_am_12336oc atm_vy_1q4684i atm_e2_1q4684i atm_tr_glywfm",one="atm_17j569w_wh2yj2 atm_9s_116y0ak atm_h_1h6ojuz atm_7l_1r1dq30 atm_c8_dtbmau atm_cs_1d1fc98 atm_fr_j8soc3 atm_g3_kb7nvz atm_tr_1f1pu16",sne="atm_9s_1txwivl atm_am_ggq5uc atm_jb_idpfg4 atm_h_1fhbwtr atm_l0_1wugsn5 atm_l1_15vqwwr atm_lk_1rqgide atm_zufo0v_1osqo2v atm_jlg94s_idpfg4 atm_1lln3pn_1osqo2v",lne="atm_9s_1txwivl atm_am_12336oc atm_h_1h6ojuz atm_cx_iqvn5y atm_l8_1ytysue atm_lttsoj_ynj908",une="atm_mk_h2mmj6 atm_9s_1txwivl atm_am_ggq5uc atm_j6_idpfg4 atm_26_6lcubb",cne="atm_mk_stnw88 atm_tk_1ssbidh atm_fq_10ksde3 atm_wq_6m60ty atm_9s_116y0ak atm_vy_1doep66 atm_e2_1ru0ig4 atm_h_1h6ojuz atm_fc_1h6ojuz atm_9j_tlke0l atm_tr_1i34xl8 atm_nwhuwt_ynj908 atm_17yrrpa_glywfm atm_6tqpqf_1ulexfb atm_1pqnrs9_1aou828 atm_1dlbvfv_1aou828",fne="atm_3f_ag7trk atm_5j_ab5uq2 atm_26_1u3842e atm_70_1xzuvaq atm_7l_1mqbmot atm_syj2lh_1627y59 atm_1sx18ul_1r1dq30",hne=se.forwardRef(function({brandLabel:t="REQVIRE",toolbar:n,navigationItems:r=[],activeNavigationValue:i,headerActions:a=[],sidePane:o,main:l,detailPane:c,mainWarning:f,leftPaneOpen:d=!0,leftPaneResizing:m=!1,leftPaneWidth:p,leftPaneMinWidth:g,leftPaneMaxWidth:y,leftPaneCollapseLabel:x="Collapse pane",leftPaneExpandLabel:k="Expand pane",leftPaneResizeLabel:w="Resize pane",onNavigate:C,onToggleLeftPane:S,onLeftPaneResizePointerDown:T,onLeftPaneResizeKeyDown:z,className:A="",children:L,...G},H){const q=!!(T||z),V=d?x:k;return b.jsxs("div",{ref:H,"data-product-pattern":"app-shell",className:J("ux-app",ene,tne,!d&&"is-left-collapsed",m&&"is-left-resizing",A),...G,children:[n??b.jsx(dne,{brandLabel:t,navigationItems:r,activeNavigationValue:i,headerActions:a,onNavigate:C}),b.jsxs("div",{"data-product-pattern-slot":"body",className:J(une),children:[o!=null?b.jsx(ZC,{placement:"start",collapsed:!d,children:o}):null,o!=null&&S!=null?b.jsx("button",{type:"button",className:J(cne,fne,!d&&"is-collapsed"),"aria-label":V,"aria-expanded":d,title:V,onClick:S,children:d?b.jsx(at,{name:"chevron-left"}):b.jsx(at,{name:"chevron-right"})}):null,o!=null&&q?b.jsx(Bte,{active:m,orientation:"vertical","aria-label":w,"aria-orientation":"vertical","aria-valuemin":g,"aria-valuemax":y,"aria-valuenow":p,tabIndex:d?0:-1,onPointerDown:T,onKeyDown:z}):null,b.jsx(Yte,{warning:f,children:l}),c!=null?b.jsx(ZC,{placement:"end",children:c}):null]}),L]})});function dne({brandLabel:e,navigationItems:t,activeNavigationValue:n,headerActions:r,onNavigate:i}){const a=t.map(o=>({value:o.value,label:o.label,icon:o.icon!=null?b.jsx(at,{name:o.icon}):void 0,badge:o.badge}));return b.jsxs("header",{"data-product-pattern":"shell-header",className:J(nne,rne),children:[b.jsxs("div",{className:J(ine),children:[b.jsx(Dz,{className:J(ane),decorative:!0}),e!=null?b.jsx("span",{className:J(one),children:e}):null]}),b.jsx("nav",{className:J(sne),"aria-label":"Explorer views",children:b.jsx(HJ,{items:a,value:n,onChange:i,variant:"underline"})}),r.length>0?b.jsx("div",{className:J(lne),children:r.map(o=>b.jsx(xc,{"aria-label":o.label,title:o.label,active:o.active??!1,disabled:o.disabled,onClick:o.onClick,children:b.jsx(at,{name:o.icon})},o.id))}):null]})}const mne="atm_mk_stnw88 atm_f3_idpfg4 atm_ks_15vqwwr atm_z96mp2_15vqwwr atm_tx6wa3_1osqo2v atm_c23icw_idpfg4 atm_15sh1ry_15vqwwr atm_xl2yni_idpfg4 atm_18wqs0h_15vqwwr atm_1yf7k5_1wugsn5 atm_6hyzq9_1osqo2v atm_1e3sxn3_idpfg4",pne="atm_26_6lcubb",_ne="atm_73_usvi9m atm_mk_h2mmj6 atm_9s_11p5wf0 atm_dz_i47zc9 atm_84_idpfg4 atm_e2_1kxcs5u atm_j6_idpfg4 atm_lk_l705tw atm_ll_idpfg4 atm_1kiqiet_i47zc9 atm_1phjbih_idpfg4 atm_101uomu_1osqo2v atm_1luas71_idpfg4 atm_10w7pc2_15vqwwr atm_7j151f_idpfg4 atm_1jtv9z9_idpfg4",gne="atm_26_6lcubb atm_7l_an4usv atm_1jnj122_6lcubb",yne="atm_mk_h2mmj6 atm_73_usvi9m atm_jb_idpfg4 atm_j6_idpfg4 atm_ks_1wugsn5 atm_l8_1h5vprv atm_101uomu_1osqo2v atm_1luas71_idpfg4 atm_10w7pc2_1wugsn5 atm_gjhvm_1ru0ig4",vne="atm_5e_19lzvi5 atm_5q_19lzvi5 atm_26_1u3842e atm_ul853p_idpfg4 atm_84ju44_idpfg4 atm_1jnj122_1u3842e";function bne({viewId:e,children:t,className:n="",...r}){return b.jsx("main",{"data-product-pattern":"route-frame","data-view":e,className:J("ux-route-frame",mne,pne,n),...r,children:t})}function Ec({layout:e="single",children:t,className:n="",...r}){return b.jsx("div",{"data-product-pattern":"route-layout","data-route-frame":!0,"data-route-layout":e,className:J("ux-route-layout",_ne,gne,n),...r,children:t})}function Rl({children:e,className:t="",...n}){return b.jsx("section",{"data-product-pattern":"route-panel",className:J("ux-route-panel",yne,vne,t),...n,children:e})}const xne="atm_ptp1bw_1178luh atm_1mzjczu_13i4f3j atm_10v3kfr_ghg70p atm_9s_1txwivl atm_e2_1osqo2v atm_ar_1bp4okc atm_cx_1wz40ms atm_ks_15vqwwr atm_10w7pc2_1wugsn5",wne="atm_7l_an4usv",kne="atm_9s_1txwivl atm_j6_10y9mp3 atm_h_1h6ojuz atm_fc_1yb4nlp atm_cx_ynj908 atm_l8_1uaqrqd atm_5ct0mx_1fhbwtr atm_5xse3x_1bp4okc",Ene="atm_40_ag7trk atm_26_1u3842e",Sne="atm_9s_1txwivl atm_jb_idpfg4 atm_am_ggq5uc atm_h_1h6ojuz atm_cx_1xi6ry0 atm_ks_15vqwwr atm_c8_1m800s6",Tne="atm_7l_1mqbmot",QC="atm_9s_116y0ak atm_jb_idpfg4 atm_h_1h6ojuz atm_cx_1xi6ry0 atm_13loie4_16yakvr atm_14phpq0_15vqwwr atm_1fhnral_1l2sidv atm_1d891j5_1q9ccgz atm_19slny5_idpfg4 atm_cears4_1j28jx2 atm_ugfq01_tlke0l atm_6op2yx_1o8liyq atm_1n5984h_p7kxrq atm_106c7nu_19dj2kj",JC="atm_5netkm_an4usv atm_vuoyfh_8stvzk atm_4kricj_1r1dq30 atm_e31eje_hieimq",Cne="atm_9s_1txwivl atm_jb_2wsrf1 atm_h_1h6ojuz atm_fc_esu3gu atm_cx_ek2tx5 atm_be_1g80g66 atm_7v5fnw_1osqo2v atm_140bc1r_idpfg4",Ane="atm_c8_ouk0ow atm_g3_19ii325",jne="atm_7l_1mqbmot";function Rne({rootLabel:e,currentLabel:t,countLabel:n,controls:r,children:i,breadcrumbLabel:a="Model graph breadcrumbs",onRootClick:o}){return b.jsxs(Rl,{"data-panel":"document","data-model-graph-shell":!0,className:J("ux-model-graph-shell",xne,wne),children:[b.jsxs("div",{className:J("ux-model-graph-shell__toolbar",kne,Ene),children:[b.jsxs("div",{className:J("ux-model-graph-shell__breadcrumbs",Sne,Tne),"aria-label":a,children:[b.jsx("span",{className:J("ux-model-graph-shell__crumb",QC,JC),children:b.jsx("button",{type:"button",onClick:o,children:e})}),b.jsxs("span",{className:J("ux-model-graph-shell__crumb",QC,JC),children:[b.jsx("span",{"data-model-graph-crumb-separator":!0,children:"/"}),b.jsx("span",{"data-model-graph-crumb-current":!0,children:t})]})]}),b.jsxs("div",{className:J("ux-model-graph-shell__actions",Cne),children:[n?b.jsx("span",{className:J("ux-model-graph-shell__count",Ane,jne),children:n}):null,r]})]}),i]})}const Nne="atm_c8_1m800s6 atm_g3_5cyyty atm_154eppz_1ulexfb atm_1olll9p_owgaek atm_rwqn34_an4usv atm_eubwdv_1d1fc98 atm_1aif5c9_1osqo2v atm_23oz9t_1wugsn5 atm_yxvol1_pm3ebf atm_1ii5m9r_ab5uq2 atm_5nzslz_ek2tx5 atm_127v0y0_l6f2xw atm_2i224p_ouk0ow atm_kgv4wj_1sx85p0",zne="atm_7l_1mqbmot atm_vr8p5l_1m30gqx atm_adzrtd_yzuxxm atm_19poeq1_an4usv",Lne="atm_c8_1m800s6 atm_g3_5cyyty",Mne="atm_7l_1mqbmot atm_vr8p5l_1m30gqx";function O1({inline:e=!1,title:t,tone:n="notice",children:r,className:i="",...a}){return e?b.jsxs("span",{className:J("ux-renderer-notice",Lne,Mne,i),"data-product-pattern":"renderer-notice","data-tone":n,...a,children:[t?b.jsx("strong",{children:t}):null,r]}):b.jsxs("div",{className:J("ux-renderer-notice",Nne,zne,i),"data-product-pattern":"renderer-notice","data-tone":n,...a,children:[t?b.jsx("strong",{children:t}):null,r]})}const One="atm_2q2ca2_16vdio1 atm_w45qbn_4na889 atm_p6ty3p_ktbqgd atm_1o55f4c_fbo0bp atm_12vi6d1_1osqo2v atm_vy_1qbcdo8 atm_j3_1qbcdo8 atm_iy_1rfco4h atm_1r3l6p7_1yi2ddt atm_15lheid_1yi2ddt atm_156wnpb_1sqy07v",Dne="atm_3f_ag7trk atm_5j_19ma0su atm_26_198lp58 atm_7l_an4usv atm_70_dxqsf1 atm_1ysnjrq_xbw5ta atm_nki6h4_yzuxxm atm_ghbvc0_yzuxxm atm_1erdyab_fyrtqx atm_1ti5f86_an4usv atm_1m9pog3_1m800s6 atm_q5r5c6_1mvar2t atm_1dxf9mt_8x1siq atm_7i6odd_yv70g4",qne="atm_9s_11p5wf0 atm_cx_iqvn5y atm_l8_119u37u atm_jj5qda_mp6wvn",Ine="atm_40_xbw5ta atm_26_198lp58",$ne="atm_iy_18nqavb atm_ks_1wugsn5 atm_l8_1h5vprv atm_156wnpb_3m3u69 atm_jj5qda_1aqtv8w",Pne="atm_26_1u3842e",Une="atm_9s_1txwivl atm_vy_1osqo2v atm_jb_idpfg4 atm_h_1h6ojuz atm_cx_iqvn5y atm_lbduw3_ggq5uc atm_1rs6lid_idpfg4",Bne="atm_vy_1q4684i atm_e2_1q4684i atm_am_12336oc atm_5j_mrub5a",Gne="atm_am_12336oc atm_gz_1wugsn5 atm_h0_1wa8fux atm_1pqnrs9_1aou828 atm_1dlbvfv_1aou828",e8="atm_9s_1txwivl atm_vy_1osqo2v atm_ar_1bp4okc atm_cx_hwm9mu",Fne="atm_9s_11p5wf0 atm_cx_tx1for atm_1t41yt8_idpfg4 atm_aemo9v_1r1dq30 atm_10jxl4n_dtbmau atm_1slhzjn_1d1fc98 atm_112yvym_idpfg4 atm_5q05o8_3szr2b",Hne="atm_gi_idpfg4 atm_7l_1mqbmot atm_c8_1m800s6",Vne="atm_9s_1txwivl atm_be_1g80g66 atm_cx_xyed2j",Xne="atm_9s_116y0ak atm_h_1q9ycp6 atm_cx_owgaek atm_l8_1k2i9i8 atm_c8_1m800s6",Yne="atm_5j_mrub5a atm_26_1j28jx2",Wne="atm_7l_1mqbmot",Kne="atm_7l_an4usv atm_cs_1ermehx",Zne="atm_5j_1i9d2r atm_26_1j28jx2 atm_l8_idpfg4 atm_7l_ole0cg atm_c8_1m800s6",Qne="atm_9s_1txwivl atm_ar_1bp4okc atm_cx_1oyiw06",Wz="atm_9s_11p5wf0 atm_dz_11ouabr atm_h_1h6ojuz atm_84_ek2tx5 atm_cx_1oyiw06",Kz="atm_9s_1bgihbq",Jne="atm_9s_1txwivl atm_h_1h6ojuz atm_cx_owgaek atm_jb_idpfg4 atm_l8_14k80hk",ere="atm_40_xbw5ta atm_18kh1rq_idpfg4",tre="atm_jb_idpfg4 atm_7l_1mqbmot atm_c8_1m800s6 atm_kz_fg65tv",Zz="atm_9s_116y0ak atm_h_1h6ojuz atm_fg_v2br90 atm_cx_owgaek atm_l8_zedqrz atm_bx_l6f2xw atm_c8_ouk0ow atm_g3_5cyyty",Qz="atm_5j_1i9d2r atm_26_yzuxxm atm_7l_1mqbmot",sw="atm_9s_116y0ak atm_fg_v2br90 atm_jb_idpfg4 atm_j3_ing5cs atm_h_1h6ojuz atm_cx_owgaek atm_l8_ohusjj atm_3f_idpfg4 atm_bx_1kw7nm4 atm_c8_1m800s6 atm_cs_19dj2kj atm_g3_5cyyty atm_rd_glywfm atm_kz_fg65tv atm_1lzv4lt_tlke0l",lw="atm_5j_mrub5a atm_26_1j28jx2 atm_7l_1r1dq30 atm_1tgqd35_8o97w atm_pgg0nz_glywfm",uw="atm_jb_idpfg4 atm_kz_fg65tv",nre="atm_l8_1xwy84n atm_jj5qda_5z7wz8",rre="atm_67_xbw5ta atm_26_198lp58",ire="atm_9s_1txwivl atm_vy_1osqo2v atm_h_1h6ojuz atm_fc_1yb4nlp atm_cx_1aqtv8w",are="atm_9s_116y0ak atm_h_1h6ojuz atm_cx_owgaek atm_jb_idpfg4 atm_c8_1m800s6 atm_cs_1d1fc98 atm_rd_glywfm atm_kz_fg65tv",ore="atm_7l_hq4ovn atm_pgg0nz_8stvzk atm_vbltw0_1xi6ry0",sre="atm_vy_1aqtv8w atm_e2_1aqtv8w atm_am_glywfm";function D1({title:e,children:t}){return b.jsxs("section",{className:J(Fne),children:[b.jsx("h3",{children:e}),t]})}function Jz({endpoint:e,onOpenElement:t,onOpenResource:n}){const r=J(sw,lw),i=b.jsxs(b.Fragment,{children:[e.kind==="element"?b.jsx(Ln,{type:e.elementType,family:e.typeFamily,title:e.elementType,size:"sm"}):b.jsx(Ln,{type:e.kind,title:e.kind,size:"sm"}),b.jsx("span",{className:J(uw),children:e.label})]});return e.kind==="element"&&e.href?b.jsx("a",{className:r,href:e.href,title:e.id,onClick:a=>{a.preventDefault(),t(e.id)},children:i}):e.href?b.jsx("a",{className:r,href:e.href,title:e.id,onClick:a=>lre(a,e,n),...e.external?{target:"_blank",rel:"noreferrer"}:{},children:i}):b.jsx("span",{className:r,title:e.id,children:i})}function lre(e,t,n){t.external||!t.href||!n||(e.preventDefault(),n(t.href,ure(t,t.href)))}function ure(e,t){return{id:e.id,href:t,kind:e.kind,label:e.label}}function cre({title:e="Reused Contract Context",reused_contract_context:t,onOpenElement:n,onOpenResource:r}){return t.length===0?null:b.jsx(D1,{title:e,children:b.jsx("div",{className:J(Wz),children:t.map(i=>b.jsx(fre,{reused_contract_context:i,onOpenElement:n,onOpenResource:r},i.id))})})}function fre({reused_contract_context:e,onOpenElement:t,onOpenResource:n}){return b.jsxs("div",{className:J(Kz),children:[b.jsx("span",{className:J(Zz,Qz),children:e.kind}),b.jsx(Jz,{endpoint:{id:e.targetId,label:e.label,kind:e.resourceKind??e.kind,elementType:e.elementType,typeFamily:e.typeFamily,href:e.href,external:e.external},onOpenElement:t,onOpenResource:n})]})}function hre({title:e="Concept references",references:t,onOpenConceptReference:n}){return t.length===0?null:b.jsx(D1,{title:e,children:b.jsx("div",{className:J(Qne),children:t.map(r=>b.jsxs("div",{className:J(Jne,ere),children:[r.ontologyNodeId&&n?b.jsxs("button",{type:"button",className:J(sw,lw),title:r.iri,onClick:()=>n(r),children:[b.jsx(Ln,{type:"ontology",family:"ontology",title:"ontology",size:"sm"}),b.jsx("span",{className:J(uw),children:r.ontologyLabel??r.label})]}):b.jsxs("span",{className:J(sw,lw),title:r.iri,children:[b.jsx(Ln,{type:"resource",family:"resource",title:"concept reference",size:"sm"}),b.jsx("span",{className:J(uw),children:r.ontologyLabel??r.label})]}),b.jsxs("span",{className:J(tre),children:["(",r.label,")"]})]},r.id))})})}function dre({open:e,onOpenChange:t,title:n,typeFamily:r,elementType:i,showHeaderClose:a=!0,sourceHref:o,sourceLabel:l="Open source page",closeLabel:c="Close",backLabel:f="Back",onNavigateBack:d,onOpenSource:m,children:p}){return b.jsx(Sk,{open:e,onOpenChange:t,children:b.jsxs(Tk,{className:J(One,Dne),showCloseButton:!1,children:[b.jsx(z1,{className:J(qne,Ine),children:b.jsxs("div",{className:J(Une),children:[d?b.jsx(xc,{tone:"secondary",size:"sm",className:J(Bne),"aria-label":f,title:f,onClick:d,children:b.jsx(at,{name:"chevron-left"})}):null,i?b.jsx(Jr,{type:i,family:r,tinted:!0,dot:!1,children:i}):null,b.jsx(L1,{children:n}),a?b.jsx(wc,{asChild:!0,children:b.jsx(xc,{tone:"ghost",className:J(Gne),"aria-label":"Close",children:b.jsx(at,{name:"x"})})}):null]})}),b.jsx(yg,{className:J($ne,Pne),children:p}),o?b.jsx(Ck,{className:J(nre,rre),children:b.jsxs("div",{className:J(ire),children:[b.jsxs("a",{href:o,className:J(are,ore),onClick:g=>{m&&(g.preventDefault(),m(o))},children:[b.jsx(at,{name:"external-link",className:J(sre)})," ",l]}),b.jsx(wc,{asChild:!0,children:b.jsx(cs,{tone:"primary",size:"sm",children:c})})]})}):null]})})}function mre({badges:e}){return e.length===0?null:b.jsx("div",{className:J(Vne),children:e.map(({key:t,value:n,provenance:r})=>b.jsxs("span",{className:J(Xne,Yne),children:[b.jsx("span",{className:J(Wne),children:t}),b.jsx("span",{className:J(Kne),children:n}),b.jsxs("span",{className:J(Zne),children:["(",r,")"]})]},`meta-${t}`))})}function pre({title:e="Relations",relations:t,onOpenElement:n,onOpenResource:r}){return t.length===0?null:b.jsx(D1,{title:e,children:b.jsx("div",{className:J(Wz),children:t.map((i,a)=>b.jsxs("div",{className:J(Kz),children:[b.jsx("span",{className:J(Zz,Qz),children:i.label}),b.jsx(Jz,{endpoint:i.target,onOpenElement:n,onOpenResource:r})]},i.id??`${i.label}-${i.target.id}-${a}`))})})}function _re({metaBadges:e=[],content:t,relations:n=[],reused_contract_context:r=[],conceptReferences:i=[],onOpenElement:a,onOpenConceptReference:o,onOpenResource:l}){return b.jsxs("div",{className:J(e8),children:[b.jsx(mre,{badges:e}),b.jsxs("div",{className:J(e8),children:[b.jsx(D1,{title:"Content",children:t}),b.jsx(pre,{relations:n,onOpenElement:a,onOpenResource:l}),b.jsx(cre,{reused_contract_context:r,onOpenElement:a,onOpenResource:l}),b.jsx(hre,{references:i,onOpenConceptReference:o})]})]})}function gre({identifier:e}){return b.jsxs("p",{className:J(Hne),children:["No Project Store element matches ",b.jsx(Pi,{children:e}),"."]})}const yre="atm_1wb223w_16vdio1 atm_q68q8s_4na889 atm_vww6vl_ktbqgd atm_1jc77wn_fbo0bp atm_9vskfe_1l4s3gx atm_i97n1m_1lfve6u atm_1wm8qtk_1r3i9as atm_vy_1p9nis4 atm_j3_1p9nis4 atm_iy_9ull9o atm_1r3l6p7_1yi2ddt atm_15lheid_1yi2ddt atm_156wnpb_1sqy07v",vre="atm_3f_ag7trk atm_5j_19ma0su atm_26_198lp58 atm_7l_an4usv atm_70_dxqsf1",bre="atm_1hkc3dz_r4lf6c atm_11hxu0t_ukw8rw atm_vy_1n6gcyj atm_2p2na2_bldqeu",eL="atm_l8_119u37u atm_jj5qda_mp6wvn",tL="atm_40_xbw5ta atm_26_198lp58",t8="atm_iy_1ed1odl atm_ks_1wugsn5 atm_l8_1h5vprv atm_156wnpb_r9ddfb atm_jj5qda_1aqtv8w",n8="atm_26_1u3842e",r8="atm_l8_1ru0ig4",xre="atm_9s_1txwivl atm_vy_1osqo2v atm_jb_idpfg4 atm_h_1h6ojuz atm_cx_1aqtv8w atm_lbduw3_ggq5uc atm_1rs6lid_idpfg4",wre="atm_am_12336oc",kre="atm_am_12336oc atm_gz_1wugsn5 atm_h0_1wa8fux atm_1pqnrs9_1aou828 atm_1dlbvfv_1aou828",Ere="atm_9s_11p5wf0 atm_cx_tx1for atm_1t41yt8_idpfg4 atm_aemo9v_1r1dq30 atm_10jxl4n_dtbmau atm_1slhzjn_1d1fc98 atm_112yvym_idpfg4 atm_5q05o8_3szr2b",Sre="atm_gi_idpfg4 atm_7l_1mqbmot atm_c8_1m800s6",nL="atm_7l_1mqbmot atm_c8_ouk0ow atm_g3_19ii325",Tre="atm_l8_1xwy84n atm_jj5qda_5z7wz8",Cre="atm_67_xbw5ta atm_26_198lp58",Are="atm_9s_1txwivl atm_vy_1osqo2v atm_h_1h6ojuz atm_fc_1yb4nlp atm_cx_1aqtv8w",jre="atm_9s_116y0ak atm_h_1h6ojuz atm_cx_owgaek atm_jb_idpfg4 atm_c8_1m800s6 atm_cs_1d1fc98 atm_rd_glywfm atm_kz_fg65tv",Rre="atm_7l_hq4ovn atm_pgg0nz_8stvzk atm_vbltw0_1xi6ry0",Nre="atm_vy_1aqtv8w atm_e2_1aqtv8w atm_am_glywfm",zre="atm_ks_15vqwwr",Lre="atm_3f_xbw5ta atm_5j_1pr0uq2 atm_26_1u3842e",i8="atm_9s_11p5wf0 atm_dz_162fmhv atm_cx_1aqtv8w atm_l8_zv440n atm_c8_1m800s6",a8="atm_5rng3w_xbw5ta",o8="atm_dz_hkllrs atm_cx_1xi6ry0",s8="atm_7l_1mqbmot atm_cs_19dj2kj",l8="atm_jb_idpfg4 atm_kz_fg65tv",u8="atm_7l_an4usv",Mre="atm_9s_1txwivl atm_be_1g80g66 atm_cx_tx1for atm_gq_idpfg4",Ore="atm_9s_1o8liyq atm_l8_1r3tyjr atm_gi_yaqoro atm_c8_1o6fbio atm_rd_glywfm",Dre="atm_3f_xbw5ta atm_5j_mrub5a atm_26_yzuxxm atm_7l_an4usv atm_1tgqd35_8o97w",qre="atm_9s_116y0ak atm_j3_1osqo2v atm_h_1h6ojuz atm_cx_tx1for atm_l8_idpfg4 atm_9j_tlke0l atm_15eufem_idpfg4 atm_glyiex_fg65tv atm_x7uwtx_1e5hqsa atm_12tmyg6_4jg895 atm_1pqnrs9_1aou828 atm_1dlbvfv_1aou828 atm_yqcrq0_12336oc",Ire="atm_3f_idpfg4 atm_5j_ab5uq2 atm_26_1j28jx2 atm_7l_an4usv atm_tej1as_1mqbmot atm_fuldz0_1r1dq30",$re="atm_9s_11p5wf0 atm_dz_1yfceyh atm_cx_1ru0ig4 atm_h_v2br90 atm_gt41we_hkllrs",c8="atm_9s_1txwivl atm_jb_idpfg4 atm_ar_1bp4okc atm_cx_1doep66",Pre="atm_mk_1if85x1 atm_tk_idpfg4 atm_z04fb0_pfqszd atm_m7c1cp_1mrwo0b",Ure="atm_gi_idpfg4 atm_7l_an4usv atm_c8_1m800s6 atm_g3_1sx85p0",q1="atm_9s_1txwivl atm_jb_idpfg4 atm_be_1g80g66 atm_h_1h6ojuz atm_cx_ek2tx5",Bre="atm_9s_116y0ak atm_h_1h6ojuz atm_cx_owgaek atm_l8_1r3tyjr atm_c8_ouk0ow atm_cs_19dj2kj",Gre="atm_3f_ag7trk atm_5j_1i9d2r atm_26_yzuxxm atm_7l_1uoma54",cl="atm_9s_11p5wf0 atm_cx_1wz40ms",Sc="atm_9s_11p5wf0 atm_jb_idpfg4 atm_cx_ynj908 atm_l8_1aqtv8w",Tc="atm_3f_xbw5ta atm_5j_ab5uq2 atm_26_yzuxxm",cw="atm_9s_1txwivl atm_h_1h6ojuz atm_cx_1wz40ms atm_be_1g80g66 atm_l8_vboibz",Ok="atm_9s_1txwivl atm_jb_idpfg4 atm_h_1h6ojuz atm_fc_1yb4nlp atm_cx_1aqtv8w atm_vwm2pu_idpfg4 atm_rwqn34_1r1dq30 atm_15ff2r5_fg65tv",fw="atm_l8_1r3tyjr atm_bx_l6f2xw atm_c8_1o6fbio atm_cs_19dj2kj atm_fr_11be1h0 atm_g3_19ii325 atm_vv_1q9ccgz",hw="atm_5j_mrub5a atm_26_yzuxxm atm_7l_1mqbmot",rL="atm_9s_116y0ak atm_h_1h6ojuz atm_cx_owgaek atm_l8_1r3tyjr atm_bx_l6f2xw atm_c8_ouk0ow atm_blassl_1mqbmot atm_au8vxp_1d0in48 atm_5vy2xq_19dj2kj",iL="atm_3f_xbw5ta atm_5j_1i9d2r atm_26_1u3842e atm_7l_1r1dq30",Fre="atm_9s_116y0ak atm_jb_idpfg4 atm_h_1h6ojuz atm_cx_ynj908 atm_7l_1r1dq30 atm_cs_1d1fc98 atm_kz_fg65tv",Hre="atm_9s_116y0ak atm_jb_14dey03 atm_e2_1doep66 atm_h_1h6ojuz atm_fc_1h6ojuz atm_bx_l6f2xw atm_c8_ouk0ow atm_cs_1d1fc98 atm_g3_kb7nvz",Vre="atm_3f_ttpn82 atm_5j_1i9d2r atm_26_mz5b4w atm_7l_1r1dq30",Xre="atm_9s_11p5wf0 atm_cx_1oyiw06 atm_gi_idpfg4",Yre="atm_1fgasju_l6f2xw atm_dofr1p_ouk0ow",Wre="atm_9s_11p5wf0 atm_dz_8dkps9 atm_cx_1wz40ms atm_h_1q9ycp6 atm_jb_idpfg4 atm_7l_an4usv atm_c8_1m800s6 atm_ytqxye_1mqbmot atm_5ttxvg_l6f2xw atm_1vuatxq_ouk0ow atm_bty7t0_1d1fc98 atm_ar39vb_14oeali atm_suz1ov_1qyhxd5 atm_cvz7ex_idpfg4 atm_uwqblm_idpfg4 atm_1jz47d3_fg65tv",Kre="atm_9s_116y0ak atm_jb_idpfg4 atm_h_1h6ojuz atm_cx_owgaek atm_l8_1r3tyjr atm_c8_ouk0ow atm_cs_19dj2kj atm_kz_fg65tv atm_blassl_1mqbmot atm_au8vxp_1d0in48 atm_5vy2xq_19dj2kj",Zre="atm_3f_xbw5ta atm_5j_1i9d2r atm_26_1u3842e atm_7l_1r1dq30",jp="atm_3f_ag7trk atm_26_1u3842e atm_7l_1uoma54",Qre="atm_4b_1l9gd27 atm_7l_wif9fk",Jre="atm_4b_woiobm atm_7l_1vky53y",eie="atm_4b_1ikhubk atm_7l_192rwf5",tie="atm_9s_11p5wf0 atm_cx_tx1for atm_l8_1aqtv8w atm_rd_glywfm",nie="atm_3f_xbw5ta atm_5j_1pr0uq2 atm_26_yzuxxm atm_7l_an4usv atm_18vqbco_icygq7 atm_1tgqd35_8o97w",rie="atm_9s_1txwivl atm_jb_idpfg4 atm_h_1h6ojuz atm_cx_ek2tx5 atm_be_1g80g66",iie="atm_jb_idpfg4 atm_7l_1r1dq30 atm_cs_1d1fc98 atm_kz_fg65tv",aie="atm_7l_1uoma54 atm_c8_ouk0ow atm_kz_fg65tv",Dk="atm_bx_l6f2xw atm_c8_w4wse3 atm_fr_11be1h0 atm_by_chl9tp";function oie({open:e,onOpenChange:t,children:n,contentClassName:r}){return b.jsx(Sk,{open:e,onOpenChange:t,children:b.jsx(Tk,{className:J(yre,vre,r),showCloseButton:!1,children:n})})}function sie({open:e,onOpenChange:t,node:n,nodes:r=[],missingNodeId:i=null,copiedUri:a,onCopyUri:o,onOpenSource:l}){var f,d;const c=((f=n==null?void 0:n.sources)==null?void 0:f.find(m=>m.link))??((d=n==null?void 0:n.sources)==null?void 0:d[0]);return b.jsx(oie,{open:e,onOpenChange:t,contentClassName:J(bre),children:n?b.jsxs(b.Fragment,{children:[b.jsx(die,{node:n}),b.jsx(yg,{className:J(t8,n8,r8),children:b.jsx(lie,{node:n,nodes:r,copiedUri:a,onCopyUri:o,onOpenSource:l})}),b.jsx(Ck,{className:J(Tre,Cre),children:b.jsxs("div",{className:J(Are),children:[c!=null&&c.link?b.jsxs("a",{href:c.link,className:J(jre,Rre),onClick:m=>{m.preventDefault(),l(c)},children:[b.jsx(at,{name:"external-link",className:J(Nre)})," Open ontology source"]}):b.jsx("span",{}),b.jsx(wc,{asChild:!0,children:b.jsx(cs,{tone:"primary",size:"sm",children:"Close"})})]})})]}):b.jsxs(b.Fragment,{children:[b.jsx(z1,{className:J(eL,tL),children:b.jsx(L1,{children:"Ontology node not found"})}),b.jsx(yg,{className:J(t8,n8,r8),children:b.jsxs("p",{className:J(Sre),children:["No exported ontology graph node matches ",b.jsx(Pi,{children:i??""}),"."]})})]})})}function lie({node:e,nodes:t,copiedUri:n,onCopyUri:r,onOpenSource:i}){var a,o,l,c,f,d,m,p,g,y;return b.jsxs("div",{className:J($re),children:[b.jsxs("main",{className:J(c8),children:[b.jsx(cie,{node:e,nodes:t}),g_(e)&&((((a=e.domain)==null?void 0:a.length)??0)>0||(((o=e.range)==null?void 0:o.length)??0)>0)?b.jsx(Wa,{title:"Domain / range",children:b.jsxs("div",{className:J(cl),children:[(l=e.domain)!=null&&l.length?b.jsx(h8,{kind:"domain",terms:e.domain}):null,(c=e.range)!=null&&c.length?b.jsx(h8,{kind:"range",terms:e.range}):null]})}):null,(f=e.slot_facets)!=null&&f.length?b.jsx(Wa,{title:g_(e)?"Used as slot / facets":"Slots / facets",children:b.jsx("div",{className:J(cl),children:e.slot_facets.map((x,k)=>b.jsx(mie,{slot:x,propertyContext:g_(e)},`${x.slot_iri}-${x.source_shape_iri}-${k}`))})}):null,(d=e.constructs)!=null&&d.length?b.jsx(Wa,{title:"Projection constructs",children:b.jsx(fie,{constructs:vie(e)})}):null,(m=e.literal_values)!=null&&m.length?b.jsx(Wa,{title:"Literal values",children:b.jsx("div",{className:J(cl),children:e.literal_values.map((x,k)=>b.jsxs("div",{className:J(Sc,Tc,cw),children:[b.jsx("span",{className:J(fw,hw),children:x.predicate||"value"}),b.jsx("strong",{children:x.value})]},`${x.predicate}-${k}`))})}):null,(p=e.constraints)!=null&&p.length?b.jsx(Wa,{title:"Raw SHACL evidence",children:b.jsx("div",{className:J(cl),children:e.constraints.map(x=>b.jsxs("div",{className:J(Sc,Tc,cw),children:[b.jsx("span",{className:J(fw,hw),children:x.property}),b.jsx(Pi,{children:x.value})]},`${x.property}-${x.value}`))})}):null,(g=e.sources)!=null&&g.length?b.jsx(Wa,{title:"Sources",children:b.jsx(hie,{sources:e.sources,onOpenSource:i})}):null]}),b.jsxs("aside",{className:J(c8,Pre),children:[b.jsx(uie,{node:e,copiedUri:n,onCopyUri:r}),e.comment?b.jsx(Wa,{title:"Description",children:b.jsx("p",{className:J(Ure),children:e.comment})}):null,(y=e.badges)!=null&&y.length?b.jsx(Wa,{title:"Notation",children:b.jsx("div",{className:J(q1),children:e.badges.map(x=>b.jsxs("span",{className:J(Bre,Gre),children:[b.jsx("span",{"aria-hidden":"true",children:x.symbol}),x.label]},`${x.kind}-${x.symbol}`))})}):null]})]})}function uie({node:e,copiedUri:t,onCopyUri:n}){var a;const r=e.full_uri||e.id,i=Array.from(new Set([dw(e),...(a=e.rdf_types)!=null&&a.length?e.rdf_types:[e.type||dw(e)]].filter(Boolean).map(o=>String(o).toLowerCase())));return b.jsxs("div",{className:J(zre,Lre),children:[b.jsxs("div",{className:J(i8,a8,o8),children:[b.jsx("span",{className:J(s8),children:"RDF type"}),b.jsx("span",{className:J(l8,u8,Mre),children:i.map(o=>b.jsx("span",{className:J(Ore,Dre),children:o},o))})]}),b.jsxs("div",{className:J(i8,a8,o8),children:[b.jsx("span",{className:J(s8),children:"Full URI"}),b.jsx("span",{className:J(l8,u8),children:b.jsxs("button",{type:"button",className:J(qre,Ire),onClick:()=>n(r),title:"Copy URI",children:[b.jsx(Pi,{children:r}),b.jsx(at,{name:t?"check":"copy"})]})})]})]})}function cie({node:e,nodes:t}){const n=yie(e,t);return n.length?b.jsx(Wa,{title:"Properties",children:b.jsx("div",{className:J(cl),children:n.map(r=>b.jsxs("div",{className:J(Sc,Tc),children:[b.jsxs("div",{className:J(Ok),children:[b.jsx("strong",{className:J(Dk),title:r.property.full_uri||r.property.id,children:r.property.label||qh(r.property.id)}),b.jsx(Jr,{type:r.property.semantic_type,family:"ontology",dot:!1,className:oL(r.property.semantic_type),children:bie(r.property.semantic_type)})]}),b.jsx(qk,{rows:[{key:"role",value:r.role},{key:"domain",value:b.jsx(f8,{terms:r.domains,emptyLabel:"Any"})},{key:"range",value:b.jsx(f8,{terms:r.ranges,emptyLabel:"Any"})}]}),r.facets.length?b.jsx("div",{className:J(q1),children:r.facets.flatMap(i=>i.facets??[]).map((i,a)=>b.jsxs("span",{className:J(rL,iL),children:[b.jsx("span",{children:i.name}),i.value]},`${i.name}-${i.value}-${a}`))}):null]},`${r.property.id}-${r.role}`))})}):null}function fie({constructs:e}){return b.jsx("div",{className:J(cl),children:e.map(t=>b.jsx(pie,{construct:t},t.id))})}function hie({sources:e,onOpenSource:t}){return b.jsx("div",{className:J(cl),children:_ie(e).map((n,r)=>b.jsx(gie,{source:n,onOpenSource:t},`${n.link}-${r}`))})}function f8({terms:e,emptyLabel:t}){return e.length?b.jsx("span",{className:J(q1),children:e.map(n=>b.jsx(vg,{term:n},`${n.iri}-${n.kind}`))}):b.jsx("span",{className:J(nL),children:t})}function die({node:e}){const t=dw(e);return b.jsx(z1,{className:J(eL,tL),children:b.jsxs("div",{className:J(xre),children:[b.jsx(Jr,{type:"ontology",family:"ontology",tinted:!0,className:J(wre),children:"ontology"}),t!=="ontology"?b.jsx(Jr,{type:t,family:"ontology",tinted:!0,children:t}):null,b.jsx(L1,{children:e.label||e.id}),b.jsx(wc,{asChild:!0,children:b.jsx(xc,{tone:"ghost",className:J(kre),"aria-label":"Close",children:b.jsx(at,{name:"x"})})})]})})}function Wa({title:e,children:t}){return b.jsxs("section",{className:J(Ere),children:[b.jsx("h3",{children:e}),t]})}function h8({kind:e,terms:t}){return b.jsx(b.Fragment,{children:t.map(n=>b.jsxs("div",{className:J(Sc,Tc,cw),children:[b.jsx("span",{className:J(fw,hw),children:e}),b.jsx(vg,{term:n})]},`${e}-${n.iri}`))})}function mie({slot:e,propertyContext:t}){var i;const n=t?e.target_class_label||qh(e.target_class_iri):e.slot_label||qh(e.slot_iri)||"slot",r=[t?{key:"path",value:e.slot_label||qh(e.slot_iri)}:e.target_class_label?{key:"applies to",value:b.jsx(vg,{term:{label:e.target_class_label,iri:e.target_class_iri,kind:"class"}})}:null,e.source_shape_label?{key:"shape",value:b.jsx(vg,{term:{label:e.source_shape_label,iri:e.source_shape_iri,kind:"node shape"}})}:null].filter(aL);return b.jsxs("div",{className:J(Sc,Tc),children:[b.jsx("div",{className:J(Ok),children:b.jsx("strong",{className:J(Dk),title:t?e.target_class_iri:e.slot_iri,children:n})}),r.length?b.jsx(qk,{rows:r}):null,(i=e.facets)!=null&&i.length?b.jsx("div",{className:J(q1),children:e.facets.map(a=>b.jsxs("span",{className:J(rL,iL),children:[b.jsx("span",{children:a.name}),a.value]},`${a.name}-${a.value}`))}):b.jsx("span",{className:J(nL),children:"No explicit facets."})]})}function pie({construct:e}){var a,o,l;const t=e.label||e.kind||e.family||"construct",n=((a=e.badge)==null?void 0:a.symbol)||xie(e),r=((o=e.badge)==null?void 0:o.label)||t,i=[e.subject?{key:"subject",value:e.subject}:null,e.predicate?{key:"predicate",value:e.predicate}:null,e.property?{key:"property",value:e.property}:null,e.object?{key:"object",value:e.object}:null,(l=e.members)!=null&&l.length?{key:"members",value:e.members.join(" -> ")}:null,e.source?{key:"source",value:`${e.source.source_name||e.source.source||e.source.file_path}${e.source.line_number?`:${e.source.line_number}`:""}`}:null].filter(aL);return b.jsxs("div",{className:J(Sc,Tc),children:[b.jsxs("div",{className:J(Ok),children:[b.jsxs("span",{className:J(Fre),children:[n?b.jsx("span",{className:J(Hre,Vre),title:r,"aria-label":r,children:n}):null,b.jsx("span",{children:t})]}),b.jsx(Jr,{type:e.kind||e.family,family:"ontology",dot:!1,className:oL(e.kind||e.family),children:e.kind||e.family})]}),i.length?b.jsx(qk,{rows:i,mono:!0}):null]})}function qk({rows:e,mono:t=!1}){return b.jsx("dl",{className:J(Xre,t?Yre:void 0),children:e.map(n=>b.jsxs("div",{className:J(Wre),children:[b.jsx("dt",{children:n.key}),b.jsx("dd",{children:n.value})]},n.key))})}function aL(e){return e!==null}function _ie(e){const t=new Map;for(const n of e){const r=`${n.file_path}:${n.line_number??""}`,i=t.get(r);(!i||!i.kind&&n.kind)&&t.set(r,n)}return[...t.values()]}function gie({source:e,onOpenSource:t}){return b.jsxs("a",{className:J(tie,nie),href:e.link||"#",onClick:n=>{n.preventDefault(),t(e)},children:[b.jsxs("span",{className:J(rie),children:[b.jsx("span",{className:J(iie),children:e.source_name||e.source||e.file_path}),e.kind?b.jsx(Jr,{type:"ontology",family:"ontology",tinted:!0,dot:!1,children:e.kind}):null]}),b.jsxs("span",{className:J(aie,Dk),children:[e.file_path,e.line_number?`:${e.line_number}`:""]})]})}function dw(e){return e.semantic_type||e.node_type||e.type||"resource"}function g_(e){var t,n;return String(e.semantic_type||"").endsWith("property")||!!((t=e.domain)!=null&&t.length)||!!((n=e.range)!=null&&n.length)}function yie(e,t){return t.filter(g_).flatMap(n=>{const r=n.domain??[],i=n.range??[],a=r.some(c=>d8(c,e)),o=i.some(c=>d8(c,e));return!a&&!o?[]:[{property:n,role:a&&o?"domain/range":a?"domain":"range",domains:r,ranges:i,facets:a?(e.slot_facets??[]).filter(c=>c.slot_iri===n.id||c.slot_iri===n.full_uri):[]}]}).sort((n,r)=>(n.property.label||n.property.id).localeCompare(r.property.label||r.property.id)||n.role.localeCompare(r.role))}function d8(e,t){const n=new Set([t.id,t.full_uri,t.label].filter(Boolean));return n.has(e.iri)||n.has(e.label)}function vg({term:e}){return b.jsxs("span",{className:J(Kre,Zre),title:e.iri||e.label,children:[e.label||qh(e.iri),b.jsx("span",{children:e.kind||"term"})]})}function oL(e){const t=e??"";return t.includes("object")?J(jp,Qre):t.includes("datatype")?J(jp,Jre):t.includes("shape")?J(jp,eie):J(jp)}function vie(e){return(e.constructs??[]).filter(t=>e.semantic_type==="class-expression"?!["class-expression","property-domain","property-range"].includes(t.kind??""):!0)}function bie(e){return{"object-property":"object property","datatype-property":"datatype property","rdf-property":"RDF property",class:"class","named-individual":"individual","node-shape":"node shape","property-shape":"property shape",restriction:"restriction","class-expression":"class expression",datatype:"datatype",literal:"literal",resource:"resource"}[e??""]??e??"resource"}function xie(e){const t=e.kind||"",n=e.family||"";return t==="property-domain"||t==="property-range"||n==="property-domain-range"?"D/R":t==="subclass-inclusion"?"⊆":t==="membership"?"∈":t==="disjointness"?"⟂":t==="equivalence-group"?"⇔":t==="inverse-property"?"⟲":t==="property-chain"||n==="property-chain"?"∘":t==="property-characteristic"||n==="property-characteristic"?"→":t==="restriction"||n==="restriction"?"∀":t==="class-expression"||n==="class-expression"?"∩":t==="shape-overlay"||n==="shape-overlay"?"SH":""}function qh(e){const t=e??"";return t.includes("#")?t.slice(t.lastIndexOf("#")+1):t.includes("/")?t.slice(t.lastIndexOf("/")+1):t}const wie="atm_9s_1txwivl atm_ar_1bp4okc atm_cx_1ru0ig4",m8="atm_9s_1txwivl atm_ar_1bp4okc atm_cx_1aqtv8w atm_1t41yt8_idpfg4 atm_aemo9v_1r1dq30 atm_10jxl4n_1ye8rbs atm_1slhzjn_1d1fc98 atm_1l593wz_idpfg4 atm_1mm667_1mqbmot atm_gon3un_1o6fbio atm_1kgx0or_1d1fc98 atm_1gu7kzg_1lzc1s3 atm_16n53n5_angws6",p8="atm_1h3bg4v_1h0h4qb atm_9s_11p5wf0 atm_dz_17o049t atm_cx_hwm9mu",Rp="atm_9s_1txwivl atm_ar_1bp4okc atm_cx_1oyiw06 atm_h3_ek2tx5",kie="atm_bw3q04_viql5b atm_9s_1txwivl atm_j6_thn2i5 atm_h_1h6ojuz atm_cx_ynj908 atm_5j_mrub5a atm_l8_4baac9",Eie="atm_9s_116y0ak atm_vy_1q4684i atm_h_1h6ojuz atm_fc_1h6ojuz atm_am_glywfm",Sie="atm_jb_idpfg4 atm_7l_an4usv atm_c8_1m800s6",Tie="atm_9s_116y0ak atm_jb_1q4684i atm_h_1h6ojuz atm_fc_1h6ojuz atm_7l_hq4ovn atm_bx_l6f2xw atm_c8_ouk0ow atm_cs_1d1fc98",Cie=[["capability","Capability"],["requirement","Requirement"],["behavior","Behavior"],["constraint","Constraint"],["verification-objective","Verification Objective"],["test-verification","Test Verification"],["formal-proof-verification","Formal Proof Verification"],["analysis-verification","Analysis Verification"],["inspection-verification","Inspection Verification"],["demonstration-verification","Demonstration Verification"],["specification","Specification"],["semantic-contract","Semantic Contract"],["ontology","Ontology"],["concept-reference","Concept Reference"],["evidence-file","Evidence File"]],Aie=[["file","Files","--resource"],["element","Elements","--requirement"],["resource","Resources","--ontology"],["ontology","Ontology terms","--rdf-resource"]],jie=[["--rdf-class","Class"],["--rdf-objprop","Object property"],["--rdf-dtprop","Datatype property"],["--rdf-individual","Individual"],["--rdf-datatype","Datatype"],["--rdf-restriction","Restriction"],["--rdf-classexpr","Class expression"],["--rdf-nodeshape","Node shape"],["--rdf-propshape","Property shape"],["--rdf-resource","Resource"]],Rie=[["D/R","Domain/range"],["⊆","Subclass"],["∈","Membership"],["⟂","Disjoint"],["⇔","Equivalence"],["⟲","Inverse"],["∘","Property chain"],["∩","Class expression"],["SH","SHACL overlay"]];function Nie(){return b.jsxs("div",{className:J(wie),"data-product-pattern":"help-content",children:[b.jsxs("section",{className:J(m8),children:[b.jsx("h3",{children:"Model Legend"}),b.jsxs("div",{className:J(p8),children:[b.jsxs("div",{children:[b.jsx("h4",{children:"Result kinds"}),b.jsx("div",{className:J(Rp),children:Aie.map(([e,t,n])=>b.jsx(Np,{marker:b.jsx(ow,{colorToken:n}),label:t},e))})]}),b.jsxs("div",{children:[b.jsx("h4",{children:"Element types"}),b.jsx("div",{className:J(Rp),children:Cie.map(([e,t])=>b.jsx(Np,{marker:b.jsx(Ln,{type:zie(e),size:"sm"}),label:b.jsx(Jr,{type:Lie(e),tinted:!0,children:t})},e))})]})]})]}),b.jsxs("section",{className:J(m8),children:[b.jsx("h3",{children:"Ontology Legend"}),b.jsxs("div",{className:J(p8),children:[b.jsxs("div",{children:[b.jsx("h4",{children:"Node types"}),b.jsx("div",{className:J(Rp),children:jie.map(([e,t])=>b.jsx(Np,{marker:b.jsx(ow,{colorToken:e}),label:t},t))})]}),b.jsxs("div",{children:[b.jsx("h4",{children:"Notation"}),b.jsx("div",{className:J(Rp),children:Rie.map(([e,t])=>b.jsx(Np,{marker:b.jsx("span",{className:J(Tie),children:e}),label:t},t))})]})]})]})]})}function Np({marker:e,label:t}){return b.jsxs("div",{className:J(kie),children:[b.jsx("span",{className:J(Eie),children:e}),b.jsx("span",{className:J(Sie),children:t})]})}function zie(e){return e==="concept-reference"?"resource":e==="evidence-file"?"other":e}function Lie(e){return e==="concept-reference"?"resource":e==="evidence-file"?"other":e}const Mie="atm_1elxmd0_16vdio1 atm_vy_1nw23wt atm_j3_1nw23wt",Oie="atm_h_1h6ojuz atm_lbduw3_ggq5uc",Die="atm_am_ggq5uc";function qie({open:e,onOpenChange:t}){return b.jsx(Sk,{open:e,onOpenChange:t,children:b.jsxs(Tk,{className:J(Mie),"aria-label":"Help","data-product-pattern":"help-dialog",children:[b.jsxs(z1,{className:J(Oie),children:[b.jsx(L1,{children:"Help"}),b.jsx(wc,{asChild:!0,children:b.jsx(xc,{tone:"ghost","aria-label":"Close help",children:b.jsx(at,{name:"x"})})})]}),b.jsx(yg,{children:b.jsx(Nie,{})}),b.jsxs(Ck,{children:[b.jsx("span",{className:J(Die)}),b.jsx(wc,{asChild:!0,children:b.jsx(cs,{tone:"primary",children:"Close"})})]})]})})}const Iie="atm_9s_1txwivl atm_j6_1kxcs5u atm_h_1y6m0gg atm_fc_1y6m0gg atm_l8_10y9mp3 atm_vkfxb1_1doep66",$ie="atm_26_6lcubb",Pie="atm_vt6g99_ukw8rw atm_9s_1txwivl atm_vy_13qg8og atm_ar_1bp4okc atm_cx_1doep66 atm_l8_1ru0ig4",Uie="atm_26_hqzwp4 atm_3f_xbw5ta atm_5j_1pr0uq2 atm_70_1fjsgd1",Bie="atm_9s_1txwivl atm_h_1h6ojuz atm_cx_ynj908",Gie="atm_9s_116y0ak atm_vy_15fao4p atm_e2_15fao4p atm_am_12336oc atm_h_1h6ojuz atm_fc_1h6ojuz",Fie="atm_26_1muz9yu atm_3f_moqrwa atm_5j_ab5uq2 atm_7l_1ox2th8",Hie="atm_9s_1txwivl atm_ar_1bp4okc atm_cx_1xi6ry0 atm_jb_idpfg4",Vie="atm_1nan1x6_idpfg4 atm_13kkh23_1r1dq30 atm_1ik9yws_asey3o atm_1d0k133_1d1fc98 atm_1r1uuzm_3szr2b atm_1cuh98_idpfg4 atm_103nyla_1mqbmot atm_3ozq8t_1m800s6 atm_hz7si0_ecmuoo",Xie="atm_9s_1txwivl atm_h_1y6m0gg atm_cx_ek2tx5 atm_l8_lyk9k3 atm_c8_1m800s6 atm_g3_sqnntc atm_1pqnrs9_1aou828 atm_1dlbvfv_1aou828 atm_yqcrq0_glywfm",Yie="atm_3f_moqrwa atm_5j_ab5uq2 atm_26_1muz9yu atm_7l_1r1dq30 atm_tej1as_1ox2th8",Wie="atm_9s_1txwivl atm_ar_1bp4okc atm_cx_1wz40ms",Kie="atm_1cuh98_idpfg4 atm_103nyla_1uoma54 atm_3ozq8t_1m800s6 atm_hz7si0_sqnntc",Zie="atm_kz_fg65tv",Qie="atm_7l_an4usv",Jie="atm_9s_11p5wf0 atm_dz_13mtsfm atm_cx_ynj908 atm_1s5i1e6_hkllrs",ib="atm_9s_1txwivl atm_jb_idpfg4 atm_ar_1bp4okc atm_cx_owgaek atm_l8_1aqtv8w",ab="atm_26_1u3842e atm_3f_xbw5ta atm_5j_ab5uq2 atm_blassl_1mqbmot atm_au8vxp_ouk0ow atm_1i76or1_ecmuoo";function eae({reason:e,detail:t}){return b.jsx("div",{className:J(Iie,$ie),"data-product-pattern":"store-notice",children:b.jsxs("section",{className:J(Pie,Uie),"aria-labelledby":"store-notice-title",children:[b.jsxs("div",{className:J(Bie),children:[b.jsx("span",{className:J(Gie,Fie),"aria-hidden":"true",children:b.jsx(at,{name:"alert-triangle"})}),b.jsxs("div",{className:J(Hie,Vie),children:[b.jsx("h1",{id:"store-notice-title",children:"Reqvire Explorer"}),b.jsx("p",{children:"Project Store seed is unavailable."})]})]}),b.jsxs("div",{className:J(Xie,Yie),role:"alert",children:[b.jsx(at,{name:"alert-triangle","aria-hidden":"true"}),b.jsx("span",{children:e})]}),b.jsxs("div",{className:J(Wie,Kie),children:[t?b.jsx("p",{className:J(Zie,Qie),children:t}):null,b.jsxs("p",{children:["Explorer expects a browser-local seed at ",b.jsx(Pi,{children:"assets/project-store.js"}),". Use one of the supported entry points below so the seed and app bundle are served from the same output."]}),b.jsxs("div",{className:J(Jie),"aria-label":"Supported Explorer entry points",children:[b.jsxs("div",{className:J(ib,ab),children:[b.jsx(Pi,{children:"reqvire serve"}),b.jsx("span",{children:"Browse the live workspace Explorer."})]}),b.jsxs("div",{className:J(ib,ab),children:[b.jsx(Pi,{children:"reqvire export"}),b.jsx("span",{children:"Open the generated Explorer output directory."})]}),b.jsxs("div",{className:J(ib,ab),children:[b.jsx(Pi,{children:"npm run dev"}),b.jsxs("span",{children:["Run from ",b.jsx(Pi,{children:"explorer/"})," for fixture-backed development."]})]})]})]})]})})}const tae="atm_1409lcl_1178luh atm_12fk315_13i4f3j atm_18coois_ghg70p atm_ly4pcj_ktbqgd atm_oyymjy_1gwvivf atm_m44u6z_163w7gr atm_136n87i_15e782c atm_14cublb_cae7k5 atm_1xbb1uv_1n1ank9 atm_9s_1txwivl atm_ar_1bp4okc atm_cx_1wz40ms atm_ks_ewfl5b atm_10w7pc2_1wugsn5",nae="atm_7l_an4usv",rae="atm_9s_1txwivl atm_j6_10y9mp3 atm_h_1h6ojuz atm_fc_1yb4nlp atm_cx_ynj908 atm_l8_1uaqrqd atm_1w0o1gr_1txwivl atm_4jrahp_17p0pw0 atm_ozcxmn_1h6ojuz atm_spgblm_esu3gu atm_1wuexhk_ek2tx5 atm_1tqomfg_1g80g66 atm_gapxdd_1txwivl atm_jobybm_idpfg4 atm_jxfu01_ggq5uc atm_1rew43f_1h6ojuz atm_19atimv_1xi6ry0 atm_lyevjl_15vqwwr atm_1bksikj_1m800s6 atm_a676de_116y0ak atm_17delu7_idpfg4 atm_ypxmp6_1h6ojuz atm_poyjxn_1xi6ry0 atm_1mfkxlz_1kfq4m4 atm_z40fje_15vqwwr atm_ha9fpz_idpfg4 atm_rgob7a_1j28jx2 atm_yy2na7_1l2sidv atm_1r41f9b_1q9ccgz atm_1kuqp5o_tlke0l atm_vcp44l_1o8liyq atm_h48yi1_jhz9wq atm_qg10oe_15vqwwr atm_8n2m6u_1l2sidv atm_kxbmhl_1q9ccgz atm_5ct0mx_1fhbwtr atm_5xse3x_1bp4okc atm_p85r4j_1osqo2v atm_zge04l_idpfg4",iae="atm_40_ag7trk atm_26_1u3842e atm_3ae88u_1mqbmot atm_1s21w70_an4usv atm_2re32h_8stvzk atm_1lvoshk_1r1dq30 atm_1lax2pj_19dj2kj atm_6crqs1_hieimq atm_je6jvp_1mqbmot atm_ap0rk4_ouk0ow atm_17g7u94_19ii325",aae="atm_j6_idpfg4 atm_ks_ewfl5b atm_70_glywfm atm_1h6teo0_idpfg4 atm_61o100_idpfg4 atm_1crxji5_1j28jx2 atm_16fc8ok_15o6nlx atm_11u7ayr_1mbzo3t atm_1uh4tmn_1mvar2t atm_31jcbr_1txwivl atm_emqiv2_1h6ojuz atm_392in2_owgaek atm_4v2xby_idpfg4 atm_fuo25m_1ipl8vf atm_1q5cyu3_15vqwwr atm_1gl3ksx_1l2sidv atm_iarrix_1q9ccgz",oae="atm_objg8j_1j28jx2 atm_qbr9uz_1j28jx2 atm_s87sft_1mvar2t atm_ztyt6v_1j28jx2 atm_1okwm0h_1j28jx2 atm_ce6d6_1mqbmot atm_pqxxe3_1j28jx2 atm_1eon1p2_1j28jx2 atm_icha4w_glywfm atm_1s7hsjh_glywfm",sae="atm_9s_11p5wf0 atm_dz_111aga5 atm_cx_1aqtv8w atm_zb6j4z_h2mmj6 atm_1cxkias_1txwivl atm_q88rlh_1bp4okc atm_15kua51_prv2mz atm_k4gsbs_ek2tx5 atm_kgv0fr_usvi9m atm_w5f1kf_1wz40ms atm_1y63ebc_tlke0l atm_ehgn7h_prv2mz atm_odnzhz_idpfg4 atm_1ra894s_idpfg4 atm_mm4rzq_1c8rstr atm_cevt1d_1d1fc98 atm_9h0gdk_stnw88 atm_1191cxx_ek2tx5 atm_10izak0_ek2tx5 atm_1mlizs7_cj1kg8 atm_1h2hoac_idpfg4 atm_lkbxp6_15vqwwr atm_11q52ew_fg65tv atm_1o8qkx8_ouk0ow atm_70l6pg_yv70g4 atm_17yjgzc_1e54zos atm_mtuc5y_cs5v99 atm_16azox1_116y0ak atm_69arei_1ns9ob4 atm_1imfr6m_1h6ojuz atm_1kp5lq4_1r3tyjr atm_13u4wd_ouk0ow atm_dvcf0s_1mvar2t atm_hhjaf3_cjiytx",lae="atm_the0h2_icygq7 atm_16dutti_mrub5a atm_16f07ak_hqzwp4 atm_1ocjpsg_1xzuvaq atm_74hmm4_icygq7 atm_ylladh_8o97w atm_1nsub7l_1xzuvaq atm_1u63k2_qg4tl7 atm_1d9pikh_icygq7 atm_ngta2y_1c05cp1 atm_55qmkk_1xzuvaq atm_b68ik3_glywfm atm_ae74bz_13i1o1w atm_1rrq15e_mrub5a atm_u71xy2_1j28jx2 atm_1e6ux83_1j28jx2 atm_yza11_1mqbmot atm_s8ghq0_1i9d2r atm_1624inj_yzuxxm atm_1ob0irv_1mqbmot",sL="atm_9s_1txwivl atm_vy_1osqo2v atm_jb_idpfg4 atm_h_1h6ojuz atm_cx_tx1for atm_73_usvi9m atm_l8_1wp4pgp atm_r3_1e5hqsa atm_rd_glywfm atm_c8_1m800s6 atm_cs_19dj2kj atm_9j_tlke0l",lL="atm_3f_e8f45q atm_5j_ab5uq2 atm_26_1j28jx2 atm_7l_an4usv atm_18vqbco_21k9f7 atm_1tgqd35_8o97w",uae="atm_jb_idpfg4 atm_am_ggq5uc atm_ks_15vqwwr atm_sq_1l2sidv atm_vv_1q9ccgz",_8="atm_vy_1aou828 atm_e2_1aou828 atm_am_12336oc",cae="atm_9s_116y0ak atm_am_12336oc atm_vy_1doep66 atm_e2_1doep66 atm_h_1h6ojuz atm_fc_1h6ojuz atm_rd_glywfm atm_k4_1k3teh atm_uc_8qpxcf atm_6tqpqf_1ulexfb atm_yqcrq0_12336oc atm_1pqnrs9_1wz40ms atm_1dlbvfv_1wz40ms",fae="atm_3f_idpfg4 atm_5j_suuzbj atm_26_1j28jx2 atm_7l_1mqbmot atm_lvd7fl_1j28jx2 atm_1sx18ul_1r1dq30 atm_oq6yql_kb7nvz atm_1c7dk87_glywfm atm_1yl5u20_13i1o1w",hae="atm_lo_1q4684i atm_fg95e3_1txwivl atm_dvczuh_1bp4okc atm_12hg4o7_1oyiw06 atm_rwhpkk_ynj908 atm_ukaons_11p5wf0 atm_1wr4vdk_111aga5 atm_c8x704_1wz40ms atm_1ug3pfy_1wz40ms atm_xmkqjw_11p5wf0 atm_107vfdn_1uta5my atm_1ajqhg1_v2br90 atm_pgrb9r_owgaek atm_4xa2uj_1jpay5e atm_yx8lfu_usvi9m atm_17dtgbh_ynj908 atm_1imkvq0_1e5hqsa atm_1936j9i_tlke0l atm_164xeqo_1icw8ht atm_13f6ikb_11p5wf0 atm_dlv1a_idpfg4 atm_1dor7qc_iqvn5y atm_1ux9l8q_cj1kg8 atm_lcm3dc_15vqwwr atm_qupje0_1m800s6 atm_11m76l_19dj2kj atm_ys46a1_nqt0r7 atm_vwxabi_1e54zos atm_oa74c_cs5v99 atm_ca6cu_1txwivl atm_1ucf1pa_1osqo2v atm_o1kp2l_idpfg4 atm_od4313_1h6ojuz atm_fecyja_tx1for atm_yb5waq_usvi9m atm_1qf0d83_tvxayk atm_f6yxng_1e5hqsa",dae="atm_67_ag7trk atm_9topbb_ag7trk atm_jsvd99_mrub5a atm_l0suuk_1u3842e atm_mvqa3k_an4usv atm_3uwwjf_icygq7 atm_nv14rc_8o97w atm_1k8dd43_qg4tl7 atm_lnhq0k_an4usv atm_l6spuk_e8f45q atm_pprzhr_ab5uq2 atm_1k17b3i_1j28jx2 atm_vto6yi_an4usv atm_119l662_1j28jx2 atm_1nx8fwe_8o97w atm_1kbjo1t_1j28jx2 atm_10ea4em_1c05cp1 atm_1h3j8co_an4usv",mae="atm_c8_1m800s6 atm_cd_1m30gqx atm_g3_5cyyty",pae="atm_7l_1mqbmot",_ae="atm_c8_1m800s6",gae="atm_7l_1mqbmot",yae="atm_l8_bqp6sg atm_c8_ouk0ow",vae="atm_5j_suuzbj atm_26_yzuxxm";function bae({children:e,className:t="",...n}){return b.jsx(Ec,{layout:"single",children:b.jsx(Rl,{children:b.jsx("div",{"data-product-pattern":"file-browser",className:J("ux-file-browser",tae,nae,t),...n,children:e})})})}function xae({breadcrumbs:e,selectedFile:t,layout:n,resultCount:r,onOpenFolder:i,onLayoutChange:a}){return b.jsxs("div",{className:J("ux-file-browser__toolbar",rae,iae),children:[b.jsxs("div",{className:"ux-file-browser__breadcrumbs","aria-label":"File breadcrumbs",children:[e.map((o,l)=>b.jsxs("span",{className:"ux-file-browser__crumb",children:[l>0&&b.jsx("span",{className:"ux-file-browser__crumb-separator",children:"/"}),b.jsx("button",{type:"button",onClick:()=>i(o.path),children:o.label})]},o.path)),t?b.jsxs("span",{className:J("ux-file-browser__crumb","ux-file-browser__crumb-current"),children:[b.jsx("span",{className:"ux-file-browser__crumb-separator",children:"/"}),b.jsx("span",{title:t.title,children:t.name})]}):null]}),b.jsxs("div",{className:"ux-file-browser__toolbar-actions",children:[b.jsxs("span",{className:"ux-file-browser__count",children:[r," items"]}),b.jsx(Pz,{ariaLabel:"Model layout",value:n,onChange:a,items:[{value:"list",label:"List",icon:b.jsx(at,{name:"list"})},{value:"grid",label:"Grid",icon:b.jsx(at,{name:"layout-grid"})},{value:"graph",label:"Graph",icon:b.jsx(at,{name:"git-branch"})}]})]})]})}function wae({path:e}){return b.jsxs("span",{className:J("ux-file-browser__missing",_ae,gae),children:["No file container for"," ",b.jsx("code",{className:J("ux-file-browser__missing-path",yae,vae),children:e}),"."]})}function kae({items:e,sortKey:t,sortDirection:n,onSort:r,onOpenFolder:i,onOpenFile:a}){return b.jsxs(Ree,{className:J("ux-file-browser__table",aae,oae),children:[b.jsxs(Nee,{children:[b.jsx(zee,{children:b.jsxs(YC,{children:[b.jsx(zp,{label:"Name",sortKey:"name",activeKey:t,direction:n,onSort:r}),b.jsx(zp,{label:"Type",sortKey:"type",activeKey:t,direction:n,onSort:r}),b.jsx(zp,{label:"Elements",sortKey:"elements",activeKey:t,direction:n,onSort:r}),b.jsx(zp,{label:"Path",sortKey:"path",activeKey:t,direction:n,onSort:r})]})}),b.jsx(Lee,{children:e.map(o=>b.jsxs(YC,{selected:!!o.selected,children:[b.jsx(Cp,{children:b.jsxs("div",{className:"ux-file-browser__name-cell",children:[b.jsx(Rae,{item:o,onOpenFolder:i,onOpenFile:a}),b.jsx(Cae,{item:o})]})}),b.jsx(Cp,{children:b.jsx(Jr,{type:o.kind,family:o.kind,children:o.kind})}),b.jsx(Cp,{children:o.elementCount}),b.jsx(Cp,{className:"ux-file-browser__path",children:o.displayPath})]},o.id))})]}),e.length===0?b.jsx(Ik,{children:"No files or folders match the current filter."}):null]})}function Eae({items:e,onOpenFolder:t,onOpenFile:n}){return b.jsxs("div",{className:J("ux-file-browser__grid",sae,lae),children:[e.map(r=>b.jsxs(N1,{interactive:!0,selected:!!r.selected,role:"button",tabIndex:0,"aria-label":`Open ${r.name}`,onClick:()=>uL(r,t,n),onKeyDown:i=>Aae(i,r,t,n),className:J("ux-file-browser__card",r.selected?"is-selected":"",r.emptyFile?"is-empty-file":""),children:[b.jsx(jae,{item:r,selected:!!r.selected}),(r.kind==="folder"||r.elementCount>0)&&b.jsx("span",{className:"ux-file-browser__count-badge",children:r.kind==="folder"?`${r.childCount} children`:`${r.elementCount} elements`}),b.jsx("span",{className:"ux-file-browser__card-path",children:r.displayPath})]},r.id)),e.length===0?b.jsx(Ik,{children:"No files or folders match the current filter."}):null]})}function ob({children:e}){return b.jsx("div",{className:J("ux-file-browser__elements",hae,dae),children:e})}function Sae({layout:e,children:t}){return b.jsx("div",{className:e==="grid"?"ux-file-browser__elements-grid":"ux-file-browser__elements-list",children:t})}function Tae({layout:e,name:t,type:n,family:r,onOpen:i}){return e==="grid"?b.jsxs("button",{type:"button",onClick:i,className:"ux-file-browser__element-card",children:[n?b.jsx(Ln,{type:n,family:r,title:n,size:"sm"}):b.jsx(Ln,{type:"other",size:"sm"}),b.jsxs("span",{className:"ux-file-browser__element-card-main",children:[b.jsx("span",{className:"ux-file-browser__element-card-title",children:t}),n?b.jsx(Jr,{type:n,family:r,tinted:!0,dot:!1,children:n}):null]})]}):b.jsxs("button",{type:"button",onClick:i,className:"ux-file-browser__element-row",children:[n?b.jsx(Ln,{type:n,family:r,title:n,size:"sm"}):b.jsx(Ln,{type:"other",size:"sm"}),b.jsx("span",{children:t})]})}function Ik({children:e}){return b.jsx("span",{className:J("ux-file-browser__empty",mae,pae),children:e})}function zp({label:e,sortKey:t,activeKey:n,direction:r,onSort:i}){const a=t===n;return b.jsx(Mee,{children:b.jsx(Oee,{direction:a?r:void 0,onClick:()=>i(t),children:e})})}function Cae({item:e}){return e.contentHref?b.jsx("a",{href:e.contentHref,className:J("ux-file-browser__open-link",cae,fae),"aria-label":`Open content for ${e.name}`,title:"Open content",onClick:t=>t.stopPropagation(),children:b.jsx(at,{name:"external-link"})}):null}function uL(e,t,n){if(e.kind==="folder"){t(e.path);return}if(n){n(e.path);return}e.href&&(window.location.hash=e.href.startsWith("#")?e.href.slice(1):e.href)}function Aae(e,t,n,r){e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),uL(t,n,r))}function jae({item:e,selected:t=!1}){return b.jsx("span",{className:J("ux-file-browser__item-action",sL,lL,t?"is-selected":""),children:b.jsx(y_,{item:e})})}function y_({item:e}){return b.jsxs(b.Fragment,{children:[e.kind==="folder"?b.jsx(at,{name:"folder",className:J("ux-file-browser__kind-folder","ux-file-browser__item-icon",_8)}):b.jsx(at,{name:"file",className:J("ux-file-browser__kind-file","ux-file-browser__item-icon",_8)}),b.jsx("span",{className:J("ux-file-browser__item-name",uae),children:e.name})]})}function Rae({item:e,onOpenFolder:t,onOpenFile:n}){const r=J("ux-file-browser__item-action",sL,lL,e.selected?"is-selected":"");return e.kind==="folder"?b.jsx("button",{type:"button",className:r,onClick:()=>t(e.path),children:b.jsx(y_,{item:e})}):n?b.jsx("button",{type:"button",className:r,onClick:()=>n(e.path),children:b.jsx(y_,{item:e})}):b.jsx("a",{href:e.href,className:r,children:b.jsx(y_,{item:e})})}const Nae="atm_1q8xg06_mgvxuy atm_hdcxl8_1lk486g atm_rljqdg_c3hh1s atm_mk_h2mmj6 atm_73_usvi9m atm_9s_1txwivl atm_jb_idpfg4 atm_j6_idpfg4 atm_e2_1osqo2v atm_ar_1bp4okc atm_cx_ek2tx5 atm_ks_15vqwwr atm_l8_99d5r0 atm_gj7w2h_1osqo2v atm_1pwlzco_idpfg4 atm_vl5521_15vqwwr atm_1d2fdry_ggq5uc atm_16zsy4r_idpfg4 atm_kokri7_15vqwwr atm_tiywpm_1wugsn5 atm_1bwiiej_1f51e7f atm_1ig85du_1osqo2v atm_8p2dsw_1txwivl atm_ln70qs_1bp4okc atm_oacpwr_hwm9mu atm_crcvbx_1q4684i atm_vpzxga_idpfg4 atm_178a0l7_1txwivl atm_1712n68_1q9ycp6 atm_kjcj5i_1yb4nlp atm_r77gii_ynj908 atm_1a4g2q7_ynj908 atm_1umtxve_idpfg4 atm_191z6mp_1ye8rbs atm_1k4im0a_1d1fc98 atm_jrvx99_idpfg4 atm_5s3vbh_12336oc atm_gmfhu2_1i9d2r atm_1q6hsq2_ouk0ow atm_1hh1u0c_1d1fc98 atm_1gdg67q_kb7nvz atm_1nlwyui_4baac9 atm_7x1wu3_116y0ak atm_1jixwg2_1h6ojuz atm_6mt1wi_1r3tyjr atm_17icxyf_1txwivl atm_enxzda_1bp4okc atm_1spm4pk_1oyiw06 atm_1146qoq_1txwivl atm_17zyv1g_1bp4okc atm_1uyymi1_ek2tx5 atm_1se5une_e8f45q atm_136zcdn_bz7yrd atm_1kot9l8_1or503 atm_1n9y5pn_121jvl4 atm_1ujdvze_1txwivl atm_11z4bu0_1h6ojuz atm_14ktms4_1yb4nlp atm_wa50bs_ynj908 atm_1k8tltr_1g80g66 atm_1bzor0w_idpfg4 atm_18bwwxb_1j28jx2 atm_i3myot_idpfg4 atm_17gl2km_tlke0l atm_jbxllk_dtbmau atm_i5zijf_1d1fc98 atm_10v7upl_1e5hqsa atm_nj23ex_11p5wf0 atm_1uvksyq_1jihsl0 atm_10kru7m_6skkmd atm_1qxyk79_idpfg4 atm_167gtp0_ouk0ow atm_1rnov2u_1txwivl atm_15f197_owgaek atm_avv5ki_idpfg4 atm_lq6l50_h2mmj6 atm_1x3eobk_usvi9m atm_zsr9xs_1txwivl atm_1xhi513_12nyi53 atm_181s2ry_idpfg4 atm_zast95_1dz14ax atm_108fved_1bp4okc atm_sywji8_15vqwwr atm_1raka4r_ynj908 atm_xga8dq_ggq5uc atm_e2h0o0_1osqo2v atm_943p74_idpfg4 atm_pr5w0h_1osqo2v atm_19u9hx3_1osqo2v atm_hela37_1h6ojuz atm_1ddsoy2_1osqo2v atm_191cxy_tlke0l atm_1wapavw_11p5wf0 atm_m8snuy_ggq5uc atm_hwvsey_idpfg4 atm_sl6b7z_1osqo2v atm_1xzrq0k_1h6ojuz atm_syxash_1m800s6",zae="atm_26_1u3842e atm_1f2r046_1mqbmot atm_f58jc_1c8rstr atm_1id7hw7_19ii325 atm_2dpulf_xbw5ta atm_1kxemwq_1j28jx2 atm_k7vb92_idpfg4 atm_uzc1t3_an4usv atm_grvm7u_yzuxxm atm_13qs6u4_1uoma54 atm_1cqqrzp_1c05cp1 atm_1ja6jlp_hq4ovn atm_ub3h3h_xbw5ta atm_245cth_ab5uq2 atm_1hmhxe7_1j28jx2 atm_1fcarla_8o97w atm_1p01mjt_1c05cp1 atm_zplw0w_1j28jx2 atm_19hi0fu_idpfg4 atm_13s6n31_hq4ovn atm_16h43s5_8stvzk atm_zkbpmh_1xi6ry0 atm_1rxjohq_1mvar2t atm_1r3dwn_1mqbmot atm_gutxq0_xbw5ta atm_14a8y5_1pr0uq2 atm_x05zcl_1u3842e atm_wyjofn_1u3842e atm_o9n30z_1y8q9jh atm_14s26yd_ab5uq2 atm_onh5xk_1mqbmot",Lae="atm_mk_h2mmj6 atm_73_usvi9m atm_9s_1txwivl atm_jb_idpfg4 atm_j6_idpfg4 atm_ar_1bp4okc atm_cx_1doep66 atm_ks_1wugsn5 atm_e2_1osqo2v atm_l8_1ru0ig4 atm_16qzf8f_1osqo2v atm_16hgatw_idpfg4 atm_s79kuu_1txwivl atm_upxcn5_1doep66 atm_gdhxk3_1y6m0gg atm_1gw68b9_1yb4nlp atm_19zys37_1q4684i atm_1o1490g_1q4684i atm_12w3iva_1a670m8 atm_1akiuan_1txwivl atm_179ec1s_idpfg4 atm_oysjh3_1bp4okc atm_vt7ri4_owgaek atm_1pmj39d_idpfg4 atm_1ynvq5u_1heflvk atm_1jbna7v_1d1fc98 atm_1fuwg7c_3szr2b atm_1wrptf8_1o6fbio atm_zeitw0_1d1fc98 atm_b68n1g_1lzc1s3 atm_pxi6mh_3szr2b atm_1sflsux_angws6 atm_12d3e3b_glywfm atm_11zeveu_11p5wf0 atm_1egq5ur_1aqtv8w atm_12qq0ll_orlc2p atm_11rbfa3_9syeg7 atm_mobo38_35s0z1 atm_1cwepcp_1txwivl atm_1d4m930_1doep66 atm_1itxlmi_1bp4okc atm_1u52t5b_1aqtv8w atm_nnt8qk_1q4684i atm_1021zs7_ipugus atm_1dt0a2k_1txwivl atm_viqq1n_1h6ojuz atm_1l8bud5_ek2tx5 atm_1dlzf6p_1q9ycp6 atm_62ifaf_1yb4nlp atm_j5ej13_ynj908 atm_7ro9xd_idpfg4 atm_1qs8ag5_1d1fc98 atm_ixaya7_3szr2b atm_14ldwhn_1ye8rbs atm_1m8wmlw_1txwivl atm_1bedh_1h6ojuz atm_1rkpgw4_1aqtv8w atm_hwhfb5_1aqtv8w atm_518ovi_idpfg4 atm_1pgst7o_11p5wf0 atm_1qnatoq_glywfm atm_1edqfx8_1h6ojuz atm_1ondaw6_1i9d2r atm_l9q13j_de01jl atm_1v8gbg3_de01jl atm_dp66q1_b3btdj atm_1icia4i_1ekttcd atm_1pj69eo_1kw7nm4 atm_1y5i79y_3t9i6g atm_1wa9i89_3t9i6g atm_1v33xk1_12env5p atm_meyyhk_12env5p atm_1du1qrb_feh88b atm_mff19y_1ekttcd atm_bjgdx5_1m800s6 atm_iq2317_1mvar2t atm_4euwiz_1txwivl atm_12oa4bx_1bp4okc atm_opqhw8_idpfg4 atm_luidp9_iqvn5y atm_1r3jliy_1m800s6 atm_1wsbm6b_1d1fc98 atm_s3n0ke_ouk0ow atm_z1a9nm_sqnntc atm_1pbrxmw_11p5wf0 atm_1uaiyso_i47zc9 atm_1am7wvd_1h6ojuz atm_1d4s3u6_1aqtv8w atm_15casas_1gl9ivt atm_1dn4dbq_x3in9x atm_13z6vhf_x3in9x atm_e39zeq_1txwivl atm_aa6s3r_1bp4okc atm_twdnhp_1oyiw06 atm_bkdipt_1yb4nlp atm_11c42oo_glywfm atm_1sqk8mt_idpfg4 atm_dcbzgo_ggq5uc atm_1pjel7k_15vqwwr atm_zbhidq_1l2sidv atm_1u6no5y_1q9ccgz atm_1pq8s0p_owgaek atm_9wp5r4_1ulexfb atm_16u8h9v_15vqwwr atm_1vo6wh6_1osqo2v atm_19op2yv_owgaek atm_13vcubm_1i9d2r atm_21zyc_1ulexfb atm_kqm3e2_1osqo2v atm_2ka0ol_1osqo2v atm_xfcryy_1kw7nm4 atm_pvelsu_1osqo2v atm_nk502j_idpfg4 atm_1gd0hjo_tlke0l atm_4zail9_1kw7nm4 atm_1c5ktrb_1e5hqsa atm_6bg4ex_11p5wf0 atm_8d8153_1vz9f6i atm_4qgwrm_1h6ojuz atm_da8jr_1aqtv8w atm_1nrzrdi_ynj908 atm_1ystriz_idpfg4 atm_uub5vx_1d1fc98 atm_ec89ii_11p5wf0 atm_19hlx6l_9syeg7 atm_wuq7hb_1aqtv8w atm_grk4v7_glywfm atm_1ttxwh2_1i9d2r atm_1j664iy_1r3tyjr atm_17y3nrm_ouk0ow atm_t8d10r_1d1fc98 atm_u7w9n9_3szr2b atm_scp2in_1y6m0gg atm_vetada_idpfg4 atm_9uxpd1_tlke0l atm_dc1ljm_1kw7nm4 atm_16lw4cz_ynj908 atm_mucqsn_idpfg4 atm_cy5ikl_1m800s6 atm_x5u14r_1txwivl atm_1c2v2rd_1h6ojuz atm_1ppupa5_ynj908 atm_msuz6q_ek2tx5 atm_2ssp3k_1xi6ry0 atm_btykul_15vqwwr atm_rjrptx_1d1fc98 atm_10jrzv9_1l2sidv atm_2xjbx4_1q9ccgz atm_qc31b9_1txwivl atm_g1s8rr_1y6m0gg atm_1a4spmv_1aqtv8w atm_1wericl_1doep66 atm_139r6rf_14k5dlv atm_18tkw4i_14k5dlv atm_oskx72_glywfm atm_j27hkz_vdehge atm_1fhsp6w_1ye8rbs atm_xyqn0_1d1fc98 atm_tryaef_idpfg4 atm_14kz0dd_i47zc9",Mae="atm_26_1u3842e atm_aj4994_xbw5ta atm_1i2zhfk_1pr0uq2 atm_1nvper2_e8f45q atm_1cgq0r1_bz7yrd atm_14dg8oy_1r1dq30 atm_82ongf_yzuxxm atm_1sh3kzc_1mqbmot atm_765tg8_xbw5ta atm_bavcqc_1pr0uq2 atm_v4ergx_1u3842e atm_12wa4pc_1xzuvaq atm_1ibfenb_1u3842e atm_2ydke1_1mqbmot atm_1kupvtt_1j28jx2 atm_2w8gs5_an4usv atm_4vcras_ab5uq2 atm_csbkfg_8o97w atm_nikrrs_1uoma54 atm_1vcrccz_8o97w atm_1urjais_1r1dq30 atm_h606t2_9snglw atm_197gpb0_1xi6ry0 atm_1pamdo0_ab5uq2 atm_6y9qdl_1mqbmot";function cL({children:e,className:t="",...n}){return b.jsx(Ec,{className:J("ux-report-route",t),layout:"single",...n,children:e})}function Oae({children:e,className:t="",...n}){return b.jsx(Rl,{"data-panel":"main",className:J("ux-report-trace-panel","trace-main-panel",Nae,zae,t),...n,children:e})}function Dae({children:e,className:t="",...n}){return b.jsx("div",{className:J("trace-content-scroll",t),...n,children:e})}const g8=se.forwardRef(function({children:t,className:n="",...r},i){return b.jsx("div",{ref:i,className:J("trace-report-view",n),...r,children:t})});function qae({children:e,className:t="",...n}){return b.jsx("section",{className:J("trace-row-group",t),...n,children:e})}function Iae({file:e,countLabel:t}){return b.jsxs("div",{className:"trace-file-header",children:[b.jsx("h2",{className:"trace-file-heading",children:e}),b.jsx("span",{className:"trace-file-count",children:t})]})}function $ae({children:e}){return b.jsx("div",{className:"trace-verification-list",children:e})}function Pae({selected:e=!1,children:t,className:n="",...r}){return b.jsx("article",{className:J("trace-verification-card",e?"is-selected":void 0,n),...r,children:t})}function Uae({children:e}){return b.jsx("div",{className:"trace-verification-header",children:e})}function Bae({children:e,className:t="",...n}){return b.jsx("button",{type:"button",className:J("trace-verification-title",t),...n,children:e})}function Gae({children:e}){return b.jsx("span",{className:"trace-tree-count-badge",children:e})}function Fae({rows:e}){return b.jsx("dl",{className:"trace-verification-meta",children:e.map((t,n)=>b.jsxs("div",{children:[b.jsx("dt",{children:t.label}),b.jsx("dd",{children:t.value})]},n))})}const Hae=se.forwardRef(function({children:t,className:n="",...r},i){return b.jsx("div",{ref:i,className:J("trace-rollup-diagram",n),...r,children:t})});function Vae({children:e}){return b.jsx("div",{className:"trace-rollup-placeholder",children:e})}function Xae({children:e}){return b.jsx("span",{className:"empty-note",children:e})}function Yae({children:e,className:t="",...n}){return b.jsx(Rl,{"data-panel":"document",className:J("ux-report-coverage-dashboard","coverage-dashboard",Lae,Mae,t),...n,children:e})}function Wae({id:e,title:t,eyebrow:n,stats:r}){return b.jsxs("header",{id:e,className:"coverage-header",children:[b.jsxs("div",{className:"coverage-title-block",children:[b.jsx("span",{className:"coverage-eyebrow",children:n}),b.jsx("h1",{children:t})]}),b.jsx(Fz,{className:"coverage-header-stats",children:r.map((i,a)=>b.jsx(Gz,{label:i.label,value:i.value},a))})]})}function Kae({title:e,children:t}){return b.jsxs("div",{className:"coverage-empty",children:[b.jsx(at,{name:"pie-chart"}),b.jsxs("div",{children:[b.jsx("h2",{children:e}),b.jsx("p",{children:t})]})]})}function Zae({children:e}){return b.jsx("section",{className:"coverage-kpi-grid","aria-label":"Coverage summary",children:e})}function Qae({children:e}){return b.jsx("section",{className:"coverage-grid","aria-label":"Coverage breakdown",children:e})}function Jae({children:e}){return b.jsx("section",{className:"coverage-gap-grid","aria-label":"Coverage gaps",children:e})}function eoe({label:e,detail:t,shown:n,ringPercent:r,token:i}){return b.jsxs("div",{className:"coverage-kpi",children:[b.jsx(toe,{percent:r,token:i,children:n}),b.jsxs("div",{className:"coverage-kpi__copy",children:[b.jsx("span",{className:"coverage-kpi__label",children:e}),b.jsx("span",{className:"coverage-kpi__detail",children:t})]})]})}function toe({percent:e,token:t,children:n}){return b.jsx(WJ,{className:"coverage-donut",percent:e,colorToken:t,"aria-hidden":"true",children:b.jsx("span",{className:"coverage-donut__center",children:n})})}function sb({title:e,span:t="default",className:n="",children:r,...i}){return b.jsxs("section",{className:J("coverage-panel",t==="wide"?"coverage-panel--wide":void 0,n),...i,children:[b.jsx("header",{className:"coverage-panel__head",children:b.jsx("h2",{children:e})}),r]})}function noe({pie:e,children:t}){return b.jsxs("div",{className:"coverage-breakdown","data-has-pie":e?"true":void 0,children:[e,b.jsx("div",{className:"coverage-breakdown__legend",children:t})]})}function roe({label:e,value:t,type:n}){return b.jsxs("div",{className:"coverage-legend-row",children:[b.jsx(Ln,{className:"coverage-legend-row__icon",type:n,size:"sm"}),b.jsx("span",{children:e}),b.jsx("strong",{children:t})]})}function ioe({children:e}){return b.jsx("div",{className:"coverage-bar-list",children:e})}function aoe({label:e,value:t,children:n}){return b.jsxs("div",{className:"coverage-source-row",children:[b.jsxs("div",{className:"coverage-source-row__head",children:[b.jsx("span",{children:e}),b.jsx("span",{children:t})]}),n]})}function ooe({children:e}){return b.jsx("div",{className:"coverage-capability-list",children:e})}function soe({name:e,mark:t,children:n,className:r="",...i}){return b.jsxs("button",{type:"button",className:J("coverage-capability-row",r),...i,children:[b.jsxs("div",{className:"coverage-capability-row__title",children:[b.jsx(Ln,{type:"capability",size:"sm"}),b.jsx("span",{children:e}),t?b.jsx(loe,{children:t}):null]}),b.jsx("div",{className:"coverage-capability-row__bars",children:n})]})}function loe({children:e}){return b.jsx("span",{className:"coverage-mark",children:e})}function uoe({id:e,title:t,count:n,children:r}){return b.jsxs("section",{id:e,className:"coverage-panel coverage-gap-list",children:[b.jsxs("header",{className:"coverage-gap-list__head",children:[b.jsx("h3",{children:t}),b.jsx("span",{children:n})]}),r]})}function fL({children:e}){return b.jsx("p",{className:"coverage-empty-note",children:e})}function coe({children:e}){return b.jsx("div",{className:"coverage-gap-list__rows",children:e})}function foe({type:e,family:t,title:n,file:r,typeLabel:i,className:a="",...o}){return b.jsxs("button",{type:"button",className:J("coverage-gap-row",a),...o,children:[b.jsx(Ln,{type:e,family:t,size:"sm"}),b.jsxs("span",{className:"coverage-gap-row__copy",children:[b.jsx("span",{className:"coverage-gap-row__title",children:n}),b.jsx("span",{className:"coverage-gap-row__file",children:r})]}),b.jsx(Jr,{type:e,family:t,tinted:!0,children:i})]})}function hoe({children:e,className:t="",...n}){return b.jsx("button",{type:"button",className:J("coverage-more",t),...n,children:e})}function doe({label:e,value:t,children:n}){return b.jsxs("div",{className:"coverage-labeled-bar",children:[b.jsxs("div",{className:"coverage-labeled-bar__head",children:[b.jsx("span",{children:e}),b.jsx("span",{children:t})]}),n]})}function moe({value:e,token:t}){return b.jsx("span",{className:"coverage-bar","aria-hidden":"true",children:b.jsx(KJ,{className:"coverage-bar__fill",value:e,colorToken:t})})}const mw="atm_c8_1m800s6 atm_rd_glywfm",pw="atm_7l_1uoma54 atm_18uqgji_1r1dq30 atm_pgg0nz_8stvzk",poe="atm_9s_1txwivl atm_h_1h6ojuz atm_be_1g80g66 atm_cx_ynj908 atm_c8_ouk0ow",_oe="atm_7l_1mqbmot atm_70_glywfm",goe="atm_9s_1txwivl atm_h_1h6ojuz atm_be_1g80g66 atm_cx_ynj908 atm_gq_1q4684i",yoe="atm_gi_idpfg4 atm_c8_1ye8rbs atm_cs_1d1fc98 atm_g3_10nfu4p",voe="atm_7l_an4usv",boe="atm_9s_1txwivl atm_ar_1bp4okc atm_cx_1oyiw06 atm_ya027c_1txwivl atm_gf2rle_1h6ojuz atm_jjyyxr_1g80g66 atm_idre7l_ynj908 atm_nvjkf4_ouk0ow",xoe="atm_igyrtf_glywfm atm_1gekrss_1mqbmot",woe="atm_c8_1m800s6 atm_cd_1m30gqx atm_g3_5cyyty",koe="atm_7l_1mqbmot";function Eoe({title:e="Resources",count:t}){return b.jsxs("div",{className:J("ux-resources-header",goe),children:[b.jsx("h1",{className:J("ux-resources-title",yoe,voe),children:e}),b.jsxs(Md,{children:[t," resources"]})]})}function Soe({resources:e,emptyMessage:t="No resources in store."}){return b.jsxs("div",{className:J("ux-resource-list",boe,xoe),children:[e.map(n=>{var r,i;return b.jsx(N1,{className:"ux-resource-list-card",children:b.jsxs("div",{className:"ux-resource-list-card-row",children:[b.jsx(Jr,{type:n.kind,family:n.kind,children:n.kind}),b.jsx(Coe,{resource:n}),(((r=n.relationTypes)==null?void 0:r.length)??0)>0?b.jsxs("span",{className:"ux-resource-list-card-meta",children:["via ",(i=n.relationTypes)==null?void 0:i.join(", ")]}):null]})},n.id)}),e.length===0?b.jsx(hL,{children:t}):null]})}function Toe({kind:e,target:t,externalUrl:n}){return b.jsxs(N1,{className:J("ux-resource-detail-card",poe,_oe),children:[b.jsx(Jr,{type:e,family:e,children:e}),n?b.jsx("a",{href:n,target:"_blank",rel:"noreferrer",className:J("ux-resource-link",mw,pw),children:n}):b.jsx(Pi,{children:t})]})}function hL({children:e}){return b.jsx("span",{className:J("ux-resource-empty",woe,koe),children:e})}function Coe({resource:e}){return e.externalUrl?b.jsx("a",{href:e.externalUrl,target:"_blank",rel:"noreferrer",className:J("ux-resource-link",mw,pw),children:e.display}):e.href?b.jsx("a",{href:e.href,className:J("ux-resource-link",mw,pw),children:e.display}):b.jsx(Pi,{children:e.target})}const Aoe="atm_mk_1if85x1 atm_tk_idpfg4 atm_wq_7nb5ka atm_9s_11p5wf0 atm_cx_ynj908 atm_l8_1wz40ms atm_1b3orxf_1txwivl atm_1g9h1b9_1q9ycp6 atm_g22e72_tx1for atm_441hv5_1m800s6 atm_468rbt_1mvar2t atm_g6gnno_ouk0ow atm_yup0c9_19dj2kj atm_135cpzu_idpfg4 atm_okt143_1m800s6",joe="atm_3f_xbw5ta atm_5j_1pr0uq2 atm_26_1u3842e atm_70_3p501a atm_jw2roz_1r1dq30 atm_13bxw0w_1mqbmot",Roe="atm_9s_1txwivl atm_ar_1bp4okc atm_cx_1oyiw06 atm_h3_1aqtv8w atm_1svqb58_15vqwwr atm_1yzsv6k_11p5wf0 atm_d6zurq_1umn398 atm_15f7s85_v2br90 atm_sdsfa_ynj908 atm_1hdw3lq_1osqo2v atm_1r42gjb_usvi9m atm_sdpqu7_c5qxkp atm_i0p208_tlke0l atm_1b6ma3i_1e5hqsa atm_22y29z_glywfm atm_casjrx_11p5wf0 atm_sgmuic_idpfg4 atm_9g5aim_iqvn5y atm_r86fc9_1txwivl atm_jmqrth_1h6ojuz atm_y7kpln_idpfg4 atm_17zaorj_14dey03 atm_871rgh_tx1for atm_t7nf53_idpfg4 atm_1oykbke_15vqwwr atm_dpdovi_1c8rstr atm_1gqrwyf_1mvar2t atm_6kn9v4_yv70g4 atm_p6xvx1_1l2sidv atm_18vkied_1q9ccgz atm_1y4vfru_1ulexfb atm_1w7wswo_idpfg4 atm_7u2042_15vqwwr atm_1fu1ub6_l6f2xw atm_1igych4_ouk0ow atm_1fald7j_yv70g4 atm_1tl918l_1l2sidv atm_hnli5o_1q9ccgz atm_zohnyv_cj1kg8 atm_xxdqm3_15vqwwr atm_udpfbl_1m800s6 atm_6znv68_5cyyty atm_d1x23j_1e54zos atm_3l80s_cs5v99 atm_1v375uf_owgaek atm_19rtxr7_v2br90 atm_154h6wp_1aqtv8w atm_opkufy_1aqtv8w atm_ips429_owgaek",Noe="atm_1hx3c3t_1pr0uq2 atm_k5zkfc_8o97w atm_1phshlq_idpfg4 atm_st9q9i_1j28jx2 atm_kh0rqp_an4usv atm_1l60l41_an4usv atm_1rn28h_1mqbmot",zoe="atm_t9_1dk0nxm",Loe="atm_c8_1m800s6",Moe="atm_7l_1mqbmot";function Ooe({query:e,resultSummary:t,statusText:n,onQueryChange:r,onSubmit:i}){return b.jsxs(ete,{"aria-label":"Search controls",className:J("ux-search-page-toolbar",Aoe,joe),children:[b.jsxs("div",{className:"ux-search-active-controls",children:[b.jsx("span",{className:"ux-search-page-title",children:"Search"}),b.jsx("span",{className:"ux-search-result-count",children:t})]}),b.jsx("form",{className:"ux-search-page-form",role:"search",onSubmit:i,children:b.jsx($z,{size:"lg",type:"search","aria-label":"Search project",placeholder:"Search elements, files, resources, ontology terms...",value:e,onChange:a=>r(a.target.value)})}),b.jsx("span",{className:"ux-search-page-query",children:n})]})}function Doe({results:e,emptyMessage:t}){return b.jsxs("div",{className:J("ux-search-results",Roe,Noe),children:[e.map(n=>b.jsx(N1,{interactive:!0,padded:!1,className:"ux-search-result-card",children:b.jsxs(Ioe,{action:n.action,children:[b.jsxs("div",{className:"ux-search-result-main",children:[b.jsxs("div",{className:"ux-search-result-heading",children:[n.badge.type?b.jsx(Jr,{type:n.badge.type,family:n.badge.family,tinted:n.badge.tinted,children:n.badge.label}):b.jsx(Md,{className:J("ux-search-kind-badge",zoe),children:n.badge.label}),b.jsx("span",{className:"ux-search-result-title",children:n.title})]}),n.route?b.jsx("span",{className:"ux-search-result-route",children:n.route}):null,typeof n.preview=="string"?b.jsx("span",{className:"ux-search-result-preview",children:n.preview}):n.preview]}),b.jsx(at,{name:"arrow-up-right",className:"ux-search-result-arrow","aria-hidden":"true"})]})},n.key)),t?b.jsx(qoe,{children:t}):null]})}function qoe({children:e}){return b.jsx("span",{className:J("ux-search-empty",Loe,Moe),children:e})}function Ioe({action:e,children:t}){return e.kind==="button"?b.jsx("button",{type:"button",className:"ux-search-result-action",onClick:e.onClick,children:t}):b.jsx("a",{className:"ux-search-result-action",href:e.href,children:t})}const $oe="atm_73_usvi9m atm_9s_1txwivl atm_jb_idpfg4 atm_j6_idpfg4 atm_am_ggq5uc atm_ar_1bp4okc atm_vy_15mqm6d",Poe="atm_9s_1txwivl atm_am_ggq5uc atm_ar_1bp4okc atm_vy_1osqo2v atm_e2_1osqo2v atm_j6_idpfg4 atm_ks_15vqwwr",Uoe="atm_73_usvi9m",Boe="atm_73_usvi9m",Goe="atm_73_usvi9m",Foe="atm_73_usvi9m",Hoe="atm_73_usvi9m",Voe="atm_73_usvi9m",Xoe="atm_73_usvi9m",Yoe="atm_73_usvi9m",Woe="atm_73_usvi9m",Koe="atm_73_usvi9m",Zoe="atm_73_usvi9m",Qoe="atm_73_usvi9m",Joe="atm_73_usvi9m",ese="atm_73_usvi9m",tse="atm_73_usvi9m",nse="atm_73_usvi9m",rse="atm_73_usvi9m",ise="atm_73_usvi9m",ase="atm_73_usvi9m",dL="atm_73_usvi9m",ose="atm_73_usvi9m",sse="atm_73_usvi9m",lse="atm_73_usvi9m",use="atm_9s_116y0ak atm_am_12336oc atm_vy_1rmyi83 atm_e2_1rmyi83 atm_73_usvi9m atm_3f_1tr7wzy atm_5j_suuzbj",cse="atm_73_usvi9m",fse="atm_73_usvi9m",hse="atm_73_usvi9m",dse="atm_73_usvi9m",mse="atm_73_usvi9m",pse="atm_73_usvi9m",_se="atm_73_usvi9m",gse="atm_73_usvi9m",yse="atm_73_usvi9m",vse="atm_73_usvi9m",bse="atm_mk_1n9t6rb atm_f3_irm9pb atm_wq_1q74syn atm_9s_1txwivl atm_vy_l705tw atm_73_usvi9m atm_ar_vrvcex atm_ks_15vqwwr atm_7kq2ir_xilxc7 atm_891o4a_1ul9x4n atm_1kouppm_mpnfgn atm_zc6wpu_glywfm atm_puepzc_h2mmj6 atm_hq95hj_1wugsn5 atm_ti0hoy_1wugsn5 atm_rvs1et_1fhbwtr atm_1alhlr5_14je7hw atm_tetfku_l705tw atm_qj4z5l_idpfg4 atm_d0vgki_idpfg4 atm_1415qz7_1osqo2v atm_bns2av_glywfm atm_1bswydb_1txwivl atm_1wsnyk0_idpfg4 atm_4x1cc9_idpfg4 atm_11o1fx4_ggq5uc atm_lh4e6a_1bp4okc atm_wwiibs_15mqm6d atm_1298wmq_1txwivl atm_1hb8izi_ggq5uc atm_1duszap_1bp4okc atm_ov1oto_1osqo2v atm_124dkh3_1osqo2v atm_ch5on0_idpfg4 atm_17oqew3_15vqwwr atm_1rogwi2_h2mmj6 atm_i5p90e_1txwivl atm_5zqc5k_idpfg4 atm_pigph6_126gte8 atm_14ddov_16f6m6j atm_i3s7r2_1y6m0gg atm_jtkc60_1h6ojuz atm_jmyevp_ek2tx5 atm_e61uyl_idpfg4 atm_nqtmco_idpfg4 atm_utokza_tlke0l atm_1vvt2ne_glywfm atm_tspak1_glywfm atm_1eacelv_1o8liyq atm_95eig_hwm9mu atm_19nxqn6_1rlkksh atm_91w3cs_1o6fbio atm_lxshbk_1mvar2t atm_16pcalf_7n2z1h atm_sjpqsc_angws6 atm_1cehlre_stnw88 atm_8b5tuo_1ssbidh atm_d6u19e_1ssbidh atm_1hi61sk_1txwivl atm_q5azmx_1h6ojuz atm_xhn9lv_1h6ojuz atm_b5x0fo_14k5dlv atm_1ujbdzl_14k5dlv atm_czc6vo_1ooetej atm_e51bb1_12336oc atm_1axuukx_13cqf40 atm_fdt598_627g3t atm_bhk1u9_h2mmj6 atm_1i8w2wp_qp9j9c atm_169smvq_m5fiu3 atm_gvrfs6_1c8rstr atm_zn26i8_1aqtv8w atm_1m2xdba_fjcok3 atm_1afe1fn_gx0z50 atm_1aczy7q_1n56hfp atm_cpy9na_1wugsn5 atm_nw4q2k_6e9m65 atm_1i8csea_iqvn5y atm_1bv4frs_glywfm atm_wzh0do_glywfm atm_1hgh1y5_11p5wf0 atm_kii5j8_1osqo2v atm_10a3zgk_usvi9m atm_1t73peu_1xi6ry0 atm_15qzz1t_1vz6rot atm_zo4u4f_idpfg4 atm_1c8qj1c_mrub5a atm_1ucrnqw_1e5hqsa atm_1cd51a3_glywfm atm_rayf75_tlke0l atm_gjvpef_1o6fbio atm_gpw0co_1txwivl atm_1nuab7s_1h6ojuz atm_10nn62a_1yb4nlp atm_1228hrq_tx1for atm_8j1scu_mrub5a atm_8wk4m6_1vz6rot atm_17hfnph_tlke0l atm_1emr8au_ouk0ow atm_1mllx1r_1o8liyq atm_1sth1oj_idpfg4 atm_p91wg2_1i9d2r atm_k0rcmg_1r3tyjr atm_1wtjf89_1o6fbio atm_eqbtz3_1d1fc98 atm_r08jt2_11p5wf0 atm_1x4ru42_12336oc atm_82903e_tx1for atm_ydczek_31gtpu atm_r118ih_1y6m0gg atm_t66mdv_15fao4p atm_19yajut_idpfg4 atm_16176em_idpfg4 atm_1ipnpzi_glywfm atm_gorhsh_idpfg4 atm_i1uul3_15vqwwr atm_ww3efi_1l2sidv atm_ard02a_1q9ccgz atm_hkslwp_116y0ak atm_1clbfh7_lafzln atm_1qjfdj0_lafzln atm_1nv07ty_1h6ojuz atm_um6okn_1h6ojuz atm_i8safy_9wwvsf atm_1k3kljw_1i9d2r atm_1i0ejrq_1d1fc98 atm_sy2aik_kb7nvz atm_e08xmv_1mv84c8 atm_ky845a_73adwj atm_1daum3m_1txwivl atm_1tb1ryw_ggq5uc atm_13c3kwc_idpfg4 atm_182n8cg_1bp4okc atm_nglzqu_1oyiw06 atm_72r81q_15vqwwr atm_hypczr_1wugsn5 atm_1oy1h9a_1jbrbnu atm_1x2egop_p27btl atm_1611u6i_1jleg3m atm_w92nwr_1ye8rbs atm_ul9p39_1d1fc98 atm_78iser_idpfg4 atm_1kmwij5_3szr2b atm_1pof3y6_1ulexfb atm_cpyysy_60uowd atm_smkn3f_1o6fbio atm_g6a7e4_1d1fc98 atm_17an7du_v3rtn5 atm_1u91qpc_angws6 atm_1ktlke4_20g1vd atm_1815ru1_1k2i9i8 atm_m6gnwc_1lzc1s3 atm_1icihx4_kb7nvz atm_q4lk2a_11p5wf0 atm_14ni561_1oyiw06 atm_1yzyc7x_1mv84c8 atm_yb1nvz_1mv84c8 atm_1bznbrq_ynj908 atm_9bv4b5_vb8vu1 atm_1tmaii3_1mv84c8 atm_8q23hb_1mv84c8 atm_1jub08u_vb8vu1 atm_p827f6_1rmyi83 atm_1f8myg5_1mqbmot atm_2vrm5z_1txwivl atm_1z021h5_1bp4okc atm_1wm6xfi_1oyiw06 atm_17szu4v_idpfg4 atm_1pycox2_1txwivl atm_5ogo8t_1g80g66 atm_17xinw3_1q9ycp6 atm_1ng65ab_tx1for atm_16ncngf_1bp4okc atm_bt90hr_1q9ccgz atm_cpx867_1fhbwtr atm_1ehbqd_ek2tx5 atm_jvhfch_lxkxdv atm_1xmcgi7_1rr1le1 atm_14otzgq_idpfg4 atm_16rgh5e_idpfg4 atm_1v6aaeo_11p5wf0 atm_1q6zg8x_wxktsh atm_1kg2zba_6skkmd atm_4pgrso_1txwivl atm_1kv6jud_idpfg4 atm_1sbde5w_1yb4nlp atm_u2verv_1txwivl atm_8kdq02_1h6ojuz atm_tuz8ta_ynj908 atm_n7ka9w_1mv84c8 atm_9zpk78_vb8vu1 atm_o5a6d8_ouk0ow atm_a0jzs_nqt0r7 atm_18a6hyx_116y0ak atm_1rad2at_1h6ojuz atm_1lmbodf_1h6ojuz atm_1ygw6ba_15fao4p atm_1j9lwnj_14k5dlv atm_i37qn5_ab5uq2 atm_12u68uk_1o6fbio atm_mhbwwu_1mvar2t atm_1t1mzr9_kb7nvz atm_caksfm_1xi6ry0 atm_1u09hw0_1ru0ig4 atm_whvsex_1pywi5l atm_1psdtvg_cjiytx atm_er3qdy_ynj908 atm_1dtsxxq_1wz40ms atm_1x8w0sn_1uoma54 atm_h25iip_idpfg4 atm_1c0xhjg_ggq5uc atm_1drsts6_15vqwwr atm_hhwhsx_1wugsn5 atm_12hupao_1n7o584 atm_15ksm5f_noze7a atm_1mion3d_p27btl atm_evfai5_idpfg4 atm_1mionod_idpfg4 atm_qjdepx_glywfm atm_13vvdff_glywfm atm_djozz5_11p5wf0 atm_62o9xa_ek2tx5 atm_42bdv2_idpfg4 atm_1ciltl3_idpfg4 atm_cora52_116y0ak atm_b983qx_1osqo2v atm_1gi4un9_idpfg4 atm_13yc1sc_1h6ojuz atm_q02i4g_1y6m0gg atm_1cyht56_owgaek atm_1brgaqd_1kxw53v atm_1ybq0sz_mrub5a atm_if1ja_1m800s6 atm_33xf73_19dj2kj atm_fkkv81_1e5hqsa atm_xq439d_glywfm atm_4qgn3p_tlke0l atm_iwe2ny_1t8awia atm_vvvf1y_idpfg4 atm_1mcg3g9_15vqwwr atm_1fi7hgh_1l2sidv atm_yexj8a_1q9ccgz atm_1mu3y9j_1txwivl atm_1oin107_idpfg4 atm_krv99y_1h6ojuz atm_14hk5pe_iqvn5y atm_aeugrl_ggq5uc atm_97nc3a_ggq5uc atm_ibgbsr_idpfg4 atm_7n9dps_15vqwwr atm_9m5xca_1l2sidv atm_1axs5gd_1q9ccgz atm_2428qz_12336oc atm_aly1hk_ewfl5b atm_1pay1vv_ohusjj atm_855kca_1i9d2r atm_r06cra_1o6fbio atm_1ewqs1t_1d1fc98 atm_lcy03o_cjiytx atm_d0wa2q_12336oc atm_1er3bk0_idpfg4 atm_u0lx65_ouk0ow atm_1xlb6xs_1txwivl atm_1b6wjo5_1bp4okc atm_1xn3oa4_1oyiw06 atm_1an8cdh_11p5wf0 atm_1hgbsh2_1gpoo8t atm_1t5nqop_1h6ojuz atm_hphpy5_ek2tx5 atm_79hkes_1osqo2v atm_1o01fl6_15fao4p atm_1wc7tbp_3ofa5r atm_1its53q_idpfg4 atm_12ghews_ab5uq2 atm_13oy5e5_tlke0l atm_c3uycx_1kw7nm4 atm_cgb7j_1e5hqsa atm_ruw7v7_116y0ak atm_u5r365_1h6ojuz atm_djh37v_1h6ojuz atm_1tarhgp_15vqwwr atm_1x596ye_1m800s6 atm_klumqt_19dj2kj atm_iqn0o7_1l2sidv atm_1dgy3it_1q9ccgz atm_1totaps_116y0ak atm_1ukejob_lafzln atm_1jvzn72_lafzln atm_cq4ry0_1h6ojuz atm_1d02h89_1h6ojuz atm_184tqdd_9wwvsf atm_dyyafx_1i9d2r atm_1wxdodj_1o6fbio atm_u0fwgk_1d1fc98 atm_197z3ai_kb7nvz atm_xlui9v_1txwivl atm_1nbkfcb_1g80g66 atm_10jw5iz_ek2tx5 atm_1qyqfxp_idpfg4 atm_z2r8hl_116y0ak atm_15hjfk2_1mv84c8 atm_1ky3zv0_1h6ojuz atm_fu1xn9_tx1for atm_ofbt3h_1vxnein atm_10nuurm_mrub5a atm_ulv63p_ouk0ow atm_19qfk5z_19dj2kj atm_14g1c36_glywfm atm_110p815_1ulexfb atm_1qydog3_1aou828 atm_nterp4_1aou828 atm_i4scvs_12336oc atm_1el8h1c_1m800s6 atm_1rewaal_1m30gqx atm_87s5no_5cyyty",xse="atm_mk_h2mmj6 atm_f3_1wugsn5 atm_wq_1wugsn5 atm_j_1fhbwtr atm_am_14je7hw atm_vy_l705tw atm_jb_idpfg4 atm_j6_idpfg4 atm_e2_1osqo2v",wse="atm_5q_xbw5ta atm_26_1u3842e atm_7l_an4usv atm_11ce9ju_1u3842e atm_q8byzp_1uoma54 atm_t698w_8o97w atm_d1l6do_1uoma54 atm_1q6pkiy_idpfg4 atm_13jafcn_1mqbmot atm_13eg02y_xbw5ta atm_g3zm4h_6lcubb atm_1y4h838_an4usv atm_1o6rrea_1mqbmot atm_nkba44_xbw5ta atm_px0o49_ab5uq2 atm_1qxmrrz_1u3842e atm_3ypa0c_weu1m6 atm_fya5z9_1j28jx2 atm_lijm82_an4usv atm_19vapqh_8o97w atm_1b82i1_1mqbmot atm_1qoxbcr_8o97w atm_9sdu5l_1mqbmot atm_1okbzz1_4fh4vv atm_175nb6j_21k9f7 atm_wquao9_1j28jx2 atm_1c6wupc_yzuxxm atm_oh8wr_1uoma54 atm_1ex0n9o_1r31cwp atm_e5h7nd_1j28jx2 atm_4a4cf2_1r1dq30 atm_1485j4q_1mqbmot atm_y0idks_xbw5ta atm_3gr2tb_yzuxxm atm_1ivp9yq_127xd9b atm_153v1we_1mqbmot atm_qcq2w9_ag7trk atm_l1zsnp_1u3842e atm_6imjkk_an4usv atm_kyyowz_1627y59 atm_28rxa2_8o97w atm_16g3dso_yzuxxm atm_9qmbvk_1mqbmot atm_f67j5h_1j28jx2 atm_jmiqfv_an4usv atm_1la8u17_8o97w atm_1nog6m4_9snglw atm_ir0r2e_1xi6ry0 atm_19maqxz_1mqbmot atm_7xortw_an4usv atm_1slgszr_yzuxxm atm_17jynao_1uoma54 atm_1fml4z2_1j28jx2 atm_1uag7am_1uoma54 atm_7jsl6x_8o97w atm_br1kuk_1r1dq30";function kse({className:e="",...t}){return b.jsx("div",{className:J("ux-pane-action-row",ise,e),...t})}function Ese({className:e="",...t}){return b.jsx("a",{className:J("ux-pane-ghost-link",ase,e),...t})}function Lp({title:e,className:t="",children:n,...r}){return b.jsxs("section",{className:J("ux-pane-controls",Woe,t),...r,children:[e!=null?b.jsx("h2",{className:J("ux-pane-controls-title",Koe),children:e}):null,n]})}function Ka({label:e,children:t}){return b.jsxs(b.Fragment,{children:[b.jsx("span",{className:J("ux-pane-section-label",gse),children:e}),t]})}function Sse({searchInputId:e,inputLabel:t,placeholder:n,value:r,resultsId:i,onQueryChange:a,onSubmit:o,children:l}){return b.jsxs("form",{className:J("ux-global-search",Voe),role:"search",onSubmit:o,children:[b.jsx($z,{id:e,className:J("ux-global-search-control",Xoe),size:"lg","aria-label":t,type:"search",placeholder:n,value:r,onChange:c=>a(c.target.value)}),b.jsx("ul",{id:i,className:J("ontology-graph-results",Yoe),children:l})]})}function Tse({className:e="",...t}){return b.jsx("div",{className:J("ux-pane-nav-list",Joe,e),...t})}function Cse({icon:e,label:t,count:n,className:r="",...i}){return b.jsxs("button",{type:"button",className:J("ux-pane-nav-row",ese,r),...i,children:[b.jsx("span",{className:J("ux-pane-nav-row__icon",tse),"aria-hidden":"true",children:b.jsx(at,{name:e})}),b.jsx("span",{className:J("ux-pane-nav-row__label",nse),children:t}),b.jsx(Md,{className:J("ux-pane-nav-row__count",rse),children:n})]})}function y8({rows:e}){return b.jsx("div",{className:J("ux-pane-legend",dL),children:e.map(t=>b.jsx(jh,{label:t.label,colorToken:t.colorToken,line:t.line,static:!0},t.id))})}function Ase({rows:e}){return b.jsx("div",{className:J("ux-pane-legend",dL),children:e.map((t,n)=>b.jsxs("div",{className:J("ux-pane-legend-row",ose),children:[b.jsx("span",{className:J("ux-pane-symbol",lse),children:t.symbol}),b.jsx("span",{className:J("ux-pane-legend-text",sse),children:t.label})]},n))})}function mL({ariaLabel:e,emptyMessage:t,selection:n,openTitle:r="Open details",clearLabel:i="Clear selection",onOpen:a,onClear:o}){return b.jsx("section",{className:J("ux-pane-selected-element",cse),"aria-label":e,children:b.jsx(Ka,{label:"Selection",children:n==null?b.jsx("p",{className:J(vse,"ux-pane-selection-hint",_se),children:t}):b.jsxs("div",{className:J("ux-pane-selection-row",hse),children:[b.jsxs("button",{type:"button",className:J("ux-pane-selected-element-link",fse),onClick:a,title:r,children:[n.icon??b.jsx("span",{className:J("ux-graph-control-swatch",use)}),b.jsx("span",{className:J("ux-pane-selection-name",dse),children:n.name}),n.kind!=null?b.jsx("span",{className:J("ux-pane-selection-kind",mse),children:n.kind}):null,b.jsx(at,{name:"arrow-up-right",size:13,className:J("ux-pane-selection-open",pse)})]}),o?b.jsx(xc,{size:"sm",tone:"ghost","aria-label":i,title:i,onClick:o,children:b.jsx(at,{name:"x"})}):null]})})})}function v8({title:e="Summary",ariaLabel:t=e,items:n}){return b.jsx(Uee,{title:e,className:J("ux-pane-summary",Zoe),"aria-label":t,children:b.jsx(Fz,{className:J("ux-summary",Qoe),children:n.map(r=>b.jsx(Gz,{label:r.label,value:r.value,title:r.title},r.label))})})}function b8({className:e="",...t}){return b.jsx("div",{className:J("ux-tree",Uoe,e),...t})}function I1({className:e="",...t}){return b.jsx("div",{className:J(yse,e),...t})}function jse({open:e,chrome:t="standalone",header:n,railMark:r,tabLabel:i="Explorer",onToggle:a,className:o="",children:l,...c}){const f=t==="app",d=t==="standalone";return b.jsxs("aside",{className:J("ux-side-pane",bse,wse,f?xse:"is-standalone",!e&&"is-collapsed",o),...c,children:[b.jsxs("div",{className:J("ux-side-content",$oe,f&&Poe),children:[d?n:null,l]}),d?b.jsxs("button",{type:"button",className:J("ux-tree-tab",Boe),"aria-label":e?"Collapse explorer pane":"Expand explorer pane","aria-expanded":e,onClick:a,children:[r!=null?b.jsx("span",{className:J("ux-tree-tab-mark",Hoe),children:r}):null,b.jsx("span",{className:J("ux-tree-tab-label",Goe),children:i}),b.jsx("span",{className:J("ux-tree-toggle",Foe),"aria-hidden":"true",children:e?b.jsx(at,{name:"chevron-left"}):b.jsx(at,{name:"chevron-right"})})]}):null]})}const x8="2026-06-07.project-store.v1",Rse=["project","folders","files","resources","elements","relations","reused_contract_context","concept_refs","submodels","traces","coverage","ontology","knowledge_graph","search","summaries","routes"],Nse=["folders","files","resources","elements","relations","reused_contract_context","concept_refs","search"];function zse(){if(typeof window<"u"&&window.reqvireProjectStore!==void 0)return window.reqvireProjectStore}function Lse(e){const t=[];if(typeof e!="object"||e===null)return["seed is not an object"];const n=e;for(const r of Rse)r in n||t.push(`missing required section "${r}"`);for(const r of Nse)r in n&&!Array.isArray(n[r])&&t.push(`section "${r}" must be an array`);if("project"in n){const r=n.project;(typeof r!="object"||r===null)&&t.push('section "project" must be an object')}return t}function Mse(e){let t=zse();if(t===void 0)return{ok:!1,reason:"No Reqvire Project Store seed found.",detail:"Expected window.reqvireProjectStore from assets/project-store.js. Open this Explorer from reqvire serve, a reqvire export output directory, or npm run dev."};const n=Lse(t);if(n.length>0)return{ok:!1,reason:"Reqvire Project Store seed is malformed.",detail:n.join("; ")};const r=t,i=r.schema_version===x8?null:`seed schema "${r.schema_version??"unknown"}" != expected "${x8}"`;return{ok:!0,store:r,schemaMismatch:i}}const pL=se.createContext(null);function Ose({store:e,schemaMismatch:t,children:n}){const r=se.useMemo(()=>{const i=new Map;for(const a of e.elements)i.set(a.id,a);return{store:e,schemaMismatch:t,elementById:a=>i.get(a)}},[e,t]);return b.jsx(pL.Provider,{value:r,children:n})}function xr(){const e=se.useContext(pL);if(!e)throw new Error("useStore must be used within a StoreProvider");return e}function Dse(e){return b.jsx(eae,{...e})}function qse(e){return b.jsx(qie,{...e})}const Ih="model",Ise=[{id:"model",label:"Model"}],$se=[{id:"traces",label:"Traces"},{id:"ontologies",label:"Ontologies"},{id:"coverage",label:"Coverage"}],Pse=["resources","files","search","content"],Use=new Set([...Ise.map(e=>e.id),...$se.map(e=>e.id),...Pse]),_L={model:"Model",traces:"Traces",ontologies:"Ontologies",coverage:"Coverage",resources:"Resources",files:"Model",search:"Search",content:"Content"};function Bse(e){return Use.has(e)}function v_(e){return`#/${e}`}function $1(e){return`#/elements/${e}`}function cd(e){return`#/content/${e}`}function Gse(e){const t=e.trim();return t?`#/search/${encodeURIComponent(t)}`:"#/search"}function Fse(e,t){let n=e.startsWith("#")?e.slice(1):e;if(n.startsWith("/")&&(n=n.slice(1)),n==="")return{view:Ih,param:null,elementId:null};if(n.startsWith("elements/")){const i=n.slice(9);return{view:t,param:null,elementId:i.length>0?i:null}}if(n.startsWith("files/"))return{view:"files",param:n.slice(6),elementId:null};if(n.startsWith("content/"))return{view:"content",param:n.slice(8),elementId:null};if(n.startsWith("resources/"))return{view:"resources",param:n.slice(10),elementId:null};if(n==="search"||n.startsWith("search/")||n.startsWith("search?")){const i=n.startsWith("search/")||n.startsWith("search?")?n.slice(7):"";let a=i;try{a=decodeURIComponent(i)}catch{a=i}return{view:"search",param:a||null,elementId:null}}const r=n.split("/")[0];return r==="knowledge-graph"?{view:Ih,param:null,elementId:null}:Bse(r)?{view:r,param:null,elementId:null}:{view:Ih,param:null,elementId:null}}const Hse="modulepreload",Vse=function(e,t){return new URL(e,t).href},w8={},Q=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let o=function(d){return Promise.all(d.map(m=>Promise.resolve(m).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};const l=document.getElementsByTagName("link"),c=document.querySelector("meta[property=csp-nonce]"),f=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));i=o(n.map(d=>{if(d=Vse(d,r),d in w8)return;w8[d]=!0;const m=d.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(!!r)for(let x=l.length-1;x>=0;x--){const k=l[x];if(k.href===d&&(!m||k.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${p}`))return;const y=document.createElement("link");if(y.rel=m?"stylesheet":Hse,m||(y.as="script"),y.crossOrigin="",y.href=d,f&&y.setAttribute("nonce",f),document.head.appendChild(y),m)return new Promise((x,k)=>{y.addEventListener("load",x),y.addEventListener("error",()=>k(new Error(`Unable to preload CSS for ${d}`)))})}))}function a(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return i.then(o=>{for(const l of o||[])l.status==="rejected"&&a(l.reason);return t().catch(a)})};function gL(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Xse=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Yse=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Wse={};function k8(e,t){return(Wse.jsx?Yse:Xse).test(e)}const Kse=/[ \t\n\f\r]/g;function P1(e){return typeof e=="object"?e.type==="text"?E8(e.value):!1:E8(e)}function E8(e){return e.replace(Kse,"")===""}class Od{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Od.prototype.normal={};Od.prototype.property={};Od.prototype.space=void 0;function yL(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Od(n,r,t)}function _w(e){return e.toLowerCase()}class Mr{constructor(t,n){this.attribute=n,this.property=t}}Mr.prototype.attribute="";Mr.prototype.booleanish=!1;Mr.prototype.boolean=!1;Mr.prototype.commaOrSpaceSeparated=!1;Mr.prototype.commaSeparated=!1;Mr.prototype.defined=!1;Mr.prototype.mustUseProperty=!1;Mr.prototype.number=!1;Mr.prototype.overloadedBoolean=!1;Mr.prototype.property="";Mr.prototype.spaceSeparated=!1;Mr.prototype.space=void 0;let Zse=0;const et=Ul(),pn=Ul(),gw=Ul(),Te=Ul(),Ot=Ul(),yl=Ul(),Xr=Ul();function Ul(){return 2**++Zse}const yw=Object.freeze(Object.defineProperty({__proto__:null,boolean:et,booleanish:pn,commaOrSpaceSeparated:Xr,commaSeparated:yl,number:Te,overloadedBoolean:gw,spaceSeparated:Ot},Symbol.toStringTag,{value:"Module"})),lb=Object.keys(yw);class $k extends Mr{constructor(t,n,r,i){let a=-1;if(super(t,n),S8(this,"space",i),typeof r=="number")for(;++a<lb.length;){const o=lb[a];S8(this,lb[a],(r&yw[o])===yw[o])}}}$k.prototype.defined=!0;function S8(e,t,n){n&&(e[t]=n)}function $c(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new $k(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[_w(r)]=r,n[_w(a.attribute)]=r}return new Od(t,n,e.space)}const vL=$c({properties:{ariaActiveDescendant:null,ariaAtomic:pn,ariaAutoComplete:null,ariaBusy:pn,ariaChecked:pn,ariaColCount:Te,ariaColIndex:Te,ariaColSpan:Te,ariaControls:Ot,ariaCurrent:null,ariaDescribedBy:Ot,ariaDetails:null,ariaDisabled:pn,ariaDropEffect:Ot,ariaErrorMessage:null,ariaExpanded:pn,ariaFlowTo:Ot,ariaGrabbed:pn,ariaHasPopup:null,ariaHidden:pn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ot,ariaLevel:Te,ariaLive:null,ariaModal:pn,ariaMultiLine:pn,ariaMultiSelectable:pn,ariaOrientation:null,ariaOwns:Ot,ariaPlaceholder:null,ariaPosInSet:Te,ariaPressed:pn,ariaReadOnly:pn,ariaRelevant:null,ariaRequired:pn,ariaRoleDescription:Ot,ariaRowCount:Te,ariaRowIndex:Te,ariaRowSpan:Te,ariaSelected:pn,ariaSetSize:Te,ariaSort:null,ariaValueMax:Te,ariaValueMin:Te,ariaValueNow:Te,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function bL(e,t){return t in e?e[t]:t}function xL(e,t){return bL(e,t.toLowerCase())}const Qse=$c({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:yl,acceptCharset:Ot,accessKey:Ot,action:null,allow:null,allowFullScreen:et,allowPaymentRequest:et,allowUserMedia:et,alpha:et,alt:null,as:null,async:et,autoCapitalize:null,autoComplete:Ot,autoFocus:et,autoPlay:et,blocking:Ot,capture:null,charSet:null,checked:et,cite:null,className:Ot,closedBy:null,colorSpace:null,cols:Te,colSpan:Te,command:null,commandFor:null,content:null,contentEditable:pn,controls:et,controlsList:Ot,coords:Te|yl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:et,defer:et,dir:null,dirName:null,disabled:et,download:gw,draggable:pn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:et,formTarget:null,headers:Ot,height:Te,hidden:gw,high:Te,href:null,hrefLang:null,htmlFor:Ot,httpEquiv:Ot,id:null,imageSizes:null,imageSrcSet:null,inert:et,inputMode:null,integrity:null,is:null,isMap:et,itemId:null,itemProp:Ot,itemRef:Ot,itemScope:et,itemType:Ot,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:et,low:Te,manifest:null,max:null,maxLength:Te,media:null,method:null,min:null,minLength:Te,multiple:et,muted:et,name:null,nonce:null,noModule:et,noValidate:et,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:et,optimum:Te,pattern:null,ping:Ot,placeholder:null,playsInline:et,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:et,referrerPolicy:null,rel:Ot,required:et,reversed:et,rows:Te,rowSpan:Te,sandbox:Ot,scope:null,scoped:et,seamless:et,selected:et,shadowRootClonable:et,shadowRootCustomElementRegistry:et,shadowRootDelegatesFocus:et,shadowRootMode:null,shadowRootSerializable:et,shape:null,size:Te,sizes:null,slot:null,span:Te,spellCheck:pn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Te,step:null,style:null,tabIndex:Te,target:null,title:null,translate:null,type:null,typeMustMatch:et,useMap:null,value:pn,width:Te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ot,axis:null,background:null,bgColor:null,border:Te,borderColor:null,bottomMargin:Te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:et,declare:et,event:null,face:null,frame:null,frameBorder:null,hSpace:Te,leftMargin:Te,link:null,longDesc:null,lowSrc:null,marginHeight:Te,marginWidth:Te,noResize:et,noHref:et,noShade:et,noWrap:et,object:null,profile:null,prompt:null,rev:null,rightMargin:Te,rules:null,scheme:null,scrolling:pn,standby:null,summary:null,text:null,topMargin:Te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Te,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:et,disablePictureInPicture:et,disableRemotePlayback:et,exportParts:yl,part:Ot,prefix:null,property:null,results:Te,security:null,unselectable:null},space:"html",transform:xL}),Jse=$c({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:Xr,accentHeight:Te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Te,amplitude:Te,arabicForm:null,ascent:Te,attributeName:null,attributeType:null,azimuth:Te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Te,by:null,calcMode:null,capHeight:Te,className:Ot,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:Te,diffuseConstant:Te,direction:null,display:null,dur:null,divisor:Te,dominantBaseline:null,download:et,dx:null,dy:null,edgeMode:null,editable:null,elevation:Te,enableBackground:null,end:null,event:null,exponent:Te,externalResourcesRequired:null,fill:null,fillOpacity:Te,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:yl,g2:yl,glyphName:yl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Te,horizOriginX:Te,horizOriginY:Te,id:null,ideographic:Te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Te,k:Te,k1:Te,k2:Te,k3:Te,k4:Te,kernelMatrix:Xr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Te,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:Te,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:Te,overlineThickness:Te,paintOrder:null,panose1:null,path:null,pathLength:Te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ot,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Te,pointsAtY:Te,pointsAtZ:Te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Xr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Xr,rev:Xr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Xr,requiredFeatures:Xr,requiredFonts:Xr,requiredFormats:Xr,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:Te,specularExponent:Te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Te,strikethroughThickness:Te,string:null,stroke:null,strokeDashArray:Xr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Te,strokeOpacity:Te,strokeWidth:null,style:null,surfaceScale:Te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Xr,tabIndex:Te,tableValues:null,target:null,targetX:Te,targetY:Te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Xr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Te,underlineThickness:Te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Te,values:null,vAlphabetic:Te,vMathematical:Te,vectorEffect:null,vHanging:Te,vIdeographic:Te,version:null,vertAdvY:Te,vertOriginX:Te,vertOriginY:Te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:bL}),wL=$c({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()}}),kL=$c({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:xL}),EL=$c({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ele={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"},tle=/[A-Z]/g,T8=/-[a-z]/g,nle=/^data[-\w.:]+$/i;function SL(e,t){const n=_w(t);let r=t,i=Mr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&nle.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(T8,ile);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!T8.test(a)){let o=a.replace(tle,rle);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=$k}return new i(r,t)}function rle(e){return"-"+e.toLowerCase()}function ile(e){return e.charAt(1).toUpperCase()}const TL=yL([vL,Qse,wL,kL,EL],"html"),Dd=yL([vL,Jse,wL,kL,EL],"svg");function CL(e){return e.join(" ").trim()}var Iu={},ub,C8;function ale(){if(C8)return ub;C8=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g,c=`
|
|
55
|
+
`,f="/",d="*",m="",p="comment",g="declaration";function y(k,w){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];w=w||{};var C=1,S=1;function T(B){var D=B.match(t);D&&(C+=D.length);var j=B.lastIndexOf(c);S=~j?B.length-j:S+B.length}function z(){var B={line:C,column:S};return function(D){return D.position=new A(B),H(),D}}function A(B){this.start=B,this.end={line:C,column:S},this.source=w.source}A.prototype.content=k;function L(B){var D=new Error(w.source+":"+C+":"+S+": "+B);if(D.reason=B,D.filename=w.source,D.line=C,D.column=S,D.source=k,!w.silent)throw D}function G(B){var D=B.exec(k);if(D){var j=D[0];return T(j),k=k.slice(j.length),D}}function H(){G(n)}function q(B){var D;for(B=B||[];D=V();)D!==!1&&B.push(D);return B}function V(){var B=z();if(!(f!=k.charAt(0)||d!=k.charAt(1))){for(var D=2;m!=k.charAt(D)&&(d!=k.charAt(D)||f!=k.charAt(D+1));)++D;if(D+=2,m===k.charAt(D-1))return L("End of comment missing");var j=k.slice(2,D-2);return S+=2,T(j),k=k.slice(D),S+=2,B({type:p,comment:j})}}function W(){var B=z(),D=G(r);if(D){if(V(),!G(i))return L("property missing ':'");var j=G(a),N=B({type:g,property:x(D[0].replace(e,m)),value:j?x(j[0].replace(e,m)):m});return G(o),N}}function I(){var B=[];q(B);for(var D;D=W();)D!==!1&&(B.push(D),q(B));return B}return H(),I()}function x(k){return k?k.replace(l,m):m}return ub=y,ub}var A8;function ole(){if(A8)return Iu;A8=1;var e=Iu&&Iu.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Iu,"__esModule",{value:!0}),Iu.default=n;const t=e(ale());function n(r,i){let a=null;if(!r||typeof r!="string")return a;const o=(0,t.default)(r),l=typeof i=="function";return o.forEach(c=>{if(c.type!=="declaration")return;const{property:f,value:d}=c;l?i(f,d,c):d&&(a=a||{},a[f]=d)}),a}return Iu}var nh={},j8;function sle(){if(j8)return nh;j8=1,Object.defineProperty(nh,"__esModule",{value:!0}),nh.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(f){return!f||n.test(f)||e.test(f)},o=function(f,d){return d.toUpperCase()},l=function(f,d){return"".concat(d,"-")},c=function(f,d){return d===void 0&&(d={}),a(f)?f:(f=f.toLowerCase(),d.reactCompat?f=f.replace(i,l):f=f.replace(r,l),f.replace(t,o))};return nh.camelCase=c,nh}var rh,R8;function lle(){if(R8)return rh;R8=1;var e=rh&&rh.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(ole()),n=sle();function r(i,a){var o={};return!i||typeof i!="string"||(0,t.default)(i,function(l,c){l&&c&&(o[(0,n.camelCase)(l,a)]=c)}),o}return r.default=r,rh=r,rh}var ule=lle();const cle=Ml(ule),AL=jL("end"),Pk=jL("start");function jL(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function fle(e){const t=Pk(e),n=AL(e);if(t&&n)return{start:t,end:n}}function $h(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?N8(e.position):"start"in e||"end"in e?N8(e):"line"in e||"column"in e?vw(e):""}function vw(e){return z8(e&&e.line)+":"+z8(e&&e.column)}function N8(e){return vw(e&&e.start)+"-"+vw(e&&e.end)}function z8(e){return e&&typeof e=="number"?e:1}class ir extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?a.ruleId=r:(a.source=r.slice(0,c),a.ruleId=r.slice(c+1))}if(!a.place&&a.ancestors&&a.ancestors){const c=a.ancestors[a.ancestors.length-1];c&&(a.place=c.position)}const l=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=l?l.line:void 0,this.name=$h(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ir.prototype.file="";ir.prototype.name="";ir.prototype.reason="";ir.prototype.message="";ir.prototype.stack="";ir.prototype.column=void 0;ir.prototype.line=void 0;ir.prototype.ancestors=void 0;ir.prototype.cause=void 0;ir.prototype.fatal=void 0;ir.prototype.place=void 0;ir.prototype.ruleId=void 0;ir.prototype.source=void 0;const Uk={}.hasOwnProperty,hle=new Map,dle=/[A-Z]/g,mle=new Set(["table","tbody","thead","tfoot","tr"]),ple=new Set(["td","th"]),RL="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function _le(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Ele(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=kle(n,t.jsx,t.jsxs)}const 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"?Dd:TL,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=NL(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function NL(e,t,n){if(t.type==="element")return gle(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return yle(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return ble(e,t,n);if(t.type==="mdxjsEsm")return vle(e,t);if(t.type==="root")return xle(e,t,n);if(t.type==="text")return wle(e,t)}function gle(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Dd,e.schema=i),e.ancestors.push(t);const a=LL(e,t.tagName,!1),o=Sle(e,t);let l=Gk(e,t);return mle.has(t.tagName)&&(l=l.filter(function(c){return typeof c=="string"?!P1(c):!0})),zL(e,o,a,t),Bk(o,l),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function yle(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}fd(e,t.position)}function vle(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);fd(e,t.position)}function ble(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Dd,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:LL(e,t.name,!0),o=Tle(e,t),l=Gk(e,t);return zL(e,o,a,t),Bk(o,l),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function xle(e,t,n){const r={};return Bk(r,Gk(e,t)),e.create(t,e.Fragment,r,n)}function wle(e,t){return t.value}function zL(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Bk(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function kle(e,t,n){return r;function r(i,a,o,l){const f=Array.isArray(o.children)?n:t;return l?f(a,o,l):f(a,o)}}function Ele(e,t){return n;function n(r,i,a,o){const l=Array.isArray(a.children),c=Pk(r);return t(i,a,o,l,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function Sle(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Uk.call(t.properties,i)){const a=Cle(e,i,t.properties[i]);if(a){const[o,l]=a;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&ple.has(t.tagName)?r=l:n[o]=l}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Tle(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const l=o.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else fd(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,a=e.evaluater.evaluateExpression(l.expression)}else fd(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Gk(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:hle;for(;++r<t.children.length;){const a=t.children[r];let o;if(e.passKeys){const c=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(c){const f=i.get(c)||0;o=c+"-"+f,i.set(c,f+1)}}const l=NL(e,a,o);l!==void 0&&n.push(l)}return n}function Cle(e,t,n){const r=SL(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?gL(n):CL(n)),r.property==="style"){let i=typeof n=="object"?n:Ale(e,String(n));return e.stylePropertyNameCase==="css"&&(i=jle(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?ele[r.property]||r.property:r.attribute,n]}}function Ale(e,t){try{return cle(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new ir("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=RL+"#cannot-parse-style-attribute",i}}function LL(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,o;for(;++a<i.length;){const l=k8(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};o=o?{type:"MemberExpression",object:o,property:l,computed:!!(a&&l.type==="Literal"),optional:!1}:l}r=o}else r=k8(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Uk.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);fd(e)}function fd(e,t){const n=new ir("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=RL+"#cannot-handle-mdx-estrees-without-createevaluater",n}function jle(e){const t={};let n;for(n in e)Uk.call(e,n)&&(t[Rle(n)]=e[n]);return t}function Rle(e){let t=e.replace(dle,Nle);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Nle(e){return"-"+e.toLowerCase()}const cb={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"]},zle={};function Fk(e,t){const n=zle,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ML(e,r,i)}function ML(e,t,n){if(Lle(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 L8(e.children,t,n)}return Array.isArray(e)?L8(e,t,n):""}function L8(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=ML(e[i],t,n);return r.join("")}function Lle(e){return!!(e&&typeof e=="object")}const M8=document.createElement("i");function Hk(e){const t="&"+e+";";M8.innerHTML=t;const n=M8.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Qr(e,t,n,r){const i=e.length;let a=0,o;if(t<0?t=-t>i?0:i+t: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 _i(e,t){return e.length>0?(Qr(e,e.length,0,t),e):t}const O8={}.hasOwnProperty;function OL(e){const t={};let n=-1;for(;++n<e.length;)Mle(t,e[n]);return t}function Mle(e,t){let n;for(n in t){const i=(O8.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){O8.call(i,o)||(i[o]=[]);const l=a[o];Ole(i[o],Array.isArray(l)?l:l?[l]:[])}}}function Ole(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Qr(e,0,0,r)}function DL(e,t){const 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 Hi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const mr=ws(/[A-Za-z]/),rr=ws(/[\dA-Za-z]/),Dle=ws(/[#-'*+\--9=?A-Z^-~]/);function bg(e){return e!==null&&(e<32||e===127)}const bw=ws(/\d/),qle=ws(/[\dA-Fa-f]/),Ile=ws(/[!-/:-@[-`{-~]/);function Ye(e){return e!==null&&e<-2}function qt(e){return e!==null&&(e<0||e===32)}function dt(e){return e===-2||e===-1||e===32}const U1=ws(new RegExp("\\p{P}|\\p{S}","u")),Nl=ws(/\s/);function ws(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Pc(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let o="";if(a===37&&rr(e.charCodeAt(n+1))&&rr(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){const l=e.charCodeAt(n+1);a<56320&&l>56319&&l<57344?(o=String.fromCharCode(a,l),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function vt(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(c){return dt(c)?(e.enter(n),l(c)):t(c)}function l(c){return dt(c)&&a++<i?(e.consume(c),l):(e.exit(n),t(c))}}const $le={tokenize:Ple};function Ple(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),vt(e,t,"linePrefix")}function i(l){return e.enter("paragraph"),a(l)}function a(l){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,o(l)}function o(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return Ye(l)?(e.consume(l),e.exit("chunkText"),a):(e.consume(l),o)}}const Ule={tokenize:Ble},D8={tokenize:Gle};function Ble(e){const t=this,n=[];let r=0,i,a,o;return l;function l(S){if(r<n.length){const T=n[r];return t.containerState=T[1],e.attempt(T[0].continuation,c,f)(S)}return f(S)}function c(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&C();const T=t.events.length;let z=T,A;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){A=t.events[z][1].end;break}w(r);let L=T;for(;L<t.events.length;)t.events[L][1].end={...A},L++;return Qr(t.events,z+1,0,t.events.slice(T)),t.events.length=L,f(S)}return l(S)}function f(S){if(r===n.length){if(!i)return p(S);if(i.currentConstruct&&i.currentConstruct.concrete)return y(S);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(D8,d,m)(S)}function d(S){return i&&C(),w(r),p(S)}function m(S){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,y(S)}function p(S){return t.containerState={},e.attempt(D8,g,y)(S)}function g(S){return r++,n.push([t.currentConstruct,t.containerState]),p(S)}function y(S){if(S===null){i&&C(),w(0),e.consume(S);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),x(S)}function x(S){if(S===null){k(e.exit("chunkFlow"),!0),w(0),e.consume(S);return}return Ye(S)?(e.consume(S),k(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(S),x)}function k(S,T){const z=t.sliceStream(S);if(T&&z.push(null),S.previous=a,a&&(a.next=S),a=S,i.defineSkip(S.start),i.write(z),t.parser.lazy[S.start.line]){let A=i.events.length;for(;A--;)if(i.events[A][1].start.offset<o&&(!i.events[A][1].end||i.events[A][1].end.offset>o))return;const L=t.events.length;let G=L,H,q;for(;G--;)if(t.events[G][0]==="exit"&&t.events[G][1].type==="chunkFlow"){if(H){q=t.events[G][1].end;break}H=!0}for(w(r),A=L;A<t.events.length;)t.events[A][1].end={...q},A++;Qr(t.events,G+1,0,t.events.slice(L)),t.events.length=A}}function w(S){let T=n.length;for(;T-- >S;){const z=n[T];t.containerState=z[1],z[0].exit.call(t,e)}n.length=S}function C(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Gle(e,t,n){return vt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Cc(e){if(e===null||qt(e)||Nl(e))return 1;if(U1(e))return 2}function B1(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const xw={name:"attention",resolveAll:Fle,tokenize:Hle};function Fle(e,t){let n=-1,r,i,a,o,l,c,f,d;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;const m={...e[r][1].end},p={...e[n][1].start};q8(m,-c),q8(p,c),o={type:c>1?"strongSequence":"emphasisSequence",start:m,end:{...e[r][1].end}},l={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},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:{...l.end}},e[r][1].end={...o.start},e[n][1].start={...l.end},f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=_i(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=_i(f,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),f=_i(f,B1(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),f=_i(f,[["exit",a,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,f=_i(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Qr(e,r-1,n-r+3,f),n=r+f.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Hle(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Cc(r);let a;return o;function o(c){return a=c,e.enter("attentionSequence"),l(c)}function l(c){if(c===a)return e.consume(c),l;const f=e.exit("attentionSequence"),d=Cc(c),m=!d||d===2&&i||n.includes(c),p=!i||i===2&&d||n.includes(r);return f._open=!!(a===42?m:m&&(i||!p)),f._close=!!(a===42?p:p&&(d||!m)),t(c)}}function q8(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Vle={name:"autolink",tokenize:Xle};function Xle(e,t,n){let r=0;return i;function i(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(g){return mr(g)?(e.consume(g),o):g===64?n(g):f(g)}function o(g){return g===43||g===45||g===46||rr(g)?(r=1,l(g)):f(g)}function l(g){return g===58?(e.consume(g),r=0,c):(g===43||g===45||g===46||rr(g))&&r++<32?(e.consume(g),l):(r=0,f(g))}function c(g){return g===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):g===null||g===32||g===60||bg(g)?n(g):(e.consume(g),c)}function f(g){return g===64?(e.consume(g),d):Dle(g)?(e.consume(g),f):n(g)}function d(g){return rr(g)?m(g):n(g)}function m(g){return g===46?(e.consume(g),r=0,d):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):p(g)}function p(g){if((g===45||rr(g))&&r++<63){const y=g===45?p:m;return e.consume(g),y}return n(g)}}const qd={partial:!0,tokenize:Yle};function Yle(e,t,n){return r;function r(a){return dt(a)?vt(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||Ye(a)?t(a):n(a)}}const qL={continuation:{tokenize:Kle},exit:Zle,name:"blockQuote",tokenize:Wle};function Wle(e,t,n){const r=this;return i;function i(o){if(o===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return n(o)}function a(o){return dt(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function Kle(e,t,n){const r=this;return i;function i(o){return dt(o)?vt(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(qL,t,n)(o)}}function Zle(e){e.exit("blockQuote")}const IL={name:"characterEscape",tokenize:Qle};function Qle(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return Ile(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const $L={name:"characterReference",tokenize:Jle};function Jle(e,t,n){const r=this;let i=0,a,o;return l;function l(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),c}function c(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),a=31,o=rr,d(m))}function f(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=qle,d):(e.enter("characterReferenceValue"),a=7,o=bw,d(m))}function d(m){if(m===59&&i){const p=e.exit("characterReferenceValue");return o===rr&&!Hk(r.sliceSerialize(p))?n(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(m)&&i++<a?(e.consume(m),d):n(m)}}const I8={partial:!0,tokenize:tue},$8={concrete:!0,name:"codeFenced",tokenize:eue};function eue(e,t,n){const r=this,i={partial:!0,tokenize:z};let a=0,o=0,l;return c;function c(A){return f(A)}function f(A){const L=r.events[r.events.length-1];return a=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0,l=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(A)}function d(A){return A===l?(o++,e.consume(A),d):o<3?n(A):(e.exit("codeFencedFenceSequence"),dt(A)?vt(e,m,"whitespace")(A):m(A))}function m(A){return A===null||Ye(A)?(e.exit("codeFencedFence"),r.interrupt?t(A):e.check(I8,x,T)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(A))}function p(A){return A===null||Ye(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(A)):dt(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),vt(e,g,"whitespace")(A)):A===96&&A===l?n(A):(e.consume(A),p)}function g(A){return A===null||Ye(A)?m(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(A))}function y(A){return A===null||Ye(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(A)):A===96&&A===l?n(A):(e.consume(A),y)}function x(A){return e.attempt(i,T,k)(A)}function k(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),w}function w(A){return a>0&&dt(A)?vt(e,C,"linePrefix",a+1)(A):C(A)}function C(A){return A===null||Ye(A)?e.check(I8,x,T)(A):(e.enter("codeFlowValue"),S(A))}function S(A){return A===null||Ye(A)?(e.exit("codeFlowValue"),C(A)):(e.consume(A),S)}function T(A){return e.exit("codeFenced"),t(A)}function z(A,L,G){let H=0;return q;function q(D){return A.enter("lineEnding"),A.consume(D),A.exit("lineEnding"),V}function V(D){return A.enter("codeFencedFence"),dt(D)?vt(A,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):W(D)}function W(D){return D===l?(A.enter("codeFencedFenceSequence"),I(D)):G(D)}function I(D){return D===l?(H++,A.consume(D),I):H>=o?(A.exit("codeFencedFenceSequence"),dt(D)?vt(A,B,"whitespace")(D):B(D)):G(D)}function B(D){return D===null||Ye(D)?(A.exit("codeFencedFence"),L(D)):G(D)}}}function tue(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const fb={name:"codeIndented",tokenize:rue},nue={partial:!0,tokenize:iue};function rue(e,t,n){const r=this;return i;function i(f){return e.enter("codeIndented"),vt(e,a,"linePrefix",5)(f)}function a(f){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(f):n(f)}function o(f){return f===null?c(f):Ye(f)?e.attempt(nue,o,c)(f):(e.enter("codeFlowValue"),l(f))}function l(f){return f===null||Ye(f)?(e.exit("codeFlowValue"),o(f)):(e.consume(f),l)}function c(f){return e.exit("codeIndented"),t(f)}}function iue(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Ye(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):vt(e,a,"linePrefix",5)(o)}function a(o){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):Ye(o)?i(o):n(o)}}const aue={name:"codeText",previous:sue,resolve:oue,tokenize:lue};function oue(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 sue(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function lue(e,t,n){let r=0,i,a;return o;function o(m){return e.enter("codeText"),e.enter("codeTextSequence"),l(m)}function l(m){return m===96?(e.consume(m),r++,l):(e.exit("codeTextSequence"),c(m))}function c(m){return m===null?n(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),c):m===96?(a=e.enter("codeTextSequence"),i=0,d(m)):Ye(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),c):(e.enter("codeTextData"),f(m))}function f(m){return m===null||m===32||m===96||Ye(m)?(e.exit("codeTextData"),c(m)):(e.consume(m),f)}function d(m){return m===96?(e.consume(m),i++,d):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(m)):(a.type="codeTextData",f(m))}}class uue{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&ih(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ih(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ih(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ih(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ih(this.left,n.reverse())}}}function ih(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 PL(e){const t={};let n=-1,r,i,a,o,l,c,f;const d=new uue(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.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,cue(d,n)),n=t[n],f=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=d.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(d.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={...d.get(i)[1].start},l=d.slice(i,n),l.unshift(r),d.splice(i,n-i+1,l))}}return Qr(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!f}function cue(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const l=o.events,c=[],f={};let d,m,p=-1,g=n,y=0,x=0;const k=[x];for(;g;){for(;e.get(++i)[1]!==g;);a.push(i),g._tokenizer||(d=r.sliceStream(g),g.next||d.push(null),m&&o.defineSkip(g.start),g._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),g._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),m=g,g=g.next}for(g=n;++p<l.length;)l[p][0]==="exit"&&l[p-1][0]==="enter"&&l[p][1].type===l[p-1][1].type&&l[p][1].start.line!==l[p][1].end.line&&(x=p+1,k.push(x),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(o.events=[],g?(g._tokenizer=void 0,g.previous=void 0):k.pop(),p=k.length;p--;){const w=l.slice(k[p],k[p+1]),C=a.pop();c.push([C,C+w.length-1]),e.splice(C,2,w)}for(c.reverse(),p=-1;++p<c.length;)f[y+c[p][0]]=y+c[p][1],y+=c[p][1]-c[p][0]-1;return f}const fue={resolve:due,tokenize:mue},hue={partial:!0,tokenize:pue};function due(e){return PL(e),e}function mue(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?a(l):Ye(l)?e.check(hue,o,a)(l):(e.consume(l),i)}function a(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function o(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function pue(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),vt(e,a,"linePrefix")}function a(o){if(o===null||Ye(o))return n(o);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function UL(e,t,n,r,i,a,o,l,c){const f=c||Number.POSITIVE_INFINITY;let d=0;return m;function m(w){return w===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(w),e.exit(a),p):w===null||w===32||w===41||bg(w)?n(w):(e.enter(r),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),x(w))}function p(w){return w===62?(e.enter(a),e.consume(w),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===62?(e.exit("chunkString"),e.exit(l),p(w)):w===null||w===60||Ye(w)?n(w):(e.consume(w),w===92?y:g)}function y(w){return w===60||w===62||w===92?(e.consume(w),g):g(w)}function x(w){return!d&&(w===null||w===41||qt(w))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(r),t(w)):d<f&&w===40?(e.consume(w),d++,x):w===41?(e.consume(w),d--,x):w===null||w===32||w===40||bg(w)?n(w):(e.consume(w),w===92?k:x)}function k(w){return w===40||w===41||w===92?(e.consume(w),x):x(w)}}function BL(e,t,n,r,i,a){const o=this;let l=0,c;return f;function f(g){return e.enter(r),e.enter(i),e.consume(g),e.exit(i),e.enter(a),d}function d(g){return l>999||g===null||g===91||g===93&&!c||g===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(g):g===93?(e.exit(a),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):Ye(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),m(g))}function m(g){return g===null||g===91||g===93||Ye(g)||l++>999?(e.exit("chunkString"),d(g)):(e.consume(g),c||(c=!dt(g)),g===92?p:m)}function p(g){return g===91||g===92||g===93?(e.consume(g),l++,m):m(g)}}function GL(e,t,n,r,i,a){let o;return l;function l(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,c):n(p)}function c(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),f(p))}function f(p){return p===o?(e.exit(a),c(o)):p===null?n(p):Ye(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),vt(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===o||p===null||Ye(p)?(e.exit("chunkString"),f(p)):(e.consume(p),p===92?m:d)}function m(p){return p===o||p===92?(e.consume(p),d):d(p)}}function Ph(e,t){let n;return r;function r(i){return Ye(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):dt(i)?vt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const _ue={name:"definition",tokenize:yue},gue={partial:!0,tokenize:vue};function yue(e,t,n){const r=this;let i;return a;function a(g){return e.enter("definition"),o(g)}function o(g){return BL.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function l(g){return i=Hi(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),c):n(g)}function c(g){return qt(g)?Ph(e,f)(g):f(g)}function f(g){return UL(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function d(g){return e.attempt(gue,m,m)(g)}function m(g){return dt(g)?vt(e,p,"whitespace")(g):p(g)}function p(g){return g===null||Ye(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function vue(e,t,n){return r;function r(l){return qt(l)?Ph(e,i)(l):n(l)}function i(l){return GL(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function a(l){return dt(l)?vt(e,o,"whitespace")(l):o(l)}function o(l){return l===null||Ye(l)?t(l):n(l)}}const bue={name:"hardBreakEscape",tokenize:xue};function xue(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ye(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const wue={name:"headingAtx",resolve:kue,tokenize:Eue};function kue(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"},Qr(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function Eue(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(e.consume(d),o):d===null||qt(d)?(e.exit("atxHeadingSequence"),l(d)):n(d)}function l(d){return d===35?(e.enter("atxHeadingSequence"),c(d)):d===null||Ye(d)?(e.exit("atxHeading"),t(d)):dt(d)?vt(e,l,"whitespace")(d):(e.enter("atxHeadingText"),f(d))}function c(d){return d===35?(e.consume(d),c):(e.exit("atxHeadingSequence"),l(d))}function f(d){return d===null||d===35||qt(d)?(e.exit("atxHeadingText"),l(d)):(e.consume(d),f)}}const Sue=["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"],P8=["pre","script","style","textarea"],Tue={concrete:!0,name:"htmlFlow",resolveTo:jue,tokenize:Rue},Cue={partial:!0,tokenize:zue},Aue={partial:!0,tokenize:Nue};function jue(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 Rue(e,t,n){const r=this;let i,a,o,l,c;return f;function f($){return d($)}function d($){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume($),m}function m($){return $===33?(e.consume($),p):$===47?(e.consume($),a=!0,x):$===63?(e.consume($),i=3,r.interrupt?t:O):mr($)?(e.consume($),o=String.fromCharCode($),k):n($)}function p($){return $===45?(e.consume($),i=2,g):$===91?(e.consume($),i=5,l=0,y):mr($)?(e.consume($),i=4,r.interrupt?t:O):n($)}function g($){return $===45?(e.consume($),r.interrupt?t:O):n($)}function y($){const ie="CDATA[";return $===ie.charCodeAt(l++)?(e.consume($),l===ie.length?r.interrupt?t:W:y):n($)}function x($){return mr($)?(e.consume($),o=String.fromCharCode($),k):n($)}function k($){if($===null||$===47||$===62||qt($)){const ie=$===47,ue=o.toLowerCase();return!ie&&!a&&P8.includes(ue)?(i=1,r.interrupt?t($):W($)):Sue.includes(o.toLowerCase())?(i=6,ie?(e.consume($),w):r.interrupt?t($):W($)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n($):a?C($):S($))}return $===45||rr($)?(e.consume($),o+=String.fromCharCode($),k):n($)}function w($){return $===62?(e.consume($),r.interrupt?t:W):n($)}function C($){return dt($)?(e.consume($),C):q($)}function S($){return $===47?(e.consume($),q):$===58||$===95||mr($)?(e.consume($),T):dt($)?(e.consume($),S):q($)}function T($){return $===45||$===46||$===58||$===95||rr($)?(e.consume($),T):z($)}function z($){return $===61?(e.consume($),A):dt($)?(e.consume($),z):S($)}function A($){return $===null||$===60||$===61||$===62||$===96?n($):$===34||$===39?(e.consume($),c=$,L):dt($)?(e.consume($),A):G($)}function L($){return $===c?(e.consume($),c=null,H):$===null||Ye($)?n($):(e.consume($),L)}function G($){return $===null||$===34||$===39||$===47||$===60||$===61||$===62||$===96||qt($)?z($):(e.consume($),G)}function H($){return $===47||$===62||dt($)?S($):n($)}function q($){return $===62?(e.consume($),V):n($)}function V($){return $===null||Ye($)?W($):dt($)?(e.consume($),V):n($)}function W($){return $===45&&i===2?(e.consume($),j):$===60&&i===1?(e.consume($),N):$===62&&i===4?(e.consume($),U):$===63&&i===3?(e.consume($),O):$===93&&i===5?(e.consume($),Z):Ye($)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Cue,K,I)($)):$===null||Ye($)?(e.exit("htmlFlowData"),I($)):(e.consume($),W)}function I($){return e.check(Aue,B,K)($)}function B($){return e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),D}function D($){return $===null||Ye($)?I($):(e.enter("htmlFlowData"),W($))}function j($){return $===45?(e.consume($),O):W($)}function N($){return $===47?(e.consume($),o="",F):W($)}function F($){if($===62){const ie=o.toLowerCase();return P8.includes(ie)?(e.consume($),U):W($)}return mr($)&&o.length<8?(e.consume($),o+=String.fromCharCode($),F):W($)}function Z($){return $===93?(e.consume($),O):W($)}function O($){return $===62?(e.consume($),U):$===45&&i===2?(e.consume($),O):W($)}function U($){return $===null||Ye($)?(e.exit("htmlFlowData"),K($)):(e.consume($),U)}function K($){return e.exit("htmlFlow"),t($)}}function Nue(e,t,n){const r=this;return i;function i(o){return Ye(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function zue(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(qd,t,n)}}const Lue={name:"htmlText",tokenize:Mue};function Mue(e,t,n){const r=this;let i,a,o;return l;function l(O){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(O),c}function c(O){return O===33?(e.consume(O),f):O===47?(e.consume(O),z):O===63?(e.consume(O),S):mr(O)?(e.consume(O),G):n(O)}function f(O){return O===45?(e.consume(O),d):O===91?(e.consume(O),a=0,y):mr(O)?(e.consume(O),C):n(O)}function d(O){return O===45?(e.consume(O),g):n(O)}function m(O){return O===null?n(O):O===45?(e.consume(O),p):Ye(O)?(o=m,N(O)):(e.consume(O),m)}function p(O){return O===45?(e.consume(O),g):m(O)}function g(O){return O===62?j(O):O===45?p(O):m(O)}function y(O){const U="CDATA[";return O===U.charCodeAt(a++)?(e.consume(O),a===U.length?x:y):n(O)}function x(O){return O===null?n(O):O===93?(e.consume(O),k):Ye(O)?(o=x,N(O)):(e.consume(O),x)}function k(O){return O===93?(e.consume(O),w):x(O)}function w(O){return O===62?j(O):O===93?(e.consume(O),w):x(O)}function C(O){return O===null||O===62?j(O):Ye(O)?(o=C,N(O)):(e.consume(O),C)}function S(O){return O===null?n(O):O===63?(e.consume(O),T):Ye(O)?(o=S,N(O)):(e.consume(O),S)}function T(O){return O===62?j(O):S(O)}function z(O){return mr(O)?(e.consume(O),A):n(O)}function A(O){return O===45||rr(O)?(e.consume(O),A):L(O)}function L(O){return Ye(O)?(o=L,N(O)):dt(O)?(e.consume(O),L):j(O)}function G(O){return O===45||rr(O)?(e.consume(O),G):O===47||O===62||qt(O)?H(O):n(O)}function H(O){return O===47?(e.consume(O),j):O===58||O===95||mr(O)?(e.consume(O),q):Ye(O)?(o=H,N(O)):dt(O)?(e.consume(O),H):j(O)}function q(O){return O===45||O===46||O===58||O===95||rr(O)?(e.consume(O),q):V(O)}function V(O){return O===61?(e.consume(O),W):Ye(O)?(o=V,N(O)):dt(O)?(e.consume(O),V):H(O)}function W(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),i=O,I):Ye(O)?(o=W,N(O)):dt(O)?(e.consume(O),W):(e.consume(O),B)}function I(O){return O===i?(e.consume(O),i=void 0,D):O===null?n(O):Ye(O)?(o=I,N(O)):(e.consume(O),I)}function B(O){return O===null||O===34||O===39||O===60||O===61||O===96?n(O):O===47||O===62||qt(O)?H(O):(e.consume(O),B)}function D(O){return O===47||O===62||qt(O)?H(O):n(O)}function j(O){return O===62?(e.consume(O),e.exit("htmlTextData"),e.exit("htmlText"),t):n(O)}function N(O){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),F}function F(O){return dt(O)?vt(e,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):Z(O)}function Z(O){return e.enter("htmlTextData"),o(O)}}const Vk={name:"labelEnd",resolveAll:Iue,resolveTo:$ue,tokenize:Pue},Oue={tokenize:Uue},Due={tokenize:Bue},que={tokenize:Gue};function Iue(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Qr(e,0,e.length,n),e}function $ue(e,t){let n=e.length,r=0,i,a,o,l;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);const c={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[a][1].start},end:{...e[o][1].end}},d={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return l=[["enter",c,t],["enter",f,t]],l=_i(l,e.slice(a+1,a+r+3)),l=_i(l,[["enter",d,t]]),l=_i(l,B1(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),l=_i(l,[["exit",d,t],e[o-2],e[o-1],["exit",f,t]]),l=_i(l,e.slice(o+1)),l=_i(l,[["exit",c,t]]),Qr(e,a,e.length,l),e}function Pue(e,t,n){const r=this;let 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 l;function l(p){return a?a._inactive?m(p):(o=r.parser.defined.includes(Hi(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),c):n(p)}function c(p){return p===40?e.attempt(Oue,d,o?d:m)(p):p===91?e.attempt(Due,d,o?f:m)(p):o?d(p):m(p)}function f(p){return e.attempt(que,d,m)(p)}function d(p){return t(p)}function m(p){return a._balanced=!0,n(p)}}function Uue(e,t,n){return r;function r(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),i}function i(m){return qt(m)?Ph(e,a)(m):a(m)}function a(m){return m===41?d(m):UL(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function o(m){return qt(m)?Ph(e,c)(m):d(m)}function l(m){return n(m)}function c(m){return m===34||m===39||m===40?GL(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):d(m)}function f(m){return qt(m)?Ph(e,d)(m):d(m)}function d(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),t):n(m)}}function Bue(e,t,n){const r=this;return i;function i(l){return BL.call(r,e,a,o,"reference","referenceMarker","referenceString")(l)}function a(l){return r.parser.defined.includes(Hi(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function o(l){return n(l)}}function Gue(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const Fue={name:"labelStartImage",resolveAll:Vk.resolveAll,tokenize:Hue};function Hue(e,t,n){const r=this;return i;function i(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),a}function a(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),o):n(l)}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const Vue={name:"labelStartLink",resolveAll:Vk.resolveAll,tokenize:Xue};function Xue(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const hb={name:"lineEnding",tokenize:Yue};function Yue(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),vt(e,t,"linePrefix")}}const b_={name:"thematicBreak",tokenize:Wue};function Wue(e,t,n){let r=0,i;return a;function a(f){return e.enter("thematicBreak"),o(f)}function o(f){return i=f,l(f)}function l(f){return f===i?(e.enter("thematicBreakSequence"),c(f)):r>=3&&(f===null||Ye(f))?(e.exit("thematicBreak"),t(f)):n(f)}function c(f){return f===i?(e.consume(f),r++,c):(e.exit("thematicBreakSequence"),dt(f)?vt(e,l,"whitespace")(f):l(f))}}const Rr={continuation:{tokenize:Jue},exit:tce,name:"list",tokenize:Que},Kue={partial:!0,tokenize:nce},Zue={partial:!0,tokenize:ece};function Que(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return l;function l(g){const y=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:bw(g)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(b_,n,f)(g):f(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(g)}return n(g)}function c(g){return bw(g)&&++o<10?(e.consume(g),c):(!r.interrupt||o<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),f(g)):n(g)}function f(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(qd,r.interrupt?n:d,e.attempt(Kue,p,m))}function d(g){return r.containerState.initialBlankLine=!0,a++,p(g)}function m(g){return dt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),p):n(g)}function p(g){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function Jue(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(qd,i,a);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,vt(e,t,"listItemIndent",r.containerState.size+1)(l)}function a(l){return r.containerState.furtherBlankLines||!dt(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Zue,t,o)(l))}function o(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,vt(e,e.attempt(Rr,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function ece(e,t,n){const r=this;return vt(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function tce(e){e.exit(this.containerState.type)}function nce(e,t,n){const r=this;return vt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=r.events[r.events.length-1];return!dt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const U8={name:"setextUnderline",resolveTo:rce,tokenize:ice};function rce(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);const 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 ice(e,t,n){const r=this;let i;return a;function a(f){let d=r.events.length,m;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){m=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||m)?(e.enter("setextHeadingLine"),i=f,o(f)):n(f)}function o(f){return e.enter("setextHeadingLineSequence"),l(f)}function l(f){return f===i?(e.consume(f),l):(e.exit("setextHeadingLineSequence"),dt(f)?vt(e,c,"lineSuffix")(f):c(f))}function c(f){return f===null||Ye(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}const ace={tokenize:oce};function oce(e){const t=this,n=e.attempt(qd,r,e.attempt(this.parser.constructs.flowInitial,i,vt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(fue,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const sce={resolveAll:HL()},lce=FL("string"),uce=FL("text");function FL(e){return{resolveAll:HL(e==="text"?cce:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,l);return o;function o(d){return f(d)?a(d):l(d)}function l(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),c}function c(d){return f(d)?(n.exit("data"),a(d)):(n.consume(d),c)}function f(d){if(d===null)return!0;const m=i[d];let p=-1;if(m)for(;++p<m.length;){const g=m[p];if(!g.previous||g.previous.call(r,r.previous))return!0}return!1}}}function HL(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function cce(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let a=i.length,o=-1,l=0,c;for(;a--;){const f=i[a];if(typeof f=="string"){for(o=f.length;f.charCodeAt(o-1)===32;)l++,o--;if(o)break;o=-1}else if(f===-2)c=!0,l++;else if(f!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const f={type:n===e.length||c||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...f.start},r.start.offset===r.end.offset?Object.assign(r,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}const fce={42:Rr,43:Rr,45:Rr,48:Rr,49:Rr,50:Rr,51:Rr,52:Rr,53:Rr,54:Rr,55:Rr,56:Rr,57:Rr,62:qL},hce={91:_ue},dce={[-2]:fb,[-1]:fb,32:fb},mce={35:wue,42:b_,45:[U8,b_],60:Tue,61:U8,95:b_,96:$8,126:$8},pce={38:$L,92:IL},_ce={[-5]:hb,[-4]:hb,[-3]:hb,33:Fue,38:$L,42:xw,60:[Vle,Lue],91:Vue,92:[bue,IL],93:Vk,95:xw,96:aue},gce={null:[xw,sce]},yce={null:[42,95]},vce={null:[]},bce=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:yce,contentInitial:hce,disable:vce,document:fce,flow:mce,flowInitial:dce,insideSpan:gce,string:pce,text:_ce},Symbol.toStringTag,{value:"Module"}));function xce(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let o=[],l=[];const c={attempt:L(z),check:L(A),consume:C,enter:S,exit:T,interrupt:L(A,{interrupt:!0})},f={code:null,containerState:{},defineSkip:x,events:[],now:y,parser:e,previous:null,sliceSerialize:p,sliceStream:g,write:m};let d=t.tokenize.call(f,c);return t.resolveAll&&a.push(t),f;function m(V){return o=_i(o,V),k(),o[o.length-1]!==null?[]:(G(t,0),f.events=B1(a,f.events,f),f.events)}function p(V,W){return kce(g(V),W)}function g(V){return wce(o,V)}function y(){const{_bufferIndex:V,_index:W,line:I,column:B,offset:D}=r;return{_bufferIndex:V,_index:W,line:I,column:B,offset:D}}function x(V){i[V.line]=V.column,q()}function k(){let V;for(;r._index<o.length;){const W=o[r._index];if(typeof W=="string")for(V=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===V&&r._bufferIndex<W.length;)w(W.charCodeAt(r._bufferIndex));else w(W)}}function w(V){d=d(V)}function C(V){Ye(V)?(r.line++,r.column=1,r.offset+=V===-3?2:1,q()):V!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),f.previous=V}function S(V,W){const I=W||{};return I.type=V,I.start=y(),f.events.push(["enter",I,f]),l.push(I),I}function T(V){const W=l.pop();return W.end=y(),f.events.push(["exit",W,f]),W}function z(V,W){G(V,W.from)}function A(V,W){W.restore()}function L(V,W){return I;function I(B,D,j){let N,F,Z,O;return Array.isArray(B)?K(B):"tokenize"in B?K([B]):U(B);function U(xe){return we;function we(Pe){const _e=Pe!==null&&xe[Pe],Ae=Pe!==null&&xe.null,je=[...Array.isArray(_e)?_e:_e?[_e]:[],...Array.isArray(Ae)?Ae:Ae?[Ae]:[]];return K(je)(Pe)}}function K(xe){return N=xe,F=0,xe.length===0?j:$(xe[F])}function $(xe){return we;function we(Pe){return O=H(),Z=xe,xe.partial||(f.currentConstruct=xe),xe.name&&f.parser.constructs.disable.null.includes(xe.name)?ue():xe.tokenize.call(W?Object.assign(Object.create(f),W):f,c,ie,ue)(Pe)}}function ie(xe){return V(Z,O),D}function ue(xe){return O.restore(),++F<N.length?$(N[F]):j}}}function G(V,W){V.resolveAll&&!a.includes(V)&&a.push(V),V.resolve&&Qr(f.events,W,f.events.length-W,V.resolve(f.events.slice(W),f)),V.resolveTo&&(f.events=V.resolveTo(f.events,f))}function H(){const V=y(),W=f.previous,I=f.currentConstruct,B=f.events.length,D=Array.from(l);return{from:B,restore:j};function j(){r=V,f.previous=W,f.currentConstruct=I,f.events.length=B,l=D,q()}}function q(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function wce(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function kce(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
|
|
56
|
+
`;break}case-3:{o=`\r
|
|
57
|
+
`;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 Ece(e){const r={constructs:OL([bce,...(e||{}).extensions||[]]),content:i($le),defined:[],document:i(Ule),flow:i(ace),lazy:{},string:i(lce),text:i(uce)};return r;function i(a){return o;function o(l){return xce(r,a,l)}}}function Sce(e){for(;!PL(e););return e}const B8=/[\0\t\n\r]/g;function Tce(){let e=1,t="",n=!0,r;return i;function i(a,o,l){const c=[];let f,d,m,p,g;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),m=0,t="",n&&(a.charCodeAt(0)===65279&&m++,n=void 0);m<a.length;){if(B8.lastIndex=m,f=B8.exec(a),p=f&&f.index!==void 0?f.index:a.length,g=a.charCodeAt(p),!f){t=a.slice(m);break}if(g===10&&m===p&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),m<p&&(c.push(a.slice(m,p)),e+=p-m),g){case 0:{c.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,c.push(-2);e++<d;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}m=p+1}return l&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}const Cce=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ace(e){return e.replace(Cce,jce)}function jce(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return DL(n.slice(a?2:1),a?16:10)}return Hk(n)||e}const VL={}.hasOwnProperty;function Rce(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Nce(n)(Sce(Ece(n).document().write(Tce()(e,t,!0))))}function Nce(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Xt),autolinkProtocol:H,autolinkEmail:H,atxHeading:a(Ne),blockQuote:a(Ae),characterEscape:H,characterReference:H,codeFenced:a(je),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(je,o),codeText:a(he,o),codeTextData:H,data:H,codeFlowValue:H,definition:a(tt),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(Ee),hardBreakEscape:a(ce),hardBreakTrailing:a(ce),htmlFlow:a(qe,o),htmlFlowData:H,htmlText:a(qe,o),htmlTextData:H,image:a(mt),label:o,link:a(Xt),listItem:a(un),listItemValue:p,listOrdered:a(Ft,m),listUnordered:a(Ft),paragraph:a(ti),reference:$,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(Ne),strong:a(ni),thematicBreak:a(Wi)},exit:{atxHeading:c(),atxHeadingSequence:z,autolink:c(),autolinkEmail:_e,autolinkProtocol:Pe,blockQuote:c(),characterEscapeValue:q,characterReferenceMarkerHexadecimal:ue,characterReferenceMarkerNumeric:ue,characterReferenceValue:xe,characterReference:we,codeFenced:c(k),codeFencedFence:x,codeFencedFenceInfo:g,codeFencedFenceMeta:y,codeFlowValue:q,codeIndented:c(w),codeText:c(D),codeTextData:q,data:q,definition:c(),definitionDestinationString:T,definitionLabelString:C,definitionTitleString:S,emphasis:c(),hardBreakEscape:c(W),hardBreakTrailing:c(W),htmlFlow:c(I),htmlFlowData:q,htmlText:c(B),htmlTextData:q,image:c(N),label:Z,labelText:F,lineEnding:V,link:c(j),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:ie,resourceDestinationString:O,resourceTitleString:U,resource:K,setextHeading:c(G),setextHeadingLineSequence:L,setextHeadingText:A,strong:c(),thematicBreak:c()}};XL(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(de){let Se={type:"root",children:[]};const Be={stack:[Se],tokenStack:[],config:t,enter:l,exit:f,buffer:o,resume:d,data:n},Ze=[];let ct=-1;for(;++ct<de.length;)if(de[ct][1].type==="listOrdered"||de[ct][1].type==="listUnordered")if(de[ct][0]==="enter")Ze.push(ct);else{const Wt=Ze.pop();ct=i(de,Wt,ct)}for(ct=-1;++ct<de.length;){const Wt=t[de[ct][0]];VL.call(Wt,de[ct][1].type)&&Wt[de[ct][1].type].call(Object.assign({sliceSerialize:de[ct][2].sliceSerialize},Be),de[ct][1])}if(Be.tokenStack.length>0){const Wt=Be.tokenStack[Be.tokenStack.length-1];(Wt[1]||G8).call(Be,void 0,Wt[0])}for(Se.position={start:Ko(de.length>0?de[0][1].start:{line:1,column:1,offset:0}),end:Ko(de.length>0?de[de.length-2][1].end:{line:1,column:1,offset:0})},ct=-1;++ct<t.transforms.length;)Se=t.transforms[ct](Se)||Se;return Se}function i(de,Se,Be){let Ze=Se-1,ct=-1,Wt=!1,Kt,Dn,Ht,Hn;for(;++Ze<=Be;){const St=de[Ze];switch(St[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{St[0]==="enter"?ct++:ct--,Hn=void 0;break}case"lineEndingBlank":{St[0]==="enter"&&(Kt&&!Hn&&!ct&&!Ht&&(Ht=Ze),Hn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Hn=void 0}if(!ct&&St[0]==="enter"&&St[1].type==="listItemPrefix"||ct===-1&&St[0]==="exit"&&(St[1].type==="listUnordered"||St[1].type==="listOrdered")){if(Kt){let Ki=Ze;for(Dn=void 0;Ki--;){const Or=de[Ki];if(Or[1].type==="lineEnding"||Or[1].type==="lineEndingBlank"){if(Or[0]==="exit")continue;Dn&&(de[Dn][1].type="lineEndingBlank",Wt=!0),Or[1].type="lineEnding",Dn=Ki}else if(!(Or[1].type==="linePrefix"||Or[1].type==="blockQuotePrefix"||Or[1].type==="blockQuotePrefixWhitespace"||Or[1].type==="blockQuoteMarker"||Or[1].type==="listItemIndent"))break}Ht&&(!Dn||Ht<Dn)&&(Kt._spread=!0),Kt.end=Object.assign({},Dn?de[Dn][1].start:St[1].end),de.splice(Dn||Ze,0,["exit",Kt,St[2]]),Ze++,Be++}if(St[1].type==="listItemPrefix"){const Ki={type:"listItem",_spread:!1,start:Object.assign({},St[1].start),end:void 0};Kt=Ki,de.splice(Ze,0,["enter",Ki,St[2]]),Ze++,Be++,Ht=void 0,Hn=!0}}}return de[Se][1]._spread=Wt,Be}function a(de,Se){return Be;function Be(Ze){l.call(this,de(Ze),Ze),Se&&Se.call(this,Ze)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(de,Se,Be){this.stack[this.stack.length-1].children.push(de),this.stack.push(de),this.tokenStack.push([Se,Be||void 0]),de.position={start:Ko(Se.start),end:void 0}}function c(de){return Se;function Se(Be){de&&de.call(this,Be),f.call(this,Be)}}function f(de,Se){const Be=this.stack.pop(),Ze=this.tokenStack.pop();if(Ze)Ze[0].type!==de.type&&(Se?Se.call(this,de,Ze[0]):(Ze[1]||G8).call(this,de,Ze[0]));else throw new Error("Cannot close `"+de.type+"` ("+$h({start:de.start,end:de.end})+"): it’s not open");Be.position.end=Ko(de.end)}function d(){return Fk(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function p(de){if(this.data.expectingFirstListItemValue){const Se=this.stack[this.stack.length-2];Se.start=Number.parseInt(this.sliceSerialize(de),10),this.data.expectingFirstListItemValue=void 0}}function g(){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.lang=de}function y(){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.meta=de}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.value=de.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.value=de.replace(/(\r?\n|\r)$/g,"")}function C(de){const Se=this.resume(),Be=this.stack[this.stack.length-1];Be.label=Se,Be.identifier=Hi(this.sliceSerialize(de)).toLowerCase()}function S(){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.title=de}function T(){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.url=de}function z(de){const Se=this.stack[this.stack.length-1];if(!Se.depth){const Be=this.sliceSerialize(de).length;Se.depth=Be}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function L(de){const Se=this.stack[this.stack.length-1];Se.depth=this.sliceSerialize(de).codePointAt(0)===61?1:2}function G(){this.data.setextHeadingSlurpLineEnding=void 0}function H(de){const Be=this.stack[this.stack.length-1].children;let Ze=Be[Be.length-1];(!Ze||Ze.type!=="text")&&(Ze=Yt(),Ze.position={start:Ko(de.start),end:void 0},Be.push(Ze)),this.stack.push(Ze)}function q(de){const Se=this.stack.pop();Se.value+=this.sliceSerialize(de),Se.position.end=Ko(de.end)}function V(de){const Se=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Be=Se.children[Se.children.length-1];Be.position.end=Ko(de.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Se.type)&&(H.call(this,de),q.call(this,de))}function W(){this.data.atHardBreak=!0}function I(){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.value=de}function B(){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.value=de}function D(){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.value=de}function j(){const de=this.stack[this.stack.length-1];if(this.data.inReference){const Se=this.data.referenceType||"shortcut";de.type+="Reference",de.referenceType=Se,delete de.url,delete de.title}else delete de.identifier,delete de.label;this.data.referenceType=void 0}function N(){const de=this.stack[this.stack.length-1];if(this.data.inReference){const Se=this.data.referenceType||"shortcut";de.type+="Reference",de.referenceType=Se,delete de.url,delete de.title}else delete de.identifier,delete de.label;this.data.referenceType=void 0}function F(de){const Se=this.sliceSerialize(de),Be=this.stack[this.stack.length-2];Be.label=Ace(Se),Be.identifier=Hi(Se).toLowerCase()}function Z(){const de=this.stack[this.stack.length-1],Se=this.resume(),Be=this.stack[this.stack.length-1];if(this.data.inReference=!0,Be.type==="link"){const Ze=de.children;Be.children=Ze}else Be.alt=Se}function O(){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.url=de}function U(){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.title=de}function K(){this.data.inReference=void 0}function $(){this.data.referenceType="collapsed"}function ie(de){const Se=this.resume(),Be=this.stack[this.stack.length-1];Be.label=Se,Be.identifier=Hi(this.sliceSerialize(de)).toLowerCase(),this.data.referenceType="full"}function ue(de){this.data.characterReferenceType=de.type}function xe(de){const Se=this.sliceSerialize(de),Be=this.data.characterReferenceType;let Ze;Be?(Ze=DL(Se,Be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ze=Hk(Se);const ct=this.stack[this.stack.length-1];ct.value+=Ze}function we(de){const Se=this.stack.pop();Se.position.end=Ko(de.end)}function Pe(de){q.call(this,de);const Se=this.stack[this.stack.length-1];Se.url=this.sliceSerialize(de)}function _e(de){q.call(this,de);const Se=this.stack[this.stack.length-1];Se.url="mailto:"+this.sliceSerialize(de)}function Ae(){return{type:"blockquote",children:[]}}function je(){return{type:"code",lang:null,meta:null,value:""}}function he(){return{type:"inlineCode",value:""}}function tt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ee(){return{type:"emphasis",children:[]}}function Ne(){return{type:"heading",depth:0,children:[]}}function ce(){return{type:"break"}}function qe(){return{type:"html",value:""}}function mt(){return{type:"image",title:null,url:"",alt:null}}function Xt(){return{type:"link",title:null,url:"",children:[]}}function Ft(de){return{type:"list",ordered:de.type==="listOrdered",start:null,spread:de._spread,children:[]}}function un(de){return{type:"listItem",spread:de._spread,checked:null,children:[]}}function ti(){return{type:"paragraph",children:[]}}function ni(){return{type:"strong",children:[]}}function Yt(){return{type:"text",value:""}}function Wi(){return{type:"thematicBreak"}}}function Ko(e){return{line:e.line,column:e.column,offset:e.offset}}function XL(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?XL(e,r):zce(e,r)}}function zce(e,t){let n;for(n in t)if(VL.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function G8(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+$h({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+$h({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+$h({start:t.start,end:t.end})+") is still open")}function Lce(e){const t=this;t.parser=n;function n(r){return Rce(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Mce(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Oce(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
58
|
+
`}]}function Dce(e,t){const n=t.value?t.value+`
|
|
59
|
+
`:"",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 qce(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ice(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $ce(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Pc(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let o,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,l+=1,e.footnoteCounts.set(r,l);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,c);const f={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,f),e.applyData(t,f)}function Pce(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Uce(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function YL(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Bce(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return YL(e,t);const i={src:Pc(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Gce(e,t){const n={src:Pc(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Fce(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Hce(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return YL(e,t);const i={href:Pc(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Vce(e,t){const n={href:Pc(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Xce(e,t,n){const r=e.all(t),i=n?Yce(n):WL(t),a={},o=[];if(typeof t.checked=="boolean"){const d=r[0];let m;d&&d.type==="element"&&d.tagName==="p"?m=d:(m={type:"element",tagName:"p",properties:{},children:[]},r.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const d=r[l];(i||l!==0||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
|
|
60
|
+
`}),d.type==="element"&&d.tagName==="p"&&!i?o.push(...d.children):o.push(d)}const c=r[r.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
|
|
61
|
+
`});const f={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,f),e.applyData(t,f)}function Yce(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=WL(n[r])}return t}function WL(e){const t=e.spread;return t??e.children.length>1}function Wce(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const 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 Kce(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Zce(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Qce(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Jce(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=Pk(t.children[1]),c=AL(t.children[t.children.length-1]);l&&c&&(o.position={start:l,end:c}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function efe(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,l=o?o.length:t.children.length;let c=-1;const f=[];for(;++c<l;){const m=t.children[c],p={},g=o?o[c]:void 0;g&&(p.align=g);let y={type:"element",tagName:a,properties:p,children:[]};m&&(y.children=e.all(m),e.patch(m,y),y=e.applyData(m,y)),f.push(y)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(f,!0)};return e.patch(t,d),e.applyData(t,d)}function tfe(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const F8=9,H8=32;function nfe(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(V8(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(V8(t.slice(i),i>0,!1)),a.join("")}function V8(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===F8||a===H8;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===F8||a===H8;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function rfe(e,t){const n={type:"text",value:nfe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function ife(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const afe={blockquote:Mce,break:Oce,code:Dce,delete:qce,emphasis:Ice,footnoteReference:$ce,heading:Pce,html:Uce,imageReference:Bce,image:Gce,inlineCode:Fce,linkReference:Hce,link:Vce,listItem:Xce,list:Wce,paragraph:Kce,root:Zce,strong:Qce,table:Jce,tableCell:tfe,tableRow:efe,text:rfe,thematicBreak:ife,toml:Mp,yaml:Mp,definition:Mp,footnoteDefinition:Mp};function Mp(){}const KL=-1,G1=0,Uh=1,xg=2,Xk=3,Yk=4,Wk=5,Kk=6,ZL=7,QL=8,ofe=typeof self=="object"?self:globalThis,X8=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new ofe[e](t)},sfe=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case G1:case KL:return n(o,i);case Uh:{const l=n([],i);for(const c of o)l.push(r(c));return l}case xg:{const l=n({},i);for(const[c,f]of o)l[r(c)]=r(f);return l}case Xk:return n(new Date(o),i);case Yk:{const{source:l,flags:c}=o;return n(new RegExp(l,c),i)}case Wk:{const l=n(new Map,i);for(const[c,f]of o)l.set(r(c),r(f));return l}case Kk:{const l=n(new Set,i);for(const c of o)l.add(r(c));return l}case ZL:{const{name:l,message:c}=o;return n(X8(l,c),i)}case QL:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:l}=new Uint8Array(o);return n(new DataView(l),o)}}return n(X8(a,o),i)};return r},Y8=e=>sfe(new Map,e)(0),$u="",{toString:lfe}={},{keys:ufe}=Object,ah=e=>{const t=typeof e;if(t!=="object"||!e)return[G1,t];const n=lfe.call(e).slice(8,-1);switch(n){case"Array":return[Uh,$u];case"Object":return[xg,$u];case"Date":return[Xk,$u];case"RegExp":return[Yk,$u];case"Map":return[Wk,$u];case"Set":return[Kk,$u];case"DataView":return[Uh,n]}return n.includes("Array")?[Uh,n]:n.includes("Error")?[ZL,n]:[xg,n]},Op=([e,t])=>e===G1&&(t==="function"||t==="symbol"),cfe=(e,t,n,r)=>{const i=(o,l)=>{const c=r.push(o)-1;return n.set(l,c),c},a=o=>{if(n.has(o))return n.get(o);let[l,c]=ah(o);switch(l){case G1:{let d=o;switch(c){case"bigint":l=QL,d=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);d=null;break;case"undefined":return i([KL],o)}return i([l,d],o)}case Uh:{if(c){let p=o;return c==="DataView"?p=new Uint8Array(o.buffer):c==="ArrayBuffer"&&(p=new Uint8Array(o)),i([c,[...p]],o)}const d=[],m=i([l,d],o);for(const p of o)d.push(a(p));return m}case xg:{if(c)switch(c){case"BigInt":return i([c,o.toString()],o);case"Boolean":case"Number":case"String":return i([c,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const d=[],m=i([l,d],o);for(const p of ufe(o))(e||!Op(ah(o[p])))&&d.push([a(p),a(o[p])]);return m}case Xk:return i([l,o.toISOString()],o);case Yk:{const{source:d,flags:m}=o;return i([l,{source:d,flags:m}],o)}case Wk:{const d=[],m=i([l,d],o);for(const[p,g]of o)(e||!(Op(ah(p))||Op(ah(g))))&&d.push([a(p),a(g)]);return m}case Kk:{const d=[],m=i([l,d],o);for(const p of o)(e||!Op(ah(p)))&&d.push(a(p));return m}}const{message:f}=o;return i([l,{name:c,message:f}],o)};return a},W8=(e,{json:t,lossy:n}={})=>{const r=[];return cfe(!(t||n),!!t,new Map,r)(e),r},wg=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Y8(W8(e,t)):structuredClone(e):(e,t)=>Y8(W8(e,t));function ffe(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function hfe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function dfe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||ffe,r=e.options.footnoteBackLabel||hfe,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let c=-1;for(;++c<e.footnoteOrder.length;){const f=e.footnoteById.get(e.footnoteOrder[c]);if(!f)continue;const d=e.all(f),m=String(f.identifier).toUpperCase(),p=Pc(m.toLowerCase());let g=0;const y=[],x=e.footnoteCounts.get(m);for(;x!==void 0&&++g<=x;){y.length>0&&y.push({type:"text",value:" "});let C=typeof n=="string"?n:n(c,g);typeof C=="string"&&(C={type:"text",value:C}),y.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,g),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const k=d[d.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const C=k.children[k.children.length-1];C&&C.type==="text"?C.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...y)}else d.push(...y);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(d,!0)};e.patch(f,w),l.push(w)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...wg(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
62
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
|
|
63
|
+
`}]}}const F1=(function(e){if(e==null)return gfe;if(typeof e=="function")return H1(e);if(typeof e=="object")return Array.isArray(e)?mfe(e):pfe(e);if(typeof e=="string")return _fe(e);throw new Error("Expected function, string, or object as test")});function mfe(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=F1(e[n]);return H1(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function pfe(e){const t=e;return H1(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function _fe(e){return H1(t);function t(n){return n&&n.type===e}}function H1(e){return t;function t(n,r,i){return!!(yfe(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function gfe(){return!0}function yfe(e){return e!==null&&typeof e=="object"&&"type"in e}const JL=[],vfe=!0,ww=!1,bfe="skip";function e7(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=F1(i),o=r?-1:1;l(e,void 0,[])();function l(c,f,d){const m=c&&typeof c=="object"?c:{};if(typeof m.type=="string"){const g=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(c.type+(g?"<"+g+">":""))+")"})}return p;function p(){let g=JL,y,x,k;if((!t||a(c,f,d[d.length-1]||void 0))&&(g=xfe(n(c,d)),g[0]===ww))return g;if("children"in c&&c.children){const w=c;if(w.children&&g[0]!==bfe)for(x=(r?w.children.length:-1)+o,k=d.concat(w);x>-1&&x<w.children.length;){const C=w.children[x];if(y=l(C,x,k)(),y[0]===ww)return y;x=typeof y[1]=="number"?y[1]:x+o}}return g}}}function xfe(e){return Array.isArray(e)?e:typeof e=="number"?[vfe,e]:e==null?JL:[e]}function Zk(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),e7(e,a,l,i);function l(c,f){const d=f[f.length-1],m=d?d.children.indexOf(c):void 0;return o(c,m,d)}}const kw={}.hasOwnProperty,wfe={};function kfe(e,t){const n=t||wfe,r=new Map,i=new Map,a=new Map,o={...afe,...n.handlers},l={all:f,applyData:Sfe,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:c,options:n,patch:Efe,wrap:Cfe};return Zk(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const m=d.type==="definition"?r:i,p=String(d.identifier).toUpperCase();m.has(p)||m.set(p,d)}}),l;function c(d,m){const p=d.type,g=l.handlers[p];if(kw.call(l.handlers,p)&&g)return g(l,d,m);if(l.options.passThrough&&l.options.passThrough.includes(p)){if("children"in d){const{children:x,...k}=d,w=wg(k);return w.children=l.all(d),w}return wg(d)}return(l.options.unknownHandler||Tfe)(l,d,m)}function f(d){const m=[];if("children"in d){const p=d.children;let g=-1;for(;++g<p.length;){const y=l.one(p[g],d);if(y){if(g&&p[g-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=K8(y.value)),!Array.isArray(y)&&y.type==="element")){const x=y.children[0];x&&x.type==="text"&&(x.value=K8(x.value))}Array.isArray(y)?m.push(...y):m.push(y)}}}return m}}function Efe(e,t){e.position&&(t.position=fle(e))}function Sfe(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&a&&Object.assign(n.properties,wg(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Tfe(e,t){const n=t.data||{},r="value"in t&&!(kw.call(n,"hProperties")||kw.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 Cfe(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
64
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
65
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
66
|
+
`}),n}function K8(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Z8(e,t){const n=kfe(e,t),r=n.one(e,void 0),i=dfe(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
|
|
67
|
+
`},i),a}function Afe(e,t){return e&&"run"in e?async function(n,r){const i=Z8(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Z8(n,{file:r,...e||t})}}function Q8(e){if(e)throw e}var db,J8;function jfe(){if(J8)return db;J8=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(f){return typeof Array.isArray=="function"?Array.isArray(f):t.call(f)==="[object Array]"},a=function(f){if(!f||t.call(f)!=="[object Object]")return!1;var d=e.call(f,"constructor"),m=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!d&&!m)return!1;var p;for(p in f);return typeof p>"u"||e.call(f,p)},o=function(f,d){n&&d.name==="__proto__"?n(f,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):f[d.name]=d.newValue},l=function(f,d){if(d==="__proto__")if(e.call(f,d)){if(r)return r(f,d).value}else return;return f[d]};return db=function c(){var f,d,m,p,g,y,x=arguments[0],k=1,w=arguments.length,C=!1;for(typeof x=="boolean"&&(C=x,x=arguments[1]||{},k=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});k<w;++k)if(f=arguments[k],f!=null)for(d in f)m=l(x,d),p=l(f,d),x!==p&&(C&&p&&(a(p)||(g=i(p)))?(g?(g=!1,y=m&&i(m)?m:[]):y=m&&a(m)?m:{},o(x,{name:d,newValue:c(C,y,p)})):typeof p<"u"&&o(x,{name:d,newValue:p}));return x},db}var Rfe=jfe();const mb=Ml(Rfe);function Ew(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Nfe(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...i);function l(c,...f){const d=e[++a];let m=-1;if(c){o(c);return}for(;++m<i.length;)(f[m]===null||f[m]===void 0)&&(f[m]=i[m]);i=f,d?zfe(d,l)(...f):o(null,...f)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function zfe(e,t){let n;return r;function r(...o){const l=e.length>o.length;let c;l&&o.push(i);try{c=e.apply(this,o)}catch(f){const d=f;if(l&&n)throw d;return i(d)}l||(c&&c.then&&typeof c.then=="function"?c.then(a,i):c instanceof Error?i(c):a(c))}function i(o,...l){n||(n=!0,t(o,...l))}function a(o){i(null,o)}}const ca={basename:Lfe,dirname:Mfe,extname:Ofe,join:Dfe,sep:"/"};function Lfe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Id(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,l=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(r=i):(l=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Mfe(e){if(Id(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||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Ofe(e){Id(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const l=e.codePointAt(t);if(l===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),l===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 Dfe(...e){let t=-1,n;for(;++t<e.length;)Id(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":qfe(n)}function qfe(e){Id(e);const t=e.codePointAt(0)===47;let n=Ife(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Ife(e,t){let n="",r=0,i=-1,a=0,o=-1,l,c;for(;++o<=e.length;){if(o<e.length)l=e.codePointAt(o);else{if(l===47)break;l=47}if(l===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 l===46&&a>-1?a++:a=-1}return n}function Id(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const $fe={cwd:Pfe};function Pfe(){return"/"}function Sw(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ufe(e){if(typeof e=="string")e=new URL(e);else if(!Sw(e)){const t=new 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:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Bfe(e)}function Bfe(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const pb=["history","path","basename","stem","extname","dirname"];class t7{constructor(t){let n;t?Sw(t)?n={path:t}:typeof t=="string"||Gfe(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":$fe.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<pb.length;){const a=pb[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)pb.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?ca.basename(this.path):void 0}set basename(t){gb(t,"basename"),_b(t,"basename"),this.path=ca.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ca.dirname(this.path):void 0}set dirname(t){e5(this.basename,"dirname"),this.path=ca.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ca.extname(this.path):void 0}set extname(t){if(_b(t,"extname"),e5(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ca.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Sw(t)&&(t=Ufe(t)),gb(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ca.basename(this.path,this.extname):void 0}set stem(t){gb(t,"stem"),_b(t,"stem"),this.path=ca.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new ir(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function _b(e,t){if(e&&e.includes(ca.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ca.sep+"`")}function gb(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function e5(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Gfe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ffe=(function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a}),Hfe={}.hasOwnProperty;class Qk extends Ffe{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=Nfe()}copy(){const t=new Qk;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(mb(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(bb("data",this.frozen),this.namespace[t]=n,this):Hfe.call(this.namespace,t)&&this.namespace[t]||void 0:t?(bb("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Dp(t),r=this.parser||this.Parser;return yb("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),yb("process",this.parser||this.Parser),vb("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,o){const l=Dp(t),c=r.parse(l);r.run(c,l,function(d,m,p){if(d||!m||!p)return f(d);const g=m,y=r.stringify(g,p);Yfe(y)?p.value=y:p.result=y,f(d,p)});function f(d,m){d||!m?o(d):a?a(m):n(void 0,m)}}}processSync(t){let n=!1,r;return this.freeze(),yb("processSync",this.parser||this.Parser),vb("processSync",this.compiler||this.Compiler),this.process(t,i),n5("processSync","process",n),r;function i(a,o){n=!0,Q8(a),r=o}}run(t,n,r){t5(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(o,l){const c=Dp(n);i.run(t,c,f);function f(d,m,p){const g=m||t;d?l(d):o?o(g):r(void 0,g,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),n5("runSync","run",r),i;function a(o,l){Q8(o),i=l,r=!0}}stringify(t,n){this.freeze();const r=Dp(n),i=this.compiler||this.Compiler;return vb("stringify",i),t5(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(bb("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(f){if(typeof f=="function")c(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[d,...m]=f;c(d,m)}else o(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function o(f){if(!("plugins"in f)&&!("settings"in f))throw new 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");l(f.plugins),f.settings&&(i.settings=mb(!0,i.settings,f.settings))}function l(f){let d=-1;if(f!=null)if(Array.isArray(f))for(;++d<f.length;){const m=f[d];a(m)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function c(f,d){let m=-1,p=-1;for(;++m<r.length;)if(r[m][0]===f){p=m;break}if(p===-1)r.push([f,...d]);else if(d.length>0){let[g,...y]=d;const x=r[p][1];Ew(x)&&Ew(g)&&(g=mb(!0,x,g)),r[p]=[f,g,...y]}}}}const Vfe=new Qk().freeze();function yb(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function vb(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function bb(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function t5(e){if(!Ew(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function n5(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Dp(e){return Xfe(e)?e:new t7(e)}function Xfe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Yfe(e){return typeof e=="string"||Wfe(e)}function Wfe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Kfe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",r5=[],i5={allowDangerousHtml:!0},Zfe=/^(https?|ircs?|mailto|xmpp)$/i,Qfe=[{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 Jfe(e){const t=ehe(e),n=the(e);return nhe(t.runSync(t.parse(n),n),e)}function ehe(e){const t=e.rehypePlugins||r5,n=e.remarkPlugins||r5,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...i5}:i5;return Vfe().use(Lce).use(n).use(Afe,r).use(t)}function the(e){const t=e.children||"",n=new t7;return typeof t=="string"&&(n.value=t),n}function nhe(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,l=t.unwrapDisallowed,c=t.urlTransform||n7;for(const d of Qfe)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+Kfe+d.id,void 0);return Zk(e,f),_le(e,{Fragment:b.Fragment,components:i,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function f(d,m,p){if(d.type==="raw"&&p&&typeof m=="number")return o?p.children.splice(m,1):p.children[m]={type:"text",value:d.value},m;if(d.type==="element"){let g;for(g in cb)if(Object.hasOwn(cb,g)&&Object.hasOwn(d.properties,g)){const y=d.properties[g],x=cb[g];(x===null||x.includes(d.tagName))&&(d.properties[g]=c(String(y||""),g,d))}}if(d.type==="element"){let g=n?!n.includes(d.tagName):a?a.includes(d.tagName):!1;if(!g&&r&&typeof m=="number"&&(g=!r(d,m,p)),g&&p&&typeof m=="number")return l&&d.children?p.children.splice(m,1,...d.children):p.children.splice(m,1),m}}}function n7(e){const 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||Zfe.test(e.slice(0,t))?e:""}function kg(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function rhe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ihe(e,t,n){const i=F1((n||{}).ignore||[]),a=ahe(t);let o=-1;for(;++o<a.length;)e7(e,"text",l);function l(f,d){let m=-1,p;for(;++m<d.length;){const g=d[m],y=p?p.children:void 0;if(i(g,y?y.indexOf(g):void 0,p))return;p=g}if(p)return c(f,d)}function c(f,d){const m=d[d.length-1],p=a[o][0],g=a[o][1];let y=0;const k=m.children.indexOf(f);let w=!1,C=[];p.lastIndex=0;let S=p.exec(f.value);for(;S;){const T=S.index,z={index:S.index,input:S.input,stack:[...d,f]};let A=g(...S,z);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?p.lastIndex=T+1:(y!==T&&C.push({type:"text",value:f.value.slice(y,T)}),Array.isArray(A)?C.push(...A):A&&C.push(A),y=T+S[0].length,w=!0),!p.global)break;S=p.exec(f.value)}return w?(y<f.value.length&&C.push({type:"text",value:f.value.slice(y)}),m.children.splice(k,1,...C)):C=[f],k+C.length}}function ahe(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([ohe(i[0]),she(i[1])])}return t}function ohe(e){return typeof e=="string"?new RegExp(rhe(e),"g"):e}function she(e){return typeof e=="function"?e:function(){return e}}const xb="phrasing",wb=["autolink","link","image","label"];function lhe(){return{transforms:[phe],enter:{literalAutolink:che,literalAutolinkEmail:kb,literalAutolinkHttp:kb,literalAutolinkWww:kb},exit:{literalAutolink:mhe,literalAutolinkEmail:dhe,literalAutolinkHttp:fhe,literalAutolinkWww:hhe}}}function uhe(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:xb,notInConstruct:wb},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:xb,notInConstruct:wb},{character:":",before:"[ps]",after:"\\/",inConstruct:xb,notInConstruct:wb}]}}function che(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function kb(e){this.config.enter.autolinkProtocol.call(this,e)}function fhe(e){this.config.exit.autolinkProtocol.call(this,e)}function hhe(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function dhe(e){this.config.exit.autolinkEmail.call(this,e)}function mhe(e){this.exit(e)}function phe(e){ihe(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,_he],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ghe]],{ignore:["link","linkReference"]})}function _he(e,t,n,r,i){let a="";if(!r7(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!yhe(n)))return!1;const o=vhe(n+r);if(!o[0])return!1;const l={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function ghe(e,t,n,r){return!r7(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function yhe(e){const 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 vhe(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=kg(e,"(");let a=kg(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 r7(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Nl(n)||U1(n))&&(!t||n!==47)}i7.peek=Ahe;function bhe(){this.buffer()}function xhe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function whe(){this.buffer()}function khe(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Ehe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Hi(this.sliceSerialize(e)).toLowerCase(),n.label=t}function She(e){this.exit(e)}function The(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Hi(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Che(e){this.exit(e)}function Ahe(){return"["}function i7(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const o=n.enter("footnoteReference"),l=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),l(),o(),a+=i.move("]"),a}function jhe(){return{enter:{gfmFootnoteCallString:bhe,gfmFootnoteCall:xhe,gfmFootnoteDefinitionLabelString:whe,gfmFootnoteDefinition:khe},exit:{gfmFootnoteCallString:Ehe,gfmFootnoteCall:She,gfmFootnoteDefinitionLabelString:The,gfmFootnoteDefinition:Che}}}function Rhe(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:i7},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,o){const l=a.createTracker(o);let c=l.move("[^");const f=a.enter("footnoteDefinition"),d=a.enter("label");return c+=l.move(a.safe(a.associationId(r),{before:c,after:"]"})),d(),c+=l.move("]:"),r.children&&r.children.length>0&&(l.shift(4),c+=l.move((t?`
|
|
68
|
+
`:" ")+a.indentLines(a.containerFlow(r,l.current()),t?a7:Nhe))),f(),c}}function Nhe(e,t,n){return t===0?e:a7(e,t,n)}function a7(e,t,n){return(n?"":" ")+e}const zhe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];o7.peek=qhe;function Lhe(){return{canContainEols:["delete"],enter:{strikethrough:Ohe},exit:{strikethrough:Dhe}}}function Mhe(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:zhe}],handlers:{delete:o7}}}function Ohe(e){this.enter({type:"delete",children:[]},e)}function Dhe(e){this.exit(e)}function o7(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function qhe(){return"~"}function Ihe(e){return e.length}function $he(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Ihe,a=[],o=[],l=[],c=[];let f=0,d=-1;for(;++d<e.length;){const x=[],k=[];let w=-1;for(e[d].length>f&&(f=e[d].length);++w<e[d].length;){const C=Phe(e[d][w]);if(n.alignDelimiters!==!1){const S=i(C);k[w]=S,(c[w]===void 0||S>c[w])&&(c[w]=S)}x.push(C)}o[d]=x,l[d]=k}let m=-1;if(typeof r=="object"&&"length"in r)for(;++m<f;)a[m]=a5(r[m]);else{const x=a5(r);for(;++m<f;)a[m]=x}m=-1;const p=[],g=[];for(;++m<f;){const x=a[m];let k="",w="";x===99?(k=":",w=":"):x===108?k=":":x===114&&(w=":");let C=n.alignDelimiters===!1?1:Math.max(1,c[m]-k.length-w.length);const S=k+"-".repeat(C)+w;n.alignDelimiters!==!1&&(C=k.length+C+w.length,C>c[m]&&(c[m]=C),g[m]=C),p[m]=S}o.splice(1,0,p),l.splice(1,0,g),d=-1;const y=[];for(;++d<o.length;){const x=o[d],k=l[d];m=-1;const w=[];for(;++m<f;){const C=x[m]||"";let S="",T="";if(n.alignDelimiters!==!1){const z=c[m]-(k[m]||0),A=a[m];A===114?S=" ".repeat(z):A===99?z%2?(S=" ".repeat(z/2+.5),T=" ".repeat(z/2-.5)):(S=" ".repeat(z/2),T=S):T=" ".repeat(z)}n.delimiterStart!==!1&&!m&&w.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&C==="")&&(n.delimiterStart!==!1||m)&&w.push(" "),n.alignDelimiters!==!1&&w.push(S),w.push(C),n.alignDelimiters!==!1&&w.push(T),n.padding!==!1&&w.push(" "),(n.delimiterEnd!==!1||m!==f-1)&&w.push("|")}y.push(n.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return y.join(`
|
|
69
|
+
`)}function Phe(e){return e==null?"":String(e)}function a5(e){const 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}const o5={}.hasOwnProperty;function Uhe(e,t){const n=t||{};function r(i,...a){let o=r.invalid;const l=r.handlers;if(i&&o5.call(i,e)){const c=String(i[e]);o=o5.call(l,c)?l[c]:r.unknown}if(o)return o.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function Bhe(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const o=n.indentLines(n.containerFlow(e,a.current()),Ghe);return i(),o}function Ghe(e,t,n){return">"+(n?"":" ")+e}function Fhe(e,t){return s5(e,t.inConstruct,!0)&&!s5(e,t.notInConstruct,!1)}function s5(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 l5(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
70
|
+
`&&Fhe(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
71
|
+
`}function Hhe(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!="string")throw new 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 Vhe(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 Xhe(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Yhe(e,t,n,r){const i=Xhe(n),a=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(Vhe(e,n)){const m=n.enter("codeIndented"),p=n.indentLines(a,Whe);return m(),p}const l=n.createTracker(r),c=i.repeat(Math.max(Hhe(a,i)+1,3)),f=n.enter("codeFenced");let d=l.move(c);if(e.lang){const m=n.enter(`codeFencedLang${o}`);d+=l.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...l.current()})),m()}if(e.lang&&e.meta){const m=n.enter(`codeFencedMeta${o}`);d+=l.move(" "),d+=l.move(n.safe(e.meta,{before:d,after:`
|
|
72
|
+
`,encode:["`"],...l.current()})),m()}return d+=l.move(`
|
|
73
|
+
`),a&&(d+=l.move(a+`
|
|
74
|
+
`)),d+=l.move(c),f(),d}function Whe(e,t,n){return(n?"":" ")+e}function Jk(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Khe(e,t,n,r){const i=Jk(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let l=n.enter("label");const c=n.createTracker(r);let f=c.move("[");return f+=c.move(n.safe(n.associationId(e),{before:f,after:"]",...c.current()})),f+=c.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),f+=c.move("<"),f+=c.move(n.safe(e.url,{before:f,after:">",...c.current()})),f+=c.move(">")):(l=n.enter("destinationRaw"),f+=c.move(n.safe(e.url,{before:f,after:e.title?" ":`
|
|
75
|
+
`,...c.current()}))),l(),e.title&&(l=n.enter(`title${a}`),f+=c.move(" "+i),f+=c.move(n.safe(e.title,{before:f,after:i,...c.current()})),f+=c.move(i),l()),o(),f}function Zhe(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function hd(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Eg(e,t,n){const r=Cc(e),i=Cc(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}}s7.peek=Qhe;function s7(e,t,n,r){const i=Zhe(n),a=n.enter("emphasis"),o=n.createTracker(r),l=o.move(i);let c=o.move(n.containerPhrasing(e,{after:i,before:l,...o.current()}));const f=c.charCodeAt(0),d=Eg(r.before.charCodeAt(r.before.length-1),f,i);d.inside&&(c=hd(f)+c.slice(1));const m=c.charCodeAt(c.length-1),p=Eg(r.after.charCodeAt(0),m,i);p.inside&&(c=c.slice(0,-1)+hd(m));const g=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:p.outside,before:d.outside},l+c+g}function Qhe(e,t,n){return n.options.emphasis||"*"}function Jhe(e,t){let n=!1;return Zk(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,ww}),!!((!e.depth||e.depth<3)&&Fk(e)&&(t.options.setext||n))}function ede(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(Jhe(e,n)){const d=n.enter("headingSetext"),m=n.enter("phrasing"),p=n.containerPhrasing(e,{...a.current(),before:`
|
|
76
|
+
`,after:`
|
|
77
|
+
`});return m(),d(),p+`
|
|
78
|
+
`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
79
|
+
`))+1))}const o="#".repeat(i),l=n.enter("headingAtx"),c=n.enter("phrasing");a.move(o+" ");let f=n.containerPhrasing(e,{before:"# ",after:`
|
|
80
|
+
`,...a.current()});return/^[\t ]/.test(f)&&(f=hd(f.charCodeAt(0))+f.slice(1)),f=f?o+" "+f:o,n.options.closeAtx&&(f+=" "+o),c(),l(),f}l7.peek=tde;function l7(e){return e.value||""}function tde(){return"<"}u7.peek=nde;function u7(e,t,n,r){const i=Jk(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let l=n.enter("label");const c=n.createTracker(r);let f=c.move("![");return f+=c.move(n.safe(e.alt,{before:f,after:"]",...c.current()})),f+=c.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),f+=c.move("<"),f+=c.move(n.safe(e.url,{before:f,after:">",...c.current()})),f+=c.move(">")):(l=n.enter("destinationRaw"),f+=c.move(n.safe(e.url,{before:f,after:e.title?" ":")",...c.current()}))),l(),e.title&&(l=n.enter(`title${a}`),f+=c.move(" "+i),f+=c.move(n.safe(e.title,{before:f,after:i,...c.current()})),f+=c.move(i),l()),f+=c.move(")"),o(),f}function nde(){return"!"}c7.peek=rde;function c7(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let o=n.enter("label");const l=n.createTracker(r);let c=l.move("![");const f=n.safe(e.alt,{before:c,after:"]",...l.current()});c+=l.move(f+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const m=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return o(),n.stack=d,a(),i==="full"||!f||f!==m?c+=l.move(m+"]"):i==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function rde(){return"!"}f7.peek=ide;function f7(e,t,n){let r=e.value||"",i="`",a=-1;for(;new 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;){const o=n.unsafe[a],l=n.compilePattern(o);let c;if(o.atBreak)for(;c=l.exec(r);){let f=c.index;r.charCodeAt(f)===10&&r.charCodeAt(f-1)===13&&f--,r=r.slice(0,f)+" "+r.slice(c.index+1)}}return i+r+i}function ide(){return"`"}function h7(e,t){const n=Fk(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))}d7.peek=ade;function d7(e,t,n,r){const i=Jk(n),a=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let l,c;if(h7(e,n)){const d=n.stack;n.stack=[],l=n.enter("autolink");let m=o.move("<");return m+=o.move(n.containerPhrasing(e,{before:m,after:">",...o.current()})),m+=o.move(">"),l(),n.stack=d,m}l=n.enter("link"),c=n.enter("label");let f=o.move("[");return f+=o.move(n.containerPhrasing(e,{before:f,after:"](",...o.current()})),f+=o.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),f+=o.move("<"),f+=o.move(n.safe(e.url,{before:f,after:">",...o.current()})),f+=o.move(">")):(c=n.enter("destinationRaw"),f+=o.move(n.safe(e.url,{before:f,after:e.title?" ":")",...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),f+=o.move(" "+i),f+=o.move(n.safe(e.title,{before:f,after:i,...o.current()})),f+=o.move(i),c()),f+=o.move(")"),l(),f}function ade(e,t,n){return h7(e,n)?"<":"["}m7.peek=ode;function m7(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let o=n.enter("label");const l=n.createTracker(r);let c=l.move("[");const f=n.containerPhrasing(e,{before:c,after:"]",...l.current()});c+=l.move(f+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const m=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return o(),n.stack=d,a(),i==="full"||!f||f!==m?c+=l.move(m+"]"):i==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function ode(){return"["}function eE(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function sde(e){const t=eE(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function lde(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function p7(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function ude(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let o=e.ordered?lde(n):eE(n);const l=e.ordered?o==="."?")":".":sde(n);let c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&d&&(!d.children||!d.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),p7(n)===o&&d){let m=-1;for(;++m<e.children.length;){const p=e.children[m];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(o=l),n.bulletCurrent=o;const f=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),f}function cde(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function fde(e,t,n,r){const i=cde(n);let a=n.bulletCurrent||eE(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);const l=n.createTracker(r);l.move(a+" ".repeat(o-a.length)),l.shift(o);const c=n.enter("listItem"),f=n.indentLines(n.containerFlow(e,l.current()),d);return c(),f;function d(m,p,g){return p?(g?"":" ".repeat(o))+m:(g?a:a+" ".repeat(o-a.length))+m}}function hde(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),o=n.containerPhrasing(e,r);return a(),i(),o}const dde=F1(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function mde(e,t,n,r){return(e.children.some(function(o){return dde(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function pde(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}_7.peek=_de;function _7(e,t,n,r){const i=pde(n),a=n.enter("strong"),o=n.createTracker(r),l=o.move(i+i);let c=o.move(n.containerPhrasing(e,{after:i,before:l,...o.current()}));const f=c.charCodeAt(0),d=Eg(r.before.charCodeAt(r.before.length-1),f,i);d.inside&&(c=hd(f)+c.slice(1));const m=c.charCodeAt(c.length-1),p=Eg(r.after.charCodeAt(0),m,i);p.inside&&(c=c.slice(0,-1)+hd(m));const g=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:p.outside,before:d.outside},l+c+g}function _de(e,t,n){return n.options.strong||"*"}function gde(e,t,n,r){return n.safe(e.value,r)}function yde(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function vde(e,t,n){const r=(p7(n)+(n.options.ruleSpaces?" ":"")).repeat(yde(n));return n.options.ruleSpaces?r.slice(0,-1):r}const g7={blockquote:Bhe,break:l5,code:Yhe,definition:Khe,emphasis:s7,hardBreak:l5,heading:ede,html:l7,image:u7,imageReference:c7,inlineCode:f7,link:d7,linkReference:m7,list:ude,listItem:fde,paragraph:hde,root:mde,strong:_7,text:gde,thematicBreak:vde};function bde(){return{enter:{table:xde,tableData:u5,tableHeader:u5,tableRow:kde},exit:{codeText:Ede,table:wde,tableData:Eb,tableHeader:Eb,tableRow:Eb}}}function xde(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function wde(e){this.exit(e),this.data.inTable=void 0}function kde(e){this.enter({type:"tableRow",children:[]},e)}function Eb(e){this.exit(e)}function u5(e){this.enter({type:"tableCell",children:[]},e)}function Ede(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Sde));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Sde(e,t){return t==="|"?t:e}function Tde(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
81
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:c,tableRow:l}};function o(g,y,x,k){return f(d(g,x,k),g.align)}function l(g,y,x,k){const w=m(g,x,k),C=f([w]);return C.slice(0,C.indexOf(`
|
|
82
|
+
`))}function c(g,y,x,k){const w=x.enter("tableCell"),C=x.enter("phrasing"),S=x.containerPhrasing(g,{...k,before:a,after:a});return C(),w(),S}function f(g,y){return $he(g,{align:y,alignDelimiters:r,padding:n,stringLength:i})}function d(g,y,x){const k=g.children;let w=-1;const C=[],S=y.enter("table");for(;++w<k.length;)C[w]=m(k[w],y,x);return S(),C}function m(g,y,x){const k=g.children;let w=-1;const C=[],S=y.enter("tableRow");for(;++w<k.length;)C[w]=c(k[w],g,y,x);return S(),C}function p(g,y,x){let k=g7.inlineCode(g,y,x);return x.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function Cde(){return{exit:{taskListCheckValueChecked:c5,taskListCheckValueUnchecked:c5,paragraph:jde}}}function Ade(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Rde}}}function c5(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function jde(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a<i.length;){const l=i[a];if(l.type==="paragraph"){o=l;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Rde(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);a&&l.move(o);let c=g7.listItem(e,t,n,{...r,...l.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,f)),c;function f(d){return d+o}}function Nde(){return[lhe(),jhe(),Lhe(),bde(),Cde()]}function zde(e){return{extensions:[uhe(),Rhe(e),Mhe(),Tde(e),Ade()]}}const Lde={tokenize:$de,partial:!0},y7={tokenize:Pde,partial:!0},v7={tokenize:Ude,partial:!0},b7={tokenize:Bde,partial:!0},Mde={tokenize:Gde,partial:!0},x7={name:"wwwAutolink",tokenize:qde,previous:k7},w7={name:"protocolAutolink",tokenize:Ide,previous:E7},mo={name:"emailAutolink",tokenize:Dde,previous:S7},ka={};function Ode(){return{text:ka}}let Qs=48;for(;Qs<123;)ka[Qs]=mo,Qs++,Qs===58?Qs=65:Qs===91&&(Qs=97);ka[43]=mo;ka[45]=mo;ka[46]=mo;ka[95]=mo;ka[72]=[mo,w7];ka[104]=[mo,w7];ka[87]=[mo,x7];ka[119]=[mo,x7];function Dde(e,t,n){const r=this;let i,a;return o;function o(m){return!Tw(m)||!S7.call(r,r.previous)||tE(r.events)?n(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(m))}function l(m){return Tw(m)?(e.consume(m),l):m===64?(e.consume(m),c):n(m)}function c(m){return m===46?e.check(Mde,d,f)(m):m===45||m===95||rr(m)?(a=!0,e.consume(m),c):d(m)}function f(m){return e.consume(m),i=!0,c}function d(m){return a&&i&&mr(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(m)):n(m)}}function qde(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!k7.call(r,r.previous)||tE(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Lde,e.attempt(y7,e.attempt(v7,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function Ide(e,t,n){const r=this;let i="",a=!1;return o;function o(m){return(m===72||m===104)&&E7.call(r,r.previous)&&!tE(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(m),e.consume(m),l):n(m)}function l(m){if(mr(m)&&i.length<5)return i+=String.fromCodePoint(m),e.consume(m),l;if(m===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(m),c}return n(m)}function c(m){return m===47?(e.consume(m),a?f:(a=!0,c)):n(m)}function f(m){return m===null||bg(m)||qt(m)||Nl(m)||U1(m)?n(m):e.attempt(y7,e.attempt(v7,d),n)(m)}function d(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(m)}}function $de(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function Pde(e,t,n){let r,i,a;return o;function o(f){return f===46||f===95?e.check(b7,c,l)(f):f===null||qt(f)||Nl(f)||f!==45&&U1(f)?c(f):(a=!0,e.consume(f),o)}function l(f){return f===95?r=!0:(i=r,r=void 0),e.consume(f),o}function c(f){return i||r||!a?n(f):t(f)}}function Ude(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(b7,t,a)(o):o===null||qt(o)||Nl(o)?t(o):(e.consume(o),i)}function a(o){return o===41&&r++,e.consume(o),i}}function Bde(e,t,n){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),r):l===38?(e.consume(l),a):l===93?(e.consume(l),i):l===60||l===null||qt(l)||Nl(l)?t(l):n(l)}function i(l){return l===null||l===40||l===91||qt(l)||Nl(l)?t(l):r(l)}function a(l){return mr(l)?o(l):n(l)}function o(l){return l===59?(e.consume(l),r):mr(l)?(e.consume(l),o):n(l)}}function Gde(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return rr(a)?n(a):t(a)}}function k7(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||qt(e)}function E7(e){return!mr(e)}function S7(e){return!(e===47||Tw(e))}function Tw(e){return e===43||e===45||e===46||e===95||rr(e)}function tE(e){let t=e.length,n=!1;for(;t--;){const 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}const Fde={tokenize:Qde,partial:!0};function Hde(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Wde,continuation:{tokenize:Kde},exit:Zde}},text:{91:{name:"gfmFootnoteCall",tokenize:Yde},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Vde,resolveTo:Xde}}}}function Vde(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const c=r.events[i][1];if(c.type==="labelImage"){o=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return l;function l(c){if(!o||!o._balanced)return n(c);const f=Hi(r.sliceSerialize({start:o.end,end:r.now()}));return f.codePointAt(0)!==94||!a.includes(f.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function Xde(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";const 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++;const 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)},l=[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,...l),e}function Yde(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return l;function l(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),c}function c(m){return m!==94?n(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(m){if(a>999||m===93&&!o||m===null||m===91||qt(m))return n(m);if(m===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(Hi(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(m)}return qt(m)||(o=!0),a++,e.consume(m),m===92?d:f}function d(m){return m===91||m===92||m===93?(e.consume(m),a++,f):f(m)}}function Wde(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,l;return c;function c(y){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(y){return y===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(y)}function d(y){if(o>999||y===93&&!l||y===null||y===91||qt(y))return n(y);if(y===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return a=Hi(r.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return qt(y)||(l=!0),o++,e.consume(y),y===92?m:d}function m(y){return y===91||y===92||y===93?(e.consume(y),o++,d):d(y)}function p(y){return y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),i.includes(a)||i.push(a),vt(e,g,"gfmFootnoteDefinitionWhitespace")):n(y)}function g(y){return t(y)}}function Kde(e,t,n){return e.check(qd,t,e.attempt(Fde,t,n))}function Zde(e){e.exit("gfmFootnoteDefinition")}function Qde(e,t,n){const r=this;return vt(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function Jde(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,l){let c=-1;for(;++c<o.length;)if(o[c][0]==="enter"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._close){let f=c;for(;f--;)if(o[f][0]==="exit"&&o[f][1].type==="strikethroughSequenceTemporary"&&o[f][1]._open&&o[c][1].end.offset-o[c][1].start.offset===o[f][1].end.offset-o[f][1].start.offset){o[c][1].type="strikethroughSequence",o[f][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[f][1].start),end:Object.assign({},o[c][1].end)},m={type:"strikethroughText",start:Object.assign({},o[f][1].end),end:Object.assign({},o[c][1].start)},p=[["enter",d,l],["enter",o[f][1],l],["exit",o[f][1],l],["enter",m,l]],g=l.parser.constructs.insideSpan.null;g&&Qr(p,p.length,0,B1(g,o.slice(f+1,c),l)),Qr(p,p.length,0,[["exit",m,l],["enter",o[c][1],l],["exit",o[c][1],l],["exit",d,l]]),Qr(o,f-1,c-f+3,p),c=f+p.length-2;break}}for(c=-1;++c<o.length;)o[c][1].type==="strikethroughSequenceTemporary"&&(o[c][1].type="data");return o}function a(o,l,c){const f=this.previous,d=this.events;let m=0;return p;function p(y){return f===126&&d[d.length-1][1].type!=="characterEscape"?c(y):(o.enter("strikethroughSequenceTemporary"),g(y))}function g(y){const x=Cc(f);if(y===126)return m>1?c(y):(o.consume(y),m++,g);if(m<2&&!n)return c(y);const k=o.exit("strikethroughSequenceTemporary"),w=Cc(y);return k._open=!w||w===2&&!!x,k._close=!x||x===2&&!!w,l(y)}}}class eme{constructor(){this.map=[]}add(t,n,r){tme(this,t,n,r)}consume(t){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function tme(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 nme(e,t){let n=!1;const r=[];for(;t<e.length;){const 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"){const a=r.length-1;r[a]=r[a]==="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 rme(){return{flow:{null:{name:"table",tokenize:ime,resolveAll:ame}}}}function ime(e,t,n){const r=this;let i=0,a=0,o;return l;function l(q){let V=r.events.length-1;for(;V>-1;){const B=r.events[V][1].type;if(B==="lineEnding"||B==="linePrefix")V--;else break}const W=V>-1?r.events[V][1].type:null,I=W==="tableHead"||W==="tableRow"?A:c;return I===A&&r.parser.lazy[r.now().line]?n(q):I(q)}function c(q){return e.enter("tableHead"),e.enter("tableRow"),f(q)}function f(q){return q===124||(o=!0,a+=1),d(q)}function d(q){return q===null?n(q):Ye(q)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(q),e.exit("lineEnding"),g):n(q):dt(q)?vt(e,d,"whitespace")(q):(a+=1,o&&(o=!1,i+=1),q===124?(e.enter("tableCellDivider"),e.consume(q),e.exit("tableCellDivider"),o=!0,d):(e.enter("data"),m(q)))}function m(q){return q===null||q===124||qt(q)?(e.exit("data"),d(q)):(e.consume(q),q===92?p:m)}function p(q){return q===92||q===124?(e.consume(q),m):m(q)}function g(q){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(q):(e.enter("tableDelimiterRow"),o=!1,dt(q)?vt(e,y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):y(q))}function y(q){return q===45||q===58?k(q):q===124?(o=!0,e.enter("tableCellDivider"),e.consume(q),e.exit("tableCellDivider"),x):z(q)}function x(q){return dt(q)?vt(e,k,"whitespace")(q):k(q)}function k(q){return q===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(q),e.exit("tableDelimiterMarker"),w):q===45?(a+=1,w(q)):q===null||Ye(q)?T(q):z(q)}function w(q){return q===45?(e.enter("tableDelimiterFiller"),C(q)):z(q)}function C(q){return q===45?(e.consume(q),C):q===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(q),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(q))}function S(q){return dt(q)?vt(e,T,"whitespace")(q):T(q)}function T(q){return q===124?y(q):q===null||Ye(q)?!o||i!==a?z(q):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(q)):z(q)}function z(q){return n(q)}function A(q){return e.enter("tableRow"),L(q)}function L(q){return q===124?(e.enter("tableCellDivider"),e.consume(q),e.exit("tableCellDivider"),L):q===null||Ye(q)?(e.exit("tableRow"),t(q)):dt(q)?vt(e,L,"whitespace")(q):(e.enter("data"),G(q))}function G(q){return q===null||q===124||qt(q)?(e.exit("data"),L(q)):(e.consume(q),q===92?H:G)}function H(q){return q===92||q===124?(e.consume(q),G):G(q)}}function ame(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],l=!1,c=0,f,d,m;const p=new eme;for(;++n<e.length;){const g=e[n],y=g[1];g[0]==="enter"?y.type==="tableHead"?(l=!1,c!==0&&(f5(p,t,c,f,d),d=void 0,c=0),f={type:"table",start:Object.assign({},y.start),end:Object.assign({},y.end)},p.add(n,0,[["enter",f,t]])):y.type==="tableRow"||y.type==="tableDelimiterRow"?(r=!0,m=void 0,a=[0,0,0,0],o=[0,n+1,0,0],l&&(l=!1,d={type:"tableBody",start:Object.assign({},y.start),end:Object.assign({},y.end)},p.add(n,0,[["enter",d,t]])),i=y.type==="tableDelimiterRow"?2:d?3:1):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],m=qp(p,t,a,i,void 0,m),a=[0,0,0,0]),o[2]=n)):y.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],m=qp(p,t,a,i,void 0,m)),a=o,o=[a[1],n,0,0])):y.type==="tableHead"?(l=!0,c=n):y.type==="tableRow"||y.type==="tableDelimiterRow"?(c=n,a[1]!==0?(o[0]=o[1],m=qp(p,t,a,i,n,m)):o[1]!==0&&(m=qp(p,t,o,i,n,m)),i=0):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")&&(o[3]=n)}for(c!==0&&f5(p,t,c,f,d),p.consume(t.events),n=-1;++n<t.events.length;){const g=t.events[n];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=nme(t.events,n))}return e}function qp(e,t,n,r,i,a){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(a.end=Object.assign({},Vu(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const c=Vu(t.events,n[1]);if(a={type:o,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const f=Vu(t.events,n[2]),d=Vu(t.events,n[3]),m={type:l,start:Object.assign({},f),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",m,t]]),r!==2){const p=t.events[n[2]],g=t.events[n[3]];if(p[1].end=Object.assign({},g[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const y=n[2]+1,x=n[3]-n[2]-1;e.add(y,x,[])}}e.add(n[3]+1,0,[["exit",m,t]])}return i!==void 0&&(a.end=Object.assign({},Vu(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function f5(e,t,n,r,i){const a=[],o=Vu(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 Vu(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const ome={name:"tasklistCheck",tokenize:lme};function sme(){return{text:{91:ome}}}function lme(e,t,n){const r=this;return i;function i(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),a)}function a(c){return qt(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),o):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),o):n(c)}function o(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(c)}function l(c){return Ye(c)?t(c):dt(c)?e.check({tokenize:ume},t,n)(c):n(c)}}function ume(e,t,n){return vt(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function cme(e){return OL([Ode(),Hde(),Jde(e),rme(),sme()])}const fme={};function hme(e){const t=this,n=e||fme,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(cme(n)),a.push(Nde()),o.push(zde(n))}const h5=420,dme=["p","strong","em","a","code","br","ul","ol","li"];function nE({markdown:e,sourceFilePath:t,sourceAnchor:n,variant:r="detail",scrollToAnchor:i}){const a=Cw(t),o=gme(mme(e)),l=r==="preview"?_me(o):o.trim(),c=se.useMemo(()=>kme({variant:r}),[r]);return se.useEffect(()=>{if(!i)return;const f=window.requestAnimationFrame(()=>{var d;(d=document.getElementById(i))==null||d.scrollIntoView({behavior:"smooth"})});return()=>window.cancelAnimationFrame(f)},[l,i]),l?b.jsx(Ite,{variant:r,children:b.jsx(Jfe,{remarkPlugins:[hme],skipHtml:!0,unwrapDisallowed:r==="preview",allowedElements:r==="preview"?dme:void 0,urlTransform:f=>pme(f,{sourceFilePath:t,sourceHtmlPath:a}),components:c,children:l})}):b.jsx(O1,{inline:!0,tone:"empty",children:"-"})}function mme(e){var r;const n=e.replace(/^\uFEFF/,"").split(/\r?\n/);if(((r=n[0])==null?void 0:r.trim())!=="---")return e;for(let i=1;i<n.length;i+=1)if(n[i].trim()==="---"){const a=n.slice(1,i).join(`
|
|
83
|
+
`);return/^[A-Za-z0-9_-]+\s*:/m.test(a)?n.slice(i+1).join(`
|
|
84
|
+
`).replace(/^\s+/,""):e}return e}function pme(e,t){const n=n7(e);if(!n)return"";if(T7(n)||n.startsWith("/")||n.startsWith("#/"))return n;const r=vme(t.sourceHtmlPath||Cw(t.sourceFilePath));if(n.startsWith("#")||n.startsWith("?"))return r?`${r}${n}`:n;const{path:i,suffix:a}=bme(n);if(!i)return`${r}${a}`;const o=wme(xme(t.sourceFilePath),i);return o.toLowerCase().endsWith(".md")?`${Cw(o)}${a}`:`${o}${a}`}function _me(e){const t=e.trim().replace(/\s+/g," ");return t.length>h5?`${t.slice(0,h5).trimEnd()}...`:t}function gme(e){return yme(e)}function yme(e){return e.replace(/^\s*#\s+Elements?\s*(?:\r?\n)+/i,"")}function Cw(e){return`#/content/${e}`}function T7(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)||e.startsWith("//")}function vme(e){return T7(e)?"":e}function bme(e){const t=e.indexOf("#"),n=e.indexOf("?"),r=t===-1?n:n===-1?t:Math.min(t,n);return r===-1?{path:e,suffix:""}:{path:e.slice(0,r),suffix:e.slice(r)}}function xme(e){const t=e.lastIndexOf("/");return t===-1?"":e.slice(0,t)}function wme(e,t){const n=`${e?`${e}/`:""}${t}`.split("/"),r=[];for(const i of n)if(!(!i||i===".")){if(i===".."){r.length>0?r.pop():r.push(i);continue}r.push(i)}return r.join("/")}function kme({variant:e}){return{a({href:n,children:r,node:i,...a}){const o=!!(n&&/^[a-z][a-z0-9+.-]*:/i.test(n));return b.jsx("a",{...a,href:n,target:o?"_blank":void 0,rel:o?"noreferrer":void 0,children:r})},table({children:n,node:r,...i}){return b.jsx("div",{className:Lte,children:b.jsx("table",{...i,children:n})})},img({src:n,alt:r,node:i,...a}){return n?b.jsx("img",{...a,src:n,alt:r??""}):null},h1({children:n,node:r,...i}){return b.jsx("h1",{id:$p(n),...i,children:n})},h2({children:n,node:r,...i}){return b.jsx("h2",{id:$p(n),...i,children:n})},h3({children:n,node:r,...i}){return b.jsx("h3",{id:$p(n),...i,children:n})},h4({children:n,node:r,...i}){return b.jsx("h4",{id:$p(n),...i,children:n})},pre({children:n,node:r,...i}){const a=Eme(n);return a&&e==="detail"&&a.language==="mermaid"?b.jsx(C7,{code:a.code}):a&&e==="detail"&&["d3-tree","d3-sunburst","d3-icicle"].includes(a.language)?b.jsx(Mme,{code:a.code,mode:a.language.replace("d3-","")}):a&&e==="detail"&&a.language==="d3-sankey"?b.jsx(A7,{code:a.code,label:"D3 sankey"}):b.jsx("pre",{...i,children:n})},code({className:n,children:r,node:i,...a}){return b.jsx("code",{className:n,...a,children:r})}}}function Eme(e){var i;const t=se.Children.toArray(e)[0];if(!se.isValidElement(t))return null;const n=t,r=((i=/language-([a-z0-9-]+)/i.exec(n.props.className??""))==null?void 0:i[1])??"";return r?{language:r,code:String(n.props.children??"").replace(/\n$/,"")}:null}let Ip=null;function Sme(){return window.mermaid?Promise.resolve(window.mermaid):(Ip||(Ip=Q(async()=>{const{default:e}=await import("./explorer-mermaid.core.js").then(t=>t.aT);return{default:e}},[],import.meta.url).then(({default:e})=>(e.initialize({startOnLoad:!1,theme:"neutral",maxTextSize:5e6,maxEdges:5e4,flowchart:{useMaxWidth:!0,htmlLabels:!0,curve:"basis"},securityLevel:"loose",logLevel:"error"}),window.mermaid=e,e)).catch(e=>{throw Ip=null,e})),Ip)}function C7({code:e,nodeClickTargets:t,onNodeClick:n,onRenderSettled:r}){const i=se.useRef(null),a=se.useId().replace(/[^a-zA-Z0-9_-]/g,""),o=se.useMemo(()=>Tme(e),[e]),[l,c]=se.useState(!1);return se.useEffect(()=>{if(!i.current)return;let f=!1;const d=i.current;let m,p,g=!1;const y=()=>{g||(g=!0,r==null||r())};return d.textContent="",c(!1),Sme().then(x=>f?null:x.render(`reqvire-mermaid-${a}`,o)).then(x=>{var w;if(!x)return;if(f){y();return}const k=typeof x=="string"?x:x.svg;Cme(d,k),c(!1),typeof x!="string"&&((w=x.bindFunctions)==null||w.call(x,d)),p=Ame(d,t,n);try{m=Rme(d)}catch(C){console.warn("[Reqvire Explorer] Mermaid interaction setup failed",C)}y()}).catch(x=>{if(f){y();return}console.warn("[Reqvire Explorer] Mermaid render failed",x),c(!0),y()}),()=>{f=!0,m==null||m(),p==null||p(),y()}},[t,n,r,o,a]),b.jsxs(b.Fragment,{children:[b.jsx("div",{ref:i,className:"mermaid",hidden:l}),l?b.jsx(zk,{"data-diagram-kind":"fallback",children:b.jsx(O1,{children:"Unable to render Mermaid diagram."})}):null]})}function Tme(e){return oee(e)}function Cme(e,t){const n=document.createElement("template");n.innerHTML=t.trim();const r=n.content.querySelector("svg");if(!r)throw new Error("Mermaid did not return an SVG document");e.replaceChildren(document.importNode(r,!0))}function Ame(e,t,n){if(!t||t.size===0||!n)return;const r=e.querySelector("svg");if(!(r instanceof SVGSVGElement))return;const i=[...r.querySelectorAll(".node")],a=[];for(const[c,f]of t.entries())for(const d of i)jme(d,c)&&(d.dataset.reqvireElementId=f,d.classList.add("is-reqvire-clickable-node"),d.setAttribute("role","link"),d.setAttribute("tabindex","0"),a.push(d));const o=c=>{const f=c.target;if(!(f instanceof Element))return;const d=f.closest("[data-reqvire-element-id]"),m=d==null?void 0:d.dataset.reqvireElementId;m&&(c.preventDefault(),c.stopPropagation(),n(m))},l=c=>{if(c.key!=="Enter"&&c.key!==" ")return;const f=c.target;if(!(f instanceof Element))return;const d=f.closest("[data-reqvire-element-id]"),m=d==null?void 0:d.dataset.reqvireElementId;m&&(c.preventDefault(),c.stopPropagation(),n(m))};return r.addEventListener("click",o),r.addEventListener("keydown",l),()=>{r.removeEventListener("click",o),r.removeEventListener("keydown",l);for(const c of a)delete c.dataset.reqvireElementId,c.classList.remove("is-reqvire-clickable-node"),c.removeAttribute("role"),c.removeAttribute("tabindex")}}function jme(e,t){return[e.id,e.getAttribute("data-id"),e.getAttribute("data-node-id")].filter(Boolean).some(r=>r===t||r===`flowchart-${t}`||(r==null?void 0:r.includes(`-${t}-`))||(r==null?void 0:r.includes(t)))}function Rme(e){const t=e.querySelector("svg");if(!(t instanceof SVGSVGElement))return()=>{};e.classList.add("mermaid-interactive");const n=zme(t);if(!n)return()=>{};const r=48,i={x:n.x-r/2,y:n.y-r/2,width:Math.max(1,n.width+r),height:Math.max(1,n.height+r)};let a={...i},o={...i},l=!1,c=null;const f=()=>{t.setAttribute("viewBox",`${o.x} ${o.y} ${o.width} ${o.height}`)};t.removeAttribute("width"),t.removeAttribute("height"),t.style.maxWidth="none",t.style.width="100%",t.style.height="100%",requestAnimationFrame(()=>{const S=e.clientWidth||720,T=Nme(e),z=T!==null,A=T===null?460:Math.min(260,T),L=T??Math.max(460,window.innerHeight-180),G=Math.ceil(i.height+24),H=Math.min(Math.max(A,G),L),q=i.width>S||G>H;if(e.style.minHeight="0",e.style.height=q?`${H}px`:`${Math.min(Math.max(A,G),L)}px`,z){a={...i},o={...a},f();return}if(q){a={x:i.x,y:i.y,width:Math.min(i.width,Math.max(760,S)),height:Math.min(i.height,H)},o={...a},f();return}a={...i},o={...a},f()});const d=(S,T,z)=>{const A=t.getBoundingClientRect(),L=T===void 0||A.width===0?.5:(T-A.left)/A.width,G=z===void 0||A.height===0?.5:(z-A.top)/A.height,H=d5(o.width*S,a.width/8,i.width*4),q=d5(o.height*S,a.height/8,i.height*4),V=o.x+o.width*L,W=o.y+o.height*G;o={x:V-H*L,y:W-q*G,width:H,height:q},f()},m=(S,T)=>{o={...o,x:o.x+S,y:o.y+T},f()},p=()=>{o={...a},f()},g=document.createElement("div");g.className="diagram-nav-buttons",[["zoom-in","+","Zoom in"],["zoom-out","-","Zoom out"],["reset","Reset","Reset diagram view"],["up","Up","Pan up"],["down","Down","Pan down"],["left","Left","Pan left"],["right","Right","Pan right"]].forEach(([S,T,z])=>{const A=document.createElement("button");A.className="diagram-nav-btn",A.type="button",A.dataset.action=S,A.setAttribute("aria-label",z),A.textContent=T,g.appendChild(A)}),e.appendChild(g);const y=S=>{const T=S.target.closest("[data-action]");if(!T)return;S.preventDefault();const z=o.width*.12,A=o.height*.12;switch(T.dataset.action){case"zoom-in":d(.8);break;case"zoom-out":d(1.25);break;case"reset":p();break;case"up":m(0,-A);break;case"down":m(0,A);break;case"left":m(-z,0);break;case"right":m(z,0);break}},x=S=>{!S.ctrlKey&&!S.metaKey||(S.preventDefault(),d(S.deltaY<0?.88:1.14,S.clientX,S.clientY))},k=S=>{if(S.button!==0)return;const T=S.target;T instanceof Element&&T.closest("[data-reqvire-element-id], a[href]")||(l=!0,c={x:S.clientX,y:S.clientY,viewBox:{...o}},t.setPointerCapture(S.pointerId),e.classList.add("is-panning"))},w=S=>{if(!l||!c)return;const T=t.getBoundingClientRect();if(T.width===0||T.height===0)return;const z=(S.clientX-c.x)/T.width*c.viewBox.width,A=(S.clientY-c.y)/T.height*c.viewBox.height;o={...c.viewBox,x:c.viewBox.x-z,y:c.viewBox.y-A},f()},C=S=>{l=!1,c=null,e.classList.remove("is-panning"),t.hasPointerCapture(S.pointerId)&&t.releasePointerCapture(S.pointerId)};return g.addEventListener("click",y),t.addEventListener("wheel",x,{passive:!1}),t.addEventListener("pointerdown",k),t.addEventListener("pointermove",w),t.addEventListener("pointerup",C),t.addEventListener("pointercancel",C),Lme(t),()=>{g.removeEventListener("click",y),g.remove(),t.removeEventListener("wheel",x),t.removeEventListener("pointerdown",k),t.removeEventListener("pointermove",w),t.removeEventListener("pointerup",C),t.removeEventListener("pointercancel",C)}}function Nme(e){const t=e.closest(".trace-rollup-diagram");if(!(t instanceof HTMLElement))return null;const n=window.getComputedStyle(t),r=Number.parseFloat(n.paddingTop||"0")+Number.parseFloat(n.paddingBottom||"0");return Math.max(1,t.clientHeight-r)}function zme(e){var n;try{const r=e.getBBox();if(r.width>0&&r.height>0)return r}catch{}const t=(n=e.viewBox)==null?void 0:n.baseVal;return t&&t.width>0&&t.height>0?t:null}function Lme(e){const t=[...e.querySelectorAll(".node")],n=[...e.querySelectorAll("path.flowchart-link, .edges path")],r=()=>{n.forEach(i=>i.classList.remove("edge-highlighted")),t.forEach(i=>{i.style.filter=""})};t.forEach(i=>{i.addEventListener("mouseenter",()=>{r(),i.style.filter="var(--filter-highlight-glow)",n.forEach(a=>a.classList.add("edge-highlighted"))}),i.addEventListener("mouseleave",r)})}function d5(e,t,n){return Math.min(Math.max(e,t),n)}function Mme({code:e,mode:t}){const n=se.useRef(null),r=se.useMemo(()=>Ome(e),[e]);return se.useEffect(()=>{const i=n.current;!i||!r.ok||Dme(i,r.data,t)},[t,r]),r.ok?b.jsx(zk,{"data-diagram-kind":t,children:b.jsx("svg",{ref:n,role:"img","aria-label":`D3 ${t} diagram`})}):b.jsx(A7,{code:e,label:`D3 ${t}`})}function A7({code:e,label:t}){return b.jsx(zk,{"data-diagram-kind":"fallback",children:b.jsx(O1,{title:t,children:b.jsx("pre",{children:b.jsx("code",{children:e})})})})}function Ome(e){try{const t=JSON.parse(e);return!t||typeof t!="object"?{ok:!1}:{ok:!0,data:t}}catch{return{ok:!1}}}function Dme(e,t,n){var g;const r=Math.max(680,((g=e.parentElement)==null?void 0:g.clientWidth)??680),i=n==="tree"?460:560,a=Bn(e);a.selectAll("*").remove(),a.attr("viewBox",`0 0 ${r} ${i}`).attr("width","100%").attr("height",i);const o=c1(t).sum(y=>y.value??1);if(n==="tree"){const x=R9().size([i-60,r-180])(o),k=a.append("g").attr("transform","translate(80,30)");k.selectAll("path").data(x.links()).join("path").attr("d",az().x(C=>C.y).y(C=>C.x)).attr("fill","none").attr("stroke",Qe("--edge-default"));const w=k.selectAll("g").data(x.descendants()).join("g").attr("transform",C=>`translate(${C.y},${C.x})`);w.append("circle").attr("r",5).attr("fill",Qe("--accent")),w.append("text").attr("x",9).attr("dy","0.32em").attr("font-size",12).text(C=>qme(C.data.name??"node",34));return}const l=Math.min(r,i)/2-18,f=j9().size([2*Math.PI,l])(o),d=a.append("g").attr("transform",`translate(${r/2},${i/2})`),m=h1(kN),p=ZN().startAngle(y=>y.x0).endAngle(y=>y.x1).innerRadius(y=>n==="sunburst"?y.y0:y.y0*.92).outerRadius(y=>n==="sunburst"?y.y1:y.y1*.92);d.selectAll("path").data(f.descendants().filter(y=>y.depth>0)).join("path").attr("d",p).attr("fill",y=>m(String(y.depth))).attr("stroke",Qe("--bg-surface")).append("title").text(y=>y.ancestors().reverse().map(x=>x.data.name??"node").join(" / ")),d.append("text").attr("text-anchor","middle").attr("font-size",13).attr("font-weight",700).text(t.name??"root")}function $p(e){return String(e).trim().toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-")}function qme(e,t){return e.length>t?`${e.slice(0,Math.max(1,t-1))}...`:e}function Ime({identifier:e,onClose:t,onOpenElement:n,onOpenOntologyNode:r,onNavigateBack:i,previousElementLabel:a}){var z;const{store:o,elementById:l}=xr(),c=e?l(e):void 0,f=se.useMemo(()=>new Map(o.resources.map(A=>[A.id,A])),[o.resources]),d=se.useMemo(()=>{var L;const A=new Map;for(const G of((L=o.ontology.graph_data)==null?void 0:L.nodes)??[]){const H={id:G.id,label:G.label||G.full_uri||G.id};A.set(G.full_uri,H),A.set(G.id,H)}return A},[(z=o.ontology.graph_data)==null?void 0:z.nodes]),{relations:m,reused_contract_context:p,conceptRefs:g}=se.useMemo(()=>e?{relations:o.relations.filter(A=>A.source_id===e||A.target_id===e),reused_contract_context:o.reused_contract_context.filter(A=>A.source_id===e),conceptRefs:o.concept_refs.filter(A=>A.source_id===e)}:{relations:[],reused_contract_context:[],conceptRefs:[]},[e,o]),y=se.useMemo(()=>c?m.map(A=>Gme(A,c.id,l,f)).filter(Bme):[],[c,l,m,f]),x=se.useMemo(()=>p.map(A=>{const L=Xme(A,l,f);return{id:A.id,targetId:A.target,kind:A.target_kind,resourceKind:L.resourceKind,label:L.label,elementType:L.elementType,typeFamily:L.typeFamily,href:L.href,external:L.external}}),[p,l,f]),k=se.useMemo(()=>g.map(A=>{const L=d.get(A.iri);return{id:A.id,label:A.label,iri:A.iri,ontologyNodeId:L==null?void 0:L.id,ontologyLabel:L==null?void 0:L.label}}),[g,d]),w=A=>{window.location.hash=A},C=e!==null,S=a?l(a):void 0,T=(S==null?void 0:S.name)??a??void 0;return b.jsx(dre,{open:C,onOpenChange:A=>!A&&t(),title:c?c.name:"Element not found",typeFamily:c==null?void 0:c.type_family,elementType:c==null?void 0:c.element_type,showHeaderClose:!!c,sourceHref:c?Ume(c.source_anchor,c.file_path):null,backLabel:T?`Back to ${T}`:void 0,onNavigateBack:i,onOpenSource:w,children:c?b.jsx(_re,{metaBadges:$me(c),content:b.jsx(nE,{markdown:c.content,sourceFilePath:c.file_path,sourceAnchor:c.source_anchor}),relations:y,reused_contract_context:x,conceptReferences:k,onOpenElement:n,onOpenConceptReference:A=>{A.ontologyNodeId&&r(A.ontologyNodeId)},onOpenResource:w}):b.jsx(gre,{identifier:e??""})})}function $me(e){const t=[];for(const[r,i]of Object.entries(e.metadata))r==="type"&&i===e.element_type||t.push({key:r,value:i,provenance:"explicit"});const n=new Set(t.map(r=>r.key.toLowerCase()));for(const[r,i]of Object.entries(e.governance)){if(n.has(r.toLowerCase()))continue;const{value:a,provenance:o}=Pme(i);t.push({key:r,value:a,provenance:o})}return t}function Pme(e){const t=e.match(/^(.*?)\s*\(explicit\)$/);if(t)return{value:t[1].trim(),provenance:"explicit"};const n=e.match(/^(.*?)\s*\(inherited(?:,\s*from\s+[^)]*)?\)$/);return n?{value:n[1].trim(),provenance:"inherited"}:{value:e,provenance:"inherited"}}function Ume(e,t){if(e.startsWith("#/content/"))return e;if(e.startsWith("#"))return`${cd(t)}${e}`;const n=e.indexOf("#"),r=n===-1?e:e.slice(0,n),i=n===-1?"":e.slice(n),a=r.endsWith(".html")?`${r.slice(0,-5)}.md`:r;return`${cd(a||t)}${i}`}function Bme(e){return e!==null}function Gme(e,t,n,r){return e.source_id===t?{id:e.id,label:e.canonical_relation_type,target:Vme(e,n,r)}:e.target_id===t?{id:e.id,label:Fme(e),target:Hme(e,n)}:null}function Fme(e){return e.source_relation_types.find(t=>t!==e.canonical_relation_type)??e.relation_type??e.canonical_relation_type}function Hme(e,t){const n=t(e.source_id);return{id:e.source_id,label:(n==null?void 0:n.name)??e.source_id,kind:"element",elementType:n==null?void 0:n.element_type,typeFamily:n==null?void 0:n.type_family,href:$1(e.source_id),external:!1}}function Vme(e,t,n){if(e.target_kind==="element"){const r=t(e.target_id);return{id:e.target_id,label:(r==null?void 0:r.name)??e.target_id,kind:"element",elementType:r==null?void 0:r.element_type,typeFamily:r==null?void 0:r.type_family,href:$1(e.target_id),external:!1}}if(e.resource_id){const r=n.get(e.resource_id);if(r!=null&&r.external_url)return{id:e.resource_id,label:r.display||r.target,kind:r.kind,href:r.external_url,external:!0};if(r!=null&&r.file_path)return{id:e.resource_id,label:r.display||r.target,kind:r.kind,href:cd(r.file_path),external:!1};if(r)return{id:e.resource_id,label:r.display||r.target,kind:r.kind,href:null,external:!1}}return{id:e.target_id,label:e.target_id,kind:e.target_kind,href:null,external:!1}}function Xme(e,t,n){if(e.target_kind==="element"){const r=t(e.target);return{label:(r==null?void 0:r.name)??e.target,elementType:r==null?void 0:r.element_type,typeFamily:r==null?void 0:r.type_family,href:$1(e.target),external:!1}}if(e.resource_id){const r=n.get(e.resource_id);if(r)return r.external_url?{label:r.display||r.target,resourceKind:r.kind,href:r.external_url,external:!0}:r.file_path?{label:r.display||r.target,resourceKind:r.kind,href:cd(r.file_path),external:!1}:{label:r.display||r.target,resourceKind:r.kind,href:null,external:!1}}return{label:e.target,href:null,external:!1}}function Yme({nodeId:e,onClose:t}){var l,c;const{store:n}=xr(),r=e?(((l=n.ontology.graph_data)==null?void 0:l.nodes)??[]).find(f=>f.id===e):void 0,i=((c=n.ontology.graph_data)==null?void 0:c.nodes)??[],[a,o]=se.useState(!1);return b.jsx(sie,{open:e!==null,onOpenChange:f=>{f||t()},node:r,nodes:i,missingNodeId:e,copiedUri:a,onCopyUri:f=>{var d;(d=navigator.clipboard)==null||d.writeText(f),o(!0),window.setTimeout(()=>o(!1),1400)},onOpenSource:f=>{f.link&&(window.location.hash=f.link,t())}})}const Aw=["file","element","resource","ontology"],Wme=["cross","verification","trace"],m5=["class","object-property","datatype-property","property","named-individual","datatype","restriction","class-expression","node-shape","property-shape","resource"],Kme=[["layer-reqvire-context","Semantic Context","semantic"],["layer-external-source","External Sources","external"]],p5=["layer-authored","ontology-term","shacl-shape","resource","external-reference","class-membership","class-disjointness","class-expressions","domain-range","subclass","membership","disjoint","equivalence","inverse","property-chain","property-characteristic","class-expression","shape-overlay","authored","registry","construct"],rE=se.createContext(null);function Zme({children:e}){const{store:t}=xr(),n=se.useMemo(()=>Array.from(new Set(t.elements.map(D=>D.element_type).filter(Boolean))).sort(),[t.elements]),r=se.useMemo(()=>Array.from(new Set((t.knowledge_graph.nodes??[]).map(D=>D.element_type||D.node_type||D.type||"other").filter(Boolean))).sort(),[t.knowledge_graph.nodes]),[i,a]=se.useState("grid"),[o,l]=se.useState("__root__"),[c,f]=se.useState(()=>new Set(r)),[d,m]=se.useState(()=>new Set(Wme)),[p,g]=se.useState(()=>new Set(m5)),[y,x]=se.useState(()=>new Set(p5)),[k,w]=se.useState(0),[C,S]=se.useState(()=>new Set(Aw)),[T,z]=se.useState(()=>new Set(n)),[A,L]=se.useState(null),[G,H]=se.useState(null),[q,V]=se.useState(null),[W,I]=se.useState(null),B=se.useMemo(()=>({modelMode:i,setModelMode:a,modelSelectionId:o,setModelSelectionId:l,modelTypes:c,toggleModelType:D=>f(j=>Pu(j,D)),resetModelTypes:()=>f(new Set(r)),modelOverlays:d,toggleModelOverlay:D=>m(j=>Pu(j,D)),ontologyRoles:p,toggleOntologyRole:D=>g(j=>Pu(j,D)),resetOntologyRoles:()=>g(new Set(m5)),ontologyFilters:y,toggleOntologyFilter:D=>x(j=>Pu(j,D)),resetOntologyFilters:()=>x(new Set(p5)),ontologyLayoutNonce:k,resetOntologyLayout:()=>w(D=>D+1),searchKinds:C,toggleSearchKind:D=>S(j=>Pu(j,D)),searchElementTypes:T,toggleSearchElementType:D=>z(j=>Pu(j,D)),resetSearchKinds:()=>{S(new Set(Aw)),z(new Set(n))},knowledgeGraphSelectionId:A,setKnowledgeGraphSelectionId:L,ontologySelectionId:G,setOntologySelectionId:H,traceFilePath:q,setTraceFilePath:V,traceSelectionId:W,setTraceSelectionId:I}),[A,G,q,W,i,o,d,r,c,y,k,p,C,T,n]);return b.jsx(rE.Provider,{value:B,children:e})}function ei(){const e=se.useContext(rE);if(!e)throw new Error("Explorer UI state is missing");return e}function Qme(){return se.useContext(rE)}function Pu(e,t){const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}function _5(e){return e.type_family==="verification"||e.element_type.toLowerCase().includes("verification")}function j7(e){var o;const t=((o=e.traces)==null?void 0:o.files)??{},n=Object.entries(t).sort((l,c)=>l[0].localeCompare(c[0]));if(n.length>0)return n.map(([l,c])=>({file:l,verifications:(c.verifications??[]).map(f=>({id:f.identifier,name:f.name,file:f.file||l,directCount:f.directly_verified_count??0,totalCount:f.total_requirements_in_tree??0,requirementIds:f.directly_verified_requirements??[],traceTree:f.trace_tree,verificationType:f.type}))}));const r=new Map(e.elements.map(l=>[l.id,l])),i=new Map;for(const l of e.relations){if(!(l.canonical_relation_type||l.relation_type||"").toLowerCase().includes("verify"))continue;const f=r.get(l.source_id),d=r.get(l.target_id);if(!f||!d||!_5(f))continue;const m=i.get(f.id)??[];m.push(d.id),i.set(f.id,m)}const a=new Map;for(const l of e.elements.filter(_5)){const c=i.get(l.id)??[],f=a.get(l.file_path)??[];f.push({id:l.id,name:l.name,file:l.file_path,directCount:c.length,totalCount:c.length,requirementIds:c,verificationType:l.element_type}),a.set(l.file_path,f)}return[...a.entries()].sort((l,c)=>l[0].localeCompare(c[0])).map(([l,c])=>({file:l,verifications:c}))}const ki="__root__";function Jme({activeView:e,open:t,chrome:n="standalone",onToggle:r,onNavigate:i,onOpenElement:a,onOpenOntologyNode:o}){const{store:l,elementById:c}=xr(),f=ei(),d=lpe(l),m=se.useMemo(()=>ope(l.files,d),[d,l.files]),p=se.useMemo(()=>spe(j7(l),d),[d,l]),g=e==="model"&&f.modelMode==="graph",y=(e==="model"||e==="files")&&!g,x=g?"Graph Explorer":`${_L[e]} Explorer`;return b.jsxs(jse,{open:t,chrome:n,header:b.jsx(Zee,{title:x}),railMark:b.jsx(Hz,{}),onToggle:r,"aria-label":"Explorer navigation",children:[e==="ontologies"&&b.jsx(epe,{}),b.jsx(tpe,{activeView:e,onOpenElement:a,onOpenOntologyNode:o}),e==="traces"&&b.jsx(b8,{"aria-label":"Verification trace tree",children:b.jsx(N7,{folder:p,depth:0})}),y&&b.jsx(b8,{"aria-label":"Project tree",children:b.jsx(R7,{folder:m,activeView:e,elementById:c,onNavigate:i,onOpenElement:a,depth:0})})]})}function epe(){const[e,t]=se.useState("");se.useEffect(()=>{var r;(r=window.filterOntologyGraph)==null||r.call(window,e)},[e]);function n(r){var i;r.preventDefault(),(i=window.filterOntologyGraph)==null||i.call(window,e)}return b.jsx(Sse,{searchInputId:"ontology-graph-search",inputLabel:"Search Explorer",placeholder:"Search ontology graph...",value:e,resultsId:"ontology-graph-results",onQueryChange:t,onSubmit:n})}function tpe({activeView:e,onOpenElement:t,onOpenOntologyNode:n}){var d,m,p,g,y,x,k,w;const r=ei(),{store:i,elementById:a}=xr(),o=e==="model"&&r.modelMode==="graph",l=se.useMemo(()=>upe(i.knowledge_graph.nodes??[],a),[a,i.knowledge_graph.nodes]),c=se.useMemo(()=>_pe(i.elements),[i.elements]),f=se.useMemo(()=>fpe(i),[i.elements.length,i.files.length,i.resources.length,(d=i.ontology.graph_data)==null?void 0:d.nodes]);if((e==="model"||e==="files")&&!o)return null;if(o)return b.jsxs(Lp,{"aria-label":"Graph controls",children:[b.jsx(v8,{items:[{label:"Submodels",value:Zo(((m=i.knowledge_graph.summary)==null?void 0:m.submodels)??((p=i.knowledge_graph.submodels)==null?void 0:p.length)??0)},{label:"Elements",value:Zo(((g=i.knowledge_graph.summary)==null?void 0:g.elements)??i.elements.length)},{label:"Relations",value:Zo(((y=i.knowledge_graph.summary)==null?void 0:y.relations)??i.relations.length)},{label:"Reused Context",value:Zo(((x=i.knowledge_graph.summary)==null?void 0:x.reused_contract_context)??i.reused_contract_context.length)}]}),b.jsx(npe,{selectedNodeId:r.knowledgeGraphSelectionId,nodes:i.knowledge_graph.nodes??[],elementById:a,onOpenElement:t,onClear:()=>r.setKnowledgeGraphSelectionId(null)}),b.jsxs(Ka,{label:"Show",children:[b.jsx(cs,{size:"sm",onClick:r.resetModelTypes,children:"Reset filters"}),l.map(C=>b.jsx(jh,{label:g5(C.type),on:r.modelTypes.has(C.type),variant:"filter",icon:b.jsx(Ln,{type:C.type,family:C.family,size:"sm"}),meta:oh(C.count),onToggle:()=>r.toggleModelType(C.type)},C.type))]})]});if(e==="traces")return null;if(e==="coverage"){const C=hpe(i);return b.jsx(Lp,{"aria-label":"Coverage explorer",children:b.jsx(Ka,{label:"Coverage",children:b.jsx(Tse,{children:C.map(S=>b.jsx(Cse,{icon:S.icon,label:S.label,count:oh(S.count),onClick:()=>dpe(S.id)},S.id))})})})}if(e==="search")return b.jsxs(Lp,{"aria-label":"Search controls",title:"Filter by",children:[b.jsx(cs,{size:"sm",onClick:r.resetSearchKinds,children:"Reset filters"}),b.jsx(Ka,{label:"Result types",children:Aw.map(C=>b.jsx(jh,{label:gpe(C),on:r.searchKinds.has(C),variant:"filter",colorToken:ype(C),meta:oh(f[C]??0),onToggle:()=>r.toggleSearchKind(C)},C))}),c.length>0?b.jsx(Ka,{label:"Element types",children:c.map(C=>b.jsx(jh,{label:g5(C.type),on:r.searchElementTypes.has(C.type),variant:"filter",icon:b.jsx(Ln,{type:C.type,family:C.family,size:"sm"}),meta:oh(C.count),onToggle:()=>r.toggleSearchElementType(C.type)},C.type))}):null]});if(e==="ontologies"){const C=i.ontology.summary??{},S=new Map;for(const T of((k=i.ontology.graph_data)==null?void 0:k.nodes)??[])S.set(T.layer,(S.get(T.layer)??0)+1);return b.jsxs(Lp,{"aria-label":"Ontology controls",children:[b.jsx(v8,{items:[{label:"Ontologies",value:Zo(C.ontology_blocks??0)},{label:"Shapes",value:Zo(C.shape_blocks??0)},{label:"Quads",value:Zo(C.total_quads??0),title:"RDF statements (subject-predicate-object, with graph context)"},{label:"Blocks",value:Zo(C.total_blocks??0),title:"Ontology and shape source blocks discovered in the model"}]}),b.jsx(rpe,{selectedNodeId:r.ontologySelectionId,nodes:((w=i.ontology.graph_data)==null?void 0:w.nodes)??[],onOpenOntologyNode:n,onClear:()=>{var T;r.setOntologySelectionId(null),(T=window.clearOntologySelection)==null||T.call(window)}}),b.jsx(Ka,{label:"Graph",children:b.jsxs(kse,{children:[i.ontology.ttl_href?b.jsxs(Ese,{href:i.ontology.ttl_href,title:"Download the exported ontology as Turtle (ontologies.ttl)",children:[b.jsx(at,{name:"download"}),"Download .ttl"]}):null,b.jsx(cs,{tone:"ghost",size:"sm",iconLeft:b.jsx(at,{name:"rotate-ccw"}),onClick:()=>{var T;return(T=window.resetOntologyGraphLayout)==null?void 0:T.call(window)},children:"Reset layout"})]})}),b.jsx(Ka,{label:"Overlays",children:Kme.map(([T,z])=>{const A=T.replace("layer-",""),L=oh(S.get(A)??0);return b.jsx(jh,{label:z,colorToken:vpe(T),on:r.ontologyFilters.has(T),variant:"filter",meta:L,title:bpe(T),onToggle:()=>r.toggleOntologyFilter(T)},T)})}),b.jsxs(Ka,{label:"Types",children:[b.jsx(y8,{rows:[{id:"class",label:"Class",colorToken:Js("class")},{id:"named-individual",label:"Individual",colorToken:Js("named-individual")},{id:"datatype",label:"Datatype",colorToken:Js("datatype")},{id:"class-expression",label:"Class expr.",colorToken:Js("class-expression")},{id:"node-shape",label:"Node shape",colorToken:Js("node-shape")},{id:"property-shape",label:"Property shape",colorToken:Js("property-shape")},{id:"resource",label:"Resource",colorToken:Js("resource")}]}),b.jsx(y8,{rows:[{id:"relation",label:"Relation",colorToken:"--text-muted",line:!0}]})]}),b.jsx(Ka,{label:"Notation",children:b.jsx(Ase,{rows:[{symbol:"D/R",label:"Domain/range"},{symbol:"⊆",label:"Subclass"},{symbol:"∈",label:"Membership"},{symbol:"⟂",label:"Disjoint"},{symbol:"⇔",label:"Equivalence"},{symbol:"⟲",label:"Inverse"},{symbol:"∘",label:"Property chain"},{symbol:"∩",label:"Class expr."},{symbol:"SH",label:"SHACL overlay"}]})})]})}return null}function npe({selectedNodeId:e,nodes:t,elementById:n,onOpenElement:r,onClear:i}){const a=e?t.find(c=>c.id===e):void 0,o=a!=null&&a.identifier?n(a.identifier):void 0,l=(o==null?void 0:o.element_type)||(a==null?void 0:a.element_type)||(a==null?void 0:a.node_type)||(a==null?void 0:a.type)||"element";return b.jsx(mL,{ariaLabel:"Selected graph element",emptyMessage:"Select a graph node to inspect its details.",selection:o?{icon:b.jsx(Ln,{type:o.element_type,family:o.type_family,title:o.element_type,size:"sm"}),name:o.name,kind:l}:void 0,openTitle:"Open element details",onOpen:o?()=>r(o.id):void 0,onClear:i})}function rpe({selectedNodeId:e,nodes:t,onOpenOntologyNode:n,onClear:r}){const i=e?t.find(o=>o.id===e):void 0,a=i?i.semantic_type||i.node_type||i.type||"resource":"";return b.jsx(mL,{ariaLabel:"Selected ontology node",emptyMessage:"Select a graph node to inspect its details.",selection:i?{icon:b.jsx(Ln,{type:a,size:"sm"}),name:i.label||i.id,kind:a}:void 0,openTitle:"Open node details",onOpen:i?()=>n(i.id):void 0,onClear:r})}function R7({folder:e,activeView:t,elementById:n,onNavigate:r,onOpenElement:i,depth:a}){const[o,l]=se.useState(a===0),c=ei(),f=e.path===ki?"__root__":`folder:${e.path}`;function d(){c.setModelSelectionId(f),t==="files"&&r("model")}return b.jsxs(I1,{children:[b.jsx(kc,{kind:"folder",label:e.name,icon:o?b.jsx(at,{name:"folder-open",className:"file-kind-folder"}):b.jsx(at,{name:"folder",className:"file-kind-folder"}),count:e.files.length+e.folders.length,depth:a,open:o,expandable:e.files.length+e.folders.length>0,selected:c.modelSelectionId===f,onToggle:()=>l(m=>!m),onSelect:d}),o&&b.jsxs(b.Fragment,{children:[e.folders.map(m=>b.jsx(R7,{folder:m,activeView:t,elementById:n,onNavigate:r,onOpenElement:i,depth:a+1},m.path)),e.files.map(m=>b.jsx(ape,{file:m,activeView:t,elementById:n,onNavigate:r,onOpenElement:i,depth:a+1},m.path))]})]})}function N7({folder:e,depth:t}){const n=ei(),r=n.traceFilePath,i=r?M7(e,r):!1,[a,o]=se.useState(t<2||i);return se.useEffect(()=>{i&&o(!0)},[i]),b.jsxs(I1,{children:[b.jsx(kc,{kind:"folder",label:e.name,icon:a?b.jsx(at,{name:"folder-open",className:"file-kind-folder"}):b.jsx(at,{name:"folder",className:"file-kind-folder"}),count:L7(e),depth:t,open:a,expandable:e.files.length+e.folders.length>0,selected:e.path===ki&&!r,onToggle:()=>o(l=>!l),onSelect:()=>{n.setTraceFilePath(null),n.setTraceSelectionId(null)}}),a&&b.jsxs(b.Fragment,{children:[e.folders.map(l=>b.jsx(N7,{folder:l,depth:t+1},l.path)),e.files.map(l=>b.jsx(ipe,{file:l,depth:t+1},l.path))]})]})}function ipe({file:e,depth:t}){const n=ei(),r=n.traceFilePath===e.path,i=r?n.traceSelectionId:null,[a,o]=se.useState(!0);function l(){n.setTraceFilePath(e.path),n.setTraceSelectionId(null)}function c(f){n.setTraceFilePath(e.path),n.setTraceSelectionId(f)}return b.jsxs(I1,{children:[b.jsx(kc,{kind:"file",label:e.name,icon:b.jsx(at,{name:"file",className:"file-kind-file"}),count:e.verifications.length,depth:t,open:a,expandable:e.verifications.length>0,selected:r&&!i,onToggle:()=>o(f=>!f),onSelect:l}),a&&e.verifications.map(f=>b.jsx(kc,{kind:"element",label:f.name,icon:b.jsx(Ln,{type:f.type??"verification",family:"verification",size:"sm"}),depth:t+1,selected:i===f.id,onSelect:()=>c(f.id)},f.id))]})}function ape({file:e,activeView:t,elementById:n,onNavigate:r,onOpenElement:i,depth:a}){const o=ei(),l=e.element_ids.map(n).filter(Boolean),c=l.length>0,[f,d]=se.useState(c),m=`file:${e.path}`;function p(){o.setModelSelectionId(m),t==="files"&&r("model")}function g(y){o.setModelSelectionId(y),t==="files"&&r("model"),i(y)}return b.jsxs(I1,{children:[b.jsx(kc,{kind:"file",label:Ac(e.display_path||e.path),icon:b.jsx(at,{name:"file",className:"file-kind-file"}),count:l.length>0?l.length:void 0,depth:a,open:f,expandable:c,selected:o.modelSelectionId===m,onToggle:()=>d(y=>!y),onSelect:p}),f&&c&&l.map(y=>b.jsx(kc,{kind:"element",label:y.name,icon:b.jsx(Ln,{type:y.element_type,family:y.type_family,title:y.element_type,size:"sm"}),depth:a+1,selected:o.modelSelectionId===y.id,onSelect:()=>g(y.id)},y.id))]})}function Zo(e){return typeof e=="number"?e.toLocaleString():e}function ope(e,t){var i;const n={path:ki,name:t,folders:[],files:[]},r=new Map([[ki,n]]);for(const a of e){const o=a.parent_folder||ki;O7(o,r,n),(i=r.get(o))==null||i.files.push(a)}for(const a of r.values())a.folders.sort((o,l)=>o.name.localeCompare(l.name)),a.files.sort((o,l)=>Ac(o.display_path||o.path).localeCompare(Ac(l.display_path||l.path)));return n}function spe(e,t){const n={path:ki,name:t,folders:[],files:[]},r=new Map([[ki,n]]);for(const i of e){const a=i.file,o=iE(a)||ki;z7(o,r,n).files.push({path:a,name:Ac(a),verifications:(i.verifications??[]).map(c=>({id:c.id,name:c.name,type:c.verificationType})).sort((c,f)=>c.name.localeCompare(f.name))})}for(const i of r.values())i.folders.sort((a,o)=>a.name.localeCompare(o.name)),i.files.sort((a,o)=>a.name.localeCompare(o.name));return n}function lpe(e){var r,i;const t=(r=e.project.repository)==null?void 0:r.trim(),n=(i=e.project.branch)==null?void 0:i.trim();return t&&n?`${t} @ ${n}`:e.project.root_label||t||"Project"}function z7(e,t,n){if(e===ki||e==="")return n;const r=t.get(e);if(r)return r;const i=iE(e)||ki,a=z7(i,t,n),o={path:e,name:Ac(e),folders:[],files:[]};return t.set(e,o),a.folders.push(o),o}function L7(e){return e.files.reduce((t,n)=>t+n.verifications.length,0)+e.folders.reduce((t,n)=>t+L7(n),0)}function M7(e,t){return e.files.some(n=>n.path===t)||e.folders.some(n=>M7(n,t))}function O7(e,t,n){if(e===ki||e==="")return n;const r=t.get(e);if(r)return r;const i=iE(e)||ki,a=O7(i,t,n),o={path:e,name:Ac(e),folders:[],files:[]};return t.set(e,o),a.folders.push(o),o}function Ac(e){const t=e.replace(/\\/g,"/").replace(/\/$/,"");return t.split("/").pop()||t||"Project"}function iE(e){const t=e.replace(/\\/g,"/").replace(/\/$/,""),n=t.lastIndexOf("/");return n>0?t.slice(0,n):""}function g5(e){return e.replace(/-/g," ").replace(/\b\w/g,t=>t.toUpperCase())}const Sb=["capability","requirement","contract","verification-objective","verification","test-verification","formal-proof-verification","analysis-verification","inspection-verification","demonstration-verification","specification","semantic-contract","ontology","resource","other"];function upe(e,t){const n=new Map;for(const r of e){const i=cpe(r),a=r.identifier?t(r.identifier):void 0,o=(a==null?void 0:a.type_family)||r.node_type||r.type||i,l=n.get(i);l?l.count+=1:n.set(i,{type:i,family:o,count:1})}return Array.from(n.values()).sort((r,i)=>{const a=Sg(r.type,r.family),o=Sg(i.type,i.family);return a-o||r.type.localeCompare(i.type)})}function cpe(e){return e.element_type||e.node_type||e.type||"other"}function fpe(e){var t,n;return{file:e.files.length,element:e.elements.length,resource:e.resources.length,ontology:((n=(t=e.ontology.graph_data)==null?void 0:t.nodes)==null?void 0:n.length)??0}}function hpe(e){const t=dd(e.coverage)?e.coverage:{},n=dd(t.summary)?t.summary:{};return[{id:"overview",label:"Overview",count:ppe(n.total_requirements_in_scope,e.elements.length),icon:"pie-chart"},{id:"capability-coverage",label:"Capability coverage",count:mpe(t.capability_coverage),icon:"box"},{id:"unverified-requirements",label:"Unverified requirements",count:Pp(t.unverified_leaf_requirements),icon:"file"},{id:"unimplemented-requirements",label:"Unimplemented requirements",count:Pp(t.uncovered_requirements),icon:"activity"},{id:"unsatisfied-verifications",label:"Unsatisfied verifications",count:Pp(t.unsatisfied_test_verifications),icon:"x"},{id:"orphaned-verifications",label:"Orphaned verifications",count:Pp(t.orphaned_verifications),icon:"help-circle"}]}function dpe(e){window.dispatchEvent(new CustomEvent("reqvire:coverage-navigate",{detail:{section:e}}))}function Pp(e){return!dd(e)||!dd(e.files)?0:Object.values(e.files).reduce((t,n)=>t+(Array.isArray(n)?n.length:0),0)}function mpe(e){return!dd(e)||!Array.isArray(e.capabilities)?0:e.capabilities.length}function ppe(e,t=0){return typeof e=="number"&&Number.isFinite(e)?e:t}function dd(e){return typeof e=="object"&&e!==null}function _pe(e){const t=new Map;for(const n of e){if(!n.element_type)continue;const r=t.get(n.element_type);r?r.count+=1:t.set(n.element_type,{type:n.element_type,family:n.type_family||n.element_type,count:1})}return Array.from(t.values()).sort((n,r)=>{const i=Sg(n.type,n.family),a=Sg(r.type,r.family);return i-a||n.type.localeCompare(r.type)})}function Sg(e,t){const n=Sb.indexOf(e);if(n>=0)return n;const r=Sb.indexOf(t);return r>=0?r+.5:Sb.length}function oh(e){return e>=1e6?`${y5(e/1e6)}M`:e>=1e3?`${y5(e/1e3)}K`:e.toLocaleString()}function y5(e){return e>=10?Math.round(e).toString():e.toFixed(1).replace(/\.0$/,"")}function gpe(e){return{file:"Files",element:"Elements",resource:"Resources",ontology:"Ontology terms"}[e]}function ype(e){return{file:"--resource",element:"--requirement",resource:"--ontology",ontology:"--rdf-resource"}[e]}function Js(e){const t={class:"--rdf-class","object-property":"--rdf-objprop","datatype-property":"--rdf-dtprop","rdf-property":"--rdf-rdfprop",property:"--rdf-objprop","named-individual":"--rdf-individual",datatype:"--rdf-datatype",restriction:"--rdf-restriction","class-expression":"--rdf-classexpr","node-shape":"--rdf-nodeshape","property-shape":"--rdf-propshape",resource:"--rdf-resource",relation:"--edge-default"};return t[e]??t.resource}function vpe(e){return{"layer-authored":"--ontology","layer-reqvire-context":"--info","layer-external-source":"--other"}[e]??"--text-muted"}function bpe(e){return{"layer-reqvire-context":"Semantic context: model elements that declare or reference ontology terms.","layer-external-source":"External ontology source triples, when external vocabulary sources are present."}[e]??""}function D7(e,t,n){return e.kind==="file"&&t.has(e.id)&&!n.has(e.id)?"resource":e.kind}const q7=se.createContext(null);function xpe({children:e}){const{store:t}=xr(),[n,r]=se.useState("building"),[i,a]=se.useState(null),[o,l]=se.useState(0),c=se.useRef(null),f=se.useRef(0),d=se.useRef(new Map),m=se.useMemo(()=>{const y=new Map;for(const w of t.resources)y.set(w.target,w),w.file_path&&y.set(w.file_path,w);const x=new Set(t.elements.map(w=>w.file_path)),k=new Map(t.elements.map(w=>[w.id,w.element_type]));return t.search.map(w=>({...w,displayKind:D7(w,y,x),elementType:w.kind==="element"?k.get(w.id):void 0}))},[t.elements,t.resources,t.search]);se.useEffect(()=>{r("building"),a(null),l(0);const y=new Worker(new URL(""+new URL("searchIndex.worker-BWOUMmPT.js",import.meta.url).href,import.meta.url),{type:"module"});c.current=y,y.onmessage=k=>{const w=k.data;if(w.type==="ready"){l(w.documentCount),r("ready");return}if(w.type==="results"){const C=d.current.get(w.requestId);C&&(C.resolve(w.results),d.current.delete(w.requestId));return}if(w.type==="error")if(w.requestId!==void 0){const C=d.current.get(w.requestId);C&&(C.reject(new Error(w.message)),d.current.delete(w.requestId))}else a(w.message),r("error")},y.onerror=k=>{a(k.message),r("error")};const x=window.setTimeout(()=>{y.postMessage({type:"build",documents:m})},0);return()=>{window.clearTimeout(x);for(const k of d.current.values())k.reject(new Error("Search index worker was stopped."));d.current.clear(),y.terminate(),c.current===y&&(c.current=null)}},[m]);const p=se.useCallback((y,x,k)=>{if(n!=="ready"||!c.current)return Promise.resolve([]);const w=f.current+1;return f.current=w,new Promise((C,S)=>{var T;d.current.set(w,{resolve:C,reject:S}),(T=c.current)==null||T.postMessage({type:"search",requestId:w,query:y,enabledKinds:Array.from(x),enabledElementTypes:Array.from(k)})})},[n]),g=se.useMemo(()=>({status:n,error:i,documentCount:o,search:p}),[o,i,p,n]);return b.jsx(q7.Provider,{value:g,children:e})}function wpe(){const e=se.useContext(q7);if(!e)throw new Error("useSearchIndex must be used within SearchIndexProvider");return e}function kpe(){const e=se.useRef(Ih),t=se.useCallback(()=>{const c=Fse(typeof window<"u"?window.location.hash:"",e.current);return e.current=c.view,c},[]),[n,r]=se.useState(t),i=se.useCallback(c=>{window.location.hash=c,r(t())},[t]);se.useEffect(()=>{const c=()=>r(t());return window.addEventListener("hashchange",c),window.location.hash||window.location.replace(v_(Ih)),()=>window.removeEventListener("hashchange",c)},[t]);const a=se.useCallback(c=>{i(v_(c))},[i]),o=se.useCallback(c=>{i($1(c))},[i]),l=se.useCallback(()=>{i(v_(e.current))},[i]);return{route:n,navigateView:a,openElement:o,closeElement:l}}function ba({testId:e,children:t}){return b.jsx(bne,{viewId:e,children:t})}var jw=Object.defineProperty,Epe=Object.getOwnPropertyDescriptor,Spe=Object.getOwnPropertyNames,Tpe=Object.prototype.hasOwnProperty,aE=(e,t)=>{let n={};for(var r in e)jw(n,r,{get:e[r],enumerable:!0});return jw(n,Symbol.toStringTag,{value:"Module"}),n},Cpe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=Spe(t),a=0,o=i.length,l;a<o;a++)l=i[a],!Tpe.call(e,l)&&l!==n&&jw(e,l,{get:(c=>t[c]).bind(null,l),enumerable:!(r=Epe(t,l))||r.enumerable});return e},I7=(e,t,n)=>(Cpe(e,t,"default"),n);const V1=[{id:"abap",name:"ABAP",import:(()=>Q(()=>import("./explorer-abap.js"),[],import.meta.url))},{id:"actionscript-3",name:"ActionScript",import:(()=>Q(()=>import("./explorer-actionscript-3.js"),[],import.meta.url))},{id:"ada",name:"Ada",import:(()=>Q(()=>import("./explorer-ada.js"),[],import.meta.url))},{id:"angular-html",name:"Angular HTML",import:(()=>Q(()=>import("./explorer-angular-html.js").then(e=>e.f),__vite__mapDeps([0,1,2,3]),import.meta.url))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>Q(()=>import("./explorer-angular-ts.js"),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url))},{id:"apache",name:"Apache Conf",import:(()=>Q(()=>import("./explorer-apache.js"),[],import.meta.url))},{id:"apex",name:"Apex",import:(()=>Q(()=>import("./explorer-apex.js"),[],import.meta.url))},{id:"apl",name:"APL",import:(()=>Q(()=>import("./explorer-apl.js"),__vite__mapDeps([6,1,2,3,7,8,9]),import.meta.url))},{id:"applescript",name:"AppleScript",import:(()=>Q(()=>import("./explorer-applescript.js"),[],import.meta.url))},{id:"ara",name:"Ara",import:(()=>Q(()=>import("./explorer-ara.js"),[],import.meta.url))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>Q(()=>import("./explorer-asciidoc.js"),[],import.meta.url))},{id:"asm",name:"Assembly",import:(()=>Q(()=>import("./explorer-asm.js"),[],import.meta.url))},{id:"astro",name:"Astro",import:(()=>Q(()=>import("./explorer-astro.js"),__vite__mapDeps([10,9,2,11,3,12,13]),import.meta.url))},{id:"awk",name:"AWK",import:(()=>Q(()=>import("./explorer-awk.js"),[],import.meta.url))},{id:"ballerina",name:"Ballerina",import:(()=>Q(()=>import("./explorer-ballerina.js"),[],import.meta.url))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>Q(()=>import("./explorer-bat.js"),[],import.meta.url))},{id:"beancount",name:"Beancount",import:(()=>Q(()=>import("./explorer-beancount.js"),[],import.meta.url))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>Q(()=>import("./explorer-berry.js"),[],import.meta.url))},{id:"bibtex",name:"BibTeX",import:(()=>Q(()=>import("./explorer-bibtex.js"),[],import.meta.url))},{id:"bicep",name:"Bicep",import:(()=>Q(()=>import("./explorer-bicep.js"),[],import.meta.url))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>Q(()=>import("./explorer-bird2.js"),[],import.meta.url))},{id:"blade",name:"Blade",import:(()=>Q(()=>import("./explorer-blade.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]),import.meta.url))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>Q(()=>import("./explorer-bsl.js"),__vite__mapDeps([17,18]),import.meta.url))},{id:"c",name:"C",import:(()=>Q(()=>import("./explorer-c.js"),[],import.meta.url))},{id:"c3",name:"C3",import:(()=>Q(()=>import("./explorer-c3.js"),[],import.meta.url))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>Q(()=>import("./explorer-cadence.js"),[],import.meta.url))},{id:"cairo",name:"Cairo",import:(()=>Q(()=>import("./explorer-cairo.js"),__vite__mapDeps([19,20]),import.meta.url))},{id:"clarity",name:"Clarity",import:(()=>Q(()=>import("./explorer-clarity.js"),[],import.meta.url))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>Q(()=>import("./explorer-clojure.js"),[],import.meta.url))},{id:"cmake",name:"CMake",import:(()=>Q(()=>import("./explorer-cmake.js"),[],import.meta.url))},{id:"cobol",name:"COBOL",import:(()=>Q(()=>import("./explorer-cobol.js"),__vite__mapDeps([21,1,2,3,8]),import.meta.url))},{id:"codeowners",name:"CODEOWNERS",import:(()=>Q(()=>import("./explorer-codeowners.js"),[],import.meta.url))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>Q(()=>import("./explorer-codeql.js"),[],import.meta.url))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>Q(()=>import("./explorer-coffee.js"),__vite__mapDeps([22,2]),import.meta.url))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>Q(()=>import("./explorer-common-lisp.js"),[],import.meta.url))},{id:"coq",name:"Coq",import:(()=>Q(()=>import("./explorer-coq.js"),[],import.meta.url))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>Q(()=>import("./explorer-cpp.js"),__vite__mapDeps([23,24,25,26,16]),import.meta.url))},{id:"crystal",name:"Crystal",import:(()=>Q(()=>import("./explorer-crystal.js"),__vite__mapDeps([27,1,2,3,16,26,28]),import.meta.url))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>Q(()=>import("./explorer-csharp.js"),[],import.meta.url))},{id:"css",name:"CSS",import:(()=>Q(()=>import("./explorer-css.js"),[],import.meta.url))},{id:"csv",name:"CSV",import:(()=>Q(()=>import("./explorer-csv.js"),[],import.meta.url))},{id:"cue",name:"CUE",import:(()=>Q(()=>import("./explorer-cue.js"),[],import.meta.url))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>Q(()=>import("./explorer-cypher.js"),[],import.meta.url))},{id:"d",name:"D",import:(()=>Q(()=>import("./explorer-d.js"),[],import.meta.url))},{id:"dart",name:"Dart",import:(()=>Q(()=>import("./explorer-dart.js"),[],import.meta.url))},{id:"dax",name:"DAX",import:(()=>Q(()=>import("./explorer-dax.js"),[],import.meta.url))},{id:"desktop",name:"Desktop",import:(()=>Q(()=>import("./explorer-desktop.js"),[],import.meta.url))},{id:"diff",name:"Diff",import:(()=>Q(()=>import("./explorer-diff.js"),[],import.meta.url))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>Q(()=>import("./explorer-docker.js"),[],import.meta.url))},{id:"dotenv",name:"dotEnv",import:(()=>Q(()=>import("./explorer-dotenv.js"),[],import.meta.url))},{id:"dream-maker",name:"Dream Maker",import:(()=>Q(()=>import("./explorer-dream-maker.js"),[],import.meta.url))},{id:"edge",name:"Edge",import:(()=>Q(()=>import("./explorer-edge.js"),__vite__mapDeps([29,11,1,2,3,15]),import.meta.url))},{id:"elixir",name:"Elixir",import:(()=>Q(()=>import("./explorer-elixir.js"),__vite__mapDeps([30,1,2,3]),import.meta.url))},{id:"elm",name:"Elm",import:(()=>Q(()=>import("./explorer-elm.js"),__vite__mapDeps([31,25,26]),import.meta.url))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>Q(()=>import("./explorer-emacs-lisp.js"),[],import.meta.url))},{id:"erb",name:"ERB",import:(()=>Q(()=>import("./explorer-erb.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>Q(()=>import("./explorer-erlang.js"),__vite__mapDeps([39,40]),import.meta.url))},{id:"fennel",name:"Fennel",import:(()=>Q(()=>import("./explorer-fennel.js"),[],import.meta.url))},{id:"fish",name:"Fish",import:(()=>Q(()=>import("./explorer-fish.js"),[],import.meta.url))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>Q(()=>import("./explorer-fluent.js"),[],import.meta.url))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>Q(()=>import("./explorer-fortran-fixed-form.js"),__vite__mapDeps([41,42]),import.meta.url))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>Q(()=>import("./explorer-fortran-free-form.js"),[],import.meta.url))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>Q(()=>import("./explorer-fsharp.js"),__vite__mapDeps([43,40]),import.meta.url))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>Q(()=>import("./explorer-gdresource.js"),__vite__mapDeps([44,45,46]),import.meta.url))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>Q(()=>import("./explorer-gdscript.js"),[],import.meta.url))},{id:"gdshader",name:"GDShader",import:(()=>Q(()=>import("./explorer-gdshader.js"),[],import.meta.url))},{id:"genie",name:"Genie",import:(()=>Q(()=>import("./explorer-genie.js"),[],import.meta.url))},{id:"gherkin",name:"Gherkin",import:(()=>Q(()=>import("./explorer-gherkin.js"),[],import.meta.url))},{id:"git-commit",name:"Git Commit Message",import:(()=>Q(()=>import("./explorer-git-commit.js"),__vite__mapDeps([47,48]),import.meta.url))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>Q(()=>import("./explorer-git-rebase.js"),__vite__mapDeps([49,28]),import.meta.url))},{id:"gleam",name:"Gleam",import:(()=>Q(()=>import("./explorer-gleam.js"),[],import.meta.url))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>Q(()=>import("./explorer-glimmer-js.js"),__vite__mapDeps([50,2,11,3,1]),import.meta.url))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>Q(()=>import("./explorer-glimmer-ts.js"),__vite__mapDeps([51,11,3,2,1]),import.meta.url))},{id:"glsl",name:"GLSL",import:(()=>Q(()=>import("./explorer-glsl.js"),__vite__mapDeps([25,26]),import.meta.url))},{id:"gn",name:"GN",import:(()=>Q(()=>import("./explorer-gn.js"),[],import.meta.url))},{id:"gnuplot",name:"Gnuplot",import:(()=>Q(()=>import("./explorer-gnuplot.js"),[],import.meta.url))},{id:"go",name:"Go",import:(()=>Q(()=>import("./explorer-go.js"),[],import.meta.url))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>Q(()=>import("./explorer-graphql.js"),__vite__mapDeps([35,2,11,36,13]),import.meta.url))},{id:"groovy",name:"Groovy",import:(()=>Q(()=>import("./explorer-groovy.js"),[],import.meta.url))},{id:"hack",name:"Hack",import:(()=>Q(()=>import("./explorer-hack.js"),__vite__mapDeps([52,1,2,3,16]),import.meta.url))},{id:"haml",name:"Ruby Haml",import:(()=>Q(()=>import("./explorer-haml.js"),__vite__mapDeps([34,2,3]),import.meta.url))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>Q(()=>import("./explorer-handlebars.js"),__vite__mapDeps([53,1,2,3,38]),import.meta.url))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>Q(()=>import("./explorer-haskell.js"),[],import.meta.url))},{id:"haxe",name:"Haxe",import:(()=>Q(()=>import("./explorer-haxe.js"),[],import.meta.url))},{id:"hcl",name:"HashiCorp HCL",import:(()=>Q(()=>import("./explorer-hcl.js"),[],import.meta.url))},{id:"hjson",name:"Hjson",import:(()=>Q(()=>import("./explorer-hjson.js"),[],import.meta.url))},{id:"hlsl",name:"HLSL",import:(()=>Q(()=>import("./explorer-hlsl.js"),[],import.meta.url))},{id:"html",name:"HTML",import:(()=>Q(()=>import("./explorer-html.js"),__vite__mapDeps([1,2,3]),import.meta.url))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>Q(()=>import("./explorer-html-derivative.js"),__vite__mapDeps([15,1,2,3]),import.meta.url))},{id:"http",name:"HTTP",import:(()=>Q(()=>import("./explorer-http.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13]),import.meta.url))},{id:"hurl",name:"Hurl",import:(()=>Q(()=>import("./explorer-hurl.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56]),import.meta.url))},{id:"hxml",name:"HXML",import:(()=>Q(()=>import("./explorer-hxml.js"),__vite__mapDeps([57,58]),import.meta.url))},{id:"hy",name:"Hy",import:(()=>Q(()=>import("./explorer-hy.js"),[],import.meta.url))},{id:"imba",name:"Imba",import:(()=>Q(()=>import("./explorer-imba.js"),[],import.meta.url))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>Q(()=>import("./explorer-ini.js"),[],import.meta.url))},{id:"java",name:"Java",import:(()=>Q(()=>import("./explorer-java.js"),[],import.meta.url))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>Q(()=>import("./explorer-javascript.js"),[],import.meta.url))},{id:"jinja",name:"Jinja",import:(()=>Q(()=>import("./explorer-jinja.js"),__vite__mapDeps([59,1,2,3]),import.meta.url))},{id:"jison",name:"Jison",import:(()=>Q(()=>import("./explorer-jison.js"),__vite__mapDeps([60,2]),import.meta.url))},{id:"json",name:"JSON",import:(()=>Q(()=>import("./explorer-json.js"),[],import.meta.url))},{id:"json5",name:"JSON5",import:(()=>Q(()=>import("./explorer-json5.js"),[],import.meta.url))},{id:"jsonc",name:"JSON with Comments",import:(()=>Q(()=>import("./explorer-jsonc.js"),[],import.meta.url))},{id:"jsonl",name:"JSON Lines",import:(()=>Q(()=>import("./explorer-jsonl.js"),[],import.meta.url))},{id:"jsonnet",name:"Jsonnet",import:(()=>Q(()=>import("./explorer-jsonnet.js"),[],import.meta.url))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>Q(()=>import("./explorer-jssm.js"),[],import.meta.url))},{id:"jsx",name:"JSX",import:(()=>Q(()=>import("./explorer-jsx.js"),[],import.meta.url))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>Q(()=>import("./explorer-julia.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62]),import.meta.url))},{id:"just",name:"Just",import:(()=>Q(()=>import("./explorer-just.js"),__vite__mapDeps([63,28,2,11,64,1,3,7,8,16,20,33,34,35,36,13,23,24,25,26,37,38]),import.meta.url))},{id:"kdl",name:"KDL",import:(()=>Q(()=>import("./explorer-kdl.js"),[],import.meta.url))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>Q(()=>import("./explorer-kotlin.js"),[],import.meta.url))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>Q(()=>import("./explorer-kusto.js"),[],import.meta.url))},{id:"latex",name:"LaTeX",import:(()=>Q(()=>import("./explorer-latex.js"),__vite__mapDeps([65,66,62]),import.meta.url))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>Q(()=>import("./explorer-lean.js"),[],import.meta.url))},{id:"less",name:"Less",import:(()=>Q(()=>import("./explorer-less.js"),[],import.meta.url))},{id:"liquid",name:"Liquid",import:(()=>Q(()=>import("./explorer-liquid.js"),__vite__mapDeps([67,1,2,3,9]),import.meta.url))},{id:"llvm",name:"LLVM IR",import:(()=>Q(()=>import("./explorer-llvm.js"),[],import.meta.url))},{id:"log",name:"Log file",import:(()=>Q(()=>import("./explorer-log.js"),[],import.meta.url))},{id:"logo",name:"Logo",import:(()=>Q(()=>import("./explorer-logo.js"),[],import.meta.url))},{id:"lua",name:"Lua",import:(()=>Q(()=>import("./explorer-lua.js"),__vite__mapDeps([37,26]),import.meta.url))},{id:"luau",name:"Luau",import:(()=>Q(()=>import("./explorer-luau.js"),[],import.meta.url))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>Q(()=>import("./explorer-make.js"),[],import.meta.url))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>Q(()=>import("./explorer-markdown.js"),[],import.meta.url))},{id:"marko",name:"Marko",import:(()=>Q(()=>import("./explorer-marko.js"),__vite__mapDeps([68,3,69,5,11]),import.meta.url))},{id:"matlab",name:"MATLAB",import:(()=>Q(()=>import("./explorer-matlab.js"),[],import.meta.url))},{id:"mdc",name:"MDC",import:(()=>Q(()=>import("./explorer-mdc.js"),__vite__mapDeps([70,40,38,15,1,2,3]),import.meta.url))},{id:"mdx",name:"MDX",import:(()=>Q(()=>import("./explorer-mdx.js"),[],import.meta.url))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>Q(()=>import("./explorer-mermaid.js"),[],import.meta.url))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>Q(()=>import("./explorer-mipsasm.js"),[],import.meta.url))},{id:"mojo",name:"Mojo",import:(()=>Q(()=>import("./explorer-mojo.js"),[],import.meta.url))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>Q(()=>import("./explorer-moonbit.js"),[],import.meta.url))},{id:"move",name:"Move",import:(()=>Q(()=>import("./explorer-move.js"),[],import.meta.url))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>Q(()=>import("./explorer-narrat.js"),[],import.meta.url))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>Q(()=>import("./explorer-nextflow.js"),__vite__mapDeps([71,72]),import.meta.url))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:(()=>Q(()=>import("./explorer-nextflow-groovy.js"),[],import.meta.url))},{id:"nginx",name:"Nginx",import:(()=>Q(()=>import("./explorer-nginx.js"),__vite__mapDeps([73,37,26]),import.meta.url))},{id:"nim",name:"Nim",import:(()=>Q(()=>import("./explorer-nim.js"),__vite__mapDeps([74,26,1,2,3,7,8,25,40]),import.meta.url))},{id:"nix",name:"Nix",import:(()=>Q(()=>import("./explorer-nix.js"),[],import.meta.url))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>Q(()=>import("./explorer-nushell.js"),[],import.meta.url))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>Q(()=>import("./explorer-objective-c.js"),[],import.meta.url))},{id:"objective-cpp",name:"Objective-C++",import:(()=>Q(()=>import("./explorer-objective-cpp.js"),[],import.meta.url))},{id:"ocaml",name:"OCaml",import:(()=>Q(()=>import("./explorer-ocaml.js"),[],import.meta.url))},{id:"odin",name:"Odin",import:(()=>Q(()=>import("./explorer-odin.js"),[],import.meta.url))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>Q(()=>import("./explorer-openscad.js"),[],import.meta.url))},{id:"pascal",name:"Pascal",import:(()=>Q(()=>import("./explorer-pascal.js"),[],import.meta.url))},{id:"perl",name:"Perl",import:(()=>Q(()=>import("./explorer-perl.js"),__vite__mapDeps([64,1,2,3,7,8,16]),import.meta.url))},{id:"php",name:"PHP",import:(()=>Q(()=>import("./explorer-php.js"),__vite__mapDeps([75,1,2,3,7,8,16,9]),import.meta.url))},{id:"pkl",name:"Pkl",import:(()=>Q(()=>import("./explorer-pkl.js"),[],import.meta.url))},{id:"plsql",name:"PL/SQL",import:(()=>Q(()=>import("./explorer-plsql.js"),[],import.meta.url))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>Q(()=>import("./explorer-po.js"),[],import.meta.url))},{id:"polar",name:"Polar",import:(()=>Q(()=>import("./explorer-polar.js"),[],import.meta.url))},{id:"postcss",name:"PostCSS",import:(()=>Q(()=>import("./explorer-postcss.js"),[],import.meta.url))},{id:"powerquery",name:"PowerQuery",import:(()=>Q(()=>import("./explorer-powerquery.js"),[],import.meta.url))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>Q(()=>import("./explorer-powershell.js"),[],import.meta.url))},{id:"prisma",name:"Prisma",import:(()=>Q(()=>import("./explorer-prisma.js"),[],import.meta.url))},{id:"prolog",name:"Prolog",import:(()=>Q(()=>import("./explorer-prolog.js"),[],import.meta.url))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>Q(()=>import("./explorer-proto.js"),[],import.meta.url))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>Q(()=>import("./explorer-pug.js"),__vite__mapDeps([76,2,3,1]),import.meta.url))},{id:"puppet",name:"Puppet",import:(()=>Q(()=>import("./explorer-puppet.js"),[],import.meta.url))},{id:"purescript",name:"PureScript",import:(()=>Q(()=>import("./explorer-purescript.js"),[],import.meta.url))},{id:"python",name:"Python",aliases:["py"],import:(()=>Q(()=>import("./explorer-python.js"),[],import.meta.url))},{id:"qml",name:"QML",import:(()=>Q(()=>import("./explorer-qml.js"),__vite__mapDeps([77,2]),import.meta.url))},{id:"qmldir",name:"QML Directory",import:(()=>Q(()=>import("./explorer-qmldir.js"),[],import.meta.url))},{id:"qss",name:"Qt Style Sheets",import:(()=>Q(()=>import("./explorer-qss.js"),[],import.meta.url))},{id:"r",name:"R",import:(()=>Q(()=>import("./explorer-r.js"),[],import.meta.url))},{id:"racket",name:"Racket",import:(()=>Q(()=>import("./explorer-racket.js"),[],import.meta.url))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>Q(()=>import("./explorer-raku.js"),[],import.meta.url))},{id:"razor",name:"ASP.NET Razor",import:(()=>Q(()=>import("./explorer-razor.js"),__vite__mapDeps([78,1,2,3,79]),import.meta.url))},{id:"reg",name:"Windows Registry Script",import:(()=>Q(()=>import("./explorer-reg.js"),[],import.meta.url))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>Q(()=>import("./explorer-regexp.js"),[],import.meta.url))},{id:"rel",name:"Rel",import:(()=>Q(()=>import("./explorer-rel.js"),[],import.meta.url))},{id:"riscv",name:"RISC-V",import:(()=>Q(()=>import("./explorer-riscv.js"),[],import.meta.url))},{id:"ron",name:"RON",import:(()=>Q(()=>import("./explorer-ron.js"),[],import.meta.url))},{id:"rosmsg",name:"ROS Interface",import:(()=>Q(()=>import("./explorer-rosmsg.js"),[],import.meta.url))},{id:"rst",name:"reStructuredText",import:(()=>Q(()=>import("./explorer-rst.js"),__vite__mapDeps([80,15,1,2,3,23,24,25,26,16,20,28,38,81,33,34,7,8,35,11,36,13,37]),import.meta.url))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>Q(()=>import("./explorer-ruby.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>Q(()=>import("./explorer-rust.js"),[],import.meta.url))},{id:"sas",name:"SAS",import:(()=>Q(()=>import("./explorer-sas.js"),__vite__mapDeps([82,16]),import.meta.url))},{id:"sass",name:"Sass",import:(()=>Q(()=>import("./explorer-sass.js"),[],import.meta.url))},{id:"scala",name:"Scala",import:(()=>Q(()=>import("./explorer-scala.js"),[],import.meta.url))},{id:"scheme",name:"Scheme",import:(()=>Q(()=>import("./explorer-scheme.js"),[],import.meta.url))},{id:"scss",name:"SCSS",import:(()=>Q(()=>import("./explorer-scss.js"),__vite__mapDeps([5,3]),import.meta.url))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>Q(()=>import("./explorer-sdbl.js"),[],import.meta.url))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>Q(()=>import("./explorer-shaderlab.js"),__vite__mapDeps([83,84]),import.meta.url))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>Q(()=>import("./explorer-shellscript.js"),[],import.meta.url))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>Q(()=>import("./explorer-shellsession.js"),__vite__mapDeps([85,28]),import.meta.url))},{id:"smalltalk",name:"Smalltalk",import:(()=>Q(()=>import("./explorer-smalltalk.js"),[],import.meta.url))},{id:"solidity",name:"Solidity",import:(()=>Q(()=>import("./explorer-solidity.js"),[],import.meta.url))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>Q(()=>import("./explorer-soy.js"),__vite__mapDeps([86,1,2,3]),import.meta.url))},{id:"sparql",name:"SPARQL",import:(()=>Q(()=>import("./explorer-sparql.js"),__vite__mapDeps([87,88]),import.meta.url))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>Q(()=>import("./explorer-splunk.js"),[],import.meta.url))},{id:"sql",name:"SQL",import:(()=>Q(()=>import("./explorer-sql.js"),[],import.meta.url))},{id:"ssh-config",name:"SSH Config",import:(()=>Q(()=>import("./explorer-ssh-config.js"),[],import.meta.url))},{id:"stata",name:"Stata",import:(()=>Q(()=>import("./explorer-stata.js"),__vite__mapDeps([89,16]),import.meta.url))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>Q(()=>import("./explorer-stylus.js"),[],import.meta.url))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>Q(()=>import("./explorer-surrealql.js"),__vite__mapDeps([90,2]),import.meta.url))},{id:"svelte",name:"Svelte",import:(()=>Q(()=>import("./explorer-svelte.js"),__vite__mapDeps([91,2,11,3,12]),import.meta.url))},{id:"swift",name:"Swift",import:(()=>Q(()=>import("./explorer-swift.js"),[],import.meta.url))},{id:"system-verilog",name:"SystemVerilog",import:(()=>Q(()=>import("./explorer-system-verilog.js"),[],import.meta.url))},{id:"systemd",name:"Systemd Units",import:(()=>Q(()=>import("./explorer-systemd.js"),[],import.meta.url))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>Q(()=>import("./explorer-talonscript.js"),[],import.meta.url))},{id:"tasl",name:"Tasl",import:(()=>Q(()=>import("./explorer-tasl.js"),[],import.meta.url))},{id:"tcl",name:"Tcl",import:(()=>Q(()=>import("./explorer-tcl.js"),[],import.meta.url))},{id:"templ",name:"Templ",import:(()=>Q(()=>import("./explorer-templ.js"),__vite__mapDeps([92,93,2,3]),import.meta.url))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>Q(()=>import("./explorer-terraform.js"),[],import.meta.url))},{id:"tex",name:"TeX",import:(()=>Q(()=>import("./explorer-tex.js"),__vite__mapDeps([66,62]),import.meta.url))},{id:"toml",name:"TOML",import:(()=>Q(()=>import("./explorer-toml.js"),[],import.meta.url))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>Q(()=>import("./explorer-ts-tags.js"),__vite__mapDeps([94,11,3,2,25,26,1,16,7,8]),import.meta.url))},{id:"tsv",name:"TSV",import:(()=>Q(()=>import("./explorer-tsv.js"),[],import.meta.url))},{id:"tsx",name:"TSX",import:(()=>Q(()=>import("./explorer-tsx.js"),[],import.meta.url))},{id:"turtle",name:"Turtle",import:(()=>Q(()=>import("./explorer-turtle.js"),[],import.meta.url))},{id:"twig",name:"Twig",import:(()=>Q(()=>import("./explorer-twig.js"),__vite__mapDeps([95,3,2,5,75,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>Q(()=>import("./explorer-typescript.js"),[],import.meta.url))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>Q(()=>import("./explorer-typespec.js"),[],import.meta.url))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>Q(()=>import("./explorer-typst.js"),[],import.meta.url))},{id:"v",name:"V",import:(()=>Q(()=>import("./explorer-v.js"),[],import.meta.url))},{id:"vala",name:"Vala",import:(()=>Q(()=>import("./explorer-vala.js"),[],import.meta.url))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>Q(()=>import("./explorer-vb.js"),[],import.meta.url))},{id:"verilog",name:"Verilog",import:(()=>Q(()=>import("./explorer-verilog.js"),[],import.meta.url))},{id:"vhdl",name:"VHDL",import:(()=>Q(()=>import("./explorer-vhdl.js"),[],import.meta.url))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>Q(()=>import("./explorer-viml.js"),[],import.meta.url))},{id:"vue",name:"Vue",import:(()=>Q(()=>import("./explorer-vue.js"),__vite__mapDeps([96,3,2,11,9,1,15]),import.meta.url))},{id:"vue-html",name:"Vue HTML",import:(()=>Q(()=>import("./explorer-vue-html.js"),__vite__mapDeps([97,2]),import.meta.url))},{id:"vue-vine",name:"Vue Vine",import:(()=>Q(()=>import("./explorer-vue-vine.js"),__vite__mapDeps([98,3,5,69,99,12,2]),import.meta.url))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>Q(()=>import("./explorer-vyper.js"),[],import.meta.url))},{id:"wasm",name:"WebAssembly",import:(()=>Q(()=>import("./explorer-wasm2.js"),[],import.meta.url))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>Q(()=>import("./explorer-wenyan.js"),[],import.meta.url))},{id:"wgsl",name:"WGSL",import:(()=>Q(()=>import("./explorer-wgsl.js"),[],import.meta.url))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>Q(()=>import("./explorer-wikitext.js"),[],import.meta.url))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>Q(()=>import("./explorer-wit.js"),[],import.meta.url))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>Q(()=>import("./explorer-wolfram.js"),[],import.meta.url))},{id:"xml",name:"XML",import:(()=>Q(()=>import("./explorer-xml.js"),__vite__mapDeps([7,8]),import.meta.url))},{id:"xsl",name:"XSL",import:(()=>Q(()=>import("./explorer-xsl.js"),__vite__mapDeps([100,7,8]),import.meta.url))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>Q(()=>import("./explorer-yaml.js"),[],import.meta.url))},{id:"zenscript",name:"ZenScript",import:(()=>Q(()=>import("./explorer-zenscript.js"),[],import.meta.url))},{id:"zig",name:"Zig",import:(()=>Q(()=>import("./explorer-zig.js"),[],import.meta.url))}],oE=Object.fromEntries(V1.map(e=>[e.id,e.import])),sE=Object.fromEntries(V1.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(n=>[n,e.import]))||[]})),lE={...oE,...sE},uE=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>Q(()=>import("./explorer-andromeeda.js"),[],import.meta.url))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>Q(()=>import("./explorer-aurora-x.js"),[],import.meta.url))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>Q(()=>import("./explorer-ayu-dark.js"),[],import.meta.url))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>Q(()=>import("./explorer-ayu-light.js"),[],import.meta.url))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>Q(()=>import("./explorer-ayu-mirage.js"),[],import.meta.url))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>Q(()=>import("./explorer-catppuccin-frappe.js"),[],import.meta.url))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>Q(()=>import("./explorer-catppuccin-latte.js"),[],import.meta.url))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>Q(()=>import("./explorer-catppuccin-macchiato.js"),[],import.meta.url))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>Q(()=>import("./explorer-catppuccin-mocha.js"),[],import.meta.url))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>Q(()=>import("./explorer-dark-plus.js"),[],import.meta.url))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>Q(()=>import("./explorer-dracula.js"),[],import.meta.url))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>Q(()=>import("./explorer-dracula-soft.js"),[],import.meta.url))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>Q(()=>import("./explorer-everforest-dark.js"),[],import.meta.url))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>Q(()=>import("./explorer-everforest-light.js"),[],import.meta.url))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>Q(()=>import("./explorer-github-dark.js"),[],import.meta.url))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>Q(()=>import("./explorer-github-dark-default.js"),[],import.meta.url))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>Q(()=>import("./explorer-github-dark-dimmed.js"),[],import.meta.url))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>Q(()=>import("./explorer-github-dark-high-contrast.js"),[],import.meta.url))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>Q(()=>import("./explorer-github-light.js"),[],import.meta.url))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>Q(()=>import("./explorer-github-light-default.js"),[],import.meta.url))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>Q(()=>import("./explorer-github-light-high-contrast.js"),[],import.meta.url))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>Q(()=>import("./explorer-gruvbox-dark-hard.js"),[],import.meta.url))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>Q(()=>import("./explorer-gruvbox-dark-medium.js"),[],import.meta.url))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>Q(()=>import("./explorer-gruvbox-dark-soft.js"),[],import.meta.url))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>Q(()=>import("./explorer-gruvbox-light-hard.js"),[],import.meta.url))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>Q(()=>import("./explorer-gruvbox-light-medium.js"),[],import.meta.url))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>Q(()=>import("./explorer-gruvbox-light-soft.js"),[],import.meta.url))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>Q(()=>import("./explorer-horizon.js"),[],import.meta.url))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>Q(()=>import("./explorer-horizon-bright.js"),[],import.meta.url))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>Q(()=>import("./explorer-houston.js"),[],import.meta.url))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>Q(()=>import("./explorer-kanagawa-dragon.js"),[],import.meta.url))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>Q(()=>import("./explorer-kanagawa-lotus.js"),[],import.meta.url))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>Q(()=>import("./explorer-kanagawa-wave.js"),[],import.meta.url))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>Q(()=>import("./explorer-laserwave.js"),[],import.meta.url))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>Q(()=>import("./explorer-light-plus.js"),[],import.meta.url))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>Q(()=>import("./explorer-material-theme.js"),[],import.meta.url))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>Q(()=>import("./explorer-material-theme-darker.js"),[],import.meta.url))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>Q(()=>import("./explorer-material-theme-lighter.js"),[],import.meta.url))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>Q(()=>import("./explorer-material-theme-ocean.js"),[],import.meta.url))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>Q(()=>import("./explorer-material-theme-palenight.js"),[],import.meta.url))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>Q(()=>import("./explorer-min-dark.js"),[],import.meta.url))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>Q(()=>import("./explorer-min-light.js"),[],import.meta.url))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>Q(()=>import("./explorer-monokai.js"),[],import.meta.url))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>Q(()=>import("./explorer-night-owl.js"),[],import.meta.url))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>Q(()=>import("./explorer-night-owl-light.js"),[],import.meta.url))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>Q(()=>import("./explorer-nord.js"),[],import.meta.url))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>Q(()=>import("./explorer-one-dark-pro.js"),[],import.meta.url))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>Q(()=>import("./explorer-one-light.js"),[],import.meta.url))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>Q(()=>import("./explorer-plastic.js"),[],import.meta.url))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>Q(()=>import("./explorer-poimandres.js"),[],import.meta.url))},{id:"red",displayName:"Red",type:"dark",import:(()=>Q(()=>import("./explorer-red.js"),[],import.meta.url))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>Q(()=>import("./explorer-rose-pine.js"),[],import.meta.url))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>Q(()=>import("./explorer-rose-pine-dawn.js"),[],import.meta.url))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>Q(()=>import("./explorer-rose-pine-moon.js"),[],import.meta.url))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>Q(()=>import("./explorer-slack-dark.js"),[],import.meta.url))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>Q(()=>import("./explorer-slack-ochin.js"),[],import.meta.url))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>Q(()=>import("./explorer-snazzy-light.js"),[],import.meta.url))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>Q(()=>import("./explorer-solarized-dark.js"),[],import.meta.url))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>Q(()=>import("./explorer-solarized-light.js"),[],import.meta.url))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>Q(()=>import("./explorer-synthwave-84.js"),[],import.meta.url))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>Q(()=>import("./explorer-tokyo-night.js"),[],import.meta.url))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>Q(()=>import("./explorer-vesper.js"),[],import.meta.url))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>Q(()=>import("./explorer-vitesse-black.js"),[],import.meta.url))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>Q(()=>import("./explorer-vitesse-dark.js"),[],import.meta.url))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>Q(()=>import("./explorer-vitesse-light.js"),[],import.meta.url))}],cE=Object.fromEntries(uE.map(e=>[e.id,e.import]));var fE=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Ape(){return 2147483648}function jpe(){return typeof performance<"u"?performance.now():Date.now()}const Rpe=(e,t)=>e+(t-e%t)%t;async function Npe(e){let t,n;const r={};function i(g){n=g,r.HEAPU8=new Uint8Array(g),r.HEAPU32=new Uint32Array(g)}function a(g,y,x){r.HEAPU8.copyWithin(g,y,y+x)}function o(g){try{return t.grow(g-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function l(g){const y=r.HEAPU8.length;g=g>>>0;const x=Ape();if(g>x)return!1;for(let k=1;k<=4;k*=2){let w=y*(1+.2/k);w=Math.min(w,g+100663296);const C=Math.min(x,Rpe(Math.max(g,w),65536));if(o(C))return!0}return!1}const c=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function f(g,y,x=1024){const k=y+x;let w=y;for(;g[w]&&!(w>=k);)++w;if(w-y>16&&g.buffer&&c)return c.decode(g.subarray(y,w));let C="";for(;y<w;){let S=g[y++];if(!(S&128)){C+=String.fromCharCode(S);continue}const T=g[y++]&63;if((S&224)===192){C+=String.fromCharCode((S&31)<<6|T);continue}const z=g[y++]&63;if((S&240)===224?S=(S&15)<<12|T<<6|z:S=(S&7)<<18|T<<12|z<<6|g[y++]&63,S<65536)C+=String.fromCharCode(S);else{const A=S-65536;C+=String.fromCharCode(55296|A>>10,56320|A&1023)}}return C}function d(g,y){return g?f(r.HEAPU8,g,y):""}const m={emscripten_get_now:jpe,emscripten_memcpy_big:a,emscripten_resize_heap:l,fd_write:()=>0};async function p(){const y=await e({env:m,wasi_snapshot_preview1:m});t=y.memory,i(t.buffer),Object.assign(r,y),r.UTF8ToString=d}return await p(),r}var zpe=Object.defineProperty,Lpe=(e,t,n)=>t in e?zpe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bn=(e,t,n)=>Lpe(e,typeof t!="symbol"?t+"":t,n);let jn=null;function Mpe(e){throw new fE(e.UTF8ToString(e.getLastOnigError()))}class X1{constructor(t){bn(this,"utf16Length"),bn(this,"utf8Length"),bn(this,"utf16Value"),bn(this,"utf8Value"),bn(this,"utf16OffsetToUtf8"),bn(this,"utf8OffsetToUtf16");const n=t.length,r=X1._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);const o=i?new Uint32Array(r+1):null;i&&(o[r]=n);const l=new Uint8Array(r);let c=0;for(let f=0;f<n;f++){const d=t.charCodeAt(f);let m=d,p=!1;if(d>=55296&&d<=56319&&f+1<n){const g=t.charCodeAt(f+1);g>=56320&&g<=57343&&(m=(d-55296<<10)+65536|g-56320,p=!0)}i&&(a[f]=c,p&&(a[f+1]=c),m<=127?o[c+0]=f:m<=2047?(o[c+0]=f,o[c+1]=f):m<=65535?(o[c+0]=f,o[c+1]=f,o[c+2]=f):(o[c+0]=f,o[c+1]=f,o[c+2]=f,o[c+3]=f)),m<=127?l[c++]=m:m<=2047?(l[c++]=192|(m&1984)>>>6,l[c++]=128|(m&63)>>>0):m<=65535?(l[c++]=224|(m&61440)>>>12,l[c++]=128|(m&4032)>>>6,l[c++]=128|(m&63)>>>0):(l[c++]=240|(m&1835008)>>>18,l[c++]=128|(m&258048)>>>12,l[c++]=128|(m&4032)>>>6,l[c++]=128|(m&63)>>>0),p&&f++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=l,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(t){let n=0;for(let r=0,i=t.length;r<i;r++){const a=t.charCodeAt(r);let o=a,l=!1;if(a>=55296&&a<=56319&&r+1<i){const c=t.charCodeAt(r+1);c>=56320&&c<=57343&&(o=(a-55296<<10)+65536|c-56320,l=!0)}o<=127?n+=1:o<=2047?n+=2:o<=65535?n+=3:n+=4,l&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const Y1=class la{constructor(t){if(bn(this,"id",++la.LAST_ID),bn(this,"_onigBinding"),bn(this,"content"),bn(this,"utf16Length"),bn(this,"utf8Length"),bn(this,"utf16OffsetToUtf8"),bn(this,"utf8OffsetToUtf16"),bn(this,"ptr"),!jn)throw new fE("Must invoke loadWasm first.");this._onigBinding=jn,this.content=t;const n=new X1(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!la._sharedPtrInUse?(la._sharedPtr||(la._sharedPtr=jn.omalloc(1e4)),la._sharedPtrInUse=!0,jn.HEAPU8.set(n.utf8Value,la._sharedPtr),this.ptr=la._sharedPtr):this.ptr=n.createString(jn)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===la._sharedPtr?la._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};bn(Y1,"LAST_ID",0);bn(Y1,"_sharedPtr",0);bn(Y1,"_sharedPtrInUse",!1);let $7=Y1;class Ope{constructor(t){if(bn(this,"_onigBinding"),bn(this,"_ptr"),!jn)throw new fE("Must invoke loadWasm first.");const n=[],r=[];for(let l=0,c=t.length;l<c;l++){const f=new X1(t[l]);n[l]=f.createString(jn),r[l]=f.utf8Length}const i=jn.omalloc(4*t.length);jn.HEAPU32.set(n,i/4);const a=jn.omalloc(4*t.length);jn.HEAPU32.set(r,a/4);const o=jn.createOnigScanner(i,a,t.length);for(let l=0,c=t.length;l<c;l++)jn.ofree(n[l]);jn.ofree(a),jn.ofree(i),o===0&&Mpe(jn),this._onigBinding=jn,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let i=0;if(typeof r=="number"&&(i=r),typeof t=="string"){t=new $7(t);const a=this._findNextMatchSync(t,n,!1,i);return t.dispose(),a}return this._findNextMatchSync(t,n,!1,i)}_findNextMatchSync(t,n,r,i){const a=this._onigBinding,o=a.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),i);if(o===0)return null;const l=a.HEAPU32;let c=o/4;const f=l[c++],d=l[c++],m=[];for(let p=0;p<d;p++){const g=t.convertUtf8OffsetToUtf16(l[c++]),y=t.convertUtf8OffsetToUtf16(l[c++]);m[p]={start:g,end:y,length:y-g}}return{index:f,captureIndices:m}}}function Dpe(e){return typeof e.instantiator=="function"}function qpe(e){return typeof e.default=="function"}function Ipe(e){return typeof e.data<"u"}function $pe(e){return typeof Response<"u"&&e instanceof Response}function Ppe(e){var t;return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&((t=Buffer.isBuffer)==null?void 0:t.call(Buffer,e))||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let Up;function hE(e){if(Up)return Up;async function t(){jn=await Npe(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),Dpe(r)?r=await r.instantiator(n):qpe(r)?r=await r.default(n):(Ipe(r)&&(r=r.data),$pe(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await Upe(r)(n):r=await Bpe(r)(n):Ppe(r)?r=await Tb(r)(n):r instanceof WebAssembly.Module?r=await Tb(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Tb(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return Up=t(),Up}function Tb(e){return t=>WebAssembly.instantiate(e,t)}function Upe(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Bpe(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let P7;function Gpe(e){P7=e}function Fpe(){return P7}async function U7(e){return e&&await hE(e),{createScanner(t){return new Ope(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new $7(t)}}}const Hpe=Object.freeze(Object.defineProperty({__proto__:null,createOnigurumaEngine:U7,getDefaultWasmLoader:Fpe,loadWasm:hE,setDefaultWasmLoader:Gpe},Symbol.toStringTag,{value:"Module"}));var B7=aE({});I7(B7,Hpe);var Pt=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Vpe(e){return dE(e)}function dE(e){return Array.isArray(e)?Xpe(e):e instanceof RegExp?e:typeof e=="object"?Ype(e):e}function Xpe(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=dE(e[n]);return t}function Ype(e){let t={};for(let n in e)t[n]=dE(e[n]);return t}function G7(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function F7(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?F7(e.substring(0,e.length-1)):e.substr(~t+1)}var Cb=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Bp=class{static hasCaptures(e){return e===null?!1:(Cb.lastIndex=0,Cb.test(e))}static replaceCaptures(e,t,n){return e.replace(Cb,(r,i,a,o)=>{let l=n[parseInt(i||a,10)];if(l){let c=t.substring(l.start,l.end);for(;c[0]===".";)c=c.substring(1);switch(o){case"downcase":return c.toLowerCase();case"upcase":return c.toUpperCase();default:return c}}else return r})}};function H7(e,t){return e<t?-1:e>t?1:0}function V7(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let i=0;i<n;i++){let a=H7(e[i],t[i]);if(a!==0)return a}return 0}return n-r}function v5(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function X7(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Y7=class{constructor(e){pe(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Tg=class{constructor(e,t,n){pe(this,"_cachedMatchRoot",new Y7(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Zpe(e),t)}static createFromParsedTheme(e,t){return Jpe(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(i=>Wpe(e.parent,i.parentScopes));return r?new W7(r.fontStyle,r.foreground,r.background):null}},Ab=class x_{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new x_(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new x_(n,t[r]);return n}push(t){return new x_(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function Wpe(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!Kpe(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Kpe(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var W7=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Zpe(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let i=0,a=t.length;i<a;i++){let o=t[i];if(!o.settings)continue;let l;if(typeof o.scope=="string"){let m=o.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),l=m.split(",")}else Array.isArray(o.scope)?l=o.scope:l=[""];let c=-1;if(typeof o.settings.fontStyle=="string"){c=0;let m=o.settings.fontStyle.split(" ");for(let p=0,g=m.length;p<g;p++)switch(m[p]){case"italic":c=c|1;break;case"bold":c=c|2;break;case"underline":c=c|4;break;case"strikethrough":c=c|8;break}}let f=null;typeof o.settings.foreground=="string"&&v5(o.settings.foreground)&&(f=o.settings.foreground);let d=null;typeof o.settings.background=="string"&&v5(o.settings.background)&&(d=o.settings.background);for(let m=0,p=l.length;m<p;m++){let y=l[m].trim().split(" "),x=y[y.length-1],k=null;y.length>1&&(k=y.slice(0,y.length-1),k.reverse()),n[r++]=new Qpe(x,k,i,c,f,d)}}return n}var Qpe=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},nr=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(nr||{});function Jpe(e,t){e.sort((c,f)=>{let d=H7(c.scope,f.scope);return d!==0||(d=V7(c.parentScopes,f.parentScopes),d!==0)?d:c.index-f.index});let n=0,r="#000000",i="#ffffff";for(;e.length>=1&&e[0].scope==="";){let c=e.shift();c.fontStyle!==-1&&(n=c.fontStyle),c.foreground!==null&&(r=c.foreground),c.background!==null&&(i=c.background)}let a=new e_e(t),o=new W7(n,a.getId(r),a.getId(i)),l=new n_e(new Rw(0,null,-1,0,0),[]);for(let c=0,f=e.length;c<f;c++){let d=e[c];l.insert(0,d.scope,d.parentScopes,d.fontStyle,a.getId(d.foreground),a.getId(d.background))}return new Tg(a,o,l)}var e_e=class{constructor(e){pe(this,"_isFrozen");pe(this,"_lastColorId");pe(this,"_id2color");pe(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},t_e=Object.freeze([]),Rw=class K7{constructor(t,n,r,i,a){pe(this,"scopeDepth");pe(this,"parentScopes");pe(this,"fontStyle");pe(this,"foreground");pe(this,"background");this.scopeDepth=t,this.parentScopes=n||t_e,this.fontStyle=r,this.foreground=i,this.background=a}clone(){return new K7(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,i){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),i!==0&&(this.background=i)}},n_e=class Nw{constructor(t,n=[],r={}){pe(this,"_rulesWithParentScopes");this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,i=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[i]===">"&&i++,!(r>=t.parentScopes.length||i>=n.parentScopes.length);){const a=n.parentScopes[i].length-t.parentScopes[r].length;if(a!==0)return a;r++,i++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),i,a;if(r===-1?(i=t,a=""):(i=t.substring(0,r),a=t.substring(r+1)),this._children.hasOwnProperty(i))return this._children[i].match(a)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Nw._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===""){this._doInsertHere(t,r,i,a,o);return}let l=n.indexOf("."),c,f;l===-1?(c=n,f=""):(c=n.substring(0,l),f=n.substring(l+1));let d;this._children.hasOwnProperty(c)?d=this._children[c]:(d=new Nw(this._mainRule.clone(),Rw.cloneArr(this._rulesWithParentScopes)),this._children[c]=d),d.insert(t+1,f,r,i,a,o)}_doInsertHere(t,n,r,i,a){if(n===null){this._mainRule.acceptOverwrite(t,r,i,a);return}for(let o=0,l=this._rulesWithParentScopes.length;o<l;o++){let c=this._rulesWithParentScopes[o];if(V7(c.parentScopes,n)===0){c.acceptOverwrite(t,r,i,a);return}}r===-1&&(r=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),a===0&&(a=this._mainRule.background),this._rulesWithParentScopes.push(new Rw(t,n,r,i,a))}},jc=class mi{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=mi.getLanguageId(t),r=mi.getTokenType(t),i=mi.getFontStyle(t),a=mi.getForeground(t),o=mi.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,i,a,o,l){let c=mi.getLanguageId(t),f=mi.getTokenType(t),d=mi.containsBalancedBrackets(t)?1:0,m=mi.getFontStyle(t),p=mi.getForeground(t),g=mi.getBackground(t);return n!==0&&(c=n),r!==8&&(f=r),i!==null&&(d=i?1:0),a!==-1&&(m=a),o!==0&&(p=o),l!==0&&(g=l),(c<<0|f<<8|d<<10|m<<11|p<<15|g<<24)>>>0}};function Cg(e,t){const n=[],r=r_e(e);let i=r.next();for(;i!==null;){let c=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":c=1;break;case"L":c=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let f=o();if(n.push({matcher:f,priority:c}),i!==",")break;i=r.next()}return n;function a(){if(i==="-"){i=r.next();const c=a();return f=>!!c&&!c(f)}if(i==="("){i=r.next();const c=l();return i===")"&&(i=r.next()),c}if(b5(i)){const c=[];do c.push(i),i=r.next();while(b5(i));return f=>t(c,f)}return null}function o(){const c=[];let f=a();for(;f;)c.push(f),f=a();return d=>c.every(m=>m(d))}function l(){const c=[];let f=o();for(;f&&(c.push(f),i==="|"||i===",");){do i=r.next();while(i==="|"||i===",");f=o()}return d=>c.some(m=>m(d))}}function b5(e){return!!e&&!!e.match(/[\w\.:]+/)}function r_e(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function Z7(e){typeof e.dispose=="function"&&e.dispose()}var md=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},i_e=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},a_e=class{constructor(){pe(this,"_references",[]);pe(this,"_seenReferenceKeys",new Set);pe(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},o_e=class{constructor(e,t){pe(this,"seenFullScopeRequests",new Set);pe(this,"seenPartialScopeRequests",new Set);pe(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new md(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new a_e;for(const n of e)s_e(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof md){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function s_e(e,t,n,r){const i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const a=n.lookup(t);e instanceof md?w_({baseGrammar:a,selfGrammar:i},r):zw(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);const o=n.injections(e.scopeName);if(o)for(const l of o)r.add(new md(l))}function zw(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Ag([r],t,n)}}function w_(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Ag(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Ag(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Ag(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const i=r.repository?G7({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Ag(r.patterns,{...t,repository:i},n);const a=r.include;if(!a)continue;const o=Q7(a);switch(o.kind){case 0:w_({...t,selfGrammar:t.baseGrammar},n);break;case 1:w_(t,n);break;case 2:zw(o.ruleName,{...t,repository:i},n);break;case 3:case 4:const l=o.scopeName===t.selfGrammar.scopeName?t.selfGrammar:o.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(l){const c={baseGrammar:t.baseGrammar,selfGrammar:l,repository:i};o.kind===4?zw(o.ruleName,c,n):w_(c,n)}else o.kind===4?n.add(new i_e(o.scopeName,o.ruleName)):n.add(new md(o.scopeName));break}}}var l_e=class{constructor(){pe(this,"kind",0)}},u_e=class{constructor(){pe(this,"kind",1)}},c_e=class{constructor(e){pe(this,"kind",2);this.ruleName=e}},f_e=class{constructor(e){pe(this,"kind",3);this.scopeName=e}},h_e=class{constructor(e,t){pe(this,"kind",4);this.scopeName=e,this.ruleName=t}};function Q7(e){if(e==="$base")return new l_e;if(e==="$self")return new u_e;const t=e.indexOf("#");if(t===-1)return new f_e(e);if(t===0)return new c_e(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new h_e(n,r)}}var d_e=/\\(\d+)/,x5=/\\(\d+)/g,m_e=-1,J7=-2;var $d=class{constructor(e,t,n,r){pe(this,"$location");pe(this,"id");pe(this,"_nameIsCapturing");pe(this,"_name");pe(this,"_contentNameIsCapturing");pe(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Bp.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Bp.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${F7(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Bp.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Bp.replaceCaptures(this._contentName,e,t)}},p_e=class extends $d{constructor(t,n,r,i,a){super(t,n,r,i);pe(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,i){throw new Error("Not supported!")}},__e=class extends $d{constructor(t,n,r,i,a){super(t,n,r,null);pe(this,"_match");pe(this,"captures");pe(this,"_cachedCompiledPatterns");this._match=new pd(i,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,i){return this._getCachedCompiledPatterns(t).compileAG(t,r,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new _d,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},w5=class extends $d{constructor(t,n,r,i,a){super(t,n,r,i);pe(this,"hasMissingPatterns");pe(this,"patterns");pe(this,"_cachedCompiledPatterns");this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,i){return this._getCachedCompiledPatterns(t).compileAG(t,r,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new _d,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Lw=class extends $d{constructor(t,n,r,i,a,o,l,c,f,d){super(t,n,r,i);pe(this,"_begin");pe(this,"beginCaptures");pe(this,"_end");pe(this,"endHasBackReferences");pe(this,"endCaptures");pe(this,"applyEndPatternLast");pe(this,"hasMissingPatterns");pe(this,"patterns");pe(this,"_cachedCompiledPatterns");this._begin=new pd(a,this.id),this.beginCaptures=o,this._end=new pd(l||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=f||!1,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,i){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,i)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new _d;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},jg=class extends $d{constructor(t,n,r,i,a,o,l,c,f){super(t,n,r,i);pe(this,"_begin");pe(this,"beginCaptures");pe(this,"whileCaptures");pe(this,"_while");pe(this,"whileHasBackReferences");pe(this,"hasMissingPatterns");pe(this,"patterns");pe(this,"_cachedCompiledPatterns");pe(this,"_cachedCompiledWhilePatterns");this._begin=new pd(a,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new pd(l,J7),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=f.patterns,this.hasMissingPatterns=f.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,i){return this._getCachedCompiledPatterns(t).compileAG(t,r,i)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new _d;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,i){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,i)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new _d,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},eM=class Jn{static createCaptureRule(t,n,r,i,a){return t.registerRule(o=>new p_e(n,o,r,i,a))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new __e(t.$vscodeTextmateLocation,t.id,t.name,t.match,Jn._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=G7({},r,t.repository));let a=t.patterns;return typeof a>"u"&&t.include&&(a=[{include:t.include}]),new w5(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Jn._compilePatterns(a,n,r))}return t.while?new jg(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Jn._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Jn._compileCaptures(t.whileCaptures||t.captures,n,r),Jn._compilePatterns(t.patterns,n,r)):new Lw(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Jn._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Jn._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Jn._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(const o in t){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);l>a&&(a=l)}for(let o=0;o<=a;o++)i[o]=null;for(const o in t){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);let c=0;t[o].patterns&&(c=Jn.getCompiledRuleId(t[o],n,r)),i[l]=Jn.createCaptureRule(n,t[o].$vscodeTextmateLocation,t[o].name,t[o].contentName,c)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){const l=t[a];let c=-1;if(l.include){const f=Q7(l.include);switch(f.kind){case 0:case 1:c=Jn.getCompiledRuleId(r[l.include],n,r);break;case 2:let d=r[f.ruleName];d&&(c=Jn.getCompiledRuleId(d,n,r));break;case 3:case 4:const m=f.scopeName,p=f.kind===4?f.ruleName:null,g=n.getExternalGrammar(m,r);if(g)if(p){let y=g.repository[p];y&&(c=Jn.getCompiledRuleId(y,n,g.repository))}else c=Jn.getCompiledRuleId(g.repository.$self,n,g.repository);break}}else c=Jn.getCompiledRuleId(l,n,r);if(c!==-1){const f=n.getRule(c);let d=!1;if((f instanceof w5||f instanceof Lw||f instanceof jg)&&f.hasMissingPatterns&&f.patterns.length===0&&(d=!0),d)continue;i.push(c)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},pd=class tM{constructor(t,n){pe(this,"source");pe(this,"ruleId");pe(this,"hasAnchor");pe(this,"hasBackReferences");pe(this,"_anchorCache");if(t&&typeof t=="string"){const r=t.length;let i=0,a=[],o=!1;for(let l=0;l<r;l++)if(t.charAt(l)==="\\"&&l+1<r){const f=t.charAt(l+1);f==="z"?(a.push(t.substring(i,l)),a.push("$(?!\\n)(?<!\\n)"),i=l+2):(f==="A"||f==="G")&&(o=!0),l++}this.hasAnchor=o,i===0?this.source=t:(a.push(t.substring(i,r)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=d_e.test(this.source):this.hasBackReferences=!1}clone(){return new tM(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(i=>t.substring(i.start,i.end));return x5.lastIndex=0,this.source.replace(x5,(i,a)=>X7(r[parseInt(a,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],i=[],a,o,l,c;for(a=0,o=this.source.length;a<o;a++)l=this.source.charAt(a),t[a]=l,n[a]=l,r[a]=l,i[a]=l,l==="\\"&&a+1<o&&(c=this.source.charAt(a+1),c==="A"?(t[a+1]="",n[a+1]="",r[a+1]="A",i[a+1]="A"):c==="G"?(t[a+1]="",n[a+1]="G",r[a+1]="",i[a+1]="G"):(t[a+1]=c,n[a+1]=c,r[a+1]=c,i[a+1]=c),a++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:i.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},_d=class{constructor(){pe(this,"_items");pe(this,"_hasAnchors");pe(this,"_cached");pe(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new k5(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(i=>i.resolveAnchors(t,n));return new k5(e,r,this._items.map(i=>i.ruleId))}},k5=class{constructor(e,t,n){pe(this,"scanner");this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
85
|
+
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},jb=class{constructor(e,t){this.languageId=e,this.tokenType=t}},ro,g_e=(ro=class{constructor(t,n){pe(this,"_defaultAttributes");pe(this,"_embeddedLanguagesMatcher");pe(this,"_getBasicScopeAttributes",new Y7(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new jb(n,r)}));this._defaultAttributes=new jb(t,8),this._embeddedLanguagesMatcher=new y_e(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?ro._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(ro.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},pe(ro,"_NULL_SCOPE_METADATA",new jb(0,0)),pe(ro,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),ro),y_e=class{constructor(e){pe(this,"values");pe(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>X7(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},E5=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function nM(e,t,n,r,i,a,o,l){const c=t.content.length;let f=!1,d=-1;if(o){const g=v_e(e,t,n,r,i,a);i=g.stack,r=g.linePos,n=g.isFirstLine,d=g.anchorPosition}const m=Date.now();for(;!f;){if(l!==0&&Date.now()-m>l)return new E5(i,!0);p()}return new E5(i,!1);function p(){const g=b_e(e,t,n,r,i,d);if(!g){a.produce(i,c),f=!0;return}const y=g.captureIndices,x=g.matchedRuleId,k=y&&y.length>0?y[0].end>r:!1;if(x===m_e){const w=i.getRule(e);a.produce(i,y[0].start),i=i.withContentNameScopesList(i.nameScopesList),Rh(e,t,n,i,a,w.endCaptures,y),a.produce(i,y[0].end);const C=i;if(i=i.parent,d=C.getAnchorPos(),!k&&C.getEnterPos()===r){i=C,a.produce(i,c),f=!0;return}}else{const w=e.getRule(x);a.produce(i,y[0].start);const C=i,S=w.getName(t.content,y),T=i.contentNameScopesList.pushAttributed(S,e);if(i=i.push(x,r,d,y[0].end===c,null,T,T),w instanceof Lw){const z=w;Rh(e,t,n,i,a,z.beginCaptures,y),a.produce(i,y[0].end),d=y[0].end;const A=z.getContentName(t.content,y),L=T.pushAttributed(A,e);if(i=i.withContentNameScopesList(L),z.endHasBackReferences&&(i=i.withEndRule(z.getEndWithResolvedBackReferences(t.content,y))),!k&&C.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),f=!0;return}}else if(w instanceof jg){const z=w;Rh(e,t,n,i,a,z.beginCaptures,y),a.produce(i,y[0].end),d=y[0].end;const A=z.getContentName(t.content,y),L=T.pushAttributed(A,e);if(i=i.withContentNameScopesList(L),z.whileHasBackReferences&&(i=i.withEndRule(z.getWhileWithResolvedBackReferences(t.content,y))),!k&&C.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),f=!0;return}}else if(Rh(e,t,n,i,a,w.captures,y),a.produce(i,y[0].end),i=i.pop(),!k){i=i.safePop(),a.produce(i,c),f=!0;return}}y[0].end>r&&(r=y[0].end,n=!1)}}function v_e(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1;const l=[];for(let c=i;c;c=c.pop()){const f=c.getRule(e);f instanceof jg&&l.push({rule:f,stack:c})}for(let c=l.pop();c;c=l.pop()){const{ruleScanner:f,findOptions:d}=k_e(c.rule,e,c.stack.endRule,n,r===o),m=f.findNextMatchSync(t,r,d);if(m){if(m.ruleId!==J7){i=c.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(a.produce(c.stack,m.captureIndices[0].start),Rh(e,t,n,c.stack,a,c.rule.whileCaptures,m.captureIndices),a.produce(c.stack,m.captureIndices[0].end),o=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function b_e(e,t,n,r,i,a){const o=x_e(e,t,n,r,i,a),l=e.getInjections();if(l.length===0)return o;const c=w_e(l,e,t,n,r,i,a);if(!c)return o;if(!o)return c;const f=o.captureIndices[0].start,d=c.captureIndices[0].start;return d<f||c.priorityMatch&&d===f?c:o}function x_e(e,t,n,r,i,a){const o=i.getRule(e),{ruleScanner:l,findOptions:c}=rM(o,e,i.endRule,n,r===a),f=l.findNextMatchSync(t,r,c);return f?{captureIndices:f.captureIndices,matchedRuleId:f.ruleId}:null}function w_e(e,t,n,r,i,a,o){let l=Number.MAX_VALUE,c=null,f,d=0;const m=a.contentNameScopesList.getScopeNames();for(let p=0,g=e.length;p<g;p++){const y=e[p];if(!y.matcher(m))continue;const x=t.getRule(y.ruleId),{ruleScanner:k,findOptions:w}=rM(x,t,null,r,i===o),C=k.findNextMatchSync(n,i,w);if(!C)continue;const S=C.captureIndices[0].start;if(!(S>=l)&&(l=S,c=C.captureIndices,f=C.ruleId,d=y.priority,l===i))break}return c?{priorityMatch:d===-1,captureIndices:c,matchedRuleId:f}:null}function rM(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function k_e(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function Rh(e,t,n,r,i,a,o){if(a.length===0)return;const l=t.content,c=Math.min(a.length,o.length),f=[],d=o[0].end;for(let m=0;m<c;m++){const p=a[m];if(p===null)continue;const g=o[m];if(g.length===0)continue;if(g.start>d)break;for(;f.length>0&&f[f.length-1].endPos<=g.start;)i.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop();if(f.length>0?i.produceFromScopes(f[f.length-1].scopes,g.start):i.produce(r,g.start),p.retokenizeCapturedWithRuleId){const x=p.getName(l,o),k=r.contentNameScopesList.pushAttributed(x,e),w=p.getContentName(l,o),C=k.pushAttributed(w,e),S=r.push(p.retokenizeCapturedWithRuleId,g.start,-1,!1,null,k,C),T=e.createOnigString(l.substring(0,g.end));nM(e,T,n&&g.start===0,g.start,S,i,!1,0),Z7(T);continue}const y=p.getName(l,o);if(y!==null){const k=(f.length>0?f[f.length-1].scopes:r.contentNameScopesList).pushAttributed(y,e);f.push(new E_e(k,g.end))}}for(;f.length>0;)i.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop()}var E_e=class{constructor(e,t){pe(this,"scopes");pe(this,"endPos");this.scopes=e,this.endPos=t}};function S_e(e,t,n,r,i,a,o,l){return new C_e(e,t,n,r,i,a,o,l)}function S5(e,t,n,r,i){const a=Cg(t,Rg),o=eM.getCompiledRuleId(n,r,i.repository);for(const l of a)e.push({debugSelector:t,matcher:l.matcher,ruleId:o,grammar:i,priority:l.priority})}function Rg(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let i=n;i<t.length;i++)if(T_e(t[i],r))return n=i+1,!0;return!1})}function T_e(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var C_e=class{constructor(e,t,n,r,i,a,o,l){pe(this,"_rootId");pe(this,"_lastRuleId");pe(this,"_ruleId2desc");pe(this,"_includedGrammars");pe(this,"_grammarRepository");pe(this,"_grammar");pe(this,"_injections");pe(this,"_basicScopeAttributesProvider");pe(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=l,this._basicScopeAttributesProvider=new g_e(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=T5(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const c of Object.keys(i)){const f=Cg(c,Rg);for(const d of f)this._tokenTypeMatchers.push({matcher:d.matcher,type:i[c]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const i=r.injections;if(i)for(let o in i)S5(t,o,i[o],this,r);const a=this._grammarRepository.injections(n);a&&a.forEach(o=>{const l=this.getExternalGrammar(o);if(l){const c=l.injectionSelector;c&&S5(t,c,l,this,l)}})}return t.sort((i,a)=>i.priority-a.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=T5(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=eM.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===Mw.NULL){i=!0;const f=this._basicScopeAttributesProvider.getDefaultAttributes(),d=this.themeProvider.getDefaults(),m=jc.set(0,f.languageId,f.tokenType,null,d.fontStyle,d.foregroundId,d.backgroundId),p=this.getRule(this._rootId).getName(null,null);let g;p?g=Bh.createRootAndLookUpScopeName(p,m,this):g=Bh.createRoot("unknown",m),t=new Mw(null,this._rootId,-1,-1,!1,null,g,g)}else i=!1,t.reset();e=e+`
|
|
86
|
+
`;const a=this.createOnigString(e),o=a.content.length,l=new j_e(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=nM(this,a,i,0,t,l,!0,r);return Z7(a),{lineLength:o,lineTokens:l,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function T5(e,t){return e=Vpe(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Bh=class ua{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,i=(t==null?void 0:t.scopePath)??null;for(const a of n)i=Ab.push(i,a.scopeNames),r=new ua(r,i,a.encodedTokenAttributes);return r}static createRoot(t,n){return new ua(null,new Ab(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const i=r.getMetadataForScope(t),a=new Ab(null,t),o=r.themeProvider.themeMatch(a),l=ua.mergeAttributes(n,i,o);return new ua(null,a,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return ua.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let i=-1,a=0,o=0;return r!==null&&(i=r.fontStyle,a=r.foregroundId,o=r.backgroundId),jc.set(t,n.languageId,n.tokenType,null,i,a,o)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return ua._pushAttributed(this,t,n);const r=t.split(/ /g);let i=this;for(const a of r)i=ua._pushAttributed(i,a,n);return i}static _pushAttributed(t,n,r){const i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),l=ua.mergeAttributes(t.tokenAttributes,i,o);return new ua(t,a,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var i;const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((i=r.parent)==null?void 0:i.scopePath)??null)}),r=r.parent;return r===t?n.reverse():void 0}},gi,Mw=(gi=class{constructor(t,n,r,i,a,o,l,c){pe(this,"_stackElementBrand");pe(this,"_enterPos");pe(this,"_anchorPos");pe(this,"depth");this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=a,this.endRule=o,this.nameScopesList=l,this.contentNameScopesList=c,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=i}equals(t){return t===null?!1:gi._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Bh.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){gi._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,l){return new gi(this,t,n,r,i,a,o,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){var r,i;return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(i=this.contentNameScopesList)==null?void 0:i.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new gi(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){var t,n,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((n=this.nameScopesList)==null?void 0:n.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,n){const r=Bh.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new gi(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Bh.fromExtension(r,n.contentNameScopesList))}},pe(gi,"NULL",new gi(null,0,0,0,!1,null,null,null)),gi),A_e=class{constructor(e,t){pe(this,"balancedBracketScopes");pe(this,"unbalancedBracketScopes");pe(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Cg(n,Rg).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Cg(n,Rg).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},j_e=class{constructor(e,t,n,r){pe(this,"_emitBinaryTokens");pe(this,"_lineText");pe(this,"_tokens");pe(this,"_binaryTokens");pe(this,"_lastTokenEndIndex");pe(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var r;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let i=(e==null?void 0:e.tokenAttributes)??0,a=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(a=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=(e==null?void 0:e.getScopeNames())??[];for(const l of this._tokenTypeOverrides)l.matcher(o)&&(i=jc.set(i,0,l.type,null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(o))}if(a&&(i=jc.set(i,0,8,a,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=t;return}const n=(e==null?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,i=this._binaryTokens.length;r<i;r++)n[r]=this._binaryTokens[r];return n}},R_e=class{constructor(e,t){pe(this,"_grammars",new Map);pe(this,"_rawGrammars",new Map);pe(this,"_injectionGrammars",new Map);pe(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,S_e(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},N_e=class{constructor(t){pe(this,"_options");pe(this,"_syncRegistry");pe(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new R_e(Tg.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Tg.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new A_e(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,i,a){const o=new o_e(this._syncRegistry,t);for(;o.Q.length>0;)o.Q.map(l=>this._loadSingleGrammar(l.scopeName)),o.processQueue();return this._grammarForScopeName(t,n,r,i,a)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,i=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,i)}_grammarForScopeName(t,n=0,r=null,i=null,a=null){return this._syncRegistry.grammarForScopeName(t,n,r,i,a)}},Ow=Mw.NULL;function Ng(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[i,a]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof a=="string"?n[i]=a:i===r&&Object.assign(n,a);return n}function fs(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function z_e(e){return Array.isArray(e)?e:[e]}async function iM(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function W1(e){return!e||["plaintext","txt","text","plain"].includes(e)}function aM(e){return e==="ansi"||W1(e)}function K1(e){return e==="none"}function oM(e){return K1(e)}const L_e=/(\r?\n)/g;function Z1(e,t=!1){var a;if(e.length===0)return[["",0]];const n=e.split(L_e);let r=0;const i=[];for(let o=0;o<n.length;o+=2){const l=t?n[o]+(n[o+1]||""):n[o];i.push([l,r]),r+=n[o].length,r+=((a=n[o+1])==null?void 0:a.length)||0}return i}const C5={light:"#333333",dark:"#bbbbbb"},A5={light:"#fffffe",dark:"#1e1e1e"},j5="__shiki_resolved";function mE(e){var l,c,f,d,m;if(e!=null&&e[j5])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:r}=t;if(!n||!r){const p=t.settings?t.settings.find(g=>!g.name&&!g.scope):void 0;(l=p==null?void 0:p.settings)!=null&&l.foreground&&(r=p.settings.foreground),(c=p==null?void 0:p.settings)!=null&&c.background&&(n=p.settings.background),!r&&((f=t==null?void 0:t.colors)!=null&&f["editor.foreground"])&&(r=t.colors["editor.foreground"]),!n&&((d=t==null?void 0:t.colors)!=null&&d["editor.background"])&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?C5.light:C5.dark),n||(n=t.type==="light"?A5.light:A5.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0;const a=new Map;function o(p){var y;if(a.has(p))return a.get(p);i+=1;const g=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return(y=t.colorReplacements)!=null&&y[`#${g}`]?o(p):(a.set(p,g),g)}t.settings=t.settings.map(p=>{var k,w;const g=((k=p.settings)==null?void 0:k.foreground)&&!p.settings.foreground.startsWith("#"),y=((w=p.settings)==null?void 0:w.background)&&!p.settings.background.startsWith("#");if(!g&&!y)return p;const x={...p,settings:{...p.settings}};if(g){const C=o(p.settings.foreground);t.colorReplacements[C]=p.settings.foreground,x.settings.foreground=C}if(y){const C=o(p.settings.background);t.colorReplacements[C]=p.settings.background,x.settings.background=C}return x});for(const p of Object.keys(t.colors||{}))if((p==="editor.foreground"||p==="editor.background"||p.startsWith("terminal.ansi"))&&!((m=t.colors[p])!=null&&m.startsWith("#"))){const g=o(t.colors[p]);t.colorReplacements[g]=t.colors[p],t.colors[p]=g}return Object.defineProperty(t,j5,{enumerable:!1,writable:!1,value:!0}),t}async function sM(e){return[...new Set((await Promise.all(e.filter(t=>!aM(t)).map(async t=>await iM(t).then(n=>Array.isArray(n)?n:[n])))).flat())]}async function lM(e){return(await Promise.all(e.map(async t=>oM(t)?null:mE(await iM(t))))).filter(t=>!!t)}function uM(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new Pt(`Circular alias \`${[...n].join(" -> ")} -> ${e}\``);n.add(e)}}return e}var M_e=class extends N_e{constructor(t,n,r,i={}){super(t);pe(this,"_resolver");pe(this,"_themes");pe(this,"_langs");pe(this,"_alias");pe(this,"_resolvedThemes",new Map);pe(this,"_resolvedGrammars",new Map);pe(this,"_langMap",new Map);pe(this,"_langGraph",new Map);pe(this,"_textmateThemeCache",new WeakMap);pe(this,"_loadedThemesCache",null);pe(this,"_loadedLanguagesCache",null);this._resolver=t,this._themes=n,this._langs=r,this._alias=i,this._themes.map(a=>this.loadTheme(a)),this.loadLanguages(this._langs)}getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=mE(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=Tg.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){return t=uM(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){var a,o,l,c;if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(f=>{var d;return(d=f.embeddedLangsLazy)==null?void 0:d.includes(t.name)}));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const i=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(i.name=t.name,this._resolvedGrammars.set(t.name,i),t.aliases&&t.aliases.forEach(f=>{this._alias[f]=t.name}),this._loadedLanguagesCache=null,n.size)for(const f of n)this._resolvedGrammars.delete(f.name),this._loadedLanguagesCache=null,(o=(a=this._syncRegistry)==null?void 0:a._injectionGrammars)==null||o.delete(f.scopeName),(c=(l=this._syncRegistry)==null?void 0:l._grammars)==null||c.delete(f.scopeName),this.loadLanguage(this._langMap.get(f.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const i of t)this.resolveEmbeddedLanguages(i);const n=[...this._langGraph.entries()],r=n.filter(([i,a])=>!a);if(r.length){const i=n.filter(([a,o])=>{var l;return o?(l=o.embeddedLanguages||o.embeddedLangs)==null?void 0:l.some(c=>r.map(([f])=>f).includes(c)):!1}).filter(a=>!r.includes(a));throw new Pt(`Missing languages ${r.map(([a])=>`\`${a}\``).join(", ")}, required by ${i.map(([a])=>`\`${a}\``).join(", ")}`)}for(const[i,a]of n)this._resolver.addLanguage(a);for(const[i,a]of n)this.loadLanguage(a)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const n=t.embeddedLanguages??t.embeddedLangs;if(n)for(const r of n)this._langGraph.set(r,this._langMap.get(r))}},O_e=class{constructor(e,t){pe(this,"_langs",new Map);pe(this,"_scopeToLang",new Map);pe(this,"_injections",new Map);pe(this,"_onigLib");this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},t.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let n=[];for(let r=1;r<=t.length;r++){const i=t.slice(0,r).join(".");n=[...n,...this._injections.get(i)||[]]}return n}};let sh=0;function D_e(e){sh+=1,e.warnings!==!1&&sh>=10&&sh%10===0&&console.warn(`[Shiki] ${sh} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Pt("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(mE),i=new M_e(new O_e(e.engine,n),r,n,e.langAlias);let a;function o(C){return uM(C,e.langAlias)}function l(C){k();const S=i.getGrammar(typeof C=="string"?C:C.name);if(!S)throw new Pt(`Language \`${C}\` not found, you may need to load it first`);return S}function c(C){if(C==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};k();const S=i.getTheme(C);if(!S)throw new Pt(`Theme \`${C}\` not found, you may need to load it first`);return S}function f(C){k();const S=c(C);return a!==C&&(i.setTheme(S),a=C),{theme:S,colorMap:i.getColorMap()}}function d(){return k(),i.getLoadedThemes()}function m(){return k(),i.getLoadedLanguages()}function p(...C){k(),i.loadLanguages(C.flat(1))}async function g(...C){return p(await sM(C))}function y(...C){k();for(const S of C.flat(1))i.loadTheme(S)}async function x(...C){return k(),y(await lM(C))}function k(){if(t)throw new Pt("Shiki instance has been disposed")}function w(){t||(t=!0,i.dispose(),sh-=1)}return{setTheme:f,getTheme:c,getLanguage:l,getLoadedThemes:d,getLoadedLanguages:m,resolveLangAlias:o,loadLanguage:g,loadLanguageSync:p,loadTheme:x,loadThemeSync:y,dispose:w,[Symbol.dispose]:w}}async function q_e(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([lM(e.themes||[]),sM(e.langs||[]),e.engine]);return D_e({...e,themes:t,langs:n,engine:r})}const cM=new WeakMap;function Q1(e,t){cM.set(e,t)}function gd(e){return cM.get(e)}var J1=class fM{constructor(...t){pe(this,"_stacks",{});pe(this,"lang");if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,i]=t;this.lang=r,this._stacks={[i]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new fM(Object.fromEntries(z_e(n).map(r=>[r,Ow])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return I_e(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function I_e(e){const t=[],n=new Set;function r(i){var o;if(n.has(i))return;n.add(i);const a=(o=i==null?void 0:i.nameScopesList)==null?void 0:o.scopeName;a&&t.push(a),i.parent&&r(i.parent)}return r(e),t}function $_e(e,t){if(!(e instanceof J1))throw new Pt("Invalid grammar state");return e.getInternalStack(t)}const P_e=/,/,U_e=/ /;function hM(e,t,n={}){const{theme:r=e.getLoadedThemes()[0]}=n;if(W1(e.resolveLangAlias(n.lang||"text"))||K1(r))return Z1(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:i,colorMap:a}=e.setTheme(r),o=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==o.name)throw new Pt(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(i.name))throw new Pt(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return G_e(t,o,i,a,n)}function B_e(...e){if(e.length===2)return gd(e[1]);const[t,n,r={}]=e,{lang:i="text",theme:a=t.getLoadedThemes()[0]}=r;if(W1(i)||K1(a))throw new Pt("Plain language does not have grammar state");if(i==="ansi")throw new Pt("ANSI language does not have grammar state");const{theme:o,colorMap:l}=t.setTheme(a),c=t.getLanguage(i);return new J1(pE(n,c,o,l,r).stateStack,c.name,o.name)}function G_e(e,t,n,r,i){const a=pE(e,t,n,r,i),o=new J1(a.stateStack,t.name,n.name);return Q1(a.tokens,o),a.tokens}function pE(e,t,n,r,i){const a=Ng(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:l=500}=i,c=Z1(e);let f=i.grammarState?$_e(i.grammarState,n.name)??Ow:i.grammarContextCode!=null?pE(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:Ow,d=[];const m=[];for(let p=0,g=c.length;p<g;p++){const[y,x]=c[p];if(y===""){d=[],m.push([]);continue}if(o>0&&y.length>=o){d=[],m.push([{content:y,offset:x,color:"",fontStyle:0}]);continue}let k,w,C;i.includeExplanation&&(k=t.tokenizeLine(y,f,l),w=k.tokens,C=0);const S=t.tokenizeLine2(y,f,l),T=S.tokens.length/2;for(let z=0;z<T;z++){const A=S.tokens[2*z],L=z+1<T?S.tokens[2*z+2]:y.length;if(A===L)continue;const G=S.tokens[2*z+1],H=fs(r[jc.getForeground(G)],a),q=jc.getFontStyle(G),V={content:y.substring(A,L),offset:x+A,color:H,fontStyle:q};if(i.includeExplanation){const W=[];if(i.includeExplanation!=="scopeName")for(const B of n.settings){let D;switch(typeof B.scope){case"string":D=B.scope.split(P_e).map(j=>j.trim());break;case"object":D=B.scope;break;default:continue}W.push({settings:B,selectors:D.map(j=>j.split(U_e))})}V.explanation=[];let I=0;for(;A+I<L;){const B=w[C],D=y.substring(B.startIndex,B.endIndex);I+=D.length,V.explanation.push({content:D,scopes:i.includeExplanation==="scopeName"?F_e(B.scopes):H_e(W,B.scopes)}),C+=1}}d.push(V)}m.push(d),d=[],f=S.ruleStack}return{tokens:m,stateStack:f}}function F_e(e){return e.map(t=>({scopeName:t}))}function H_e(e,t){const n=[];for(let r=0,i=t.length;r<i;r++){const a=t[r];n[r]={scopeName:a,themeMatches:X_e(e,a,t.slice(0,r))}}return n}function R5(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function V_e(e,t,n){if(!R5(e.at(-1),t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)R5(e[r],n[i])&&(r-=1),i-=1;return r===-1}function X_e(e,t,n){const r=[];for(const{selectors:i,settings:a}of e)for(const o of i)if(V_e(o,t,n)){r.push(a);break}return r}function dM(e,t,n,r=hM){const i=Object.entries(n.themes).filter(f=>f[1]).map(f=>({color:f[0],theme:f[1]})),a=i.map(f=>{const d=r(e,t,{...n,theme:f.theme});return{tokens:d,state:gd(d),theme:typeof f.theme=="string"?f.theme:f.theme.name}}),o=Y_e(...a.map(f=>f.tokens)),l=o[0].map((f,d)=>f.map((m,p)=>{const g={content:m.content,variants:{},offset:m.offset};return"includeExplanation"in n&&n.includeExplanation&&(g.explanation=m.explanation),o.forEach((y,x)=>{const{content:k,explanation:w,offset:C,...S}=y[d][p];g.variants[i[x].color]=S}),g})),c=a[0].state?new J1(Object.fromEntries(a.map(f=>{var d;return[f.theme,(d=f.state)==null?void 0:d.getInternalStack(f.theme)]})),a[0].state.lang):void 0;return c&&Q1(l,c),l}function Y_e(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const i=e.map(c=>c[r]),a=t.map(()=>[]);t.forEach((c,f)=>c.push(a[f]));const o=i.map(()=>0),l=i.map(c=>c[0]);for(;l.every(c=>c);){const c=Math.min(...l.map(f=>f.content.length));for(let f=0;f<n;f++){const d=l[f];d.content.length===c?(a[f].push(d),o[f]+=1,l[f]=i[f][o[f]]):(a[f].push({...d,content:d.content.slice(0,c)}),l[f]={...d,content:d.content.slice(c),offset:d.offset+c})}}}return t}const W_e=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],K_e=/["&'<>`]/g,Z_e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Q_e=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,J_e=/[|\\{}()[\]^$+*?.]/g,N5=new WeakMap;function ege(e,t){if(e=e.replace(t.subset?tge(t.subset):K_e,r),t.subset||t.escapeOnly)return e;return e.replace(Z_e,n).replace(Q_e,r);function n(i,a,o){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(a+2),t)}function r(i,a,o){return t.format(i.charCodeAt(0),o.charCodeAt(a+1),t)}}function tge(e){let t=N5.get(e);return t||(t=nge(e),N5.set(e,t)),t}function nge(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(J_e,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const rge=/[\dA-Fa-f]/;function ige(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!rge.test(String.fromCharCode(t))?r:r+";"}const age=/\d/;function oge(e,t,n){const r="&#"+String(e);return n&&t&&!age.test(String.fromCharCode(t))?r:r+";"}const sge=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Rb={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},lge=["cent","copy","divide","gt","lt","not","para","times"],mM={}.hasOwnProperty,Dw={};let Gp;for(Gp in Rb)mM.call(Rb,Gp)&&(Dw[Rb[Gp]]=Gp);const uge=/[^\dA-Za-z]/;function cge(e,t,n,r){const i=String.fromCharCode(e);if(mM.call(Dw,i)){const a=Dw[i],o="&"+a;return n&&sge.includes(a)&&!lge.includes(a)&&(!r||t&&t!==61&&uge.test(String.fromCharCode(t)))?o:o+";"}return""}function fge(e,t,n){let r=ige(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=cge(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const a=oge(e,t,n.omitOptionalSemicolons);a.length<r.length&&(r=a)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function rc(e,t){return ege(e,Object.assign({format:fge},t))}const hge=/^>|^->|<!--|-->|--!>|<!-$/g,dge=[">"],mge=["<",">"];function pge(e,t,n,r){return r.settings.bogusComments?"<?"+rc(e.value,Object.assign({},r.settings.characterReferences,{subset:dge}))+">":"<!--"+e.value.replace(hge,i)+"-->";function i(a){return rc(a,Object.assign({},r.settings.characterReferences,{subset:mge}))}}function _ge(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}const Tn=_M(1),pM=_M(-1),gge=[];function _M(e){return t;function t(n,r,i){const a=n?n.children:gge;let o=(r||0)+e,l=a[o];if(!i)for(;l&&P1(l);)o+=e,l=a[o];return l}}const yge={}.hasOwnProperty;function gM(e){return t;function t(n,r,i){return yge.call(e,n.tagName)&&e[n.tagName](n,r,i)}}const _E=gM({body:bge,caption:Nb,colgroup:Nb,dd:Ege,dt:kge,head:Nb,html:vge,li:wge,optgroup:Sge,option:Tge,p:xge,rp:z5,rt:z5,tbody:Age,td:L5,tfoot:jge,th:L5,thead:Cge,tr:Rge});function Nb(e,t,n){const r=Tn(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&P1(r.value.charAt(0)))}function vge(e,t,n){const r=Tn(n,t);return!r||r.type!=="comment"}function bge(e,t,n){const r=Tn(n,t);return!r||r.type!=="comment"}function xge(e,t,n){const r=Tn(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function wge(e,t,n){const r=Tn(n,t);return!r||r.type==="element"&&r.tagName==="li"}function kge(e,t,n){const r=Tn(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Ege(e,t,n){const r=Tn(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function z5(e,t,n){const r=Tn(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Sge(e,t,n){const r=Tn(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function Tge(e,t,n){const r=Tn(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Cge(e,t,n){const r=Tn(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Age(e,t,n){const r=Tn(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function jge(e,t,n){return!Tn(n,t)}function Rge(e,t,n){const r=Tn(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function L5(e,t,n){const r=Tn(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Nge=gM({body:Mge,colgroup:Oge,head:Lge,html:zge,tbody:Dge});function zge(e){const t=Tn(e,-1);return!t||t.type!=="comment"}function Lge(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function Mge(e){const t=Tn(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&P1(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Oge(e,t,n){const r=pM(n,t),i=Tn(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&_E(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function Dge(e,t,n){const r=pM(n,t),i=Tn(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&_E(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const Fp={name:[[`
|
|
87
|
+
\f\r &/=>`.split(""),`
|
|
88
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
89
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
90
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
91
|
+
\f\r &>`.split(""),`\0
|
|
92
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
93
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
94
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function qge(e,t,n,r){const i=r.schema,a=i.space==="svg"?!1:r.settings.omitOptionalTags;let o=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const l=[];let c;i.space==="html"&&e.tagName==="svg"&&(r.schema=Dd);const f=Ige(r,e.properties),d=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,d&&(o=!1),(f||!a||!Nge(e,t,n))&&(l.push("<",e.tagName,f?" "+f:""),o&&(i.space==="svg"||r.settings.closeSelfClosing)&&(c=f.charAt(f.length-1),(!r.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(d),!o&&(!a||!_E(e,t,n))&&l.push("</"+e.tagName+">"),l.join("")}function Ige(e,t){const n=[];let r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const a=$ge(e,i,t[i]);a&&n.push(a)}}for(;++r<n.length;){const a=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&a!=='"'&&a!=="'"&&(n[r]+=" ")}return n.join("")}function $ge(e,t,n){const r=SL(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let o=e.quote,l;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const c=rc(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Fp.name[i][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?gL:CL)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(l=rc(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Fp.unquoted[i][a]}))),l!==n&&(e.settings.quoteSmart&&kg(n,o)>kg(n,e.alternative)&&(o=e.alternative),l=o+rc(n,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?Fp.single:Fp.double)[i][a],attribute:!0}))+o),c+(l&&"="+l))}const Pge=["<","&"];function yM(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:rc(e.value,Object.assign({},r.settings.characterReferences,{subset:Pge}))}function Uge(e,t,n,r){return r.settings.allowDangerousHtml?e.value:yM(e,t,n,r)}function Bge(e,t,n,r){return r.all(e)}const Gge=Uhe("type",{invalid:Fge,unknown:Hge,handlers:{comment:pge,doctype:_ge,element:qge,raw:Uge,root:Bge,text:yM}});function Fge(e){throw new Error("Expected node, not `"+e+"`")}function Hge(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const Vge={},Xge={},Yge=[];function Wge(e,t){const n=t||Vge,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Kge,all:Zge,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||W_e,characterReferences:n.characterReferences||Xge,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Dd:TL,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Kge(e,t,n){return Gge(e,t,n,this)}function Zge(e){const t=[],n=e&&e.children||Yge;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}const M5=/\s+/g;function vM(e,t){var r;if(!t)return e;e.properties||(e.properties={}),(r=e.properties).class||(r.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(M5)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(M5);for(const i of n)i&&!e.properties.class.includes(i)&&e.properties.class.push(i);return e}const Qge=/:?lang=["']([^"']+)["']/g,Jge=/(?:```|~~~)([\w-]+)/g,e1e=/\\begin\{([\w-]+)\}/g,t1e=/<script\s+(?:type|lang)=["']([^"']+)["']/gi;function n1e(e){const t=Z1(e,!0).map(([i])=>i);function n(i){if(i===e.length)return{line:t.length-1,character:t.at(-1).length};let a=i,o=0;for(const l of t){if(a<l.length)break;a-=l.length,o++}return{line:o,character:a}}function r(i,a){let o=0;for(let l=0;l<i;l++)o+=t[l].length;return o+=a,o}return{lines:t,indexToPos:n,posToIndex:r}}function r1e(e,t,n){const r=new Set;for(const a of e.matchAll(Qge)){const o=a[1].toLowerCase().trim();o&&r.add(o)}for(const a of e.matchAll(Jge)){const o=a[1].toLowerCase().trim();o&&r.add(o)}for(const a of e.matchAll(e1e)){const o=a[1].toLowerCase().trim();o&&r.add(o)}for(const a of e.matchAll(t1e)){const o=a[1].toLowerCase().trim(),l=o.includes("/")?o.split("/").pop():o;l&&r.add(l)}if(!n)return[...r];const i=n.getBundledLanguages();return[...r].filter(a=>a&&i[a])}const i1e=["color","background-color"];function a1e(e,t){let n=0;const r=[];for(const i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function o1e(e,t){const n=[...t instanceof Set?t:new Set(t)].sort((r,i)=>r-i);return n.length?e.map(r=>r.flatMap(i=>{const a=n.filter(o=>i.offset<o&&o<i.offset+i.content.length).map(o=>o-i.offset).sort((o,l)=>o-l);return a.length?a1e(i,a):i})):e}function s1e(e,t,n,r,i="css-vars"){const a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(d=>zg(e.variants[d])),l=new Set(o.flatMap(d=>Object.keys(d))),c={},f=(d,m)=>{const p=m==="color"?"":m==="background-color"?"-bg":`-${m}`;return n+t[d]+(m==="color"?"":p)};return o.forEach((d,m)=>{for(const p of l){const g=d[p]||"inherit";if(m===0&&r&&i1e.includes(p))if(r==="light-dark()"&&o.length>1){const y=t.findIndex(k=>k==="light"),x=t.findIndex(k=>k==="dark");if(y===-1||x===-1)throw new Pt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');c[p]=`light-dark(${o[y][p]||"inherit"}, ${o[x][p]||"inherit"})`,i==="css-vars"&&(c[f(m,p)]=g)}else c[p]=g;else i==="css-vars"&&(c[f(m,p)]=g)}}),a.htmlStyle=c,a}function zg(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&nr.Italic&&(t["font-style"]="italic"),e.fontStyle&nr.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&nr.Underline&&n.push("underline"),e.fontStyle&nr.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function qw(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function l1e(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let i=function(o){if(typeof o=="number"){if(o<0||o>n.source.length)throw new Pt(`Invalid decoration offset: ${o}. Code length: ${n.source.length}`);return{...r.indexToPos(o),offset:o}}else{const l=r.lines[o.line];if(l===void 0)throw new Pt(`Invalid decoration position ${JSON.stringify(o)}. Lines length: ${r.lines.length}`);let c=o.character;if(c<0&&(c=l.length+c),c<0||c>l.length)throw new Pt(`Invalid decoration position ${JSON.stringify(o)}. Line ${o.line} length: ${l.length}`);return{...o,character:c,offset:r.posToIndex(o.line,c)}}};const r=n1e(n.source),a=(n.options.decorations||[]).map(o=>({...o,start:i(o.start),end:i(o.end)}));u1e(a),e.set(n.meta,{decorations:a,converter:r,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){var r;if((r=this.options.decorations)!=null&&r.length)return o1e(n,t(this).decorations.flatMap(i=>[i.start.offset,i.end.offset]))},code(n){var d;if(!((d=this.options.decorations)!=null&&d.length))return;const r=t(this),i=[...n.children].filter(m=>m.type==="element"&&m.tagName==="span");if(i.length!==r.converter.lines.length)throw new Pt(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function a(m,p,g,y){const x=i[m];let k="",w=-1,C=-1;if(p===0&&(w=0),g===0&&(C=0),g===Number.POSITIVE_INFINITY&&(C=x.children.length),w===-1||C===-1)for(let T=0;T<x.children.length;T++)k+=bM(x.children[T]),w===-1&&k.length===p&&(w=T+1),C===-1&&k.length===g&&(C=T+1);if(w===-1)throw new Pt(`Failed to find start index for decoration ${JSON.stringify(y.start)}`);if(C===-1)throw new Pt(`Failed to find end index for decoration ${JSON.stringify(y.end)}`);const S=x.children.slice(w,C);if(!y.alwaysWrap&&S.length===x.children.length)l(x,y,"line");else if(!y.alwaysWrap&&S.length===1&&S[0].type==="element")l(S[0],y,"token");else{const T={type:"element",tagName:"span",properties:{},children:S};l(T,y,"wrapper"),x.children.splice(w,S.length,T)}}function o(m,p){i[m]=l(i[m],p,"line")}function l(m,p,g){var k;const y=p.properties||{},x=p.transform||(w=>w);return m.tagName=p.tagName||"span",m.properties={...m.properties,...y,class:m.properties.class},(k=p.properties)!=null&&k.class&&vM(m,p.properties.class),m=x(m,g)||m,m}const c=[],f=r.decorations.sort((m,p)=>p.start.offset-m.start.offset||m.end.offset-p.end.offset);for(const m of f){const{start:p,end:g}=m;if(p.line===g.line)a(p.line,p.character,g.character,m);else if(p.line<g.line){a(p.line,p.character,Number.POSITIVE_INFINITY,m);for(let y=p.line+1;y<g.line;y++)c.unshift(()=>o(y,m));a(g.line,0,g.character,m)}}c.forEach(m=>m())}}}function u1e(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Pt(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const i=e[r],a=n.start.offset<=i.start.offset&&i.start.offset<n.end.offset,o=n.start.offset<i.end.offset&&i.end.offset<=n.end.offset,l=i.start.offset<=n.start.offset&&n.start.offset<i.end.offset,c=i.start.offset<n.end.offset&&n.end.offset<=i.end.offset;if(a||o||l||c){if(a&&o||l&&c||l&&n.start.offset===n.end.offset||o&&i.start.offset===i.end.offset)continue;throw new Pt(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(i.start)} intersect.`)}}}}function bM(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(bM).join(""):""}const c1e=[l1e()];function Lg(e){const t=f1e(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...c1e]}function f1e(e){const t=[],n=[],r=[];for(const i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var fl=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],zb={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function h1e(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function O5(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function d1e(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)zb[r]&&t.push({type:"setDecoration",value:zb[r]});else if(r<=29){const i=zb[r-20];i&&(t.push({type:"resetDecoration",value:i}),i==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:fl[r-30]}});else if(r===38){const i=O5(e);i&&t.push({type:"setForegroundColor",value:i})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:fl[r-40]}});else if(r===48){const i=O5(e);i&&t.push({type:"setBackgroundColor",value:i})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:fl[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:fl[r-100+8]}})}return t}function m1e(){let e=null,t=null,n=new Set;return{parse(r){const i=[];let a=0;do{const o=h1e(r,a),l=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(l.length>0&&i.push({value:l,foreground:e,background:t,decorations:new Set(n)}),o.sequence){const c=d1e(o.sequence);for(const f of c)f.type==="resetAll"?(e=null,t=null,n.clear()):f.type==="resetForegroundColor"?e=null:f.type==="resetBackgroundColor"?t=null:f.type==="resetDecoration"&&n.delete(f.value);for(const f of c)f.type==="setForegroundColor"?e=f.value:f.type==="setBackgroundColor"?t=f.value:f.type==="setDecoration"&&n.add(f.value)}a=o.position}while(a<r.length);return i}}}var p1e={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function _1e(e=p1e){function t(l){return e[l]}function n(l){return`#${l.map(c=>Math.max(0,Math.min(c,255)).toString(16).padStart(2,"0")).join("")}`}let r;function i(){if(r)return r;r=[];for(let f=0;f<fl.length;f++)r.push(t(fl[f]));let l=[0,95,135,175,215,255];for(let f=0;f<6;f++)for(let d=0;d<6;d++)for(let m=0;m<6;m++)r.push(n([l[f],l[d],l[m]]));let c=8;for(let f=0;f<24;f++,c+=10)r.push(n([c,c,c]));return r}function a(l){return i()[l]}function o(l){switch(l.type){case"named":return t(l.name);case"rgb":return n(l.rgb);case"table":return a(l.index)}}return{value:o}}const g1e=/#([0-9a-f]{3,8})/i,y1e=/var\((--[\w-]+-ansi-[\w-]+)\)/,v1e={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function b1e(e,t,n){const r=Ng(e,n),i=Z1(t),a=_1e(Object.fromEntries(fl.map(l=>{var f;const c=`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`;return[l,((f=e.colors)==null?void 0:f[c])||v1e[l]]}))),o=m1e();return i.map(l=>o.parse(l[0]).map(c=>{let f,d;c.decorations.has("reverse")?(f=c.background?a.value(c.background):e.bg,d=c.foreground?a.value(c.foreground):e.fg):(f=c.foreground?a.value(c.foreground):e.fg,d=c.background?a.value(c.background):void 0),f=fs(f,r),d=fs(d,r),c.decorations.has("dim")&&(f=x1e(f));let m=nr.None;return c.decorations.has("bold")&&(m|=nr.Bold),c.decorations.has("italic")&&(m|=nr.Italic),c.decorations.has("underline")&&(m|=nr.Underline),c.decorations.has("strikethrough")&&(m|=nr.Strikethrough),{content:c.value,offset:l[1],color:f,bgColor:d,fontStyle:m}}))}function x1e(e){const t=e.match(g1e);if(t){const r=t[1];if(r.length===8){const i=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${i}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const i=r[0],a=r[1],o=r[2],l=r[3];return`#${i}${i}${a}${a}${o}${o}${Math.round(Number.parseInt(`${l}${l}`,16)/2).toString(16).padStart(2,"0")}`}else if(r.length===3){const i=r[0],a=r[1],o=r[2];return`#${i}${i}${a}${a}${o}${o}80`}}}const n=e.match(y1e);return n?`var(${n[1]}-dim)`:e}function Iw(e,t,n={}){const r=e.resolveLangAlias(n.lang||"text"),{theme:i=e.getLoadedThemes()[0]}=n;if(!W1(r)&&!K1(i)&&r==="ansi"){const{theme:a}=e.setTheme(i);return b1e(a,t,n)}return hM(e,t,n)}function Mg(e,t,n){let r,i,a,o,l,c;if("themes"in n){const{defaultColor:f="light",cssVariablePrefix:d="--shiki-",colorsRendering:m="css-vars"}=n,p=Object.entries(n.themes).filter(w=>w[1]).map(w=>({color:w[0],theme:w[1]})).sort((w,C)=>w.color===f?-1:C.color===f?1:0);if(p.length===0)throw new Pt("`themes` option must not be empty");const g=dM(e,t,n,Iw);if(c=gd(g),f&&f!=="light-dark()"&&!p.some(w=>w.color===f))throw new Pt(`\`themes\` option must contain the defaultColor key \`${f}\``);const y=p.map(w=>e.getTheme(w.theme)),x=p.map(w=>w.color);a=g.map(w=>w.map(C=>s1e(C,x,d,f,m))),c&&Q1(a,c);const k=p.map(w=>Ng(w.theme,n));i=D5(p,y,k,d,f,"fg",m),r=D5(p,y,k,d,f,"bg",m),o=`shiki-themes ${y.map(w=>w.name).join(" ")}`,l=f?void 0:[i,r].join(";")}else if("theme"in n){const f=Ng(n.theme,n);a=Iw(e,t,n);const d=e.getTheme(n.theme);r=fs(d.bg,f),i=fs(d.fg,f),o=d.name,c=gd(a)}else throw new Pt("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:l,grammarState:c}}function D5(e,t,n,r,i,a,o){return e.map((l,c)=>{const f=fs(t[c][a],n[c])||"inherit",d=`${r+l.color}${a==="bg"?"-bg":""}:${f}`;if(c===0&&i){if(i==="light-dark()"&&e.length>1){const m=e.findIndex(g=>g.color==="light"),p=e.findIndex(g=>g.color==="dark");if(m===-1||p===-1)throw new Pt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${fs(t[m][a],n[m])||"inherit"}, ${fs(t[p][a],n[p])||"inherit"});${d}`}return f}return o==="css-vars"?d:null}).filter(l=>!!l).join(";")}const xM=/^\s+$/,w1e=/^(\s*)(.*?)(\s*)$/;function Og(e,t,n,r={meta:{},options:n,codeToHast:(i,a)=>Og(e,i,a),codeToTokens:(i,a)=>Mg(e,i,a)}){var y,x;let i=t;for(const k of Lg(n))i=((y=k.preprocess)==null?void 0:y.call(r,i,n))||i;let{tokens:a,fg:o,bg:l,themeName:c,rootStyle:f,grammarState:d}=Mg(e,i,n);const{mergeWhitespaces:m=!0,mergeSameStyleTokens:p=!1}=n;m===!0?a=E1e(a):m==="never"&&(a=S1e(a)),p&&(a=T1e(a));const g={...r,get source(){return i}};for(const k of Lg(n))a=((x=k.tokens)==null?void 0:x.call(g,a))||a;return k1e(a,{...n,fg:o,bg:l,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??f},g,d)}function k1e(e,t,n,r=gd(e)){var x,k,w,C;const i=Lg(t),a=[],o={type:"root",children:[]},{structure:l="classic",tabindex:c="0"}=t,f={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?f.style=t.rootStyle:f.style=`background-color:${t.bg};color:${t.fg}`),c!==!1&&c!=null&&(f.tabindex=c.toString());for(const[S,T]of Object.entries(t.meta||{}))S.startsWith("_")||(f[S]=T);let d={type:"element",tagName:"pre",properties:f,children:[],data:t.data},m={type:"element",tagName:"code",properties:{},children:a};const p=[],g={...n,structure:l,addClassToHast:vM,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return d},get code(){return m},get lines(){return p}};if(e.forEach((S,T)=>{var L,G;T&&(l==="inline"?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="classic"&&a.push({type:"text",value:`
|
|
95
|
+
`}));let z={type:"element",tagName:"span",properties:{class:"line"},children:[]},A=0;for(const H of S){let q={type:"element",tagName:"span",properties:{...H.htmlAttrs},children:[{type:"text",value:H.content}]};const V=qw(H.htmlStyle||zg(H));V&&(q.properties.style=V);for(const W of i)q=((L=W==null?void 0:W.span)==null?void 0:L.call(g,q,T+1,A,z,H))||q;l==="inline"?o.children.push(q):l==="classic"&&z.children.push(q),A+=H.content.length}if(l==="classic"){for(const H of i)z=((G=H==null?void 0:H.line)==null?void 0:G.call(g,z,T+1))||z;p.push(z),a.push(z)}else l==="inline"&&p.push(z)}),l==="classic"){for(const S of i)m=((x=S==null?void 0:S.code)==null?void 0:x.call(g,m))||m;d.children.push(m);for(const S of i)d=((k=S==null?void 0:S.pre)==null?void 0:k.call(g,d))||d;o.children.push(d)}else if(l==="inline"){const S=[];let T={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const A of o.children)A.type==="element"&&A.tagName==="br"?(S.push(T),T={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(A.type==="element"||A.type==="text")&&T.children.push(A);S.push(T);let z={type:"element",tagName:"code",properties:{},children:S};for(const A of i)z=((w=A==null?void 0:A.code)==null?void 0:w.call(g,z))||z;o.children=[];for(let A=0;A<z.children.length;A++){A>0&&o.children.push({type:"element",tagName:"br",properties:{},children:[]});const L=z.children[A];L.type==="element"&&o.children.push(...L.children)}}let y=o;for(const S of i)y=((C=S==null?void 0:S.root)==null?void 0:C.call(g,y))||y;return r&&Q1(y,r),y}function E1e(e){return e.map(t=>{const n=[];let r="",i;return t.forEach((a,o)=>{const l=!(a.fontStyle&&(a.fontStyle&nr.Underline||a.fontStyle&nr.Strikethrough));l&&xM.test(a.content)&&t[o+1]?(i===void 0&&(i=a.offset),r+=a.content):r?(l?n.push({...a,offset:i,content:r+a.content}):n.push({content:r,offset:i},a),i=void 0,r=""):n.push(a)}),n})}function S1e(e){return e.map(t=>t.flatMap(n=>{if(xM.test(n.content))return n;const r=n.content.match(w1e);if(!r)return n;const[,i,a,o]=r;if(!i&&!o)return n;const l=[{...n,offset:n.offset+i.length,content:a}];return i&&l.unshift({content:i,offset:n.offset}),o&&l.push({content:o,offset:n.offset+i.length+a.length}),l}))}function T1e(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const i=n.at(-1),a=qw(i.htmlStyle||zg(i)),o=qw(r.htmlStyle||zg(r)),l=i.fontStyle&&(i.fontStyle&nr.Underline||i.fontStyle&nr.Strikethrough),c=r.fontStyle&&(r.fontStyle&nr.Underline||r.fontStyle&nr.Strikethrough);!l&&!c&&a===o?i.content+=r.content:n.push({...r})}return n})}const C1e=Wge;function A1e(e,t,n){var a;const r={meta:{},options:n,codeToHast:(o,l)=>Og(e,o,l),codeToTokens:(o,l)=>Mg(e,o,l)};let i=C1e(Og(e,t,n,r));for(const o of Lg(n))i=((a=o.postprocess)==null?void 0:a.call(r,i,n))||i;return i}async function j1e(e){const t=await q_e(e);return{getLastGrammarState:(...n)=>B_e(t,...n),codeToTokensBase:(n,r)=>Iw(t,n,r),codeToTokensWithThemes:(n,r)=>dM(t,n,r),codeToTokens:(n,r)=>Mg(t,n,r),codeToHast:(n,r)=>Og(t,n,r),codeToHtml:(n,r)=>A1e(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function R1e(e){const t=e.langs,n=e.themes,r=e.engine;async function i(a){function o(m){var p;if(typeof m=="string"){if(m=((p=a.langAlias)==null?void 0:p[m])||m,aM(m))return[];const g=t[m];if(!g)throw new Pt(`Language \`${m}\` is not included in this bundle. You may want to load it from external source.`);return g}return m}function l(m){if(oM(m))return"none";if(typeof m=="string"){const p=n[m];if(!p)throw new Pt(`Theme \`${m}\` is not included in this bundle. You may want to load it from external source.`);return p}return m}const c=(a.themes??[]).map(m=>l(m)),f=(a.langs??[]).map(m=>o(m)),d=await j1e({engine:a.engine??r(),...a,themes:c,langs:f});return{...d,loadLanguage(...m){return d.loadLanguage(...m.map(o))},loadTheme(...m){return d.loadTheme(...m.map(l))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}function N1e(e){let t;async function n(r={}){if(t){const i=await t;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}else{t=e({...r,themes:[],langs:[]});const i=await t;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}}return n}function z1e(e,t){const n=N1e(e);async function r(i,a){var c;const o=await n({langs:[a.lang],themes:"theme"in a?[a.theme]:Object.values(a.themes)}),l=await((c=t==null?void 0:t.guessEmbeddedLanguages)==null?void 0:c.call(t,i,a.lang,o));return l&&await o.loadLanguage(...l),o}return{getSingletonHighlighter(i){return n(i)},async codeToHtml(i,a){return(await r(i,a)).codeToHtml(i,a)},async codeToHast(i,a){return(await r(i,a)).codeToHast(i,a)},async codeToTokens(i,a){return(await r(i,a)).codeToTokens(i,a)},async codeToTokensBase(i,a){return(await r(i,a)).codeToTokensBase(i,a)},async codeToTokensWithThemes(i,a){return(await r(i,a)).codeToTokensWithThemes(i,a)},async getLastGrammarState(i,a){return(await n({langs:[a.lang],themes:[a.theme]})).getLastGrammarState(i,a)}}}var L1e=aE({bundledLanguages:()=>lE,bundledLanguagesAlias:()=>sE,bundledLanguagesBase:()=>oE,bundledLanguagesInfo:()=>V1,bundledThemes:()=>cE,bundledThemesInfo:()=>uE,codeToHast:()=>wM,codeToHtml:()=>yE,codeToTokens:()=>kM,codeToTokensBase:()=>EM,codeToTokensWithThemes:()=>SM,createHighlighter:()=>gE,getLastGrammarState:()=>CM,getSingletonHighlighter:()=>TM});const gE=R1e({langs:lE,themes:cE,engine:()=>(0,B7.createOnigurumaEngine)(Q(()=>import("./explorer-wasm.js"),[],import.meta.url))}),{codeToHtml:yE,codeToHast:wM,codeToTokens:kM,codeToTokensBase:EM,codeToTokensWithThemes:SM,getSingletonHighlighter:TM,getLastGrammarState:CM}=z1e(gE,{guessEmbeddedLanguages:r1e}),q5=4294967295;var M1e=class{constructor(e,t={}){pe(this,"patterns");pe(this,"options");pe(this,"regexps");this.patterns=e,this.options=t;const{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(a=>{if(typeof a!="string")return a;const o=r==null?void 0:r.get(a);if(o){if(o instanceof RegExp)return o;if(n)return null;throw o}try{const l=i(a);return r==null||r.set(a,l),l}catch(l){if(r==null||r.set(a,l),n)return null;throw l}})}findNextMatchSync(e,t,n){const r=typeof e=="string"?e:e.content,i=[];function a(o,l,c=0){return{index:o,captureIndices:l.indices.map(f=>f==null?{start:q5,end:q5,length:0}:{start:f[0]+c,end:f[1]+c,length:f[1]-f[0]})}}for(let o=0;o<this.regexps.length;o++){const l=this.regexps[o];if(l)try{l.lastIndex=t;const c=l.exec(r);if(!c)continue;if(c.index===t)return a(o,c,0);i.push([o,c,0])}catch(c){if(this.options.forgiving)continue;throw c}}if(i.length){const o=Math.min(...i.map(l=>l[1].index));for(const[l,c,f]of i)if(c.index===o)return a(l,c,f)}return null}};function Uc(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function O1e(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const vE=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),Rn=String.raw;function Bc(e,t){if(e==null)throw new Error(t??"Value expected");return e}const AM=Rn`\[\^?`,jM=`c.? | C(?:-.?)?|${Rn`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Rn`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Rn`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Rn`o\{[^\}]*\}?`}|${Rn`\d{1,3}`}`,bE=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Hp=new RegExp(Rn`
|
|
96
|
+
\\ (?:
|
|
97
|
+
${jM}
|
|
98
|
+
| [gk]<[^>]*>?
|
|
99
|
+
| [gk]'[^']*'?
|
|
100
|
+
| .
|
|
101
|
+
)
|
|
102
|
+
| \( (?:
|
|
103
|
+
\? (?:
|
|
104
|
+
[:=!>({]
|
|
105
|
+
| <[=!]
|
|
106
|
+
| <[^>]*>
|
|
107
|
+
| '[^']*'
|
|
108
|
+
| ~\|?
|
|
109
|
+
| #(?:[^)\\]|\\.?)*
|
|
110
|
+
| [^:)]*[:)]
|
|
111
|
+
)?
|
|
112
|
+
| \*[^\)]*\)?
|
|
113
|
+
)?
|
|
114
|
+
| (?:${bE.source})+
|
|
115
|
+
| ${AM}
|
|
116
|
+
| .
|
|
117
|
+
`.replace(/\s+/g,""),"gsu"),Lb=new RegExp(Rn`
|
|
118
|
+
\\ (?:
|
|
119
|
+
${jM}
|
|
120
|
+
| .
|
|
121
|
+
)
|
|
122
|
+
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
123
|
+
| ${AM}
|
|
124
|
+
| &&
|
|
125
|
+
| .
|
|
126
|
+
`.replace(/\s+/g,""),"gsu");function D1e(e,t={}){const n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const r=t0e(n.flags),i=[r.extended],a={captureGroup:n.rules.captureGroup,getCurrentModX(){return i.at(-1)},numOpenGroups:0,popModX(){i.pop()},pushModX(m){i.push(m)},replaceCurrentModX(m){i[i.length-1]=m},singleline:n.rules.singleline};let o=[],l;for(Hp.lastIndex=0;l=Hp.exec(e);){const m=q1e(a,e,l[0],Hp.lastIndex);m.tokens?o.push(...m.tokens):m.token&&o.push(m.token),m.lastIndex!==void 0&&(Hp.lastIndex=m.lastIndex)}const c=[];let f=0;o.filter(m=>m.type==="GroupOpen").forEach(m=>{m.kind==="capturing"?m.number=++f:m.raw==="("&&c.push(m)}),f||c.forEach((m,p)=>{m.kind="capturing",m.number=p+1});const d=f||c.length;return{tokens:o.map(m=>m.type==="EscapedNumber"?r0e(m,d):m).flat(),flags:r}}function q1e(e,t,n,r){const[i,a]=n;if(n==="["||n==="[^"){const o=I1e(t,n,r);return{tokens:o.tokens,lastIndex:o.lastIndex}}if(i==="\\"){if("AbBGyYzZ".includes(a))return{token:I5(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:Y1e(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:NM(n)}}if(a==="K")return{token:zM("keep",n)};if(a==="N"||a==="R")return{token:hl("newline",n,{negate:a==="N"})};if(a==="O")return{token:hl("any",n)};if(a==="X")return{token:hl("text_segment",n)};const o=RM(n,{inCharClass:!1});return Array.isArray(o)?{tokens:o}:{token:o}}if(i==="("){if(a==="*")return{token:Q1e(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(t[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:Z1e(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:Xu("group",n)};if(n==="(?>")return{token:Xu("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:Xu(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:Xu("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:Xu("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:H1e(n)}}if(e.getCurrentModX()){if(n==="#"){const o=t.indexOf(`
|
|
127
|
+
`,r);return{lastIndex:o===-1?t.length:o}}if(/^\s$/.test(n)){const o=/\s+/y;return o.lastIndex=r,{lastIndex:o.exec(t)?o.lastIndex:r}}}if(n===".")return{token:hl("dot",n)};if(n==="^"||n==="$"){const o=e.singleline?{"^":Rn`\A`,$:Rn`\Z`}[n]:n;return{token:I5(o,n)}}return n==="|"?{token:P1e(n)}:bE.test(n)?{tokens:i0e(n)}:{token:so(Uc(n),n)}}function I1e(e,t,n){const r=[$5(t[1]==="^",t)];let i=1,a;for(Lb.lastIndex=n;a=Lb.exec(e);){const o=a[0];if(o[0]==="["&&o[1]!==":")i++,r.push($5(o[1]==="^",o));else if(o==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(so(93,o));else if(i--,r.push(U1e(o)),!i)break}else{const l=$1e(o);Array.isArray(l)?r.push(...l):r.push(l)}}return{tokens:r,lastIndex:Lb.lastIndex||e.length}}function $1e(e){if(e[0]==="\\")return RM(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!vE.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return hl("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?B1e(e):e==="&&"?G1e(e):so(Uc(e),e)}function RM(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return K1e(e);if("dDhHsSwW".includes(n))return J1e(e);if(e.startsWith(Rn`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return e0e(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const r=e.split(/\\x/).slice(1).map(o=>parseInt(o,16)),i=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),a=new TextEncoder;return[...i].map(o=>{const l=[...a.encode(o)].map(c=>`\\x${c.toString(16)}`).join("");return so(Uc(o),l)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return so(n0e(e),e);if(P5.has(n))return so(P5.get(n),e);if(/\d/.test(n))return F1e(t,e);if(e==="\\")throw new Error(Rn`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return so(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function P1e(e){return{type:"Alternator",raw:e}}function I5(e,t){return{type:"Assertion",kind:e,raw:t}}function NM(e){return{type:"Backreference",raw:e}}function so(e,t){return{type:"Character",value:e,raw:t}}function U1e(e){return{type:"CharacterClassClose",raw:e}}function B1e(e){return{type:"CharacterClassHyphen",raw:e}}function G1e(e){return{type:"CharacterClassIntersector",raw:e}}function $5(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function hl(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function zM(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:Bc(n.flags),raw:t}}function F1e(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function H1e(e){return{type:"GroupClose",raw:e}}function Xu(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function V1e(e,t,n,r){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:r}}function X1e(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function Y1e(e){return{type:"Subroutine",raw:e}}const W1e=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),P5=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function K1e(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return so(Uc(t.toUpperCase())-64,e)}function Z1e(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??(r="");const i=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),a=B5(n),o=B5(r),l={};if(a&&(l.enable=a),o&&(l.disable=o),e.endsWith(")"))return t.replaceCurrentModX(i),zM("flags",e,{flags:l});if(e.endsWith(":"))return t.pushModX(i),t.numOpenGroups++,Xu("group",e,{...(a||o)&&{flags:l}});throw new Error(`Unexpected flag modifier "${e}"`)}function Q1e(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:n,tag:r,args:i}=t.groups;if(!n)throw new Error(`Invalid named callout "${e}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const a=i?i.split(",").filter(d=>d!=="").map(d=>/^[+-]?\d+$/.test(d)?+d:d):[],[o,l,c]=a,f=W1e.has(n)?n.toLowerCase():"custom";switch(f){case"fail":case"mismatch":case"skip":if(a.length>0)throw new Error(`Named callout arguments not allowed "${a}"`);break;case"error":if(a.length>1)throw new Error(`Named callout allows only one argument "${a}"`);if(typeof o=="string")throw new Error(`Named callout argument must be a number "${o}"`);break;case"max":if(!a.length||a.length>2)throw new Error(`Named callout must have one or two arguments "${a}"`);if(typeof o=="string"&&!/^[A-Za-z_]\w*$/.test(o))throw new Error(`Named callout argument one must be a tag or number "${o}"`);if(a.length===2&&(typeof l=="number"||!/^[<>X]$/.test(l)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${l}"`);break;case"count":case"total_count":if(a.length>1)throw new Error(`Named callout allows only one argument "${a}"`);if(a.length===1&&(typeof o=="number"||!/^[<>X]$/.test(o)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${o}"`);break;case"cmp":if(a.length!==3)throw new Error(`Named callout must have three arguments "${a}"`);if(typeof o=="string"&&!/^[A-Za-z_]\w*$/.test(o))throw new Error(`Named callout argument one must be a tag or number "${o}"`);if(typeof l=="number"||!/^(?:[<>!=]=|[<>])$/.test(l))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${l}"`);if(typeof c=="string"&&!/^[A-Za-z_]\w*$/.test(c))throw new Error(`Named callout argument three must be a tag or number "${c}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${f}"`)}return V1e(f,r??null,(i==null?void 0:i.split(","))??null,e)}function U5(e){let t=null,n,r;if(e[0]==="{"){const{minStr:i,maxStr:a}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,o=1e5;if(+i>o||a&&+a>o)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+i,r=a===void 0?+i:a===""?1/0:+a,n>r&&(t="possessive",[n,r]=[r,n]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else n=e[0]==="+"?1:0,r=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return X1e(t,n,r,e)}function J1e(e){const t=e[1].toLowerCase();return hl({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function e0e(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return hl("property",e,{value:r,negate:t==="P"&&!n||t==="p"&&!!n})}function B5(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function t0e(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){const r=e[n];if(!"imxDPSWy".includes(r))throw new Error(`Invalid flag "${r}"`);if(r==="y"){if(!/^y{[gw]}/.test(e.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[n+2]==="g"?"grapheme":"word",n+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[r]]=!0}return t}function n0e(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function r0e(e,t){const{raw:n,inCharClass:r}=e,i=n.slice(1);if(!r&&(i!=="0"&&i.length===1||i[0]!=="0"&&+i<=t))return[NM(n)];const a=[],o=i.match(/^[0-7]+|\d/g);for(let l=0;l<o.length;l++){const c=o[l];let f;if(l===0&&c!=="8"&&c!=="9"){if(f=parseInt(c,8),f>127)throw new Error(Rn`Octal encoded byte above 177 unsupported "${n}"`)}else f=Uc(c);a.push(so(f,(l===0?"\\":"")+c))}return a}function i0e(e){const t=[],n=new RegExp(bE,"gy");let r;for(;r=n.exec(e);){const i=r[0];if(i[0]==="{"){const a=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(i);if(a){const{min:o,max:l}=a.groups;if(+o>+l&&i.endsWith("?")){n.lastIndex--,t.push(U5(i.slice(0,-1)));continue}}}t.push(U5(i))}return t}function LM(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const n=e.body[0];return!t||Object.keys(t).every(r=>t[r]===n[r])}function a0e(e){return o0e.has(e.type)}const o0e=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function MM(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=D1e(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),i=(p,g)=>{const y=r.tokens[a.nextIndex];switch(a.parent=p,a.nextIndex++,y.type){case"Alternator":return zl();case"Assertion":return s0e(y);case"Backreference":return l0e(y,a);case"Character":return e0(y.value,{useLastValid:!!g.isCheckingRangeEnd});case"CharacterClassHyphen":return u0e(y,a,g);case"CharacterClassOpen":return c0e(y,a,g);case"CharacterSet":return f0e(y,a);case"Directive":return g0e(y.kind,{flags:y.flags});case"GroupOpen":return h0e(y,a,g);case"NamedCallout":return v0e(y.kind,y.tag,y.arguments);case"Quantifier":return d0e(y,a);case"Subroutine":return m0e(y,a);default:throw new Error(`Unexpected token type "${y.type}"`)}},a={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:i},o=x0e(y0e(r.flags));let l=o.body[0];for(;a.nextIndex<r.tokens.length;){const p=i(l,{});p.type==="Alternative"?(o.body.push(p),l=p):l.body.push(p)}const{capturingGroups:c,hasNumberedRef:f,namedGroupsByName:d,subroutines:m}=a;if(f&&d.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:p}of m)if(typeof p=="number"){if(p>c.length)throw new Error("Subroutine uses a group number that's not defined");p&&(c[p-1].isSubroutined=!0)}else if(d.has(p)){if(d.get(p).length>1)throw new Error(Rn`Subroutine uses a duplicate group name "\g<${p}>"`);d.get(p)[0].isSubroutined=!0}else throw new Error(Rn`Subroutine uses a group name that's not defined "\g<${p}>"`);return o}function s0e({kind:e}){return $w(Bc({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===Rn`\B`||e===Rn`\Y`})}function l0e({raw:e},t){const n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),i=(a,o=!1)=>{const l=t.capturingGroups.length;let c=!1;if(a>l)if(t.skipBackrefValidation)c=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,Pw(o?l+1-a:a,{orphan:c})};if(n){const a=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(a)return i(+a.groups.num,!!a.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${e}"`);return Pw(r)}return i(+r)}function u0e(e,t,n){const{tokens:r,walk:i}=t,a=t.parent,o=a.body.at(-1),l=r[t.nextIndex];if(!n.isCheckingRangeEnd&&o&&o.type!=="CharacterClass"&&o.type!=="CharacterClassRange"&&l&&l.type!=="CharacterClassOpen"&&l.type!=="CharacterClassClose"&&l.type!=="CharacterClassIntersector"){const c=i(a,{...n,isCheckingRangeEnd:!0});if(o.type==="Character"&&c.type==="Character")return a.body.pop(),_0e(o,c);throw new Error("Invalid character class range")}return e0(Uc("-"))}function c0e({negate:e},t,n){const{tokens:r,walk:i}=t,a=[k_()],o=r[t.nextIndex];let l=H5(o);for(;l.type!=="CharacterClassClose";){if(l.type==="CharacterClassIntersector")a.push(k_()),t.nextIndex++;else{const f=a.at(-1);f.body.push(i(f,n))}l=H5(r[t.nextIndex],o)}const c=k_({negate:e});return a.length===1?c.body=a[0].body:(c.kind="intersection",c.body=a.map(f=>f.body.length===1?f.body[0]:f)),t.nextIndex++,c}function f0e({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o}=r;if(e==="property"){const l=t0(n);if(vE.has(l)&&!(o!=null&&o.has(l)))e="posix",n=l;else return Yu(n,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o})}return e==="posix"?b0e(n,{negate:t}):Uw(e,{negate:t})}function h0e(e,t,n){const{tokens:r,capturingGroups:i,namedGroupsByName:a,skipLookbehindValidation:o,walk:l}=t,c=w0e(e),f=c.type==="AbsenceFunction",d=F5(c),m=d&&c.negate;if(c.type==="CapturingGroup"&&(i.push(c),c.name&&O1e(a,c.name,[]).push(c)),f&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let p=V5(r[t.nextIndex]);for(;p.type!=="GroupClose";){if(p.type==="Alternator")c.body.push(zl()),t.nextIndex++;else{const g=c.body.at(-1),y=l(g,{...n,isInAbsenceFunction:n.isInAbsenceFunction||f,isInLookbehind:n.isInLookbehind||d,isInNegLookbehind:n.isInNegLookbehind||m});if(g.body.push(y),(d||n.isInLookbehind)&&!o){const x="Lookbehind includes a pattern not allowed by Oniguruma";if(m||n.isInNegLookbehind){if(G5(y)||y.type==="CapturingGroup")throw new Error(x)}else if(G5(y)||F5(y)&&y.negate)throw new Error(x)}}p=V5(r[t.nextIndex])}return t.nextIndex++,c}function d0e({kind:e,min:t,max:n},r){const i=r.parent,a=i.body.at(-1);if(!a||!a0e(a))throw new Error("Quantifier requires a repeatable token");const o=DM(e,t,n,a);return i.body.pop(),o}function m0e({raw:e},t){const{capturingGroups:n,subroutines:r}=t;let i=e.slice(3,-1);const a=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(a){const l=+a.groups.num,c=n.length;if(t.hasNumberedRef=!0,i={"":l,"+":c+l,"-":c+1-l}[a.groups.sign],i<1)throw new Error("Invalid subroutine number")}else i==="0"&&(i=0);const o=qM(i);return r.push(o),o}function p0e(e,t){return{type:"AbsenceFunction",kind:e,body:Pd(t==null?void 0:t.body)}}function zl(e){return{type:"Alternative",body:IM(e==null?void 0:e.body)}}function $w(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!(t!=null&&t.negate)),n}function Pw(e,t){const n=!!(t!=null&&t.orphan);return{type:"Backreference",ref:e,...n&&{orphan:n}}}function OM(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!k0e(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:Pd(t==null?void 0:t.body)}}function e0(e,t){const n={useLastValid:!1,...t};if(e>1114111){const r=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:"Character",value:e}}function k_(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:IM(e==null?void 0:e.body)}}function _0e(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function Uw(e,t){const n=!!(t!=null&&t.negate),r={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(r.negate=n),(e==="text_segment"||e==="newline"&&!n)&&(r.variableLength=!0),r}function g0e(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:Bc(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function y0e(e){return{type:"Flags",...e}}function Ui(e){const t=e==null?void 0:e.atomic,n=e==null?void 0:e.flags;if(t&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:Pd(e==null?void 0:e.body)}}function sl(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:Pd(e==null?void 0:e.body)}}function v0e(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function b0e(e,t){const n=!!(t!=null&&t.negate);if(!vE.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}function DM(e,t,n,r){if(t>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:r}}function x0e(e,t){return{type:"Regex",body:Pd(t==null?void 0:t.body),flags:e}}function qM(e){return{type:"Subroutine",ref:e}}function Yu(e,t){var i;const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=(i=n.unicodePropertyMap)==null?void 0:i.get(t0(e));if(!r){if(n.normalizeUnknownPropertyNames)r=E0e(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(Rn`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function w0e({flags:e,kind:t,name:n,negate:r,number:i}){switch(t){case"absence_repeater":return p0e("repeater");case"atomic":return Ui({atomic:!0});case"capturing":return OM(i,{name:n});case"group":return Ui({flags:e});case"lookahead":case"lookbehind":return sl({behind:t==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function Pd(e){if(e===void 0)e=[zl()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function IM(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function G5(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function F5(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function k0e(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function E0e(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function t0(e){return e.replace(/[- _]+/g,"").toLowerCase()}function H5(e,t){const n=t;return Bc(e,`Unclosed character class${(n==null?void 0:n.type)==="Character"&&n.value===93&&n.raw==="]"?' (started with "]")':""}`)}function V5(e){return Bc(e,"Unclosed group")}function Gh(e,t,n=null){function r(a,o){for(let l=0;l<a.length;l++){const c=i(a[l],o,l,a);l=Math.max(-1,l+c)}}function i(a,o=null,l=null,c=null){var w,C;let f=0,d=!1;const m={node:a,parent:o,key:l,container:c,root:e,remove(){Vp(c).splice(Math.max(0,Uu(l)+f),1),f--,d=!0},removeAllNextSiblings(){return Vp(c).splice(Uu(l)+1)},removeAllPrevSiblings(){const S=Uu(l)+f;return f-=S,Vp(c).splice(0,Math.max(0,S))},replaceWith(S,T={}){const z=!!T.traverse;c?c[Math.max(0,Uu(l)+f)]=S:Bc(o,"Can't replace root node")[l]=S,z&&i(S,o,l,c),d=!0},replaceWithMultiple(S,T={}){const z=!!T.traverse;if(Vp(c).splice(Math.max(0,Uu(l)+f),1,...S),f+=S.length-1,z){let A=0;for(let L=0;L<S.length;L++)A+=i(S[L],o,Uu(l)+L+A,c)}d=!0},skip(){d=!0}},{type:p}=a,g=t["*"],y=t[p],x=typeof g=="function"?g:g==null?void 0:g.enter,k=typeof y=="function"?y:y==null?void 0:y.enter;if(x==null||x(m,n),k==null||k(m,n),!d)switch(p){case"AbsenceFunction":case"Alternative":case"CapturingGroup":case"CharacterClass":case"Group":case"LookaroundAssertion":r(a.body,a);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":i(a.min,a,"min"),i(a.max,a,"max");break;case"Quantifier":i(a.body,a,"body");break;case"Regex":r(a.body,a),i(a.flags,a,"flags");break;default:throw new Error(`Unexpected node type "${p}"`)}return(w=y==null?void 0:y.exit)==null||w.call(y,m,n),(C=g==null?void 0:g.exit)==null||C.call(g,m,n),f}return i(e),e}function Vp(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function Uu(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const S0e=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function T0e(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function C0e(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const wi=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function xE(e,t,n,r){const i=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),a=[!1];let o=0,l="";for(const c of e.matchAll(i)){const{0:f,groups:{$skip:d}}=c;if(!d&&(!r||r===wi.DEFAULT==!o)){n instanceof Function?l+=n(c,{context:o?wi.CHAR_CLASS:wi.DEFAULT,negated:a[a.length-1]}):l+=n;continue}f[0]==="["?(o++,a.push(f[1]==="^")):f==="]"&&o&&(o--,a.pop()),l+=f}return l}function $M(e,t,n,r){xE(e,t,n,r)}function A0e(e,t,n=0,r){if(!new RegExp(t,"su").test(e))return null;const i=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");i.lastIndex=n;let a=0,o;for(;o=i.exec(e);){const{0:l,groups:{$skip:c}}=o;if(!c&&(!r||r===wi.DEFAULT==!a))return o;l==="["?a++:l==="]"&&a&&a--,i.lastIndex==o.index&&i.lastIndex++}return null}function Xp(e,t,n){return!!A0e(e,t,0,n)}function j0e(e,t){const n=/\\?./gsu;n.lastIndex=t;let r=e.length,i=0,a=1,o;for(;o=n.exec(e);){const[l]=o;if(l==="[")i++;else if(i)l==="]"&&i--;else if(l==="(")a++;else if(l===")"&&(a--,!a)){r=o.index;break}}return e.slice(t,r)}const X5=new RegExp(String.raw`(?<noncapturingStart>${S0e})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function R0e(e,t){const n=(t==null?void 0:t.hiddenCaptures)??[];let r=(t==null?void 0:t.captureTransfers)??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};const i="(?>",a="(?:(?=(",o=[0],l=[];let c=0,f=0,d=NaN,m;do{m=!1;let p=0,g=0,y=!1,x;for(X5.lastIndex=Number.isNaN(d)?0:d+a.length;x=X5.exec(e);){const{0:k,index:w,groups:{capturingStart:C,noncapturingStart:S}}=x;if(k==="[")p++;else if(p)k==="]"&&p--;else if(k===i&&!y)d=w,y=!0;else if(y&&S)g++;else if(C)y?g++:(c++,o.push(c+f));else if(k===")"&&y){if(!g){f++;const T=c+f;if(e=`${e.slice(0,d)}${a}${e.slice(d+i.length,w)}))<$$${T}>)${e.slice(w+1)}`,m=!0,l.push(T),T0e(n,T),r.size){const z=new Map;r.forEach((A,L)=>{z.set(L>=T?L+1:L,A.map(G=>G>=T?G+1:G))}),r=z}break}g--}}}while(m);return n.push(...l),e=xE(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:p,groups:{backrefNum:g,wrappedBackrefNum:y}})=>{if(g){const x=+g;if(x>o.length-1)throw new Error(`Backref "${p}" greater than number of captures`);return`\\${o[x]}`}return`\\${y}`},wi.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const PM=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Mb=new RegExp(String.raw`
|
|
128
|
+
\\(?: \d+
|
|
129
|
+
| c[A-Za-z]
|
|
130
|
+
| [gk]<[^>]+>
|
|
131
|
+
| [pPu]\{[^\}]+\}
|
|
132
|
+
| u[A-Fa-f\d]{4}
|
|
133
|
+
| x[A-Fa-f\d]{2}
|
|
134
|
+
)
|
|
135
|
+
| \((?: \? (?: [:=!>]
|
|
136
|
+
| <(?:[=!]|[^>]+>)
|
|
137
|
+
| [A-Za-z\-]+:
|
|
138
|
+
| \(DEFINE\)
|
|
139
|
+
))?
|
|
140
|
+
| (?<qBase>${PM})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
141
|
+
| \\?.
|
|
142
|
+
`.replace(/\s+/g,""),"gsu");function N0e(e){if(!new RegExp(`${PM}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,i="",a=0,o;for(Mb.lastIndex=0;o=Mb.exec(e);){const{0:l,index:c,groups:{qBase:f,qMod:d,invalidQ:m}}=o;if(l==="[")a||(r=c),a++;else if(l==="]")a?a--:r=null;else if(!a)if(d==="+"&&i&&!i.startsWith("(")){if(m)throw new Error(`Invalid quantifier "${l}"`);let p=-1;if(/^\{\d+\}$/.test(f))e=C0e(e,c+f.length,d,"");else{if(i===")"||i==="]"){const g=i===")"?n:r;if(g===null)throw new Error(`Invalid unmatched "${i}"`);e=`${e.slice(0,g)}(?>${e.slice(g,c)}${f})${e.slice(c+l.length)}`}else e=`${e.slice(0,c-i.length)}(?>${i}${f})${e.slice(c+l.length)}`;p+=4}Mb.lastIndex+=p}else l[0]==="("?t.push(c):l===")"&&(n=t.length?t.pop():null);i=l}return{pattern:e}}const vi=String.raw,z0e=vi`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Bw=vi`\(\?R=(?<rDepth>[^\)]+)\)|${z0e}`,n0=vi`\(\?<(?![=!])(?<captureName>[^>]+)>`,UM=vi`${n0}|(?<unnamed>\()(?!\?)`,el=new RegExp(vi`${n0}|${Bw}|\(\?|\\?.`,"gsu"),Ob="Cannot use multiple overlapping recursions";function L0e(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let i=(t==null?void 0:t.captureTransfers)??new Map;if(!new RegExp(Bw,"su").test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:n};if(r==="plugin"&&Xp(e,vi`\(\?\(DEFINE\)`,wi.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const a=[],o=Xp(e,vi`\\[1-9]`,wi.DEFAULT),l=new Map,c=[];let f=!1,d=0,m=0,p;for(el.lastIndex=0;p=el.exec(e);){const{0:g,groups:{captureName:y,rDepth:x,gRNameOrNum:k,gRDepth:w}}=p;if(g==="[")d++;else if(d)g==="]"&&d--;else if(x){if(Y5(x),f)throw new Error(Ob);if(o)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const C=e.slice(0,p.index),S=e.slice(el.lastIndex);if(Xp(S,Bw,wi.DEFAULT))throw new Error(Ob);const T=+x-1;e=W5(C,S,T,!1,n,a,m),i=Z5(i,C,T,a.length,0,m);break}else if(k){Y5(w);let C=!1;for(const W of c)if(W.name===k||W.num===+k){if(C=!0,W.hasRecursedWithin)throw new Error(Ob);break}if(!C)throw new Error(vi`Recursive \g cannot be used outside the referenced group "${r==="external"?k:vi`\g<${k}&R=${w}>`}"`);const S=l.get(k),T=j0e(e,S);if(o&&Xp(T,vi`${n0}|\((?!\?)`,wi.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const z=e.slice(S,p.index),A=T.slice(z.length+g.length),L=a.length,G=+w-1,H=W5(z,A,G,!0,n,a,m);i=Z5(i,z,G,a.length-L,L,m);const q=e.slice(0,S),V=e.slice(S+T.length);e=`${q}${H}${V}`,el.lastIndex+=H.length-g.length-z.length-A.length,c.forEach(W=>W.hasRecursedWithin=!0),f=!0}else if(y)m++,l.set(String(m),el.lastIndex),l.set(y,el.lastIndex),c.push({num:m,name:y});else if(g[0]==="("){const C=g==="(";C&&(m++,l.set(String(m),el.lastIndex)),c.push(C?{num:m}:{})}else g===")"&&c.pop()}return n.push(...a),{pattern:e,captureTransfers:i,hiddenCaptures:n}}function Y5(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function W5(e,t,n,r,i,a,o){const l=new Set;r&&$M(e+t,n0,({groups:{captureName:f}})=>{l.add(f)},wi.DEFAULT);const c=[n,r?l:null,i,a,o];return`${e}${K5(`(?:${e}`,"forward",...c)}(?:)${K5(`${t})`,"backward",...c)}${t}`}function K5(e,t,n,r,i,a,o){const c=d=>t==="forward"?d+2:n-d+2-1;let f="";for(let d=0;d<n;d++){const m=c(d);f+=xE(e,vi`${UM}|\\k<(?<backref>[^>]+)>`,({0:p,groups:{captureName:g,unnamed:y,backref:x}})=>{if(x&&r&&!r.has(x))return p;const k=`_$${m}`;if(y||g){const w=o+a.length+1;return a.push(w),M0e(i,w),y?p:`(?<${g}${k}>`}return vi`\k<${x}${k}>`},wi.DEFAULT)}return f}function M0e(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function Z5(e,t,n,r,i,a){if(e.size&&r){let o=0;$M(t,UM,()=>o++,wi.DEFAULT);const l=a-o+i,c=new Map;return e.forEach((f,d)=>{const m=(r-o*n)/n,p=o*n,g=d>l+o?d+r:d,y=[];for(const x of f)if(x<=l)y.push(x);else if(x>l+o+m)y.push(x+r);else if(x<=l+o)for(let k=0;k<=n;k++)y.push(x+o*k);else for(let k=0;k<=n;k++)y.push(x+p+m*k);c.set(g,y)}),c}return e}var xn=String.fromCodePoint,rt=String.raw,Vi={},r0=globalThis.RegExp;Vi.flagGroups=(()=>{try{new r0("(?i:)")}catch{return!1}return!0})();Vi.unicodeSets=(()=>{try{new r0("[[]]","v")}catch{return!1}return!0})();Vi.bugFlagVLiteralHyphenIsRange=Vi.unicodeSets?(()=>{try{new r0(rt`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Vi.bugNestedClassIgnoresNegation=Vi.unicodeSets&&new r0("[[^a]]","v").test("a");function Dg(e,{enable:t,disable:n}){return{dotAll:!(n!=null&&n.dotAll)&&!!(t!=null&&t.dotAll||e.dotAll),ignoreCase:!(n!=null&&n.ignoreCase)&&!!(t!=null&&t.ignoreCase||e.ignoreCase)}}function yd(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function Gw(e,t){return Q5[e]>=Q5[t]}function O0e(e,t){if(e==null)throw new Error(t??"Value expected");return e}var Q5={ES2025:2025,ES2024:2024,ES2018:2018},D0e={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function BM(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!D0e[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=Vi.flagGroups?"ES2025":Vi.unicodeSets?"ES2024":"ES2018"),t}var q0e="[ -\r ]",I0e=new Set([xn(304),xn(305)]),Va=rt`[\p{L}\p{M}\p{N}\p{Pc}]`;function GM(e){if(I0e.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),i=U0e.get(n),a=$0e.get(n),o=P0e.get(n);return[...r].length===1&&t.add(r),o&&t.add(o),i&&t.add(i),t.add(n),a&&t.add(a),[...t]}var wE=new Map(`C Other
|
|
143
|
+
Cc Control cntrl
|
|
144
|
+
Cf Format
|
|
145
|
+
Cn Unassigned
|
|
146
|
+
Co Private_Use
|
|
147
|
+
Cs Surrogate
|
|
148
|
+
L Letter
|
|
149
|
+
LC Cased_Letter
|
|
150
|
+
Ll Lowercase_Letter
|
|
151
|
+
Lm Modifier_Letter
|
|
152
|
+
Lo Other_Letter
|
|
153
|
+
Lt Titlecase_Letter
|
|
154
|
+
Lu Uppercase_Letter
|
|
155
|
+
M Mark Combining_Mark
|
|
156
|
+
Mc Spacing_Mark
|
|
157
|
+
Me Enclosing_Mark
|
|
158
|
+
Mn Nonspacing_Mark
|
|
159
|
+
N Number
|
|
160
|
+
Nd Decimal_Number digit
|
|
161
|
+
Nl Letter_Number
|
|
162
|
+
No Other_Number
|
|
163
|
+
P Punctuation punct
|
|
164
|
+
Pc Connector_Punctuation
|
|
165
|
+
Pd Dash_Punctuation
|
|
166
|
+
Pe Close_Punctuation
|
|
167
|
+
Pf Final_Punctuation
|
|
168
|
+
Pi Initial_Punctuation
|
|
169
|
+
Po Other_Punctuation
|
|
170
|
+
Ps Open_Punctuation
|
|
171
|
+
S Symbol
|
|
172
|
+
Sc Currency_Symbol
|
|
173
|
+
Sk Modifier_Symbol
|
|
174
|
+
Sm Math_Symbol
|
|
175
|
+
So Other_Symbol
|
|
176
|
+
Z Separator
|
|
177
|
+
Zl Line_Separator
|
|
178
|
+
Zp Paragraph_Separator
|
|
179
|
+
Zs Space_Separator
|
|
180
|
+
ASCII
|
|
181
|
+
ASCII_Hex_Digit AHex
|
|
182
|
+
Alphabetic Alpha
|
|
183
|
+
Any
|
|
184
|
+
Assigned
|
|
185
|
+
Bidi_Control Bidi_C
|
|
186
|
+
Bidi_Mirrored Bidi_M
|
|
187
|
+
Case_Ignorable CI
|
|
188
|
+
Cased
|
|
189
|
+
Changes_When_Casefolded CWCF
|
|
190
|
+
Changes_When_Casemapped CWCM
|
|
191
|
+
Changes_When_Lowercased CWL
|
|
192
|
+
Changes_When_NFKC_Casefolded CWKCF
|
|
193
|
+
Changes_When_Titlecased CWT
|
|
194
|
+
Changes_When_Uppercased CWU
|
|
195
|
+
Dash
|
|
196
|
+
Default_Ignorable_Code_Point DI
|
|
197
|
+
Deprecated Dep
|
|
198
|
+
Diacritic Dia
|
|
199
|
+
Emoji
|
|
200
|
+
Emoji_Component EComp
|
|
201
|
+
Emoji_Modifier EMod
|
|
202
|
+
Emoji_Modifier_Base EBase
|
|
203
|
+
Emoji_Presentation EPres
|
|
204
|
+
Extended_Pictographic ExtPict
|
|
205
|
+
Extender Ext
|
|
206
|
+
Grapheme_Base Gr_Base
|
|
207
|
+
Grapheme_Extend Gr_Ext
|
|
208
|
+
Hex_Digit Hex
|
|
209
|
+
IDS_Binary_Operator IDSB
|
|
210
|
+
IDS_Trinary_Operator IDST
|
|
211
|
+
ID_Continue IDC
|
|
212
|
+
ID_Start IDS
|
|
213
|
+
Ideographic Ideo
|
|
214
|
+
Join_Control Join_C
|
|
215
|
+
Logical_Order_Exception LOE
|
|
216
|
+
Lowercase Lower
|
|
217
|
+
Math
|
|
218
|
+
Noncharacter_Code_Point NChar
|
|
219
|
+
Pattern_Syntax Pat_Syn
|
|
220
|
+
Pattern_White_Space Pat_WS
|
|
221
|
+
Quotation_Mark QMark
|
|
222
|
+
Radical
|
|
223
|
+
Regional_Indicator RI
|
|
224
|
+
Sentence_Terminal STerm
|
|
225
|
+
Soft_Dotted SD
|
|
226
|
+
Terminal_Punctuation Term
|
|
227
|
+
Unified_Ideograph UIdeo
|
|
228
|
+
Uppercase Upper
|
|
229
|
+
Variation_Selector VS
|
|
230
|
+
White_Space space
|
|
231
|
+
XID_Continue XIDC
|
|
232
|
+
XID_Start XIDS`.split(/\s/).map(e=>[t0(e),e])),$0e=new Map([["s",xn(383)],[xn(383),"s"]]),P0e=new Map([[xn(223),xn(7838)],[xn(107),xn(8490)],[xn(229),xn(8491)],[xn(969),xn(8486)]]),U0e=new Map([es(453),es(456),es(459),es(498),...Db(8072,8079),...Db(8088,8095),...Db(8104,8111),es(8124),es(8140),es(8188)]),B0e=new Map([["alnum",rt`[\p{Alpha}\p{Nd}]`],["alpha",rt`\p{Alpha}`],["ascii",rt`\p{ASCII}`],["blank",rt`[\p{Zs}\t]`],["cntrl",rt`\p{Cc}`],["digit",rt`\p{Nd}`],["graph",rt`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",rt`\p{Lower}`],["print",rt`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",rt`[\p{P}\p{S}]`],["space",rt`\p{space}`],["upper",rt`\p{Upper}`],["word",rt`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",rt`\p{AHex}`]]);function G0e(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function es(e){const t=xn(e);return[t.toLowerCase(),t]}function Db(e,t){return G0e(e,t).map(n=>es(n))}var FM=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function F0e(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};HM(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Gw(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};Gh(e,H0e,r);const i={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},a={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};Gh(e,V0e,a);const o={groupsByName:a.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:a.reffedNodesByReferencer};return Gh(e,X0e,o),e._originMap=a.groupOriginByCopy,e._strategy=r.strategy,e}var H0e={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:i}=e;if(i==="repeater"){const a=Ui();a.body[0].body.push(sl({negate:!0,body:r}),Yu("Any"));const o=Ui();o.body[0].body.push(DM("greedy",0,1/0,a)),n(ln(o,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const i=e.body.filter(a=>a.kind==="flags");for(let a=n+1;a<t.body.length;a++){const o=t.body[a];yd(r,o,[]).push(...i)}},exit({node:e},{flagDirectivesByAlt:t}){var n;if((n=t.get(e))!=null&&n.length){const r=XM(t.get(e));if(r){const i=Ui({flags:r});i.body[0].body=e.body,e.body=[ln(i,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:i,remove:a,replaceWith:o},l){const{kind:c,negate:f}=e,{asciiWordBoundaries:d,avoidSubclass:m,supportedGNodes:p,wordIsAscii:g}=l;if(c==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${f?"Y":"y"}"`);if(c==="line_end")o(ln(sl({body:[zl({body:[$w("string_end")]}),zl({body:[e0(10)]})]}),t));else if(c==="line_start")o(ln(Xa(rt`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(c==="search_start")if(p.has(e))i.flags.sticky=!0,a();else{const y=r[n-1];if(y&&J0e(y))o(ln(sl({negate:!0}),t));else{if(m)throw new Error(rt`Uses "\G" in a way that requires a subclass`);o(ts($w("string_start"),t)),l.strategy="clip_search"}}else if(!(c==="string_end"||c==="string_start"))if(c==="string_end_newline")o(ln(Xa(rt`(?=\n?\z)`),t));else if(c==="word_boundary"){if(!g&&!d){const y=`(?:(?<=${Va})(?!${Va})|(?<!${Va})(?=${Va}))`,x=`(?:(?<=${Va})(?=${Va})|(?<!${Va})(?!${Va}))`;o(ln(Xa(f?x:y),t))}}else throw new Error(`Unexpected assertion kind "${c}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Ib(n)&&(n=qb(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!Ib(r)&&(r=qb(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){if(t.kind==="intersection"){const r=k_({body:[e]});n(ln(r,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:i,digitIsAscii:a,spaceIsAscii:o,wordIsAscii:l}){const{kind:c,negate:f,value:d}=e;if(a&&(c==="digit"||d==="digit")){n(ts(Uw("digit",{negate:f}),t));return}if(o&&(c==="space"||d==="space")){n(ln($b(Xa(q0e),f),t));return}if(l&&(c==="word"||d==="word")){n(ts(Uw("word",{negate:f}),t));return}if(c==="any")n(ts(Yu("Any"),t));else if(c==="digit")n(ts(Yu("Nd",{negate:f}),t));else if(c!=="dot")if(c==="text_segment"){if(r==="strict")throw new Error(rt`Use of "\X" requires non-strict accuracy`);const m="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",p=rt`\p{RI}{2}|${m}(?:\u200D${m})*`;n(ln(Xa(rt`(?>\r\n|${i?rt`\p{RGI_Emoji}`:p}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(c==="hex")n(ts(Yu("AHex",{negate:f}),t));else if(c==="newline")n(ln(Xa(f?`[^
|
|
233
|
+
]`:`(?>\r
|
|
234
|
+
?|[
|
|
235
|
+
\v\f
\u2028\u2029])`),t));else if(c==="posix")if(!i&&(d==="graph"||d==="print")){if(r==="strict")throw new Error(`POSIX class "${d}" requires min target ES2024 or non-strict accuracy`);let m={graph:"!-~",print:" -~"}[d];f&&(m=`\0-${xn(m.codePointAt(0)-1)}${xn(m.codePointAt(2)+1)}-`),n(ln(Xa(`[${m}]`),t))}else n(ln($b(Xa(B0e.get(d)),f),t));else if(c==="property")wE.has(t0(d))||(e.key="sc");else if(c==="space")n(ts(Yu("space",{negate:f}),t));else if(c==="word")n(ln($b(Xa(Va),f),t));else throw new Error(`Unexpected character set kind "${c}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:o}){const{kind:l,flags:c}=e;if(l==="flags")if(!c.enable&&!c.disable)r();else{const f=Ui({flags:c});f.body[0].body=o(),i(ln(f,t),{traverse:!0})}else if(l==="keep"){const f=n.body[0],m=n.body.length===1&&LM(f,{type:"Group"})&&f.body[0].body.length===1?f.body[0]:n;if(t.parent!==m||m.body.length>1)throw new Error(rt`Uses "\K" in a way that's unsupported`);const p=sl({behind:!0});p.body[0].body=a(),i(ln(p,t))}else throw new Error(`Unexpected directive kind "${l}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(n=>delete e[n]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:n}=e.flags;t!=null&&t.extended&&delete t.extended,n!=null&&n.extended&&delete n.extended,t!=null&&t.dotAll&&(n!=null&&n.dotAll)&&delete t.dotAll,t!=null&&t.ignoreCase&&(n!=null&&n.ignoreCase)&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:n}=e;n==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){const{kind:r}=e;if(r==="fail")n(ln(sl({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=Ui();t.body[0].body.push(e.body),e.body=ln(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,i=!1;for(const a of e.body)if(a.body.length===1&&a.body[0].kind==="search_start")a.body.pop();else{const o=WM(a.body);o?(r=!0,Array.isArray(o)?n.push(...o):n.push(o)):i=!0}r&&!i&&n.forEach(a=>t.add(a))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t==="strict"&&n&&r)throw new Error(rt`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Ib(n)&&(n=qb(n,t),e.ref=n)}},V0e={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:a})=>a)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:o,openRefs:l,reffedNodesByReferencer:c}){const f=i.get(e);if(f&&l.has(e.number)){const m=ts(J5(e.number),t);c.set(m,l.get(e.number)),n(m);return}l.set(e.number,e),o.set(e.number,[]),e.name&&yd(o,e.name,[]);const d=o.get(e.name??e.number);for(let m=0;m<d.length;m++){const p=d[m];if(f===p.node||f&&f===p.origin||e===p.origin){d.splice(m,1);break}}if(o.get(e.number).push({node:e,origin:f}),e.name&&o.get(e.name).push({node:e,origin:f}),e.name){const m=yd(a,e.name,new Map);let p=!1;if(f)p=!0;else for(const g of m.values())if(!g.hasDuplicateNameToRemove){p=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:p})}},exit({node:e},{openRefs:t}){t.get(e.number)===e&&t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=Dg(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){const{isRecursive:i,ref:a}=e;if(i){let d=t;for(;(d=d.parent)&&!(d.type==="CapturingGroup"&&(d.name===a||d.number===a)););r.reffedNodesByReferencer.set(e,d);return}const o=r.subroutineRefMap.get(a),l=a===0,c=l?J5(0):VM(o,r.groupOriginByCopy,null);let f=c;if(!l){const d=XM(K0e(o,p=>p.type==="Group"&&!!p.flags)),m=d?Dg(r.globalFlags,d):r.globalFlags;Y0e(m,r.currentFlags)||(f=Ui({flags:Z0e(m)}),f.body[0].body.push(c))}n(ln(f,t),{traverse:!l})}},X0e={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}const a=r.reffedNodesByReferencer.get(e).filter(o=>W0e(o,e));if(!a.length)n(ln(sl({negate:!0}),t));else if(a.length>1){const o=Ui({atomic:!0,body:a.reverse().map(l=>zl({body:[Pw(l.number)]}))});n(ln(o,t))}else e.ref=a[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){const n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let r=0;r<n;r++){const i=OM();e.body.at(-1).body.push(i)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function HM(e){Gh(e,{"*"({node:t,parent:n}){t.parent=n}})}function Y0e(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function W0e(e,t){let n=t;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===e)return!1;const r=YM(n.parent);for(const i of r){if(i===n)break;if(i===e||KM(i,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function VM(e,t,n,r){const i=Array.isArray(e)?[]:{};for(const[a,o]of Object.entries(e))a==="parent"?i.parent=Array.isArray(n)?r:n:o&&typeof o=="object"?i[a]=VM(o,t,i,n):(a==="type"&&o==="CapturingGroup"&&t.set(i,t.get(e)??e),i[a]=o);return i}function J5(e){const t=qM(e);return t.isRecursive=!0,t}function K0e(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function qb(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function XM(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(i=>{var a,o;(a=r.enable)!=null&&a[i]&&(delete n.disable[i],n.enable[i]=!0),(o=r.disable)!=null&&o[i]&&(n.disable[i]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function Z0e({dotAll:e,ignoreCase:t}){const n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function YM(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function WM(e){const t=e.find(n=>n.kind==="search_start"||eye(n,{negate:!1})||!Q0e(n));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){const n=[];for(const r of t.body){const i=WM(r.body);if(!i)return null;Array.isArray(i)?n.push(...i):n.push(i)}return n}return null}function KM(e,t){const n=YM(e)??[];for(const r of n)if(r===t||KM(r,t))return!0;return!1}function Q0e({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function J0e(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function eye(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&LM(e.body[0],{type:"Assertion",kind:"search_start"})}function Ib(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Xa(e,t){const r=MM(e,{...t,unicodePropertyMap:wE}).body;return r.length>1||r[0].body.length>1?Ui({body:r}):r[0].body[0]}function $b(e,t){return e.negate=t,e}function ts(e,t){return e.parent=t,e}function ln(e,t){return HM(e),e.parent=t,e}function tye(e,t){const n=BM(t),r=Gw(n.target,"ES2024"),i=Gw(n.target,"ES2025"),a=n.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw new Error("Invalid recursionLimit; use 2-20");let o=null,l=null;if(!i){const g=[e.flags.ignoreCase];Gh(e,nye,{getCurrentModI:()=>g.at(-1),popModI(){g.pop()},pushModI(y){g.push(y)},setHasCasedChar(){g.at(-1)?o=!0:l=!0}})}const c={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||o)&&!l)};let f=e;const d={accuracy:n.accuracy,appliedGlobalFlags:c,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:f,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&o&&l),useFlagMods:i,useFlagV:r,verbose:n.verbose};function m(g){return d.lastNode=f,f=g,O0e(rye[g.type],`Unexpected node type "${g.type}"`)(g,d,m)}const p={pattern:e.body.map(m).join("|"),flags:m(e.flags),options:{...e.options}};return r||(delete p.options.force.v,p.options.disable.v=!0,p.options.unicodeSetsPlugin=null),p._captureTransfers=new Map,p._hiddenCaptures=[],d.captureMap.forEach((g,y)=>{g.hidden&&p._hiddenCaptures.push(y),g.transferTo&&yd(p._captureTransfers,g.transferTo,[]).push(y)}),p}var nye={"*":{enter({node:e},t){if(tA(e)){const n=t.getCurrentModI();t.pushModI(e.flags?Dg({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){tA(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){kE(xn(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),ZM(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&FM.has(e.value)&&t.setHasCasedChar()}},rye={Alternative({body:e},t,n){return e.map(n).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?rt`\B`:rt`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,n){const{body:r,name:i,number:a}=e,o={ignoreCase:t.currentFlags.ignoreCase},l=t.originMap.get(e);return l&&(o.hidden=!0,a>l.number&&(o.transferTo=l.number)),t.captureMap.set(a,o),`(${i?`?<${i}>`:""}${r.map(n).join("|")})`},Character({value:e},t){const n=xn(e),r=Bu(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&kE(n)){const i=GM(n);return t.inCharClass?i.join(""):i.length>1?`[${i.join("")}]`:i[0]}return n},CharacterClass(e,t,n){const{kind:r,negate:i,parent:a}=e;let{body:o}=e;if(r==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");Vi.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(nA)&&(o=[e0(45),...o.filter(f=>!nA(f))]);const l=()=>`[${i?"^":""}${o.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||Vi.bugNestedClassIgnoresNegation)&&!i){const d=o.filter(m=>m.type==="CharacterClass"&&m.kind==="union"&&m.negate);if(d.length){const m=Ui(),p=m.body[0];return m.parent=a,p.parent=m,o=o.filter(g=>!d.includes(g)),e.body=o,o.length?(e.parent=p,p.body.push(e)):m.body.pop(),d.forEach(g=>{const y=zl({body:[g]});g.parent=y,y.parent=m,m.body.push(y)}),n(m)}}t.inCharClass=!0;const f=l();return t.inCharClass=!1,f}const c=o[0];if(r==="union"&&!i&&c&&((!t.useFlagV||!t.verbose)&&a.kind==="union"&&!(Vi.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&a.kind==="intersection"&&o.length===1&&c.type!=="CharacterClassRange"))return o.map(n).join("");if(!t.useFlagV&&a.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return l()},CharacterClassRange(e,t){const n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=Bu(n,i),o=Bu(r,i),l=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const c=ZM(e);lye(c).forEach(d=>{l.add(Array.isArray(d)?`${Bu(d[0],i)}-${Bu(d[1],i)}`:Bu(d,i))})}return`${a}-${o}${[...l].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if(e==="dot")return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":rt`[^\n]`;if(e==="digit")return t?rt`\D`:rt`\d`;if(e==="property"){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&FM.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?rt`\P`:rt`\p`}{${r?`${r}=`:""}${n}}`}if(e==="word")return t?rt`\W`:rt`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:n,parent:r},i,a){const o=i.currentFlags;n&&(i.currentFlags=Dg(o,n));const l=t.map(a).join("|"),c=!i.verbose&&t.length===1&&r.type!=="Quantifier"&&!e&&(!i.useFlagMods||!n)?l:`(?${uye(e,n,i.useFlagMods)}${l})`;return i.currentFlags=o,c},LookaroundAssertion({body:e,kind:t,negate:n},r,i){return`(?${`${t==="lookahead"?"":"<"}${n?"!":"="}`}${e.map(i).join("|")})`},Quantifier(e,t,n){return n(e.body)+cye(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const r=n.recursionLimit;return t===0?`(?R=${r})`:rt`\g<${t}&R=${r}>`}},iye=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),aye=new Set(["-","\\","]","^","["]),oye=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),eA=new Map([[9,rt`\t`],[10,rt`\n`],[11,rt`\v`],[12,rt`\f`],[13,rt`\r`],[8232,rt`\u2028`],[8233,rt`\u2029`],[65279,rt`\uFEFF`]]),sye=new RegExp("^\\p{Cased}$","u");function kE(e){return sye.test(e)}function ZM(e,t){const n=!!(t!=null&&t.firstOnly),r=e.min.value,i=e.max.value,a=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return a;for(let o=r;o<=i;o++){const l=xn(o);if(!kE(l))continue;const c=GM(l).filter(f=>{const d=f.codePointAt(0);return d<r||d>i});if(c.length&&(a.push(...c),n))break}return a}function Bu(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(eA.has(e))return eA.get(e);if(e<32||e>126&&e<160||e>262143||t&&fye(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const i=n?r?oye:aye:iye,a=xn(e);return(i.has(a)?"\\":"")+a}function lye(e){const t=e.map(i=>i.codePointAt(0)).sort((i,a)=>i-a),n=[];let r=null;for(let i=0;i<t.length;i++)t[i+1]===t[i]+1?r??(r=t[i]):r===null?n.push(t[i]):(n.push([r,t[i]]),r=null);return n}function uye(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:i,disable:a}=t;r=(i!=null&&i.ignoreCase?"i":"")+(i!=null&&i.dotAll?"s":"")+(a?"-":"")+(a!=null&&a.ignoreCase?"i":"")+(a!=null&&a.dotAll?"s":"")}return`${r}:`}function cye({kind:e,max:t,min:n}){let r;return!n&&t===1?r="?":!n&&t===1/0?r="*":n===1&&t===1/0?r="+":n===t?r=`{${n}}`:r=`{${n},${t===1/0?"":t}}`,r+{greedy:"",lazy:"?",possessive:"+"}[e]}function tA({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function fye(e){return e>47&&e<58}function nA({type:e,value:t}){return e==="Character"&&t===45}var is,eo,dl,as,ml,bd,Fw,hs,hye=(hs=class extends RegExp{constructor(n,r,i){var t=(...V2e)=>(super(...V2e),Ws(this,bd),Ws(this,is,new Map),Ws(this,eo,null),Ws(this,dl),Ws(this,as,null),Ws(this,ml,null),pe(this,"rawOptions",{}),this);const a=!!(i!=null&&i.lazyCompile);if(n instanceof RegExp){if(i)throw new Error("Cannot provide options when copying a regexp");const o=n;t(o,r),Mi(this,dl,o.source),o instanceof hs&&(Mi(this,is,lr(o,is)),Mi(this,as,lr(o,as)),Mi(this,ml,lr(o,ml)),this.rawOptions=o.rawOptions)}else{const o={hiddenCaptures:[],strategy:null,transfers:[],...i};t(a?"":n,r),Mi(this,dl,n),Mi(this,is,mye(o.hiddenCaptures,o.transfers)),Mi(this,ml,o.strategy),this.rawOptions=i??{}}a||Mi(this,eo,this)}get source(){return lr(this,dl)||"(?:)"}exec(n){if(!lr(this,eo)){const{lazyCompile:a,...o}=this.rawOptions;Mi(this,eo,new hs(lr(this,dl),this.flags,o))}const r=this.global||this.sticky,i=this.lastIndex;if(lr(this,ml)==="clip_search"&&r&&i){this.lastIndex=0;const a=cv(this,bd,Fw).call(this,n.slice(i));return a&&(dye(a,i,n,this.hasIndices),this.lastIndex+=i),a}return cv(this,bd,Fw).call(this,n)}},is=new WeakMap,eo=new WeakMap,dl=new WeakMap,as=new WeakMap,ml=new WeakMap,bd=new WeakSet,Fw=function(n){lr(this,eo).lastIndex=this.lastIndex;const r=h4(hs.prototype,this,"exec").call(lr(this,eo),n);if(this.lastIndex=lr(this,eo).lastIndex,!r||!lr(this,is).size)return r;const i=[...r];r.length=1;let a;this.hasIndices&&(a=[...r.indices],r.indices.length=1);const o=[0];for(let l=1;l<i.length;l++){const{hidden:c,transferTo:f}=lr(this,is).get(l)??{};if(c?o.push(null):(o.push(r.length),r.push(i[l]),this.hasIndices&&r.indices.push(a[l])),f&&i[l]!==void 0){const d=o[f];if(!d)throw new Error(`Invalid capture transfer to "${d}"`);if(r[d]=i[l],this.hasIndices&&(r.indices[d]=a[l]),r.groups){lr(this,as)||Mi(this,as,pye(this.source));const m=lr(this,as).get(f);m&&(r.groups[m]=i[l],this.hasIndices&&(r.indices.groups[m]=a[l]))}}}return r},hs);function dye(e,t,n,r){if(e.index+=t,e.input=n,r){const i=e.indices;for(let o=0;o<i.length;o++){const l=i[o];l&&(i[o]=[l[0]+t,l[1]+t])}const a=i.groups;a&&Object.keys(a).forEach(o=>{const l=a[o];l&&(a[o]=[l[0]+t,l[1]+t])})}}function mye(e,t){const n=new Map;for(const r of e)n.set(r,{hidden:!0});for(const[r,i]of t)for(const a of i)yd(n,a,{}).transferTo=r;return n}function pye(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r=0,i=0,a;for(;a=t.exec(e);){const{0:o,groups:{capture:l,name:c}}=a;o==="["?r++:r?o==="]"&&r--:l&&(i++,c&&n.set(i,c))}return n}function _ye(e,t){const n=gye(e,t);return n.options?new hye(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function gye(e,t){const n=BM(t),r=MM(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:wE}),i=F0e(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),a=tye(i,n),o=L0e(a.pattern,{captureTransfers:a._captureTransfers,hiddenCaptures:a._hiddenCaptures,mode:"external"}),l=N0e(o.pattern),c=R0e(l.pattern,{captureTransfers:o.captureTransfers,hiddenCaptures:o.hiddenCaptures}),f={pattern:c.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${a.flags}${a.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const d=c.hiddenCaptures.sort((y,x)=>y-x),m=Array.from(c.captureTransfers),p=i._strategy,g=f.pattern.length>=n.lazyCompileLength;(d.length||m.length||p||g)&&(f.options={...d.length&&{hiddenCaptures:d},...m.length&&{transfers:m},...p&&{strategy:p},...g&&{lazyCompile:g}})}return f}function QM(e,t){return _ye(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function yye(e={}){const t={target:"auto",cache:new Map,...e};return t.regexConstructor||(t.regexConstructor=n=>QM(n,{target:t.target})),{createScanner(n){return new M1e(n,t)},createString(n){return{content:n}}}}I7(aE({bundledLanguages:()=>lE,bundledLanguagesAlias:()=>sE,bundledLanguagesBase:()=>oE,bundledLanguagesInfo:()=>V1,bundledThemes:()=>cE,bundledThemesInfo:()=>uE,codeToHast:()=>wM,codeToHtml:()=>yE,codeToTokens:()=>kM,codeToTokensBase:()=>EM,codeToTokensWithThemes:()=>SM,createHighlighter:()=>gE,createJavaScriptRegexEngine:()=>yye,createOnigurumaEngine:()=>U7,defaultJavaScriptRegexConstructor:()=>QM,getLastGrammarState:()=>CM,getSingletonHighlighter:()=>TM,loadWasm:()=>hE}),L1e);function vye({html:e,className:t="",...n}){return b.jsx("div",{className:t,dangerouslySetInnerHTML:{__html:e},...n})}function qg({path:e,content:t,kind:n="source file",relationTypes:r=[],defaultExpanded:i=!0,showPath:a=!0}){const o=se.useMemo(()=>bye(e,t),[t,e]),l=se.useMemo(()=>kye(t),[t]),[c,f]=se.useState(i),[d,m]=se.useState(!1),[p,g]=se.useState(!1),[y,x]=se.useState(null);se.useEffect(()=>{let w=!1;x(null);const C=xye(o);if(!C){x(rA(t));return}return yE(t,{lang:C,themes:{light:"github-light",dark:"github-dark"},defaultColor:!1}).then(S=>{w||x(S)}).catch(()=>{w||x(rA(t))}),()=>{w=!0}},[t,o]);async function k(){var w;(w=navigator.clipboard)!=null&&w.writeText&&(await navigator.clipboard.writeText(t),g(!0),window.setTimeout(()=>g(!1),1400))}return b.jsxs(hte,{wrapped:d,children:[b.jsx(dte,{expanded:c,onToggleExpanded:()=>f(w=>!w),kind:n,path:e,showPath:a,languageLabel:wye(o),lineCount:l,relationTypes:r,wrapped:d,copied:p,onToggleWrap:()=>m(w=>!w),onCopy:k}),c&&b.jsx(KC,{children:y?b.jsx(vye,{html:y,className:ste,"aria-label":"Source code"}):b.jsx("pre",{className:lte,"aria-label":"Source code",children:b.jsx("code",{children:t})})}),!c&&b.jsx(KC,{collapsed:!0,lineCount:l})]})}function bye(e,t){const n=e.toLowerCase();if(n.endsWith(".rs"))return"rust";if(/\.(ts|tsx|mts|cts|js|jsx)$/.test(n))return"typescript";if(n.endsWith(".py"))return"python";if(/\.(md|markdown)$/.test(n))return"markdown";if(/\.(yaml|yml)$/.test(n))return"yaml";if(n.endsWith(".toml"))return"toml";if(n.endsWith(".json"))return"json";if(n.endsWith(".css"))return"css";if(/\.(html|htm)$/.test(n))return"html";if(/\.(sh|bash|zsh|ksh)$/.test(n))return"bash";const r=t.trim();return r.startsWith("{")||r.startsWith("[")?"json":/^#!\/.*\b(?:bash|sh|zsh|ksh)\b/m.test(r)?"bash":/\b(fn|impl|struct|enum|trait|pub|let mut|use|match)\b/.test(r)?"rust":/\b(import|export|const|let|interface|type)\b/.test(r)?"typescript":"text"}function xye(e){return e==="text"?null:e}function wye(e){switch(e){case"typescript":return"TypeScript";case"markdown":return"Markdown";case"yaml":return"YAML";case"json":return"JSON";case"html":return"HTML";case"css":return"CSS";case"toml":return"TOML";case"bash":return"Shell";case"python":return"Python";case"rust":return"Rust";default:return"Text"}}function kye(e){return e?e.split(/\r?\n/).length:0}function rA(e){return`<pre class="shiki"><code>${e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}</code></pre>`}function Eye({resourceId:e}={}){const{store:t}=xr(),n=e?t.resources.find(i=>i.id===e):void 0;if(e)return b.jsx(ba,{testId:"resources",children:b.jsx(Ec,{children:b.jsxs(Rl,{children:[b.jsx(Vz,{label:"Resource",title:(n==null?void 0:n.display)??e,actionHref:"#/model",actionLabel:"Back to model"}),n!=null&&n.source_text?b.jsx(qg,{path:n.file_path??n.target,content:n.source_text,kind:n.kind,relationTypes:n.relation_types}):n?b.jsx(Toe,{kind:n.kind,target:n.target,externalUrl:n.external_url}):b.jsxs(hL,{children:["Resource not found: ",e]})]})})});const r=t.resources.map(i=>({id:i.id,kind:i.kind,display:i.display,target:i.target,href:i.file_path?`#/content/${i.file_path}`:null,externalUrl:i.external_url,relationTypes:i.relation_types}));return b.jsx(ba,{testId:"resources",children:b.jsx(Ec,{children:b.jsxs(Rl,{children:[b.jsx(Eoe,{count:r.length}),b.jsx(Soe,{resources:r})]})})})}function Sye({initialQuery:e,onOpenElement:t}){const{store:n,elementById:r}=xr(),{searchElementTypes:i,searchKinds:a}=ei(),o=wpe(),[l,c]=se.useState(e??""),[f,d]=se.useState([]),[m,p]=se.useState(null),g=se.useRef(0);se.useEffect(()=>{c(e??"")},[e]);function y(S){S.preventDefault(),window.location.hash=Gse(l)}const x=se.useMemo(()=>{const S=new Map;for(const T of n.resources)S.set(T.target,T),T.file_path&&S.set(T.file_path,T);return S},[n.resources]),k=se.useMemo(()=>new Set(n.elements.map(S=>S.file_path)),[n.elements]);se.useEffect(()=>{if(o.status!=="ready"){g.current+=1,d([]);return}const S=g.current+1;g.current=S,p(null),o.search(l,a,i).then(T=>{g.current===S&&d(T)}).catch(T=>{g.current===S&&(d([]),p(T instanceof Error?T.message:String(T)))})},[l,i,o,a]);const w=f.map(S=>{const T=S.kind==="element"?r(S.id):void 0,z=Cye(S,x,k),A=D7(S,x,k),L=(T==null?void 0:T.source_anchor)??(z?`#/resources/${z.id}`:S.route),G=Aye(L),H=T?null:Rye(S.text,[S.title,G,L]);return{key:`${S.kind}:${S.id}`,title:S.title,route:jye(G,S.title,A)??void 0,preview:T?b.jsx(nE,{markdown:T.content,sourceFilePath:T.file_path,sourceAnchor:T.source_anchor,variant:"preview"}):H??void 0,badge:T?{label:T.element_type,type:T.element_type,family:T.type_family,tinted:!0}:{label:Tye(A)},action:T?{kind:"button",onClick:()=>t(S.id)}:{kind:"link",href:L}}}),C=o.status!=="ready"?"Building ranked search index...":m||(f.length===0?"No matches.":void 0);return b.jsx(ba,{testId:"search",children:b.jsx(Ec,{children:b.jsxs(Rl,{children:[b.jsx(Ooe,{query:l,resultSummary:o.status==="ready"?`${f.length} results`:"Indexing",statusText:Nye(o.status,l,o.documentCount,o.error??m),onQueryChange:c,onSubmit:y}),b.jsx(Doe,{results:w,emptyMessage:C})]})})})}function Tye(e){return e.replace(/[-_]/g," ")}function Cye(e,t,n){if(!(e.kind!=="file"||n.has(e.id)))return t.get(e.id)}function Aye(e){return e.replace(/^#\/content\//,"").replace(/^#\/elements\//,"").replace(/^#\/resources\//,"resource:").replace(/^#\//,"")}function jye(e,t,n){return n==="resource"||Ig(e)===Ig(t)?null:e}function Rye(e,t){const n=Ig(e);return n?t.some(r=>Ig(r)===n)?null:e:null}function Ig(e){return e.trim().replace(/^#\/content\//,"").replace(/^#\//,"").toLowerCase()}function Nye(e,t,n,r){return e==="building"?"Preparing ranked search index.":e==="error"?r?`Search index failed: ${r}`:"Search index failed.":t?`Filtering by "${t}"`:`Search ${n.toLocaleString()} indexed documents.`}const kn="__root__";function JM({path:e,forcedLayout:t,onOpenElement:n}){const{store:r,elementById:i}=xr(),a=Qme(),o=se.useMemo(()=>zye(r),[r]),l=!!(t&&a),c=(a==null?void 0:a.modelSelectionId)??"__root__",f=l?eO(c,o,r):e?o.fileByPath.get(e):void 0,[d,m]=se.useState(kn),[p,g]=se.useState("list"),[y,x]=se.useState("name"),[k,w]=se.useState("asc");se.useEffect(()=>{if(l){const W=qye(c,o,r);m(W);return}if(!f)return;const V=f.parent_folder||kn;m(o.folderByPath.has(V)?V:kn)},[o,o.folderByPath,c,f,l,r]);const C=o.folderByPath.get(d)??o.root,S=t??p,T=f?Hw(f.display_path||f.path):void 0,z=se.useMemo(()=>{const V=I=>({kind:"folder",id:I.id,name:I.name,path:I.path,displayPath:I.path===kn?r.project.root_label||"Project root":I.path,elementCount:o.folderElementCounts.get(I.path)??0,childCount:I.folders.length+I.files.length,folder:I}),W=I=>({kind:"file",id:`file:${I.path}`,name:Hw(I.display_path||I.path),path:I.path,displayPath:I.display_path||I.path,elementCount:I.element_ids.length,childCount:I.element_ids.length,file:I});return[...C.folders.map(V),...C.files.map(W)].sort((I,B)=>Dye(I,B,y,k))},[C,o.folderElementCounts,k,y,r.project.root_label]),A=se.useMemo(()=>z.map(V=>({kind:V.kind,id:V.id,name:V.name,path:V.path,displayPath:V.displayPath,elementCount:V.elementCount,childCount:V.childCount,selected:Lye(V,f),emptyFile:V.kind==="file"&&V.elementCount===0,href:V.kind==="file"?`#/files/${V.path}`:void 0,contentHref:V.kind==="file"?cd(V.path):void 0})),[z,f]);function L(V){V===y?w(W=>W==="asc"?"desc":"asc"):(x(V),w("asc"))}function G(V){l&&a&&a.setModelSelectionId(V===kn?"__root__":`folder:${V}`),m(V)}function H(V){l&&a&&a.setModelSelectionId(`file:${V}`)}function q(V){if(l&&a){a.setModelMode(V);return}V!=="graph"&&g(V)}return b.jsx(ba,{testId:"files",children:b.jsxs(bae,{children:[b.jsx(xae,{breadcrumbs:Oye(C,r.project.root_label||"Project root"),selectedFile:f&&T?{name:T,title:f.display_path||f.path}:void 0,layout:S,resultCount:z.length,onOpenFolder:G,onLayoutChange:q}),e&&!f?b.jsx(wae,{path:e}):b.jsxs(b.Fragment,{children:[S==="list"?b.jsx(kae,{items:A,sortKey:y,sortDirection:k,onSort:L,onOpenFolder:G,onOpenFile:l?H:void 0}):b.jsx(Eae,{items:A,onOpenFolder:G,onOpenFile:l?H:void 0}),b.jsx(Mye,{file:f,layout:S,onOpenElement:n,elementById:i})]})]})})}function zye(e){const t={kind:"folder",id:"folder:__root__",path:kn,name:e.project.root_label||"Project root",parent:null,folders:[],files:[]},n=new Map([[kn,t]]);for(const o of e.folders){const l=lh(o.path);l!==kn&&n.set(l,{kind:"folder",id:`folder:${l}`,path:l,name:Hw(l),parent:lh(o.parent),folders:[],files:[]})}for(const o of e.folders){const l=lh(o.path);if(l===kn)continue;const c=n.get(l);if(!c)continue;const f=lh(o.parent);((f===kn?t:n.get(f))??t).folders.push(c)}const r=new Map;for(const o of e.files){r.set(o.path,o);const l=lh(o.parent_folder);(n.get(l)??t).files.push(o)}for(const o of n.values())o.folders.sort((l,c)=>l.name.localeCompare(c.name)),o.files.sort((l,c)=>l.display_path.localeCompare(c.display_path));const i=new Map;function a(o){const l=o.files.reduce((d,m)=>d+m.element_ids.length,0),c=o.folders.reduce((d,m)=>d+a(m),0),f=l+c;return i.set(o.path,f),f}return a(t),{root:t,folderByPath:n,fileByPath:r,folderElementCounts:i}}function lh(e){return(e??"").replace(/^\/+|\/+$/g,"")||kn}function Lye(e,t){return!!(e.file&&t&&e.file.path===t.path)}function Mye({file:e,layout:t,onOpenElement:n,elementById:r}){return e?e.element_ids.length===0?b.jsx(ob,{children:b.jsx(qg,{path:e.path,content:e.markdown_content,kind:"source file",defaultExpanded:!0,showPath:!0})}):b.jsx(ob,{children:b.jsx(Sae,{layout:t,children:e.element_ids.map(i=>{const a=r(i);return b.jsx(Tae,{layout:t,name:(a==null?void 0:a.name)??i,type:a==null?void 0:a.element_type,family:a==null?void 0:a.type_family,onOpen:()=>n(i)},i)})})}):b.jsx(ob,{children:b.jsx(Ik,{children:"Select a file row to inspect its modeled elements."})})}function Oye(e,t){if(e.path===kn)return[{path:kn,label:t}];const n=e.path.split("/").filter(Boolean),r=[{path:kn,label:t}];let i="";for(const a of n)i=i?`${i}/${a}`:a,r.push({path:i,label:a});return r}function Dye(e,t,n,r){if(e.kind!==t.kind&&n!=="type")return e.kind==="folder"?-1:1;let i=0;return n==="elements"?i=e.elementCount-t.elementCount:n==="type"?i=e.kind.localeCompare(t.kind)||e.name.localeCompare(t.name):n==="path"?i=e.displayPath.localeCompare(t.displayPath):i=e.name.localeCompare(t.name),r==="asc"?i:-i}function Hw(e){return e.split("/").filter(Boolean).at(-1)??e}function eO(e,t,n){if(e.startsWith("file:"))return t.fileByPath.get(e.slice(5));const r=n.elements.find(i=>i.id===e);return r?t.fileByPath.get(r.file_path):void 0}function qye(e,t,n){if(e==="__root__")return kn;if(e.startsWith("folder:")){const i=e.slice(7);return t.folderByPath.has(i)?i:kn}const r=eO(e,t,n);if(r){const i=r.parent_folder||kn;return t.folderByPath.has(i)?i:kn}return kn}var Yp={exports:{}},iA;function Iye(){if(iA)return Yp.exports;iA=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(z,A,L){return Function.prototype.apply.call(z,A,L)},n;e&&typeof e.ownKeys=="function"?n=e.ownKeys:Object.getOwnPropertySymbols?n=function(z){return Object.getOwnPropertyNames(z).concat(Object.getOwnPropertySymbols(z))}:n=function(z){return Object.getOwnPropertyNames(z)};function r(T){console&&console.warn&&console.warn(T)}var i=Number.isNaN||function(z){return z!==z};function a(){a.init.call(this)}Yp.exports=a,Yp.exports.once=w,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var o=10;function l(T){if(typeof T!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof T)}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(T){if(typeof T!="number"||T<0||i(T))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+T+".");o=T}}),a.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(z){if(typeof z!="number"||z<0||i(z))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+z+".");return this._maxListeners=z,this};function c(T){return T._maxListeners===void 0?a.defaultMaxListeners:T._maxListeners}a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(z){for(var A=[],L=1;L<arguments.length;L++)A.push(arguments[L]);var G=z==="error",H=this._events;if(H!==void 0)G=G&&H.error===void 0;else if(!G)return!1;if(G){var q;if(A.length>0&&(q=A[0]),q instanceof Error)throw q;var V=new Error("Unhandled error."+(q?" ("+q.message+")":""));throw V.context=q,V}var W=H[z];if(W===void 0)return!1;if(typeof W=="function")t(W,this,A);else for(var I=W.length,B=y(W,I),L=0;L<I;++L)t(B[L],this,A);return!0};function f(T,z,A,L){var G,H,q;if(l(A),H=T._events,H===void 0?(H=T._events=Object.create(null),T._eventsCount=0):(H.newListener!==void 0&&(T.emit("newListener",z,A.listener?A.listener:A),H=T._events),q=H[z]),q===void 0)q=H[z]=A,++T._eventsCount;else if(typeof q=="function"?q=H[z]=L?[A,q]:[q,A]:L?q.unshift(A):q.push(A),G=c(T),G>0&&q.length>G&&!q.warned){q.warned=!0;var V=new Error("Possible EventEmitter memory leak detected. "+q.length+" "+String(z)+" listeners added. Use emitter.setMaxListeners() to increase limit");V.name="MaxListenersExceededWarning",V.emitter=T,V.type=z,V.count=q.length,r(V)}return T}a.prototype.addListener=function(z,A){return f(this,z,A,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(z,A){return f(this,z,A,!0)};function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(T,z,A){var L={fired:!1,wrapFn:void 0,target:T,type:z,listener:A},G=d.bind(L);return G.listener=A,L.wrapFn=G,G}a.prototype.once=function(z,A){return l(A),this.on(z,m(this,z,A)),this},a.prototype.prependOnceListener=function(z,A){return l(A),this.prependListener(z,m(this,z,A)),this},a.prototype.removeListener=function(z,A){var L,G,H,q,V;if(l(A),G=this._events,G===void 0)return this;if(L=G[z],L===void 0)return this;if(L===A||L.listener===A)--this._eventsCount===0?this._events=Object.create(null):(delete G[z],G.removeListener&&this.emit("removeListener",z,L.listener||A));else if(typeof L!="function"){for(H=-1,q=L.length-1;q>=0;q--)if(L[q]===A||L[q].listener===A){V=L[q].listener,H=q;break}if(H<0)return this;H===0?L.shift():x(L,H),L.length===1&&(G[z]=L[0]),G.removeListener!==void 0&&this.emit("removeListener",z,V||A)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(z){var A,L,G;if(L=this._events,L===void 0)return this;if(L.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):L[z]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete L[z]),this;if(arguments.length===0){var H=Object.keys(L),q;for(G=0;G<H.length;++G)q=H[G],q!=="removeListener"&&this.removeAllListeners(q);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(A=L[z],typeof A=="function")this.removeListener(z,A);else if(A!==void 0)for(G=A.length-1;G>=0;G--)this.removeListener(z,A[G]);return this};function p(T,z,A){var L=T._events;if(L===void 0)return[];var G=L[z];return G===void 0?[]:typeof G=="function"?A?[G.listener||G]:[G]:A?k(G):y(G,G.length)}a.prototype.listeners=function(z){return p(this,z,!0)},a.prototype.rawListeners=function(z){return p(this,z,!1)},a.listenerCount=function(T,z){return typeof T.listenerCount=="function"?T.listenerCount(z):g.call(T,z)},a.prototype.listenerCount=g;function g(T){var z=this._events;if(z!==void 0){var A=z[T];if(typeof A=="function")return 1;if(A!==void 0)return A.length}return 0}a.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]};function y(T,z){for(var A=new Array(z),L=0;L<z;++L)A[L]=T[L];return A}function x(T,z){for(;z+1<T.length;z++)T[z]=T[z+1];T.pop()}function k(T){for(var z=new Array(T.length),A=0;A<z.length;++A)z[A]=T[A].listener||T[A];return z}function w(T,z){return new Promise(function(A,L){function G(q){T.removeListener(z,H),L(q)}function H(){typeof T.removeListener=="function"&&T.removeListener("error",G),A([].slice.call(arguments))}S(T,z,H,{once:!0}),z!=="error"&&C(T,G,{once:!0})})}function C(T,z,A){typeof T.on=="function"&&S(T,"error",z,A)}function S(T,z,A,L){if(typeof T.on=="function")L.once?T.once(z,A):T.on(z,A);else if(typeof T.addEventListener=="function")T.addEventListener(z,function G(H){L.once&&T.removeEventListener(z,G),A(H)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof T)}return Yp.exports}var EE=Iye(),Pb,aA;function SE(){if(aA)return Pb;aA=1;function e(t){if(typeof t!="function")throw new Error("obliterator/iterator: expecting a function!");this.next=t}return typeof Symbol<"u"&&(e.prototype[Symbol.iterator]=function(){return this}),e.of=function(){var t=arguments,n=t.length,r=0;return new e(function(){return r>=n?{done:!0}:{done:!1,value:t[r++]}})},e.empty=function(){var t=new e(function(){return{done:!0}});return t},e.fromSequence=function(t){var n=0,r=t.length;return new e(function(){return n>=r?{done:!0}:{done:!1,value:t[n++]}})},e.is=function(t){return t instanceof e?!0:typeof t=="object"&&t!==null&&typeof t.next=="function"},Pb=e,Pb}var $ye=SE();const Si=Ml($ye);var Wp={},oA;function Pye(){return oA||(oA=1,Wp.ARRAY_BUFFER_SUPPORT=typeof ArrayBuffer<"u",Wp.SYMBOL_SUPPORT=typeof Symbol<"u"),Wp}var Ub,sA;function tO(){if(sA)return Ub;sA=1;var e=SE(),t=Pye(),n=t.ARRAY_BUFFER_SUPPORT,r=t.SYMBOL_SUPPORT;function i(a){return typeof a=="string"||Array.isArray(a)||n&&ArrayBuffer.isView(a)?e.fromSequence(a):typeof a!="object"||a===null?null:r&&typeof a[Symbol.iterator]=="function"?a[Symbol.iterator]():typeof a.next=="function"?a:null}return Ub=function(o){var l=i(o);if(!l)throw new Error("obliterator: target is not iterable nor a valid iterator.");return l},Ub}var Bb,lA;function Uye(){if(lA)return Bb;lA=1;var e=tO();return Bb=function(n,r){for(var i=arguments.length>1?r:1/0,a=i!==1/0?new Array(i):[],o,l=0,c=e(n);;){if(l===i)return a;if(o=c.next(),o.done)return l!==r&&(a.length=l),a;a[l++]=o.value}},Bb}var Bye=Uye();const nO=Ml(Bye);var Gb,uA;function Gye(){if(uA)return Gb;uA=1;var e=SE(),t=tO();return Gb=function(){var r=arguments,i=null,a=-1;return new e(function(){var l=null;do{if(i===null){if(a++,a>=r.length)return{done:!0};i=t(r[a])}if(l=i.next(),l.done===!0){i=null;continue}break}while(!0);return l})},Gb}var Fye=Gye();const uo=Ml(Fye);function Hye(){const e=arguments[0];for(let t=1,n=arguments.length;t<n;t++)if(arguments[t])for(const r in arguments[t])e[r]=arguments[t][r];return e}let wn=Hye;typeof Object.assign=="function"&&(wn=Object.assign);function Ei(e,t,n,r){const i=e._nodes.get(t);let a=null;return i&&(r==="mixed"?a=i.out&&i.out[n]||i.undirected&&i.undirected[n]:r==="directed"?a=i.out&&i.out[n]:a=i.undirected&&i.undirected[n]),a}function Gn(e){return typeof e=="object"&&e!==null}function rO(e){let t;for(t in e)return!1;return!0}function di(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!1,writable:!0,value:n})}function Oi(e,t,n){const r={enumerable:!0,configurable:!0};typeof n=="function"?r.get=n:(r.value=n,r.writable=!1),Object.defineProperty(e,t,r)}function cA(e){return!(!Gn(e)||e.attributes&&!Array.isArray(e.attributes))}function Vye(){let e=Math.floor(Math.random()*256)&255;return()=>e++}class TE extends Error{constructor(t){super(),this.name="GraphError",this.message=t}}class Me extends TE{constructor(t){super(t),this.name="InvalidArgumentsGraphError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Me.prototype.constructor)}}class Re extends TE{constructor(t){super(t),this.name="NotFoundGraphError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Re.prototype.constructor)}}class Ke extends TE{constructor(t){super(t),this.name="UsageGraphError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Ke.prototype.constructor)}}function iO(e,t){this.key=e,this.attributes=t,this.clear()}iO.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.undirectedDegree=0,this.undirectedLoops=0,this.directedLoops=0,this.in={},this.out={},this.undirected={}};function aO(e,t){this.key=e,this.attributes=t,this.clear()}aO.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.directedLoops=0,this.in={},this.out={}};function oO(e,t){this.key=e,this.attributes=t,this.clear()}oO.prototype.clear=function(){this.undirectedDegree=0,this.undirectedLoops=0,this.undirected={}};function Gc(e,t,n,r,i){this.key=t,this.attributes=i,this.undirected=e,this.source=n,this.target=r}Gc.prototype.attach=function(){let e="out",t="in";this.undirected&&(e=t="undirected");const n=this.source.key,r=this.target.key;this.source[e][r]=this,!(this.undirected&&n===r)&&(this.target[t][n]=this)};Gc.prototype.attachMulti=function(){let e="out",t="in";const n=this.source.key,r=this.target.key;this.undirected&&(e=t="undirected");const i=this.source[e],a=i[r];if(typeof a>"u"){i[r]=this,this.undirected&&n===r||(this.target[t][n]=this);return}a.previous=this,this.next=a,i[r]=this,this.target[t][n]=this};Gc.prototype.detach=function(){const e=this.source.key,t=this.target.key;let n="out",r="in";this.undirected&&(n=r="undirected"),delete this.source[n][t],delete this.target[r][e]};Gc.prototype.detachMulti=function(){const e=this.source.key,t=this.target.key;let n="out",r="in";this.undirected&&(n=r="undirected"),this.previous===void 0?this.next===void 0?(delete this.source[n][t],delete this.target[r][e]):(this.next.previous=void 0,this.source[n][t]=this.next,this.target[r][e]=this.next):(this.previous.next=this.next,this.next!==void 0&&(this.next.previous=this.previous))};const sO=0,lO=1,Xye=2,uO=3;function po(e,t,n,r,i,a,o){let l,c,f,d;if(r=""+r,n===sO){if(l=e._nodes.get(r),!l)throw new Re(`Graph.${t}: could not find the "${r}" node in the graph.`);f=i,d=a}else if(n===uO){if(i=""+i,c=e._edges.get(i),!c)throw new Re(`Graph.${t}: could not find the "${i}" edge in the graph.`);const m=c.source.key,p=c.target.key;if(r===m)l=c.target;else if(r===p)l=c.source;else throw new Re(`Graph.${t}: the "${r}" node is not attached to the "${i}" edge (${m}, ${p}).`);f=a,d=o}else{if(c=e._edges.get(r),!c)throw new Re(`Graph.${t}: could not find the "${r}" edge in the graph.`);n===lO?l=c.source:l=c.target,f=i,d=a}return[l,f,d]}function Yye(e,t,n){e.prototype[t]=function(r,i,a){const[o,l]=po(this,t,n,r,i,a);return o.attributes[l]}}function Wye(e,t,n){e.prototype[t]=function(r,i){const[a]=po(this,t,n,r,i);return a.attributes}}function Kye(e,t,n){e.prototype[t]=function(r,i,a){const[o,l]=po(this,t,n,r,i,a);return o.attributes.hasOwnProperty(l)}}function Zye(e,t,n){e.prototype[t]=function(r,i,a,o){const[l,c,f]=po(this,t,n,r,i,a,o);return l.attributes[c]=f,this.emit("nodeAttributesUpdated",{key:l.key,type:"set",attributes:l.attributes,name:c}),this}}function Qye(e,t,n){e.prototype[t]=function(r,i,a,o){const[l,c,f]=po(this,t,n,r,i,a,o);if(typeof f!="function")throw new Me(`Graph.${t}: updater should be a function.`);const d=l.attributes,m=f(d[c]);return d[c]=m,this.emit("nodeAttributesUpdated",{key:l.key,type:"set",attributes:l.attributes,name:c}),this}}function Jye(e,t,n){e.prototype[t]=function(r,i,a){const[o,l]=po(this,t,n,r,i,a);return delete o.attributes[l],this.emit("nodeAttributesUpdated",{key:o.key,type:"remove",attributes:o.attributes,name:l}),this}}function eve(e,t,n){e.prototype[t]=function(r,i,a){const[o,l]=po(this,t,n,r,i,a);if(!Gn(l))throw new Me(`Graph.${t}: provided attributes are not a plain object.`);return o.attributes=l,this.emit("nodeAttributesUpdated",{key:o.key,type:"replace",attributes:o.attributes}),this}}function tve(e,t,n){e.prototype[t]=function(r,i,a){const[o,l]=po(this,t,n,r,i,a);if(!Gn(l))throw new Me(`Graph.${t}: provided attributes are not a plain object.`);return wn(o.attributes,l),this.emit("nodeAttributesUpdated",{key:o.key,type:"merge",attributes:o.attributes,data:l}),this}}function nve(e,t,n){e.prototype[t]=function(r,i,a){const[o,l]=po(this,t,n,r,i,a);if(typeof l!="function")throw new Me(`Graph.${t}: provided updater is not a function.`);return o.attributes=l(o.attributes),this.emit("nodeAttributesUpdated",{key:o.key,type:"update",attributes:o.attributes}),this}}const rve=[{name:e=>`get${e}Attribute`,attacher:Yye},{name:e=>`get${e}Attributes`,attacher:Wye},{name:e=>`has${e}Attribute`,attacher:Kye},{name:e=>`set${e}Attribute`,attacher:Zye},{name:e=>`update${e}Attribute`,attacher:Qye},{name:e=>`remove${e}Attribute`,attacher:Jye},{name:e=>`replace${e}Attributes`,attacher:eve},{name:e=>`merge${e}Attributes`,attacher:tve},{name:e=>`update${e}Attributes`,attacher:nve}];function ive(e){rve.forEach(function({name:t,attacher:n}){n(e,t("Node"),sO),n(e,t("Source"),lO),n(e,t("Target"),Xye),n(e,t("Opposite"),uO)})}function ave(e,t,n){e.prototype[t]=function(r,i){let a;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ke(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Ke(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const o=""+r,l=""+i;if(i=arguments[2],a=Ei(this,o,l,n),!a)throw new Re(`Graph.${t}: could not find an edge for the given path ("${o}" - "${l}").`)}else{if(n!=="mixed")throw new Ke(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,a=this._edges.get(r),!a)throw new Re(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return a.attributes[i]}}function ove(e,t,n){e.prototype[t]=function(r){let i;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ke(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>1){if(this.multi)throw new Ke(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const a=""+r,o=""+arguments[1];if(i=Ei(this,a,o,n),!i)throw new Re(`Graph.${t}: could not find an edge for the given path ("${a}" - "${o}").`)}else{if(n!=="mixed")throw new Ke(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,i=this._edges.get(r),!i)throw new Re(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return i.attributes}}function sve(e,t,n){e.prototype[t]=function(r,i){let a;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ke(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Ke(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const o=""+r,l=""+i;if(i=arguments[2],a=Ei(this,o,l,n),!a)throw new Re(`Graph.${t}: could not find an edge for the given path ("${o}" - "${l}").`)}else{if(n!=="mixed")throw new Ke(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,a=this._edges.get(r),!a)throw new Re(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return a.attributes.hasOwnProperty(i)}}function lve(e,t,n){e.prototype[t]=function(r,i,a){let o;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ke(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>3){if(this.multi)throw new Ke(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const l=""+r,c=""+i;if(i=arguments[2],a=arguments[3],o=Ei(this,l,c,n),!o)throw new Re(`Graph.${t}: could not find an edge for the given path ("${l}" - "${c}").`)}else{if(n!=="mixed")throw new Ke(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,o=this._edges.get(r),!o)throw new Re(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return o.attributes[i]=a,this.emit("edgeAttributesUpdated",{key:o.key,type:"set",attributes:o.attributes,name:i}),this}}function uve(e,t,n){e.prototype[t]=function(r,i,a){let o;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ke(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>3){if(this.multi)throw new Ke(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const l=""+r,c=""+i;if(i=arguments[2],a=arguments[3],o=Ei(this,l,c,n),!o)throw new Re(`Graph.${t}: could not find an edge for the given path ("${l}" - "${c}").`)}else{if(n!=="mixed")throw new Ke(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,o=this._edges.get(r),!o)throw new Re(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(typeof a!="function")throw new Me(`Graph.${t}: updater should be a function.`);return o.attributes[i]=a(o.attributes[i]),this.emit("edgeAttributesUpdated",{key:o.key,type:"set",attributes:o.attributes,name:i}),this}}function cve(e,t,n){e.prototype[t]=function(r,i){let a;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ke(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Ke(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const o=""+r,l=""+i;if(i=arguments[2],a=Ei(this,o,l,n),!a)throw new Re(`Graph.${t}: could not find an edge for the given path ("${o}" - "${l}").`)}else{if(n!=="mixed")throw new Ke(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,a=this._edges.get(r),!a)throw new Re(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return delete a.attributes[i],this.emit("edgeAttributesUpdated",{key:a.key,type:"remove",attributes:a.attributes,name:i}),this}}function fve(e,t,n){e.prototype[t]=function(r,i){let a;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ke(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Ke(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const o=""+r,l=""+i;if(i=arguments[2],a=Ei(this,o,l,n),!a)throw new Re(`Graph.${t}: could not find an edge for the given path ("${o}" - "${l}").`)}else{if(n!=="mixed")throw new Ke(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,a=this._edges.get(r),!a)throw new Re(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(!Gn(i))throw new Me(`Graph.${t}: provided attributes are not a plain object.`);return a.attributes=i,this.emit("edgeAttributesUpdated",{key:a.key,type:"replace",attributes:a.attributes}),this}}function hve(e,t,n){e.prototype[t]=function(r,i){let a;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ke(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Ke(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const o=""+r,l=""+i;if(i=arguments[2],a=Ei(this,o,l,n),!a)throw new Re(`Graph.${t}: could not find an edge for the given path ("${o}" - "${l}").`)}else{if(n!=="mixed")throw new Ke(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,a=this._edges.get(r),!a)throw new Re(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(!Gn(i))throw new Me(`Graph.${t}: provided attributes are not a plain object.`);return wn(a.attributes,i),this.emit("edgeAttributesUpdated",{key:a.key,type:"merge",attributes:a.attributes,data:i}),this}}function dve(e,t,n){e.prototype[t]=function(r,i){let a;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ke(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Ke(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const o=""+r,l=""+i;if(i=arguments[2],a=Ei(this,o,l,n),!a)throw new Re(`Graph.${t}: could not find an edge for the given path ("${o}" - "${l}").`)}else{if(n!=="mixed")throw new Ke(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,a=this._edges.get(r),!a)throw new Re(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(typeof i!="function")throw new Me(`Graph.${t}: provided updater is not a function.`);return a.attributes=i(a.attributes),this.emit("edgeAttributesUpdated",{key:a.key,type:"update",attributes:a.attributes}),this}}const mve=[{name:e=>`get${e}Attribute`,attacher:ave},{name:e=>`get${e}Attributes`,attacher:ove},{name:e=>`has${e}Attribute`,attacher:sve},{name:e=>`set${e}Attribute`,attacher:lve},{name:e=>`update${e}Attribute`,attacher:uve},{name:e=>`remove${e}Attribute`,attacher:cve},{name:e=>`replace${e}Attributes`,attacher:fve},{name:e=>`merge${e}Attributes`,attacher:hve},{name:e=>`update${e}Attributes`,attacher:dve}];function pve(e){mve.forEach(function({name:t,attacher:n}){n(e,t("Edge"),"mixed"),n(e,t("DirectedEdge"),"directed"),n(e,t("UndirectedEdge"),"undirected")})}const _ve=[{name:"edges",type:"mixed"},{name:"inEdges",type:"directed",direction:"in"},{name:"outEdges",type:"directed",direction:"out"},{name:"inboundEdges",type:"mixed",direction:"in"},{name:"outboundEdges",type:"mixed",direction:"out"},{name:"directedEdges",type:"directed"},{name:"undirectedEdges",type:"undirected"}];function gve(e,t,n,r){let i=!1;for(const a in t){if(a===r)continue;const o=t[a];if(i=n(o.key,o.attributes,o.source.key,o.target.key,o.source.attributes,o.target.attributes,o.undirected),e&&i)return o.key}}function yve(e,t,n,r){let i,a,o,l=!1;for(const c in t)if(c!==r){i=t[c];do{if(a=i.source,o=i.target,l=n(i.key,i.attributes,a.key,o.key,a.attributes,o.attributes,i.undirected),e&&l)return i.key;i=i.next}while(i!==void 0)}}function Fb(e,t){const n=Object.keys(e),r=n.length;let i,a=0;return new Si(function(){do if(i)i=i.next;else{if(a>=r)return{done:!0};const l=n[a++];if(l===t){i=void 0;continue}i=e[l]}while(!i);return{done:!1,value:{edge:i.key,attributes:i.attributes,source:i.source.key,target:i.target.key,sourceAttributes:i.source.attributes,targetAttributes:i.target.attributes,undirected:i.undirected}}})}function vve(e,t,n,r){const i=t[n];if(!i)return;const a=i.source,o=i.target;if(r(i.key,i.attributes,a.key,o.key,a.attributes,o.attributes,i.undirected)&&e)return i.key}function bve(e,t,n,r){let i=t[n];if(!i)return;let a=!1;do{if(a=r(i.key,i.attributes,i.source.key,i.target.key,i.source.attributes,i.target.attributes,i.undirected),e&&a)return i.key;i=i.next}while(i!==void 0)}function Hb(e,t){let n=e[t];return n.next!==void 0?new Si(function(){if(!n)return{done:!0};const r={edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected};return n=n.next,{done:!1,value:r}}):Si.of({edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected})}function xve(e,t){if(e.size===0)return[];if(t==="mixed"||t===e.type)return typeof Array.from=="function"?Array.from(e._edges.keys()):nO(e._edges.keys(),e._edges.size);const n=t==="undirected"?e.undirectedSize:e.directedSize,r=new Array(n),i=t==="undirected",a=e._edges.values();let o=0,l,c;for(;l=a.next(),l.done!==!0;)c=l.value,c.undirected===i&&(r[o++]=c.key);return r}function cO(e,t,n,r){if(t.size===0)return;const i=n!=="mixed"&&n!==t.type,a=n==="undirected";let o,l,c=!1;const f=t._edges.values();for(;o=f.next(),o.done!==!0;){if(l=o.value,i&&l.undirected!==a)continue;const{key:d,attributes:m,source:p,target:g}=l;if(c=r(d,m,p.key,g.key,p.attributes,g.attributes,l.undirected),e&&c)return d}}function wve(e,t){if(e.size===0)return Si.empty();const n=t!=="mixed"&&t!==e.type,r=t==="undirected",i=e._edges.values();return new Si(function(){let o,l;for(;;){if(o=i.next(),o.done)return o;if(l=o.value,!(n&&l.undirected!==r))break}return{value:{edge:l.key,attributes:l.attributes,source:l.source.key,target:l.target.key,sourceAttributes:l.source.attributes,targetAttributes:l.target.attributes,undirected:l.undirected},done:!1}})}function CE(e,t,n,r,i,a){const o=t?yve:gve;let l;if(n!=="undirected"&&(r!=="out"&&(l=o(e,i.in,a),e&&l)||r!=="in"&&(l=o(e,i.out,a,r?void 0:i.key),e&&l))||n!=="directed"&&(l=o(e,i.undirected,a),e&&l))return l}function kve(e,t,n,r){const i=[];return CE(!1,e,t,n,r,function(a){i.push(a)}),i}function Eve(e,t,n){let r=Si.empty();return e!=="undirected"&&(t!=="out"&&typeof n.in<"u"&&(r=uo(r,Fb(n.in))),t!=="in"&&typeof n.out<"u"&&(r=uo(r,Fb(n.out,t?void 0:n.key)))),e!=="directed"&&typeof n.undirected<"u"&&(r=uo(r,Fb(n.undirected))),r}function AE(e,t,n,r,i,a,o){const l=n?bve:vve;let c;if(t!=="undirected"&&(typeof i.in<"u"&&r!=="out"&&(c=l(e,i.in,a,o),e&&c)||typeof i.out<"u"&&r!=="in"&&(r||i.key!==a)&&(c=l(e,i.out,a,o),e&&c))||t!=="directed"&&typeof i.undirected<"u"&&(c=l(e,i.undirected,a,o),e&&c))return c}function Sve(e,t,n,r,i){const a=[];return AE(!1,e,t,n,r,i,function(o){a.push(o)}),a}function Tve(e,t,n,r){let i=Si.empty();return e!=="undirected"&&(typeof n.in<"u"&&t!=="out"&&r in n.in&&(i=uo(i,Hb(n.in,r))),typeof n.out<"u"&&t!=="in"&&r in n.out&&(t||n.key!==r)&&(i=uo(i,Hb(n.out,r)))),e!=="directed"&&typeof n.undirected<"u"&&r in n.undirected&&(i=uo(i,Hb(n.undirected,r))),i}function Cve(e,t){const{name:n,type:r,direction:i}=t;e.prototype[n]=function(a,o){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return[];if(!arguments.length)return xve(this,r);if(arguments.length===1){a=""+a;const l=this._nodes.get(a);if(typeof l>"u")throw new Re(`Graph.${n}: could not find the "${a}" node in the graph.`);return kve(this.multi,r==="mixed"?this.type:r,i,l)}if(arguments.length===2){a=""+a,o=""+o;const l=this._nodes.get(a);if(!l)throw new Re(`Graph.${n}: could not find the "${a}" source node in the graph.`);if(!this._nodes.has(o))throw new Re(`Graph.${n}: could not find the "${o}" target node in the graph.`);return Sve(r,this.multi,i,l,o)}throw new Me(`Graph.${n}: too many arguments (expecting 0, 1 or 2 and got ${arguments.length}).`)}}function Ave(e,t){const{name:n,type:r,direction:i}=t,a="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[a]=function(f,d,m){if(!(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)){if(arguments.length===1)return m=f,cO(!1,this,r,m);if(arguments.length===2){f=""+f,m=d;const p=this._nodes.get(f);if(typeof p>"u")throw new Re(`Graph.${a}: could not find the "${f}" node in the graph.`);return CE(!1,this.multi,r==="mixed"?this.type:r,i,p,m)}if(arguments.length===3){f=""+f,d=""+d;const p=this._nodes.get(f);if(!p)throw new Re(`Graph.${a}: could not find the "${f}" source node in the graph.`);if(!this._nodes.has(d))throw new Re(`Graph.${a}: could not find the "${d}" target node in the graph.`);return AE(!1,r,this.multi,i,p,d,m)}throw new Me(`Graph.${a}: too many arguments (expecting 1, 2 or 3 and got ${arguments.length}).`)}};const o="map"+n[0].toUpperCase()+n.slice(1);e.prototype[o]=function(){const f=Array.prototype.slice.call(arguments),d=f.pop();let m;if(f.length===0){let p=0;r!=="directed"&&(p+=this.undirectedSize),r!=="undirected"&&(p+=this.directedSize),m=new Array(p);let g=0;f.push((y,x,k,w,C,S,T)=>{m[g++]=d(y,x,k,w,C,S,T)})}else m=[],f.push((p,g,y,x,k,w,C)=>{m.push(d(p,g,y,x,k,w,C))});return this[a].apply(this,f),m};const l="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[l]=function(){const f=Array.prototype.slice.call(arguments),d=f.pop(),m=[];return f.push((p,g,y,x,k,w,C)=>{d(p,g,y,x,k,w,C)&&m.push(p)}),this[a].apply(this,f),m};const c="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[c]=function(){let f=Array.prototype.slice.call(arguments);if(f.length<2||f.length>4)throw new Me(`Graph.${c}: invalid number of arguments (expecting 2, 3 or 4 and got ${f.length}).`);if(typeof f[f.length-1]=="function"&&typeof f[f.length-2]!="function")throw new Me(`Graph.${c}: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.`);let d,m;f.length===2?(d=f[0],m=f[1],f=[]):f.length===3?(d=f[1],m=f[2],f=[f[0]]):f.length===4&&(d=f[2],m=f[3],f=[f[0],f[1]]);let p=m;return f.push((g,y,x,k,w,C,S)=>{p=d(p,g,y,x,k,w,C,S)}),this[a].apply(this,f),p}}function jve(e,t){const{name:n,type:r,direction:i}=t,a="find"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[a]=function(c,f,d){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return!1;if(arguments.length===1)return d=c,cO(!0,this,r,d);if(arguments.length===2){c=""+c,d=f;const m=this._nodes.get(c);if(typeof m>"u")throw new Re(`Graph.${a}: could not find the "${c}" node in the graph.`);return CE(!0,this.multi,r==="mixed"?this.type:r,i,m,d)}if(arguments.length===3){c=""+c,f=""+f;const m=this._nodes.get(c);if(!m)throw new Re(`Graph.${a}: could not find the "${c}" source node in the graph.`);if(!this._nodes.has(f))throw new Re(`Graph.${a}: could not find the "${f}" target node in the graph.`);return AE(!0,r,this.multi,i,m,f,d)}throw new Me(`Graph.${a}: too many arguments (expecting 1, 2 or 3 and got ${arguments.length}).`)};const o="some"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=function(){const c=Array.prototype.slice.call(arguments),f=c.pop();return c.push((m,p,g,y,x,k,w)=>f(m,p,g,y,x,k,w)),!!this[a].apply(this,c)};const l="every"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[l]=function(){const c=Array.prototype.slice.call(arguments),f=c.pop();return c.push((m,p,g,y,x,k,w)=>!f(m,p,g,y,x,k,w)),!this[a].apply(this,c)}}function Rve(e,t){const{name:n,type:r,direction:i}=t,a=n.slice(0,-1)+"Entries";e.prototype[a]=function(o,l){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return Si.empty();if(!arguments.length)return wve(this,r);if(arguments.length===1){o=""+o;const c=this._nodes.get(o);if(!c)throw new Re(`Graph.${a}: could not find the "${o}" node in the graph.`);return Eve(r,i,c)}if(arguments.length===2){o=""+o,l=""+l;const c=this._nodes.get(o);if(!c)throw new Re(`Graph.${a}: could not find the "${o}" source node in the graph.`);if(!this._nodes.has(l))throw new Re(`Graph.${a}: could not find the "${l}" target node in the graph.`);return Tve(r,i,c,l)}throw new Me(`Graph.${a}: too many arguments (expecting 0, 1 or 2 and got ${arguments.length}).`)}}function Nve(e){_ve.forEach(t=>{Cve(e,t),Ave(e,t),jve(e,t),Rve(e,t)})}const zve=[{name:"neighbors",type:"mixed"},{name:"inNeighbors",type:"directed",direction:"in"},{name:"outNeighbors",type:"directed",direction:"out"},{name:"inboundNeighbors",type:"mixed",direction:"in"},{name:"outboundNeighbors",type:"mixed",direction:"out"},{name:"directedNeighbors",type:"directed"},{name:"undirectedNeighbors",type:"undirected"}];function i0(){this.A=null,this.B=null}i0.prototype.wrap=function(e){this.A===null?this.A=e:this.B===null&&(this.B=e)};i0.prototype.has=function(e){return this.A!==null&&e in this.A||this.B!==null&&e in this.B};function uh(e,t,n,r,i){for(const a in r){const o=r[a],l=o.source,c=o.target,f=l===n?c:l;if(t&&t.has(f.key))continue;const d=i(f.key,f.attributes);if(e&&d)return f.key}}function jE(e,t,n,r,i){if(t!=="mixed"){if(t==="undirected")return uh(e,null,r,r.undirected,i);if(typeof n=="string")return uh(e,null,r,r[n],i)}const a=new i0;let o;if(t!=="undirected"){if(n!=="out"){if(o=uh(e,null,r,r.in,i),e&&o)return o;a.wrap(r.in)}if(n!=="in"){if(o=uh(e,a,r,r.out,i),e&&o)return o;a.wrap(r.out)}}if(t!=="directed"&&(o=uh(e,a,r,r.undirected,i),e&&o))return o}function Lve(e,t,n){if(e!=="mixed"){if(e==="undirected")return Object.keys(n.undirected);if(typeof t=="string")return Object.keys(n[t])}const r=[];return jE(!1,e,t,n,function(i){r.push(i)}),r}function ch(e,t,n){const r=Object.keys(n),i=r.length;let a=0;return new Si(function(){let l=null;do{if(a>=i)return e&&e.wrap(n),{done:!0};const c=n[r[a++]],f=c.source,d=c.target;if(l=f===t?d:f,e&&e.has(l.key)){l=null;continue}}while(l===null);return{done:!1,value:{neighbor:l.key,attributes:l.attributes}}})}function Mve(e,t,n){if(e!=="mixed"){if(e==="undirected")return ch(null,n,n.undirected);if(typeof t=="string")return ch(null,n,n[t])}let r=Si.empty();const i=new i0;return e!=="undirected"&&(t!=="out"&&(r=uo(r,ch(i,n,n.in))),t!=="in"&&(r=uo(r,ch(i,n,n.out)))),e!=="directed"&&(r=uo(r,ch(i,n,n.undirected))),r}function Ove(e,t){const{name:n,type:r,direction:i}=t;e.prototype[n]=function(a){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return[];a=""+a;const o=this._nodes.get(a);if(typeof o>"u")throw new Re(`Graph.${n}: could not find the "${a}" node in the graph.`);return Lve(r==="mixed"?this.type:r,i,o)}}function Dve(e,t){const{name:n,type:r,direction:i}=t,a="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[a]=function(f,d){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return;f=""+f;const m=this._nodes.get(f);if(typeof m>"u")throw new Re(`Graph.${a}: could not find the "${f}" node in the graph.`);jE(!1,r==="mixed"?this.type:r,i,m,d)};const o="map"+n[0].toUpperCase()+n.slice(1);e.prototype[o]=function(f,d){const m=[];return this[a](f,(p,g)=>{m.push(d(p,g))}),m};const l="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[l]=function(f,d){const m=[];return this[a](f,(p,g)=>{d(p,g)&&m.push(p)}),m};const c="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[c]=function(f,d,m){if(arguments.length<3)throw new Me(`Graph.${c}: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.`);let p=m;return this[a](f,(g,y)=>{p=d(p,g,y)}),p}}function qve(e,t){const{name:n,type:r,direction:i}=t,a=n[0].toUpperCase()+n.slice(1,-1),o="find"+a;e.prototype[o]=function(f,d){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return;f=""+f;const m=this._nodes.get(f);if(typeof m>"u")throw new Re(`Graph.${o}: could not find the "${f}" node in the graph.`);return jE(!0,r==="mixed"?this.type:r,i,m,d)};const l="some"+a;e.prototype[l]=function(f,d){return!!this[o](f,d)};const c="every"+a;e.prototype[c]=function(f,d){return!this[o](f,(p,g)=>!d(p,g))}}function Ive(e,t){const{name:n,type:r,direction:i}=t,a=n.slice(0,-1)+"Entries";e.prototype[a]=function(o){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return Si.empty();o=""+o;const l=this._nodes.get(o);if(typeof l>"u")throw new Re(`Graph.${a}: could not find the "${o}" node in the graph.`);return Mve(r==="mixed"?this.type:r,i,l)}}function $ve(e){zve.forEach(t=>{Ove(e,t),Dve(e,t),qve(e,t),Ive(e,t)})}function Kp(e,t,n,r,i){const a=r._nodes.values(),o=r.type;let l,c,f,d,m,p;for(;l=a.next(),l.done!==!0;){let g=!1;if(c=l.value,o!=="undirected"){d=c.out;for(f in d){m=d[f];do p=m.target,g=!0,i(c.key,p.key,c.attributes,p.attributes,m.key,m.attributes,m.undirected),m=m.next;while(m)}}if(o!=="directed"){d=c.undirected;for(f in d)if(!(t&&c.key>f)){m=d[f];do p=m.target,p.key!==f&&(p=m.source),g=!0,i(c.key,p.key,c.attributes,p.attributes,m.key,m.attributes,m.undirected),m=m.next;while(m)}}n&&!g&&i(c.key,null,c.attributes,null,null,null,null)}}function Pve(e,t){const n={key:e};return rO(t.attributes)||(n.attributes=wn({},t.attributes)),n}function Uve(e,t,n){const r={key:t,source:n.source.key,target:n.target.key};return rO(n.attributes)||(r.attributes=wn({},n.attributes)),e==="mixed"&&n.undirected&&(r.undirected=!0),r}function Bve(e){if(!Gn(e))throw new Me('Graph.import: invalid serialized node. A serialized node should be a plain object with at least a "key" property.');if(!("key"in e))throw new Me("Graph.import: serialized node is missing its key.");if("attributes"in e&&(!Gn(e.attributes)||e.attributes===null))throw new Me("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.")}function Gve(e){if(!Gn(e))throw new Me('Graph.import: invalid serialized edge. A serialized edge should be a plain object with at least a "source" & "target" property.');if(!("source"in e))throw new Me("Graph.import: serialized edge is missing its source.");if(!("target"in e))throw new Me("Graph.import: serialized edge is missing its target.");if("attributes"in e&&(!Gn(e.attributes)||e.attributes===null))throw new Me("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.");if("undirected"in e&&typeof e.undirected!="boolean")throw new Me("Graph.import: invalid undirectedness information. Undirected should be boolean or omitted.")}const Fve=Vye(),Hve=new Set(["directed","undirected","mixed"]),fA=new Set(["domain","_events","_eventsCount","_maxListeners"]),Vve=[{name:e=>`${e}Edge`,generateKey:!0},{name:e=>`${e}DirectedEdge`,generateKey:!0,type:"directed"},{name:e=>`${e}UndirectedEdge`,generateKey:!0,type:"undirected"},{name:e=>`${e}EdgeWithKey`},{name:e=>`${e}DirectedEdgeWithKey`,type:"directed"},{name:e=>`${e}UndirectedEdgeWithKey`,type:"undirected"}],Xve={allowSelfLoops:!0,multi:!1,type:"mixed"};function Yve(e,t,n){if(n&&!Gn(n))throw new Me(`Graph.addNode: invalid attributes. Expecting an object but got "${n}"`);if(t=""+t,n=n||{},e._nodes.has(t))throw new Ke(`Graph.addNode: the "${t}" node already exist in the graph.`);const r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}function hA(e,t,n){const r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}function fO(e,t,n,r,i,a,o,l){if(!r&&e.type==="undirected")throw new Ke(`Graph.${t}: you cannot add a directed edge to an undirected graph. Use the #.addEdge or #.addUndirectedEdge instead.`);if(r&&e.type==="directed")throw new Ke(`Graph.${t}: you cannot add an undirected edge to a directed graph. Use the #.addEdge or #.addDirectedEdge instead.`);if(l&&!Gn(l))throw new Me(`Graph.${t}: invalid attributes. Expecting an object but got "${l}"`);if(a=""+a,o=""+o,l=l||{},!e.allowSelfLoops&&a===o)throw new Ke(`Graph.${t}: source & target are the same ("${a}"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false.`);const c=e._nodes.get(a),f=e._nodes.get(o);if(!c)throw new Re(`Graph.${t}: source node "${a}" not found.`);if(!f)throw new Re(`Graph.${t}: target node "${o}" not found.`);const d={key:null,undirected:r,source:a,target:o,attributes:l};if(n)i=e._edgeKeyGenerator();else if(i=""+i,e._edges.has(i))throw new Ke(`Graph.${t}: the "${i}" edge already exists in the graph.`);if(!e.multi&&(r?typeof c.undirected[o]<"u":typeof c.out[o]<"u"))throw new Ke(`Graph.${t}: an edge linking "${a}" to "${o}" already exists. If you really want to add multiple edges linking those nodes, you should create a multi graph by using the 'multi' option.`);const m=new Gc(r,i,c,f,l);e._edges.set(i,m);const p=a===o;return r?(c.undirectedDegree++,f.undirectedDegree++,p&&(c.undirectedLoops++,e._undirectedSelfLoopCount++)):(c.outDegree++,f.inDegree++,p&&(c.directedLoops++,e._directedSelfLoopCount++)),e.multi?m.attachMulti():m.attach(),r?e._undirectedSize++:e._directedSize++,d.key=i,e.emit("edgeAdded",d),i}function Wve(e,t,n,r,i,a,o,l,c){if(!r&&e.type==="undirected")throw new Ke(`Graph.${t}: you cannot merge/update a directed edge to an undirected graph. Use the #.mergeEdge/#.updateEdge or #.addUndirectedEdge instead.`);if(r&&e.type==="directed")throw new Ke(`Graph.${t}: you cannot merge/update an undirected edge to a directed graph. Use the #.mergeEdge/#.updateEdge or #.addDirectedEdge instead.`);if(l){if(c){if(typeof l!="function")throw new Me(`Graph.${t}: invalid updater function. Expecting a function but got "${l}"`)}else if(!Gn(l))throw new Me(`Graph.${t}: invalid attributes. Expecting an object but got "${l}"`)}a=""+a,o=""+o;let f;if(c&&(f=l,l=void 0),!e.allowSelfLoops&&a===o)throw new Ke(`Graph.${t}: source & target are the same ("${a}"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false.`);let d=e._nodes.get(a),m=e._nodes.get(o),p,g;if(!n&&(p=e._edges.get(i),p)){if((p.source.key!==a||p.target.key!==o)&&(!r||p.source.key!==o||p.target.key!==a))throw new Ke(`Graph.${t}: inconsistency detected when attempting to merge the "${i}" edge with "${a}" source & "${o}" target vs. ("${p.source.key}", "${p.target.key}").`);g=p}if(!g&&!e.multi&&d&&(g=r?d.undirected[o]:d.out[o]),g){const C=[g.key,!1,!1,!1];if(c?!f:!l)return C;if(c){const S=g.attributes;g.attributes=f(S),e.emit("edgeAttributesUpdated",{type:"replace",key:g.key,attributes:g.attributes})}else wn(g.attributes,l),e.emit("edgeAttributesUpdated",{type:"merge",key:g.key,attributes:g.attributes,data:l});return C}l=l||{},c&&f&&(l=f(l));const y={key:null,undirected:r,source:a,target:o,attributes:l};if(n)i=e._edgeKeyGenerator();else if(i=""+i,e._edges.has(i))throw new Ke(`Graph.${t}: the "${i}" edge already exists in the graph.`);let x=!1,k=!1;d||(d=hA(e,a,{}),x=!0,a===o&&(m=d,k=!0)),m||(m=hA(e,o,{}),k=!0),p=new Gc(r,i,d,m,l),e._edges.set(i,p);const w=a===o;return r?(d.undirectedDegree++,m.undirectedDegree++,w&&(d.undirectedLoops++,e._undirectedSelfLoopCount++)):(d.outDegree++,m.inDegree++,w&&(d.directedLoops++,e._directedSelfLoopCount++)),e.multi?p.attachMulti():p.attach(),r?e._undirectedSize++:e._directedSize++,y.key=i,e.emit("edgeAdded",y),[i,!0,x,k]}function Gu(e,t){e._edges.delete(t.key);const{source:n,target:r,attributes:i}=t,a=t.undirected,o=n===r;a?(n.undirectedDegree--,r.undirectedDegree--,o&&(n.undirectedLoops--,e._undirectedSelfLoopCount--)):(n.outDegree--,r.inDegree--,o&&(n.directedLoops--,e._directedSelfLoopCount--)),e.multi?t.detachMulti():t.detach(),a?e._undirectedSize--:e._directedSize--,e.emit("edgeDropped",{key:t.key,attributes:i,source:n.key,target:r.key,undirected:a})}class Rt extends EE.EventEmitter{constructor(t){if(super(),t=wn({},Xve,t),typeof t.multi!="boolean")throw new Me(`Graph.constructor: invalid 'multi' option. Expecting a boolean but got "${t.multi}".`);if(!Hve.has(t.type))throw new Me(`Graph.constructor: invalid 'type' option. Should be one of "mixed", "directed" or "undirected" but got "${t.type}".`);if(typeof t.allowSelfLoops!="boolean")throw new Me(`Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got "${t.allowSelfLoops}".`);const n=t.type==="mixed"?iO:t.type==="directed"?aO:oO;di(this,"NodeDataClass",n);const r="geid_"+Fve()+"_";let i=0;const a=()=>{let o;do o=r+i++;while(this._edges.has(o));return o};di(this,"_attributes",{}),di(this,"_nodes",new Map),di(this,"_edges",new Map),di(this,"_directedSize",0),di(this,"_undirectedSize",0),di(this,"_directedSelfLoopCount",0),di(this,"_undirectedSelfLoopCount",0),di(this,"_edgeKeyGenerator",a),di(this,"_options",t),fA.forEach(o=>di(this,o,this[o])),Oi(this,"order",()=>this._nodes.size),Oi(this,"size",()=>this._edges.size),Oi(this,"directedSize",()=>this._directedSize),Oi(this,"undirectedSize",()=>this._undirectedSize),Oi(this,"selfLoopCount",()=>this._directedSelfLoopCount+this._undirectedSelfLoopCount),Oi(this,"directedSelfLoopCount",()=>this._directedSelfLoopCount),Oi(this,"undirectedSelfLoopCount",()=>this._undirectedSelfLoopCount),Oi(this,"multi",this._options.multi),Oi(this,"type",this._options.type),Oi(this,"allowSelfLoops",this._options.allowSelfLoops),Oi(this,"implementation",()=>"graphology")}_resetInstanceCounters(){this._directedSize=0,this._undirectedSize=0,this._directedSelfLoopCount=0,this._undirectedSelfLoopCount=0}hasNode(t){return this._nodes.has(""+t)}hasDirectedEdge(t,n){if(this.type==="undirected")return!1;if(arguments.length===1){const r=""+t,i=this._edges.get(r);return!!i&&!i.undirected}else if(arguments.length===2){t=""+t,n=""+n;const r=this._nodes.get(t);return r?r.out.hasOwnProperty(n):!1}throw new Me(`Graph.hasDirectedEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}hasUndirectedEdge(t,n){if(this.type==="directed")return!1;if(arguments.length===1){const r=""+t,i=this._edges.get(r);return!!i&&i.undirected}else if(arguments.length===2){t=""+t,n=""+n;const r=this._nodes.get(t);return r?r.undirected.hasOwnProperty(n):!1}throw new Me(`Graph.hasDirectedEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}hasEdge(t,n){if(arguments.length===1){const r=""+t;return this._edges.has(r)}else if(arguments.length===2){t=""+t,n=""+n;const r=this._nodes.get(t);return r?typeof r.out<"u"&&r.out.hasOwnProperty(n)||typeof r.undirected<"u"&&r.undirected.hasOwnProperty(n):!1}throw new Me(`Graph.hasEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}directedEdge(t,n){if(this.type==="undirected")return;if(t=""+t,n=""+n,this.multi)throw new Ke("Graph.directedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.directedEdges instead.");const r=this._nodes.get(t);if(!r)throw new Re(`Graph.directedEdge: could not find the "${t}" source node in the graph.`);if(!this._nodes.has(n))throw new Re(`Graph.directedEdge: could not find the "${n}" target node in the graph.`);const i=r.out&&r.out[n]||void 0;if(i)return i.key}undirectedEdge(t,n){if(this.type==="directed")return;if(t=""+t,n=""+n,this.multi)throw new Ke("Graph.undirectedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.undirectedEdges instead.");const r=this._nodes.get(t);if(!r)throw new Re(`Graph.undirectedEdge: could not find the "${t}" source node in the graph.`);if(!this._nodes.has(n))throw new Re(`Graph.undirectedEdge: could not find the "${n}" target node in the graph.`);const i=r.undirected&&r.undirected[n]||void 0;if(i)return i.key}edge(t,n){if(this.multi)throw new Ke("Graph.edge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.edges instead.");t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new Re(`Graph.edge: could not find the "${t}" source node in the graph.`);if(!this._nodes.has(n))throw new Re(`Graph.edge: could not find the "${n}" target node in the graph.`);const i=r.out&&r.out[n]||r.undirected&&r.undirected[n]||void 0;if(i)return i.key}areDirectedNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new Re(`Graph.areDirectedNeighbors: could not find the "${t}" node in the graph.`);return this.type==="undirected"?!1:n in r.in||n in r.out}areOutNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new Re(`Graph.areOutNeighbors: could not find the "${t}" node in the graph.`);return this.type==="undirected"?!1:n in r.out}areInNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new Re(`Graph.areInNeighbors: could not find the "${t}" node in the graph.`);return this.type==="undirected"?!1:n in r.in}areUndirectedNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new Re(`Graph.areUndirectedNeighbors: could not find the "${t}" node in the graph.`);return this.type==="directed"?!1:n in r.undirected}areNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new Re(`Graph.areNeighbors: could not find the "${t}" node in the graph.`);return this.type!=="undirected"&&(n in r.in||n in r.out)||this.type!=="directed"&&n in r.undirected}areInboundNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new Re(`Graph.areInboundNeighbors: could not find the "${t}" node in the graph.`);return this.type!=="undirected"&&n in r.in||this.type!=="directed"&&n in r.undirected}areOutboundNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new Re(`Graph.areOutboundNeighbors: could not find the "${t}" node in the graph.`);return this.type!=="undirected"&&n in r.out||this.type!=="directed"&&n in r.undirected}inDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Re(`Graph.inDegree: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree}outDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Re(`Graph.outDegree: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.outDegree}directedDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Re(`Graph.directedDegree: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree+n.outDegree}undirectedDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Re(`Graph.undirectedDegree: could not find the "${t}" node in the graph.`);return this.type==="directed"?0:n.undirectedDegree}inboundDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Re(`Graph.inboundDegree: could not find the "${t}" node in the graph.`);let r=0;return this.type!=="directed"&&(r+=n.undirectedDegree),this.type!=="undirected"&&(r+=n.inDegree),r}outboundDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Re(`Graph.outboundDegree: could not find the "${t}" node in the graph.`);let r=0;return this.type!=="directed"&&(r+=n.undirectedDegree),this.type!=="undirected"&&(r+=n.outDegree),r}degree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Re(`Graph.degree: could not find the "${t}" node in the graph.`);let r=0;return this.type!=="directed"&&(r+=n.undirectedDegree),this.type!=="undirected"&&(r+=n.inDegree+n.outDegree),r}inDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Re(`Graph.inDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree-n.directedLoops}outDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Re(`Graph.outDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.outDegree-n.directedLoops}directedDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Re(`Graph.directedDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree+n.outDegree-n.directedLoops*2}undirectedDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Re(`Graph.undirectedDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="directed"?0:n.undirectedDegree-n.undirectedLoops*2}inboundDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Re(`Graph.inboundDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);let r=0,i=0;return this.type!=="directed"&&(r+=n.undirectedDegree,i+=n.undirectedLoops*2),this.type!=="undirected"&&(r+=n.inDegree,i+=n.directedLoops),r-i}outboundDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Re(`Graph.outboundDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);let r=0,i=0;return this.type!=="directed"&&(r+=n.undirectedDegree,i+=n.undirectedLoops*2),this.type!=="undirected"&&(r+=n.outDegree,i+=n.directedLoops),r-i}degreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Re(`Graph.degreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);let r=0,i=0;return this.type!=="directed"&&(r+=n.undirectedDegree,i+=n.undirectedLoops*2),this.type!=="undirected"&&(r+=n.inDegree+n.outDegree,i+=n.directedLoops*2),r-i}source(t){t=""+t;const n=this._edges.get(t);if(!n)throw new Re(`Graph.source: could not find the "${t}" edge in the graph.`);return n.source.key}target(t){t=""+t;const n=this._edges.get(t);if(!n)throw new Re(`Graph.target: could not find the "${t}" edge in the graph.`);return n.target.key}extremities(t){t=""+t;const n=this._edges.get(t);if(!n)throw new Re(`Graph.extremities: could not find the "${t}" edge in the graph.`);return[n.source.key,n.target.key]}opposite(t,n){t=""+t,n=""+n;const r=this._edges.get(n);if(!r)throw new Re(`Graph.opposite: could not find the "${n}" edge in the graph.`);const i=r.source.key,a=r.target.key;if(t===i)return a;if(t===a)return i;throw new Re(`Graph.opposite: the "${t}" node is not attached to the "${n}" edge (${i}, ${a}).`)}hasExtremity(t,n){t=""+t,n=""+n;const r=this._edges.get(t);if(!r)throw new Re(`Graph.hasExtremity: could not find the "${t}" edge in the graph.`);return r.source.key===n||r.target.key===n}isUndirected(t){t=""+t;const n=this._edges.get(t);if(!n)throw new Re(`Graph.isUndirected: could not find the "${t}" edge in the graph.`);return n.undirected}isDirected(t){t=""+t;const n=this._edges.get(t);if(!n)throw new Re(`Graph.isDirected: could not find the "${t}" edge in the graph.`);return!n.undirected}isSelfLoop(t){t=""+t;const n=this._edges.get(t);if(!n)throw new Re(`Graph.isSelfLoop: could not find the "${t}" edge in the graph.`);return n.source===n.target}addNode(t,n){return Yve(this,t,n).key}mergeNode(t,n){if(n&&!Gn(n))throw new Me(`Graph.mergeNode: invalid attributes. Expecting an object but got "${n}"`);t=""+t,n=n||{};let r=this._nodes.get(t);return r?(n&&(wn(r.attributes,n),this.emit("nodeAttributesUpdated",{type:"merge",key:t,attributes:r.attributes,data:n})),[t,!1]):(r=new this.NodeDataClass(t,n),this._nodes.set(t,r),this.emit("nodeAdded",{key:t,attributes:n}),[t,!0])}updateNode(t,n){if(n&&typeof n!="function")throw new Me(`Graph.updateNode: invalid updater function. Expecting a function but got "${n}"`);t=""+t;let r=this._nodes.get(t);if(r){if(n){const a=r.attributes;r.attributes=n(a),this.emit("nodeAttributesUpdated",{type:"replace",key:t,attributes:r.attributes})}return[t,!1]}const i=n?n({}):{};return r=new this.NodeDataClass(t,i),this._nodes.set(t,r),this.emit("nodeAdded",{key:t,attributes:i}),[t,!0]}dropNode(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new Re(`Graph.dropNode: could not find the "${t}" node in the graph.`);let r;if(this.type!=="undirected"){for(const i in n.out){r=n.out[i];do Gu(this,r),r=r.next;while(r)}for(const i in n.in){r=n.in[i];do Gu(this,r),r=r.next;while(r)}}if(this.type!=="directed")for(const i in n.undirected){r=n.undirected[i];do Gu(this,r),r=r.next;while(r)}this._nodes.delete(t),this.emit("nodeDropped",{key:t,attributes:n.attributes})}dropEdge(t){let n;if(arguments.length>1){const r=""+arguments[0],i=""+arguments[1];if(n=Ei(this,r,i,this.type),!n)throw new Re(`Graph.dropEdge: could not find the "${r}" -> "${i}" edge in the graph.`)}else if(t=""+t,n=this._edges.get(t),!n)throw new Re(`Graph.dropEdge: could not find the "${t}" edge in the graph.`);return Gu(this,n),this}dropDirectedEdge(t,n){if(arguments.length<2)throw new Ke("Graph.dropDirectedEdge: it does not make sense to try and drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new Ke("Graph.dropDirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");t=""+t,n=""+n;const r=Ei(this,t,n,"directed");if(!r)throw new Re(`Graph.dropDirectedEdge: could not find a "${t}" -> "${n}" edge in the graph.`);return Gu(this,r),this}dropUndirectedEdge(t,n){if(arguments.length<2)throw new Ke("Graph.dropUndirectedEdge: it does not make sense to drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new Ke("Graph.dropUndirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");const r=Ei(this,t,n,"undirected");if(!r)throw new Re(`Graph.dropUndirectedEdge: could not find a "${t}" -> "${n}" edge in the graph.`);return Gu(this,r),this}clear(){this._edges.clear(),this._nodes.clear(),this._resetInstanceCounters(),this.emit("cleared")}clearEdges(){const t=this._nodes.values();let n;for(;n=t.next(),n.done!==!0;)n.value.clear();this._edges.clear(),this._resetInstanceCounters(),this.emit("edgesCleared")}getAttribute(t){return this._attributes[t]}getAttributes(){return this._attributes}hasAttribute(t){return this._attributes.hasOwnProperty(t)}setAttribute(t,n){return this._attributes[t]=n,this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:t}),this}updateAttribute(t,n){if(typeof n!="function")throw new Me("Graph.updateAttribute: updater should be a function.");const r=this._attributes[t];return this._attributes[t]=n(r),this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:t}),this}removeAttribute(t){return delete this._attributes[t],this.emit("attributesUpdated",{type:"remove",attributes:this._attributes,name:t}),this}replaceAttributes(t){if(!Gn(t))throw new Me("Graph.replaceAttributes: provided attributes are not a plain object.");return this._attributes=t,this.emit("attributesUpdated",{type:"replace",attributes:this._attributes}),this}mergeAttributes(t){if(!Gn(t))throw new Me("Graph.mergeAttributes: provided attributes are not a plain object.");return wn(this._attributes,t),this.emit("attributesUpdated",{type:"merge",attributes:this._attributes,data:t}),this}updateAttributes(t){if(typeof t!="function")throw new Me("Graph.updateAttributes: provided updater is not a function.");return this._attributes=t(this._attributes),this.emit("attributesUpdated",{type:"update",attributes:this._attributes}),this}updateEachNodeAttributes(t,n){if(typeof t!="function")throw new Me("Graph.updateEachNodeAttributes: expecting an updater function.");if(n&&!cA(n))throw new Me("Graph.updateEachNodeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");const r=this._nodes.values();let i,a;for(;i=r.next(),i.done!==!0;)a=i.value,a.attributes=t(a.key,a.attributes);this.emit("eachNodeAttributesUpdated",{hints:n||null})}updateEachEdgeAttributes(t,n){if(typeof t!="function")throw new Me("Graph.updateEachEdgeAttributes: expecting an updater function.");if(n&&!cA(n))throw new Me("Graph.updateEachEdgeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");const r=this._edges.values();let i,a,o,l;for(;i=r.next(),i.done!==!0;)a=i.value,o=a.source,l=a.target,a.attributes=t(a.key,a.attributes,o.key,l.key,o.attributes,l.attributes,a.undirected);this.emit("eachEdgeAttributesUpdated",{hints:n||null})}forEachAdjacencyEntry(t){if(typeof t!="function")throw new Me("Graph.forEachAdjacencyEntry: expecting a callback.");Kp(!1,!1,!1,this,t)}forEachAdjacencyEntryWithOrphans(t){if(typeof t!="function")throw new Me("Graph.forEachAdjacencyEntryWithOrphans: expecting a callback.");Kp(!1,!1,!0,this,t)}forEachAssymetricAdjacencyEntry(t){if(typeof t!="function")throw new Me("Graph.forEachAssymetricAdjacencyEntry: expecting a callback.");Kp(!1,!0,!1,this,t)}forEachAssymetricAdjacencyEntryWithOrphans(t){if(typeof t!="function")throw new Me("Graph.forEachAssymetricAdjacencyEntryWithOrphans: expecting a callback.");Kp(!1,!0,!0,this,t)}nodes(){return typeof Array.from=="function"?Array.from(this._nodes.keys()):nO(this._nodes.keys(),this._nodes.size)}forEachNode(t){if(typeof t!="function")throw new Me("Graph.forEachNode: expecting a callback.");const n=this._nodes.values();let r,i;for(;r=n.next(),r.done!==!0;)i=r.value,t(i.key,i.attributes)}findNode(t){if(typeof t!="function")throw new Me("Graph.findNode: expecting a callback.");const n=this._nodes.values();let r,i;for(;r=n.next(),r.done!==!0;)if(i=r.value,t(i.key,i.attributes))return i.key}mapNodes(t){if(typeof t!="function")throw new Me("Graph.mapNode: expecting a callback.");const n=this._nodes.values();let r,i;const a=new Array(this.order);let o=0;for(;r=n.next(),r.done!==!0;)i=r.value,a[o++]=t(i.key,i.attributes);return a}someNode(t){if(typeof t!="function")throw new Me("Graph.someNode: expecting a callback.");const n=this._nodes.values();let r,i;for(;r=n.next(),r.done!==!0;)if(i=r.value,t(i.key,i.attributes))return!0;return!1}everyNode(t){if(typeof t!="function")throw new Me("Graph.everyNode: expecting a callback.");const n=this._nodes.values();let r,i;for(;r=n.next(),r.done!==!0;)if(i=r.value,!t(i.key,i.attributes))return!1;return!0}filterNodes(t){if(typeof t!="function")throw new Me("Graph.filterNodes: expecting a callback.");const n=this._nodes.values();let r,i;const a=[];for(;r=n.next(),r.done!==!0;)i=r.value,t(i.key,i.attributes)&&a.push(i.key);return a}reduceNodes(t,n){if(typeof t!="function")throw new Me("Graph.reduceNodes: expecting a callback.");if(arguments.length<2)throw new Me("Graph.reduceNodes: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.");let r=n;const i=this._nodes.values();let a,o;for(;a=i.next(),a.done!==!0;)o=a.value,r=t(r,o.key,o.attributes);return r}nodeEntries(){const t=this._nodes.values();return new Si(()=>{const n=t.next();if(n.done)return n;const r=n.value;return{value:{node:r.key,attributes:r.attributes},done:!1}})}export(){const t=new Array(this._nodes.size);let n=0;this._nodes.forEach((i,a)=>{t[n++]=Pve(a,i)});const r=new Array(this._edges.size);return n=0,this._edges.forEach((i,a)=>{r[n++]=Uve(this.type,a,i)}),{options:{type:this.type,multi:this.multi,allowSelfLoops:this.allowSelfLoops},attributes:this.getAttributes(),nodes:t,edges:r}}import(t,n=!1){if(t instanceof Rt)return t.forEachNode((c,f)=>{n?this.mergeNode(c,f):this.addNode(c,f)}),t.forEachEdge((c,f,d,m,p,g,y)=>{n?y?this.mergeUndirectedEdgeWithKey(c,d,m,f):this.mergeDirectedEdgeWithKey(c,d,m,f):y?this.addUndirectedEdgeWithKey(c,d,m,f):this.addDirectedEdgeWithKey(c,d,m,f)}),this;if(!Gn(t))throw new Me("Graph.import: invalid argument. Expecting a serialized graph or, alternatively, a Graph instance.");if(t.attributes){if(!Gn(t.attributes))throw new Me("Graph.import: invalid attributes. Expecting a plain object.");n?this.mergeAttributes(t.attributes):this.replaceAttributes(t.attributes)}let r,i,a,o,l;if(t.nodes){if(a=t.nodes,!Array.isArray(a))throw new Me("Graph.import: invalid nodes. Expecting an array.");for(r=0,i=a.length;r<i;r++){o=a[r],Bve(o);const{key:c,attributes:f}=o;n?this.mergeNode(c,f):this.addNode(c,f)}}if(t.edges){let c=!1;if(this.type==="undirected"&&(c=!0),a=t.edges,!Array.isArray(a))throw new Me("Graph.import: invalid edges. Expecting an array.");for(r=0,i=a.length;r<i;r++){l=a[r],Gve(l);const{source:f,target:d,attributes:m,undirected:p=c}=l;let g;"key"in l?(g=n?p?this.mergeUndirectedEdgeWithKey:this.mergeDirectedEdgeWithKey:p?this.addUndirectedEdgeWithKey:this.addDirectedEdgeWithKey,g.call(this,l.key,f,d,m)):(g=n?p?this.mergeUndirectedEdge:this.mergeDirectedEdge:p?this.addUndirectedEdge:this.addDirectedEdge,g.call(this,f,d,m))}}return this}nullCopy(t){const n=new Rt(wn({},this._options,t));return n.replaceAttributes(wn({},this.getAttributes())),n}emptyCopy(t){const n=this.nullCopy(t);return this._nodes.forEach((r,i)=>{const a=wn({},r.attributes);r=new n.NodeDataClass(i,a),n._nodes.set(i,r)}),n}copy(t){if(t=t||{},typeof t.type=="string"&&t.type!==this.type&&t.type!=="mixed")throw new Ke(`Graph.copy: cannot create an incompatible copy from "${this.type}" type to "${t.type}" because this would mean losing information about the current graph.`);if(typeof t.multi=="boolean"&&t.multi!==this.multi&&t.multi!==!0)throw new Ke("Graph.copy: cannot create an incompatible copy by downgrading a multi graph to a simple one because this would mean losing information about the current graph.");if(typeof t.allowSelfLoops=="boolean"&&t.allowSelfLoops!==this.allowSelfLoops&&t.allowSelfLoops!==!0)throw new Ke("Graph.copy: cannot create an incompatible copy from a graph allowing self loops to one that does not because this would mean losing information about the current graph.");const n=this.emptyCopy(t),r=this._edges.values();let i,a;for(;i=r.next(),i.done!==!0;)a=i.value,fO(n,"copy",!1,a.undirected,a.key,a.source.key,a.target.key,wn({},a.attributes));return n}toJSON(){return this.export()}toString(){return"[object Graph]"}inspect(){const t={};this._nodes.forEach((a,o)=>{t[o]=a.attributes});const n={},r={};this._edges.forEach((a,o)=>{const l=a.undirected?"--":"->";let c="",f=a.source.key,d=a.target.key,m;a.undirected&&f>d&&(m=f,f=d,d=m);const p=`(${f})${l}(${d})`;o.startsWith("geid_")?this.multi&&(typeof r[p]>"u"?r[p]=0:r[p]++,c+=`${r[p]}. `):c+=`[${o}]: `,c+=p,n[c]=a.attributes});const i={};for(const a in this)this.hasOwnProperty(a)&&!fA.has(a)&&typeof this[a]!="function"&&typeof a!="symbol"&&(i[a]=this[a]);return i.attributes=this._attributes,i.nodes=t,i.edges=n,di(i,"constructor",this.constructor),i}}typeof Symbol<"u"&&(Rt.prototype[Symbol.for("nodejs.util.inspect.custom")]=Rt.prototype.inspect);Vve.forEach(e=>{["add","merge","update"].forEach(t=>{const n=e.name(t),r=t==="add"?fO:Wve;e.generateKey?Rt.prototype[n]=function(i,a,o){return r(this,n,!0,(e.type||this.type)==="undirected",null,i,a,o,t==="update")}:Rt.prototype[n]=function(i,a,o,l){return r(this,n,!1,(e.type||this.type)==="undirected",i,a,o,l,t==="update")}})});ive(Rt);pve(Rt);Nve(Rt);$ve(Rt);class hO extends Rt{constructor(t){const n=wn({type:"directed"},t);if("multi"in n&&n.multi!==!1)throw new Me("DirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if(n.type!=="directed")throw new Me('DirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}}class dO extends Rt{constructor(t){const n=wn({type:"undirected"},t);if("multi"in n&&n.multi!==!1)throw new Me("UndirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if(n.type!=="undirected")throw new Me('UndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}}class mO extends Rt{constructor(t){const n=wn({multi:!0},t);if("multi"in n&&n.multi!==!0)throw new Me("MultiGraph.from: inconsistent indication that the graph should be simple in given options!");super(n)}}class pO extends Rt{constructor(t){const n=wn({type:"directed",multi:!0},t);if("multi"in n&&n.multi!==!0)throw new Me("MultiDirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if(n.type!=="directed")throw new Me('MultiDirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}}class _O extends Rt{constructor(t){const n=wn({type:"undirected",multi:!0},t);if("multi"in n&&n.multi!==!0)throw new Me("MultiUndirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if(n.type!=="undirected")throw new Me('MultiUndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}}function Fc(e){e.from=function(t,n){const r=wn({},t.options,n),i=new e(r);return i.import(t),i}}Fc(Rt);Fc(hO);Fc(dO);Fc(mO);Fc(pO);Fc(_O);Rt.Graph=Rt;Rt.DirectedGraph=hO;Rt.UndirectedGraph=dO;Rt.MultiGraph=mO;Rt.MultiDirectedGraph=pO;Rt.MultiUndirectedGraph=_O;Rt.InvalidArgumentsGraphError=Me;Rt.NotFoundGraphError=Re;Rt.UsageGraphError=Ke;function Kve(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fh(e){var t=Kve(e,"string");return typeof t=="symbol"?t:t+""}function ar(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fh(r.key),r)}}function or(e,t,n){return t&&dA(e.prototype,t),n&&dA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rc(e){return Rc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rc(e)}function gO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gO=function(){return!!e})()}function Ce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zve(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ce(e)}function Ci(e,t,n){return t=Rc(t),Zve(e,gO()?Reflect.construct(t,n||[],Rc(e).constructor):t.apply(e,n))}function Vw(e,t){return Vw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Vw(e,t)}function Ai(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vw(e,t)}function Qve(e){if(Array.isArray(e))return e}function Jve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],c=!0,f=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){f=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(f)throw i}}return l}}function Xw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yO(e,t){if(e){if(typeof e=="string")return Xw(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xw(e,t):void 0}}function ebe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
236
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nc(e,t){return Qve(e)||Jve(e,t)||yO(e,t)||ebe()}var Vb={black:"#000000",silver:"#C0C0C0",gray:"#808080",grey:"#808080",white:"#FFFFFF",maroon:"#800000",red:"#FF0000",purple:"#800080",fuchsia:"#FF00FF",green:"#008000",lime:"#00FF00",olive:"#808000",yellow:"#FFFF00",navy:"#000080",blue:"#0000FF",teal:"#008080",aqua:"#00FFFF",darkblue:"#00008B",mediumblue:"#0000CD",darkgreen:"#006400",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",springgreen:"#00FF7F",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",rebeccapurple:"#663399",mediumaquamarine:"#66CDAA",dimgray:"#696969",dimgrey:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",slategrey:"#708090",lightslategray:"#778899",lightslategrey:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370DB",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",palevioletred:"#DB7093",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",lightyellow:"#FFFFE0",ivory:"#FFFFF0"},vO=new Int8Array(4),Xb=new Int32Array(vO.buffer,0,1),tbe=new Float32Array(vO.buffer,0,1),nbe=/^\s*rgba?\s*\(/,rbe=/^\s*rgba?\s*\(\s*([0-9]*)\s*,\s*([0-9]*)\s*,\s*([0-9]*)(?:\s*,\s*(.*)?)?\)\s*$/;function ibe(e){var t=0,n=0,r=0,i=1;if(e[0]==="#")e.length===4?(t=parseInt(e.charAt(1)+e.charAt(1),16),n=parseInt(e.charAt(2)+e.charAt(2),16),r=parseInt(e.charAt(3)+e.charAt(3),16)):(t=parseInt(e.charAt(1)+e.charAt(2),16),n=parseInt(e.charAt(3)+e.charAt(4),16),r=parseInt(e.charAt(5)+e.charAt(6),16)),e.length===9&&(i=parseInt(e.charAt(7)+e.charAt(8),16)/255);else if(nbe.test(e)){var a=e.match(rbe);a&&(t=+a[1],n=+a[2],r=+a[3],a[4]&&(i=+a[4]))}return{r:t,g:n,b:r,a:i}}var ic={};for(var Zp in Vb)ic[Zp]=ks(Vb[Zp]),ic[Vb[Zp]]=ic[Zp];function bO(e,t,n,r,i){return Xb[0]=r<<24|n<<16|t<<8|e,Xb[0]=Xb[0]&4278190079,tbe[0]}function ks(e){if(e=e.toLowerCase(),typeof ic[e]<"u")return ic[e];var t=ibe(e),n=t.r,r=t.g,i=t.b,a=t.a;a=a*255|0;var o=bO(n,r,i,a);return ic[e]=o,o}var Yb={};function xO(e){if(typeof Yb[e]<"u")return Yb[e];var t=(e&16711680)>>>16,n=(e&65280)>>>8,r=e&255,i=255,a=bO(t,n,r,i);return Yb[e]=a,a}function mA(e,t,n,r){return n+(t<<8)+(e<<16)}function pA(e,t,n,r,i,a){var o=Math.floor(n/a*i),l=Math.floor(e.drawingBufferHeight/a-r/a*i),c=new Uint8Array(4);e.bindFramebuffer(e.FRAMEBUFFER,t),e.readPixels(o,l,1,1,e.RGBA,e.UNSIGNED_BYTE,c);var f=Nc(c,4),d=f[0],m=f[1],p=f[2],g=f[3];return[d,m,p,g]}function ke(e,t,n){return(t=Fh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_A(Object(n),!0).forEach(function(r){ke(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_A(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function abe(e,t){for(;!{}.hasOwnProperty.call(e,t)&&(e=Rc(e))!==null;);return e}function Yw(){return Yw=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=abe(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Yw.apply(null,arguments)}function wO(e,t,n,r){var i=Yw(Rc(e.prototype),t,n);return typeof i=="function"?function(a){return i.apply(n,a)}:i}function obe(e){return e.normalized?1:e.size}function Wb(e){var t=0;return e.forEach(function(n){return t+=obe(n)}),t}function kO(e,t,n){var r=e==="VERTEX"?t.VERTEX_SHADER:t.FRAGMENT_SHADER,i=t.createShader(r);if(i===null)throw new Error("loadShader: error while creating the shader");t.shaderSource(i,n),t.compileShader(i);var a=t.getShaderParameter(i,t.COMPILE_STATUS);if(!a){var o=t.getShaderInfoLog(i);throw t.deleteShader(i),new Error(`loadShader: error while compiling the shader:
|
|
237
|
+
`.concat(o,`
|
|
238
|
+
`).concat(n))}return i}function sbe(e,t){return kO("VERTEX",e,t)}function lbe(e,t){return kO("FRAGMENT",e,t)}function ube(e,t){var n=e.createProgram();if(n===null)throw new Error("loadProgram: error while creating the program.");var r,i;for(r=0,i=t.length;r<i;r++)e.attachShader(n,t[r]);e.linkProgram(n);var a=e.getProgramParameter(n,e.LINK_STATUS);if(!a)throw e.deleteProgram(n),new Error("loadProgram: error while linking the program.");return n}function gA(e){var t=e.gl,n=e.buffer,r=e.program,i=e.vertexShader,a=e.fragmentShader;t.deleteShader(i),t.deleteShader(a),t.deleteProgram(r),t.deleteBuffer(n)}var yA=`#define PICKING_MODE
|
|
239
|
+
`,cbe=ke(ke(ke(ke(ke(ke(ke(ke({},WebGL2RenderingContext.BOOL,1),WebGL2RenderingContext.BYTE,1),WebGL2RenderingContext.UNSIGNED_BYTE,1),WebGL2RenderingContext.SHORT,2),WebGL2RenderingContext.UNSIGNED_SHORT,2),WebGL2RenderingContext.INT,4),WebGL2RenderingContext.UNSIGNED_INT,4),WebGL2RenderingContext.FLOAT,4),EO=(function(){function e(t,n,r){ar(this,e),ke(this,"array",new Float32Array),ke(this,"constantArray",new Float32Array),ke(this,"capacity",0),ke(this,"verticesCount",0);var i=this.getDefinition();if(this.VERTICES=i.VERTICES,this.VERTEX_SHADER_SOURCE=i.VERTEX_SHADER_SOURCE,this.FRAGMENT_SHADER_SOURCE=i.FRAGMENT_SHADER_SOURCE,this.UNIFORMS=i.UNIFORMS,this.ATTRIBUTES=i.ATTRIBUTES,this.METHOD=i.METHOD,this.CONSTANT_ATTRIBUTES="CONSTANT_ATTRIBUTES"in i?i.CONSTANT_ATTRIBUTES:[],this.CONSTANT_DATA="CONSTANT_DATA"in i?i.CONSTANT_DATA:[],this.isInstanced="CONSTANT_ATTRIBUTES"in i,this.ATTRIBUTES_ITEMS_COUNT=Wb(this.ATTRIBUTES),this.STRIDE=this.VERTICES*this.ATTRIBUTES_ITEMS_COUNT,this.renderer=r,this.normalProgram=this.getProgramInfo("normal",t,i.VERTEX_SHADER_SOURCE,i.FRAGMENT_SHADER_SOURCE,null),this.pickProgram=n?this.getProgramInfo("pick",t,yA+i.VERTEX_SHADER_SOURCE,yA+i.FRAGMENT_SHADER_SOURCE,n):null,this.isInstanced){var a=Wb(this.CONSTANT_ATTRIBUTES);if(this.CONSTANT_DATA.length!==this.VERTICES)throw new Error("Program: error while getting constant data (expected ".concat(this.VERTICES," items, received ").concat(this.CONSTANT_DATA.length," instead)"));this.constantArray=new Float32Array(this.CONSTANT_DATA.length*a);for(var o=0;o<this.CONSTANT_DATA.length;o++){var l=this.CONSTANT_DATA[o];if(l.length!==a)throw new Error("Program: error while getting constant data (one vector has ".concat(l.length," items instead of ").concat(a,")"));for(var c=0;c<l.length;c++)this.constantArray[o*a+c]=l[c]}this.STRIDE=this.ATTRIBUTES_ITEMS_COUNT}}return or(e,[{key:"kill",value:function(){gA(this.normalProgram),this.pickProgram&&(gA(this.pickProgram),this.pickProgram=null)}},{key:"getProgramInfo",value:function(n,r,i,a,o){var l=this.getDefinition(),c=r.createBuffer();if(c===null)throw new Error("Program: error while creating the WebGL buffer.");var f=sbe(r,i),d=lbe(r,a),m=ube(r,[f,d]),p={};l.UNIFORMS.forEach(function(x){var k=r.getUniformLocation(m,x);k&&(p[x]=k)});var g={};l.ATTRIBUTES.forEach(function(x){g[x.name]=r.getAttribLocation(m,x.name)});var y;if("CONSTANT_ATTRIBUTES"in l&&(l.CONSTANT_ATTRIBUTES.forEach(function(x){g[x.name]=r.getAttribLocation(m,x.name)}),y=r.createBuffer(),y===null))throw new Error("Program: error while creating the WebGL constant buffer.");return{name:n,program:m,gl:r,frameBuffer:o,buffer:c,constantBuffer:y||{},uniformLocations:p,attributeLocations:g,isPicking:n==="pick",vertexShader:f,fragmentShader:d}}},{key:"bindProgram",value:function(n){var r=this,i=0,a=n.gl,o=n.buffer;this.isInstanced?(a.bindBuffer(a.ARRAY_BUFFER,n.constantBuffer),i=0,this.CONSTANT_ATTRIBUTES.forEach(function(l){return i+=r.bindAttribute(l,n,i,!1)}),a.bufferData(a.ARRAY_BUFFER,this.constantArray,a.STATIC_DRAW),a.bindBuffer(a.ARRAY_BUFFER,n.buffer),i=0,this.ATTRIBUTES.forEach(function(l){return i+=r.bindAttribute(l,n,i,!0)}),a.bufferData(a.ARRAY_BUFFER,this.array,a.DYNAMIC_DRAW)):(a.bindBuffer(a.ARRAY_BUFFER,o),i=0,this.ATTRIBUTES.forEach(function(l){return i+=r.bindAttribute(l,n,i)}),a.bufferData(a.ARRAY_BUFFER,this.array,a.DYNAMIC_DRAW)),a.bindBuffer(a.ARRAY_BUFFER,null)}},{key:"unbindProgram",value:function(n){var r=this;this.isInstanced?(this.CONSTANT_ATTRIBUTES.forEach(function(i){return r.unbindAttribute(i,n,!1)}),this.ATTRIBUTES.forEach(function(i){return r.unbindAttribute(i,n,!0)})):this.ATTRIBUTES.forEach(function(i){return r.unbindAttribute(i,n)})}},{key:"bindAttribute",value:function(n,r,i,a){var o=cbe[n.type];if(typeof o!="number")throw new Error('Program.bind: yet unsupported attribute type "'.concat(n.type,'"'));var l=r.attributeLocations[n.name],c=r.gl;if(l!==-1){c.enableVertexAttribArray(l);var f=this.isInstanced?(a?this.ATTRIBUTES_ITEMS_COUNT:Wb(this.CONSTANT_ATTRIBUTES))*Float32Array.BYTES_PER_ELEMENT:this.ATTRIBUTES_ITEMS_COUNT*Float32Array.BYTES_PER_ELEMENT;if(c.vertexAttribPointer(l,n.size,n.type,n.normalized||!1,f,i),this.isInstanced&&a)if(c instanceof WebGL2RenderingContext)c.vertexAttribDivisor(l,1);else{var d=c.getExtension("ANGLE_instanced_arrays");d&&d.vertexAttribDivisorANGLE(l,1)}}return n.size*o}},{key:"unbindAttribute",value:function(n,r,i){var a=r.attributeLocations[n.name],o=r.gl;if(a!==-1&&(o.disableVertexAttribArray(a),this.isInstanced&&i))if(o instanceof WebGL2RenderingContext)o.vertexAttribDivisor(a,0);else{var l=o.getExtension("ANGLE_instanced_arrays");l&&l.vertexAttribDivisorANGLE(a,0)}}},{key:"reallocate",value:function(n){n!==this.capacity&&(this.capacity=n,this.verticesCount=this.VERTICES*n,this.array=new Float32Array(this.isInstanced?this.capacity*this.ATTRIBUTES_ITEMS_COUNT:this.verticesCount*this.ATTRIBUTES_ITEMS_COUNT))}},{key:"hasNothingToRender",value:function(){return this.verticesCount===0}},{key:"renderProgram",value:function(n,r){var i=r.gl,a=r.program;i.enable(i.BLEND),i.useProgram(a),this.setUniforms(n,r),this.drawWebGL(this.METHOD,r)}},{key:"render",value:function(n){this.hasNothingToRender()||(this.pickProgram&&(this.pickProgram.gl.viewport(0,0,n.width*n.pixelRatio/n.downSizingRatio,n.height*n.pixelRatio/n.downSizingRatio),this.bindProgram(this.pickProgram),this.renderProgram($e($e({},n),{},{pixelRatio:n.pixelRatio/n.downSizingRatio}),this.pickProgram),this.unbindProgram(this.pickProgram)),this.normalProgram.gl.viewport(0,0,n.width*n.pixelRatio,n.height*n.pixelRatio),this.bindProgram(this.normalProgram),this.renderProgram(n,this.normalProgram),this.unbindProgram(this.normalProgram))}},{key:"drawWebGL",value:function(n,r){var i=r.gl,a=r.frameBuffer;if(i.bindFramebuffer(i.FRAMEBUFFER,a),!this.isInstanced)i.drawArrays(n,0,this.verticesCount);else if(i instanceof WebGL2RenderingContext)i.drawArraysInstanced(n,0,this.VERTICES,this.capacity);else{var o=i.getExtension("ANGLE_instanced_arrays");o&&o.drawArraysInstancedANGLE(n,0,this.VERTICES,this.capacity)}}}]),e})(),SO=(function(e){Ai(t,e);function t(){return ar(this,t),Ci(this,t,arguments)}return or(t,[{key:"kill",value:function(){wO(t,"kill",this)([])}},{key:"process",value:function(r,i,a){var o=i*this.STRIDE;if(a.hidden){for(var l=o+this.STRIDE;o<l;o++)this.array[o]=0;return}return this.processVisibleItem(xO(r),o,a)}}]),t})(EO),Ud=(function(e){Ai(t,e);function t(){var n;ar(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Ci(this,t,[].concat(i)),ke(Ce(n),"drawLabel",void 0),n}return or(t,[{key:"kill",value:function(){wO(t,"kill",this)([])}},{key:"process",value:function(r,i,a,o,l){var c=i*this.STRIDE;if(l.hidden||a.hidden||o.hidden){for(var f=c+this.STRIDE;c<f;c++)this.array[c]=0;return}return this.processVisibleItem(xO(r),c,a,o,l)}}]),t})(EO);function fbe(e,t){return(function(){function n(r,i,a){ar(this,n),ke(this,"drawLabel",t),this.programs=e.map(function(o){return new o(r,i,a)})}return or(n,[{key:"reallocate",value:function(i){this.programs.forEach(function(a){return a.reallocate(i)})}},{key:"process",value:function(i,a,o,l,c){this.programs.forEach(function(f){return f.process(i,a,o,l,c)})}},{key:"render",value:function(i){this.programs.forEach(function(a){return a.render(i)})}},{key:"kill",value:function(){this.programs.forEach(function(i){return i.kill()})}}]),n})()}function hbe(e,t,n,r,i){var a=i.edgeLabelSize,o=i.edgeLabelFont,l=i.edgeLabelWeight,c=i.edgeLabelColor.attribute?t[i.edgeLabelColor.attribute]||i.edgeLabelColor.color||"#000":i.edgeLabelColor.color,f=t.label;if(f){e.fillStyle=c,e.font="".concat(l," ").concat(a,"px ").concat(o);var d=n.size,m=r.size,p=n.x,g=n.y,y=r.x,x=r.y,k=(p+y)/2,w=(g+x)/2,C=y-p,S=x-g,T=Math.sqrt(C*C+S*S);if(!(T<d+m)){p+=C*d/T,g+=S*d/T,y-=C*m/T,x-=S*m/T,k=(p+y)/2,w=(g+x)/2,C=y-p,S=x-g,T=Math.sqrt(C*C+S*S);var z=e.measureText(f).width;if(z>T){var A="…";for(f=f+A,z=e.measureText(f).width;z>T&&f.length>1;)f=f.slice(0,-2)+A,z=e.measureText(f).width;if(f.length<4)return}var L;C>0?S>0?L=Math.acos(C/T):L=Math.asin(S/T):S>0?L=Math.acos(C/T)+Math.PI:L=Math.asin(C/T)+Math.PI/2,e.save(),e.translate(k,w),e.rotate(L),e.fillText(f,-z/2,t.size/2+a),e.restore()}}}function TO(e,t,n){if(t.label){var r=n.labelSize,i=n.labelFont,a=n.labelWeight,o=n.labelColor.attribute?t[n.labelColor.attribute]||n.labelColor.color||"#000":n.labelColor.color;e.fillStyle=o,e.font="".concat(a," ").concat(r,"px ").concat(i),e.fillText(t.label,t.x+t.size+3,t.y+r/3)}}function dbe(e,t,n){var r=n.labelSize,i=n.labelFont,a=n.labelWeight;e.font="".concat(a," ").concat(r,"px ").concat(i),e.fillStyle="#FFF",e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=8,e.shadowColor="#000";var o=2;if(typeof t.label=="string"){var l=e.measureText(t.label).width,c=Math.round(l+5),f=Math.round(r+2*o),d=Math.max(t.size,r/2)+o,m=Math.asin(f/2/d),p=Math.sqrt(Math.abs(Math.pow(d,2)-Math.pow(f/2,2)));e.beginPath(),e.moveTo(t.x+p,t.y+f/2),e.lineTo(t.x+d+c,t.y+f/2),e.lineTo(t.x+d+c,t.y-f/2),e.lineTo(t.x+p,t.y-f/2),e.arc(t.x,t.y,d,m,-m),e.closePath(),e.fill()}else e.beginPath(),e.arc(t.x,t.y,t.size+o,0,Math.PI*2),e.closePath(),e.fill();e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0,TO(e,t,n)}var mbe=`
|
|
240
|
+
precision highp float;
|
|
241
|
+
|
|
242
|
+
varying vec4 v_color;
|
|
243
|
+
varying vec2 v_diffVector;
|
|
244
|
+
varying float v_radius;
|
|
245
|
+
|
|
246
|
+
uniform float u_correctionRatio;
|
|
247
|
+
|
|
248
|
+
const vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);
|
|
249
|
+
|
|
250
|
+
void main(void) {
|
|
251
|
+
float border = u_correctionRatio * 2.0;
|
|
252
|
+
float dist = length(v_diffVector) - v_radius + border;
|
|
253
|
+
|
|
254
|
+
// No antialiasing for picking mode:
|
|
255
|
+
#ifdef PICKING_MODE
|
|
256
|
+
if (dist > border)
|
|
257
|
+
gl_FragColor = transparent;
|
|
258
|
+
else
|
|
259
|
+
gl_FragColor = v_color;
|
|
260
|
+
|
|
261
|
+
#else
|
|
262
|
+
float t = 0.0;
|
|
263
|
+
if (dist > border)
|
|
264
|
+
t = 1.0;
|
|
265
|
+
else if (dist > 0.0)
|
|
266
|
+
t = dist / border;
|
|
267
|
+
|
|
268
|
+
gl_FragColor = mix(v_color, transparent, t);
|
|
269
|
+
#endif
|
|
270
|
+
}
|
|
271
|
+
`,pbe=mbe,_be=`
|
|
272
|
+
attribute vec4 a_id;
|
|
273
|
+
attribute vec4 a_color;
|
|
274
|
+
attribute vec2 a_position;
|
|
275
|
+
attribute float a_size;
|
|
276
|
+
attribute float a_angle;
|
|
277
|
+
|
|
278
|
+
uniform mat3 u_matrix;
|
|
279
|
+
uniform float u_sizeRatio;
|
|
280
|
+
uniform float u_correctionRatio;
|
|
281
|
+
|
|
282
|
+
varying vec4 v_color;
|
|
283
|
+
varying vec2 v_diffVector;
|
|
284
|
+
varying float v_radius;
|
|
285
|
+
varying float v_border;
|
|
286
|
+
|
|
287
|
+
const float bias = 255.0 / 254.0;
|
|
288
|
+
|
|
289
|
+
void main() {
|
|
290
|
+
float size = a_size * u_correctionRatio / u_sizeRatio * 4.0;
|
|
291
|
+
vec2 diffVector = size * vec2(cos(a_angle), sin(a_angle));
|
|
292
|
+
vec2 position = a_position + diffVector;
|
|
293
|
+
gl_Position = vec4(
|
|
294
|
+
(u_matrix * vec3(position, 1)).xy,
|
|
295
|
+
0,
|
|
296
|
+
1
|
|
297
|
+
);
|
|
298
|
+
|
|
299
|
+
v_diffVector = diffVector;
|
|
300
|
+
v_radius = size / 2.0;
|
|
301
|
+
|
|
302
|
+
#ifdef PICKING_MODE
|
|
303
|
+
// For picking mode, we use the ID as the color:
|
|
304
|
+
v_color = a_id;
|
|
305
|
+
#else
|
|
306
|
+
// For normal mode, we use the color:
|
|
307
|
+
v_color = a_color;
|
|
308
|
+
#endif
|
|
309
|
+
|
|
310
|
+
v_color.a *= bias;
|
|
311
|
+
}
|
|
312
|
+
`,gbe=_be,CO=WebGLRenderingContext,vA=CO.UNSIGNED_BYTE,Kb=CO.FLOAT,ybe=["u_sizeRatio","u_correctionRatio","u_matrix"],a0=(function(e){Ai(t,e);function t(){return ar(this,t),Ci(this,t,arguments)}return or(t,[{key:"getDefinition",value:function(){return{VERTICES:3,VERTEX_SHADER_SOURCE:gbe,FRAGMENT_SHADER_SOURCE:pbe,METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:ybe,ATTRIBUTES:[{name:"a_position",size:2,type:Kb},{name:"a_size",size:1,type:Kb},{name:"a_color",size:4,type:vA,normalized:!0},{name:"a_id",size:4,type:vA,normalized:!0}],CONSTANT_ATTRIBUTES:[{name:"a_angle",size:1,type:Kb}],CONSTANT_DATA:[[t.ANGLE_1],[t.ANGLE_2],[t.ANGLE_3]]}}},{key:"processVisibleItem",value:function(r,i,a){var o=this.array,l=ks(a.color);o[i++]=a.x,o[i++]=a.y,o[i++]=a.size,o[i++]=l,o[i++]=r}},{key:"setUniforms",value:function(r,i){var a=i.gl,o=i.uniformLocations,l=o.u_sizeRatio,c=o.u_correctionRatio,f=o.u_matrix;a.uniform1f(c,r.correctionRatio),a.uniform1f(l,r.sizeRatio),a.uniformMatrix3fv(f,!1,r.matrix)}}]),t})(SO);ke(a0,"ANGLE_1",0);ke(a0,"ANGLE_2",2*Math.PI/3);ke(a0,"ANGLE_3",4*Math.PI/3);var vbe=`
|
|
313
|
+
precision mediump float;
|
|
314
|
+
|
|
315
|
+
varying vec4 v_color;
|
|
316
|
+
|
|
317
|
+
void main(void) {
|
|
318
|
+
gl_FragColor = v_color;
|
|
319
|
+
}
|
|
320
|
+
`,bbe=vbe,xbe=`
|
|
321
|
+
attribute vec2 a_position;
|
|
322
|
+
attribute vec2 a_normal;
|
|
323
|
+
attribute float a_radius;
|
|
324
|
+
attribute vec3 a_barycentric;
|
|
325
|
+
|
|
326
|
+
#ifdef PICKING_MODE
|
|
327
|
+
attribute vec4 a_id;
|
|
328
|
+
#else
|
|
329
|
+
attribute vec4 a_color;
|
|
330
|
+
#endif
|
|
331
|
+
|
|
332
|
+
uniform mat3 u_matrix;
|
|
333
|
+
uniform float u_sizeRatio;
|
|
334
|
+
uniform float u_correctionRatio;
|
|
335
|
+
uniform float u_minEdgeThickness;
|
|
336
|
+
uniform float u_lengthToThicknessRatio;
|
|
337
|
+
uniform float u_widenessToThicknessRatio;
|
|
338
|
+
|
|
339
|
+
varying vec4 v_color;
|
|
340
|
+
|
|
341
|
+
const float bias = 255.0 / 254.0;
|
|
342
|
+
|
|
343
|
+
void main() {
|
|
344
|
+
float minThickness = u_minEdgeThickness;
|
|
345
|
+
|
|
346
|
+
float normalLength = length(a_normal);
|
|
347
|
+
vec2 unitNormal = a_normal / normalLength;
|
|
348
|
+
|
|
349
|
+
// These first computations are taken from edge.vert.glsl and
|
|
350
|
+
// edge.clamped.vert.glsl. Please read it to get better comments on what's
|
|
351
|
+
// happening:
|
|
352
|
+
float pixelsThickness = max(normalLength / u_sizeRatio, minThickness);
|
|
353
|
+
float webGLThickness = pixelsThickness * u_correctionRatio;
|
|
354
|
+
float webGLNodeRadius = a_radius * 2.0 * u_correctionRatio / u_sizeRatio;
|
|
355
|
+
float webGLArrowHeadLength = webGLThickness * u_lengthToThicknessRatio * 2.0;
|
|
356
|
+
float webGLArrowHeadThickness = webGLThickness * u_widenessToThicknessRatio;
|
|
357
|
+
|
|
358
|
+
float da = a_barycentric.x;
|
|
359
|
+
float db = a_barycentric.y;
|
|
360
|
+
float dc = a_barycentric.z;
|
|
361
|
+
|
|
362
|
+
vec2 delta = vec2(
|
|
363
|
+
da * (webGLNodeRadius * unitNormal.y)
|
|
364
|
+
+ db * ((webGLNodeRadius + webGLArrowHeadLength) * unitNormal.y + webGLArrowHeadThickness * unitNormal.x)
|
|
365
|
+
+ dc * ((webGLNodeRadius + webGLArrowHeadLength) * unitNormal.y - webGLArrowHeadThickness * unitNormal.x),
|
|
366
|
+
|
|
367
|
+
da * (-webGLNodeRadius * unitNormal.x)
|
|
368
|
+
+ db * (-(webGLNodeRadius + webGLArrowHeadLength) * unitNormal.x + webGLArrowHeadThickness * unitNormal.y)
|
|
369
|
+
+ dc * (-(webGLNodeRadius + webGLArrowHeadLength) * unitNormal.x - webGLArrowHeadThickness * unitNormal.y)
|
|
370
|
+
);
|
|
371
|
+
|
|
372
|
+
vec2 position = (u_matrix * vec3(a_position + delta, 1)).xy;
|
|
373
|
+
|
|
374
|
+
gl_Position = vec4(position, 0, 1);
|
|
375
|
+
|
|
376
|
+
#ifdef PICKING_MODE
|
|
377
|
+
// For picking mode, we use the ID as the color:
|
|
378
|
+
v_color = a_id;
|
|
379
|
+
#else
|
|
380
|
+
// For normal mode, we use the color:
|
|
381
|
+
v_color = a_color;
|
|
382
|
+
#endif
|
|
383
|
+
|
|
384
|
+
v_color.a *= bias;
|
|
385
|
+
}
|
|
386
|
+
`,wbe=xbe,AO=WebGLRenderingContext,bA=AO.UNSIGNED_BYTE,Qp=AO.FLOAT,kbe=["u_matrix","u_sizeRatio","u_correctionRatio","u_minEdgeThickness","u_lengthToThicknessRatio","u_widenessToThicknessRatio"],o0={extremity:"target",lengthToThicknessRatio:2.5,widenessToThicknessRatio:2};function jO(e){var t=$e($e({},o0),{});return(function(n){Ai(r,n);function r(){return ar(this,r),Ci(this,r,arguments)}return or(r,[{key:"getDefinition",value:function(){return{VERTICES:3,VERTEX_SHADER_SOURCE:wbe,FRAGMENT_SHADER_SOURCE:bbe,METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:kbe,ATTRIBUTES:[{name:"a_position",size:2,type:Qp},{name:"a_normal",size:2,type:Qp},{name:"a_radius",size:1,type:Qp},{name:"a_color",size:4,type:bA,normalized:!0},{name:"a_id",size:4,type:bA,normalized:!0}],CONSTANT_ATTRIBUTES:[{name:"a_barycentric",size:3,type:Qp}],CONSTANT_DATA:[[1,0,0],[0,1,0],[0,0,1]]}}},{key:"processVisibleItem",value:function(a,o,l,c,f){if(t.extremity==="source"){var d=[c,l];l=d[0],c=d[1]}var m=f.size||1,p=c.size||1,g=l.x,y=l.y,x=c.x,k=c.y,w=ks(f.color),C=x-g,S=k-y,T=C*C+S*S,z=0,A=0;T&&(T=1/Math.sqrt(T),z=-S*T*m,A=C*T*m);var L=this.array;L[o++]=x,L[o++]=k,L[o++]=-z,L[o++]=-A,L[o++]=p,L[o++]=w,L[o++]=a}},{key:"setUniforms",value:function(a,o){var l=o.gl,c=o.uniformLocations,f=c.u_matrix,d=c.u_sizeRatio,m=c.u_correctionRatio,p=c.u_minEdgeThickness,g=c.u_lengthToThicknessRatio,y=c.u_widenessToThicknessRatio;l.uniformMatrix3fv(f,!1,a.matrix),l.uniform1f(d,a.sizeRatio),l.uniform1f(m,a.correctionRatio),l.uniform1f(p,a.minEdgeThickness),l.uniform1f(g,t.lengthToThicknessRatio),l.uniform1f(y,t.widenessToThicknessRatio)}}]),r})(Ud)}jO();var Ebe=`
|
|
387
|
+
precision mediump float;
|
|
388
|
+
|
|
389
|
+
varying vec4 v_color;
|
|
390
|
+
varying vec2 v_normal;
|
|
391
|
+
varying float v_thickness;
|
|
392
|
+
varying float v_feather;
|
|
393
|
+
|
|
394
|
+
const vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);
|
|
395
|
+
|
|
396
|
+
void main(void) {
|
|
397
|
+
// We only handle antialiasing for normal mode:
|
|
398
|
+
#ifdef PICKING_MODE
|
|
399
|
+
gl_FragColor = v_color;
|
|
400
|
+
#else
|
|
401
|
+
float dist = length(v_normal) * v_thickness;
|
|
402
|
+
|
|
403
|
+
float t = smoothstep(
|
|
404
|
+
v_thickness - v_feather,
|
|
405
|
+
v_thickness,
|
|
406
|
+
dist
|
|
407
|
+
);
|
|
408
|
+
|
|
409
|
+
gl_FragColor = mix(v_color, transparent, t);
|
|
410
|
+
#endif
|
|
411
|
+
}
|
|
412
|
+
`,RO=Ebe,Sbe=`
|
|
413
|
+
attribute vec4 a_id;
|
|
414
|
+
attribute vec4 a_color;
|
|
415
|
+
attribute vec2 a_normal;
|
|
416
|
+
attribute float a_normalCoef;
|
|
417
|
+
attribute vec2 a_positionStart;
|
|
418
|
+
attribute vec2 a_positionEnd;
|
|
419
|
+
attribute float a_positionCoef;
|
|
420
|
+
attribute float a_radius;
|
|
421
|
+
attribute float a_radiusCoef;
|
|
422
|
+
|
|
423
|
+
uniform mat3 u_matrix;
|
|
424
|
+
uniform float u_zoomRatio;
|
|
425
|
+
uniform float u_sizeRatio;
|
|
426
|
+
uniform float u_pixelRatio;
|
|
427
|
+
uniform float u_correctionRatio;
|
|
428
|
+
uniform float u_minEdgeThickness;
|
|
429
|
+
uniform float u_lengthToThicknessRatio;
|
|
430
|
+
uniform float u_feather;
|
|
431
|
+
|
|
432
|
+
varying vec4 v_color;
|
|
433
|
+
varying vec2 v_normal;
|
|
434
|
+
varying float v_thickness;
|
|
435
|
+
varying float v_feather;
|
|
436
|
+
|
|
437
|
+
const float bias = 255.0 / 254.0;
|
|
438
|
+
|
|
439
|
+
void main() {
|
|
440
|
+
float minThickness = u_minEdgeThickness;
|
|
441
|
+
|
|
442
|
+
float radius = a_radius * a_radiusCoef;
|
|
443
|
+
vec2 normal = a_normal * a_normalCoef;
|
|
444
|
+
vec2 position = a_positionStart * (1.0 - a_positionCoef) + a_positionEnd * a_positionCoef;
|
|
445
|
+
|
|
446
|
+
float normalLength = length(normal);
|
|
447
|
+
vec2 unitNormal = normal / normalLength;
|
|
448
|
+
|
|
449
|
+
// These first computations are taken from edge.vert.glsl. Please read it to
|
|
450
|
+
// get better comments on what's happening:
|
|
451
|
+
float pixelsThickness = max(normalLength, minThickness * u_sizeRatio);
|
|
452
|
+
float webGLThickness = pixelsThickness * u_correctionRatio / u_sizeRatio;
|
|
453
|
+
|
|
454
|
+
// Here, we move the point to leave space for the arrow head:
|
|
455
|
+
float direction = sign(radius);
|
|
456
|
+
float webGLNodeRadius = direction * radius * 2.0 * u_correctionRatio / u_sizeRatio;
|
|
457
|
+
float webGLArrowHeadLength = webGLThickness * u_lengthToThicknessRatio * 2.0;
|
|
458
|
+
|
|
459
|
+
vec2 compensationVector = vec2(-direction * unitNormal.y, direction * unitNormal.x) * (webGLNodeRadius + webGLArrowHeadLength);
|
|
460
|
+
|
|
461
|
+
// Here is the proper position of the vertex
|
|
462
|
+
gl_Position = vec4((u_matrix * vec3(position + unitNormal * webGLThickness + compensationVector, 1)).xy, 0, 1);
|
|
463
|
+
|
|
464
|
+
v_thickness = webGLThickness / u_zoomRatio;
|
|
465
|
+
|
|
466
|
+
v_normal = unitNormal;
|
|
467
|
+
|
|
468
|
+
v_feather = u_feather * u_correctionRatio / u_zoomRatio / u_pixelRatio * 2.0;
|
|
469
|
+
|
|
470
|
+
#ifdef PICKING_MODE
|
|
471
|
+
// For picking mode, we use the ID as the color:
|
|
472
|
+
v_color = a_id;
|
|
473
|
+
#else
|
|
474
|
+
// For normal mode, we use the color:
|
|
475
|
+
v_color = a_color;
|
|
476
|
+
#endif
|
|
477
|
+
|
|
478
|
+
v_color.a *= bias;
|
|
479
|
+
}
|
|
480
|
+
`,Tbe=Sbe,NO=WebGLRenderingContext,xA=NO.UNSIGNED_BYTE,tl=NO.FLOAT,Cbe=["u_matrix","u_zoomRatio","u_sizeRatio","u_correctionRatio","u_pixelRatio","u_feather","u_minEdgeThickness","u_lengthToThicknessRatio"],Abe={lengthToThicknessRatio:o0.lengthToThicknessRatio};function zO(e){var t=$e($e({},Abe),{});return(function(n){Ai(r,n);function r(){return ar(this,r),Ci(this,r,arguments)}return or(r,[{key:"getDefinition",value:function(){return{VERTICES:6,VERTEX_SHADER_SOURCE:Tbe,FRAGMENT_SHADER_SOURCE:RO,METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:Cbe,ATTRIBUTES:[{name:"a_positionStart",size:2,type:tl},{name:"a_positionEnd",size:2,type:tl},{name:"a_normal",size:2,type:tl},{name:"a_color",size:4,type:xA,normalized:!0},{name:"a_id",size:4,type:xA,normalized:!0},{name:"a_radius",size:1,type:tl}],CONSTANT_ATTRIBUTES:[{name:"a_positionCoef",size:1,type:tl},{name:"a_normalCoef",size:1,type:tl},{name:"a_radiusCoef",size:1,type:tl}],CONSTANT_DATA:[[0,1,0],[0,-1,0],[1,1,1],[1,1,1],[0,-1,0],[1,-1,-1]]}}},{key:"processVisibleItem",value:function(a,o,l,c,f){var d=f.size||1,m=l.x,p=l.y,g=c.x,y=c.y,x=ks(f.color),k=g-m,w=y-p,C=c.size||1,S=k*k+w*w,T=0,z=0;S&&(S=1/Math.sqrt(S),T=-w*S*d,z=k*S*d);var A=this.array;A[o++]=m,A[o++]=p,A[o++]=g,A[o++]=y,A[o++]=T,A[o++]=z,A[o++]=x,A[o++]=a,A[o++]=C}},{key:"setUniforms",value:function(a,o){var l=o.gl,c=o.uniformLocations,f=c.u_matrix,d=c.u_zoomRatio,m=c.u_feather,p=c.u_pixelRatio,g=c.u_correctionRatio,y=c.u_sizeRatio,x=c.u_minEdgeThickness,k=c.u_lengthToThicknessRatio;l.uniformMatrix3fv(f,!1,a.matrix),l.uniform1f(d,a.zoomRatio),l.uniform1f(y,a.sizeRatio),l.uniform1f(g,a.correctionRatio),l.uniform1f(p,a.pixelRatio),l.uniform1f(m,a.antiAliasingFeather),l.uniform1f(x,a.minEdgeThickness),l.uniform1f(k,t.lengthToThicknessRatio)}}]),r})(Ud)}zO();function jbe(e){return fbe([zO(),jO()])}var Rbe=jbe(),Nbe=Rbe,zbe=`
|
|
481
|
+
attribute vec4 a_id;
|
|
482
|
+
attribute vec4 a_color;
|
|
483
|
+
attribute vec2 a_normal;
|
|
484
|
+
attribute float a_normalCoef;
|
|
485
|
+
attribute vec2 a_positionStart;
|
|
486
|
+
attribute vec2 a_positionEnd;
|
|
487
|
+
attribute float a_positionCoef;
|
|
488
|
+
|
|
489
|
+
uniform mat3 u_matrix;
|
|
490
|
+
uniform float u_sizeRatio;
|
|
491
|
+
uniform float u_zoomRatio;
|
|
492
|
+
uniform float u_pixelRatio;
|
|
493
|
+
uniform float u_correctionRatio;
|
|
494
|
+
uniform float u_minEdgeThickness;
|
|
495
|
+
uniform float u_feather;
|
|
496
|
+
|
|
497
|
+
varying vec4 v_color;
|
|
498
|
+
varying vec2 v_normal;
|
|
499
|
+
varying float v_thickness;
|
|
500
|
+
varying float v_feather;
|
|
501
|
+
|
|
502
|
+
const float bias = 255.0 / 254.0;
|
|
503
|
+
|
|
504
|
+
void main() {
|
|
505
|
+
float minThickness = u_minEdgeThickness;
|
|
506
|
+
|
|
507
|
+
vec2 normal = a_normal * a_normalCoef;
|
|
508
|
+
vec2 position = a_positionStart * (1.0 - a_positionCoef) + a_positionEnd * a_positionCoef;
|
|
509
|
+
|
|
510
|
+
float normalLength = length(normal);
|
|
511
|
+
vec2 unitNormal = normal / normalLength;
|
|
512
|
+
|
|
513
|
+
// We require edges to be at least "minThickness" pixels thick *on screen*
|
|
514
|
+
// (so we need to compensate the size ratio):
|
|
515
|
+
float pixelsThickness = max(normalLength, minThickness * u_sizeRatio);
|
|
516
|
+
|
|
517
|
+
// Then, we need to retrieve the normalized thickness of the edge in the WebGL
|
|
518
|
+
// referential (in a ([0, 1], [0, 1]) space), using our "magic" correction
|
|
519
|
+
// ratio:
|
|
520
|
+
float webGLThickness = pixelsThickness * u_correctionRatio / u_sizeRatio;
|
|
521
|
+
|
|
522
|
+
// Here is the proper position of the vertex
|
|
523
|
+
gl_Position = vec4((u_matrix * vec3(position + unitNormal * webGLThickness, 1)).xy, 0, 1);
|
|
524
|
+
|
|
525
|
+
// For the fragment shader though, we need a thickness that takes the "magic"
|
|
526
|
+
// correction ratio into account (as in webGLThickness), but so that the
|
|
527
|
+
// antialiasing effect does not depend on the zoom level. So here's yet
|
|
528
|
+
// another thickness version:
|
|
529
|
+
v_thickness = webGLThickness / u_zoomRatio;
|
|
530
|
+
|
|
531
|
+
v_normal = unitNormal;
|
|
532
|
+
|
|
533
|
+
v_feather = u_feather * u_correctionRatio / u_zoomRatio / u_pixelRatio * 2.0;
|
|
534
|
+
|
|
535
|
+
#ifdef PICKING_MODE
|
|
536
|
+
// For picking mode, we use the ID as the color:
|
|
537
|
+
v_color = a_id;
|
|
538
|
+
#else
|
|
539
|
+
// For normal mode, we use the color:
|
|
540
|
+
v_color = a_color;
|
|
541
|
+
#endif
|
|
542
|
+
|
|
543
|
+
v_color.a *= bias;
|
|
544
|
+
}
|
|
545
|
+
`,Lbe=zbe,LO=WebGLRenderingContext,wA=LO.UNSIGNED_BYTE,fh=LO.FLOAT,Mbe=["u_matrix","u_zoomRatio","u_sizeRatio","u_correctionRatio","u_pixelRatio","u_feather","u_minEdgeThickness"],Obe=(function(e){Ai(t,e);function t(){return ar(this,t),Ci(this,t,arguments)}return or(t,[{key:"getDefinition",value:function(){return{VERTICES:6,VERTEX_SHADER_SOURCE:Lbe,FRAGMENT_SHADER_SOURCE:RO,METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:Mbe,ATTRIBUTES:[{name:"a_positionStart",size:2,type:fh},{name:"a_positionEnd",size:2,type:fh},{name:"a_normal",size:2,type:fh},{name:"a_color",size:4,type:wA,normalized:!0},{name:"a_id",size:4,type:wA,normalized:!0}],CONSTANT_ATTRIBUTES:[{name:"a_positionCoef",size:1,type:fh},{name:"a_normalCoef",size:1,type:fh}],CONSTANT_DATA:[[0,1],[0,-1],[1,1],[1,1],[0,-1],[1,-1]]}}},{key:"processVisibleItem",value:function(r,i,a,o,l){var c=l.size||1,f=a.x,d=a.y,m=o.x,p=o.y,g=ks(l.color),y=m-f,x=p-d,k=y*y+x*x,w=0,C=0;k&&(k=1/Math.sqrt(k),w=-x*k*c,C=y*k*c);var S=this.array;S[i++]=f,S[i++]=d,S[i++]=m,S[i++]=p,S[i++]=w,S[i++]=C,S[i++]=g,S[i++]=r}},{key:"setUniforms",value:function(r,i){var a=i.gl,o=i.uniformLocations,l=o.u_matrix,c=o.u_zoomRatio,f=o.u_feather,d=o.u_pixelRatio,m=o.u_correctionRatio,p=o.u_sizeRatio,g=o.u_minEdgeThickness;a.uniformMatrix3fv(l,!1,r.matrix),a.uniform1f(c,r.zoomRatio),a.uniform1f(p,r.sizeRatio),a.uniform1f(m,r.correctionRatio),a.uniform1f(d,r.pixelRatio),a.uniform1f(f,r.antiAliasingFeather),a.uniform1f(g,r.minEdgeThickness)}}]),t})(Ud),RE=(function(e){Ai(t,e);function t(){var n;return ar(this,t),n=Ci(this,t),n.rawEmitter=Ce(n),n}return or(t)})(EE.EventEmitter),Zb,kA;function MO(){return kA||(kA=1,Zb=function(t){return t!==null&&typeof t=="object"&&typeof t.addUndirectedEdgeWithKey=="function"&&typeof t.dropNode=="function"&&typeof t.multi=="boolean"}),Zb}var Dbe=MO();const qbe=Ml(Dbe);var Ibe=function(t){return t},$be=function(t){return t*t},Pbe=function(t){return t*(2-t)},Ube=function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},Bbe=function(t){return t*t*t},Gbe=function(t){return--t*t*t+1},Fbe=function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},Hbe={linear:Ibe,quadraticIn:$be,quadraticOut:Pbe,quadraticInOut:Ube,cubicIn:Bbe,cubicOut:Gbe,cubicInOut:Fbe},Vbe={easing:"quadraticInOut",duration:150};function Di(){return Float32Array.of(1,0,0,0,1,0,0,0,1)}function Jp(e,t,n){return e[0]=t,e[4]=typeof n=="number"?n:t,e}function EA(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[3]=-n,e[4]=r,e}function SA(e,t,n){return e[6]=t,e[7]=n,e}function Qo(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],l=e[5],c=e[6],f=e[7],d=e[8],m=t[0],p=t[1],g=t[2],y=t[3],x=t[4],k=t[5],w=t[6],C=t[7],S=t[8];return e[0]=m*n+p*a+g*c,e[1]=m*r+p*o+g*f,e[2]=m*i+p*l+g*d,e[3]=y*n+x*a+k*c,e[4]=y*r+x*o+k*f,e[5]=y*i+x*l+k*d,e[6]=w*n+C*a+S*c,e[7]=w*r+C*o+S*f,e[8]=w*i+C*l+S*d,e}function Ww(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=e[0],i=e[1],a=e[3],o=e[4],l=e[6],c=e[7],f=t.x,d=t.y;return{x:f*r+d*a+l*n,y:f*i+d*o+c*n}}function Xbe(e,t){var n=e.height/e.width,r=t.height/t.width;return n<1&&r>1||n>1&&r<1?1:Math.min(Math.max(r,1/r),Math.max(1/n,n))}function hh(e,t,n,r,i){var a=e.angle,o=e.ratio,l=e.x,c=e.y,f=t.width,d=t.height,m=Di(),p=Math.min(f,d)-2*r,g=Xbe(t,n);return i?(Qo(m,SA(Di(),l,c)),Qo(m,Jp(Di(),o)),Qo(m,EA(Di(),a)),Qo(m,Jp(Di(),f/p/2/g,d/p/2/g))):(Qo(m,Jp(Di(),2*(p/f)*g,2*(p/d)*g)),Qo(m,EA(Di(),-a)),Qo(m,Jp(Di(),1/o)),Qo(m,SA(Di(),-l,-c))),m}function Ybe(e,t,n){var r=Ww(e,{x:Math.cos(t.angle),y:Math.sin(t.angle)},0),i=r.x,a=r.y;return 1/Math.sqrt(Math.pow(i,2)+Math.pow(a,2))/n.width}function Wbe(e){if(!e.order)return{x:[0,1],y:[0,1]};var t=1/0,n=-1/0,r=1/0,i=-1/0;return e.forEachNode(function(a,o){var l=o.x,c=o.y;l<t&&(t=l),l>n&&(n=l),c<r&&(r=c),c>i&&(i=c)}),{x:[t,n],y:[r,i]}}function Kbe(e){if(!qbe(e))throw new Error("Sigma: invalid graph instance.");e.forEachNode(function(t,n){if(!Number.isFinite(n.x)||!Number.isFinite(n.y))throw new Error("Sigma: Coordinates of node ".concat(t," are invalid. A node must have a numeric 'x' and 'y' attribute."))})}function Zbe(e,t,n){var r=document.createElement(e);if(t)for(var i in t)r.style[i]=t[i];if(n)for(var a in n)r.setAttribute(a,n[a]);return r}function TA(){return typeof window.devicePixelRatio<"u"?window.devicePixelRatio:1}function CA(e,t,n){return n.sort(function(r,i){var a=t(r)||0,o=t(i)||0;return a<o?-1:a>o?1:0})}function AA(e){var t=Nc(e.x,2),n=t[0],r=t[1],i=Nc(e.y,2),a=i[0],o=i[1],l=Math.max(r-n,o-a),c=(r+n)/2,f=(o+a)/2;(l===0||Math.abs(l)===1/0||isNaN(l))&&(l=1),isNaN(c)&&(c=0),isNaN(f)&&(f=0);var d=function(p){return{x:.5+(p.x-c)/l,y:.5+(p.y-f)/l}};return d.applyTo=function(m){m.x=.5+(m.x-c)/l,m.y=.5+(m.y-f)/l},d.inverse=function(m){return{x:c+l*(m.x-.5),y:f+l*(m.y-.5)}},d.ratio=l,d}function Kw(e){"@babel/helpers - typeof";return Kw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kw(e)}function jA(e,t){var n=t.size;if(n!==0){var r=e.length;e.length+=n;var i=0;t.forEach(function(a){e[r+i]=a,i++})}}function Qb(e){e=e||{};for(var t=0,n=arguments.length<=1?0:arguments.length-1;t<n;t++){var r=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];r&&Object.assign(e,r)}return e}var NE={hideEdgesOnMove:!1,hideLabelsOnMove:!1,renderLabels:!0,renderEdgeLabels:!1,enableEdgeEvents:!1,defaultNodeColor:"#999",defaultNodeType:"circle",defaultEdgeColor:"#ccc",defaultEdgeType:"line",labelFont:"Arial",labelSize:14,labelWeight:"normal",labelColor:{color:"#000"},edgeLabelFont:"Arial",edgeLabelSize:14,edgeLabelWeight:"normal",edgeLabelColor:{attribute:"color"},stagePadding:30,defaultDrawEdgeLabel:hbe,defaultDrawNodeLabel:TO,defaultDrawNodeHover:dbe,minEdgeThickness:1.7,antiAliasingFeather:1,dragTimeout:100,draggedEventsTolerance:3,inertiaDuration:200,inertiaRatio:3,zoomDuration:250,zoomingRatio:1.7,doubleClickTimeout:300,doubleClickZoomingRatio:2.2,doubleClickZoomingDuration:200,tapMoveTolerance:10,zoomToSizeRatioFunction:Math.sqrt,itemSizesReference:"screen",autoRescale:!0,autoCenter:!0,labelDensity:1,labelGridCellSize:100,labelRenderedSizeThreshold:6,nodeReducer:null,edgeReducer:null,zIndex:!1,minCameraRatio:null,maxCameraRatio:null,enableCameraZooming:!0,enableCameraPanning:!0,enableCameraRotation:!0,cameraPanBoundaries:null,allowInvalidContainer:!1,nodeProgramClasses:{},nodeHoverProgramClasses:{},edgeProgramClasses:{}},Qbe={circle:a0},Jbe={arrow:Nbe,line:Obe};function Jb(e){if(typeof e.labelDensity!="number"||e.labelDensity<0)throw new Error("Settings: invalid `labelDensity`. Expecting a positive number.");var t=e.minCameraRatio,n=e.maxCameraRatio;if(typeof t=="number"&&typeof n=="number"&&n<t)throw new Error("Settings: invalid camera ratio boundaries. Expecting `maxCameraRatio` to be greater than `minCameraRatio`.")}function exe(e){var t=Qb({},NE,e);return t.nodeProgramClasses=Qb({},Qbe,t.nodeProgramClasses),t.edgeProgramClasses=Qb({},Jbe,t.edgeProgramClasses),t}var e_=1.5,RA=(function(e){Ai(t,e);function t(){var n;return ar(this,t),n=Ci(this,t),ke(Ce(n),"x",.5),ke(Ce(n),"y",.5),ke(Ce(n),"angle",0),ke(Ce(n),"ratio",1),ke(Ce(n),"minRatio",null),ke(Ce(n),"maxRatio",null),ke(Ce(n),"enabledZooming",!0),ke(Ce(n),"enabledPanning",!0),ke(Ce(n),"enabledRotation",!0),ke(Ce(n),"clean",null),ke(Ce(n),"nextFrame",null),ke(Ce(n),"previousState",null),ke(Ce(n),"enabled",!0),n.previousState=n.getState(),n}return or(t,[{key:"enable",value:function(){return this.enabled=!0,this}},{key:"disable",value:function(){return this.enabled=!1,this}},{key:"getState",value:function(){return{x:this.x,y:this.y,angle:this.angle,ratio:this.ratio}}},{key:"hasState",value:function(r){return this.x===r.x&&this.y===r.y&&this.ratio===r.ratio&&this.angle===r.angle}},{key:"getPreviousState",value:function(){var r=this.previousState;return r?{x:r.x,y:r.y,angle:r.angle,ratio:r.ratio}:null}},{key:"getBoundedRatio",value:function(r){var i=r;return typeof this.minRatio=="number"&&(i=Math.max(i,this.minRatio)),typeof this.maxRatio=="number"&&(i=Math.min(i,this.maxRatio)),i}},{key:"validateState",value:function(r){var i={};return this.enabledPanning&&typeof r.x=="number"&&(i.x=r.x),this.enabledPanning&&typeof r.y=="number"&&(i.y=r.y),this.enabledZooming&&typeof r.ratio=="number"&&(i.ratio=this.getBoundedRatio(r.ratio)),this.enabledRotation&&typeof r.angle=="number"&&(i.angle=r.angle),this.clean?this.clean($e($e({},this.getState()),i)):i}},{key:"isAnimated",value:function(){return!!this.nextFrame}},{key:"setState",value:function(r){if(!this.enabled)return this;this.previousState=this.getState();var i=this.validateState(r);return typeof i.x=="number"&&(this.x=i.x),typeof i.y=="number"&&(this.y=i.y),typeof i.ratio=="number"&&(this.ratio=i.ratio),typeof i.angle=="number"&&(this.angle=i.angle),this.hasState(this.previousState)||this.emit("updated",this.getState()),this}},{key:"updateState",value:function(r){return this.setState(r(this.getState())),this}},{key:"animate",value:function(r){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;if(!o)return new Promise(function(g){return i.animate(r,a,g)});if(this.enabled){var l=$e($e({},Vbe),a),c=this.validateState(r),f=typeof l.easing=="function"?l.easing:Hbe[l.easing],d=Date.now(),m=this.getState(),p=function g(){var y=(Date.now()-d)/l.duration;if(y>=1){i.nextFrame=null,i.setState(c),i.animationCallback&&(i.animationCallback.call(null),i.animationCallback=void 0);return}var x=f(y),k={};typeof c.x=="number"&&(k.x=m.x+(c.x-m.x)*x),typeof c.y=="number"&&(k.y=m.y+(c.y-m.y)*x),i.enabledRotation&&typeof c.angle=="number"&&(k.angle=m.angle+(c.angle-m.angle)*x),typeof c.ratio=="number"&&(k.ratio=m.ratio+(c.ratio-m.ratio)*x),i.setState(k),i.nextFrame=requestAnimationFrame(g)};this.nextFrame?(cancelAnimationFrame(this.nextFrame),this.animationCallback&&this.animationCallback.call(null),this.nextFrame=requestAnimationFrame(p)):p(),this.animationCallback=o}}},{key:"animatedZoom",value:function(r){return r?typeof r=="number"?this.animate({ratio:this.ratio/r}):this.animate({ratio:this.ratio/(r.factor||e_)},r):this.animate({ratio:this.ratio/e_})}},{key:"animatedUnzoom",value:function(r){return r?typeof r=="number"?this.animate({ratio:this.ratio*r}):this.animate({ratio:this.ratio*(r.factor||e_)},r):this.animate({ratio:this.ratio*e_})}},{key:"animatedReset",value:function(r){return this.animate({x:.5,y:.5,ratio:1,angle:0},r)}},{key:"copy",value:function(){return t.from(this.getState())}}],[{key:"from",value:function(r){var i=new t;return i.setState(r)}}]),t})(RE);function Bi(e,t){var n=t.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}function Za(e,t){var n=$e($e({},Bi(e,t)),{},{sigmaDefaultPrevented:!1,preventSigmaDefault:function(){n.sigmaDefaultPrevented=!0},original:e});return n}function dh(e){var t="x"in e?e:$e($e({},e.touches[0]||e.previousTouches[0]),{},{original:e.original,sigmaDefaultPrevented:e.sigmaDefaultPrevented,preventSigmaDefault:function(){e.sigmaDefaultPrevented=!0,t.sigmaDefaultPrevented=!0}});return t}function txe(e,t){return $e($e({},Za(e,t)),{},{delta:OO(e)})}var nxe=2;function E_(e){for(var t=[],n=0,r=Math.min(e.length,nxe);n<r;n++)t.push(e[n]);return t}function mh(e,t,n){var r={touches:E_(e.touches).map(function(i){return Bi(i,n)}),previousTouches:t.map(function(i){return Bi(i,n)}),sigmaDefaultPrevented:!1,preventSigmaDefault:function(){r.sigmaDefaultPrevented=!0},original:e};return r}function OO(e){if(typeof e.deltaY<"u")return e.deltaY*-3/360;if(typeof e.detail<"u")return e.detail/-9;throw new Error("Captor: could not extract delta from event.")}var DO=(function(e){Ai(t,e);function t(n,r){var i;return ar(this,t),i=Ci(this,t),i.container=n,i.renderer=r,i}return or(t)})(RE),rxe=["doubleClickTimeout","doubleClickZoomingDuration","doubleClickZoomingRatio","dragTimeout","draggedEventsTolerance","inertiaDuration","inertiaRatio","zoomDuration","zoomingRatio"],ixe=rxe.reduce(function(e,t){return $e($e({},e),{},ke({},t,NE[t]))},{}),axe=(function(e){Ai(t,e);function t(n,r){var i;return ar(this,t),i=Ci(this,t,[n,r]),ke(Ce(i),"enabled",!0),ke(Ce(i),"draggedEvents",0),ke(Ce(i),"downStartTime",null),ke(Ce(i),"lastMouseX",null),ke(Ce(i),"lastMouseY",null),ke(Ce(i),"isMouseDown",!1),ke(Ce(i),"isMoving",!1),ke(Ce(i),"movingTimeout",null),ke(Ce(i),"startCameraState",null),ke(Ce(i),"clicks",0),ke(Ce(i),"doubleClickTimeout",null),ke(Ce(i),"currentWheelDirection",0),ke(Ce(i),"settings",ixe),i.handleClick=i.handleClick.bind(Ce(i)),i.handleRightClick=i.handleRightClick.bind(Ce(i)),i.handleDown=i.handleDown.bind(Ce(i)),i.handleUp=i.handleUp.bind(Ce(i)),i.handleMove=i.handleMove.bind(Ce(i)),i.handleWheel=i.handleWheel.bind(Ce(i)),i.handleLeave=i.handleLeave.bind(Ce(i)),i.handleEnter=i.handleEnter.bind(Ce(i)),n.addEventListener("click",i.handleClick,{capture:!1}),n.addEventListener("contextmenu",i.handleRightClick,{capture:!1}),n.addEventListener("mousedown",i.handleDown,{capture:!1}),n.addEventListener("wheel",i.handleWheel,{capture:!1}),n.addEventListener("mouseleave",i.handleLeave,{capture:!1}),n.addEventListener("mouseenter",i.handleEnter,{capture:!1}),document.addEventListener("mousemove",i.handleMove,{capture:!1}),document.addEventListener("mouseup",i.handleUp,{capture:!1}),i}return or(t,[{key:"kill",value:function(){var r=this.container;r.removeEventListener("click",this.handleClick),r.removeEventListener("contextmenu",this.handleRightClick),r.removeEventListener("mousedown",this.handleDown),r.removeEventListener("wheel",this.handleWheel),r.removeEventListener("mouseleave",this.handleLeave),r.removeEventListener("mouseenter",this.handleEnter),document.removeEventListener("mousemove",this.handleMove),document.removeEventListener("mouseup",this.handleUp)}},{key:"handleClick",value:function(r){var i=this;if(this.enabled){if(this.clicks++,this.clicks===2)return this.clicks=0,typeof this.doubleClickTimeout=="number"&&(clearTimeout(this.doubleClickTimeout),this.doubleClickTimeout=null),this.handleDoubleClick(r);setTimeout(function(){i.clicks=0,i.doubleClickTimeout=null},this.settings.doubleClickTimeout),this.draggedEvents<this.settings.draggedEventsTolerance&&this.emit("click",Za(r,this.container))}}},{key:"handleRightClick",value:function(r){this.enabled&&this.emit("rightClick",Za(r,this.container))}},{key:"handleDoubleClick",value:function(r){if(this.enabled){r.preventDefault(),r.stopPropagation();var i=Za(r,this.container);if(this.emit("doubleClick",i),!i.sigmaDefaultPrevented){var a=this.renderer.getCamera(),o=a.getBoundedRatio(a.getState().ratio/this.settings.doubleClickZoomingRatio);a.animate(this.renderer.getViewportZoomedState(Bi(r,this.container),o),{easing:"quadraticInOut",duration:this.settings.doubleClickZoomingDuration})}}}},{key:"handleDown",value:function(r){if(this.enabled){if(r.button===0){this.startCameraState=this.renderer.getCamera().getState();var i=Bi(r,this.container),a=i.x,o=i.y;this.lastMouseX=a,this.lastMouseY=o,this.draggedEvents=0,this.downStartTime=Date.now(),this.isMouseDown=!0}this.emit("mousedown",Za(r,this.container))}}},{key:"handleUp",value:function(r){var i=this;if(!(!this.enabled||!this.isMouseDown)){var a=this.renderer.getCamera();this.isMouseDown=!1,typeof this.movingTimeout=="number"&&(clearTimeout(this.movingTimeout),this.movingTimeout=null);var o=Bi(r,this.container),l=o.x,c=o.y,f=a.getState(),d=a.getPreviousState()||{x:0,y:0};this.isMoving?a.animate({x:f.x+this.settings.inertiaRatio*(f.x-d.x),y:f.y+this.settings.inertiaRatio*(f.y-d.y)},{duration:this.settings.inertiaDuration,easing:"quadraticOut"}):(this.lastMouseX!==l||this.lastMouseY!==c)&&a.setState({x:f.x,y:f.y}),this.isMoving=!1,setTimeout(function(){var m=i.draggedEvents>0;i.draggedEvents=0,m&&i.renderer.refresh()},0),this.emit("mouseup",Za(r,this.container))}}},{key:"handleMove",value:function(r){var i=this;if(this.enabled){var a=Za(r,this.container);if(this.emit("mousemovebody",a),(r.target===this.container||r.composedPath()[0]===this.container)&&this.emit("mousemove",a),!a.sigmaDefaultPrevented&&this.isMouseDown){this.isMoving=!0,this.draggedEvents++,typeof this.movingTimeout=="number"&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout(function(){i.movingTimeout=null,i.isMoving=!1},this.settings.dragTimeout);var o=this.renderer.getCamera(),l=Bi(r,this.container),c=l.x,f=l.y,d=this.renderer.viewportToFramedGraph({x:this.lastMouseX,y:this.lastMouseY}),m=this.renderer.viewportToFramedGraph({x:c,y:f}),p=d.x-m.x,g=d.y-m.y,y=o.getState(),x=y.x+p,k=y.y+g;o.setState({x,y:k}),this.lastMouseX=c,this.lastMouseY=f,r.preventDefault(),r.stopPropagation()}}}},{key:"handleLeave",value:function(r){this.emit("mouseleave",Za(r,this.container))}},{key:"handleEnter",value:function(r){this.emit("mouseenter",Za(r,this.container))}},{key:"handleWheel",value:function(r){var i=this,a=this.renderer.getCamera();if(!(!this.enabled||!a.enabledZooming)){var o=OO(r);if(o){var l=txe(r,this.container);if(this.emit("wheel",l),l.sigmaDefaultPrevented){r.preventDefault(),r.stopPropagation();return}var c=a.getState().ratio,f=o>0?1/this.settings.zoomingRatio:this.settings.zoomingRatio,d=a.getBoundedRatio(c*f),m=o>0?1:-1,p=Date.now();c!==d&&(r.preventDefault(),r.stopPropagation(),!(this.currentWheelDirection===m&&this.lastWheelTriggerTime&&p-this.lastWheelTriggerTime<this.settings.zoomDuration/5)&&(a.animate(this.renderer.getViewportZoomedState(Bi(r,this.container),d),{easing:"quadraticOut",duration:this.settings.zoomDuration},function(){i.currentWheelDirection=0}),this.currentWheelDirection=m,this.lastWheelTriggerTime=p))}}}},{key:"setSettings",value:function(r){this.settings=r}}]),t})(DO),oxe=["dragTimeout","inertiaDuration","inertiaRatio","doubleClickTimeout","doubleClickZoomingRatio","doubleClickZoomingDuration","tapMoveTolerance"],sxe=oxe.reduce(function(e,t){return $e($e({},e),{},ke({},t,NE[t]))},{}),lxe=(function(e){Ai(t,e);function t(n,r){var i;return ar(this,t),i=Ci(this,t,[n,r]),ke(Ce(i),"enabled",!0),ke(Ce(i),"isMoving",!1),ke(Ce(i),"hasMoved",!1),ke(Ce(i),"touchMode",0),ke(Ce(i),"startTouchesPositions",[]),ke(Ce(i),"lastTouches",[]),ke(Ce(i),"lastTap",null),ke(Ce(i),"settings",sxe),i.handleStart=i.handleStart.bind(Ce(i)),i.handleLeave=i.handleLeave.bind(Ce(i)),i.handleMove=i.handleMove.bind(Ce(i)),n.addEventListener("touchstart",i.handleStart,{capture:!1}),n.addEventListener("touchcancel",i.handleLeave,{capture:!1}),document.addEventListener("touchend",i.handleLeave,{capture:!1,passive:!1}),document.addEventListener("touchmove",i.handleMove,{capture:!1,passive:!1}),i}return or(t,[{key:"kill",value:function(){var r=this.container;r.removeEventListener("touchstart",this.handleStart),r.removeEventListener("touchcancel",this.handleLeave),document.removeEventListener("touchend",this.handleLeave),document.removeEventListener("touchmove",this.handleMove)}},{key:"getDimensions",value:function(){return{width:this.container.offsetWidth,height:this.container.offsetHeight}}},{key:"handleStart",value:function(r){var i=this;if(this.enabled){r.preventDefault();var a=E_(r.touches);if(this.touchMode=a.length,this.startCameraState=this.renderer.getCamera().getState(),this.startTouchesPositions=a.map(function(g){return Bi(g,i.container)}),this.touchMode===2){var o=Nc(this.startTouchesPositions,2),l=o[0],c=l.x,f=l.y,d=o[1],m=d.x,p=d.y;this.startTouchesAngle=Math.atan2(p-f,m-c),this.startTouchesDistance=Math.sqrt(Math.pow(m-c,2)+Math.pow(p-f,2))}this.emit("touchdown",mh(r,this.lastTouches,this.container)),this.lastTouches=a,this.lastTouchesPositions=this.startTouchesPositions}}},{key:"handleLeave",value:function(r){if(!(!this.enabled||!this.startTouchesPositions.length)){switch(r.cancelable&&r.preventDefault(),this.movingTimeout&&(this.isMoving=!1,clearTimeout(this.movingTimeout)),this.touchMode){case 2:if(r.touches.length===1){this.handleStart(r),r.preventDefault();break}case 1:if(this.isMoving){var i=this.renderer.getCamera(),a=i.getState(),o=i.getPreviousState()||{x:0,y:0};i.animate({x:a.x+this.settings.inertiaRatio*(a.x-o.x),y:a.y+this.settings.inertiaRatio*(a.y-o.y)},{duration:this.settings.inertiaDuration,easing:"quadraticOut"})}this.hasMoved=!1,this.isMoving=!1,this.touchMode=0;break}if(this.emit("touchup",mh(r,this.lastTouches,this.container)),!r.touches.length){var l=Bi(this.lastTouches[0],this.container),c=this.startTouchesPositions[0],f=Math.pow(l.x-c.x,2)+Math.pow(l.y-c.y,2);if(!r.touches.length&&f<Math.pow(this.settings.tapMoveTolerance,2))if(this.lastTap&&Date.now()-this.lastTap.time<this.settings.doubleClickTimeout){var d=mh(r,this.lastTouches,this.container);if(this.emit("doubletap",d),this.lastTap=null,!d.sigmaDefaultPrevented){var m=this.renderer.getCamera(),p=m.getBoundedRatio(m.getState().ratio/this.settings.doubleClickZoomingRatio);m.animate(this.renderer.getViewportZoomedState(l,p),{easing:"quadraticInOut",duration:this.settings.doubleClickZoomingDuration})}}else{var g=mh(r,this.lastTouches,this.container);this.emit("tap",g),this.lastTap={time:Date.now(),position:g.touches[0]||g.previousTouches[0]}}}this.lastTouches=E_(r.touches),this.startTouchesPositions=[]}}},{key:"handleMove",value:function(r){var i=this;if(!(!this.enabled||!this.startTouchesPositions.length)){r.preventDefault();var a=E_(r.touches),o=a.map(function(U){return Bi(U,i.container)}),l=this.lastTouches;this.lastTouches=a,this.lastTouchesPositions=o;var c=mh(r,l,this.container);if(this.emit("touchmove",c),!c.sigmaDefaultPrevented&&(this.hasMoved||(this.hasMoved=o.some(function(U,K){var $=i.startTouchesPositions[K];return $&&(U.x!==$.x||U.y!==$.y)})),!!this.hasMoved)){this.isMoving=!0,this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout(function(){i.isMoving=!1},this.settings.dragTimeout);var f=this.renderer.getCamera(),d=this.startCameraState,m=this.renderer.getSetting("stagePadding");switch(this.touchMode){case 1:{var p=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0]),g=p.x,y=p.y,x=this.renderer.viewportToFramedGraph(o[0]),k=x.x,w=x.y;f.setState({x:d.x+g-k,y:d.y+y-w});break}case 2:{var C={x:.5,y:.5,angle:0,ratio:1},S=o[0],T=S.x,z=S.y,A=o[1],L=A.x,G=A.y,H=Math.atan2(G-z,L-T)-this.startTouchesAngle,q=Math.hypot(G-z,L-T)/this.startTouchesDistance,V=f.getBoundedRatio(d.ratio/q);C.ratio=V,C.angle=d.angle+H;var W=this.getDimensions(),I=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0],{cameraState:d}),B=Math.min(W.width,W.height)-2*m,D=B/W.width,j=B/W.height,N=V/B,F=T-B/2/D,Z=z-B/2/j,O=[F*Math.cos(-C.angle)-Z*Math.sin(-C.angle),Z*Math.cos(-C.angle)+F*Math.sin(-C.angle)];F=O[0],Z=O[1],C.x=I.x-F*N,C.y=I.y+Z*N,f.setState(C);break}}}}}},{key:"setSettings",value:function(r){this.settings=r}}]),t})(DO);function uxe(e){if(Array.isArray(e))return Xw(e)}function cxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fxe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
546
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NA(e){return uxe(e)||cxe(e)||yO(e)||fxe()}function hxe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function ex(e,t){if(e==null)return{};var n,r,i=hxe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var zA=(function(){function e(t,n){ar(this,e),this.key=t,this.size=n}return or(e,null,[{key:"compare",value:function(n,r){return n.size>r.size?-1:n.size<r.size||n.key>r.key?1:-1}}]),e})(),LA=(function(){function e(){ar(this,e),ke(this,"width",0),ke(this,"height",0),ke(this,"cellSize",0),ke(this,"columns",0),ke(this,"rows",0),ke(this,"cells",{})}return or(e,[{key:"resizeAndClear",value:function(n,r){this.width=n.width,this.height=n.height,this.cellSize=r,this.columns=Math.ceil(n.width/r),this.rows=Math.ceil(n.height/r),this.cells={}}},{key:"getIndex",value:function(n){var r=Math.floor(n.x/this.cellSize),i=Math.floor(n.y/this.cellSize);return i*this.columns+r}},{key:"add",value:function(n,r,i){var a=new zA(n,r),o=this.getIndex(i),l=this.cells[o];l||(l=[],this.cells[o]=l),l.push(a)}},{key:"organize",value:function(){for(var n in this.cells){var r=this.cells[n];r.sort(zA.compare)}}},{key:"getLabelsToDisplay",value:function(n,r){var i=this.cellSize*this.cellSize,a=i/n/n,o=a*r/i,l=Math.ceil(o),c=[];for(var f in this.cells)for(var d=this.cells[f],m=0;m<Math.min(l,d.length);m++)c.push(d[m].key);return c}}]),e})();function dxe(e){var t=e.graph,n=e.hoveredNode,r=e.highlightedNodes,i=e.displayedNodeLabels,a=[];return t.forEachEdge(function(o,l,c,f){(c===n||f===n||r.has(c)||r.has(f)||i.has(c)&&i.has(f))&&a.push(o)}),a}var MA=150,OA=50,no=Object.prototype.hasOwnProperty;function mxe(e,t,n){if(!no.call(n,"x")||!no.call(n,"y"))throw new Error('Sigma: could not find a valid position (x, y) for node "'.concat(t,'". All your nodes must have a number "x" and "y". Maybe your forgot to apply a layout or your "nodeReducer" is not returning the correct data?'));return n.color||(n.color=e.defaultNodeColor),!n.label&&n.label!==""&&(n.label=null),n.label!==void 0&&n.label!==null?n.label=""+n.label:n.label=null,n.size||(n.size=2),no.call(n,"hidden")||(n.hidden=!1),no.call(n,"highlighted")||(n.highlighted=!1),no.call(n,"forceLabel")||(n.forceLabel=!1),(!n.type||n.type==="")&&(n.type=e.defaultNodeType),n.zIndex||(n.zIndex=0),n}function pxe(e,t,n){return n.color||(n.color=e.defaultEdgeColor),n.label||(n.label=""),n.size||(n.size=.5),no.call(n,"hidden")||(n.hidden=!1),no.call(n,"forceLabel")||(n.forceLabel=!1),(!n.type||n.type==="")&&(n.type=e.defaultEdgeType),n.zIndex||(n.zIndex=0),n}var _xe=(function(e){Ai(t,e);function t(n,r){var i,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(ar(this,t),i=Ci(this,t),ke(Ce(i),"elements",{}),ke(Ce(i),"canvasContexts",{}),ke(Ce(i),"webGLContexts",{}),ke(Ce(i),"pickingLayers",new Set),ke(Ce(i),"textures",{}),ke(Ce(i),"frameBuffers",{}),ke(Ce(i),"activeListeners",{}),ke(Ce(i),"labelGrid",new LA),ke(Ce(i),"nodeDataCache",{}),ke(Ce(i),"edgeDataCache",{}),ke(Ce(i),"nodeProgramIndex",{}),ke(Ce(i),"edgeProgramIndex",{}),ke(Ce(i),"nodesWithForcedLabels",new Set),ke(Ce(i),"edgesWithForcedLabels",new Set),ke(Ce(i),"nodeExtent",{x:[0,1],y:[0,1]}),ke(Ce(i),"nodeZExtent",[1/0,-1/0]),ke(Ce(i),"edgeZExtent",[1/0,-1/0]),ke(Ce(i),"matrix",Di()),ke(Ce(i),"invMatrix",Di()),ke(Ce(i),"correctionRatio",1),ke(Ce(i),"customBBox",null),ke(Ce(i),"normalizationFunction",AA({x:[0,1],y:[0,1]})),ke(Ce(i),"graphToViewportRatio",1),ke(Ce(i),"itemIDsIndex",{}),ke(Ce(i),"nodeIndices",{}),ke(Ce(i),"edgeIndices",{}),ke(Ce(i),"width",0),ke(Ce(i),"height",0),ke(Ce(i),"pixelRatio",TA()),ke(Ce(i),"pickingDownSizingRatio",2*i.pixelRatio),ke(Ce(i),"displayedNodeLabels",new Set),ke(Ce(i),"displayedEdgeLabels",new Set),ke(Ce(i),"highlightedNodes",new Set),ke(Ce(i),"hoveredNode",null),ke(Ce(i),"hoveredEdge",null),ke(Ce(i),"renderFrame",null),ke(Ce(i),"renderHighlightedNodesFrame",null),ke(Ce(i),"needToProcess",!1),ke(Ce(i),"checkEdgesEventsFrame",null),ke(Ce(i),"nodePrograms",{}),ke(Ce(i),"nodeHoverPrograms",{}),ke(Ce(i),"edgePrograms",{}),i.settings=exe(a),Jb(i.settings),Kbe(n),!(r instanceof HTMLElement))throw new Error("Sigma: container should be an html element.");i.graph=n,i.container=r,i.createWebGLContext("edges",{picking:a.enableEdgeEvents}),i.createCanvasContext("edgeLabels"),i.createWebGLContext("nodes",{picking:!0}),i.createCanvasContext("labels"),i.createCanvasContext("hovers"),i.createWebGLContext("hoverNodes"),i.createCanvasContext("mouse",{style:{touchAction:"none",userSelect:"none"}}),i.resize();for(var o in i.settings.nodeProgramClasses)i.registerNodeProgram(o,i.settings.nodeProgramClasses[o],i.settings.nodeHoverProgramClasses[o]);for(var l in i.settings.edgeProgramClasses)i.registerEdgeProgram(l,i.settings.edgeProgramClasses[l]);return i.camera=new RA,i.bindCameraHandlers(),i.mouseCaptor=new axe(i.elements.mouse,Ce(i)),i.mouseCaptor.setSettings(i.settings),i.touchCaptor=new lxe(i.elements.mouse,Ce(i)),i.touchCaptor.setSettings(i.settings),i.bindEventHandlers(),i.bindGraphHandlers(),i.handleSettingsUpdate(),i.refresh(),i}return or(t,[{key:"registerNodeProgram",value:function(r,i,a){return this.nodePrograms[r]&&this.nodePrograms[r].kill(),this.nodeHoverPrograms[r]&&this.nodeHoverPrograms[r].kill(),this.nodePrograms[r]=new i(this.webGLContexts.nodes,this.frameBuffers.nodes,this),this.nodeHoverPrograms[r]=new(a||i)(this.webGLContexts.hoverNodes,null,this),this}},{key:"registerEdgeProgram",value:function(r,i){return this.edgePrograms[r]&&this.edgePrograms[r].kill(),this.edgePrograms[r]=new i(this.webGLContexts.edges,this.frameBuffers.edges,this),this}},{key:"unregisterNodeProgram",value:function(r){if(this.nodePrograms[r]){var i=this.nodePrograms,a=i[r],o=ex(i,[r].map(Fh));a.kill(),this.nodePrograms=o}if(this.nodeHoverPrograms[r]){var l=this.nodeHoverPrograms,c=l[r],f=ex(l,[r].map(Fh));c.kill(),this.nodePrograms=f}return this}},{key:"unregisterEdgeProgram",value:function(r){if(this.edgePrograms[r]){var i=this.edgePrograms,a=i[r],o=ex(i,[r].map(Fh));a.kill(),this.edgePrograms=o}return this}},{key:"resetWebGLTexture",value:function(r){var i=this.webGLContexts[r],a=this.frameBuffers[r],o=this.textures[r];o&&i.deleteTexture(o);var l=i.createTexture();return i.bindFramebuffer(i.FRAMEBUFFER,a),i.bindTexture(i.TEXTURE_2D,l),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,this.width,this.height,0,i.RGBA,i.UNSIGNED_BYTE,null),i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,l,0),this.textures[r]=l,this}},{key:"bindCameraHandlers",value:function(){var r=this;return this.activeListeners.camera=function(){r.scheduleRender()},this.camera.on("updated",this.activeListeners.camera),this}},{key:"unbindCameraHandlers",value:function(){return this.camera.removeListener("updated",this.activeListeners.camera),this}},{key:"getNodeAtPosition",value:function(r){var i=r.x,a=r.y,o=pA(this.webGLContexts.nodes,this.frameBuffers.nodes,i,a,this.pixelRatio,this.pickingDownSizingRatio),l=mA.apply(void 0,NA(o)),c=this.itemIDsIndex[l];return c&&c.type==="node"?c.id:null}},{key:"bindEventHandlers",value:function(){var r=this;this.activeListeners.handleResize=function(){r.scheduleRefresh()},window.addEventListener("resize",this.activeListeners.handleResize),this.activeListeners.handleMove=function(a){var o=dh(a),l={event:o,preventSigmaDefault:function(){o.preventSigmaDefault()}},c=r.getNodeAtPosition(o);if(c&&r.hoveredNode!==c&&!r.nodeDataCache[c].hidden){r.hoveredNode&&r.emit("leaveNode",$e($e({},l),{},{node:r.hoveredNode})),r.hoveredNode=c,r.emit("enterNode",$e($e({},l),{},{node:c})),r.scheduleHighlightedNodesRender();return}if(r.hoveredNode&&r.getNodeAtPosition(o)!==r.hoveredNode){var f=r.hoveredNode;r.hoveredNode=null,r.emit("leaveNode",$e($e({},l),{},{node:f})),r.scheduleHighlightedNodesRender();return}if(r.settings.enableEdgeEvents){var d=r.hoveredNode?null:r.getEdgeAtPoint(l.event.x,l.event.y);d!==r.hoveredEdge&&(r.hoveredEdge&&r.emit("leaveEdge",$e($e({},l),{},{edge:r.hoveredEdge})),d&&r.emit("enterEdge",$e($e({},l),{},{edge:d})),r.hoveredEdge=d)}},this.activeListeners.handleMoveBody=function(a){var o=dh(a);r.emit("moveBody",{event:o,preventSigmaDefault:function(){o.preventSigmaDefault()}})},this.activeListeners.handleLeave=function(a){var o=dh(a),l={event:o,preventSigmaDefault:function(){o.preventSigmaDefault()}};r.hoveredNode&&(r.emit("leaveNode",$e($e({},l),{},{node:r.hoveredNode})),r.scheduleHighlightedNodesRender()),r.settings.enableEdgeEvents&&r.hoveredEdge&&(r.emit("leaveEdge",$e($e({},l),{},{edge:r.hoveredEdge})),r.scheduleHighlightedNodesRender()),r.emit("leaveStage",$e({},l))},this.activeListeners.handleEnter=function(a){var o=dh(a),l={event:o,preventSigmaDefault:function(){o.preventSigmaDefault()}};r.emit("enterStage",$e({},l))};var i=function(o){return function(l){var c=dh(l),f={event:c,preventSigmaDefault:function(){c.preventSigmaDefault()}},d=r.getNodeAtPosition(c);if(d)return r.emit("".concat(o,"Node"),$e($e({},f),{},{node:d}));if(r.settings.enableEdgeEvents){var m=r.getEdgeAtPoint(c.x,c.y);if(m)return r.emit("".concat(o,"Edge"),$e($e({},f),{},{edge:m}))}return r.emit("".concat(o,"Stage"),f)}};return this.activeListeners.handleClick=i("click"),this.activeListeners.handleRightClick=i("rightClick"),this.activeListeners.handleDoubleClick=i("doubleClick"),this.activeListeners.handleWheel=i("wheel"),this.activeListeners.handleDown=i("down"),this.activeListeners.handleUp=i("up"),this.mouseCaptor.on("mousemove",this.activeListeners.handleMove),this.mouseCaptor.on("mousemovebody",this.activeListeners.handleMoveBody),this.mouseCaptor.on("click",this.activeListeners.handleClick),this.mouseCaptor.on("rightClick",this.activeListeners.handleRightClick),this.mouseCaptor.on("doubleClick",this.activeListeners.handleDoubleClick),this.mouseCaptor.on("wheel",this.activeListeners.handleWheel),this.mouseCaptor.on("mousedown",this.activeListeners.handleDown),this.mouseCaptor.on("mouseup",this.activeListeners.handleUp),this.mouseCaptor.on("mouseleave",this.activeListeners.handleLeave),this.mouseCaptor.on("mouseenter",this.activeListeners.handleEnter),this.touchCaptor.on("touchdown",this.activeListeners.handleDown),this.touchCaptor.on("touchdown",this.activeListeners.handleMove),this.touchCaptor.on("touchup",this.activeListeners.handleUp),this.touchCaptor.on("touchmove",this.activeListeners.handleMove),this.touchCaptor.on("tap",this.activeListeners.handleClick),this.touchCaptor.on("doubletap",this.activeListeners.handleDoubleClick),this.touchCaptor.on("touchmove",this.activeListeners.handleMoveBody),this}},{key:"bindGraphHandlers",value:function(){var r=this,i=this.graph,a=new Set(["x","y","zIndex","type"]);return this.activeListeners.eachNodeAttributesUpdatedGraphUpdate=function(o){var l,c=(l=o.hints)===null||l===void 0?void 0:l.attributes;r.graph.forEachNode(function(d){return r.updateNode(d)});var f=!c||c.some(function(d){return a.has(d)});r.refresh({partialGraph:{nodes:i.nodes()},skipIndexation:!f,schedule:!0})},this.activeListeners.eachEdgeAttributesUpdatedGraphUpdate=function(o){var l,c=(l=o.hints)===null||l===void 0?void 0:l.attributes;r.graph.forEachEdge(function(d){return r.updateEdge(d)});var f=c&&["zIndex","type"].some(function(d){return c==null?void 0:c.includes(d)});r.refresh({partialGraph:{edges:i.edges()},skipIndexation:!f,schedule:!0})},this.activeListeners.addNodeGraphUpdate=function(o){var l=o.key;r.addNode(l),r.refresh({partialGraph:{nodes:[l]},skipIndexation:!1,schedule:!0})},this.activeListeners.updateNodeGraphUpdate=function(o){var l=o.key;r.refresh({partialGraph:{nodes:[l]},skipIndexation:!1,schedule:!0})},this.activeListeners.dropNodeGraphUpdate=function(o){var l=o.key;r.removeNode(l),r.refresh({schedule:!0})},this.activeListeners.addEdgeGraphUpdate=function(o){var l=o.key;r.addEdge(l),r.refresh({partialGraph:{edges:[l]},schedule:!0})},this.activeListeners.updateEdgeGraphUpdate=function(o){var l=o.key;r.refresh({partialGraph:{edges:[l]},skipIndexation:!1,schedule:!0})},this.activeListeners.dropEdgeGraphUpdate=function(o){var l=o.key;r.removeEdge(l),r.refresh({schedule:!0})},this.activeListeners.clearEdgesGraphUpdate=function(){r.clearEdgeState(),r.clearEdgeIndices(),r.refresh({schedule:!0})},this.activeListeners.clearGraphUpdate=function(){r.clearEdgeState(),r.clearNodeState(),r.clearEdgeIndices(),r.clearNodeIndices(),r.refresh({schedule:!0})},i.on("nodeAdded",this.activeListeners.addNodeGraphUpdate),i.on("nodeDropped",this.activeListeners.dropNodeGraphUpdate),i.on("nodeAttributesUpdated",this.activeListeners.updateNodeGraphUpdate),i.on("eachNodeAttributesUpdated",this.activeListeners.eachNodeAttributesUpdatedGraphUpdate),i.on("edgeAdded",this.activeListeners.addEdgeGraphUpdate),i.on("edgeDropped",this.activeListeners.dropEdgeGraphUpdate),i.on("edgeAttributesUpdated",this.activeListeners.updateEdgeGraphUpdate),i.on("eachEdgeAttributesUpdated",this.activeListeners.eachEdgeAttributesUpdatedGraphUpdate),i.on("edgesCleared",this.activeListeners.clearEdgesGraphUpdate),i.on("cleared",this.activeListeners.clearGraphUpdate),this}},{key:"unbindGraphHandlers",value:function(){var r=this.graph;r.removeListener("nodeAdded",this.activeListeners.addNodeGraphUpdate),r.removeListener("nodeDropped",this.activeListeners.dropNodeGraphUpdate),r.removeListener("nodeAttributesUpdated",this.activeListeners.updateNodeGraphUpdate),r.removeListener("eachNodeAttributesUpdated",this.activeListeners.eachNodeAttributesUpdatedGraphUpdate),r.removeListener("edgeAdded",this.activeListeners.addEdgeGraphUpdate),r.removeListener("edgeDropped",this.activeListeners.dropEdgeGraphUpdate),r.removeListener("edgeAttributesUpdated",this.activeListeners.updateEdgeGraphUpdate),r.removeListener("eachEdgeAttributesUpdated",this.activeListeners.eachEdgeAttributesUpdatedGraphUpdate),r.removeListener("edgesCleared",this.activeListeners.clearEdgesGraphUpdate),r.removeListener("cleared",this.activeListeners.clearGraphUpdate)}},{key:"getEdgeAtPoint",value:function(r,i){var a=pA(this.webGLContexts.edges,this.frameBuffers.edges,r,i,this.pixelRatio,this.pickingDownSizingRatio),o=mA.apply(void 0,NA(a)),l=this.itemIDsIndex[o];return l&&l.type==="edge"?l.id:null}},{key:"process",value:function(){var r=this;this.emit("beforeProcess");var i=this.graph,a=this.settings,o=this.getDimensions();if(this.nodeExtent=Wbe(this.graph),!this.settings.autoRescale){var l=o.width,c=o.height,f=this.nodeExtent,d=f.x,m=f.y;this.nodeExtent={x:[(d[0]+d[1])/2-l/2,(d[0]+d[1])/2+l/2],y:[(m[0]+m[1])/2-c/2,(m[0]+m[1])/2+c/2]}}this.normalizationFunction=AA(this.customBBox||this.nodeExtent);var p=new RA,g=hh(p.getState(),o,this.getGraphDimensions(),this.getStagePadding());this.labelGrid.resizeAndClear(o,a.labelGridCellSize);for(var y={},x={},k={},w={},C=1,S=i.nodes(),T=0,z=S.length;T<z;T++){var A=S[T],L=this.nodeDataCache[A],G=i.getNodeAttributes(A);L.x=G.x,L.y=G.y,this.normalizationFunction.applyTo(L),typeof L.label=="string"&&!L.hidden&&this.labelGrid.add(A,L.size,this.framedGraphToViewport(L,{matrix:g})),y[L.type]=(y[L.type]||0)+1}this.labelGrid.organize();for(var H in this.nodePrograms){if(!no.call(this.nodePrograms,H))throw new Error('Sigma: could not find a suitable program for node type "'.concat(H,'"!'));this.nodePrograms[H].reallocate(y[H]||0),y[H]=0}this.settings.zIndex&&this.nodeZExtent[0]!==this.nodeZExtent[1]&&(S=CA(this.nodeZExtent,function(ue){return r.nodeDataCache[ue].zIndex},S));for(var q=0,V=S.length;q<V;q++){var W=S[q];x[W]=C,w[x[W]]={type:"node",id:W},C++;var I=this.nodeDataCache[W];this.addNodeToProgram(W,x[W],y[I.type]++)}for(var B={},D=i.edges(),j=0,N=D.length;j<N;j++){var F=D[j],Z=this.edgeDataCache[F];B[Z.type]=(B[Z.type]||0)+1}this.settings.zIndex&&this.edgeZExtent[0]!==this.edgeZExtent[1]&&(D=CA(this.edgeZExtent,function(ue){return r.edgeDataCache[ue].zIndex},D));for(var O in this.edgePrograms){if(!no.call(this.edgePrograms,O))throw new Error('Sigma: could not find a suitable program for edge type "'.concat(O,'"!'));this.edgePrograms[O].reallocate(B[O]||0),B[O]=0}for(var U=0,K=D.length;U<K;U++){var $=D[U];k[$]=C,w[k[$]]={type:"edge",id:$},C++;var ie=this.edgeDataCache[$];this.addEdgeToProgram($,k[$],B[ie.type]++)}return this.itemIDsIndex=w,this.nodeIndices=x,this.edgeIndices=k,this.emit("afterProcess"),this}},{key:"handleSettingsUpdate",value:function(r){var i=this,a=this.settings;if(this.camera.minRatio=a.minCameraRatio,this.camera.maxRatio=a.maxCameraRatio,this.camera.enabledZooming=a.enableCameraZooming,this.camera.enabledPanning=a.enableCameraPanning,this.camera.enabledRotation=a.enableCameraRotation,a.cameraPanBoundaries?this.camera.clean=function(d){return i.cleanCameraState(d,a.cameraPanBoundaries&&Kw(a.cameraPanBoundaries)==="object"?a.cameraPanBoundaries:{})}:this.camera.clean=null,this.camera.setState(this.camera.validateState(this.camera.getState())),r){if(r.edgeProgramClasses!==a.edgeProgramClasses){for(var o in a.edgeProgramClasses)a.edgeProgramClasses[o]!==r.edgeProgramClasses[o]&&this.registerEdgeProgram(o,a.edgeProgramClasses[o]);for(var l in r.edgeProgramClasses)a.edgeProgramClasses[l]||this.unregisterEdgeProgram(l)}if(r.nodeProgramClasses!==a.nodeProgramClasses||r.nodeHoverProgramClasses!==a.nodeHoverProgramClasses){for(var c in a.nodeProgramClasses)(a.nodeProgramClasses[c]!==r.nodeProgramClasses[c]||a.nodeHoverProgramClasses[c]!==r.nodeHoverProgramClasses[c])&&this.registerNodeProgram(c,a.nodeProgramClasses[c],a.nodeHoverProgramClasses[c]);for(var f in r.nodeProgramClasses)a.nodeProgramClasses[f]||this.unregisterNodeProgram(f)}}return this.mouseCaptor.setSettings(this.settings),this.touchCaptor.setSettings(this.settings),this}},{key:"cleanCameraState",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.tolerance,o=a===void 0?0:a,l=i.boundaries,c=$e({},r),f=l||this.nodeExtent,d=Nc(f.x,2),m=d[0],p=d[1],g=Nc(f.y,2),y=g[0],x=g[1],k=[this.graphToViewport({x:m,y},{cameraState:r}),this.graphToViewport({x:p,y},{cameraState:r}),this.graphToViewport({x:m,y:x},{cameraState:r}),this.graphToViewport({x:p,y:x},{cameraState:r})],w=1/0,C=-1/0,S=1/0,T=-1/0;k.forEach(function(B){var D=B.x,j=B.y;w=Math.min(w,D),C=Math.max(C,D),S=Math.min(S,j),T=Math.max(T,j)});var z=C-w,A=T-S,L=this.getDimensions(),G=L.width,H=L.height,q=0,V=0;if(z>=G?C<G-o?q=C-(G-o):w>o&&(q=w-o):C>G+o?q=C-(G+o):w<-o&&(q=w+o),A>=H?T<H-o?V=T-(H-o):S>o&&(V=S-o):T>H+o?V=T-(H+o):S<-o&&(V=S+o),q||V){var W=this.viewportToFramedGraph({x:0,y:0},{cameraState:r}),I=this.viewportToFramedGraph({x:q,y:V},{cameraState:r});q=I.x-W.x,V=I.y-W.y,c.x+=q,c.y+=V}return c}},{key:"renderLabels",value:function(){if(!this.settings.renderLabels)return this;var r=this.camera.getState(),i=this.labelGrid.getLabelsToDisplay(r.ratio,this.settings.labelDensity);jA(i,this.nodesWithForcedLabels),this.displayedNodeLabels=new Set;for(var a=this.canvasContexts.labels,o=0,l=i.length;o<l;o++){var c=i[o],f=this.nodeDataCache[c];if(!this.displayedNodeLabels.has(c)&&!f.hidden){var d=this.framedGraphToViewport(f),m=d.x,p=d.y,g=this.scaleSize(f.size);if(!(!f.forceLabel&&g<this.settings.labelRenderedSizeThreshold)&&!(m<-MA||m>this.width+MA||p<-OA||p>this.height+OA)){this.displayedNodeLabels.add(c);var y=this.settings.defaultDrawNodeLabel,x=this.nodePrograms[f.type],k=(x==null?void 0:x.drawLabel)||y;k(a,$e($e({key:c},f),{},{size:g,x:m,y:p}),this.settings)}}}return this}},{key:"renderEdgeLabels",value:function(){if(!this.settings.renderEdgeLabels)return this;var r=this.canvasContexts.edgeLabels;r.clearRect(0,0,this.width,this.height);var i=dxe({graph:this.graph,hoveredNode:this.hoveredNode,displayedNodeLabels:this.displayedNodeLabels,highlightedNodes:this.highlightedNodes});jA(i,this.edgesWithForcedLabels);for(var a=new Set,o=0,l=i.length;o<l;o++){var c=i[o],f=this.graph.extremities(c),d=this.nodeDataCache[f[0]],m=this.nodeDataCache[f[1]],p=this.edgeDataCache[c];if(!a.has(c)&&!(p.hidden||d.hidden||m.hidden)){var g=this.settings.defaultDrawEdgeLabel,y=this.edgePrograms[p.type],x=(y==null?void 0:y.drawLabel)||g;x(r,$e($e({key:c},p),{},{size:this.scaleSize(p.size)}),$e($e($e({key:f[0]},d),this.framedGraphToViewport(d)),{},{size:this.scaleSize(d.size)}),$e($e($e({key:f[1]},m),this.framedGraphToViewport(m)),{},{size:this.scaleSize(m.size)}),this.settings),a.add(c)}}return this.displayedEdgeLabels=a,this}},{key:"renderHighlightedNodes",value:function(){var r=this,i=this.canvasContexts.hovers;i.clearRect(0,0,this.width,this.height);var a=function(g){var y=r.nodeDataCache[g],x=r.framedGraphToViewport(y),k=x.x,w=x.y,C=r.scaleSize(y.size),S=r.settings.defaultDrawNodeHover,T=r.nodePrograms[y.type],z=(T==null?void 0:T.drawHover)||S;z(i,$e($e({key:g},y),{},{size:C,x:k,y:w}),r.settings)},o=[];this.hoveredNode&&!this.nodeDataCache[this.hoveredNode].hidden&&o.push(this.hoveredNode),this.highlightedNodes.forEach(function(p){p!==r.hoveredNode&&o.push(p)}),o.forEach(function(p){return a(p)});var l={};o.forEach(function(p){var g=r.nodeDataCache[p].type;l[g]=(l[g]||0)+1});for(var c in this.nodeHoverPrograms)this.nodeHoverPrograms[c].reallocate(l[c]||0),l[c]=0;o.forEach(function(p){var g=r.nodeDataCache[p];r.nodeHoverPrograms[g.type].process(0,l[g.type]++,g)}),this.webGLContexts.hoverNodes.clear(this.webGLContexts.hoverNodes.COLOR_BUFFER_BIT);var f=this.getRenderParams();for(var d in this.nodeHoverPrograms){var m=this.nodeHoverPrograms[d];m.render(f)}}},{key:"scheduleHighlightedNodesRender",value:function(){var r=this;this.renderHighlightedNodesFrame||this.renderFrame||(this.renderHighlightedNodesFrame=requestAnimationFrame(function(){r.renderHighlightedNodesFrame=null,r.renderHighlightedNodes(),r.renderEdgeLabels()}))}},{key:"render",value:function(){var r=this;this.emit("beforeRender");var i=function(){return r.emit("afterRender"),r};if(this.renderFrame&&(cancelAnimationFrame(this.renderFrame),this.renderFrame=null),this.resize(),this.needToProcess&&this.process(),this.needToProcess=!1,this.clear(),this.pickingLayers.forEach(function(k){return r.resetWebGLTexture(k)}),!this.graph.order)return i();var a=this.mouseCaptor,o=this.camera.isAnimated()||a.isMoving||a.draggedEvents||a.currentWheelDirection,l=this.camera.getState(),c=this.getDimensions(),f=this.getGraphDimensions(),d=this.getStagePadding();this.matrix=hh(l,c,f,d),this.invMatrix=hh(l,c,f,d,!0),this.correctionRatio=Ybe(this.matrix,l,c),this.graphToViewportRatio=this.getGraphToViewportRatio();var m=this.getRenderParams();for(var p in this.nodePrograms){var g=this.nodePrograms[p];g.render(m)}if(!this.settings.hideEdgesOnMove||!o)for(var y in this.edgePrograms){var x=this.edgePrograms[y];x.render(m)}return this.settings.hideLabelsOnMove&&o||(this.renderLabels(),this.renderEdgeLabels(),this.renderHighlightedNodes()),i()}},{key:"addNode",value:function(r){var i=Object.assign({},this.graph.getNodeAttributes(r));this.settings.nodeReducer&&(i=this.settings.nodeReducer(r,i));var a=mxe(this.settings,r,i);this.nodeDataCache[r]=a,this.nodesWithForcedLabels.delete(r),a.forceLabel&&!a.hidden&&this.nodesWithForcedLabels.add(r),this.highlightedNodes.delete(r),a.highlighted&&!a.hidden&&this.highlightedNodes.add(r),this.settings.zIndex&&(a.zIndex<this.nodeZExtent[0]&&(this.nodeZExtent[0]=a.zIndex),a.zIndex>this.nodeZExtent[1]&&(this.nodeZExtent[1]=a.zIndex))}},{key:"updateNode",value:function(r){this.addNode(r);var i=this.nodeDataCache[r];this.normalizationFunction.applyTo(i)}},{key:"removeNode",value:function(r){delete this.nodeDataCache[r],delete this.nodeProgramIndex[r],this.highlightedNodes.delete(r),this.hoveredNode===r&&(this.hoveredNode=null),this.nodesWithForcedLabels.delete(r)}},{key:"addEdge",value:function(r){var i=Object.assign({},this.graph.getEdgeAttributes(r));this.settings.edgeReducer&&(i=this.settings.edgeReducer(r,i));var a=pxe(this.settings,r,i);this.edgeDataCache[r]=a,this.edgesWithForcedLabels.delete(r),a.forceLabel&&!a.hidden&&this.edgesWithForcedLabels.add(r),this.settings.zIndex&&(a.zIndex<this.edgeZExtent[0]&&(this.edgeZExtent[0]=a.zIndex),a.zIndex>this.edgeZExtent[1]&&(this.edgeZExtent[1]=a.zIndex))}},{key:"updateEdge",value:function(r){this.addEdge(r)}},{key:"removeEdge",value:function(r){delete this.edgeDataCache[r],delete this.edgeProgramIndex[r],this.hoveredEdge===r&&(this.hoveredEdge=null),this.edgesWithForcedLabels.delete(r)}},{key:"clearNodeIndices",value:function(){this.labelGrid=new LA,this.nodeExtent={x:[0,1],y:[0,1]},this.nodeDataCache={},this.edgeProgramIndex={},this.nodesWithForcedLabels=new Set,this.nodeZExtent=[1/0,-1/0]}},{key:"clearEdgeIndices",value:function(){this.edgeDataCache={},this.edgeProgramIndex={},this.edgesWithForcedLabels=new Set,this.edgeZExtent=[1/0,-1/0]}},{key:"clearIndices",value:function(){this.clearEdgeIndices(),this.clearNodeIndices()}},{key:"clearNodeState",value:function(){this.displayedNodeLabels=new Set,this.highlightedNodes=new Set,this.hoveredNode=null}},{key:"clearEdgeState",value:function(){this.displayedEdgeLabels=new Set,this.highlightedNodes=new Set,this.hoveredEdge=null}},{key:"clearState",value:function(){this.clearEdgeState(),this.clearNodeState()}},{key:"addNodeToProgram",value:function(r,i,a){var o=this.nodeDataCache[r],l=this.nodePrograms[o.type];if(!l)throw new Error('Sigma: could not find a suitable program for node type "'.concat(o.type,'"!'));l.process(i,a,o),this.nodeProgramIndex[r]=a}},{key:"addEdgeToProgram",value:function(r,i,a){var o=this.edgeDataCache[r],l=this.edgePrograms[o.type];if(!l)throw new Error('Sigma: could not find a suitable program for edge type "'.concat(o.type,'"!'));var c=this.graph.extremities(r),f=this.nodeDataCache[c[0]],d=this.nodeDataCache[c[1]];l.process(i,a,f,d,o),this.edgeProgramIndex[r]=a}},{key:"getRenderParams",value:function(){return{matrix:this.matrix,invMatrix:this.invMatrix,width:this.width,height:this.height,pixelRatio:this.pixelRatio,zoomRatio:this.camera.ratio,cameraAngle:this.camera.angle,sizeRatio:1/this.scaleSize(),correctionRatio:this.correctionRatio,downSizingRatio:this.pickingDownSizingRatio,minEdgeThickness:this.settings.minEdgeThickness,antiAliasingFeather:this.settings.antiAliasingFeather}}},{key:"getStagePadding",value:function(){var r=this.settings,i=r.stagePadding,a=r.autoRescale;return a&&i||0}},{key:"createLayer",value:function(r,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.elements[r])throw new Error('Sigma: a layer named "'.concat(r,'" already exists'));var o=Zbe(i,{position:"absolute"},{class:"sigma-".concat(r)});return a.style&&Object.assign(o.style,a.style),this.elements[r]=o,"beforeLayer"in a&&a.beforeLayer?this.elements[a.beforeLayer].before(o):"afterLayer"in a&&a.afterLayer?this.elements[a.afterLayer].after(o):this.container.appendChild(o),o}},{key:"createCanvas",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.createLayer(r,"canvas",i)}},{key:"createCanvasContext",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.createCanvas(r,i),o={preserveDrawingBuffer:!1,antialias:!1};return this.canvasContexts[r]=a.getContext("2d",o),this}},{key:"createWebGLContext",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=(i==null?void 0:i.canvas)||this.createCanvas(r,i);i.hidden&&a.remove();var o=$e({preserveDrawingBuffer:!1,antialias:!1},i),l;l=a.getContext("webgl2",o),l||(l=a.getContext("webgl",o)),l||(l=a.getContext("experimental-webgl",o));var c=l;if(this.webGLContexts[r]=c,c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA),i.picking){this.pickingLayers.add(r);var f=c.createFramebuffer();if(!f)throw new Error("Sigma: cannot create a new frame buffer for layer ".concat(r));this.frameBuffers[r]=f}return c}},{key:"killLayer",value:function(r){var i=this.elements[r];if(!i)throw new Error("Sigma: cannot kill layer ".concat(r,", which does not exist"));if(this.webGLContexts[r]){var a,o=this.webGLContexts[r];(a=o.getExtension("WEBGL_lose_context"))===null||a===void 0||a.loseContext(),delete this.webGLContexts[r]}else this.canvasContexts[r]&&delete this.canvasContexts[r];return i.remove(),delete this.elements[r],this}},{key:"getCamera",value:function(){return this.camera}},{key:"setCamera",value:function(r){this.unbindCameraHandlers(),this.camera=r,this.bindCameraHandlers()}},{key:"getContainer",value:function(){return this.container}},{key:"getGraph",value:function(){return this.graph}},{key:"setGraph",value:function(r){r!==this.graph&&(this.hoveredNode&&!r.hasNode(this.hoveredNode)&&(this.hoveredNode=null),this.hoveredEdge&&!r.hasEdge(this.hoveredEdge)&&(this.hoveredEdge=null),this.unbindGraphHandlers(),this.checkEdgesEventsFrame!==null&&(cancelAnimationFrame(this.checkEdgesEventsFrame),this.checkEdgesEventsFrame=null),this.graph=r,this.bindGraphHandlers(),this.refresh())}},{key:"getMouseCaptor",value:function(){return this.mouseCaptor}},{key:"getTouchCaptor",value:function(){return this.touchCaptor}},{key:"getDimensions",value:function(){return{width:this.width,height:this.height}}},{key:"getGraphDimensions",value:function(){var r=this.customBBox||this.nodeExtent;return{width:r.x[1]-r.x[0]||1,height:r.y[1]-r.y[0]||1}}},{key:"getNodeDisplayData",value:function(r){var i=this.nodeDataCache[r];return i?Object.assign({},i):void 0}},{key:"getEdgeDisplayData",value:function(r){var i=this.edgeDataCache[r];return i?Object.assign({},i):void 0}},{key:"getNodeDisplayedLabels",value:function(){return new Set(this.displayedNodeLabels)}},{key:"getEdgeDisplayedLabels",value:function(){return new Set(this.displayedEdgeLabels)}},{key:"getSettings",value:function(){return $e({},this.settings)}},{key:"getSetting",value:function(r){return this.settings[r]}},{key:"setSetting",value:function(r,i){var a=$e({},this.settings);return this.settings[r]=i,Jb(this.settings),this.handleSettingsUpdate(a),this.scheduleRefresh(),this}},{key:"updateSetting",value:function(r,i){return this.setSetting(r,i(this.settings[r])),this}},{key:"setSettings",value:function(r){var i=$e({},this.settings);return this.settings=$e($e({},this.settings),r),Jb(this.settings),this.handleSettingsUpdate(i),this.scheduleRefresh(),this}},{key:"resize",value:function(r){var i=this.width,a=this.height;if(this.width=this.container.offsetWidth,this.height=this.container.offsetHeight,this.pixelRatio=TA(),this.width===0)if(this.settings.allowInvalidContainer)this.width=1;else throw new Error("Sigma: Container has no width. You can set the allowInvalidContainer setting to true to stop seeing this error.");if(this.height===0)if(this.settings.allowInvalidContainer)this.height=1;else throw new Error("Sigma: Container has no height. You can set the allowInvalidContainer setting to true to stop seeing this error.");if(!r&&i===this.width&&a===this.height)return this;for(var o in this.elements){var l=this.elements[o];l.style.width=this.width+"px",l.style.height=this.height+"px"}for(var c in this.canvasContexts)this.elements[c].setAttribute("width",this.width*this.pixelRatio+"px"),this.elements[c].setAttribute("height",this.height*this.pixelRatio+"px"),this.pixelRatio!==1&&this.canvasContexts[c].scale(this.pixelRatio,this.pixelRatio);for(var f in this.webGLContexts){this.elements[f].setAttribute("width",this.width*this.pixelRatio+"px"),this.elements[f].setAttribute("height",this.height*this.pixelRatio+"px");var d=this.webGLContexts[f];if(d.viewport(0,0,this.width*this.pixelRatio,this.height*this.pixelRatio),this.pickingLayers.has(f)){var m=this.textures[f];m&&d.deleteTexture(m)}}return this.emit("resize"),this}},{key:"clear",value:function(){return this.emit("beforeClear"),this.webGLContexts.nodes.bindFramebuffer(WebGLRenderingContext.FRAMEBUFFER,null),this.webGLContexts.nodes.clear(WebGLRenderingContext.COLOR_BUFFER_BIT),this.webGLContexts.edges.bindFramebuffer(WebGLRenderingContext.FRAMEBUFFER,null),this.webGLContexts.edges.clear(WebGLRenderingContext.COLOR_BUFFER_BIT),this.webGLContexts.hoverNodes.clear(WebGLRenderingContext.COLOR_BUFFER_BIT),this.canvasContexts.labels.clearRect(0,0,this.width,this.height),this.canvasContexts.hovers.clearRect(0,0,this.width,this.height),this.canvasContexts.edgeLabels.clearRect(0,0,this.width,this.height),this.emit("afterClear"),this}},{key:"refresh",value:function(r){var i=this,a=(r==null?void 0:r.skipIndexation)!==void 0?r==null?void 0:r.skipIndexation:!1,o=(r==null?void 0:r.schedule)!==void 0?r.schedule:!1,l=!r||!r.partialGraph;if(l)this.clearEdgeIndices(),this.clearNodeIndices(),this.graph.forEachNode(function(T){return i.addNode(T)}),this.graph.forEachEdge(function(T){return i.addEdge(T)});else{for(var c,f,d=((c=r.partialGraph)===null||c===void 0?void 0:c.nodes)||[],m=0,p=(d==null?void 0:d.length)||0;m<p;m++){var g=d[m];if(this.updateNode(g),a){var y=this.nodeProgramIndex[g];if(y===void 0)throw new Error('Sigma: node "'.concat(g,`" can't be repaint`));this.addNodeToProgram(g,this.nodeIndices[g],y)}}for(var x=(r==null||(f=r.partialGraph)===null||f===void 0?void 0:f.edges)||[],k=0,w=x.length;k<w;k++){var C=x[k];if(this.updateEdge(C),a){var S=this.edgeProgramIndex[C];if(S===void 0)throw new Error('Sigma: edge "'.concat(C,`" can't be repaint`));this.addEdgeToProgram(C,this.edgeIndices[C],S)}}}return(l||!a)&&(this.needToProcess=!0),o?this.scheduleRender():this.render(),this}},{key:"scheduleRender",value:function(){var r=this;return this.renderFrame||(this.renderFrame=requestAnimationFrame(function(){r.render()})),this}},{key:"scheduleRefresh",value:function(r){return this.refresh($e($e({},r),{},{schedule:!0}))}},{key:"getViewportZoomedState",value:function(r,i){var a=this.camera.getState(),o=a.ratio,l=a.angle,c=a.x,f=a.y,d=this.settings,m=d.minCameraRatio,p=d.maxCameraRatio;typeof p=="number"&&(i=Math.min(i,p)),typeof m=="number"&&(i=Math.max(i,m));var g=i/o,y={x:this.width/2,y:this.height/2},x=this.viewportToFramedGraph(r),k=this.viewportToFramedGraph(y);return{angle:l,x:(x.x-k.x)*(1-g)+c,y:(x.y-k.y)*(1-g)+f,ratio:i}}},{key:"viewRectangle",value:function(){var r=this.viewportToFramedGraph({x:0,y:0}),i=this.viewportToFramedGraph({x:this.width,y:0}),a=this.viewportToFramedGraph({x:0,y:this.height});return{x1:r.x,y1:r.y,x2:i.x,y2:i.y,height:i.y-a.y}}},{key:"framedGraphToViewport",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=!!i.cameraState||!!i.viewportDimensions||!!i.graphDimensions,o=i.matrix?i.matrix:a?hh(i.cameraState||this.camera.getState(),i.viewportDimensions||this.getDimensions(),i.graphDimensions||this.getGraphDimensions(),i.padding||this.getStagePadding()):this.matrix,l=Ww(o,r);return{x:(1+l.x)*this.width/2,y:(1-l.y)*this.height/2}}},{key:"viewportToFramedGraph",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=!!i.cameraState||!!i.viewportDimensions||!i.graphDimensions,o=i.matrix?i.matrix:a?hh(i.cameraState||this.camera.getState(),i.viewportDimensions||this.getDimensions(),i.graphDimensions||this.getGraphDimensions(),i.padding||this.getStagePadding(),!0):this.invMatrix,l=Ww(o,{x:r.x/this.width*2-1,y:1-r.y/this.height*2});return isNaN(l.x)&&(l.x=0),isNaN(l.y)&&(l.y=0),l}},{key:"viewportToGraph",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.normalizationFunction.inverse(this.viewportToFramedGraph(r,i))}},{key:"graphToViewport",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.framedGraphToViewport(this.normalizationFunction(r),i)}},{key:"getGraphToViewportRatio",value:function(){var r={x:0,y:0},i={x:1,y:1},a=Math.sqrt(Math.pow(r.x-i.x,2)+Math.pow(r.y-i.y,2)),o=this.graphToViewport(r),l=this.graphToViewport(i),c=Math.sqrt(Math.pow(o.x-l.x,2)+Math.pow(o.y-l.y,2));return c/a}},{key:"getBBox",value:function(){return this.nodeExtent}},{key:"getCustomBBox",value:function(){return this.customBBox}},{key:"setCustomBBox",value:function(r){return this.customBBox=r,this.scheduleRender(),this}},{key:"kill",value:function(){this.emit("kill"),this.removeAllListeners(),this.unbindCameraHandlers(),window.removeEventListener("resize",this.activeListeners.handleResize),this.mouseCaptor.kill(),this.touchCaptor.kill(),this.unbindGraphHandlers(),this.clearIndices(),this.clearState(),this.nodeDataCache={},this.edgeDataCache={},this.highlightedNodes.clear(),this.renderFrame&&(cancelAnimationFrame(this.renderFrame),this.renderFrame=null),this.renderHighlightedNodesFrame&&(cancelAnimationFrame(this.renderHighlightedNodesFrame),this.renderHighlightedNodesFrame=null);for(var r=this.container;r.firstChild;)r.removeChild(r.firstChild);this.canvasContexts={},this.webGLContexts={},this.elements={};for(var i in this.nodePrograms)this.nodePrograms[i].kill();for(var a in this.nodeHoverPrograms)this.nodeHoverPrograms[a].kill();for(var o in this.edgePrograms)this.edgePrograms[o].kill();this.nodePrograms={},this.nodeHoverPrograms={},this.edgePrograms={};for(var l in this.elements)this.killLayer(l)}},{key:"scaleSize",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.camera.ratio;return r/this.settings.zoomToSizeRatioFunction(i)*(this.getSetting("itemSizesReference")==="positions"?i*this.graphToViewportRatio:1)}},{key:"getCanvases",value:function(){var r={};for(var i in this.elements)this.elements[i]instanceof HTMLCanvasElement&&(r[i]=this.elements[i]);return r}}]),t})(RE),qO=_xe,ph={},DA;function gxe(){if(DA)return ph;DA=1;function e(r){return typeof r!="number"||isNaN(r)?1:r}function t(r,i){var a={},o=function(f){return typeof f>"u"?i:f};typeof i=="function"&&(o=i);var l=function(f){return o(f[r])},c=function(){return o(void 0)};return typeof r=="string"?(a.fromAttributes=l,a.fromGraph=function(f,d){return l(f.getNodeAttributes(d))},a.fromEntry=function(f,d){return l(d)}):typeof r=="function"?(a.fromAttributes=function(){throw new Error("graphology-utils/getters/createNodeValueGetter: irrelevant usage.")},a.fromGraph=function(f,d){return o(r(d,f.getNodeAttributes(d)))},a.fromEntry=function(f,d){return o(r(f,d))}):(a.fromAttributes=c,a.fromGraph=c,a.fromEntry=c),a}function n(r,i){var a={},o=function(f){return typeof f>"u"?i:f};typeof i=="function"&&(o=i);var l=function(f){return o(f[r])},c=function(){return o(void 0)};return typeof r=="string"?(a.fromAttributes=l,a.fromGraph=function(f,d){return l(f.getEdgeAttributes(d))},a.fromEntry=function(f,d){return l(d)},a.fromPartialEntry=a.fromEntry,a.fromMinimalEntry=a.fromEntry):typeof r=="function"?(a.fromAttributes=function(){throw new Error("graphology-utils/getters/createEdgeValueGetter: irrelevant usage.")},a.fromGraph=function(f,d){var m=f.extremities(d);return o(r(d,f.getEdgeAttributes(d),m[0],m[1],f.getNodeAttributes(m[0]),f.getNodeAttributes(m[1]),f.isUndirected(d)))},a.fromEntry=function(f,d,m,p,g,y,x){return o(r(f,d,m,p,g,y,x))},a.fromPartialEntry=function(f,d,m,p){return o(r(f,d,m,p))},a.fromMinimalEntry=function(f,d){return o(r(f,d))}):(a.fromAttributes=c,a.fromGraph=c,a.fromEntry=c,a.fromMinimalEntry=c),a}return ph.createNodeValueGetter=t,ph.createEdgeValueGetter=n,ph.createEdgeWeightGetter=function(r){return n(r,e)},ph}var tx,qA;function yxe(){if(qA)return tx;qA=1;var e=0,t=1,n=2,r=3,i=4,a=5,o=6,l=7,c=8,f=9,d=0,m=1,p=2,g=0,y=1,x=2,k=3,w=4,C=5,S=6,T=7,z=8,A=3,L=10,G=3,H=9,q=10;return tx=function(W,I,B){var D,j,N,F,Z,O,U,K,$,ie,ue=I.length,xe=B.length,we=W.adjustSizes,Pe=W.barnesHutTheta*W.barnesHutTheta,_e,Ae,je,he,tt,Ee,Ne,ce=[];for(N=0;N<ue;N+=L)I[N+i]=I[N+n],I[N+a]=I[N+r],I[N+n]=0,I[N+r]=0;if(W.outboundAttractionDistribution){for(_e=0,N=0;N<ue;N+=L)_e+=I[N+o];_e/=ue/L}if(W.barnesHutOptimize){var qe=1/0,mt=-1/0,Xt=1/0,Ft=-1/0,un,ti,ni;for(N=0;N<ue;N+=L)qe=Math.min(qe,I[N+e]),mt=Math.max(mt,I[N+e]),Xt=Math.min(Xt,I[N+t]),Ft=Math.max(Ft,I[N+t]);var Yt=mt-qe,Wi=Ft-Xt;for(Yt>Wi?(Xt-=(Yt-Wi)/2,Ft=Xt+Yt):(qe-=(Wi-Yt)/2,mt=qe+Wi),ce[0+g]=-1,ce[0+y]=(qe+mt)/2,ce[0+x]=(Xt+Ft)/2,ce[0+k]=Math.max(mt-qe,Ft-Xt),ce[0+w]=-1,ce[0+C]=-1,ce[0+S]=0,ce[0+T]=0,ce[0+z]=0,D=1,N=0;N<ue;N+=L)for(j=0,ni=A;;)if(ce[j+C]>=0){I[N+e]<ce[j+y]?I[N+t]<ce[j+x]?un=ce[j+C]:un=ce[j+C]+H:I[N+t]<ce[j+x]?un=ce[j+C]+H*2:un=ce[j+C]+H*3,ce[j+T]=(ce[j+T]*ce[j+S]+I[N+e]*I[N+o])/(ce[j+S]+I[N+o]),ce[j+z]=(ce[j+z]*ce[j+S]+I[N+t]*I[N+o])/(ce[j+S]+I[N+o]),ce[j+S]+=I[N+o],j=un;continue}else if(ce[j+g]<0){ce[j+g]=N;break}else{if(ce[j+C]=D*H,K=ce[j+k]/2,$=ce[j+C],ce[$+g]=-1,ce[$+y]=ce[j+y]-K,ce[$+x]=ce[j+x]-K,ce[$+k]=K,ce[$+w]=$+H,ce[$+C]=-1,ce[$+S]=0,ce[$+T]=0,ce[$+z]=0,$+=H,ce[$+g]=-1,ce[$+y]=ce[j+y]-K,ce[$+x]=ce[j+x]+K,ce[$+k]=K,ce[$+w]=$+H,ce[$+C]=-1,ce[$+S]=0,ce[$+T]=0,ce[$+z]=0,$+=H,ce[$+g]=-1,ce[$+y]=ce[j+y]+K,ce[$+x]=ce[j+x]-K,ce[$+k]=K,ce[$+w]=$+H,ce[$+C]=-1,ce[$+S]=0,ce[$+T]=0,ce[$+z]=0,$+=H,ce[$+g]=-1,ce[$+y]=ce[j+y]+K,ce[$+x]=ce[j+x]+K,ce[$+k]=K,ce[$+w]=ce[j+w],ce[$+C]=-1,ce[$+S]=0,ce[$+T]=0,ce[$+z]=0,D+=4,I[ce[j+g]+e]<ce[j+y]?I[ce[j+g]+t]<ce[j+x]?un=ce[j+C]:un=ce[j+C]+H:I[ce[j+g]+t]<ce[j+x]?un=ce[j+C]+H*2:un=ce[j+C]+H*3,ce[j+S]=I[ce[j+g]+o],ce[j+T]=I[ce[j+g]+e],ce[j+z]=I[ce[j+g]+t],ce[un+g]=ce[j+g],ce[j+g]=-1,I[N+e]<ce[j+y]?I[N+t]<ce[j+x]?ti=ce[j+C]:ti=ce[j+C]+H:I[N+t]<ce[j+x]?ti=ce[j+C]+H*2:ti=ce[j+C]+H*3,un===ti)if(ni--){j=un;continue}else{ni=A;break}ce[ti+g]=N;break}}if(W.barnesHutOptimize)for(Ae=W.scalingRatio,N=0;N<ue;N+=L)for(j=0;;)if(ce[j+C]>=0)if(Ee=Math.pow(I[N+e]-ce[j+T],2)+Math.pow(I[N+t]-ce[j+z],2),ie=ce[j+k],4*ie*ie/Ee<Pe){if(je=I[N+e]-ce[j+T],he=I[N+t]-ce[j+z],we===!0?Ee>0?(Ne=Ae*I[N+o]*ce[j+S]/Ee,I[N+n]+=je*Ne,I[N+r]+=he*Ne):Ee<0&&(Ne=-Ae*I[N+o]*ce[j+S]/Math.sqrt(Ee),I[N+n]+=je*Ne,I[N+r]+=he*Ne):Ee>0&&(Ne=Ae*I[N+o]*ce[j+S]/Ee,I[N+n]+=je*Ne,I[N+r]+=he*Ne),j=ce[j+w],j<0)break;continue}else{j=ce[j+C];continue}else{if(O=ce[j+g],O>=0&&O!==N&&(je=I[N+e]-I[O+e],he=I[N+t]-I[O+t],Ee=je*je+he*he,we===!0?Ee>0?(Ne=Ae*I[N+o]*I[O+o]/Ee,I[N+n]+=je*Ne,I[N+r]+=he*Ne):Ee<0&&(Ne=-Ae*I[N+o]*I[O+o]/Math.sqrt(Ee),I[N+n]+=je*Ne,I[N+r]+=he*Ne):Ee>0&&(Ne=Ae*I[N+o]*I[O+o]/Ee,I[N+n]+=je*Ne,I[N+r]+=he*Ne)),j=ce[j+w],j<0)break;continue}else for(Ae=W.scalingRatio,F=0;F<ue;F+=L)for(Z=0;Z<F;Z+=L)je=I[F+e]-I[Z+e],he=I[F+t]-I[Z+t],we===!0?(Ee=Math.sqrt(je*je+he*he)-I[F+c]-I[Z+c],Ee>0?(Ne=Ae*I[F+o]*I[Z+o]/Ee/Ee,I[F+n]+=je*Ne,I[F+r]+=he*Ne,I[Z+n]-=je*Ne,I[Z+r]-=he*Ne):Ee<0&&(Ne=100*Ae*I[F+o]*I[Z+o],I[F+n]+=je*Ne,I[F+r]+=he*Ne,I[Z+n]-=je*Ne,I[Z+r]-=he*Ne)):(Ee=Math.sqrt(je*je+he*he),Ee>0&&(Ne=Ae*I[F+o]*I[Z+o]/Ee/Ee,I[F+n]+=je*Ne,I[F+r]+=he*Ne,I[Z+n]-=je*Ne,I[Z+r]-=he*Ne));for($=W.gravity/W.scalingRatio,Ae=W.scalingRatio,N=0;N<ue;N+=L)Ne=0,je=I[N+e],he=I[N+t],Ee=Math.sqrt(Math.pow(je,2)+Math.pow(he,2)),W.strongGravityMode?Ee>0&&(Ne=Ae*I[N+o]*$):Ee>0&&(Ne=Ae*I[N+o]*$/Ee),I[N+n]-=je*Ne,I[N+r]-=he*Ne;for(Ae=1*(W.outboundAttractionDistribution?_e:1),U=0;U<xe;U+=G)F=B[U+d],Z=B[U+m],K=B[U+p],tt=Math.pow(K,W.edgeWeightInfluence),je=I[F+e]-I[Z+e],he=I[F+t]-I[Z+t],we===!0?(Ee=Math.sqrt(je*je+he*he)-I[F+c]-I[Z+c],W.linLogMode?W.outboundAttractionDistribution?Ee>0&&(Ne=-Ae*tt*Math.log(1+Ee)/Ee/I[F+o]):Ee>0&&(Ne=-Ae*tt*Math.log(1+Ee)/Ee):W.outboundAttractionDistribution?Ee>0&&(Ne=-Ae*tt/I[F+o]):Ee>0&&(Ne=-Ae*tt)):(Ee=Math.sqrt(Math.pow(je,2)+Math.pow(he,2)),W.linLogMode?W.outboundAttractionDistribution?Ee>0&&(Ne=-Ae*tt*Math.log(1+Ee)/Ee/I[F+o]):Ee>0&&(Ne=-Ae*tt*Math.log(1+Ee)/Ee):W.outboundAttractionDistribution?(Ee=1,Ne=-Ae*tt/I[F+o]):(Ee=1,Ne=-Ae*tt)),Ee>0&&(I[F+n]+=je*Ne,I[F+r]+=he*Ne,I[Z+n]-=je*Ne,I[Z+r]-=he*Ne);var de,Se,Be,Ze,ct,Wt;if(we===!0)for(N=0;N<ue;N+=L)I[N+f]!==1&&(de=Math.sqrt(Math.pow(I[N+n],2)+Math.pow(I[N+r],2)),de>q&&(I[N+n]=I[N+n]*q/de,I[N+r]=I[N+r]*q/de),Se=I[N+o]*Math.sqrt((I[N+i]-I[N+n])*(I[N+i]-I[N+n])+(I[N+a]-I[N+r])*(I[N+a]-I[N+r])),Be=Math.sqrt((I[N+i]+I[N+n])*(I[N+i]+I[N+n])+(I[N+a]+I[N+r])*(I[N+a]+I[N+r]))/2,Ze=.1*Math.log(1+Be)/(1+Math.sqrt(Se)),ct=I[N+e]+I[N+n]*(Ze/W.slowDown),I[N+e]=ct,Wt=I[N+t]+I[N+r]*(Ze/W.slowDown),I[N+t]=Wt);else for(N=0;N<ue;N+=L)I[N+f]!==1&&(Se=I[N+o]*Math.sqrt((I[N+i]-I[N+n])*(I[N+i]-I[N+n])+(I[N+a]-I[N+r])*(I[N+a]-I[N+r])),Be=Math.sqrt((I[N+i]+I[N+n])*(I[N+i]+I[N+n])+(I[N+a]+I[N+r])*(I[N+a]+I[N+r]))/2,Ze=I[N+l]*Math.log(1+Be)/(1+Math.sqrt(Se)),I[N+l]=Math.min(1,Math.sqrt(Ze*(Math.pow(I[N+n],2)+Math.pow(I[N+r],2))/(1+Math.sqrt(Se)))),ct=I[N+e]+I[N+n]*(Ze/W.slowDown),I[N+e]=ct,Wt=I[N+t]+I[N+r]*(Ze/W.slowDown),I[N+t]=Wt);return{}},tx}var Ya={},IA;function vxe(){if(IA)return Ya;IA=1;var e=10,t=3;return Ya.assign=function(n){n=n||{};var r=Array.prototype.slice.call(arguments).slice(1),i,a,o;for(i=0,o=r.length;i<o;i++)if(r[i])for(a in r[i])n[a]=r[i][a];return n},Ya.validateSettings=function(n){return"linLogMode"in n&&typeof n.linLogMode!="boolean"?{message:"the `linLogMode` setting should be a boolean."}:"outboundAttractionDistribution"in n&&typeof n.outboundAttractionDistribution!="boolean"?{message:"the `outboundAttractionDistribution` setting should be a boolean."}:"adjustSizes"in n&&typeof n.adjustSizes!="boolean"?{message:"the `adjustSizes` setting should be a boolean."}:"edgeWeightInfluence"in n&&typeof n.edgeWeightInfluence!="number"?{message:"the `edgeWeightInfluence` setting should be a number."}:"scalingRatio"in n&&!(typeof n.scalingRatio=="number"&&n.scalingRatio>=0)?{message:"the `scalingRatio` setting should be a number >= 0."}:"strongGravityMode"in n&&typeof n.strongGravityMode!="boolean"?{message:"the `strongGravityMode` setting should be a boolean."}:"gravity"in n&&!(typeof n.gravity=="number"&&n.gravity>=0)?{message:"the `gravity` setting should be a number >= 0."}:"slowDown"in n&&!(typeof n.slowDown=="number"||n.slowDown>=0)?{message:"the `slowDown` setting should be a number >= 0."}:"barnesHutOptimize"in n&&typeof n.barnesHutOptimize!="boolean"?{message:"the `barnesHutOptimize` setting should be a boolean."}:"barnesHutTheta"in n&&!(typeof n.barnesHutTheta=="number"&&n.barnesHutTheta>=0)?{message:"the `barnesHutTheta` setting should be a number >= 0."}:null},Ya.graphToByteArrays=function(n,r){var i=n.order,a=n.size,o={},l,c=new Float32Array(i*e),f=new Float32Array(a*t);return l=0,n.forEachNode(function(d,m){o[d]=l,c[l]=m.x,c[l+1]=m.y,c[l+2]=0,c[l+3]=0,c[l+4]=0,c[l+5]=0,c[l+6]=1,c[l+7]=1,c[l+8]=m.size||1,c[l+9]=m.fixed?1:0,l+=e}),l=0,n.forEachEdge(function(d,m,p,g,y,x,k){var w=o[p],C=o[g],S=r(d,m,p,g,y,x,k);c[w+6]+=S,c[C+6]+=S,f[l]=w,f[l+1]=C,f[l+2]=S,l+=t}),{nodes:c,edges:f}},Ya.assignLayoutChanges=function(n,r,i){var a=0;n.updateEachNodeAttributes(function(o,l){return l.x=r[a],l.y=r[a+1],a+=e,i?i(o,l):l})},Ya.readGraphPositions=function(n,r){var i=0;n.forEachNode(function(a,o){r[i]=o.x,r[i+1]=o.y,i+=e})},Ya.collectLayoutChanges=function(n,r,i){for(var a=n.nodes(),o={},l=0,c=0,f=r.length;l<f;l+=e){if(i){var d=Object.assign({},n.getNodeAttributes(a[c]));d.x=r[l],d.y=r[l+1],d=i(a[c],d),o[a[c]]={x:d.x,y:d.y}}else o[a[c]]={x:r[l],y:r[l+1]};c++}return o},Ya.createWorker=function(r){var i=window.URL||window.webkitURL,a=r.toString(),o=i.createObjectURL(new Blob(["("+a+").call(this);"],{type:"text/javascript"})),l=new Worker(o);return i.revokeObjectURL(o),l},Ya}var nx,$A;function bxe(){return $A||($A=1,nx={linLogMode:!1,outboundAttractionDistribution:!1,adjustSizes:!1,edgeWeightInfluence:1,scalingRatio:1,strongGravityMode:!1,gravity:1,slowDown:1,barnesHutOptimize:!1,barnesHutTheta:.5}),nx}var rx,PA;function xxe(){if(PA)return rx;PA=1;var e=MO(),t=gxe().createEdgeWeightGetter,n=yxe(),r=vxe(),i=bxe();function a(c,f,d){if(!e(f))throw new Error("graphology-layout-forceatlas2: the given graph is not a valid graphology instance.");typeof d=="number"&&(d={iterations:d});var m=d.iterations;if(typeof m!="number")throw new Error("graphology-layout-forceatlas2: invalid number of iterations.");if(m<=0)throw new Error("graphology-layout-forceatlas2: you should provide a positive number of iterations.");var p=t("getEdgeWeight"in d?d.getEdgeWeight:"weight").fromEntry,g=typeof d.outputReducer=="function"?d.outputReducer:null,y=r.assign({},i,d.settings),x=r.validateSettings(y);if(x)throw new Error("graphology-layout-forceatlas2: "+x.message);var k=r.graphToByteArrays(f,p),w;for(w=0;w<m;w++)n(y,k.nodes,k.edges);if(c){r.assignLayoutChanges(f,k.nodes,g);return}return r.collectLayoutChanges(f,k.nodes)}function o(c){var f=typeof c=="number"?c:c.order;return{barnesHutOptimize:f>2e3,strongGravityMode:!0,gravity:.05,scalingRatio:10,slowDown:1+Math.log(f)}}var l=a.bind(null,!1);return l.assign=a.bind(null,!0),l.inferSettings=o,rx=l,rx}var wxe=xxe();const $g=Ml(wxe),kxe=new Set(["derive","specify","define","verify","satisfy"]);function zc(e){return e.element_type||e.node_type||e.type||"other"}function Exe(e){return{fill:XC(e),border:XC(e,"ink")}}function zE(e){const t=String(e.label||"").toLowerCase(),n=String(e.kind||"").toLowerCase();return n==="reused_contract_context"||t==="reuses contract"?"reuse":n==="concept-reference"||t==="conceptref"?"concept-reference":t.includes("derive")?"derive":t.includes("specif")?"specify":t.includes("defin")?"define":t.includes("verif")?"verify":t.includes("satisf")?"satisfy":(t.includes("trace"),"trace")}function UA(e){const t=String(e.label||"");return String(e.kind||"").toLowerCase()==="reused_contract_context"||t.toLowerCase()==="reuses contract"?"reused context":t}function Sxe(e,t){return e==="reuse"||e==="concept-reference"?t.has("cross"):e==="verify"||e==="satisfy"?t.has("verification"):e==="trace"?t.has("trace"):!0}function Txe(e){return kxe.has(e.relCategory??zE(e))}function Cxe(e,t){const n=e??"";return n.length>t?`${n.slice(0,Math.max(1,t-1))}...`:n}function Axe(e){return["capability","requirement","ontology"].includes(zc(e))?26:34}function jxe(e,t){const n=t.filter(r=>r.source===e.id||r.target===e.id).length;return Math.min(16,4+Math.sqrt(n+1)*1.6)}function BA(e,t){const n=GA(e),r=GA(Qe("--bg-canvas"));if(!n||!r)return e;const i=Math.round(n.r*t+r.r*(1-t)),a=Math.round(n.g*t+r.g*(1-t)),o=Math.round(n.b*t+r.b*(1-t));return`#${[i,a,o].map(l=>l.toString(16).padStart(2,"0")).join("")}`}function GA(e){if(!e.startsWith("#"))return null;const t=e.slice(1),n=t.length===3?t.split("").map(o=>o+o).join(""):t.padEnd(6,"0").slice(0,6),r=Number.parseInt(n.slice(0,2),16),i=Number.parseInt(n.slice(2,4),16),a=Number.parseInt(n.slice(4,6),16);return[r,i,a].some(o=>Number.isNaN(o))?null:{r,g:i,b:a}}function Rxe(){return{labelColor:{color:Qe("--slate-950")},edgeLabelColor:{color:Qe("--text-muted")},labelWeight:"600",edgeLabelWeight:"600"}}function FA(){return Qe("--text-muted")}function Nxe(e){if(!(e!=null&&e.identifier))return!1;const t=zc(e);return t!=="resource"&&t!=="concept"}function zxe(e){const t=(e==null?void 0:e.nodes)??[],n=Array.from(new Map(t.map(a=>[a.id,{...a,node_type:zc(a)}])).values()),r=new Map(n.map(a=>[a.id,a])),i=((e==null?void 0:e.edges)??[]).filter(a=>r.has(a.source)&&r.has(a.target)).map(a=>({...a,relCategory:zE(a)}));return{nodes:n,nodeById:r,edges:i}}function Lxe(e){const t=new Map;e.forEach(r=>{const i=zc(r);t.set(i,[...t.get(i)??[],r])});const n={capability:[-8,-5],requirement:[-1,-2],contract:[3,2],verification:[8,5],ontology:[-5,-8],resource:[10,8],concept:[11,9],other:[0,0]};t.forEach((r,i)=>{const[a,o]=n[i]??n.other,l=Math.max(2.5,Math.sqrt(r.length)*.9);r.forEach((c,f)=>{const d=f/Math.max(r.length,1)*Math.PI*2,m=l*(.45+f%11/11);c.x=a+Math.cos(d)*m,c.y=o+Math.sin(d)*m})})}function Mxe({frameTestId:e="model-graph",embedded:t=!1,onOpenElement:n}){const{store:r}=xr(),{modelTypes:i,modelOverlays:a,knowledgeGraphSelectionId:o,setKnowledgeGraphSelectionId:l}=ei(),{nodes:c,nodeById:f,edges:d}=se.useMemo(()=>zxe(r.knowledge_graph),[r.knowledge_graph]),m=se.useRef(null),p=se.useRef(null),g=se.useRef(null),y=se.useRef(null),x=se.useRef(null),[k,w]=se.useState(null),C=z=>i.has(zc(z)),S=z=>{const A=f.get(z.source),L=f.get(z.target);return!!(A&&L)&&!!(A&&C(A))&&!!(L&&C(L))&&Sxe(z.relCategory??zE(z),a)};se.useEffect(()=>{var z;y.current=o,(z=g.current)==null||z.refresh()},[o]),se.useEffect(()=>{const z=p.current,A=g.current;z&&(c.forEach(L=>{z.hasNode(L.id)&&z.setNodeAttribute(L.id,"hidden",!C(L))}),d.forEach((L,G)=>{const H=`e${G}`;z.hasEdge(H)&&z.setEdgeAttribute(H,"hidden",!S(L))}),A==null||A.refresh())},[i,a,d,c]),se.useEffect(()=>{const z=m.current;if(!z||c.length===0){w(c.length===0?"No project graph nodes were exported.":null);return}let A=null,L=null,G=!1,H=!1,q=null,V=null,W=!1,I=!1;const B=j=>{z.style.cursor=j,z.querySelectorAll("canvas").forEach(N=>{N.style.cursor=j})},D=()=>{G=!0,q!==null&&window.clearTimeout(q),q=window.setTimeout(()=>{G=!1,q=null},0)};try{const j=c.map(O=>({...O}));Lxe(j),A=new Rt({type:"directed",multi:!0,allowSelfLoops:!0}),j.forEach(O=>{const U=zc(O),K=O;A==null||A.addNode(O.id,{...O,type:"circle",reqvireType:U,label:Cxe(O.label,Axe(O)),fullLabel:O.label,x:K.x,y:K.y,size:jxe(O,d),color:Exe(U).fill,hidden:!C(O)})}),d.forEach((O,U)=>{Txe(O)&&(A==null||A.addDirectedEdgeWithKey(`e${U}`,O.source,O.target,{...O,type:"arrow",label:UA(O),size:O.kind==="reused_contract_context"||O.kind==="concept-reference"?.8:1.1,color:FA(),hidden:!S(O)}))});try{const O=$g.inferSettings(A);$g.assign(A,{iterations:A.order>650?260:180,settings:{...O,adjustSizes:!0,barnesHutOptimize:!0,gravity:1.6,scalingRatio:18,slowDown:2}})}catch(O){console.warn("[Reqvire KG] ForceAtlas2 layout failed",O)}d.forEach((O,U)=>{const K=`e${U}`;A!=null&&A.hasEdge(K)||A==null||A.addDirectedEdgeWithKey(K,O.source,O.target,{...O,type:"arrow",label:UA(O),size:O.kind==="reused_contract_context"||O.kind==="concept-reference"?.8:1.1,color:FA(),hidden:!S(O)})});const N=O=>{const U=new Set;return O.forEach(K=>{U.add(K),d.forEach($=>{S($)&&($.source===K&&U.add($.target),$.target===K&&U.add($.source))})}),U},F=(O,U,K)=>{const $=String(O.source??""),ie=String(O.target??"");return K.has($)&&K.has(ie)&&U.some(ue=>$===ue||ie===ue)};L=new qO(A,z,{allowInvalidContainer:!0,defaultEdgeType:"arrow",renderEdgeLabels:!0,zIndex:!0,...Rxe(),labelDensity:.12,labelGridCellSize:80,labelRenderedSizeThreshold:9,nodeReducer:(O,U)=>{const K={...U};if(U.hidden)return K.label="",K.highlighted=!1,K.forceLabel=!1,K;const $=y.current,ie=x.current,ue=V===O,xe=$?N([$]):new Set,we=!!($&&ie&&xe.has(ie)),Pe=ie?N([ie]):new Set;if($){const Ee=xe.has(O),Ne=we&&Pe.has(O);return Ee||Ne||ue?(K.hidden=!1,we&&Ee&&!Ne&&!ue?(K.color=BA(String(U.color??Qe("--text-faint")),.2),K.label="",K.highlighted=!1,K.forceLabel=!1,K.zIndex=0,K):(K.label=U.fullLabel??U.label??"",K.highlighted=!0,K.forceLabel=!0,K.zIndex=ue||O===$||O===ie?20:10,K)):(K.hidden=!0,K.label="",K.highlighted=!1,K.forceLabel=!1,K.zIndex=0,K)}const _e=[V].filter(Ee=>!!Ee),Ae=[...ie?[ie]:[],..._e],je=Ae.length>0,tt=N(Ae).has(O);return je?tt||ue?(K.label=U.fullLabel??U.label??"",K.highlighted=!0,K.forceLabel=!0,K.zIndex=ue?20:10):(K.color=BA(String(U.color??Qe("--text-faint")),.2),K.label="",K.highlighted=!1,K.forceLabel=!1,K.zIndex=0):(K.label="",K.highlighted=!1,K.forceLabel=!1),K},edgeReducer:(O,U)=>{const K={...U},$=y.current,ie=x.current;if(U.hidden)return K.hidden=!0,K;if($){const xe=N([$]),we=!!(ie&&xe.has(ie)),Pe=we&&ie?[ie]:[$],_e=we&&ie?N([ie]):xe;return F(U,Pe,_e)?(K.hidden=!1,K.color=Qe("--edge-default"),K.size=Math.max(1.1,Number(U.size??1)*1.15),K.forceLabel=!0,K):(K.hidden=!0,K.label="",K)}const ue=[ie,V].filter(xe=>!!xe);return ue.length===0||!F(U,ue,N(ue))?(K.hidden=!0,K.label=""):(K.hidden=!1,K.color=Qe("--edge-default"),K.size=Math.max(1.1,Number(U.size??1)*1.15),K.forceLabel=!0),K}}),p.current=A,g.current=L,w(null),L.on("clickNode",O=>{if(H){H=!1,D();return}D(),l(O.node)}),L.on("doubleClickNode",O=>{const U=f.get(O.node);Nxe(U)&&(n==null||n(U.identifier))}),L.on("clickStage",()=>{if(B(""),G){G=!1,q!==null&&(window.clearTimeout(q),q=null);return}l(null)}),L.on("enterNode",O=>{x.current=O.node,B("pointer"),L==null||L.refresh()}),L.on("leaveNode",O=>{x.current===O.node&&(x.current=null),B(""),L==null||L.refresh()}),L.on("downNode",O=>{!(A!=null&&A.hasNode(O.node))||A.getNodeAttribute(O.node,"hidden")||(B("grabbing"),W=!0,V=O.node,I=!1,D(),L!=null&&L.getCustomBBox()||L==null||L.setCustomBBox(L.getBBox()),L==null||L.refresh())}),L.on("moveBody",({event:O})=>{var $,ie,ue,xe,we;if(!W||!V||!(A!=null&&A.hasNode(V)))return;const U=L==null?void 0:L.viewportToGraph(O);if(!U)return;A.mergeNodeAttributes(V,{x:U.x,y:U.y}),I=!0,L==null||L.refresh();const K=O;($=K.preventSigmaDefault)==null||$.call(K),(ue=(ie=K.original)==null?void 0:ie.preventDefault)==null||ue.call(ie),(we=(xe=K.original)==null?void 0:xe.stopPropagation)==null||we.call(xe)});const Z=()=>{!W&&!V||(I&&(H=!0,D()),W=!1,V=null,I=!1,B(x.current?"pointer":""),L==null||L.refresh())};L.on("upNode",Z),L.on("upStage",Z),L.getCamera().animatedReset({duration:250})}catch(j){console.error("[Reqvire KG] Sigma/Graphology renderer failed",j),w("Graph renderer failed. Check the browser console for details.")}return()=>{var j;(j=m.current)==null||j.querySelectorAll("canvas").forEach(N=>{var Z;const F=N.getContext("webgl")??N.getContext("webgl2");(Z=F==null?void 0:F.getExtension("WEBGL_lose_context"))==null||Z.loseContext()}),q!==null&&(window.clearTimeout(q),q=null),B(""),L==null||L.kill(),p.current=null,g.current=null,A=null,L=null}},[d,f,c,n,l]);const T=b.jsx(Lk,{embedded:t,children:b.jsxs(Mk,{children:[b.jsx(Xz,{ref:m,"data-testid":"kg-sigma-canvas",role:"img","aria-label":"Actual project elements and facts graph"}),k?b.jsx(Yz,{children:k}):null]})});return t?T:b.jsx(ba,{testId:e,children:T})}function HA({onOpenElement:e}){const{modelMode:t}=ei();return t==="graph"?b.jsx(Oxe,{onOpenElement:e}):b.jsx(JM,{path:null,forcedLayout:t,onOpenElement:e})}function Oxe({onOpenElement:e}){const t=ei(),{store:n}=xr(),r=n.knowledge_graph.summary,i=(r==null?void 0:r.elements)??n.elements.length;return b.jsx(ba,{testId:"model",children:b.jsx(Ec,{children:b.jsx(Rne,{rootLabel:"Model",currentLabel:"Graph",countLabel:`${i} elements`,controls:b.jsx(Dxe,{value:t.modelMode,onChange:t.setModelMode}),onRootClick:()=>t.setModelMode("grid"),children:b.jsx(Mxe,{embedded:!0,frameTestId:"model",onOpenElement:e})})})})}function Dxe({value:e,onChange:t}){return b.jsx(Pz,{ariaLabel:"Model layout",value:e,onChange:t,items:[{value:"list",label:"List",icon:b.jsx(at,{name:"list"})},{value:"grid",label:"Grid",icon:b.jsx(at,{name:"layout-grid"})},{value:"graph",label:"Graph",icon:b.jsx(at,{name:"git-branch"})}]})}const Hh=[];let t_=!1;function qxe(e){let t=!1;const n=r=>{if(t){r();return}e(r)};return Hh.push(n),IO(),()=>{t=!0;const r=Hh.indexOf(n);r>=0&&Hh.splice(r,1)}}function IO(){if(t_||Hh.length===0)return;const e=()=>{if(t_)return;const t=Hh.shift();if(!t)return;t_=!0;let n=!1;t(()=>{n||(n=!0,t_=!1,IO())})};typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(e,{timeout:600}):globalThis.setTimeout(e,16)}function Ixe({onOpenElement:e}){const{store:t}=xr(),{traceFilePath:n,setTraceFilePath:r,traceSelectionId:i,setTraceSelectionId:a}=ei(),o=se.useMemo(()=>new Map(t.elements.map(f=>[f.id,f])),[t.elements]),l=se.useMemo(()=>j7(t),[t]),c=se.useMemo(()=>l.find(f=>f.file===n)??l[0],[n,l]);return se.useEffect(()=>{if(l.length===0){n!==null&&r(null),i!==null&&a(null);return}(n?l.some(d=>d.file===n):!1)||(r(l[0].file),a(null))},[a,r,n,l,i]),b.jsx(ba,{testId:"traces",children:b.jsx(cL,{children:b.jsx(Oae,{children:b.jsxs(Dae,{children:[b.jsx($xe,{file:c,elementById:o,onOpenElement:e,onSelect:a,selectedVerificationId:i}),l.length===0&&b.jsx(Xae,{children:"No verification traces in store."})]})})})})}function $xe({file:e,elementById:t,onOpenElement:n,onSelect:r,selectedVerificationId:i}){const a=se.useRef(null);return se.useEffect(()=>{var l;if(!i)return;const o=(l=a.current)==null?void 0:l.querySelector(`#${VA(i)}`);o==null||o.scrollIntoView({block:"start",behavior:"smooth"})},[e==null?void 0:e.file,i]),e?b.jsx(g8,{ref:a,"data-testid":"trace-rows",children:b.jsxs(qae,{children:[b.jsx(Iae,{file:e.file,countLabel:`${e.verifications.length} ${e.verifications.length===1?"verification":"verifications"}`}),b.jsx($ae,{children:e.verifications.map(o=>b.jsxs(Pae,{id:VA(o.id),selected:i===o.id,children:[b.jsxs(Uae,{children:[b.jsx(Bae,{onClick:()=>{r(o.id)},children:o.name}),b.jsxs(Gae,{children:[o.totalCount," in tree"]})]}),b.jsx(Fae,{rows:[{label:"Type",value:o.verificationType??"verification"},{label:"Directly Verified",value:`${o.directCount} requirements`},{label:"Total in Tree",value:`${o.totalCount} requirements`}]}),b.jsx(Pxe,{verification:o,elementById:t,onOpenElement:n})]},o.id))})]})}):b.jsx(g8,{"data-testid":"trace-rows"})}const Pxe=se.memo(function({verification:t,elementById:n,onOpenElement:r}){const i=se.useRef(null),a=se.useRef(null),o=se.useRef(null),[l,c]=se.useState(!1),[f,d]=se.useState(null),m=se.useCallback(()=>{l||f||a.current||o.current||(a.current=qxe(y=>{a.current=null,o.current=y,d(Gxe(t,n)),c(!0)}))},[n,f,l,t]),p=se.useCallback(()=>{var y;(y=o.current)==null||y.call(o),o.current=null},[]),g=se.useCallback(y=>{const x=y.target;if(!(x instanceof Element))return;const k=x.closest("[data-reqvire-element-id]"),w=(k==null?void 0:k.dataset.reqvireElementId)??Uxe(x);!w||!n.has(w)||(y.preventDefault(),y.stopPropagation(),r(w))},[n,r]);return se.useEffect(()=>()=>{var y,x;(y=a.current)==null||y.call(a),a.current=null,(x=o.current)==null||x.call(o),o.current=null},[]),se.useEffect(()=>{const y=i.current;if(!y||l)return;let x,k;if(!("IntersectionObserver"in window))return x=globalThis.setTimeout(m,0),()=>globalThis.clearTimeout(x);const w=new IntersectionObserver(C=>{C.some(S=>S.isIntersecting)&&(w.disconnect(),"requestIdleCallback"in window?k=window.requestIdleCallback(m,{timeout:250}):x=globalThis.setTimeout(m,0))},{rootMargin:"320px 0px"});return w.observe(y),()=>{w.disconnect(),k!==void 0&&"cancelIdleCallback"in window&&window.cancelIdleCallback(k),x!==void 0&&globalThis.clearTimeout(x)}},[l,m]),b.jsx(Hae,{ref:i,onClickCapture:g,children:l&&f?b.jsx(C7,{code:f.code,nodeClickTargets:f.nodeClickTargets,onNodeClick:r,onRenderSettled:p}):b.jsx(Vae,{children:"Diagram queued. Rows remain interactive while rendering continues."})})});function Uxe(e){const t=e.closest("a[href]");return t?Bxe(t.getAttribute("href")??t.href):null}function Bxe(e){const t="#/content/";let n=e;if(!n.startsWith("#"))try{n=new URL(e,window.location.href).hash}catch{return null}if(!n.startsWith(t))return null;const r=n.slice(t.length);try{return decodeURIComponent(r)}catch{return r}}function Gxe(e,t){const n=new Map;return{code:Fxe(e,t,n),nodeClickTargets:n}}function Fxe(e,t,n=new Map){var m;const r=new Map,i=new Set,a=[],o=p=>{r.set(p.id,p)},l=(p,g,y)=>{const x=`${p}\0${g}\0${y}`;i.has(x)||(i.add(x),a.push(` ${Wu(p)} -->|${g}| ${Wu(y)};`))};o({id:e.id,name:e.name,type:"verification"});const c=p=>{o({id:p.id,name:p.name,type:p.type}),p.is_directly_verified&&l(e.id,"verifies",p.id);for(const g of p.children??[])c(g),l(p.id,"derivedFrom",g.id)};if((m=e.traceTree)!=null&&m.requirements.length)for(const p of e.traceTree.requirements)c(p);else for(const p of e.requirementIds){const g=t.get(p);o({id:p,name:(g==null?void 0:g.name)??p,type:(g==null?void 0:g.element_type)??"requirement"}),l(e.id,"verifies",p)}const f=Hxe([...r.values()]),d=["graph TD",...see(),""];for(const[p,g]of f){const y=Wu(`folder:${p}`);d.push(` subgraph ${y}["${ix(p||"root")}"]`);for(const[x,k]of g){const w=Wu(`file:${p}:${x}`);d.push(` subgraph ${w}["${ix(x)}"]`);for(const C of k){const S=Wu(C.id);n.set(S,C.id),d.push(` ${S}["${ix(C.name)}"]:::${Vxe(C.type)}`),d.push(` click ${S} "${Yxe(C.id)}";`)}d.push(" end")}d.push(" end")}return d.push(...a),d.join(`
|
|
547
|
+
`)}function Hxe(e){const t=new Map;for(const n of e){const r=n.id.split("#")[0]||n.id,i=r.lastIndexOf("/"),a=i>=0?r.slice(0,i):"",o=i>=0?r.slice(i+1):r,l=t.get(a)??new Map,c=l.get(o)??[];c.push(n),l.set(o,c),t.set(a,l)}return[...t.entries()].sort(([n],[r])=>n.localeCompare(r)).map(([n,r])=>[n,new Map([...r.entries()].sort(([i],[a])=>i.localeCompare(a)).map(([i,a])=>[i,a.sort((o,l)=>o.id.localeCompare(l.id))]))])}function Vxe(e){return e.toLowerCase()==="system-requirement"?"systemRequirement":Xxe(M1(e))}function Xxe(e){switch(e){case"input-output":return"inputOutput";case"semantic-contract":return"semanticContract";case"verification-objective":return"verificationObjective";default:return e==="other"?"default":e}}function Wu(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return`n${(t>>>0).toString(16)}`}function VA(e){return`trace-verification-${Wu(e).slice(1)}`}function ix(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g," ")}function Yxe(e){const[t,n]=e.split("#");return n?`#/content/${t}#${n}`:`#/content/${t}`}function Wxe({onOpenElement:e}={}){var g;const{store:t,elementById:n}=xr(),r=t.coverage??{},i=r.summary??{},a=[...((g=r.capability_coverage)==null?void 0:g.capabilities)??[]].sort((y,x)=>(x.implementation_coverage_percentage??0)-(y.implementation_coverage_percentage??0)||y.name.localeCompare(x.name)),o=Fu(r.unverified_leaf_requirements),l=Fu(r.uncovered_requirements),c=Fu(r.unsatisfied_test_verifications),f=Fu(r.orphaned_verifications),d=Fu(r.covered_requirements),m=Fu(r.satisfied_test_verifications),p=Object.keys(i).length>0||a.length>0||o.length>0||l.length>0||c.length>0||f.length>0||d.length>0||m.length>0;return se.useEffect(()=>{function y(x){var C;const k=(C=x.detail)==null?void 0:C.section;if(!k)return;const w=document.getElementById(nl(k));w&&w.scrollIntoView({block:"start",behavior:"smooth"})}return window.addEventListener("reqvire:coverage-navigate",y),()=>window.removeEventListener("reqvire:coverage-navigate",y)},[]),b.jsx(ba,{testId:"coverage",children:b.jsx(cL,{children:b.jsxs(Yae,{children:[b.jsx(Wae,{id:nl("overview"),eyebrow:"Coverage",title:"Verification Coverage",stats:[{label:"Requirements",value:vn(i.total_requirements_in_scope)},{label:"Leaf reqs",value:vn(i.total_leaf_requirements)},{label:"Verifications",value:vn(i.total_verifications)}]}),p?b.jsxs(b.Fragment,{children:[b.jsxs(Zae,{children:[b.jsx(n_,{label:"Leaf verification",value:i.leaf_requirements_coverage_percentage,detail:`${vn(i.verified_leaf_requirements)} / ${vn(i.total_leaf_requirements)} verified`,token:"--requirement"}),b.jsx(n_,{label:"Implementation",value:i.implementation_coverage_percentage,detail:`${vn(i.covered_requirements)} / ${vn(i.total_requirements_in_scope)} covered`,token:"--resource"}),b.jsx(n_,{label:"Test evidence",value:i.test_verifications_satisfaction_percentage,detail:`${vn(i.satisfied_test_verifications)} / ${vn(i.total_test_verifications)} satisfied`,token:"--verification"}),b.jsx(n_,{label:"Orphaned verifications",value:i.orphaned_verifications_percentage,detail:`${vn(i.orphaned_verifications)} / ${vn(i.total_verifications)} orphaned`,token:"--contract",inverted:!0})]}),b.jsxs(Qae,{children:[b.jsx(sb,{title:"Verification types",children:b.jsx(Kxe,{values:i.verification_types??{},rows:[["test","Test","test-verification"],["formal_proof","Formal proof","formal-proof-verification"],["analysis","Analysis","analysis-verification"],["inspection","Inspection","inspection-verification"],["demonstration","Demonstration","demonstration-verification"]]})}),b.jsx(sb,{title:"Coverage sources",children:b.jsx(Zxe,{values:i.coverage_sources??{}})}),b.jsx(sb,{id:nl("capability-coverage"),title:"Capability coverage",span:"wide",children:b.jsx(Qxe,{capabilities:a,onOpenElement:e})})]}),b.jsxs(Jae,{children:[b.jsx(r_,{id:nl("unverified-requirements"),title:"Unverified requirements",items:o,emptyLabel:"All leaf requirements have verification.",defaultType:"requirement",elementById:n,onOpenElement:e}),b.jsx(r_,{id:nl("unimplemented-requirements"),title:"Unimplemented requirements",items:l,emptyLabel:"All requirements in scope have implementation evidence.",defaultType:"requirement",elementById:n,onOpenElement:e}),b.jsx(r_,{id:nl("unsatisfied-verifications"),title:"Unsatisfied verifications",items:c,emptyLabel:"All test verifications have evidence.",defaultType:"test-verification",elementById:n,onOpenElement:e}),b.jsx(r_,{id:nl("orphaned-verifications"),title:"Orphaned verifications",items:f,emptyLabel:"Every verification links to a requirement or capability.",defaultType:"test-verification",elementById:n,onOpenElement:e})]})]}):b.jsx(Kae,{title:"No coverage report in this Explorer seed",children:"Serve or open a Project Store generated by Reqvire to inspect requirement and verification coverage."})]})})})}function n_({label:e,value:t,detail:n,token:r,inverted:i=!1}){const a=PO(t??0),o=typeof t=="number"?UO(t):"—",l=i?100-a:a;return b.jsx(eoe,{label:e,detail:n,shown:o,ringPercent:l,token:r})}function Kxe({values:e,rows:t}){return b.jsx(noe,{children:t.map(([n,r,i])=>b.jsx(roe,{label:r,value:vn(e[n]??0),type:i},n))})}function Zxe({values:e}){const t=[["direct_satisfied","Direct evidence","--resource"],["contract_satisfied_via_reused_contract_context","Reused contract","--ontology"],["contract_satisfied_via_child","Child contract","--capability"]],n=Math.max(1,...t.map(([r])=>e[r]??0));return b.jsx(ioe,{children:t.map(([r,i,a])=>{const o=e[r]??0;return b.jsx(aoe,{label:i,value:vn(o),children:b.jsx($O,{value:o/n*100,token:a})},r)})})}function Qxe({capabilities:e,onOpenElement:t}){return e.length===0?b.jsx(fL,{children:"No capability coverage rows were reported."}):b.jsx(ooe,{children:e.map(n=>b.jsxs(soe,{name:n.name||BO(n.identifier),mark:n.mark,onClick:()=>t==null?void 0:t(n.identifier),children:[b.jsx(XA,{label:"Verification",value:n.verification_coverage_percentage,count:`${vn(n.aggregate_verified_leaf_requirements)} / ${vn(n.aggregate_leaf_requirements)}`,token:"--requirement"}),b.jsx(XA,{label:"Implementation",value:n.implementation_coverage_percentage,count:`${vn(n.aggregate_covered_requirements)} / ${vn(n.aggregate_requirements)}`,token:"--resource"})]},n.identifier))})}function r_({id:e,title:t,items:n,emptyLabel:r,defaultType:i,elementById:a,onOpenElement:o}){const[l,c]=se.useState(!1),f=8,d=l?n:n.slice(0,f),m=Math.max(0,n.length-d.length);return b.jsx(uoe,{id:e,title:t,count:vn(n.length),children:n.length===0?b.jsx(fL,{children:r}):b.jsxs(coe,{children:[d.map(p=>{const g=a(p.identifier),y=(g==null?void 0:g.element_type)??i,x=(g==null?void 0:g.type_family)??i;return b.jsx(foe,{type:y,family:x,title:p.name||BO(p.identifier),file:p.file,typeLabel:ewe(y),onClick:()=>o==null?void 0:o(p.identifier)},`${p.file}:${p.identifier}`)}),n.length>f?b.jsx(hoe,{"aria-expanded":l,onClick:()=>c(p=>!p),children:l?"Show fewer":`+ ${vn(m)} more`}):null]})})}function nl(e){return`coverage-section-${e}`}function XA({label:e,value:t,count:n,token:r}){return b.jsx(doe,{label:e,value:`${UO(t)} · ${n}`,children:b.jsx($O,{value:t??0,token:r})})}function $O({value:e,token:t}){return b.jsx(moe,{value:PO(e),token:t})}function Fu(e){if(!ax(e)||!ax(e.files))return[];const t=[];for(const[n,r]of Object.entries(e.files))if(Array.isArray(r))for(const i of r)ax(i)&&t.push({file:n,...i});return t.sort((n,r)=>{const i=String(n.name??""),a=String(r.name??"");return n.file.localeCompare(r.file)||i.localeCompare(a)})}function ax(e){return typeof e=="object"&&e!==null}function PO(e){return Number.isFinite(e)?Math.max(0,Math.min(100,e)):0}function UO(e){return typeof e!="number"||!Number.isFinite(e)?"—":`${Jxe(e)}%`}function Jxe(e){return Number.isInteger(e)?e.toString():e.toFixed(1).replace(/\.0$/,"")}function vn(e){return typeof e=="number"&&Number.isFinite(e)?e.toLocaleString():"0"}function BO(e){const t=e.split("#").pop();return t?t.replace(/-/g," "):e}function ewe(e){return e.replace(/-/g," ")}function twe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GO(e){var t=twe(e,"string");return typeof t=="symbol"?t:t+""}function FO(e,t,n){return(t=GO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YA(Object(n),!0).forEach(function(r){FO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rwe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,GO(r.key),r)}}function iwe(e,t,n){return t&&rwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pg(e){return Pg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pg(e)}function HO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HO=function(){return!!e})()}function VO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function awe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VO(e)}function owe(e,t,n){return t=Pg(t),awe(e,HO()?Reflect.construct(t,n||[],Pg(e).constructor):t.apply(e,n))}function Zw(e,t){return Zw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Zw(e,t)}function swe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zw(e,t)}function Qw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lwe(e){if(Array.isArray(e))return Qw(e)}function uwe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cwe(e,t){if(e){if(typeof e=="string")return Qw(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qw(e,t):void 0}}function fwe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
548
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ox(e){return lwe(e)||uwe(e)||cwe(e)||fwe()}function XO(e,t,n,r){var i=Math.pow(1-e,2)*t.x+2*(1-e)*e*n.x+Math.pow(e,2)*r.x,a=Math.pow(1-e,2)*t.y+2*(1-e)*e*n.y+Math.pow(e,2)*r.y;return{x:i,y:a}}function hwe(e,t,n){for(var r=20,i=0,a=e,o=0;o<r;o++){var l=XO((o+1)/r,e,t,n);i+=Math.sqrt(Math.pow(a.x-l.x,2)+Math.pow(a.y-l.y,2)),a=l}return i}function YO(e){var t=e.curvatureAttribute,n=e.defaultCurvature,r=e.keepLabelUpright,i=r===void 0?!0:r;return function(a,o,l,c,f){var d=f.edgeLabelSize,m=o[t]||n,p=f.edgeLabelFont,g=f.edgeLabelWeight,y=f.edgeLabelColor.attribute?o[f.edgeLabelColor.attribute]||f.edgeLabelColor.color||"#000":f.edgeLabelColor.color,x=o.label;if(x){a.fillStyle=y,a.font="".concat(g," ").concat(d,"px ").concat(p);var k=!i||l.x<c.x,w=k?l.x:c.x,C=k?l.y:c.y,S=k?c.x:l.x,T=k?c.y:l.y,z=(w+S)/2,A=(C+T)/2,L=S-w,G=T-C,H=Math.sqrt(Math.pow(L,2)+Math.pow(G,2)),q=k?1:-1,V=z+G*m*q,W=A-L*m*q,I=o.size*.7+5,B={x:W-C,y:-(V-w)},D=Math.sqrt(Math.pow(B.x,2)+Math.pow(B.y,2)),j={x:T-W,y:-(S-V)},N=Math.sqrt(Math.pow(j.x,2)+Math.pow(j.y,2));w+=I*B.x/D,C+=I*B.y/D,S+=I*j.x/N,T+=I*j.y/N,V+=I*G/H,W-=I*L/H;var F={x:V,y:W},Z={x:w,y:C},O={x:S,y:T},U=hwe(Z,F,O);if(!(U<l.size+c.size)){var K=a.measureText(x).width,$=U-l.size-c.size;if(K>$){var ie="…";for(x=x+ie,K=a.measureText(x).width;K>$&&x.length>1;)x=x.slice(0,-2)+ie,K=a.measureText(x).width;if(x.length<4)return}for(var ue={},xe=0,we=x.length;xe<we;xe++){var Pe=x[xe];ue[Pe]||(ue[Pe]=a.measureText(Pe).width*(1+m*.35))}for(var _e=.5-K/U/2,Ae=0,je=x.length;Ae<je;Ae++){var he=x[Ae],tt=XO(_e,Z,F,O),Ee=2*(1-_e)*(V-w)+2*_e*(S-V),Ne=2*(1-_e)*(W-C)+2*_e*(T-W),ce=Math.atan2(Ne,Ee);a.save(),a.translate(tt.x,tt.y),a.rotate(ce),a.fillText(he,0,0),a.restore(),_e+=ue[he]/U}}}}}function dwe(e){var t=e.arrowHead,n=(t==null?void 0:t.extremity)==="target"||(t==null?void 0:t.extremity)==="both",r=(t==null?void 0:t.extremity)==="source"||(t==null?void 0:t.extremity)==="both",i=`
|
|
549
|
+
precision highp float;
|
|
550
|
+
|
|
551
|
+
varying vec4 v_color;
|
|
552
|
+
varying float v_thickness;
|
|
553
|
+
varying float v_feather;
|
|
554
|
+
varying vec2 v_cpA;
|
|
555
|
+
varying vec2 v_cpB;
|
|
556
|
+
varying vec2 v_cpC;
|
|
557
|
+
`.concat(n?`
|
|
558
|
+
varying float v_targetSize;
|
|
559
|
+
varying vec2 v_targetPoint;`:"",`
|
|
560
|
+
`).concat(r?`
|
|
561
|
+
varying float v_sourceSize;
|
|
562
|
+
varying vec2 v_sourcePoint;`:"",`
|
|
563
|
+
`).concat(t?`
|
|
564
|
+
uniform float u_lengthToThicknessRatio;
|
|
565
|
+
uniform float u_widenessToThicknessRatio;`:"",`
|
|
566
|
+
|
|
567
|
+
float det(vec2 a, vec2 b) {
|
|
568
|
+
return a.x * b.y - b.x * a.y;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
vec2 getDistanceVector(vec2 b0, vec2 b1, vec2 b2) {
|
|
572
|
+
float a = det(b0, b2), b = 2.0 * det(b1, b0), d = 2.0 * det(b2, b1);
|
|
573
|
+
float f = b * d - a * a;
|
|
574
|
+
vec2 d21 = b2 - b1, d10 = b1 - b0, d20 = b2 - b0;
|
|
575
|
+
vec2 gf = 2.0 * (b * d21 + d * d10 + a * d20);
|
|
576
|
+
gf = vec2(gf.y, -gf.x);
|
|
577
|
+
vec2 pp = -f * gf / dot(gf, gf);
|
|
578
|
+
vec2 d0p = b0 - pp;
|
|
579
|
+
float ap = det(d0p, d20), bp = 2.0 * det(d10, d0p);
|
|
580
|
+
float t = clamp((ap + bp) / (2.0 * a + b + d), 0.0, 1.0);
|
|
581
|
+
return mix(mix(b0, b1, t), mix(b1, b2, t), t);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
float distToQuadraticBezierCurve(vec2 p, vec2 b0, vec2 b1, vec2 b2) {
|
|
585
|
+
return length(getDistanceVector(b0 - p, b1 - p, b2 - p));
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
const vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);
|
|
589
|
+
|
|
590
|
+
void main(void) {
|
|
591
|
+
float dist = distToQuadraticBezierCurve(gl_FragCoord.xy, v_cpA, v_cpB, v_cpC);
|
|
592
|
+
float thickness = v_thickness;
|
|
593
|
+
`).concat(n?`
|
|
594
|
+
float distToTarget = length(gl_FragCoord.xy - v_targetPoint);
|
|
595
|
+
float targetArrowLength = v_targetSize + thickness * u_lengthToThicknessRatio;
|
|
596
|
+
if (distToTarget < targetArrowLength) {
|
|
597
|
+
thickness = (distToTarget - v_targetSize) / (targetArrowLength - v_targetSize) * u_widenessToThicknessRatio * thickness;
|
|
598
|
+
}`:"",`
|
|
599
|
+
`).concat(r?`
|
|
600
|
+
float distToSource = length(gl_FragCoord.xy - v_sourcePoint);
|
|
601
|
+
float sourceArrowLength = v_sourceSize + thickness * u_lengthToThicknessRatio;
|
|
602
|
+
if (distToSource < sourceArrowLength) {
|
|
603
|
+
thickness = (distToSource - v_sourceSize) / (sourceArrowLength - v_sourceSize) * u_widenessToThicknessRatio * thickness;
|
|
604
|
+
}`:"",`
|
|
605
|
+
|
|
606
|
+
float halfThickness = thickness / 2.0;
|
|
607
|
+
if (dist < halfThickness) {
|
|
608
|
+
#ifdef PICKING_MODE
|
|
609
|
+
gl_FragColor = v_color;
|
|
610
|
+
#else
|
|
611
|
+
float t = smoothstep(
|
|
612
|
+
halfThickness - v_feather,
|
|
613
|
+
halfThickness,
|
|
614
|
+
dist
|
|
615
|
+
);
|
|
616
|
+
|
|
617
|
+
gl_FragColor = mix(v_color, transparent, t);
|
|
618
|
+
#endif
|
|
619
|
+
} else {
|
|
620
|
+
gl_FragColor = transparent;
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
`);return i}function mwe(e){var t=e.arrowHead,n=(t==null?void 0:t.extremity)==="target"||(t==null?void 0:t.extremity)==="both",r=(t==null?void 0:t.extremity)==="source"||(t==null?void 0:t.extremity)==="both",i=`
|
|
624
|
+
attribute vec4 a_id;
|
|
625
|
+
attribute vec4 a_color;
|
|
626
|
+
attribute float a_direction;
|
|
627
|
+
attribute float a_thickness;
|
|
628
|
+
attribute vec2 a_source;
|
|
629
|
+
attribute vec2 a_target;
|
|
630
|
+
attribute float a_current;
|
|
631
|
+
attribute float a_curvature;
|
|
632
|
+
`.concat(n?`attribute float a_targetSize;
|
|
633
|
+
`:"",`
|
|
634
|
+
`).concat(r?`attribute float a_sourceSize;
|
|
635
|
+
`:"",`
|
|
636
|
+
|
|
637
|
+
uniform mat3 u_matrix;
|
|
638
|
+
uniform float u_sizeRatio;
|
|
639
|
+
uniform float u_pixelRatio;
|
|
640
|
+
uniform vec2 u_dimensions;
|
|
641
|
+
uniform float u_minEdgeThickness;
|
|
642
|
+
uniform float u_feather;
|
|
643
|
+
|
|
644
|
+
varying vec4 v_color;
|
|
645
|
+
varying float v_thickness;
|
|
646
|
+
varying float v_feather;
|
|
647
|
+
varying vec2 v_cpA;
|
|
648
|
+
varying vec2 v_cpB;
|
|
649
|
+
varying vec2 v_cpC;
|
|
650
|
+
`).concat(n?`
|
|
651
|
+
varying float v_targetSize;
|
|
652
|
+
varying vec2 v_targetPoint;`:"",`
|
|
653
|
+
`).concat(r?`
|
|
654
|
+
varying float v_sourceSize;
|
|
655
|
+
varying vec2 v_sourcePoint;`:"",`
|
|
656
|
+
`).concat(t?`
|
|
657
|
+
uniform float u_widenessToThicknessRatio;`:"",`
|
|
658
|
+
|
|
659
|
+
const float bias = 255.0 / 254.0;
|
|
660
|
+
const float epsilon = 0.7;
|
|
661
|
+
|
|
662
|
+
vec2 clipspaceToViewport(vec2 pos, vec2 dimensions) {
|
|
663
|
+
return vec2(
|
|
664
|
+
(pos.x + 1.0) * dimensions.x / 2.0,
|
|
665
|
+
(pos.y + 1.0) * dimensions.y / 2.0
|
|
666
|
+
);
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
vec2 viewportToClipspace(vec2 pos, vec2 dimensions) {
|
|
670
|
+
return vec2(
|
|
671
|
+
pos.x / dimensions.x * 2.0 - 1.0,
|
|
672
|
+
pos.y / dimensions.y * 2.0 - 1.0
|
|
673
|
+
);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
void main() {
|
|
677
|
+
float minThickness = u_minEdgeThickness;
|
|
678
|
+
|
|
679
|
+
// Selecting the correct position
|
|
680
|
+
// Branchless "position = a_source if a_current == 1.0 else a_target"
|
|
681
|
+
vec2 position = a_source * max(0.0, a_current) + a_target * max(0.0, 1.0 - a_current);
|
|
682
|
+
position = (u_matrix * vec3(position, 1)).xy;
|
|
683
|
+
|
|
684
|
+
vec2 source = (u_matrix * vec3(a_source, 1)).xy;
|
|
685
|
+
vec2 target = (u_matrix * vec3(a_target, 1)).xy;
|
|
686
|
+
|
|
687
|
+
vec2 viewportPosition = clipspaceToViewport(position, u_dimensions);
|
|
688
|
+
vec2 viewportSource = clipspaceToViewport(source, u_dimensions);
|
|
689
|
+
vec2 viewportTarget = clipspaceToViewport(target, u_dimensions);
|
|
690
|
+
|
|
691
|
+
vec2 delta = viewportTarget.xy - viewportSource.xy;
|
|
692
|
+
float len = length(delta);
|
|
693
|
+
vec2 normal = vec2(-delta.y, delta.x) * a_direction;
|
|
694
|
+
vec2 unitNormal = normal / len;
|
|
695
|
+
float boundingBoxThickness = len * a_curvature;
|
|
696
|
+
|
|
697
|
+
float curveThickness = max(minThickness, a_thickness / u_sizeRatio);
|
|
698
|
+
v_thickness = curveThickness * u_pixelRatio;
|
|
699
|
+
v_feather = u_feather;
|
|
700
|
+
|
|
701
|
+
v_cpA = viewportSource;
|
|
702
|
+
v_cpB = 0.5 * (viewportSource + viewportTarget) + unitNormal * a_direction * boundingBoxThickness;
|
|
703
|
+
v_cpC = viewportTarget;
|
|
704
|
+
|
|
705
|
+
vec2 viewportOffsetPosition = (
|
|
706
|
+
viewportPosition +
|
|
707
|
+
unitNormal * (boundingBoxThickness / 2.0 + sign(boundingBoxThickness) * (`).concat(t?"curveThickness * u_widenessToThicknessRatio":"curveThickness",` + epsilon)) *
|
|
708
|
+
max(0.0, a_direction) // NOTE: cutting the bounding box in half to avoid overdraw
|
|
709
|
+
);
|
|
710
|
+
|
|
711
|
+
position = viewportToClipspace(viewportOffsetPosition, u_dimensions);
|
|
712
|
+
gl_Position = vec4(position, 0, 1);
|
|
713
|
+
|
|
714
|
+
`).concat(n?`
|
|
715
|
+
v_targetSize = a_targetSize * u_pixelRatio / u_sizeRatio;
|
|
716
|
+
v_targetPoint = viewportTarget;
|
|
717
|
+
`:"",`
|
|
718
|
+
`).concat(r?`
|
|
719
|
+
v_sourceSize = a_sourceSize * u_pixelRatio / u_sizeRatio;
|
|
720
|
+
v_sourcePoint = viewportSource;
|
|
721
|
+
`:"",`
|
|
722
|
+
|
|
723
|
+
#ifdef PICKING_MODE
|
|
724
|
+
// For picking mode, we use the ID as the color:
|
|
725
|
+
v_color = a_id;
|
|
726
|
+
#else
|
|
727
|
+
// For normal mode, we use the color:
|
|
728
|
+
v_color = a_color;
|
|
729
|
+
#endif
|
|
730
|
+
|
|
731
|
+
v_color.a *= bias;
|
|
732
|
+
}
|
|
733
|
+
`);return i}var WO=.25,pwe={arrowHead:null,curvatureAttribute:"curvature",defaultCurvature:WO},_we={edgeIndexAttribute:"parallelIndex",edgeMinIndexAttribute:"parallelMinIndex",edgeMaxIndexAttribute:"parallelMaxIndex"};function gwe(e,t){var n=Lc(Lc({},_we),{}),r={},i={},a={},o=0;e.forEachNode(function(A){r[A]=++o+""}),e.forEachEdge(function(A,L,G,H){var q=r[G],V=r[H],W=[q,V].join("-");i[A]=W,a[W]=[q,V].sort().join("-")});var l={},c={};e.forEachEdge(function(A){var L=i[A],G=a[L];l[L]=l[L]||[],l[L].push(A),c[G]=c[G]||[],c[G].push(A)});for(var f in l){var d=l[f],m=d.length,p=c[a[f]].length;if(m===1&&p===1){var g=d[0];e.setEdgeAttribute(g,n.edgeIndexAttribute,null),e.setEdgeAttribute(g,n.edgeMaxIndexAttribute,null)}else if(m===1){var y=d[0];e.setEdgeAttribute(y,n.edgeIndexAttribute,1),e.setEdgeAttribute(y,n.edgeMaxIndexAttribute,1)}else if(m===p)for(var x=(m-1)/2,k=-x,w=0;w<m;w++){var C=d[w],S=-(m-1)/2+w;e.setEdgeAttribute(C,n.edgeIndexAttribute,S),e.setEdgeAttribute(C,n.edgeMinIndexAttribute,k),e.setEdgeAttribute(C,n.edgeMaxIndexAttribute,x)}else for(var T=0;T<m;T++){var z=d[T];e.setEdgeAttribute(z,n.edgeIndexAttribute,T+1),e.setEdgeAttribute(z,n.edgeMaxIndexAttribute,m)}}}var KO=WebGLRenderingContext,WA=KO.UNSIGNED_BYTE,Jo=KO.FLOAT;function vd(e){var t=Lc(Lc({},pwe),e||{}),n=t,r=n.arrowHead,i=n.curvatureAttribute,a=n.drawLabel,o=(r==null?void 0:r.extremity)==="target"||(r==null?void 0:r.extremity)==="both",l=(r==null?void 0:r.extremity)==="source"||(r==null?void 0:r.extremity)==="both",c=["u_matrix","u_sizeRatio","u_dimensions","u_pixelRatio","u_feather","u_minEdgeThickness"].concat(ox(r?["u_lengthToThicknessRatio","u_widenessToThicknessRatio"]:[]));return(function(f){swe(d,f);function d(){var m;nwe(this,d);for(var p=arguments.length,g=new Array(p),y=0;y<p;y++)g[y]=arguments[y];return m=owe(this,d,[].concat(g)),FO(VO(m),"drawLabel",a||YO(t)),m}return iwe(d,[{key:"getDefinition",value:function(){return{VERTICES:6,VERTEX_SHADER_SOURCE:mwe(t),FRAGMENT_SHADER_SOURCE:dwe(t),METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:c,ATTRIBUTES:[{name:"a_source",size:2,type:Jo},{name:"a_target",size:2,type:Jo}].concat(ox(o?[{name:"a_targetSize",size:1,type:Jo}]:[]),ox(l?[{name:"a_sourceSize",size:1,type:Jo}]:[]),[{name:"a_thickness",size:1,type:Jo},{name:"a_curvature",size:1,type:Jo},{name:"a_color",size:4,type:WA,normalized:!0},{name:"a_id",size:4,type:WA,normalized:!0}]),CONSTANT_ATTRIBUTES:[{name:"a_current",size:1,type:Jo},{name:"a_direction",size:1,type:Jo}],CONSTANT_DATA:[[0,1],[0,-1],[1,1],[0,-1],[1,1],[1,-1]]}}},{key:"processVisibleItem",value:function(p,g,y,x,k){var w,C=k.size||1,S=y.x,T=y.y,z=x.x,A=x.y,L=ks(k.color),G=(w=k[i])!==null&&w!==void 0?w:WO,H=this.array;H[g++]=S,H[g++]=T,H[g++]=z,H[g++]=A,o&&(H[g++]=x.size),l&&(H[g++]=y.size),H[g++]=C,H[g++]=G,H[g++]=L,H[g++]=p}},{key:"setUniforms",value:function(p,g){var y=g.gl,x=g.uniformLocations,k=x.u_matrix,w=x.u_pixelRatio,C=x.u_feather,S=x.u_sizeRatio,T=x.u_dimensions,z=x.u_minEdgeThickness;if(y.uniformMatrix3fv(k,!1,p.matrix),y.uniform1f(w,p.pixelRatio),y.uniform1f(S,p.sizeRatio),y.uniform1f(C,p.antiAliasingFeather),y.uniform2f(T,p.width*p.pixelRatio,p.height*p.pixelRatio),y.uniform1f(z,p.minEdgeThickness),r){var A=x.u_lengthToThicknessRatio,L=x.u_widenessToThicknessRatio;y.uniform1f(A,r.lengthToThicknessRatio),y.uniform1f(L,r.widenessToThicknessRatio)}}}]),d})(Ud)}vd();vd({arrowHead:o0});vd({arrowHead:Lc(Lc({},o0),{},{extremity:"both"})});function Jw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ywe(e){if(Array.isArray(e))return Jw(e)}function vwe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bwe(e,t){if(e){if(typeof e=="string")return Jw(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jw(e,t):void 0}}function xwe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
734
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LE(e){return ywe(e)||vwe(e)||bwe(e)||xwe()}function ME(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wwe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZO(e){var t=wwe(e,"string");return typeof t=="symbol"?t:t+""}function kwe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ZO(r.key),r)}}function OE(e,t,n){return t&&kwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mc(e){return Mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mc(e)}function QO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QO=function(){return!!e})()}function qi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ewe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qi(e)}function JO(e,t,n){return t=Mc(t),Ewe(e,QO()?Reflect.construct(t,n||[],Mc(e).constructor):t.apply(e,n))}function Swe(e,t){for(;!{}.hasOwnProperty.call(e,t)&&(e=Mc(e))!==null;);return e}function e2(){return e2=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Swe(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},e2.apply(null,arguments)}function KA(e,t,n,r){var i=e2(Mc(e.prototype),t,n);return typeof i=="function"?function(a){return i.apply(n,a)}:i}function t2(e,t){return t2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},t2(e,t)}function eD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&t2(e,t)}function tr(e,t,n){return(t=ZO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Twe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Cwe(e,t){if(e==null)return{};var n,r,i=Twe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ZA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZA(Object(n),!0).forEach(function(r){tr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Awe(e){var t=e.texturesCount,n=`
|
|
735
|
+
precision highp float;
|
|
736
|
+
|
|
737
|
+
varying vec4 v_color;
|
|
738
|
+
varying vec2 v_diffVector;
|
|
739
|
+
varying float v_radius;
|
|
740
|
+
varying vec4 v_texture;
|
|
741
|
+
varying float v_textureIndex;
|
|
742
|
+
|
|
743
|
+
uniform sampler2D u_atlas[`.concat(t,`];
|
|
744
|
+
uniform float u_correctionRatio;
|
|
745
|
+
uniform float u_cameraAngle;
|
|
746
|
+
uniform float u_percentagePadding;
|
|
747
|
+
uniform bool u_colorizeImages;
|
|
748
|
+
uniform bool u_keepWithinCircle;
|
|
749
|
+
|
|
750
|
+
const vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);
|
|
751
|
+
|
|
752
|
+
const float radius = 0.5;
|
|
753
|
+
|
|
754
|
+
void main(void) {
|
|
755
|
+
float border = 2.0 * u_correctionRatio;
|
|
756
|
+
float dist = length(v_diffVector);
|
|
757
|
+
vec4 color = gl_FragColor;
|
|
758
|
+
|
|
759
|
+
float c = cos(-u_cameraAngle);
|
|
760
|
+
float s = sin(-u_cameraAngle);
|
|
761
|
+
vec2 diffVector = mat2(c, s, -s, c) * (v_diffVector);
|
|
762
|
+
|
|
763
|
+
// No antialiasing for picking mode:
|
|
764
|
+
#ifdef PICKING_MODE
|
|
765
|
+
border = 0.0;
|
|
766
|
+
color = v_color;
|
|
767
|
+
|
|
768
|
+
#else
|
|
769
|
+
// First case: No image to display
|
|
770
|
+
if (v_texture.w <= 0.0) {
|
|
771
|
+
if (!u_colorizeImages) {
|
|
772
|
+
color = v_color;
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
// Second case: Image loaded into the texture
|
|
777
|
+
else {
|
|
778
|
+
float paddingRatio = 1.0 + 2.0 * u_percentagePadding;
|
|
779
|
+
float coef = u_keepWithinCircle ? 1.0 : `).concat(Math.SQRT2,`;
|
|
780
|
+
vec2 coordinateInTexture = diffVector * vec2(paddingRatio, -paddingRatio) / v_radius / 2.0 * coef + vec2(0.5, 0.5);
|
|
781
|
+
int index = int(v_textureIndex + 0.5); // +0.5 avoid rounding errors
|
|
782
|
+
|
|
783
|
+
bool noTextureFound = false;
|
|
784
|
+
vec4 texel;
|
|
785
|
+
|
|
786
|
+
`).concat(LE(new Array(t)).map(function(r,i){return"if (index == ".concat(i,") texel = texture2D(u_atlas[").concat(i,"], (v_texture.xy + coordinateInTexture * v_texture.zw), -1.0);")}).join(`
|
|
787
|
+
else `)+`else {
|
|
788
|
+
texel = texture2D(u_atlas[0], (v_texture.xy + coordinateInTexture * v_texture.zw), -1.0);
|
|
789
|
+
noTextureFound = true;
|
|
790
|
+
}`,`
|
|
791
|
+
|
|
792
|
+
if (noTextureFound) {
|
|
793
|
+
color = v_color;
|
|
794
|
+
} else {
|
|
795
|
+
// Colorize all visible image pixels:
|
|
796
|
+
if (u_colorizeImages) {
|
|
797
|
+
color = mix(gl_FragColor, v_color, texel.a);
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
// Colorize background pixels, keep image pixel colors:
|
|
801
|
+
else {
|
|
802
|
+
color = vec4(mix(v_color, texel, texel.a).rgb, max(texel.a, v_color.a));
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
// Erase pixels "in the padding":
|
|
806
|
+
if (abs(diffVector.x) > v_radius / paddingRatio || abs(diffVector.y) > v_radius / paddingRatio) {
|
|
807
|
+
color = u_colorizeImages ? gl_FragColor : v_color;
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
#endif
|
|
812
|
+
|
|
813
|
+
// Crop in a circle when u_keepWithinCircle is truthy:
|
|
814
|
+
if (u_keepWithinCircle) {
|
|
815
|
+
if (dist < v_radius - border) {
|
|
816
|
+
gl_FragColor = color;
|
|
817
|
+
} else if (dist < v_radius) {
|
|
818
|
+
gl_FragColor = mix(transparent, color, (v_radius - dist) / border);
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
// Crop in a square else:
|
|
823
|
+
else {
|
|
824
|
+
float squareHalfSize = v_radius * `).concat(Math.SQRT1_2*Math.cos(Math.PI/12),`;
|
|
825
|
+
if (abs(diffVector.x) > squareHalfSize || abs(diffVector.y) > squareHalfSize) {
|
|
826
|
+
gl_FragColor = transparent;
|
|
827
|
+
} else {
|
|
828
|
+
gl_FragColor = color;
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
`);return n}var jwe=`
|
|
833
|
+
attribute vec4 a_id;
|
|
834
|
+
attribute vec4 a_color;
|
|
835
|
+
attribute vec2 a_position;
|
|
836
|
+
attribute float a_size;
|
|
837
|
+
attribute float a_angle;
|
|
838
|
+
attribute vec4 a_texture;
|
|
839
|
+
attribute float a_textureIndex;
|
|
840
|
+
|
|
841
|
+
uniform mat3 u_matrix;
|
|
842
|
+
uniform float u_sizeRatio;
|
|
843
|
+
uniform float u_correctionRatio;
|
|
844
|
+
|
|
845
|
+
varying vec4 v_color;
|
|
846
|
+
varying vec2 v_diffVector;
|
|
847
|
+
varying float v_radius;
|
|
848
|
+
varying vec4 v_texture;
|
|
849
|
+
varying float v_textureIndex;
|
|
850
|
+
|
|
851
|
+
const float bias = 255.0 / 254.0;
|
|
852
|
+
const float marginRatio = 1.05;
|
|
853
|
+
|
|
854
|
+
void main() {
|
|
855
|
+
float size = a_size * u_correctionRatio / u_sizeRatio * 4.0;
|
|
856
|
+
vec2 diffVector = size * vec2(cos(a_angle), sin(a_angle));
|
|
857
|
+
vec2 position = a_position + diffVector * marginRatio;
|
|
858
|
+
gl_Position = vec4(
|
|
859
|
+
(u_matrix * vec3(position, 1)).xy,
|
|
860
|
+
0,
|
|
861
|
+
1
|
|
862
|
+
);
|
|
863
|
+
|
|
864
|
+
v_diffVector = diffVector;
|
|
865
|
+
v_radius = size / 2.0 / marginRatio;
|
|
866
|
+
|
|
867
|
+
#ifdef PICKING_MODE
|
|
868
|
+
// For picking mode, we use the ID as the color:
|
|
869
|
+
v_color = a_id;
|
|
870
|
+
#else
|
|
871
|
+
// For normal mode, we use the color:
|
|
872
|
+
v_color = a_color;
|
|
873
|
+
|
|
874
|
+
// Pass the texture coordinates:
|
|
875
|
+
v_textureIndex = a_textureIndex;
|
|
876
|
+
v_texture = a_texture;
|
|
877
|
+
#endif
|
|
878
|
+
|
|
879
|
+
v_color.a *= bias;
|
|
880
|
+
}
|
|
881
|
+
`,Rwe=jwe;function Ll(){Ll=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(j,N,F){j[N]=F.value},a=typeof Symbol=="function"?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function f(j,N,F){return Object.defineProperty(j,N,{value:F,enumerable:!0,configurable:!0,writable:!0}),j[N]}try{f({},"")}catch{f=function(N,F,Z){return N[F]=Z}}function d(j,N,F,Z){var O=N&&N.prototype instanceof w?N:w,U=Object.create(O.prototype),K=new B(Z||[]);return i(U,"_invoke",{value:q(j,F,K)}),U}function m(j,N,F){try{return{type:"normal",arg:j.call(N,F)}}catch(Z){return{type:"throw",arg:Z}}}t.wrap=d;var p="suspendedStart",g="suspendedYield",y="executing",x="completed",k={};function w(){}function C(){}function S(){}var T={};f(T,o,function(){return this});var z=Object.getPrototypeOf,A=z&&z(z(D([])));A&&A!==n&&r.call(A,o)&&(T=A);var L=S.prototype=w.prototype=Object.create(T);function G(j){["next","throw","return"].forEach(function(N){f(j,N,function(F){return this._invoke(N,F)})})}function H(j,N){function F(O,U,K,$){var ie=m(j[O],j,U);if(ie.type!=="throw"){var ue=ie.arg,xe=ue.value;return xe&&typeof xe=="object"&&r.call(xe,"__await")?N.resolve(xe.__await).then(function(we){F("next",we,K,$)},function(we){F("throw",we,K,$)}):N.resolve(xe).then(function(we){ue.value=we,K(ue)},function(we){return F("throw",we,K,$)})}$(ie.arg)}var Z;i(this,"_invoke",{value:function(O,U){function K(){return new N(function($,ie){F(O,U,$,ie)})}return Z=Z?Z.then(K,K):K()}})}function q(j,N,F){var Z=p;return function(O,U){if(Z===y)throw Error("Generator is already running");if(Z===x){if(O==="throw")throw U;return{value:e,done:!0}}for(F.method=O,F.arg=U;;){var K=F.delegate;if(K){var $=V(K,F);if($){if($===k)continue;return $}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(Z===p)throw Z=x,F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);Z=y;var ie=m(j,N,F);if(ie.type==="normal"){if(Z=F.done?x:g,ie.arg===k)continue;return{value:ie.arg,done:F.done}}ie.type==="throw"&&(Z=x,F.method="throw",F.arg=ie.arg)}}}function V(j,N){var F=N.method,Z=j.iterator[F];if(Z===e)return N.delegate=null,F==="throw"&&j.iterator.return&&(N.method="return",N.arg=e,V(j,N),N.method==="throw")||F!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+F+"' method")),k;var O=m(Z,j.iterator,N.arg);if(O.type==="throw")return N.method="throw",N.arg=O.arg,N.delegate=null,k;var U=O.arg;return U?U.done?(N[j.resultName]=U.value,N.next=j.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,k):U:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,k)}function W(j){var N={tryLoc:j[0]};1 in j&&(N.catchLoc=j[1]),2 in j&&(N.finallyLoc=j[2],N.afterLoc=j[3]),this.tryEntries.push(N)}function I(j){var N=j.completion||{};N.type="normal",delete N.arg,j.completion=N}function B(j){this.tryEntries=[{tryLoc:"root"}],j.forEach(W,this),this.reset(!0)}function D(j){if(j||j===""){var N=j[o];if(N)return N.call(j);if(typeof j.next=="function")return j;if(!isNaN(j.length)){var F=-1,Z=function O(){for(;++F<j.length;)if(r.call(j,F))return O.value=j[F],O.done=!1,O;return O.value=e,O.done=!0,O};return Z.next=Z}}throw new TypeError(typeof j+" is not iterable")}return C.prototype=S,i(L,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:C,configurable:!0}),C.displayName=f(S,c,"GeneratorFunction"),t.isGeneratorFunction=function(j){var N=typeof j=="function"&&j.constructor;return!!N&&(N===C||(N.displayName||N.name)==="GeneratorFunction")},t.mark=function(j){return Object.setPrototypeOf?Object.setPrototypeOf(j,S):(j.__proto__=S,f(j,c,"GeneratorFunction")),j.prototype=Object.create(L),j},t.awrap=function(j){return{__await:j}},G(H.prototype),f(H.prototype,l,function(){return this}),t.AsyncIterator=H,t.async=function(j,N,F,Z,O){O===void 0&&(O=Promise);var U=new H(d(j,N,F,Z),O);return t.isGeneratorFunction(N)?U:U.next().then(function(K){return K.done?K.value:U.next()})},G(L),f(L,c,"Generator"),f(L,o,function(){return this}),f(L,"toString",function(){return"[object Generator]"}),t.keys=function(j){var N=Object(j),F=[];for(var Z in N)F.push(Z);return F.reverse(),function O(){for(;F.length;){var U=F.pop();if(U in N)return O.value=U,O.done=!1,O}return O.done=!0,O}},t.values=D,B.prototype={constructor:B,reset:function(j){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!j)for(var N in this)N.charAt(0)==="t"&&r.call(this,N)&&!isNaN(+N.slice(1))&&(this[N]=e)},stop:function(){this.done=!0;var j=this.tryEntries[0].completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(j){if(this.done)throw j;var N=this;function F(ie,ue){return U.type="throw",U.arg=j,N.next=ie,ue&&(N.method="next",N.arg=e),!!ue}for(var Z=this.tryEntries.length-1;Z>=0;--Z){var O=this.tryEntries[Z],U=O.completion;if(O.tryLoc==="root")return F("end");if(O.tryLoc<=this.prev){var K=r.call(O,"catchLoc"),$=r.call(O,"finallyLoc");if(K&&$){if(this.prev<O.catchLoc)return F(O.catchLoc,!0);if(this.prev<O.finallyLoc)return F(O.finallyLoc)}else if(K){if(this.prev<O.catchLoc)return F(O.catchLoc,!0)}else{if(!$)throw Error("try statement without catch or finally");if(this.prev<O.finallyLoc)return F(O.finallyLoc)}}}},abrupt:function(j,N){for(var F=this.tryEntries.length-1;F>=0;--F){var Z=this.tryEntries[F];if(Z.tryLoc<=this.prev&&r.call(Z,"finallyLoc")&&this.prev<Z.finallyLoc){var O=Z;break}}O&&(j==="break"||j==="continue")&&O.tryLoc<=N&&N<=O.finallyLoc&&(O=null);var U=O?O.completion:{};return U.type=j,U.arg=N,O?(this.method="next",this.next=O.finallyLoc,k):this.complete(U)},complete:function(j,N){if(j.type==="throw")throw j.arg;return j.type==="break"||j.type==="continue"?this.next=j.arg:j.type==="return"?(this.rval=this.arg=j.arg,this.method="return",this.next="end"):j.type==="normal"&&N&&(this.next=N),k},finish:function(j){for(var N=this.tryEntries.length-1;N>=0;--N){var F=this.tryEntries[N];if(F.finallyLoc===j)return this.complete(F.completion,F.afterLoc),I(F),k}},catch:function(j){for(var N=this.tryEntries.length-1;N>=0;--N){var F=this.tryEntries[N];if(F.tryLoc===j){var Z=F.completion;if(Z.type==="throw"){var O=Z.arg;I(F)}return O}}throw Error("illegal catch attempt")},delegateYield:function(j,N,F){return this.delegate={iterator:D(j),resultName:N,nextLoc:F},this.method==="next"&&(this.arg=e),k}},t}function QA(e,t,n,r,i,a,o){try{var l=e[a](o),c=l.value}catch(f){return void n(f)}l.done?t(c):Promise.resolve(c).then(r,i)}function DE(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(c){QA(a,r,i,o,l,"next",c)}function l(c){QA(a,r,i,o,l,"throw",c)}o(void 0)})}}var qE={size:{mode:"max",value:512},objectFit:"cover",correctCentering:!1,maxTextureSize:4096,debounceTimeout:500,crossOrigin:"anonymous"},Nwe=1;function n2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.crossOrigin;return new Promise(function(r,i){var a=new Image;a.addEventListener("load",function(){r(a)},{once:!0}),a.addEventListener("error",function(o){i(o.error)},{once:!0}),n&&a.setAttribute("crossOrigin",n),a.src=e})}function zwe(e){return r2.apply(this,arguments)}function r2(){return r2=DE(Ll().mark(function e(t){var n,r,i,a,o,l,c,f,d,m,p,g,y,x=arguments;return Ll().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(n=x.length>1&&x[1]!==void 0?x[1]:{},r=n.size,i=n.crossOrigin,i!=="use-credentials"){w.next=7;break}return w.next=4,fetch(t,{credentials:"include"});case 4:a=w.sent,w.next=10;break;case 7:return w.next=9,fetch(t);case 9:a=w.sent;case 10:return w.next=12,a.text();case 12:if(o=w.sent,l=new DOMParser().parseFromString(o,"image/svg+xml"),c=l.documentElement,f=c.getAttribute("width"),d=c.getAttribute("height"),!(!f||!d)){w.next=19;break}throw new Error("loadSVGImage: cannot use `size` if target SVG has no definite dimensions.");case 19:return typeof r=="number"&&(c.setAttribute("width",""+r),c.setAttribute("height",""+r)),m=new XMLSerializer().serializeToString(l),p=new Blob([m],{type:"image/svg+xml"}),g=URL.createObjectURL(p),y=n2(g),y.finally(function(){return URL.revokeObjectURL(g)}),w.abrupt("return",y);case 26:case"end":return w.stop()}},e)})),r2.apply(this,arguments)}function Lwe(e){return i2.apply(this,arguments)}function i2(){return i2=DE(Ll().mark(function e(t){var n,r,i,a,o,l,c=arguments;return Ll().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(r=c.length>1&&c[1]!==void 0?c[1]:{},i=r.size,a=r.crossOrigin,o=((n=t.split(/[#?]/)[0].split(".").pop())===null||n===void 0?void 0:n.trim().toLowerCase())==="svg",!(o&&i)){d.next=16;break}return d.prev=3,d.next=6,zwe(t,{size:i,crossOrigin:a});case 6:l=d.sent,d.next=14;break;case 9:return d.prev=9,d.t0=d.catch(3),d.next=13,n2(t,{crossOrigin:a});case 13:l=d.sent;case 14:d.next=19;break;case 16:return d.next=18,n2(t,{crossOrigin:a});case 18:l=d.sent;case 19:return d.abrupt("return",l);case 20:case"end":return d.stop()}},e,null,[[3,9]])})),i2.apply(this,arguments)}function Mwe(e,t,n){var r=n.objectFit,i=n.size,a=n.correctCentering,o=r==="contain"?Math.max(e.width,e.height):Math.min(e.width,e.height),l=i.mode==="auto"?o:i.mode==="force"?i.value:Math.min(i.value,o),c=(e.width-o)/2,f=(e.height-o)/2;if(a){var d=t.getCorrectionOffset(e,o);c=d.x,f=d.y}return{sourceX:c,sourceY:f,sourceSize:o,destinationSize:l}}function Owe(e,t,n){for(var r=t.canvas,i=r.width,a=r.height,o=[],l=n.x,c=n.y,f=n.rowHeight,d=n.maxRowWidth,m={},p=0,g=e.length;p<g;p++){var y=e[p],x=y.key,k=y.image,w=y.sourceSize,C=y.sourceX,S=y.sourceY,T=y.destinationSize,z=T+Nwe;c+z>a||l+z>i&&c+z+f>a||(l+z>i&&(d=Math.max(d,l),l=0,c+=f,f=z),o.push({key:x,image:k,sourceX:C,sourceY:S,sourceSize:w,destinationX:l,destinationY:c,destinationSize:T}),m[x]={x:l,y:c,size:T},l+=z,f=Math.max(f,z))}d=Math.max(d,l);for(var A=d,L=c+f,G=0,H=o.length;G<H;G++){var q=o[G],V=q.image,W=q.sourceSize,I=q.sourceX,B=q.sourceY,D=q.destinationSize,j=q.destinationX,N=q.destinationY;t.drawImage(V,I,B,W,W,j,N,D,D)}return{atlas:m,texture:t.getImageData(0,0,A,L),cursor:{x:l,y:c,rowHeight:f,maxRowWidth:d}}}function Dwe(e,t,n){var r=e.atlas,i=e.textures,a=e.cursor,o={atlas:Zr({},r),textures:LE(i.slice(0,-1)),cursor:Zr({},a)},l=[];for(var c in t){var f,d=t[c];if(d.status==="ready"){var m=(f=r[c])===null||f===void 0?void 0:f.textureIndex;typeof m!="number"&&l.push(Zr({key:c},d))}}for(var p=function(){var y=Owe(l,n,o.cursor),x=y.atlas,k=y.texture,w=y.cursor;o.cursor=w;var C=[];l.forEach(function(S){x[S.key]?o.atlas[S.key]=Zr(Zr({},x[S.key]),{},{textureIndex:o.textures.length}):C.push(S)}),o.textures.push(k),l=C,l.length&&(o.cursor={x:0,y:0,rowHeight:0,maxRowWidth:0},n.clearRect(0,0,n.canvas.width,n.canvas.height))};l.length;)p();return o}var qwe=(function(){function e(){ME(this,e),this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d",{willReadFrequently:!0})}return OE(e,[{key:"getCorrectionOffset",value:function(n,r){this.canvas.width=r,this.canvas.height=r,this.context.clearRect(0,0,r,r),this.context.drawImage(n,0,0,r,r);for(var i=this.context.getImageData(0,0,r,r).data,a=new Uint8ClampedArray(i.length/4),o=0;o<i.length;o++)a[o]=i[o*4+3];for(var l=0,c=0,f=0,d=0;d<r;d++)for(var m=0;m<r;m++){var p=a[d*r+m];f+=p,l+=p*m,c+=p*d}var g=l/f,y=c/f;return{x:g-r/2,y:y-r/2}}}]),e})(),S_=(function(e){eD(t,e);function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ME(this,t),n=JO(this,t),tr(qi(n),"canvas",document.createElement("canvas")),tr(qi(n),"ctx",n.canvas.getContext("2d",{willReadFrequently:!0})),tr(qi(n),"corrector",new qwe),tr(qi(n),"imageStates",{}),tr(qi(n),"textures",[n.ctx.getImageData(0,0,1,1)]),tr(qi(n),"lastTextureCursor",{x:0,y:0,rowHeight:0,maxRowWidth:0}),tr(qi(n),"atlas",{}),n.options=Zr(Zr({},qE),r),n.canvas.width=n.options.maxTextureSize,n.canvas.height=n.options.maxTextureSize,n}return OE(t,[{key:"scheduleGenerateTexture",value:function(){var r=this;typeof this.frameId!="number"&&(typeof this.options.debounceTimeout=="number"?this.frameId=window.setTimeout(function(){r.generateTextures(),r.frameId=void 0},this.options.debounceTimeout):this.generateTextures())}},{key:"generateTextures",value:function(){var r=Dwe({atlas:this.atlas,textures:this.textures,cursor:this.lastTextureCursor},this.imageStates,this.ctx),i=r.atlas,a=r.textures,o=r.cursor;this.atlas=i,this.textures=a,this.lastTextureCursor=o,this.emit(t.NEW_TEXTURE_EVENT,{atlas:i,textures:a})}},{key:"registerImage",value:(function(){var n=DE(Ll().mark(function i(a){var o,l;return Ll().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(!this.imageStates[a]){f.next=2;break}return f.abrupt("return");case 2:return this.imageStates[a]={status:"loading"},f.prev=3,o=this.options.size,f.next=7,Lwe(a,{size:o.mode==="force"?o.value:void 0,crossOrigin:this.options.crossOrigin||void 0});case 7:l=f.sent,this.imageStates[a]=Zr({status:"ready",image:l},Mwe(l,this.corrector,this.options)),this.scheduleGenerateTexture(),f.next=15;break;case 12:f.prev=12,f.t0=f.catch(3),this.imageStates[a]={status:"error"};case 15:case"end":return f.stop()}},i,this,[[3,12]])}));function r(i){return n.apply(this,arguments)}return r})()},{key:"getAtlas",value:function(){return this.atlas}},{key:"getTextures",value:function(){return this.textures}}]),t})(EE.EventEmitter);tr(S_,"NEW_TEXTURE_EVENT","newTexture");var Iwe=["drawHover","drawLabel","drawingMode","keepWithinCircle","padding","colorAttribute","imageAttribute"],tD=WebGLRenderingContext,JA=tD.UNSIGNED_BYTE,_h=tD.FLOAT,$we=Zr(Zr({},qE),{},{drawingMode:"background",keepWithinCircle:!0,drawLabel:void 0,drawHover:void 0,padding:0,colorAttribute:"color",imageAttribute:"image"}),Pwe=["u_sizeRatio","u_correctionRatio","u_cameraAngle","u_percentagePadding","u_matrix","u_colorizeImages","u_keepWithinCircle","u_atlas"];function IE(e){var t,n=document.createElement("canvas").getContext("webgl"),r=Math.min(n.getParameter(n.MAX_TEXTURE_SIZE),qE.maxTextureSize);n.canvas.remove();var i=Zr(Zr(Zr({},$we),{maxTextureSize:r}),e||{}),a=i.drawHover,o=i.drawLabel,l=i.drawingMode,c=i.keepWithinCircle,f=i.padding,d=i.colorAttribute,m=i.imageAttribute,p=Cwe(i,Iwe),g=new S_(p);return t=(function(y){eD(x,y);function x(k,w,C){var S;return ME(this,x),S=JO(this,x,[k,w,C]),tr(qi(S),"drawLabel",o),tr(qi(S),"drawHover",a),tr(qi(S),"textureManagerCallback",null),S.textureManagerCallback=function(T){var z=T.atlas,A=T.textures,L=A.length!==S.textures.length;S.atlas=z,S.textureImages=A,L&&S.upgradeShaders(),S.bindTextures(),S.latestRenderParams&&S.render(S.latestRenderParams),S.renderer&&S.renderer.refresh&&S.renderer.refresh()},g.on(S_.NEW_TEXTURE_EVENT,S.textureManagerCallback),S.atlas=g.getAtlas(),S.textureImages=g.getTextures(),S.textures=S.textureImages.map(function(){return k.createTexture()}),S.bindTextures(),S}return OE(x,[{key:"getDefinition",value:function(){return{VERTICES:3,VERTEX_SHADER_SOURCE:Rwe,FRAGMENT_SHADER_SOURCE:Awe({texturesCount:g.getTextures().length}),METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:Pwe,ATTRIBUTES:[{name:"a_position",size:2,type:_h},{name:"a_size",size:1,type:_h},{name:"a_color",size:4,type:JA,normalized:!0},{name:"a_id",size:4,type:JA,normalized:!0},{name:"a_texture",size:4,type:_h},{name:"a_textureIndex",size:1,type:_h}],CONSTANT_ATTRIBUTES:[{name:"a_angle",size:1,type:_h}],CONSTANT_DATA:[[x.ANGLE_1],[x.ANGLE_2],[x.ANGLE_3]]}}},{key:"upgradeShaders",value:function(){var w=this.getDefinition(),C=this.normalProgram,S=C.program,T=C.buffer,z=C.vertexShader,A=C.fragmentShader,L=C.gl;L.deleteProgram(S),L.deleteBuffer(T),L.deleteShader(z),L.deleteShader(A),this.normalProgram=this.getProgramInfo("normal",L,w.VERTEX_SHADER_SOURCE,w.FRAGMENT_SHADER_SOURCE,null)}},{key:"kill",value:function(){var w,C=(w=this.normalProgram)===null||w===void 0?void 0:w.gl;if(C)for(var S=0;S<this.textures.length;S++)C.deleteTexture(this.textures[S]);this.textureManagerCallback&&(g.off(S_.NEW_TEXTURE_EVENT,this.textureManagerCallback),this.textureManagerCallback=null),KA(x,"kill",this)([])}},{key:"bindTextures",value:function(){for(var w=this.normalProgram.gl,C=0;C<this.textureImages.length;C++){if(C>=this.textures.length){var S=w.createTexture();S&&this.textures.push(S)}w.activeTexture(w.TEXTURE0+C),w.bindTexture(w.TEXTURE_2D,this.textures[C]),w.texImage2D(w.TEXTURE_2D,0,w.RGBA,w.RGBA,w.UNSIGNED_BYTE,this.textureImages[C]),w.generateMipmap(w.TEXTURE_2D)}}},{key:"renderProgram",value:function(w,C){if(!C.isPicking)for(var S=C.gl,T=0;T<this.textureImages.length;T++)S.activeTexture(S.TEXTURE0+T),S.bindTexture(S.TEXTURE_2D,this.textures[T]);KA(x,"renderProgram",this)([w,C])}},{key:"processVisibleItem",value:function(w,C,S){var T=this.array,z=ks(S[d]),A=S[m],L=A?this.atlas[A]:void 0;if(typeof A=="string"&&!L&&g.registerImage(A),T[C++]=S.x,T[C++]=S.y,T[C++]=S.size,T[C++]=z,T[C++]=w,L&&typeof L.textureIndex=="number"){var G=this.textureImages[L.textureIndex],H=G.width,q=G.height;T[C++]=L.x/H,T[C++]=L.y/q,T[C++]=L.size/H,T[C++]=L.size/q,T[C++]=L.textureIndex}else T[C++]=0,T[C++]=0,T[C++]=0,T[C++]=0,T[C++]=0}},{key:"setUniforms",value:function(w,C){var S=C.gl,T=C.uniformLocations,z=T.u_sizeRatio,A=T.u_correctionRatio,L=T.u_matrix,G=T.u_atlas,H=T.u_colorizeImages,q=T.u_keepWithinCircle,V=T.u_cameraAngle,W=T.u_percentagePadding;this.latestRenderParams=w,S.uniform1f(A,w.correctionRatio),S.uniform1f(z,c?w.sizeRatio:w.sizeRatio/Math.SQRT2),S.uniform1f(V,w.cameraAngle),S.uniform1f(W,f),S.uniformMatrix3fv(L,!1,w.matrix),S.uniform1iv(G,LE(new Array(this.textureImages.length)).map(function(I,B){return B})),S.uniform1i(H,l==="color"?1:0),S.uniform1i(q,c?1:0)}}]),x})(SO),tr(t,"ANGLE_1",0),tr(t,"ANGLE_2",2*Math.PI/3),tr(t,"ANGLE_3",4*Math.PI/3),tr(t,"textureManager",g),t}IE();IE({keepWithinCircle:!1,size:{mode:"force",value:256},drawingMode:"color",correctCentering:!0});function Uwe(e,t,n={}){const r=n.onSelect;t={nodes:(t==null?void 0:t.nodes)??[],edges:(t==null?void 0:t.edges)??[]};const i={destroy(){},filter(){},focusNode(){},clearSelection(){},resetLayout(){},setFilter(){}};function a({drawLabel:R,marker:P="diamond"}={}){const{UNSIGNED_BYTE:Y,FLOAT:re}=WebGLRenderingContext,ge=P==="hollowTriangle"?2:1,be=P==="diamond"?1:0,Ge=8,He=16,Je=`
|
|
882
|
+
attribute vec4 a_id;
|
|
883
|
+
attribute vec4 a_color;
|
|
884
|
+
attribute float a_direction;
|
|
885
|
+
attribute float a_thickness;
|
|
886
|
+
attribute vec2 a_source;
|
|
887
|
+
attribute vec2 a_target;
|
|
888
|
+
attribute float a_current;
|
|
889
|
+
attribute float a_curvature;
|
|
890
|
+
attribute float a_sourceSize;
|
|
891
|
+
attribute float a_targetSize;
|
|
892
|
+
|
|
893
|
+
uniform mat3 u_matrix;
|
|
894
|
+
uniform float u_sizeRatio;
|
|
895
|
+
uniform float u_pixelRatio;
|
|
896
|
+
uniform vec2 u_dimensions;
|
|
897
|
+
uniform float u_minEdgeThickness;
|
|
898
|
+
uniform float u_feather;
|
|
899
|
+
uniform float u_widenessToThicknessRatio;
|
|
900
|
+
|
|
901
|
+
varying vec4 v_color;
|
|
902
|
+
varying float v_thickness;
|
|
903
|
+
varying float v_feather;
|
|
904
|
+
varying vec2 v_cpA;
|
|
905
|
+
varying vec2 v_cpB;
|
|
906
|
+
varying vec2 v_cpC;
|
|
907
|
+
varying vec2 v_sourcePoint;
|
|
908
|
+
varying vec2 v_targetPoint;
|
|
909
|
+
varying float v_sourceSize;
|
|
910
|
+
varying float v_targetSize;
|
|
911
|
+
|
|
912
|
+
const float bias = 255.0 / 254.0;
|
|
913
|
+
const float epsilon = 0.7;
|
|
914
|
+
|
|
915
|
+
vec2 clipspaceToViewport(vec2 pos, vec2 dimensions) {
|
|
916
|
+
return vec2((pos.x + 1.0) * dimensions.x / 2.0, (pos.y + 1.0) * dimensions.y / 2.0);
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
vec2 viewportToClipspace(vec2 pos, vec2 dimensions) {
|
|
920
|
+
return vec2(pos.x / dimensions.x * 2.0 - 1.0, pos.y / dimensions.y * 2.0 - 1.0);
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
void main() {
|
|
924
|
+
vec2 position = a_source * max(0.0, a_current) + a_target * max(0.0, 1.0 - a_current);
|
|
925
|
+
position = (u_matrix * vec3(position, 1)).xy;
|
|
926
|
+
|
|
927
|
+
vec2 source = (u_matrix * vec3(a_source, 1)).xy;
|
|
928
|
+
vec2 target = (u_matrix * vec3(a_target, 1)).xy;
|
|
929
|
+
|
|
930
|
+
vec2 viewportPosition = clipspaceToViewport(position, u_dimensions);
|
|
931
|
+
vec2 viewportSource = clipspaceToViewport(source, u_dimensions);
|
|
932
|
+
vec2 viewportTarget = clipspaceToViewport(target, u_dimensions);
|
|
933
|
+
|
|
934
|
+
vec2 delta = viewportTarget.xy - viewportSource.xy;
|
|
935
|
+
float len = max(1.0, length(delta));
|
|
936
|
+
vec2 normal = vec2(-delta.y, delta.x) * a_direction;
|
|
937
|
+
vec2 unitNormal = normal / len;
|
|
938
|
+
float boundingBoxThickness = len * a_curvature;
|
|
939
|
+
|
|
940
|
+
float curveThickness = max(u_minEdgeThickness, a_thickness);
|
|
941
|
+
v_thickness = curveThickness * u_pixelRatio;
|
|
942
|
+
v_feather = u_feather;
|
|
943
|
+
|
|
944
|
+
v_cpA = viewportSource;
|
|
945
|
+
v_cpB = 0.5 * (viewportSource + viewportTarget) + unitNormal * a_direction * boundingBoxThickness;
|
|
946
|
+
v_cpC = viewportTarget;
|
|
947
|
+
v_sourcePoint = viewportSource;
|
|
948
|
+
v_targetPoint = viewportTarget;
|
|
949
|
+
v_sourceSize = a_sourceSize * u_pixelRatio / u_sizeRatio;
|
|
950
|
+
v_targetSize = a_targetSize * u_pixelRatio / u_sizeRatio;
|
|
951
|
+
|
|
952
|
+
vec2 viewportOffsetPosition = (
|
|
953
|
+
viewportPosition +
|
|
954
|
+
unitNormal * (boundingBoxThickness / 2.0 + sign(boundingBoxThickness) * (curveThickness * u_widenessToThicknessRatio + 28.0 + epsilon)) *
|
|
955
|
+
max(0.0, a_direction)
|
|
956
|
+
);
|
|
957
|
+
|
|
958
|
+
position = viewportToClipspace(viewportOffsetPosition, u_dimensions);
|
|
959
|
+
gl_Position = vec4(position, 0, 1);
|
|
960
|
+
|
|
961
|
+
#ifdef PICKING_MODE
|
|
962
|
+
v_color = a_id;
|
|
963
|
+
#else
|
|
964
|
+
v_color = a_color;
|
|
965
|
+
#endif
|
|
966
|
+
v_color.a *= bias;
|
|
967
|
+
}
|
|
968
|
+
`,ze=`
|
|
969
|
+
precision highp float;
|
|
970
|
+
|
|
971
|
+
varying vec4 v_color;
|
|
972
|
+
varying float v_thickness;
|
|
973
|
+
varying float v_feather;
|
|
974
|
+
varying vec2 v_cpA;
|
|
975
|
+
varying vec2 v_cpB;
|
|
976
|
+
varying vec2 v_cpC;
|
|
977
|
+
varying vec2 v_sourcePoint;
|
|
978
|
+
varying vec2 v_targetPoint;
|
|
979
|
+
varying float v_sourceSize;
|
|
980
|
+
varying float v_targetSize;
|
|
981
|
+
|
|
982
|
+
uniform float u_lengthToThicknessRatio;
|
|
983
|
+
uniform float u_widenessToThicknessRatio;
|
|
984
|
+
uniform float u_markerKind;
|
|
985
|
+
uniform float u_targetArrowFill;
|
|
986
|
+
uniform float u_dashLength;
|
|
987
|
+
uniform float u_dashPeriod;
|
|
988
|
+
uniform float u_pixelRatio;
|
|
989
|
+
|
|
990
|
+
const vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);
|
|
991
|
+
|
|
992
|
+
float det(vec2 a, vec2 b) {
|
|
993
|
+
return a.x * b.y - b.x * a.y;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
vec2 getDistanceVector(vec2 b0, vec2 b1, vec2 b2) {
|
|
997
|
+
float a = det(b0, b2), b = 2.0 * det(b1, b0), d = 2.0 * det(b2, b1);
|
|
998
|
+
float f = b * d - a * a;
|
|
999
|
+
vec2 d21 = b2 - b1, d10 = b1 - b0, d20 = b2 - b0;
|
|
1000
|
+
vec2 gf = 2.0 * (b * d21 + d * d10 + a * d20);
|
|
1001
|
+
gf = vec2(gf.y, -gf.x);
|
|
1002
|
+
vec2 pp = -f * gf / dot(gf, gf);
|
|
1003
|
+
vec2 d0p = b0 - pp;
|
|
1004
|
+
float ap = det(d0p, d20), bp = 2.0 * det(d10, d0p);
|
|
1005
|
+
float t = clamp((ap + bp) / (2.0 * a + b + d), 0.0, 1.0);
|
|
1006
|
+
return mix(mix(b0, b1, t), mix(b1, b2, t), t);
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
float distToQuadraticBezierCurve(vec2 p, vec2 b0, vec2 b1, vec2 b2) {
|
|
1010
|
+
return length(getDistanceVector(b0 - p, b1 - p, b2 - p));
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
float distToSegment(vec2 p, vec2 a, vec2 b) {
|
|
1014
|
+
vec2 pa = p - a;
|
|
1015
|
+
vec2 ba = b - a;
|
|
1016
|
+
float h = clamp(dot(pa, ba) / max(dot(ba, ba), 1.0), 0.0, 1.0);
|
|
1017
|
+
return length(pa - ba * h);
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
float approximateCurveT(vec2 p) {
|
|
1021
|
+
vec2 chord = v_cpC - v_cpA;
|
|
1022
|
+
float chordLength = max(1.0, dot(chord, chord));
|
|
1023
|
+
return clamp(dot(p - v_cpA, chord) / chordLength, 0.0, 1.0);
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
void main(void) {
|
|
1027
|
+
vec2 p = gl_FragCoord.xy;
|
|
1028
|
+
vec2 sourceTangentSeed = mix(v_cpB - v_cpA, v_cpC - v_cpB, 0.08);
|
|
1029
|
+
if (length(sourceTangentSeed) < 0.5) sourceTangentSeed = v_cpC - v_cpA;
|
|
1030
|
+
vec2 sourceTangent = normalize(sourceTangentSeed);
|
|
1031
|
+
vec2 sourceNormal = vec2(-sourceTangent.y, sourceTangent.x);
|
|
1032
|
+
vec2 targetTangentSeed = mix(v_cpB - v_cpA, v_cpC - v_cpB, 0.92);
|
|
1033
|
+
if (length(targetTangentSeed) < 0.5) targetTangentSeed = v_cpC - v_cpA;
|
|
1034
|
+
vec2 targetTangent = normalize(targetTangentSeed);
|
|
1035
|
+
vec2 targetNormal = vec2(-targetTangent.y, targetTangent.x);
|
|
1036
|
+
|
|
1037
|
+
float diamondRadius = 7.5 * u_pixelRatio;
|
|
1038
|
+
float diamondStroke = max(1.15 * u_pixelRatio, v_thickness * 0.45);
|
|
1039
|
+
vec2 diamondCenter = v_sourcePoint + sourceTangent * (v_sourceSize + diamondRadius + 3.0 * u_pixelRatio);
|
|
1040
|
+
vec2 diamondRel = p - diamondCenter;
|
|
1041
|
+
float diamondSignedDistance = abs(dot(diamondRel, sourceTangent)) + abs(dot(diamondRel, sourceNormal)) - diamondRadius;
|
|
1042
|
+
bool diamondStrokeHit = u_markerKind < 1.5 && abs(diamondSignedDistance) <= diamondStroke;
|
|
1043
|
+
|
|
1044
|
+
float triangleLength = 11.0 * u_pixelRatio;
|
|
1045
|
+
float triangleWidth = 6.6 * u_pixelRatio;
|
|
1046
|
+
float triangleStroke = max(1.05 * u_pixelRatio, v_thickness * 0.4);
|
|
1047
|
+
vec2 triangleTip = v_targetPoint - targetTangent * (v_targetSize + 3.0 * u_pixelRatio);
|
|
1048
|
+
vec2 triangleBase = triangleTip - targetTangent * triangleLength;
|
|
1049
|
+
vec2 triangleLeft = triangleBase + targetNormal * triangleWidth;
|
|
1050
|
+
vec2 triangleRight = triangleBase - targetNormal * triangleWidth;
|
|
1051
|
+
float triangleDistance = min(
|
|
1052
|
+
distToSegment(p, triangleTip, triangleLeft),
|
|
1053
|
+
min(distToSegment(p, triangleTip, triangleRight), distToSegment(p, triangleLeft, triangleRight))
|
|
1054
|
+
);
|
|
1055
|
+
bool triangleStrokeHit = u_markerKind > 1.5 && triangleDistance <= triangleStroke;
|
|
1056
|
+
|
|
1057
|
+
float dist = distToQuadraticBezierCurve(p, v_cpA, v_cpB, v_cpC);
|
|
1058
|
+
float thickness = v_thickness;
|
|
1059
|
+
float distToTarget = length(p - v_targetPoint);
|
|
1060
|
+
float targetArrowLength = v_targetSize + thickness * u_lengthToThicknessRatio;
|
|
1061
|
+
if (u_targetArrowFill > 0.5 && distToTarget < targetArrowLength) {
|
|
1062
|
+
thickness = (distToTarget - v_targetSize) / (targetArrowLength - v_targetSize) * u_widenessToThicknessRatio * thickness;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
float t = approximateCurveT(p);
|
|
1066
|
+
float dashPosition = mod(t * length(v_cpC - v_cpA), u_dashPeriod);
|
|
1067
|
+
bool dashVisible = dashPosition < u_dashLength || (u_targetArrowFill > 0.5 && distToTarget < targetArrowLength);
|
|
1068
|
+
float halfThickness = thickness / 2.0;
|
|
1069
|
+
|
|
1070
|
+
if (diamondStrokeHit || triangleStrokeHit || (dashVisible && dist < halfThickness)) {
|
|
1071
|
+
#ifdef PICKING_MODE
|
|
1072
|
+
gl_FragColor = v_color;
|
|
1073
|
+
#else
|
|
1074
|
+
float edgeAlpha = 1.0 - smoothstep(max(halfThickness - v_feather, 0.0), halfThickness, dist);
|
|
1075
|
+
float diamondAlpha = 1.0 - smoothstep(max(diamondStroke - v_feather, 0.0), diamondStroke, abs(diamondSignedDistance));
|
|
1076
|
+
float triangleAlpha = 1.0 - smoothstep(max(triangleStroke - v_feather, 0.0), triangleStroke, triangleDistance);
|
|
1077
|
+
gl_FragColor = vec4(v_color.rgb, v_color.a * max(edgeAlpha, max(diamondAlpha, triangleAlpha)));
|
|
1078
|
+
#endif
|
|
1079
|
+
} else {
|
|
1080
|
+
gl_FragColor = transparent;
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
`;return class extends Ud{constructor(){super(...arguments);pe(this,"drawLabel",R)}getDefinition(){return{VERTICES:6,VERTEX_SHADER_SOURCE:Je,FRAGMENT_SHADER_SOURCE:ze,METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:["u_matrix","u_sizeRatio","u_dimensions","u_pixelRatio","u_feather","u_minEdgeThickness","u_lengthToThicknessRatio","u_widenessToThicknessRatio","u_markerKind","u_targetArrowFill","u_dashLength","u_dashPeriod"],ATTRIBUTES:[{name:"a_source",size:2,type:re},{name:"a_target",size:2,type:re},{name:"a_sourceSize",size:1,type:re},{name:"a_targetSize",size:1,type:re},{name:"a_thickness",size:1,type:re},{name:"a_curvature",size:1,type:re},{name:"a_color",size:4,type:Y,normalized:!0},{name:"a_id",size:4,type:Y,normalized:!0}],CONSTANT_ATTRIBUTES:[{name:"a_current",size:1,type:re},{name:"a_direction",size:1,type:re}],CONSTANT_DATA:[[0,1],[0,-1],[1,1],[0,-1],[1,1],[1,-1]]}}processVisibleItem(Tt,bt,$t,na,zs){const Co=ks(zs.color),Ql=Number(zs.curvature??.25),Ls=Number(zs.size||1),Er=this.array;Er[bt++]=$t.x,Er[bt++]=$t.y,Er[bt++]=na.x,Er[bt++]=na.y,Er[bt++]=$t.size,Er[bt++]=na.size,Er[bt++]=Ls,Er[bt++]=Ql,Er[bt++]=Co,Er[bt++]=Tt}setUniforms(Tt,{gl:bt,uniformLocations:$t}){bt.uniformMatrix3fv($t.u_matrix,!1,Tt.matrix),bt.uniform1f($t.u_pixelRatio,Tt.pixelRatio),bt.uniform1f($t.u_sizeRatio,Tt.sizeRatio),bt.uniform1f($t.u_feather,Tt.antiAliasingFeather),bt.uniform2f($t.u_dimensions,Tt.width*Tt.pixelRatio,Tt.height*Tt.pixelRatio),bt.uniform1f($t.u_minEdgeThickness,Tt.minEdgeThickness),bt.uniform1f($t.u_lengthToThicknessRatio,3.2),bt.uniform1f($t.u_widenessToThicknessRatio,2.1),bt.uniform1f($t.u_markerKind,ge),bt.uniform1f($t.u_targetArrowFill,be),bt.uniform1f($t.u_dashLength,Ge*Tt.pixelRatio),bt.uniform1f($t.u_dashPeriod,He*Tt.pixelRatio)}}}function o(R={}){return a({...R,marker:"diamond"})}function l(R={}){return a({...R,marker:"hollowTriangle"})}if(!t||!t.nodes.length)return i;const c=Qe("--bg-sunken"),f=Qe("--text-strong"),d=Qe("--text-body"),m=Qe("--text-muted"),p=Qe("--slate-0"),g=Qe("--slate-950"),y=Qe("--edge-default"),x={class:{fill:Qe("--rdf-class"),stroke:f,text:f},"object-property":{fill:Qe("--rdf-objprop"),stroke:d,text:f},"datatype-property":{fill:Qe("--rdf-dtprop"),stroke:d,text:p},"rdf-property":{fill:Qe("--rdf-rdfprop"),stroke:d,text:p},"named-individual":{fill:Qe("--rdf-individual"),stroke:Qe("--requirement-ink"),text:p},datatype:{fill:Qe("--rdf-datatype"),stroke:Qe("--ontology-ink"),text:f},restriction:{fill:Qe("--rdf-restriction"),stroke:f,text:f},"class-expression":{fill:Qe("--rdf-classexpr"),stroke:f,text:f},"node-shape":{fill:Qe("--rdf-nodeshape"),stroke:Qe("--rdf-propshape"),text:p},"property-shape":{fill:Qe("--rdf-propshape"),stroke:Qe("--rdf-nodeshape"),text:p},resource:{fill:c,stroke:Qe("--other-ink"),text:f}},k={"reqvire-context":{fill:Qe("--info"),stroke:Qe("--info-border"),text:p},"external-source":{fill:Qe("--other"),stroke:Qe("--other-ink"),text:f}},w={mutedNode:-10,base:0,focusedEdge:100,focusedNeighborNode:200,focusedNode:300},C=YO({curvatureAttribute:"curvature",defaultCurvature:.08,keepLabelUpright:!0});function S(R){return R.layer&&R.layer!=="authored"?k[R.layer]||x.resource:x[R.semantic_type]||x.resource}const T=new Map;t.edges.forEach(R=>{T.set(R.source,(T.get(R.source)||0)+1),T.set(R.target,(T.get(R.target)||0)+1)});const z=t.nodes.map(R=>{const P=Xn(R),Y=Vd(R),re=String(P||"").length,ge=T.get(R.id)||0,be=Math.max(46,Math.min(92,46+Math.sqrt(ge)*9)),Ge=Math.max(86,Math.min(238,re*6.5+26));return{...R,display_label:P,shape:Y,width:Y==="class-anchor"?be:Ge,height:Y==="class-anchor"?be:34}}),A=new Map(z.map(R=>[R.id,R])),L=z.filter(yo),G=z.filter(R=>!yo(R)),H=Hc(t.edges,A,L),q=new Map(G.map(R=>[R.id,R])),V=Fd(G,H),W=new Map(G.map(R=>[R.id,new Set([R.id])]));H.forEach(R=>{const P=typeof R.source=="string"?R.source:R.source.id,Y=typeof R.target=="string"?R.target:R.target.id;W.has(P)&&W.get(P).add(Y),W.has(Y)&&W.get(Y).add(P)});const I={role:new Set(["ontology-term","shacl-shape","resource","external-reference"]),origin:new Set(["authored","registry","construct"]),layer:new Set(["layer-authored"]),construct:new Set(["domain-range","subclass","membership","disjoint","equivalence","inverse","property-chain","property-characteristic","class-expression","shape-overlay"])},B=new Set(["class-membership","class-disjointness","class-expressions"]);z.forEach(R=>{R._ontologyRoles=h0(R),R._ontologyConstructs=Ri(R),R._ontologyOrigins=Zd(R),R._ontologyLayers=Qd(R)}),H.forEach(R=>{R._ontologyConstructs=rf(R),R._ontologyLayers=nf(R)});let D=new Set(G.map(R=>R.id)),j=null,N=null,F=null,Z=null,O=null,U=!1,K=!1,$=!1,ie=!1,ue=null,xe=0,we="",Pe=new Set;function _e(R){e.style.cursor=R,e.querySelectorAll("canvas").forEach(P=>{P.style.cursor=R})}Ae();function Ae(){e&&(tt(),N=new Rt({type:"directed",multi:!0,allowSelfLoops:!0}),Ee(G),G.forEach(R=>{const P=S(R),Y=Wt(R);N.addNode(R.id,{...R,type:Y?"constructGlyph":"circle",image:Y?Be(R):void 0,mutedImage:Y?Be(R,!0):void 0,label:Es(R),fullLabel:Zi(R),x:R.x,y:R.y,size:qe(R),color:P.fill,borderColor:P.stroke,hidden:!af(R)})}),H.forEach((R,P)=>{const Y=an(R.source),re=an(R.target);!N.hasNode(Y)||!N.hasNode(re)||N.addDirectedEdgeWithKey(`o${P}`,Y,re,{...R,source:Y,target:re,type:ti(R),label:vo(R),size:Xt(R),color:Ft(R),hidden:!Ir(R)})}),de(),Ne(),F=new qO(N,e,{allowInvalidContainer:!0,defaultEdgeType:"curvedArrow",zIndex:!0,nodeProgramClasses:{constructGlyph:IE({objectFit:"contain",keepWithinCircle:!0,correctCentering:!0,padding:.08,drawingMode:"background",size:{mode:"force",value:256}})},edgeProgramClasses:{curvedArrow:vd({arrowHead:{extremity:"target",lengthToThicknessRatio:2.5,widenessToThicknessRatio:2},drawLabel:Se}),subclassTriangleArrow:l({drawLabel:Se}),restrictionConnectorArrow:vd({arrowHead:{extremity:"target",lengthToThicknessRatio:2.8,widenessToThicknessRatio:1.8},drawLabel:Se}),constructDiamondArrow:o({drawLabel:Se})},renderEdgeLabels:!0,labelColor:{color:g},labelWeight:"600",edgeLabelSize:12,edgeLabelWeight:"600",edgeLabelColor:{color:f},labelDensity:.14,labelGridCellSize:88,labelRenderedSizeThreshold:8,nodeReducer:(R,P)=>{const Y={...P},re=Kl(),ge=Rs(),be=To(),Ge=lf(),He=re.length>0,Je=He&&be.some($t=>ge.has($t)),ze=He||be.length>0,Cn=Wt(P),gn=Z===R,Tt=O===R;if(He){const $t=ge.has(R),na=Je&&Ge.has(R);if(!$t&&!na&&!Tt)return Y.hidden=!0,Y.label="",Y.forceLabel=!1,Y.highlighted=!1,Y.zIndex=w.base,Y;Y.hidden=!1,Y.focused=Je?be.includes(R):re.includes(R),Y.inFocusNeighborhood=Je?na:$t}else Y.focused=be.includes(R),Y.inFocusNeighborhood=Ge.has(R);const bt=He&&Je?ge.has(R)&&!Ge.has(R)&&!Tt:ze&&!Y.inFocusNeighborhood&&!Tt;return Y.highlighted=ze&&(Y.inFocusNeighborhood||Tt||gn),Y.zIndex=Y.focused||Tt?w.focusedNode:Y.inFocusNeighborhood?w.focusedNeighborNode:w.base,!ze&&!Tt?(Y.label="",Y.forceLabel=!1):(Y.inFocusNeighborhood||Tt||gn)&&(Y.label=Cn?P.label||Ht(P):P.fullLabel||P.label||"",Y.forceLabel=!0),bt&&(Y.color=Fl(P.color||Qe("--other"),.2),Y.label="",Y.forceLabel=!1,Y.zIndex=w.mutedNode),Cn&&(Y.image=bt?P.mutedImage||Be(P,!0):P.image||Be(P),Y.color=bt?Y.color:P.color||S(P).fill,ze&&Y.inFocusNeighborhood&&!bt&&!Y.label&&(Y.label=P.label||Ht(P),Y.forceLabel=!0)),Y},edgeReducer:(R,P)=>{const Y={...P},re=Kl(),ge=Rs(),be=To(),Ge=lf(),He=re.length>0,Je=He&&be.some(Tt=>ge.has(Tt)),ze=He||be.length>0,Cn=Je?be:re,gn=Je?Ge:ge;return Y.hidden=!Ir(P)||!ze||(He?!ta(P,Cn,gn):!ta(P,be,Ge)),Y.zIndex=Y.hidden?w.base:w.focusedEdge,Y.hidden?(Y.label="",Y.forceLabel=!1,Y):(Y.color=un(P),Y.size=Math.max(.8,Number(P.size||Xt(P))),Y.label=ze?vo(P):"",Y.forceLabel=ze,Y)}}),F.on("clickNode",R=>{if(ie){ie=!1,he();return}he(),window.focusOntologyNode(R.node)}),F.on("clickStage",()=>{if(_e(""),$){$=!1,ue&&(window.clearTimeout(ue),ue=null);return}window.clearOntologySelection()}),F.on("enterNode",R=>{Z=R.node,_e("pointer"),F.refresh()}),F.on("leaveNode",R=>{Z===R.node&&(Z=null,F.refresh()),_e("")}),je())}function je(){if(!F||!N)return;F.on("downNode",P=>{D.has(P.node)&&(_e("grabbing"),U=!0,O=P.node,K=!1,he(),F.getCustomBBox()||F.setCustomBBox(F.getBBox()),$r())}),F.on("moveBody",({event:P})=>{if(!U||!O||!N.hasNode(O))return;const Y=F.viewportToGraph(P);N.mergeNodeAttributes(O,{x:Y.x,y:Y.y}),K=!0,$r(),P.preventSigmaDefault&&P.preventSigmaDefault(),P.original&&(P.original.preventDefault(),P.original.stopPropagation())});const R=()=>{!U&&!O||(K&&(ie=!0,he()),U=!1,O=null,K=!1,_e(Z?"pointer":""),$r())};F.on("upNode",R),F.on("upStage",R)}function he(){$=!0,ue&&window.clearTimeout(ue),ue=window.setTimeout(()=>{$=!1,ue=null},0)}function tt(){const R=Math.max(window.innerHeight-50,520);(!e.clientHeight||e.clientHeight<20)&&(e.style.height=`${R}px`)}function Ee(R){const P=new Map;R.forEach(re=>{const ge=Hd(re);P.has(ge)||P.set(ge,[]),P.get(ge).push(re)});const Y={shacl:[-7,-5],concept:[-1,0],value:[6,2],construct:[2,6]};for(const[re,ge]of P.entries()){const[be,Ge]=Y[re]||Y.concept,He=Math.max(2.5,Math.sqrt(ge.length)*.85);ge.forEach((Je,ze)=>{const Cn=ze/Math.max(ge.length,1)*Math.PI*2,gn=He*(.42+ze%13/13);Je.x=be+Math.cos(Cn)*gn,Je.y=Ge+Math.sin(Cn)*gn})}}function Ne(){try{const R=$g.inferSettings(N);$g.assign(N,{iterations:N.order>650?280:190,settings:{...R,adjustSizes:!0,barnesHutOptimize:!0,gravity:1.45,scalingRatio:16,slowDown:2}}),ce()}catch{}}function ce(){const R=new Map;N.forEachNode((P,Y)=>{const re=`${Math.round(Y.x*10)}:${Math.round(Y.y*10)}`,ge=R.get(re)||0;R.set(re,ge+1),ge>0&&N.mergeNodeAttributes(P,{x:Y.x+Math.cos(ge)*ge*.12,y:Y.y+Math.sin(ge)*ge*.12})})}function qe(R){const P=V.get(R.id)||0,Y=R.shape==="class-anchor"?8:6;return Math.max(5,Math.min(18,Y+Math.sqrt(P)*1.7))}function mt(R){return R.shape==="class-anchor"?120:160}function Xt(R){return R.rendered_kind==="property"?1.55:ni(R)||Ct(R,"subclass")?1.35:Ct(R,"disjoint")?1.2:1}function Ft(R){return R.rendered_kind==="property"||ni(R)||Ct(R,"subclass")?f:Ct(R,"disjoint")?Qe("--rdf-nodeshape"):Ct(R,"inverse")?Qe("--rdf-individual"):y}function un(R){return ni(R)||R.rendered_kind==="property"||Ct(R,"subclass")?f:Ct(R,"disjoint")?Qe("--rdf-nodeshape"):m}function ti(R){return Yt(R)?"constructDiamondArrow":Ct(R,"subclass")?"subclassTriangleArrow":Ct(R,"restriction")?"restrictionConnectorArrow":"curvedArrow"}function ni(R){return Yt(R)}function Yt(R){return Ct(R,"class-expression")}function Wi(R){const P=Number(R.parallelIndex);if(!Number.isFinite(P))return .22;const Y=Math.max(1,Math.abs(Number(R.parallelMaxIndex)||0),Math.abs(Number(R.parallelMinIndex)||0)),re=P/Y;return Math.abs(re)<.01?.08:Math.max(-.48,Math.min(.48,re*.28))}function de(){gwe(N),N.forEachEdge((R,P)=>{N.setEdgeAttribute(R,"curvature",Wi(P))})}function Se(R,P,Y,re,ge){if(!P.label)return;const be=Bl(P);be&&C(R,{...P,label:be},Y,re,{...ge,edgeLabelColor:{color:Ct(P,"subclass")?m:d}})}function Be(R,P=!1){const Y=Ht(R),re=Kt(R,"restriction"),ge=P?m:f,be=P?"0.2":"1",He=`<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256">
|
|
1084
|
+
${re?ct(Y,ge,be):Ze(s0({label:Y}),ge,be)}
|
|
1085
|
+
</svg>`;return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(He)}`}function Ze(R,P,Y){const re=Ji(R||"U");return`<text x="128" y="142" font-family="Arial, Helvetica, sans-serif" font-size="112" font-weight="800" text-anchor="middle" fill="${Ji(P)}" fill-opacity="${Ji(Y)}">${re}</text>`}function ct(R,P,Y){const re=Ji(R||"R");return`<text x="128" y="142" font-family="Arial, Helvetica, sans-serif" font-size="112" font-weight="800" text-anchor="middle" fill="${Ji(P)}" fill-opacity="${Ji(Y)}">${re}</text>`}function Wt(R){return Kt(R,"class-expression")||Kt(R,"restriction")}function Kt(R,P){return Dn(R).has(P)}function Dn(R){const P=new Set;if(!R)return P;const Y=String(R.semantic_type||"");return Y==="restriction"&&P.add("restriction"),Y==="class-expression"&&P.add("class-expression"),(R.constructs||[]).forEach(re=>{Wl(re).forEach(ge=>P.add(ge))}),P}function Ht(R){return Kt(R,"restriction")?Ki(R):St(R)}function Hn(R){if(Kt(R,"restriction"))return Or(R);const P=String(St(R)||"").toLowerCase();return P.includes("intersection")?"Intersection":P.includes("complement")?"Complement":P.includes("union")?"Union":"Class expression"}function St(R){const P=(R.constructs||[]).find(Y=>{const re=String(Y.kind||""),ge=String(Y.family||""),be=String(Y.label||Y.class_expression_kind||Y.classExpressionKind||"").toLowerCase();return re==="class-expression"||ge==="class-expression"||be==="union"||be==="intersection"||be==="complement"});return P?P.label||P.class_expression_kind||P.classExpressionKind||"":Xn(R)}function Ki(R){const P=(R.constructs||[]).find(re=>{const ge=String(re.kind||""),be=String(re.family||"");return ge==="restriction"||be==="restriction"}),Y=String(P&&(P.label||P.restriction_kind||P.restrictionKind)||Xn(R)||"").toLowerCase();return Y.includes("universal")?"∀":Y.includes("existential")?"∃":Y.includes("min")?"≥":Y.includes("max")?"≤":Y.includes("cardinality")?"=":"R"}function Or(R){const P=(R.constructs||[]).find(re=>{const ge=String(re.kind||""),be=String(re.family||"");return ge==="restriction"||be==="restriction"}),Y=String(P&&(P.label||P.restriction_kind||P.restrictionKind)||Xn(R)||"").toLowerCase();return Y.includes("universal")?"Universal restriction":Y.includes("existential")?"Existential restriction":Y.includes("min")?"Min cardinality":Y.includes("max")?"Max cardinality":Y.includes("cardinality")?"Cardinality restriction":"Restriction"}function s0(R){const P=String(vo(R)||R.class_expression_kind||R.classExpressionKind||"").toLowerCase();return P.includes("intersection")?"∩":P.includes("complement")?"¬":P.includes("union")?"∪":"U"}function Bl(R){const P=vo(R);return ni(R)||Ct(R,"shape-overlay")&&Gl(P)?"":Ct(R,"subclass")?"Subclass of":Ct(R,"membership")?"member":P}function Gl(R){return String(R||"").toLowerCase().includes("shape overlay")}function Es(R){if(Wt(R))return Ht(R);const P=Qi(R.display_label||Xn(R),mt(R)),Y=ko(R);return Y?`${P} ${Y}`:P}function Zi(R){if(Wt(R))return Hn(R);const P=R.display_label||Xn(R),Y=ko(R);return Y?`${P} ${Y}`:P}function Fl(R,P){const Y=Bd(_o(R)),re=Bd(Qe("--bg-canvas"));if(!Y||!re)return R;const ge=Math.round(Y.r*P+re.r*(1-P)),be=Math.round(Y.g*P+re.g*(1-P)),Ge=Math.round(Y.b*P+re.b*(1-P));return`#${[ge,be,Ge].map(He=>He.toString(16).padStart(2,"0")).join("")}`}function _o(R){if(!R)return"";const P=String(R).trim();if(P.startsWith("var(")){const Y=P.match(/^var\((--[a-z0-9-]+)(?:,\s*([^)]+))?\)$/i);if(Y)return Qe(Y[1])}return P}function Bd(R){var He;const P=_o(R);if(!P)return null;if(P.startsWith("#"))return Gd(P);const Y=P.match(/rgba?\(\s*([\d.]+)(?:,|\s+)\s*([\d.]+)(?:,|\s+)\s*([\d.]+)(?:\s*[,/]\s*([\d.]+%?))?/i);if(!Y)return null;const re=Number(Y[1]),ge=Number(Y[2]),be=Number(Y[3]),Ge=(He=Y[4])!=null&&He.endsWith("%")?Number(Y[4].slice(0,-1))/100:Y[4]===void 0?1:Number(Y[4]);return!Number.isNaN(Ge)&&Ge<=0||[re,ge,be].some(Je=>Number.isNaN(Je))?null:{r:re,g:ge,b:be}}function Gd(R){const P=R.slice(1),Y=P.length===3?P.split("").map(Ge=>Ge+Ge).join(""):P.padEnd(6,"0").slice(0,6),re=parseInt(Y.slice(0,2),16),ge=parseInt(Y.slice(2,4),16),be=parseInt(Y.slice(4,6),16);return[re,ge,be].some(Ge=>Number.isNaN(Ge))?null:{r:re,g:ge,b:be}}function Hc(R,P,Y){const re=[],ge=new Set;return R.forEach(be=>{const Ge=an(be.source),He=an(be.target);!Ge||!He||yo(P.get(Ge))||yo(P.get(He))||go(re,ge,{...be,source:Ge,target:He,rendered_kind:"construct"})}),Y.forEach(be=>{const Ge=Ss(be.domain),He=Ss(be.range);Ge.forEach(Je=>{He.forEach(ze=>{Je.iri!==ze.iri&&go(re,ge,{source:Je.iri,target:ze.iri,label:Xn(be),rendered_kind:"property",property_node_id:be.id,property_kind:be.semantic_type||"rdf-property"})})})}),re}function go(R,P,Y){const re=an(Y.source),ge=an(Y.target);if(!re||!ge||!Vc(re)||!Vc(ge))return;const be=[re,ge,Y.label||"",Y.rendered_kind||"",Y.property_node_id||""].join("|");P.has(be)||(P.add(be),R.push(Y))}function Vc(R){const P=A.get(R);return!!(P&&!yo(P))}function Ss(R){return(R||[]).filter(P=>P&&P.iri&&Vc(P.iri))}function yo(R){const P=String(R&&R.semantic_type||"");return P==="object-property"||P==="datatype-property"||P==="rdf-property"}function Fd(R,P){const Y=new Map(R.map(re=>[re.id,0]));return P.forEach(re=>{if(!Xc(re))return;const ge=an(re.source),be=an(re.target);Y.has(ge)&&Y.set(ge,Y.get(ge)+1),Y.has(be)&&be!==ge&&Y.set(be,Y.get(be)+1)}),Y}function Xc(R){return R.property_kind!=="datatype-property"}function vo(R){return R.display_label||R.label||""}function Hd(R){const P=String(R.semantic_type||"");return P==="node-shape"||P==="property-shape"?"shacl":P.endsWith("property")?"property":P==="named-individual"||P==="datatype"||P==="resource"?"value":Kt(R,"restriction")||Kt(R,"class-expression")?"construct":"concept"}function Vd(R){return String(R.semantic_type||"")==="class"||Kt(R,"restriction")||Kt(R,"class-expression")?"class-anchor":"box"}function Qi(R,P){const Y=String(R||""),re=Math.max(8,Math.floor((P-20)/7));return Y.length>re?`${Y.slice(0,re-1)}...`:Y}function Le(R){return String(R||"").replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}function Vn(R,P){const Y=new DOMParser().parseFromString(`<body>${P}</body>`,"text/html");R.replaceChildren(...Array.from(Y.body.childNodes))}function bo(R){const P=document.createElement("p");P.className="text-gray-500 italic m-0",P.textContent="Search or select a graph node to inspect URI, RDF type, comments, and SHACL constraints.",R.replaceChildren(P)}function Ji(R){return Le(R)}function Ts(R){const P=String(R||""),Y=P.split(/[/#]/).filter(Boolean);return Y.length?Y[Y.length-1]:P}function l0(R){const P=(R.constructs||[]).find(ge=>ge.kind==="class-expression"),Y=P?P.members||[]:[];if(!Y.length)return R.label||"Class expression";const re=P.label==="Intersection"?" ∩ ":P.label==="Complement"?" ∖ ":" ∪ ";return Y.map(Ts).join(re)}function Xn(R){if(!R||R.semantic_type!=="class-expression")return R&&(R.label||R.id)||"";const P=(R.constructs||[]).find(be=>be.kind==="property-domain"||be.kind==="property-range"),Y=l0(R);if(!P)return Y;const re=Ts(P.subject||P.property||""),ge=P.kind==="property-domain"?"domain":"range";return re?`${re} ${ge}: ${Y}`:`${ge}: ${Y}`}function Ea(R){return`${R.label} (symbol ${R.symbol})`}function Yc(R){return!R||!R.length?"":`<div class="ontology-badge-row">${R.map(Y=>{const re=Le(Ea(Y));return`<span class="ontology-badge" role="img" aria-label="${re}" title="${re}"><span class="ontology-badge-symbol" aria-hidden="true">${Le(Y.symbol)}</span><span class="ontology-badge-text">${Le(Y.label)}</span></span>`}).join("")}</div>`}function xo(R){const P=String(R&&R.kind||"");return P==="subset-or-equal"?"subclass":P==="member-of"?"membership":P==="disjointness"?"disjoint":P==="logical-equivalence"?"equivalence":P==="inverse-property"?"inverse":["functional","inverse-functional","symmetric","asymmetric","reflexive","irreflexive","transitive"].includes(P)?"property-characteristic":P==="universal-restriction"||P==="existential-restriction"?"restriction":P==="intersection"||P==="union"||P==="set-difference"?"class-expression":""}function wo(R){return(R.badges||[]).filter(P=>{const Y=xo(P);return Y?I.construct.has(Y)&&sf(Y):!0})}function ko(R){return wo(R).map(P=>P.symbol).join(" ")}function Sa(R){return R.constructs||[]}function cn(R){return R.slot_facets||[]}function Xd(R){const P=String(R||""),Y=P.startsWith("equivalence:")?P.slice(12):P;return Y?Y.split("|").filter(Boolean):[]}function Wc(R){return!R||!R.length?'<span class="text-gray-400 italic">None</span>':R.map(P=>`<span class="ontology-rel-pill" title="${Le(P)}">${Le(Ts(P))}</span>`).join("")}const Ta={"object-property":"Object property","datatype-property":"Datatype property","rdf-property":"RDF property",class:"Class","named-individual":"Named individual","node-shape":"SHACL node shape","property-shape":"SHACL property shape",restriction:"OWL restriction","class-expression":"Class expression",datatype:"Datatype",literal:"Literal",resource:"Resource"};function ea(R){return Ta[R]||R||"Resource"}function Eo(R,P){return!R||!R.length?`<span class="text-gray-400 italic">${Le(P)}</span>`:R.map(Y=>{const re=String(Y.kind||"class"),ge=Le(Y.iri||Y.label||"");return`<span class="ontology-term-ref ontology-term-${Le(re)}" title="${ge}">${Le(Y.label||Y.iri||"")}<span class="ontology-term-kind">${Le(re)}</span></span>`}).join("")}function Yd(R){return!R||!R.length?"":`<div class="ontology-meta-section">
|
|
1086
|
+
<div class="ontology-meta-title">Literal Values</div>
|
|
1087
|
+
${R.map(P=>`<div class="ontology-literal-value"><span>${Le(P.predicate||"value")}</span><strong>${Le(P.value||"")}</strong></div>`).join("")}
|
|
1088
|
+
</div>`}function Wd(R){return!R||!R.length?'<span class="text-gray-400 italic">No source recorded.</span>':R.map(P=>{const Y=P.source_name||P.source||P.file_path||"source",re=P.line_number?`${P.file_path}:${P.line_number}`:P.file_path||"",ge=P.kind?`<span class="ontology-source-kind">${Le(P.kind)}</span>`:"",be=P.link?Le(P.link):"",Ge=Le(P.source||re||Y),He=be?`<a class="ontology-source-name" href="${be}" title="${Ge}">${Le(Y)}</a>`:`<span>${Le(Y)}</span>`,Je=be?`<a class="ontology-source-loc" href="${be}" title="${Ge}">${Le(re)}</a>`:`<span class="ontology-source-loc">${Le(re)}</span>`;return`<div class="ontology-source"><span>${He}${ge}</span>${Je}</div>`}).join("")}function u0(R){const P=(R.members||[]).map(ge=>Le(Ts(ge))),Y=P.length?P.join('<span class="ontology-chain-sep">∘</span>'):'<span class="text-gray-400 italic">Empty chain</span>',re=R.source?`<div class="ontology-chain-source">${Le(R.source)}</div>`:"";return`<div class="ontology-chain"><div>${Y}</div>${re}</div>`}function Hl(R){const P=R.id,Y=[];return L.forEach(re=>{const ge=Ss(re.domain),be=Ss(re.range),Ge=ge.some(Je=>Je.iri===P),He=be.some(Je=>Je.iri===P);!Ge&&!He||Y.push({isDomain:Ge,isRange:He,property:re,domains:ge,ranges:be,facets:Ge?Vl(re,R):[]})}),Y.sort((re,ge)=>{const be=Xn(re.property).localeCompare(Xn(ge.property));if(be)return be;const Ge=Kc(re),He=Kc(ge);return Ge.localeCompare(He)}),Y}function Vl(R,P){return(P.slot_facets||[]).filter(Y=>Y.slot_iri===R.id)}function ji(R){const P=Hl(R);return P.length?`<div class="ontology-meta-section">
|
|
1089
|
+
<div class="ontology-meta-title">Properties</div>
|
|
1090
|
+
${P.map(wr).join("")}
|
|
1091
|
+
</div>`:""}function wr(R){const P=R.property,Y=Xn(P)||P.id,re=ea(P.semantic_type),ge=R.facets&&R.facets.length?`<div class="ontology-slot-facet-values">${R.facets.flatMap(be=>be.facets||[]).map(be=>`<span class="ontology-slot-facet-pill"><span>${Le(be.name)}</span>${Le(be.value)}</span>`).join("")}</div>`:"";return`<div class="ontology-property-usage"><div class="ontology-property-usage-title"><strong title="${Le(P.full_uri||P.id)}">${Le(Y)}</strong><span class="ontology-property-kind">${Le(re)}</span></div><div class="ontology-property-usage-body">${c0(R)}</div>`+ge+"</div>"}function Kc(R){return R.isDomain&&R.isRange?"domain and range":R.isDomain?"domain":"range"}function c0(R){return R.isDomain&&R.isRange?`<span>domain/range</span> property; Domain ${Eo(R.domains,"Any")}; Range ${Eo(R.ranges,"Any")}`:R.isDomain?`<span>domain</span> property; Range ${Eo(R.ranges,"Any")}`:`<span>range</span> property; Domain ${Eo(R.domains,"Any")}`}function Zc(R){if(R.kind==="class-expression")return Qc(R);const P=R.badge?`<span class="ontology-construct-symbol" title="${Le(Ea(R.badge))}">${Le(R.badge.symbol)}</span>`:"",Y=[];R.subject&&Y.push(`subject=${R.subject}`),R.predicate&&Y.push(`predicate=${R.predicate}`),R.property&&Y.push(`property=${R.property}`),R.object&&Y.push(`object=${R.object}`),R.members&&R.members.length&&Y.push(`members=${R.members.join(" -> ")}`);const re=R.source&&(R.source.source_name||R.source.source||R.source.file_path)?`source=${R.source.source_name||R.source.source||R.source.file_path}${R.source.line_number?":"+R.source.line_number:""}`:"";re&&Y.push(re);const ge=Y.length?`<div class="ontology-construct-meta">${Le(Y.join(" | "))}</div>`:"";return`<div class="ontology-construct"><div class="ontology-construct-title">${P}<span>${Le(R.label||R.kind||"Construct")}</span></div>`+ge+"</div>"}function Qc(R){const P=R.badge?`<span class="ontology-construct-symbol" title="${Le(Ea(R.badge))}">${Le(R.badge.symbol)}</span>`:"",Y=(R.members||[]).length?`<div class="ontology-construct-members">${R.members.map((ge,be)=>`<div class="ontology-construct-member"><strong>${be+1}.</strong> ${Le(Ts(ge))}</div>`).join("")}</div>`:'<span class="text-gray-400 italic">No members recorded.</span>',re=R.source&&(R.source.source_name||R.source.source||R.source.file_path)?`<div class="ontology-construct-meta">source=${Le(R.source.source_name||R.source.source||R.source.file_path)}${R.source.line_number?":"+Le(R.source.line_number):""}</div>`:"";return`<div class="ontology-construct"><div class="ontology-construct-title">${P}<span>${Le(R.label||"Class expression")}</span></div>`+Y+re+"</div>"}function Xl(R){return String(R||"").startsWith("_:")}function f0(R){return Sa(R).filter(P=>P.kind==="class-expression")}function kr(R){const P=R.id;return H.filter(Y=>an(Y.source)===P||an(Y.target)===P).map(Y=>{const re=an(Y.source),ge=an(Y.target),be=q.get(re),Ge=q.get(ge),He=re===P?"to":"from",Je=re===P?Ge:be;return{label:Y.label||"relation",direction:He,other:Je?Je.label||Je.id:He==="to"?ge:re}})}function Jc(R){if(R.semantic_type!=="class-expression")return"";const P=f0(R),Y=P.length?`<div class="ontology-meta-section">
|
|
1092
|
+
<div class="ontology-meta-title">Expression Members</div>
|
|
1093
|
+
${P.map(Qc).join("")}
|
|
1094
|
+
</div>`:"",re=kr(R).filter(be=>!["union","intersection","complement"].includes(String(be.label||""))),ge=re.length?`<div class="ontology-meta-section">
|
|
1095
|
+
<div class="ontology-meta-title">Used As</div>
|
|
1096
|
+
<div class="ontology-construct-usages">${re.map(be=>`<div class="ontology-construct-usage"><strong>${Le(be.label)}</strong> ${Le(be.direction)} ${Le(be.other)}</div>`).join("")}</div>
|
|
1097
|
+
</div>`:"";return Y+ge}function Kd(R,P){const Y=R.full_uri||"";return Xl(Y)&&R.semantic_type==="class-expression"?`<details class="ontology-raw-details">
|
|
1098
|
+
<summary>Raw Details</summary>
|
|
1099
|
+
<div class="ontology-meta-title">Blank Node Identifier</div>
|
|
1100
|
+
<div class="ontology-uri-block">${Le(Y)}</div>
|
|
1101
|
+
</details>`:`<div class="ontology-meta-section">
|
|
1102
|
+
<div class="ontology-meta-title">${Le(P)}</div>
|
|
1103
|
+
<div class="ontology-uri-block">${Le(Y)}</div>
|
|
1104
|
+
</div>`}function ef(R,P){const Y=P==="property",re=(R.facets||[]).length?`<div class="ontology-slot-facet-values">${R.facets.map(ze=>`<span class="ontology-slot-facet-pill"><span>${Le(ze.name)}</span>${Le(ze.value)}</span>`).join("")}</div>`:'<span class="text-gray-400 italic">No explicit facets.</span>',ge=R.slot_label||R.slot_iri||"slot",be=R.target_class_label||R.target_class_iri||"target class",Ge=Y?`Class ${be}`:ge,He=Y?R.target_class_iri||R.target_class_label||"":R.slot_iri||R.slot_label||"",Je=Y?`<div class="ontology-slot-facet-target">Path ${Le(ge)}</div>`:R.target_class_label?`<div class="ontology-slot-facet-target">Class ${Le(R.target_class_label)}</div>`:"";return`<div class="ontology-slot-facet"><div class="ontology-slot-facet-title"><strong title="${Le(He)}">${Le(Ge)}</strong><span class="ontology-slot-facet-source">${Le(R.source_shape_label||"shape")}</span></div>`+Je+re+"</div>"}function So(R){const P=(R.badges||[]).map(ze=>`${ze.label} ${ze.symbol} ${ze.code_point}`).join(" "),Y=(R.property_chains||[]).map(ze=>`${(ze.members||[]).join(" ")} ${ze.source||""}`).join(" "),re=[].concat(R.domain||[],R.range||[]).map(ze=>`${ze.label||""} ${ze.iri||""} ${ze.kind||""}`).join(" "),ge=(R.constraints||[]).map(ze=>`${ze.property||""} ${ze.value||""}`).join(" "),be=(R.sources||[]).map(ze=>`${ze.source||""} ${ze.source_name||""} ${ze.file_path||""} ${ze.kind||""}`).join(" "),Ge=(R.constructs||[]).map(ze=>[ze.id,ze.family,ze.kind,ze.label,ze.subject,ze.predicate,ze.object,ze.property,(ze.members||[]).join(" "),ze.source?`${ze.source.source||""} ${ze.source.source_name||""} ${ze.source.file_path||""}`:"",ze.badge?`${ze.badge.label||""} ${ze.badge.symbol||""} ${ze.badge.code_point||""}`:""].join(" ")).join(" "),He=(R.slot_facets||[]).map(ze=>[ze.slot_label,ze.slot_iri,ze.target_class_label,ze.target_class_iri,ze.source_shape_label,ze.source_shape_iri,(ze.facets||[]).map(Cn=>`${Cn.name} ${Cn.value}`).join(" ")].join(" ")).join(" "),Je=(R.literal_values||[]).map(ze=>`${ze.predicate||""} ${ze.value||""} ${ze.source&&(ze.source.source_name||ze.source.source||ze.source.file_path)||""}`).join(" ");return[Xn(R),R.label,R.full_uri,R.type||"",R.semantic_type||"",(R.rdf_types||[]).join(" "),P,R.equivalence_group||"",(R.inverse_properties||[]).join(" "),Y,re,ge,Je,He,be,Ge].join(" ").toLowerCase()}function tf(R){r==null||r(R);const P=document.getElementById("ontology-inspector-title"),Y=document.getElementById("ontology-inspector-body"),re=document.getElementById("ontology-inspector-clear");if(!P||!Y||!re)return;P.textContent=Xn(R)||R.id,re.style.display="block";const ge=String(R.full_uri||"").startsWith("_:")?"Blank Node Identifier":"Full URI",be=R.rdf_types&&R.rdf_types.length?R.rdf_types.map(ra=>`<span class="ontology-type-pill">${Le(ra)}</span>`).join(""):`<span class="text-gray-400 italic">Implicit ${Le(R.type)} entity</span>`,Ge=R.constraints&&R.constraints.length?`<div class="ontology-meta-section">
|
|
1105
|
+
<div class="ontology-meta-title">Raw SHACL Evidence</div>
|
|
1106
|
+
${R.constraints.map(ra=>`<div class="ontology-constraint"><span>${Le(ra.property)}</span><strong>${Le(ra.value)}</strong></div>`).join("")}
|
|
1107
|
+
</div>`:"",He=Yc(R.badges||[]),Je=R.equivalence_group?`<div class="ontology-meta-section">
|
|
1108
|
+
<div class="ontology-meta-title">Equivalence Group</div>
|
|
1109
|
+
<div>${Wc(Xd(R.equivalence_group))}</div>
|
|
1110
|
+
</div>`:"",ze=R.inverse_properties&&R.inverse_properties.length?`<div class="ontology-meta-section">
|
|
1111
|
+
<div class="ontology-meta-title">Inverse Properties</div>
|
|
1112
|
+
<div>${Wc(R.inverse_properties)}</div>
|
|
1113
|
+
</div>`:"",Cn=R.property_chains&&R.property_chains.length?`<div class="ontology-meta-section">
|
|
1114
|
+
<div class="ontology-meta-title">Property Chains</div>
|
|
1115
|
+
${R.property_chains.map(u0).join("")}
|
|
1116
|
+
</div>`:"",gn=Sa(R).filter(ra=>R.semantic_type!=="class-expression"?!0:!["class-expression","property-domain","property-range"].includes(ra.kind)),Tt=gn.length?`<div class="ontology-meta-section">
|
|
1117
|
+
<div class="ontology-meta-title">Projection Constructs</div>
|
|
1118
|
+
${gn.map(Zc).join("")}
|
|
1119
|
+
</div>`:"",bt=Jc(R),$t=Yd(R.literal_values),na=Kd(R,ge),zs=ji(R),Co=String(R.semantic_type||"").endsWith("property")||R.domain&&R.domain.length||R.range&&R.range.length,Ql=cn(R),Ls=Ql.length?`<div class="ontology-meta-section">
|
|
1120
|
+
<div class="ontology-meta-title">${Co?"Used As Slot / Facets":"Slots / Facets"}</div>
|
|
1121
|
+
${Ql.map(ra=>ef(ra,Co?"property":"class")).join("")}
|
|
1122
|
+
</div>`:"",Er=Co?`<div class="ontology-meta-section">
|
|
1123
|
+
<div class="ontology-meta-title">Domain</div>
|
|
1124
|
+
<div>${Eo(R.domain,"Any (unconstrained)")}</div>
|
|
1125
|
+
</div>`:"",m0=Co?`<div class="ontology-meta-section">
|
|
1126
|
+
<div class="ontology-meta-title">Range</div>
|
|
1127
|
+
<div>${Eo(R.range,"Any (unconstrained)")}</div>
|
|
1128
|
+
</div>`:"";Vn(Y,`
|
|
1129
|
+
${He}
|
|
1130
|
+
<div class="ontology-meta-section">
|
|
1131
|
+
<div class="ontology-meta-title">Kind</div>
|
|
1132
|
+
<div><span class="ontology-kind-pill">${Le(ea(R.semantic_type))}</span></div>
|
|
1133
|
+
</div>
|
|
1134
|
+
<div class="ontology-meta-section">
|
|
1135
|
+
<div class="ontology-meta-title">RDF Type</div>
|
|
1136
|
+
<div>${be}</div>
|
|
1137
|
+
</div>
|
|
1138
|
+
${na}
|
|
1139
|
+
<div class="ontology-meta-section">
|
|
1140
|
+
<div class="ontology-meta-title">Description</div>
|
|
1141
|
+
<p class="m-0">${Le(R.comment||"None specified.")}</p>
|
|
1142
|
+
</div>
|
|
1143
|
+
${$t}
|
|
1144
|
+
${bt}
|
|
1145
|
+
${zs}
|
|
1146
|
+
${Er}
|
|
1147
|
+
${m0}
|
|
1148
|
+
${Ls}
|
|
1149
|
+
${Je}
|
|
1150
|
+
${ze}
|
|
1151
|
+
${Cn}
|
|
1152
|
+
${Tt}
|
|
1153
|
+
<div class="ontology-meta-section">
|
|
1154
|
+
<div class="ontology-meta-title">Sources</div>
|
|
1155
|
+
${Wd(R.sources)}
|
|
1156
|
+
</div>
|
|
1157
|
+
${Ge}
|
|
1158
|
+
`)}function an(R){return typeof R=="string"?R:R&&R.id?R.id:""}function Dr(R,P){for(const Y of R||[])if(P.has(Y))return!0;return!1}function h0(R){return new Set([d0(R)])}function Zd(R){const P=new Set;return qr(R)&&P.add("construct"),Ca(R)&&P.add("authored"),P.size||P.add("registry"),P}function Qd(R){return new Set([Jd(R&&R.layer)])}function nf(R){return new Set([Jd(R&&R.layer)])}function Jd(R){return R==="reqvire-context"?"layer-reqvire-context":R==="external-source"?"layer-external-source":"layer-authored"}function d0(R){if(Yl(R))return"external-reference";const P=R.semantic_type||"resource";return["object-property","datatype-property","rdf-property"].includes(P)?"property":["node-shape","property-shape"].includes(P)?"shacl-shape":P==="resource"?"resource":"ontology-term"}function Yl(R){const P=String(R.full_uri||R.id||"");return P.startsWith("http://www.w3.org/2001/XMLSchema#")||P.startsWith("http://www.w3.org/1999/02/22-rdf-syntax-ns#")||P.startsWith("http://www.w3.org/2000/01/rdf-schema#")||P.startsWith("http://www.w3.org/2002/07/owl#")||P.startsWith("http://www.w3.org/ns/shacl#")}function Ri(R){const P=new Set,Y=String(R.semantic_type||"");return Y==="restriction"&&P.add("restriction"),Y==="class-expression"&&P.add("class-expression"),(R.constructs||[]).forEach(re=>{Wl(re).forEach(ge=>P.add(ge))}),(R.inverse_properties||[]).length&&P.add("inverse"),(R.property_chains||[]).length&&P.add("property-chain"),((R.domain||[]).length||(R.range||[]).length)&&P.add("domain-range"),(R.slot_facets||[]).length&&P.add("shape-overlay"),P}function rf(R){const P=new Set,Y=String(R.label||"");return R.rendered_kind==="property"&&P.add("domain-range"),(Y==="domain"||Y==="range")&&P.add("domain-range"),Y==="subclass"&&P.add("subclass"),Y==="member"&&P.add("membership"),Y==="disjoint"&&P.add("disjoint"),Y==="inverse"&&P.add("inverse"),(Y==="on property"||Y.endsWith("restriction"))&&P.add("restriction"),["intersection","union","complement","class-expression"].includes(Y)&&P.add("class-expression"),Y.includes("shape overlay")&&P.add("shape-overlay"),P}function Wl(R){const P=String(R&&R.kind||""),Y=String(R&&R.family||""),re=new Set;return(P==="property-domain"||P==="property-range"||Y==="property-domain-range")&&re.add("domain-range"),P==="subclass-inclusion"&&re.add("subclass"),P==="membership"&&re.add("membership"),P==="disjointness"&&re.add("disjoint"),P==="equivalence-group"&&re.add("equivalence"),P==="inverse-property"&&re.add("inverse"),(P==="property-chain"||Y==="property-chain")&&re.add("property-chain"),(P==="property-characteristic"||Y==="property-characteristic")&&re.add("property-characteristic"),(P==="restriction"||Y==="restriction")&&re.add("restriction"),(P==="class-expression"||Y==="class-expression")&&re.add("class-expression"),(P==="shape-overlay"||Y==="shape-overlay")&&re.add("shape-overlay"),re}function qr(R){const P=String(R.id||R.full_uri||"");return Kt(R,"restriction")||Kt(R,"class-expression")?!0:P.startsWith("urn:reqvire:ontology-construct")||P.startsWith("urn:reqvire:ontology-member")||P.startsWith("urn:reqvire:ontology-symbol")}function Ca(R){return(R.sources||[]).some(P=>P.kind==="ontology"||P.kind==="shapes")}function af(R){return!Dr(R._ontologyLayers,I.layer)||!Dr(R._ontologyRoles,I.role)||!Dr(R._ontologyOrigins,I.origin)||!em(R)?!1:qr(R)?Dr(R._ontologyConstructs,I.construct):(R.layer||"authored")!=="authored"?!0:Ca(R)}function of(R){const P=R._ontologyConstructs&&R._ontologyConstructs.size>0;return!Dr(R._ontologyLayers,I.layer)||!Cs(R)?!1:(R.layer||"authored")!=="authored"?!0:P&&Dr(R._ontologyConstructs,I.construct)}function em(R){return!(!B.has("class-expressions")&&Kt(R,"class-expression")||!B.has("restrictions")&&Kt(R,"restriction"))}function Cs(R){return!(!B.has("class-disjointness")&&Ct(R,"disjoint")||!B.has("class-membership")&&Ct(R,"membership")||!B.has("restrictions")&&Ct(R,"restriction")||!B.has("class-expressions")&&Ct(R,"class-expression")||!I.role.has("shacl-shape")&&Ct(R,"shape-overlay"))}function Ct(R,P){return!!(R._ontologyConstructs&&R._ontologyConstructs.has(P))}function sf(R){return!(R==="membership"&&!B.has("class-membership")||R==="disjoint"&&!B.has("class-disjointness")||R==="restriction"&&!B.has("restrictions")||R==="class-expression"&&!B.has("class-expressions")||R==="shape-overlay"&&!I.role.has("shacl-shape"))}function As(){const R=new Set;return G.forEach(P=>{af(P)&&R.add(P.id)}),R}function Ir(R){const P=an(R.source),Y=an(R.target);return of(R)&&D.has(P)&&D.has(Y)}function js(){D=As(),xe+=1,we="",N&&(G.forEach(P=>{N.hasNode(P.id)&&(N.setNodeAttribute(P.id,"hidden",!D.has(P.id)),N.setNodeAttribute(P.id,"label",Es(P)),N.setNodeAttribute(P.id,"fullLabel",Zi(P)))}),H.forEach((P,Y)=>{const re=`o${Y}`;N.hasEdge(re)&&N.setEdgeAttribute(re,"hidden",!Ir(P))})),document.querySelectorAll(".ontology-filter-toggle").forEach(P=>{const Y=P.dataset.filterCategory,re=P.dataset.filterValue,ge=Y==="relation"?B.has(re):!!(I[Y]&&I[Y].has(re));P.classList.toggle("is-active",ge),P.setAttribute("aria-pressed",ge?"true":"false")});const R=document.getElementById("ontology-graph-search");R&&R.value.trim()&&window.filterOntologyGraph(R.value),j&&q.has(j)&&tf(q.get(j)),$r()}window.filterOntologyGraph=function(R){const P=document.getElementById("ontology-graph-results");if(!P)return;const Y=R.trim().toLowerCase();if(!Y){P.style.display="none",P.replaceChildren();return}const re=G.filter(ge=>D.has(ge.id)&&So(ge).includes(Y)).slice(0,40);if(!re.length){const ge=document.createElement("li");ge.className="ontology-graph-result text-gray-400",ge.textContent="No matching nodes found",P.replaceChildren(ge),P.style.display="block";return}P.replaceChildren(...re.map(ge=>{const be=document.createElement("li");be.className="ontology-graph-result",be.addEventListener("click",()=>window.focusOntologyNode(ge.id));const Ge=document.createElement("span");Ge.textContent=Xn(ge);const He=document.createElement("span"),Je=S(ge);return He.className="ontology-graph-badge",He.style.background=Je.fill,He.style.color=Je.text,He.style.border=`${Qe("--border-w")} solid ${Je.stroke}`,He.textContent=ea(ge.semantic_type),be.append(Ge,He),be})),P.style.display="block"},window.focusOntologyNode=function(R){const P=q.get(R);if(!P||!D.has(R)||!N||!N.hasNode(R))return;j=R,r==null||r(P);const Y=document.getElementById("ontology-graph-results"),re=document.getElementById("ontology-graph-search");Y&&(Y.style.display="none"),re&&(re.value=""),tf(P),Zl(R),$r()},window.clearOntologySelection=function(){j=null,Z=null,r==null||r(null);const R=document.getElementById("ontology-inspector-clear"),P=document.getElementById("ontology-inspector-title"),Y=document.getElementById("ontology-inspector-body");R&&(R.style.display="none"),P&&(P.textContent="Node Inspector"),Y&&bo(Y),$r()},window.fitOntologyGraph=function(){!F||!N||F.getCamera().animatedReset({duration:250})},window.resetOntologyGraphLayout=function(){N&&(Ee(G),G.forEach(R=>{N.hasNode(R.id)&&N.mergeNodeAttributes(R.id,{x:R.x,y:R.y})}),Ne(),$r(),window.fitOntologyGraph())};function $r(){F&&F.refresh()}function Kl(){const R=[];return j&&R.push(j),R}function To(){const R=[];return Z&&Z!==j&&R.push(Z),R}function Rs(){const R=Kl().filter(Y=>D.has(Y));if(!R.length)return new Set;const P=`${xe}|${R.join("")}`;return we===P||(we=P,Pe=qn(R)),Pe}function lf(){const R=To().filter(P=>D.has(P));return R.length?qn(R):new Set}function qn(R){const P=new Set(R),Y=new Set,re=[],ge=new Set;for(R.forEach(be=>{D.has(be)&&(Y.add(be),re.push(be))});re.length;){const be=re.shift();if(ge.has(be))continue;const Ge=q.get(be);(P.has(be)||Ge&&qr(Ge))&&(ge.add(be),H.forEach(Je=>{if(!Ir(Je))return;const ze=an(Je.source),Cn=an(Je.target);if(ze!==be&&Cn!==be)return;const gn=ze===be?Cn:ze;if(!D.has(gn))return;Y.add(gn);const Tt=q.get(gn);Tt&&qr(Tt)&&!ge.has(gn)&&re.push(gn)}))}return Y}function ta(R,P,Y){const re=an(R.source),ge=an(R.target);if(!Y.has(re)||!Y.has(ge))return!1;if(P.some(He=>re===He||ge===He))return!0;const be=q.get(re),Ge=q.get(ge);return!!(be&&qr(be)||Ge&&qr(Ge))}function Zl(R){if(!F||!N||!N.hasNode(R))return;const P=F.getNodeDisplayData(R);if(!P)return;const Y=F.getCamera(),re=Y.getState();Y.animate({x:P.x,y:P.y,ratio:Math.min(re.ratio,.9)},{duration:280})}window.setOntologyGraphFilter=function(R,P,Y){if(!P)return;const re=R==="relation"?B:I[R];re&&(Y?re.add(P):re.delete(P),js())},window.syncOntologyGraphFilters=function(R){const P=new Set(R||[]);I.role.clear(),I.construct.clear(),I.origin.clear(),I.layer.clear(),B.clear(),I.role.add("ontology-term"),I.role.add("shacl-shape"),I.role.add("resource"),I.role.add("external-reference"),B.add("class-membership"),["shacl-shape","resource","external-reference"].forEach(Y=>{P.has(Y)&&I.role.add(Y)}),["domain-range","subclass","membership","disjoint","equivalence","inverse","property-chain","property-characteristic","class-expression","shape-overlay"].forEach(Y=>{P.has(Y)&&I.construct.add(Y)}),["authored","registry","construct"].forEach(Y=>{P.has(Y)&&I.origin.add(Y)}),["layer-authored","layer-reqvire-context","layer-external-source"].forEach(Y=>{P.has(Y)&&I.layer.add(Y)}),["class-disjointness","class-expressions"].forEach(Y=>{P.has(Y)&&B.add(Y)}),js()},js();const Ns=window.setTimeout(window.fitOntologyGraph,550),tm=()=>$r();return window.addEventListener("resize",tm),{destroy(){window.clearTimeout(Ns),ue&&(window.clearTimeout(ue),ue=null),window.removeEventListener("resize",tm),F&&(_e(""),F.kill()),delete window.filterOntologyGraph,delete window.focusOntologyNode,delete window.clearOntologySelection,delete window.fitOntologyGraph,delete window.resetOntologyGraphLayout,delete window.setOntologyGraphFilter,delete window.syncOntologyGraphFilters},filter(R){var P;(P=window.filterOntologyGraph)==null||P.call(window,R)},focusNode(R){var P;(P=window.focusOntologyNode)==null||P.call(window,R)},clearSelection(){var R;(R=window.clearOntologySelection)==null||R.call(window)},resetLayout(){var R;(R=window.resetOntologyGraphLayout)==null||R.call(window)},setFilter(R,P,Y){var re;(re=window.setOntologyGraphFilter)==null||re.call(window,R,P,Y)}}}function Bwe(e={}){var i,a;const{store:t}=xr(),n=ei(),r=(i=t.ontology)==null?void 0:i.graph_data;return r&&(((a=r.nodes)==null?void 0:a.length)??0)>0?b.jsx(Fwe,{graphData:r,activeFilters:[...n.ontologyFilters]}):b.jsx(Gwe,{})}function Gwe(){return b.jsx(ba,{testId:"ontologies",children:b.jsx(Lk,{children:b.jsx(Mk,{children:b.jsx(Yz,{children:"Ontology graph data was not exported."})})})})}function Fwe({graphData:e,activeFilters:t}){const n=se.useRef(null),r=se.useRef(null),{setOntologySelectionId:i}=ei();return se.useEffect(()=>{const a=n.current;if(!a)return;const o=Uwe(a,e,{onSelect:l=>i((l==null?void 0:l.id)??null)});return r.current=o,()=>{o.destroy(),r.current=null}},[e,i]),se.useEffect(()=>{var a;(a=window.syncOntologyGraphFilters)==null||a.call(window,t)},[t]),b.jsx(ba,{testId:"ontologies",children:b.jsx(Lk,{children:b.jsx(Mk,{"aria-label":"Ontology graph explorer",children:b.jsx(Xz,{ref:n,id:"ontology-graph-container",variant:"ontology",role:"img","aria-label":"Ontology and SHACL relationship graph"})})})})}function Hwe({path:e}){const{store:t}=xr(),[n,r]=Vwe(e),i=t.files.find(l=>l.path===n),a=t.resources.find(l=>l.file_path===n||l.target===n),o=(a==null?void 0:a.file_path)??(a==null?void 0:a.target)??n;return i?i.element_ids.length===0||a!=null&&a.source_text?b.jsx(Ap,{toolbar:i_(i.path,"Source file"),children:b.jsx(qg,{path:i.path,content:(a==null?void 0:a.source_text)??i.markdown_content,kind:(a==null?void 0:a.kind)??"source file",relationTypes:(a==null?void 0:a.relation_types)??[],showPath:!1})}):b.jsx(Ap,{toolbar:i_(i.path),children:b.jsx(nE,{markdown:i.markdown_content,sourceFilePath:i.path,sourceAnchor:r?`#/content/${i.path}#${r}`:`#/content/${i.path}`,scrollToAnchor:r})}):a!=null&&a.source_text?b.jsx(Ap,{toolbar:i_(o,"Source file"),children:b.jsx(qg,{path:o,content:a.source_text,kind:a.kind,relationTypes:a.relation_types,showPath:!1})}):b.jsx(Ap,{toolbar:i_(n),children:b.jsxs(O1,{tone:"empty",children:["File not found: ",n]})})}function i_(e,t="Source page"){return{label:t,title:e,actionHref:v_("model"),actionLabel:"Back to model"}}function Vwe(e){const t=e.indexOf("#");return t===-1?[e,null]:[e.slice(0,t),e.slice(t+1)||null]}const nD="reqvire-explorer-theme";function Xwe(){if(typeof window>"u")return"light";const e=localStorage.getItem(nD);return e==="light"||e==="dark"?e:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Ywe(e){const t=document.documentElement;e==="dark"?(t.classList.add("dark"),t.dataset.theme="dark"):(t.classList.remove("dark"),t.dataset.theme="light")}function Wwe(){const[e,t]=se.useState(Xwe);se.useEffect(()=>{Ywe(e)},[e]);const n=se.useCallback(i=>{localStorage.setItem(nD,i),t(i)},[]),r=se.useCallback(()=>{n(e==="light"?"dark":"light")},[e,n]);return{theme:e,setTheme:n,toggleTheme:r,isDark:e==="dark"}}const ej=380,a2=300,o2=720,rD="reqvire:explorer:left-pane-width",Kwe=[{value:"model",label:"Model",icon:"folder"},{value:"ontologies",label:"Ontologies",icon:"globe"},{value:"traces",label:"Traces",icon:"activity"},{value:"coverage",label:"Coverage",icon:"pie-chart"}];function Zwe(){const e=se.useMemo(()=>Mse(),[]);return e.ok?b.jsx(Ose,{store:e.store,schemaMismatch:e.schemaMismatch,children:b.jsx(xpe,{children:b.jsx(Zme,{children:b.jsx(Qwe,{schemaMismatch:e.schemaMismatch})})})}):b.jsx(Dse,{reason:e.reason,detail:e.detail})}function Qwe({schemaMismatch:e}){const{route:t,navigateView:n,openElement:r,closeElement:i}=kpe(),[a,o]=se.useState(!1),[l,c]=se.useState(!0),[f,d]=se.useState(!1),[m,p]=se.useState(Jwe),[g,y]=se.useState([]),[x,k]=se.useState(null),w=se.useRef(null),C=se.useRef(m),{isDark:S,toggleTheme:T}=Wwe(),z=t.view==="content"||t.view==="resources"&&t.param?"model":t.view,A=t.view==="files"||t.view==="content"||t.view==="resources"?"model":t.view;se.useEffect(()=>{document.title=`Reqvire Explorer — ${_L[t.view]}`},[t.view]),se.useEffect(()=>{t.elementId||y([])},[t.elementId]),se.useEffect(()=>{var j;C.current=m,(j=w.current)==null||j.style.setProperty("--ux-left-pane-width",`${m}px`),window.localStorage.setItem(rD,String(m))},[m]),se.useEffect(()=>{function j(){p(N=>T_(N))}return window.addEventListener("resize",j),()=>window.removeEventListener("resize",j)},[]);function L(){c(j=>!j)}function G(j){n(j)}function H(j){y([]),r(j)}function q(j){j!==t.elementId&&(y(N=>t.elementId?[...N,t.elementId]:N),r(j))}function V(){const j=g.at(-1);j&&(y(N=>N.slice(0,-1)),r(j))}function W(){y([]),i()}function I(j){if(!l||j.button!==0)return;const N=j.clientX,F=C.current;let Z=F;d(!0),document.body.style.cursor="ew-resize",document.body.style.userSelect="none";function O(K){var ie;const $=K.clientX-N;Z=T_(F+$),(ie=w.current)==null||ie.style.setProperty("--ux-left-pane-width",`${Z}px`)}function U(){window.removeEventListener("pointermove",O),window.removeEventListener("pointerup",U),window.removeEventListener("pointercancel",U),document.body.style.cursor="",document.body.style.userSelect="",d(!1),C.current=Z,p(Z)}window.addEventListener("pointermove",O),window.addEventListener("pointerup",U),window.addEventListener("pointercancel",U)}function B(j){if(l&&(j.key==="ArrowLeft"||j.key==="ArrowRight")){j.preventDefault();const N=j.key==="ArrowLeft"?-1:1,F=j.shiftKey?40:16;p(Z=>T_(Z+N*F))}}const D=[{id:"search",label:"Search",icon:"search",onClick:()=>n("search")},{id:"theme",label:S?"Switch to light mode":"Switch to dark mode",icon:S?"sun":"moon",onClick:T},{id:"help",label:"Help",icon:"help-circle",onClick:()=>o(!0)}];return b.jsxs(hne,{ref:w,navigationItems:Kwe,activeNavigationValue:A,headerActions:D,leftPaneOpen:l,leftPaneResizing:f,leftPaneWidth:m,leftPaneMinWidth:a2,leftPaneMaxWidth:o2,leftPaneCollapseLabel:"Collapse explorer",leftPaneExpandLabel:"Expand explorer",leftPaneResizeLabel:"Resize explorer pane",onNavigate:G,onToggleLeftPane:L,onLeftPaneResizePointerDown:I,onLeftPaneResizeKeyDown:B,mainWarning:e?`Store schema mismatch: ${e}`:null,sidePane:b.jsx(Jme,{activeView:z,open:l,chrome:"app",onToggle:L,onNavigate:n,onOpenElement:H,onOpenOntologyNode:k}),main:b.jsx(e2e,{view:t.view,param:t.param,onNavigate:n,onOpenElement:H}),children:[b.jsx(qse,{open:a,onOpenChange:o}),b.jsx(Ime,{identifier:t.elementId,onClose:W,onOpenElement:q,onOpenOntologyNode:k,onNavigateBack:g.length>0?V:void 0,previousElementLabel:g.at(-1)}),b.jsx(Yme,{nodeId:x,onClose:()=>k(null)})]})}function Jwe(){if(typeof window>"u")return ej;const e=Number(window.localStorage.getItem(rD));return T_(Number.isFinite(e)?e:ej)}function T_(e){const t=typeof window>"u"?o2:Math.max(a2,Math.min(o2,window.innerWidth-420));return Math.round(Math.min(Math.max(e,a2),t))}function e2e({view:e,param:t,onNavigate:n,onOpenElement:r}){switch(e){case"model":return b.jsx(HA,{onOpenElement:r});case"traces":return b.jsx(Ixe,{activeView:e,onNavigate:n,onOpenElement:r});case"ontologies":return b.jsx(Bwe,{activeView:e,onNavigate:n});case"coverage":return b.jsx(Wxe,{activeView:e,onNavigate:n,onOpenElement:r});case"resources":return b.jsx(Eye,{resourceId:t,activeView:e,onNavigate:n});case"files":return b.jsx(JM,{path:t,activeView:e,onNavigate:n,onOpenElement:r});case"content":return b.jsx(Hwe,{path:t??""});case"search":return b.jsx(Sye,{initialQuery:t,activeView:e,onNavigate:n,onOpenElement:r});default:return b.jsx(HA,{onOpenElement:r})}}const t2e={...kQ,...FQ};window.d3=t2e;const iD=document.getElementById("root");if(!iD)throw new Error("Reqvire Explorer: #root mount point not found");function n2e(){return new Promise(e=>{if(window.reqvireProjectStore!==void 0){e();return}const t=r2e();let n=0;function r(){if(window.reqvireProjectStore!==void 0||n>=t.length){e();return}const i=document.createElement("script");i.src=t[n],i.async=!1,i.onload=()=>e(),i.onerror=()=>{i.remove(),n+=1,r()},document.head.appendChild(i)}r()})}function r2e(){const e=new Set,t=new URL(import.meta.url);return t.pathname.includes("/assets/")&&e.add(new URL("project-store.js",t).toString()),e.add(new URL("assets/project-store.js",document.baseURI).toString()),e.add(new URL("assets/project-store.js",window.location.href).toString()),e.add("assets/project-store.js"),[...e]}n2e().then(()=>{rI.createRoot(iD).render(b.jsx(se.StrictMode,{children:b.jsx(Zwe,{})}))});export{XZ as $,Q9 as A,Z9 as B,Al as C,K9 as D,W9 as E,ld as F,Ic as G,_1 as H,m1 as I,oo as J,_c as K,f$ as L,rQ as M,iQ as N,nQ as O,tQ as P,eQ as Q,JZ as R,NQ as S,QZ as T,S1 as U,WZ as V,ZZ as W,KZ as X,VZ as Y,YZ as Z,Q as _,TZ as a,HZ as a0,iz as a1,rz as a2,FZ as a3,GZ as a4,ik as b,vk as c,ZN as d,BZ as e,CQ as f,SQ as g,kN as h,GQ as i,Mz as j,s1 as k,P9 as l,c1 as m,Ml as n,h1 as o,pK as p,R_ as q,TQ as r,Bn as s,nY as t,Xh as u,OU as v,d$ as w,hk as x,y1 as y,gc as z};
|