@shwfed/runtime-web 0.6.2 → 0.7.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/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/components-primitives.js +20 -20
- package/assets/bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d/effect.js +5 -0
- package/assets/bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d/host.js +461 -0
- package/assets/bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d/openapi-client.js +1 -0
- package/assets/bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d/runtime-shared.js +25 -0
- package/assets/bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d/solid-js.js +1 -0
- package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/worker.js +1 -1
- package/index.js +5 -5
- package/manifest.json +5 -5
- package/package.json +1 -1
- package/assets/a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a/effect.js +0 -5
- package/assets/a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a/host.js +0 -461
- package/assets/a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a/openapi-client.js +0 -1
- package/assets/a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a/runtime-shared.js +0 -25
- package/assets/a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a/solid-js.js +0 -1
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/abap-3d321810.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/action-54d79c12.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/actionscript-3-ee0f3172.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/ada-252b1a4b.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/ahk-6e769ba2.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/ahk2-0f598015.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/andromeeda-0825276e.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/angular-html-414b5674.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/angular-ts-196c6350.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/apache-cdab5206.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/apex-c3f9fc0e.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/apl-eac78e29.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/applescript-636efa0e.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/ara-0ce36c80.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/asciidoc-f3df19b9.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/asm-2df5a334.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/astro-86c77de0.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/aurora-x-902226c9.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/awk-103b5427.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/ayu-dark-360e23c9.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/ayu-light-06439344.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/ayu-mirage-329fbbc2.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/ballerina-394fb9b0.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/bat-9ab060ea.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/beancount-a5d3b565.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/berry-b086b67c.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/bibtex-b447a3bd.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/bicep-2e94d542.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/bird2-8349d846.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/blade-7a6c750e.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/bsl-94318279.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/c-c772f7dd.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/c3-4d5fec5e.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/cadence-8c4c9e65.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/cairo-9d828c5a.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/catppuccin-frappe-28e43d66.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/catppuccin-latte-9a48f275.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/catppuccin-macchiato-370cbee9.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/catppuccin-mocha-3ff2c663.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/chapel-984bc1bc.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/clarity-304cafcf.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/clojure-d06bb6da.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/cmake-776084fb.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/cobol-4bfe5d3b.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/codeowners-93b1928d.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/codeql-52989abf.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/coffee-6b7a2e1f.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/common-lisp-0b76d683.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/coq-d1b8b646.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/cpp-98c005a0.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/crystal-9264df27.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/csharp-caf38941.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/css-f3f67fd6.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/csv-3a0d3612.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/cue-0c52bb1c.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/cypher-6be9d357.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/d-35e839eb.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/dark-plus-dc5ab0c3.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/dart-21c85afa.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/dax-e99423d0.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/desktop-52aa47a3.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/diff-dd4ab241.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/docker-9be944bc.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/dotenv-9961b739.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/dracula-4dc0b5c6.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/dracula-soft-976eecd8.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/dream-maker-cacf56fb.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/edge-fbc1ea1f.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/elixir-e6b79676.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/elm-b3f1dffa.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/emacs-lisp-bf73fd5a.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/erb-7be7a3fd.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/erlang-70b15979.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/everforest-dark-fffc9ca4.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/everforest-light-89b50e8a.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/fennel-a2c0b93e.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/fish-c3c09bfe.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/fluent-76c57590.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/fortran-fixed-form-b8fb6202.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/fortran-free-form-109a6ef6.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/fsharp-c79dc05b.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/gdresource-fea1bb9c.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/gdscript-fbd5f057.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/gdshader-882ea0d1.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/genie-40af493d.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/gherkin-b163c6c8.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/git-commit-22965e93.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/git-rebase-72fab675.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/github-dark-default-7e608625.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/github-dark-dimmed-f1b43f6e.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/github-dark-ebeae7f8.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/github-dark-high-contrast-3b79c377.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/github-light-452dc73a.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/github-light-default-7230acd4.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/github-light-high-contrast-c3f5487a.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/gleam-9cdc3c25.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/glimmer-js-a62e0963.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/glimmer-ts-fd72fc9e.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/glsl-72802d50.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/gn-f57dcb6c.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/gnuplot-5df55482.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/go-7f9e5c66.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/graphql-bf3f02bf.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/groovy-9fc42571.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/gruvbox-dark-hard-8277b640.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/gruvbox-dark-medium-52b4753a.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/gruvbox-dark-soft-7671101a.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/gruvbox-light-hard-fa312006.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/gruvbox-light-medium-045d51a1.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/gruvbox-light-soft-6b2fe762.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/hack-9f56f879.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/haml-8110b45d.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/handlebars-4c7e0f37.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/haskell-c4b57d2d.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/haxe-b36570ce.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/hcl-0b65d431.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/hjson-35593dd7.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/hlsl-1b60d818.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/horizon-7d7536b3.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/horizon-bright-9aff3d34.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/houston-5b12bc73.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/html-146e896a.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/html-derivative-6ae63148.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/http-a2a339ea.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/hurl-6a336d0a.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/hxml-061e95a2.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/hy-c5ab808c.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/imba-82357896.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/ini-4b074f03.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/java-69c882ee.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/javascript-def6328c.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/jinja-d9e057a2.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/jison-224d4cd7.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/json-fb434b29.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/json5-3e41fab4.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/jsonc-74f491a5.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/jsonl-97b20c3f.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/jsonnet-0fbbdb85.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/jssm-a304908e.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/jsx-2c461e88.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/julia-0cd17bad.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/just-fe7dae17.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/kanagawa-dragon-e0ec9bb0.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/kanagawa-lotus-a07128e3.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/kanagawa-wave-bbea1b2a.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/kdl-b365f47f.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/kotlin-26d8506d.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/kusto-be136fc5.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/laserwave-37deba33.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/latex-d28d92f8.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/lean-bd28364d.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/less-5065e2bc.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/light-plus-01a51dda.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/liquid-cff2fa08.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/llvm-815114a2.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/log-8e79b28a.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/logo-4e4a2cbf.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/lua-7834d20e.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/luau-41e785de.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/make-831d5b49.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/markdown-6c529ca3.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/marko-ebf34056.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/material-theme-darker-3c70e60a.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/material-theme-f27c83fc.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/material-theme-lighter-45f756d2.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/material-theme-ocean-49ae0eda.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/material-theme-palenight-9462bfb3.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/matlab-0840eea5.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/mdc-6fa94ee3.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/mdx-1132a16e.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/mermaid-2e990632.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/min-dark-d8ea3e44.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/min-light-22f7c862.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/mipsasm-58049608.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/mojo-2b1c719a.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/monokai-c0c02d84.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/moonbit-925e255b.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/move-1f383970.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/narrat-e4019018.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/nextflow-c3ecb400.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/nextflow-groovy-b9a4c652.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/nginx-8f04393a.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/night-owl-18016e88.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/night-owl-light-41348ad0.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/nim-427368d2.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/nix-23c2c452.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/nord-04fad416.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/nsis-4067124b.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/nushell-a1c55647.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/objective-c-d0442b17.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/objective-cpp-c9166239.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/ocaml-1907985e.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/odin-4edd9278.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/one-dark-pro-98938862.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/one-light-ba2b76c3.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/openscad-5a928414.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/org-eb8433d2.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/pascal-83ef650e.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/perl-43a3e425.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/php-d42e013c.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/pkl-4b37d331.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/plastic-b31717de.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/plsql-582ae89f.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/po-40469fd0.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/poimandres-a18fb2c7.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/polar-06897efa.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/postcss-9cbdcc7d.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/powerquery-89dd530b.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/powershell-fb0d5977.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/prisma-00b0ce7f.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/prolog-4e4b62d2.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/proto-cfc7ae8f.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/pug-00e36be6.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/puppet-bcb20ce2.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/purescript-79438736.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/python-983cc133.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/qml-3011bca8.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/qmldir-7b994fb3.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/qss-3f5a0712.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/r-15db78c6.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/racket-e3a99183.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/raku-05fdbd79.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/razor-eba4b2a1.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/rbs-b8f21c7e.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/red-16c11454.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/reg-261c0cb9.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/regexp-e3211b61.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/rel-50362597.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/riscv-d7907df0.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/ron-191650b7.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/rose-pine-5223d410.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/rose-pine-dawn-93c2ae7c.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/rose-pine-moon-93ea4888.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/rosmsg-23cdf873.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/rst-633a63e0.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/ruby-d6229a4b.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/rust-797e4972.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/sas-6af7580c.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/sass-2614cadf.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/scala-cf66f8d2.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/scheme-d8759a9f.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/scss-b867b74c.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/sdbl-5b3a2a55.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/shaderlab-1fe09e16.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/shellscript-acebf4ab.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/shellsession-1935e14d.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/slack-dark-9dd03364.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/slack-ochin-0686fa31.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/smalltalk-073e9d53.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/smithy-58c37287.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/snazzy-light-b4e48e52.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/solarized-dark-cd11f3c4.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/solarized-light-905a6aff.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/solidity-ba0c3a8f.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/soy-c021e120.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/sparql-554c67e4.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/splunk-d720c93b.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/sql-d8adb147.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/ssh-config-4010c3d6.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/stata-caa6d448.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/stylus-a8db80e9.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/surrealql-7e88a245.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/svelte-15fdeab9.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/swift-42c58ac8.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/synthwave-84-cf9149df.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/system-verilog-37a151c4.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/systemd-d3f678b2.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/talonscript-b1476205.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/tasl-0a49bc84.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/tcl-3ef5ee69.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/templ-c161ccbf.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/terraform-06e89874.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/tex-9cd02190.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/tokyo-night-475297c5.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/toml-e4e1125b.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/ts-tags-9e7261f7.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/tsv-de92e756.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/tsx-76eda050.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/turtle-66d1a874.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/twig-cff0696b.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/typescript-b521ffa4.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/typespec-a2bf7963.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/typst-809abc66.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/v-baf607c6.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/vala-4223b101.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/vb-1b258b24.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/verilog-74446cca.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/vesper-e10e3a42.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/vhdl-bf5f916f.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/viml-98bd5e1b.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/vitesse-black-2687ea8d.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/vitesse-dark-c5b03d09.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/vitesse-light-308f70b2.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/vue-7accc211.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/vue-html-d7d47e1b.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/vue-vine-94057ff6.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/vyper-49c338bb.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/wasm-d3e3e002.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/wenyan-f123da11.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/wgsl-23a3bea2.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/wikitext-db2818a7.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/wit-192c1f40.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/wolfram-e51de66a.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/xml-23e9af7d.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/xsl-13238a0a.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/yaml-5fee0572.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/zenscript-f4b78f64.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/chunks/zig-50c7f6cd.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/core-solid-universal.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/host-env.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/icons.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/router.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/styles.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/tanstack-table-core.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/tanstack-virtual-core.js +0 -0
- /package/assets/{a50f0cae4322b5c7233e1396c673c56b62f9c482c0f92e372759caa1316e4a5a → bbe1b9a5c8c89c7bb3fc95992b800f4645188c53fd7199e50d97284197207e3d}/theme.js +0 -0
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["chunks/angular-html-414b5674.js","chunks/html-146e896a.js","chunks/javascript-def6328c.js","chunks/css-f3f67fd6.js","chunks/angular-ts-196c6350.js","chunks/scss-b867b74c.js","chunks/apl-eac78e29.js","chunks/xml-23e9af7d.js","chunks/java-69c882ee.js","chunks/json-fb434b29.js","chunks/astro-86c77de0.js","chunks/typescript-b521ffa4.js","chunks/postcss-9cbdcc7d.js","chunks/tsx-76eda050.js","chunks/blade-7a6c750e.js","chunks/html-derivative-6ae63148.js","chunks/sql-d8adb147.js","chunks/bsl-94318279.js","chunks/sdbl-5b3a2a55.js","chunks/cairo-9d828c5a.js","chunks/python-983cc133.js","chunks/chapel-984bc1bc.js","chunks/c-c772f7dd.js","chunks/cobol-4bfe5d3b.js","chunks/coffee-6b7a2e1f.js","chunks/cpp-98c005a0.js","chunks/regexp-e3211b61.js","chunks/glsl-72802d50.js","chunks/crystal-9264df27.js","chunks/shellscript-acebf4ab.js","chunks/edge-fbc1ea1f.js","chunks/elixir-e6b79676.js","chunks/elm-b3f1dffa.js","chunks/erb-7be7a3fd.js","chunks/ruby-d6229a4b.js","chunks/haml-8110b45d.js","chunks/graphql-bf3f02bf.js","chunks/jsx-2c461e88.js","chunks/lua-7834d20e.js","chunks/yaml-5fee0572.js","chunks/erlang-70b15979.js","chunks/markdown-6c529ca3.js","chunks/fortran-fixed-form-b8fb6202.js","chunks/fortran-free-form-109a6ef6.js","chunks/fsharp-c79dc05b.js","chunks/gdresource-fea1bb9c.js","chunks/gdshader-882ea0d1.js","chunks/gdscript-fbd5f057.js","chunks/git-commit-22965e93.js","chunks/diff-dd4ab241.js","chunks/git-rebase-72fab675.js","chunks/glimmer-js-a62e0963.js","chunks/glimmer-ts-fd72fc9e.js","chunks/hack-9f56f879.js","chunks/handlebars-4c7e0f37.js","chunks/http-a2a339ea.js","chunks/hurl-6a336d0a.js","chunks/csv-3a0d3612.js","chunks/hxml-061e95a2.js","chunks/haxe-b36570ce.js","chunks/jinja-d9e057a2.js","chunks/jison-224d4cd7.js","chunks/julia-0cd17bad.js","chunks/r-15db78c6.js","chunks/just-fe7dae17.js","chunks/perl-43a3e425.js","chunks/latex-d28d92f8.js","chunks/tex-9cd02190.js","chunks/liquid-cff2fa08.js","chunks/marko-ebf34056.js","chunks/less-5065e2bc.js","chunks/mdc-6fa94ee3.js","chunks/nextflow-c3ecb400.js","chunks/nextflow-groovy-b9a4c652.js","chunks/nginx-8f04393a.js","chunks/nim-427368d2.js","chunks/org-eb8433d2.js","chunks/ini-4b074f03.js","chunks/make-831d5b49.js","chunks/php-d42e013c.js","chunks/vb-1b258b24.js","chunks/clojure-d06bb6da.js","chunks/objective-c-d0442b17.js","chunks/docker-9be944bc.js","chunks/go-7f9e5c66.js","chunks/groovy-9fc42571.js","chunks/raku-05fdbd79.js","chunks/rust-797e4972.js","chunks/scala-cf66f8d2.js","chunks/csharp-caf38941.js","chunks/dart-21c85afa.js","chunks/ocaml-1907985e.js","chunks/zig-50c7f6cd.js","chunks/xsl-13238a0a.js","chunks/pug-00e36be6.js","chunks/qml-3011bca8.js","chunks/razor-eba4b2a1.js","chunks/rst-633a63e0.js","chunks/cmake-776084fb.js","chunks/sas-6af7580c.js","chunks/shaderlab-1fe09e16.js","chunks/hlsl-1b60d818.js","chunks/shellsession-1935e14d.js","chunks/soy-c021e120.js","chunks/sparql-554c67e4.js","chunks/turtle-66d1a874.js","chunks/stata-caa6d448.js","chunks/surrealql-7e88a245.js","chunks/svelte-15fdeab9.js","chunks/templ-c161ccbf.js","chunks/ts-tags-9e7261f7.js","chunks/twig-cff0696b.js","chunks/typst-809abc66.js","chunks/bat-9ab060ea.js","chunks/bibtex-b447a3bd.js","chunks/jsonc-74f491a5.js","chunks/log-8e79b28a.js","chunks/powershell-fb0d5977.js","chunks/swift-42c58ac8.js","chunks/verilog-74446cca.js","chunks/system-verilog-37a151c4.js","chunks/vue-7accc211.js","chunks/vue-html-d7d47e1b.js","chunks/vue-vine-94057ff6.js","chunks/stylus-a8db80e9.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{hV as Id,Z as un,dN as O,iK as ae,iL as be,i0 as Ld,gp as Rd,dO as me,el as ee,i6 as Td,dE as x,dP as ne,ia as Pd,i9 as Dd,ic as Od,ib as Md,ig as Nd,ie as Vd,il as $d,ik as Fd,io as Bd,ip as Hd,is as Wd,ir as Gd,iv as jd,iu as zd,iz as Ud,iy as qd,iI as Kd,iD as Xd,dC as ie,h_ as y,iM as J,iN as co,iO as j,iP as ur,iQ as ml,iR as ue,ed as Yo,H as gl,G as Yd,n as vl,dI as St,dV as dr,iS as ce,dD as fr,i1 as Zd,a6 as he,dF as Qt,a7 as re,dH as Zo,dG as pr,dJ as hr,ef as Qo,_ as mr,iT as yl,dT as Ge,dZ as $e,d$ as Fe,fL as _l,iU as bl,g_ as wl,iV as El,ej as At,ek as Sl,i5 as Qd,dU as te,i8 as Jd,i7 as ef,i4 as tf,i3 as nf,i2 as rf,id as of,ij as af,iq as sf,iW as lf,iX as cf,iY as uf,e5 as df,eg as ff,dL as je,dY as Y,ho as pf,hl as hf,a4 as Wi,iZ as Jo,eu as mf,ei as gf,a5 as Al,i_ as ei,ev as ti,im as vf,it as yf,ix as _f,iw as bf,iB as wf,dR as Ef,a2 as Xe,dW as uo,dQ as Sf,dS as ni,em as Ct,fo as Cl,i$ as xl,j0 as kl,j1 as Il,ea as Ll,j2 as Rl,ec as Tl,fj as Pl,eb as Dl,dX as Ol,j3 as Af}from"./runtime-shared.js";typeof Object.hasOwn!="function"&&Object.defineProperty(Object,"hasOwn",{configurable:!0,writable:!0,enumerable:!1,value:function(e,t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}});const Cf="modulepreload",xf=function(e){return"/"+e},Gi={},m=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let l=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=l(n.map(c=>{if(c=xf(c),c in Gi)return;Gi[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":Cf,u||(f.as="script"),f.crossOrigin="",f.href=c,s&&f.setAttribute("nonce",s),document.head.appendChild(f),u)return new Promise((p,h)=>{f.addEventListener("load",p),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return o.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})},Ml=[{id:"abap",name:"ABAP",import:(()=>m(()=>import("./chunks/abap-3d321810.js"),[]))},{id:"actionscript-3",name:"ActionScript",aliases:["actionscript","as3"],import:(()=>m(()=>import("./chunks/actionscript-3-ee0f3172.js"),[]))},{id:"ada",name:"Ada",import:(()=>m(()=>import("./chunks/ada-252b1a4b.js"),[]))},{id:"ahk",name:"AutoHotkey",aliases:["ahk1"],import:(()=>m(()=>import("./chunks/ahk-6e769ba2.js"),[]))},{id:"ahk2",name:"AutoHotkey2",import:(()=>m(()=>import("./chunks/ahk2-0f598015.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>m(()=>import("./chunks/angular-html-414b5674.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>m(()=>import("./chunks/angular-ts-196c6350.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>m(()=>import("./chunks/apache-cdab5206.js"),[]))},{id:"apex",name:"Apex",import:(()=>m(()=>import("./chunks/apex-c3f9fc0e.js"),[]))},{id:"apl",name:"APL",import:(()=>m(()=>import("./chunks/apl-eac78e29.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>m(()=>import("./chunks/applescript-636efa0e.js"),[]))},{id:"ara",name:"Ara",import:(()=>m(()=>import("./chunks/ara-0ce36c80.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>m(()=>import("./chunks/asciidoc-f3df19b9.js"),[]))},{id:"asm",name:"Assembly",import:(()=>m(()=>import("./chunks/asm-2df5a334.js"),[]))},{id:"astro",name:"Astro",import:(()=>m(()=>import("./chunks/astro-86c77de0.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>m(()=>import("./chunks/awk-103b5427.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>m(()=>import("./chunks/ballerina-394fb9b0.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch","cmd"],import:(()=>m(()=>import("./chunks/bat-9ab060ea.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>m(()=>import("./chunks/beancount-a5d3b565.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>m(()=>import("./chunks/berry-b086b67c.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>m(()=>import("./chunks/bibtex-b447a3bd.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>m(()=>import("./chunks/bicep-2e94d542.js"),[]))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>m(()=>import("./chunks/bird2-8349d846.js"),[]))},{id:"blade",name:"Blade",import:(()=>m(()=>import("./chunks/blade-7a6c750e.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>m(()=>import("./chunks/bsl-94318279.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>m(()=>import("./chunks/c-c772f7dd.js"),[]))},{id:"c3",name:"C3",import:(()=>m(()=>import("./chunks/c3-4d5fec5e.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>m(()=>import("./chunks/cadence-8c4c9e65.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>m(()=>import("./chunks/cairo-9d828c5a.js"),__vite__mapDeps([19,20])))},{id:"chapel",name:"Chapel",aliases:["chpl"],import:(()=>m(()=>import("./chunks/chapel-984bc1bc.js"),__vite__mapDeps([21,22])))},{id:"clarity",name:"Clarity",import:(()=>m(()=>import("./chunks/clarity-304cafcf.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>m(()=>import("./chunks/clojure-d06bb6da.js"),[]))},{id:"cmake",name:"CMake",import:(()=>m(()=>import("./chunks/cmake-776084fb.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>m(()=>import("./chunks/cobol-4bfe5d3b.js"),__vite__mapDeps([23,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>m(()=>import("./chunks/codeowners-93b1928d.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>m(()=>import("./chunks/codeql-52989abf.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>m(()=>import("./chunks/coffee-6b7a2e1f.js"),__vite__mapDeps([24,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>m(()=>import("./chunks/common-lisp-0b76d683.js"),[]))},{id:"coq",name:"Rocq",import:(()=>m(()=>import("./chunks/coq-d1b8b646.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>m(()=>import("./chunks/cpp-98c005a0.js"),__vite__mapDeps([25,26,27,22])))},{id:"crystal",name:"Crystal",import:(()=>m(()=>import("./chunks/crystal-9264df27.js"),__vite__mapDeps([28,1,2,3,16,22,29])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>m(()=>import("./chunks/csharp-caf38941.js"),[]))},{id:"css",name:"CSS",import:(()=>m(()=>import("./chunks/css-f3f67fd6.js"),[]))},{id:"csv",name:"CSV",import:(()=>m(()=>import("./chunks/csv-3a0d3612.js"),[]))},{id:"cue",name:"CUE",import:(()=>m(()=>import("./chunks/cue-0c52bb1c.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>m(()=>import("./chunks/cypher-6be9d357.js"),[]))},{id:"d",name:"D",import:(()=>m(()=>import("./chunks/d-35e839eb.js"),[]))},{id:"dart",name:"Dart",import:(()=>m(()=>import("./chunks/dart-21c85afa.js"),[]))},{id:"dax",name:"DAX",import:(()=>m(()=>import("./chunks/dax-e99423d0.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>m(()=>import("./chunks/desktop-52aa47a3.js"),[]))},{id:"diff",name:"Diff",import:(()=>m(()=>import("./chunks/diff-dd4ab241.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>m(()=>import("./chunks/docker-9be944bc.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>m(()=>import("./chunks/dotenv-9961b739.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>m(()=>import("./chunks/dream-maker-cacf56fb.js"),[]))},{id:"edge",name:"Edge",import:(()=>m(()=>import("./chunks/edge-fbc1ea1f.js"),__vite__mapDeps([30,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>m(()=>import("./chunks/elixir-e6b79676.js"),__vite__mapDeps([31,1,2,3])))},{id:"elm",name:"Elm",import:(()=>m(()=>import("./chunks/elm-b3f1dffa.js"),__vite__mapDeps([32,27,22])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>m(()=>import("./chunks/emacs-lisp-bf73fd5a.js"),[]))},{id:"erb",name:"ERB",import:(()=>m(()=>import("./chunks/erb-7be7a3fd.js"),__vite__mapDeps([33,1,2,3,34,35,7,8,16,36,11,37,13,25,26,27,22,29,38,39])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>m(()=>import("./chunks/erlang-70b15979.js"),__vite__mapDeps([40,41])))},{id:"fennel",name:"Fennel",import:(()=>m(()=>import("./chunks/fennel-a2c0b93e.js"),[]))},{id:"fish",name:"Fish",import:(()=>m(()=>import("./chunks/fish-c3c09bfe.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>m(()=>import("./chunks/fluent-76c57590.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>m(()=>import("./chunks/fortran-fixed-form-b8fb6202.js"),__vite__mapDeps([42,43])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>m(()=>import("./chunks/fortran-free-form-109a6ef6.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>m(()=>import("./chunks/fsharp-c79dc05b.js"),__vite__mapDeps([44,41])))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>m(()=>import("./chunks/gdresource-fea1bb9c.js"),__vite__mapDeps([45,46,47])))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>m(()=>import("./chunks/gdscript-fbd5f057.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>m(()=>import("./chunks/gdshader-882ea0d1.js"),[]))},{id:"genie",name:"Genie",import:(()=>m(()=>import("./chunks/genie-40af493d.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>m(()=>import("./chunks/gherkin-b163c6c8.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>m(()=>import("./chunks/git-commit-22965e93.js"),__vite__mapDeps([48,49])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>m(()=>import("./chunks/git-rebase-72fab675.js"),__vite__mapDeps([50,29])))},{id:"gleam",name:"Gleam",import:(()=>m(()=>import("./chunks/gleam-9cdc3c25.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>m(()=>import("./chunks/glimmer-js-a62e0963.js"),__vite__mapDeps([51,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>m(()=>import("./chunks/glimmer-ts-fd72fc9e.js"),__vite__mapDeps([52,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>m(()=>import("./chunks/glsl-72802d50.js"),__vite__mapDeps([27,22])))},{id:"gn",name:"GN",import:(()=>m(()=>import("./chunks/gn-f57dcb6c.js"),[]))},{id:"gnuplot",name:"Gnuplot",import:(()=>m(()=>import("./chunks/gnuplot-5df55482.js"),[]))},{id:"go",name:"Go",import:(()=>m(()=>import("./chunks/go-7f9e5c66.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>m(()=>import("./chunks/graphql-bf3f02bf.js"),__vite__mapDeps([36,2,11,37,13])))},{id:"groovy",name:"Groovy",import:(()=>m(()=>import("./chunks/groovy-9fc42571.js"),[]))},{id:"hack",name:"Hack",import:(()=>m(()=>import("./chunks/hack-9f56f879.js"),__vite__mapDeps([53,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>m(()=>import("./chunks/haml-8110b45d.js"),__vite__mapDeps([35,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>m(()=>import("./chunks/handlebars-4c7e0f37.js"),__vite__mapDeps([54,1,2,3,39])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>m(()=>import("./chunks/haskell-c4b57d2d.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>m(()=>import("./chunks/haxe-b36570ce.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>m(()=>import("./chunks/hcl-0b65d431.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>m(()=>import("./chunks/hjson-35593dd7.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>m(()=>import("./chunks/hlsl-1b60d818.js"),[]))},{id:"html",name:"HTML",import:(()=>m(()=>import("./chunks/html-146e896a.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>m(()=>import("./chunks/html-derivative-6ae63148.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>m(()=>import("./chunks/http-a2a339ea.js"),__vite__mapDeps([55,29,9,7,8,36,2,11,37,13])))},{id:"hurl",name:"Hurl",import:(()=>m(()=>import("./chunks/hurl-6a336d0a.js"),__vite__mapDeps([56,36,2,11,37,13,7,8,57])))},{id:"hxml",name:"HXML",import:(()=>m(()=>import("./chunks/hxml-061e95a2.js"),__vite__mapDeps([58,59])))},{id:"hy",name:"Hy",import:(()=>m(()=>import("./chunks/hy-c5ab808c.js"),[]))},{id:"imba",name:"Imba",import:(()=>m(()=>import("./chunks/imba-82357896.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>m(()=>import("./chunks/ini-4b074f03.js"),[]))},{id:"java",name:"Java",import:(()=>m(()=>import("./chunks/java-69c882ee.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>m(()=>import("./chunks/javascript-def6328c.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>m(()=>import("./chunks/jinja-d9e057a2.js"),__vite__mapDeps([60,1,2,3])))},{id:"jison",name:"Jison",import:(()=>m(()=>import("./chunks/jison-224d4cd7.js"),__vite__mapDeps([61,2])))},{id:"json",name:"JSON",import:(()=>m(()=>import("./chunks/json-fb434b29.js"),[]))},{id:"json5",name:"JSON5",import:(()=>m(()=>import("./chunks/json5-3e41fab4.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>m(()=>import("./chunks/jsonc-74f491a5.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>m(()=>import("./chunks/jsonl-97b20c3f.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>m(()=>import("./chunks/jsonnet-0fbbdb85.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>m(()=>import("./chunks/jssm-a304908e.js"),[]))},{id:"jsx",name:"JSX",import:(()=>m(()=>import("./chunks/jsx-2c461e88.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>m(()=>import("./chunks/julia-0cd17bad.js"),__vite__mapDeps([62,25,26,27,22,20,2,63,16])))},{id:"just",name:"Just",aliases:["justfile"],import:(()=>m(()=>import("./chunks/just-fe7dae17.js"),__vite__mapDeps([64,29,2,11,65,1,3,7,8,16,20,34,35,36,37,13,25,26,27,22,38,39])))},{id:"kdl",name:"KDL",import:(()=>m(()=>import("./chunks/kdl-b365f47f.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>m(()=>import("./chunks/kotlin-26d8506d.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>m(()=>import("./chunks/kusto-be136fc5.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>m(()=>import("./chunks/latex-d28d92f8.js"),__vite__mapDeps([66,67,63])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>m(()=>import("./chunks/lean-bd28364d.js"),[]))},{id:"less",name:"Less",import:(()=>m(()=>import("./chunks/less-5065e2bc.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>m(()=>import("./chunks/liquid-cff2fa08.js"),__vite__mapDeps([68,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>m(()=>import("./chunks/llvm-815114a2.js"),[]))},{id:"log",name:"Log file",import:(()=>m(()=>import("./chunks/log-8e79b28a.js"),[]))},{id:"logo",name:"Logo",import:(()=>m(()=>import("./chunks/logo-4e4a2cbf.js"),[]))},{id:"lua",name:"Lua",import:(()=>m(()=>import("./chunks/lua-7834d20e.js"),__vite__mapDeps([38,22])))},{id:"luau",name:"Luau",import:(()=>m(()=>import("./chunks/luau-41e785de.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>m(()=>import("./chunks/make-831d5b49.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>m(()=>import("./chunks/markdown-6c529ca3.js"),[]))},{id:"marko",name:"Marko",import:(()=>m(()=>import("./chunks/marko-ebf34056.js"),__vite__mapDeps([69,3,70,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>m(()=>import("./chunks/matlab-0840eea5.js"),[]))},{id:"mdc",name:"MDC",import:(()=>m(()=>import("./chunks/mdc-6fa94ee3.js"),__vite__mapDeps([71,41,39,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>m(()=>import("./chunks/mdx-1132a16e.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>m(()=>import("./chunks/mermaid-2e990632.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>m(()=>import("./chunks/mipsasm-58049608.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>m(()=>import("./chunks/mojo-2b1c719a.js"),[]))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>m(()=>import("./chunks/moonbit-925e255b.js"),[]))},{id:"move",name:"Move",import:(()=>m(()=>import("./chunks/move-1f383970.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>m(()=>import("./chunks/narrat-e4019018.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>m(()=>import("./chunks/nextflow-c3ecb400.js"),__vite__mapDeps([72,73])))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:(()=>m(()=>import("./chunks/nextflow-groovy-b9a4c652.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>m(()=>import("./chunks/nginx-8f04393a.js"),__vite__mapDeps([74,38,22])))},{id:"nim",name:"Nim",import:(()=>m(()=>import("./chunks/nim-427368d2.js"),__vite__mapDeps([75,22,1,2,3,7,8,27,41])))},{id:"nix",name:"Nix",import:(()=>m(()=>import("./chunks/nix-23c2c452.js"),[]))},{id:"nsis",name:"NSIS",import:(()=>m(()=>import("./chunks/nsis-4067124b.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>m(()=>import("./chunks/nushell-a1c55647.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>m(()=>import("./chunks/objective-c-d0442b17.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>m(()=>import("./chunks/objective-cpp-c9166239.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>m(()=>import("./chunks/ocaml-1907985e.js"),[]))},{id:"odin",name:"Odin",import:(()=>m(()=>import("./chunks/odin-4edd9278.js"),[]))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>m(()=>import("./chunks/openscad-5a928414.js"),[]))},{id:"org",name:"Org Markup",import:(()=>m(()=>import("./chunks/org-eb8433d2.js"),__vite__mapDeps([76,2,11,13,8,20,26,3,38,22,77,78,65,1,7,16,63,34,35,36,37,25,27,29,39,79,9,80,81,24,82,49,83,84,85,70,5,86,87,88,89,90,75,41,31,40,91,92,93,48,50,66,67])))},{id:"pascal",name:"Pascal",import:(()=>m(()=>import("./chunks/pascal-83ef650e.js"),[]))},{id:"perl",name:"Perl",import:(()=>m(()=>import("./chunks/perl-43a3e425.js"),__vite__mapDeps([65,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>m(()=>import("./chunks/php-d42e013c.js"),__vite__mapDeps([79,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>m(()=>import("./chunks/pkl-4b37d331.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>m(()=>import("./chunks/plsql-582ae89f.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>m(()=>import("./chunks/po-40469fd0.js"),[]))},{id:"polar",name:"Polar",import:(()=>m(()=>import("./chunks/polar-06897efa.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>m(()=>import("./chunks/postcss-9cbdcc7d.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>m(()=>import("./chunks/powerquery-89dd530b.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1","pwsh"],import:(()=>m(()=>import("./chunks/powershell-fb0d5977.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>m(()=>import("./chunks/prisma-00b0ce7f.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>m(()=>import("./chunks/prolog-4e4b62d2.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>m(()=>import("./chunks/proto-cfc7ae8f.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>m(()=>import("./chunks/pug-00e36be6.js"),__vite__mapDeps([94,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>m(()=>import("./chunks/puppet-bcb20ce2.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>m(()=>import("./chunks/purescript-79438736.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>m(()=>import("./chunks/python-983cc133.js"),[]))},{id:"qml",name:"QML",import:(()=>m(()=>import("./chunks/qml-3011bca8.js"),__vite__mapDeps([95,2])))},{id:"qmldir",name:"QML Directory",import:(()=>m(()=>import("./chunks/qmldir-7b994fb3.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>m(()=>import("./chunks/qss-3f5a0712.js"),[]))},{id:"r",name:"R",import:(()=>m(()=>import("./chunks/r-15db78c6.js"),[]))},{id:"racket",name:"Racket",import:(()=>m(()=>import("./chunks/racket-e3a99183.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>m(()=>import("./chunks/raku-05fdbd79.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>m(()=>import("./chunks/razor-eba4b2a1.js"),__vite__mapDeps([96,1,2,3,89])))},{id:"rbs",name:"RBS",aliases:["ruby-signature"],import:(()=>m(()=>import("./chunks/rbs-b8f21c7e.js"),[]))},{id:"reg",name:"Windows Registry Script",import:(()=>m(()=>import("./chunks/reg-261c0cb9.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>m(()=>import("./chunks/regexp-e3211b61.js"),[]))},{id:"rel",name:"Rel",import:(()=>m(()=>import("./chunks/rel-50362597.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>m(()=>import("./chunks/riscv-d7907df0.js"),[]))},{id:"ron",name:"RON",import:(()=>m(()=>import("./chunks/ron-191650b7.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>m(()=>import("./chunks/rosmsg-23cdf873.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>m(()=>import("./chunks/rst-633a63e0.js"),__vite__mapDeps([97,15,1,2,3,25,26,27,22,20,29,39,98,34,35,7,8,16,36,11,37,13,38])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>m(()=>import("./chunks/ruby-d6229a4b.js"),__vite__mapDeps([34,1,2,3,35,7,8,16,36,11,37,13,25,26,27,22,29,38,39])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>m(()=>import("./chunks/rust-797e4972.js"),[]))},{id:"sas",name:"SAS",import:(()=>m(()=>import("./chunks/sas-6af7580c.js"),__vite__mapDeps([99,16])))},{id:"sass",name:"Sass",import:(()=>m(()=>import("./chunks/sass-2614cadf.js"),[]))},{id:"scala",name:"Scala",import:(()=>m(()=>import("./chunks/scala-cf66f8d2.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>m(()=>import("./chunks/scheme-d8759a9f.js"),[]))},{id:"scss",name:"SCSS",import:(()=>m(()=>import("./chunks/scss-b867b74c.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>m(()=>import("./chunks/sdbl-5b3a2a55.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>m(()=>import("./chunks/shaderlab-1fe09e16.js"),__vite__mapDeps([100,101])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>m(()=>import("./chunks/shellscript-acebf4ab.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>m(()=>import("./chunks/shellsession-1935e14d.js"),__vite__mapDeps([102,29])))},{id:"smalltalk",name:"GNU Smalltalk",import:(()=>m(()=>import("./chunks/smalltalk-073e9d53.js"),[]))},{id:"smithy",name:"Smithy",import:(()=>m(()=>import("./chunks/smithy-58c37287.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>m(()=>import("./chunks/solidity-ba0c3a8f.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>m(()=>import("./chunks/soy-c021e120.js"),__vite__mapDeps([103,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>m(()=>import("./chunks/sparql-554c67e4.js"),__vite__mapDeps([104,105])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>m(()=>import("./chunks/splunk-d720c93b.js"),[]))},{id:"sql",name:"SQL",import:(()=>m(()=>import("./chunks/sql-d8adb147.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>m(()=>import("./chunks/ssh-config-4010c3d6.js"),[]))},{id:"stata",name:"Stata",import:(()=>m(()=>import("./chunks/stata-caa6d448.js"),__vite__mapDeps([106,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>m(()=>import("./chunks/stylus-a8db80e9.js"),[]))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>m(()=>import("./chunks/surrealql-7e88a245.js"),__vite__mapDeps([107,2])))},{id:"svelte",name:"Svelte",import:(()=>m(()=>import("./chunks/svelte-15fdeab9.js"),__vite__mapDeps([108,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>m(()=>import("./chunks/swift-42c58ac8.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>m(()=>import("./chunks/system-verilog-37a151c4.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>m(()=>import("./chunks/systemd-d3f678b2.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>m(()=>import("./chunks/talonscript-b1476205.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>m(()=>import("./chunks/tasl-0a49bc84.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>m(()=>import("./chunks/tcl-3ef5ee69.js"),[]))},{id:"templ",name:"Templ",import:(()=>m(()=>import("./chunks/templ-c161ccbf.js"),__vite__mapDeps([109,84,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>m(()=>import("./chunks/terraform-06e89874.js"),[]))},{id:"tex",name:"TeX",import:(()=>m(()=>import("./chunks/tex-9cd02190.js"),__vite__mapDeps([67,63])))},{id:"toml",name:"TOML",import:(()=>m(()=>import("./chunks/toml-e4e1125b.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>m(()=>import("./chunks/ts-tags-9e7261f7.js"),__vite__mapDeps([110,11,3,2,27,22,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>m(()=>import("./chunks/tsv-de92e756.js"),[]))},{id:"tsx",name:"TSX",import:(()=>m(()=>import("./chunks/tsx-76eda050.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>m(()=>import("./chunks/turtle-66d1a874.js"),[]))},{id:"twig",name:"Twig",import:(()=>m(()=>import("./chunks/twig-cff0696b.js"),__vite__mapDeps([111,2,3,5,79,1,7,8,16,9,20,34,35,36,11,37,13,25,26,27,22,29,38,39])))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>m(()=>import("./chunks/typescript-b521ffa4.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>m(()=>import("./chunks/typespec-a2bf7963.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>m(()=>import("./chunks/typst-809abc66.js"),__vite__mapDeps([112,113,114,22,81,24,2,25,26,27,3,89,90,49,83,31,1,40,41,44,48,50,29,84,85,54,39,77,8,115,9,62,20,63,16,66,67,70,116,38,78,82,65,7,86,79,117,94,34,35,36,11,37,13,5,118,93,87,88,111,119,120,80])))},{id:"v",name:"V",import:(()=>m(()=>import("./chunks/v-baf607c6.js"),[]))},{id:"vala",name:"Vala",import:(()=>m(()=>import("./chunks/vala-4223b101.js"),[]))},{id:"vb",name:"Visual Basic",import:(()=>m(()=>import("./chunks/vb-1b258b24.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>m(()=>import("./chunks/verilog-74446cca.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>m(()=>import("./chunks/vhdl-bf5f916f.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>m(()=>import("./chunks/viml-98bd5e1b.js"),[]))},{id:"vue",name:"Vue",import:(()=>m(()=>import("./chunks/vue-7accc211.js"),__vite__mapDeps([121,3,2,11,9,1,15])))},{id:"vue-html",name:"Vue HTML",import:(()=>m(()=>import("./chunks/vue-html-d7d47e1b.js"),__vite__mapDeps([122,2])))},{id:"vue-vine",name:"Vue Vine",import:(()=>m(()=>import("./chunks/vue-vine-94057ff6.js"),__vite__mapDeps([123,3,5,70,124,12,2])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>m(()=>import("./chunks/vyper-49c338bb.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>m(()=>import("./chunks/wasm-d3e3e002.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>m(()=>import("./chunks/wenyan-f123da11.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>m(()=>import("./chunks/wgsl-23a3bea2.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>m(()=>import("./chunks/wikitext-db2818a7.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>m(()=>import("./chunks/wit-192c1f40.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>m(()=>import("./chunks/wolfram-e51de66a.js"),[]))},{id:"xml",name:"XML",import:(()=>m(()=>import("./chunks/xml-23e9af7d.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>m(()=>import("./chunks/xsl-13238a0a.js"),__vite__mapDeps([93,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>m(()=>import("./chunks/yaml-5fee0572.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>m(()=>import("./chunks/zenscript-f4b78f64.js"),[]))},{id:"zig",name:"Zig",import:(()=>m(()=>import("./chunks/zig-50c7f6cd.js"),[]))}],kf=Object.fromEntries(Ml.map(e=>[e.id,e.import])),If=Object.fromEntries(Ml.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(n=>[n,e.import]))||[]})),Nl={...kf,...If};var V=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Lf(e){return ri(e)}function ri(e){return Array.isArray(e)?Rf(e):e instanceof RegExp?e:typeof e=="object"?Tf(e):e}function Rf(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=ri(e[n]);return t}function Tf(e){let t={};for(let n in e)t[n]=ri(e[n]);return t}function Vl(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function $l(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?$l(e.substring(0,e.length-1)):e.substr(~t+1)}var Or=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,mn=class{static hasCaptures(e){return e===null?!1:(Or.lastIndex=0,Or.test(e))}static replaceCaptures(e,t,n){return e.replace(Or,(r,o,i,a)=>{let s=n[parseInt(o||i,10)];if(s){let l=t.substring(s.start,s.end);for(;l[0]===".";)l=l.substring(1);switch(a){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return r})}};function Fl(e,t){return e<t?-1:e>t?1:0}function Bl(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 o=0;o<n;o++){let i=Fl(e[o],t[o]);if(i!==0)return i}return 0}return n-r}function ji(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 Hl(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Wl=class{constructor(e){this.fn=e}fn;cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Dn=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}_colorMap;_defaults;_root;static createFromRawTheme(e,t){return this.createFromParsedTheme(Of(e),t)}static createFromParsedTheme(e,t){return Nf(e,t)}_cachedMatchRoot=new Wl(e=>this._root.match(e));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(o=>Pf(e.parent,o.parentScopes));return r?new Gl(r.fontStyle,r.foreground,r.background):null}},Mr=class In{constructor(t,n){this.parent=t,this.scopeName=n}parent;scopeName;static push(t,n){for(const r of n)t=new In(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new In(n,t[r]);return n}push(t){return new In(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 Pf(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],o=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],o=!0}for(;e&&!Df(e.scopeName,r);){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Df(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Gl=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}fontStyle;foregroundId;backgroundId};function Of(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let o=0,i=t.length;o<i;o++){let a=t[o];if(!a.settings)continue;let s;if(typeof a.scope=="string"){let d=a.scope;d=d.replace(/^[,]+/,""),d=d.replace(/[,]+$/,""),s=d.split(",")}else Array.isArray(a.scope)?s=a.scope:s=[""];let l=-1;if(typeof a.settings.fontStyle=="string"){l=0;let d=a.settings.fontStyle.split(" ");for(let f=0,p=d.length;f<p;f++)switch(d[f]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let c=null;typeof a.settings.foreground=="string"&&ji(a.settings.foreground)&&(c=a.settings.foreground);let u=null;typeof a.settings.background=="string"&&ji(a.settings.background)&&(u=a.settings.background);for(let d=0,f=s.length;d<f;d++){let h=s[d].trim().split(" "),g=h[h.length-1],v=null;h.length>1&&(v=h.slice(0,h.length-1),v.reverse()),n[r++]=new Mf(g,v,o,l,c,u)}}return n}var Mf=class{constructor(e,t,n,r,o,i){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=o,this.background=i}scope;parentScopes;index;fontStyle;foreground;background},Q=(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))(Q||{});function Nf(e,t){e.sort((l,c)=>{let u=Fl(l.scope,c.scope);return u!==0||(u=Bl(l.parentScopes,c.parentScopes),u!==0)?u:l.index-c.index});let n=0,r="#000000",o="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(o=l.background)}let i=new Vf(t),a=new Gl(n,i.getId(r),i.getId(o)),s=new Ff(new fo(0,null,-1,0,0),[]);for(let l=0,c=e.length;l<c;l++){let u=e[l];s.insert(0,u.scope,u.parentScopes,u.fontStyle,i.getId(u.foreground),i.getId(u.background))}return new Dn(i,a,s)}var Vf=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(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)}},$f=Object.freeze([]),fo=class jl{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,o,i){this.scopeDepth=t,this.parentScopes=n||$f,this.fontStyle=r,this.foreground=o,this.background=i}clone(){return new jl(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,o=t.length;r<o;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,o){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),o!==0&&(this.background=o)}},Ff=class po{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_mainRule;_children;_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,o=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[o]===">"&&o++,!(r>=t.parentScopes.length||o>=n.parentScopes.length);){const i=n.parentScopes[o].length-t.parentScopes[r].length;if(i!==0)return i;r++,o++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),o,i;if(r===-1?(o=t,i=""):(o=t.substring(0,r),i=t.substring(r+1)),this._children.hasOwnProperty(o))return this._children[o].match(i)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(po._cmpBySpecificity),n}insert(t,n,r,o,i,a){if(n===""){this._doInsertHere(t,r,o,i,a);return}let s=n.indexOf("."),l,c;s===-1?(l=n,c=""):(l=n.substring(0,s),c=n.substring(s+1));let u;this._children.hasOwnProperty(l)?u=this._children[l]:(u=new po(this._mainRule.clone(),fo.cloneArr(this._rulesWithParentScopes)),this._children[l]=u),u.insert(t+1,c,r,o,i,a)}_doInsertHere(t,n,r,o,i){if(n===null){this._mainRule.acceptOverwrite(t,r,o,i);return}for(let a=0,s=this._rulesWithParentScopes.length;a<s;a++){let l=this._rulesWithParentScopes[a];if(Bl(l.parentScopes,n)===0){l.acceptOverwrite(t,r,o,i);return}}r===-1&&(r=this._mainRule.fontStyle),o===0&&(o=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new fo(t,n,r,o,i))}},nt=class de{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=de.getLanguageId(t),r=de.getTokenType(t),o=de.getFontStyle(t),i=de.getForeground(t),a=de.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:o,foreground:i,background:a})}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,o,i,a,s){let l=de.getLanguageId(t),c=de.getTokenType(t),u=de.containsBalancedBrackets(t)?1:0,d=de.getFontStyle(t),f=de.getForeground(t),p=de.getBackground(t);return n!==0&&(l=n),r!==8&&(c=r),o!==null&&(u=o?1:0),i!==-1&&(d=i),a!==0&&(f=a),s!==0&&(p=s),(l<<0|c<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function On(e,t){const n=[],r=Bf(e);let o=r.next();for(;o!==null;){let l=0;if(o.length===2&&o.charAt(1)===":"){switch(o.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=r.next()}let c=a();if(n.push({matcher:c,priority:l}),o!==",")break;o=r.next()}return n;function i(){if(o==="-"){o=r.next();const l=i();return c=>!!l&&!l(c)}if(o==="("){o=r.next();const l=s();return o===")"&&(o=r.next()),l}if(zi(o)){const l=[];do l.push(o),o=r.next();while(zi(o));return c=>t(l,c)}return null}function a(){const l=[];let c=i();for(;c;)l.push(c),c=i();return u=>l.every(d=>d(u))}function s(){const l=[];let c=a();for(;c&&(l.push(c),o==="|"||o===",");){do o=r.next();while(o==="|"||o===",");c=a()}return u=>l.some(d=>d(u))}}function zi(e){return!!e&&!!e.match(/[\w\.:]+/)}function Bf(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 zl(e){typeof e.dispose=="function"&&e.dispose()}var Jt=class{constructor(e){this.scopeName=e}scopeName;toKey(){return this.scopeName}},Hf=class{constructor(e,t){this.scopeName=e,this.ruleName=t}scopeName;ruleName;toKey(){return`${this.scopeName}#${this.ruleName}`}},Wf=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},Gf=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Jt(this.initialScopeName)]}repo;initialScopeName;seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new Wf;for(const n of e)jf(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Jt){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 jf(e,t,n,r){const o=n.lookup(e.scopeName);if(!o){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const i=n.lookup(t);e instanceof Jt?Ln({baseGrammar:i,selfGrammar:o},r):ho(e.ruleName,{baseGrammar:i,selfGrammar:o,repository:o.repository},r);const a=n.injections(e.scopeName);if(a)for(const s of a)r.add(new Jt(s))}function ho(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Mn([r],t,n)}}function Ln(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Mn(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Mn(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Mn(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const o=r.repository?Vl({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Mn(r.patterns,{...t,repository:o},n);const i=r.include;if(!i)continue;const a=Ul(i);switch(a.kind){case 0:Ln({...t,selfGrammar:t.baseGrammar},n);break;case 1:Ln(t,n);break;case 2:ho(a.ruleName,{...t,repository:o},n);break;case 3:case 4:const s=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){const l={baseGrammar:t.baseGrammar,selfGrammar:s,repository:o};a.kind===4?ho(a.ruleName,l,n):Ln(l,n)}else a.kind===4?n.add(new Hf(a.scopeName,a.ruleName)):n.add(new Jt(a.scopeName));break}}}var zf=class{kind=0},Uf=class{kind=1},qf=class{constructor(e){this.ruleName=e}ruleName;kind=2},Kf=class{constructor(e){this.scopeName=e}scopeName;kind=3},Xf=class{constructor(e,t){this.scopeName=e,this.ruleName=t}scopeName;ruleName;kind=4};function Ul(e){if(e==="$base")return new zf;if(e==="$self")return new Uf;const t=e.indexOf("#");if(t===-1)return new Kf(e);if(t===0)return new qf(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new Xf(n,r)}}var Yf=/\\(\d+)/,Ui=/\\(\d+)/g,Zf=-1,ql=-2;var dn=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=mn.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=mn.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${$l(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:mn.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:mn.replaceCaptures(this._contentName,e,t)}},Qf=class extends dn{retokenizeCapturedWithRuleId;constructor(e,t,n,r,o){super(e,t,n,r),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},Jf=class extends dn{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,o){super(e,t,n,null),this._match=new en(r,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new tn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},qi=class extends dn{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,o){super(e,t,n,r),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new tn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},mo=class extends dn{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,o,i,a,s,l,c){super(e,t,n,r),this._begin=new en(o,this.id),this.beginCaptures=i,this._end=new en(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new tn;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Nn=class extends dn{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,o,i,a,s,l){super(e,t,n,r),this._begin=new en(o,this.id),this.beginCaptures=i,this.whileCaptures=s,this._while=new en(a,ql),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new tn;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new tn,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},Kl=class Z{static createCaptureRule(t,n,r,o,i){return t.registerRule(a=>new Qf(n,a,r,o,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(o=>{if(t.id=o,t.match)return new Jf(t.$vscodeTextmateLocation,t.id,t.name,t.match,Z._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=Vl({},r,t.repository));let i=t.patterns;return typeof i>"u"&&t.include&&(i=[{include:t.include}]),new qi(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Z._compilePatterns(i,n,r))}return t.while?new Nn(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Z._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Z._compileCaptures(t.whileCaptures||t.captures,n,r),Z._compilePatterns(t.patterns,n,r)):new mo(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Z._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Z._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Z._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let o=[];if(t){let i=0;for(const a in t){if(a==="$vscodeTextmateLocation")continue;const s=parseInt(a,10);s>i&&(i=s)}for(let a=0;a<=i;a++)o[a]=null;for(const a in t){if(a==="$vscodeTextmateLocation")continue;const s=parseInt(a,10);let l=0;t[a].patterns&&(l=Z.getCompiledRuleId(t[a],n,r)),o[s]=Z.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,l)}}return o}static _compilePatterns(t,n,r){let o=[];if(t)for(let i=0,a=t.length;i<a;i++){const s=t[i];let l=-1;if(s.include){const c=Ul(s.include);switch(c.kind){case 0:case 1:l=Z.getCompiledRuleId(r[s.include],n,r);break;case 2:let u=r[c.ruleName];u&&(l=Z.getCompiledRuleId(u,n,r));break;case 3:case 4:const d=c.scopeName,f=c.kind===4?c.ruleName:null,p=n.getExternalGrammar(d,r);if(p)if(f){let h=p.repository[f];h&&(l=Z.getCompiledRuleId(h,n,p.repository))}else l=Z.getCompiledRuleId(p.repository.$self,n,p.repository);break}}else l=Z.getCompiledRuleId(s,n,r);if(l!==-1){const c=n.getRule(l);let u=!1;if((c instanceof qi||c instanceof mo||c instanceof Nn)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;o.push(l)}}return{patterns:o,hasMissingPatterns:(t?t.length:0)!==o.length}}},en=class Xl{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let o=0,i=[],a=!1;for(let s=0;s<r;s++)if(t.charAt(s)==="\\"&&s+1<r){const c=t.charAt(s+1);c==="z"?(i.push(t.substring(o,s)),i.push("$(?!\\n)(?<!\\n)"),o=s+2):(c==="A"||c==="G")&&(a=!0),s++}this.hasAnchor=a,o===0?this.source=t:(i.push(t.substring(o,r)),this.source=i.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=Yf.test(this.source):this.hasBackReferences=!1}clone(){return new Xl(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(o=>t.substring(o.start,o.end));return Ui.lastIndex=0,this.source.replace(Ui,(o,i)=>Hl(r[parseInt(i,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=[],o=[],i,a,s,l;for(i=0,a=this.source.length;i<a;i++)s=this.source.charAt(i),t[i]=s,n[i]=s,r[i]=s,o[i]=s,s==="\\"&&i+1<a&&(l=this.source.charAt(i+1),l==="A"?(t[i+1]="",n[i+1]="",r[i+1]="A",o[i+1]="A"):l==="G"?(t[i+1]="",n[i+1]="G",r[i+1]="",o[i+1]="G"):(t[i+1]=l,n[i+1]=l,r[i+1]=l,o[i+1]=l),i++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:o.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}},tn=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Ki(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(o=>o.resolveAnchors(t,n));return new Ki(e,r,this._items.map(o=>o.ruleId))}},Ki=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}regExps;rules;scanner;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(`
|
|
3
|
+
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Nr=class{constructor(e,t){this.languageId=e,this.tokenType=t}languageId;tokenType},ep=class go{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new Nr(t,8),this._embeddedLanguagesMatcher=new tp(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?go._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new Nr(0,0);_getBasicScopeAttributes=new Wl(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new Nr(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(go.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!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},tp=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>Hl(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])}},Xi=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}stack;stoppedEarly};function Yl(e,t,n,r,o,i,a,s){const l=t.content.length;let c=!1,u=-1;if(a){const p=np(e,t,n,r,o,i);o=p.stack,r=p.linePos,n=p.isFirstLine,u=p.anchorPosition}const d=Date.now();for(;!c;){if(s!==0&&Date.now()-d>s)return new Xi(o,!0);f()}return new Xi(o,!1);function f(){const p=rp(e,t,n,r,o,u);if(!p){i.produce(o,l),c=!0;return}const h=p.captureIndices,g=p.matchedRuleId,v=h&&h.length>0?h[0].end>r:!1;if(g===Zf){const b=o.getRule(e);i.produce(o,h[0].start),o=o.withContentNameScopesList(o.nameScopesList),Wt(e,t,n,o,i,b.endCaptures,h),i.produce(o,h[0].end);const _=o;if(o=o.parent,u=_.getAnchorPos(),!v&&_.getEnterPos()===r){o=_,i.produce(o,l),c=!0;return}}else{const b=e.getRule(g);i.produce(o,h[0].start);const _=o,w=b.getName(t.content,h),E=o.contentNameScopesList.pushAttributed(w,e);if(o=o.push(g,r,u,h[0].end===l,null,E,E),b instanceof mo){const S=b;Wt(e,t,n,o,i,S.beginCaptures,h),i.produce(o,h[0].end),u=h[0].end;const C=S.getContentName(t.content,h),k=E.pushAttributed(C,e);if(o=o.withContentNameScopesList(k),S.endHasBackReferences&&(o=o.withEndRule(S.getEndWithResolvedBackReferences(t.content,h))),!v&&_.hasSameRuleAs(o)){o=o.pop(),i.produce(o,l),c=!0;return}}else if(b instanceof Nn){const S=b;Wt(e,t,n,o,i,S.beginCaptures,h),i.produce(o,h[0].end),u=h[0].end;const C=S.getContentName(t.content,h),k=E.pushAttributed(C,e);if(o=o.withContentNameScopesList(k),S.whileHasBackReferences&&(o=o.withEndRule(S.getWhileWithResolvedBackReferences(t.content,h))),!v&&_.hasSameRuleAs(o)){o=o.pop(),i.produce(o,l),c=!0;return}}else if(Wt(e,t,n,o,i,b.captures,h),i.produce(o,h[0].end),o=o.pop(),!v){o=o.safePop(),i.produce(o,l),c=!0;return}}h[0].end>r&&(r=h[0].end,n=!1)}}function np(e,t,n,r,o,i){let a=o.beginRuleCapturedEOL?0:-1;const s=[];for(let l=o;l;l=l.pop()){const c=l.getRule(e);c instanceof Nn&&s.push({rule:c,stack:l})}for(let l=s.pop();l;l=s.pop()){const{ruleScanner:c,findOptions:u}=ap(l.rule,e,l.stack.endRule,n,r===a),d=c.findNextMatchSync(t,r,u);if(d){if(d.ruleId!==ql){o=l.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(l.stack,d.captureIndices[0].start),Wt(e,t,n,l.stack,i,l.rule.whileCaptures,d.captureIndices),i.produce(l.stack,d.captureIndices[0].end),a=d.captureIndices[0].end,d.captureIndices[0].end>r&&(r=d.captureIndices[0].end,n=!1))}else{o=l.stack.pop();break}}return{stack:o,linePos:r,anchorPosition:a,isFirstLine:n}}function rp(e,t,n,r,o,i){const a=op(e,t,n,r,o,i),s=e.getInjections();if(s.length===0)return a;const l=ip(s,e,t,n,r,o,i);if(!l)return a;if(!a)return l;const c=a.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:a}function op(e,t,n,r,o,i){const a=o.getRule(e),{ruleScanner:s,findOptions:l}=Zl(a,e,o.endRule,n,r===i),c=s.findNextMatchSync(t,r,l);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function ip(e,t,n,r,o,i,a){let s=Number.MAX_VALUE,l=null,c,u=0;const d=i.contentNameScopesList.getScopeNames();for(let f=0,p=e.length;f<p;f++){const h=e[f];if(!h.matcher(d))continue;const g=t.getRule(h.ruleId),{ruleScanner:v,findOptions:b}=Zl(g,t,null,r,o===a),_=v.findNextMatchSync(n,o,b);if(!_)continue;const w=_.captureIndices[0].start;if(!(w>=s)&&(s=w,l=_.captureIndices,c=_.ruleId,u=h.priority,s===o))break}return l?{priorityMatch:u===-1,captureIndices:l,matchedRuleId:c}:null}function Zl(e,t,n,r,o){return{ruleScanner:e.compileAG(t,n,r,o),findOptions:0}}function ap(e,t,n,r,o){return{ruleScanner:e.compileWhileAG(t,n,r,o),findOptions:0}}function Wt(e,t,n,r,o,i,a){if(i.length===0)return;const s=t.content,l=Math.min(i.length,a.length),c=[],u=a[0].end;for(let d=0;d<l;d++){const f=i[d];if(f===null)continue;const p=a[d];if(p.length===0)continue;if(p.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=p.start;)o.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?o.produceFromScopes(c[c.length-1].scopes,p.start):o.produce(r,p.start),f.retokenizeCapturedWithRuleId){const g=f.getName(s,a),v=r.contentNameScopesList.pushAttributed(g,e),b=f.getContentName(s,a),_=v.pushAttributed(b,e),w=r.push(f.retokenizeCapturedWithRuleId,p.start,-1,!1,null,v,_),E=e.createOnigString(s.substring(0,p.end));Yl(e,E,n&&p.start===0,p.start,w,o,!1,0),zl(E);continue}const h=f.getName(s,a);if(h!==null){const v=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(h,e);c.push(new sp(v,p.end))}}for(;c.length>0;)o.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var sp=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function lp(e,t,n,r,o,i,a,s){return new up(e,t,n,r,o,i,a,s)}function Yi(e,t,n,r,o){const i=On(t,Vn),a=Kl.getCompiledRuleId(n,r,o.repository);for(const s of i)e.push({debugSelector:t,matcher:s.matcher,ruleId:a,grammar:o,priority:s.priority})}function Vn(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let o=n;o<t.length;o++)if(cp(t[o],r))return n=o+1,!0;return!1})}function cp(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 up=class{constructor(e,t,n,r,o,i,a,s){if(this._rootScopeName=e,this.balancedBracketSelectors=i,this._onigLib=s,this._basicScopeAttributesProvider=new ep(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=Zi(t,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const l of Object.keys(o)){const c=On(l,Vn);for(const u of c)this._tokenTypeMatchers.push({matcher:u.matcher,type:o[l]})}}_rootScopeName;balancedBracketSelectors;_onigLib;_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;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:o=>o===this._rootScopeName?this._grammar:this.getExternalGrammar(o),injections:o=>this._grammarRepository.injections(o)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const o=r.injections;if(o)for(let a in o)Yi(t,a,o[a],this,r);const i=this._grammarRepository.injections(n);i&&i.forEach(a=>{const s=this.getExternalGrammar(a);if(s){const l=s.injectionSelector;l&&Yi(t,l,s,this,s)}})}return t.sort((o,i)=>o.priority-i.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]=Zi(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=Kl.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!t||t===vo.NULL){o=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),d=nt.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),f=this.getRule(this._rootId).getName(null,null);let p;f?p=Ut.createRootAndLookUpScopeName(f,d,this):p=Ut.createRoot("unknown",d),t=new vo(null,this._rootId,-1,-1,!1,null,p,p)}else o=!1,t.reset();e=e+`
|
|
4
|
+
`;const i=this.createOnigString(e),a=i.content.length,s=new fp(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=Yl(this,i,o,0,t,s,!0,r);return zl(i),{lineLength:a,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function Zi(e,t){return e=Lf(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 Ut=class we{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}parent;scopePath;tokenAttributes;static fromExtension(t,n){let r=t,o=(t==null?void 0:t.scopePath)??null;for(const i of n)o=Mr.push(o,i.scopeNames),r=new we(r,o,i.encodedTokenAttributes);return r}static createRoot(t,n){return new we(null,new Mr(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const o=r.getMetadataForScope(t),i=new Mr(null,t),a=r.themeProvider.themeMatch(i),s=we.mergeAttributes(n,o,a);return new we(null,i,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return we.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 o=-1,i=0,a=0;return r!==null&&(o=r.fontStyle,i=r.foregroundId,a=r.backgroundId),nt.set(t,n.languageId,n.tokenType,null,o,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return we._pushAttributed(this,t,n);const r=t.split(/ /g);let o=this;for(const i of r)o=we._pushAttributed(o,i,n);return o}static _pushAttributed(t,n,r){const o=r.getMetadataForScope(n),i=t.scopePath.push(n),a=r.themeProvider.themeMatch(i),s=we.mergeAttributes(t.tokenAttributes,o,a);return new we(t,i,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var o;const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((o=r.parent)==null?void 0:o.scopePath)??null)}),r=r.parent;return r===t?n.reverse():void 0}},vo=class Ye{constructor(t,n,r,o,i,a,s,l){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=s,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=o}parent;ruleId;beginRuleCapturedEOL;endRule;nameScopesList;contentNameScopesList;_stackElementBrand=void 0;static NULL=new Ye(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:Ye._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Ut.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(){Ye._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,o,i,a,s){return new Ye(this,t,n,r,o,i,a,s)}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,o;return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(o=this.contentNameScopesList)==null?void 0:o.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 Ye(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=Ut.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new Ye(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Ut.fromExtension(r,n.contentNameScopesList))}},dp=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):On(n,Vn).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>On(n,Vn).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}},fp=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}balancedBracketSelectors;_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var r;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let o=(e==null?void 0:e.tokenAttributes)??0,i=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const a=(e==null?void 0:e.getScopeNames())??[];for(const s of this._tokenTypeOverrides)s.matcher(a)&&(o=nt.set(o,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(a))}if(i&&(o=nt.set(o,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===o){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(o),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,o=this._binaryTokens.length;r<o;r++)n[r]=this._binaryTokens[r];return n}},pp=class{constructor(e,t){this._onigLib=t,this._theme=e}_onigLib;_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;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,o){if(!this._grammars.has(e)){let i=this._rawGrammars.get(e);if(!i)return null;this._grammars.set(e,lp(e,i,t,n,r,o,this,this._onigLib))}return this._grammars.get(e)}},hp=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new pp(Dn.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Dn.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 dp(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,o,i){const a=new Gf(this._syncRegistry,t);for(;a.Q.length>0;)a.Q.map(s=>this._loadSingleGrammar(s.scopeName)),a.processQueue();return this._grammarForScopeName(t,n,r,o,i)}_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,o=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,o)}_grammarForScopeName(t,n=0,r=null,o=null,i=null){return this._syncRegistry.grammarForScopeName(t,n,r,o,i)}},yo=vo.NULL;function $n(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[o,i]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof i=="string"?n[o]=i:o===r&&Object.assign(n,i);return n}function Be(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function mp(e){return Array.isArray(e)?e:[e]}async function Ql(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function gr(e){return!e||["plaintext","txt","text","plain"].includes(e)}function gp(e){return e==="ansi"||gr(e)}function vr(e){return e==="none"}function vp(e){return vr(e)}const yp=/(\r?\n)/g;function yr(e,t=!1){var i;if(e.length===0)return[["",0]];const n=e.split(yp);let r=0;const o=[];for(let a=0;a<n.length;a+=2){const s=t?n[a]+(n[a+1]||""):n[a];o.push([s,r]),r+=n[a].length,r+=((i=n[a+1])==null?void 0:i.length)||0}return o}const Qi={light:"#333333",dark:"#bbbbbb"},Ji={light:"#fffffe",dark:"#1e1e1e"},ea="__shiki_resolved";function oi(e){var s,l,c,u,d;if(e!=null&&e[ea])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const f=t.settings?t.settings.find(p=>!p.name&&!p.scope):void 0;(s=f==null?void 0:f.settings)!=null&&s.foreground&&(r=f.settings.foreground),(l=f==null?void 0:f.settings)!=null&&l.background&&(n=f.settings.background),!r&&((c=t==null?void 0:t.colors)!=null&&c["editor.foreground"])&&(r=t.colors["editor.foreground"]),!n&&((u=t==null?void 0:t.colors)!=null&&u["editor.background"])&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?Qi.light:Qi.dark),n||(n=t.type==="light"?Ji.light:Ji.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 o=0;const i=new Map;function a(f){var h;if(i.has(f))return i.get(f);o+=1;const p=`#${o.toString(16).padStart(8,"0").toLowerCase()}`;return(h=t.colorReplacements)!=null&&h[`#${p}`]?a(f):(i.set(f,p),p)}t.settings=t.settings.map(f=>{var v,b;const p=((v=f.settings)==null?void 0:v.foreground)&&!f.settings.foreground.startsWith("#"),h=((b=f.settings)==null?void 0:b.background)&&!f.settings.background.startsWith("#");if(!p&&!h)return f;const g={...f,settings:{...f.settings}};if(p){const _=a(f.settings.foreground);t.colorReplacements[_]=f.settings.foreground,g.settings.foreground=_}if(h){const _=a(f.settings.background);t.colorReplacements[_]=f.settings.background,g.settings.background=_}return g});for(const f of Object.keys(t.colors||{}))if((f==="editor.foreground"||f==="editor.background"||f.startsWith("terminal.ansi"))&&!((d=t.colors[f])!=null&&d.startsWith("#"))){const p=a(t.colors[f]);t.colorReplacements[p]=t.colors[f],t.colors[f]=p}return Object.defineProperty(t,ea,{enumerable:!1,writable:!1,value:!0}),t}async function Jl(e){return[...new Set((await Promise.all(e.filter(t=>!gp(t)).map(async t=>await Ql(t).then(n=>Array.isArray(n)?n:[n])))).flat())]}async function ec(e){return(await Promise.all(e.map(async t=>vp(t)?null:oi(await Ql(t))))).filter(t=>!!t)}function tc(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 V(`Circular alias \`${[...n].join(" -> ")} -> ${e}\``);n.add(e)}}return e}var _p=class extends hp{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const t=oi(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=Dn.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=tc(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const t=new Set([...this._langMap.values()].filter(o=>{var i;return(i=o.embeddedLangsLazy)==null?void 0:i.includes(e.name)}));this._resolver.addLanguage(e);const n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const r=this.loadGrammarWithConfiguration(e.scopeName,1,n);r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(o=>{this._alias[o]=e.name}),this._loadedLanguagesCache=null;for(const o of t)this.reloadLanguage(o);if(e.injectTo){const o=[...this._langMap.values()].filter(i=>i!==e&&this._resolvedGrammars.has(i.name)&&e.injectTo.some(a=>i.scopeName===a||i.scopeName.startsWith(`${a}.`))&&!this.hasCurrentInjections(i.scopeName));for(const i of o)this.reloadLanguage(i)}}hasCurrentInjections(e){var r,o;const t=((o=(r=this._syncRegistry)==null?void 0:r._injectionGrammars)==null?void 0:o.get(e))||[],n=this._resolver.getInjections(e)||[];return t.length===n.length&&t.every((i,a)=>i===n[a])}reloadLanguage(e){var t,n,r,o,i,a,s;(r=(n=(t=this._syncRegistry)==null?void 0:t._grammars)==null?void 0:n.get(e.scopeName))==null||r.dispose(),this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,(i=(o=this._syncRegistry)==null?void 0:o._grammars)==null||i.delete(e.scopeName),(s=(a=this._syncRegistry)==null?void 0:a._injectionGrammars)==null||s.set(e.scopeName,this._resolver.getInjections(e.scopeName)||[]),this.loadLanguage(this._langMap.get(e.name)||e)}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const r of e)this.resolveEmbeddedLanguages(r);const t=[...this._langGraph.entries()],n=t.filter(([r,o])=>!o);if(n.length){const r=t.filter(([o,i])=>{var a;return i?(a=i.embeddedLanguages||i.embeddedLangs)==null?void 0:a.some(s=>n.map(([l])=>l).includes(s)):!1}).filter(o=>!n.includes(o));throw new V(`Missing languages ${n.map(([o])=>`\`${o}\``).join(", ")}, required by ${r.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[r,o]of t)this._resolver.addLanguage(o);for(const[r,o]of t)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);const t=e.embeddedLanguages??e.embeddedLangs;if(t)for(const n of t)this._langGraph.set(n,this._langMap.get(n))}},bp=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){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).includes(e.scopeName)||this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let n=[];for(let r=1;r<=t.length;r++){const o=t.slice(0,r).join(".");n=[...n,...this._injections.get(o)||[]]}return n}};let Vt=0;function wp(e){Vt+=1,e.warnings!==!1&&Vt>=10&&Vt%10===0&&console.warn(`[Shiki] ${Vt} 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 V("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(oi),o=new _p(new bp(e.engine,n),r,n,e.langAlias);let i;function a(_){return tc(_,e.langAlias)}function s(_){v();const w=o.getGrammar(typeof _=="string"?_:_.name);if(!w)throw new V(`Language \`${_}\` not found, you may need to load it first`);return w}function l(_){if(_==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};v();const w=o.getTheme(_);if(!w)throw new V(`Theme \`${_}\` not found, you may need to load it first`);return w}function c(_){v();const w=l(_);return i!==_&&(o.setTheme(w),i=_),{theme:w,colorMap:o.getColorMap()}}function u(){return v(),o.getLoadedThemes()}function d(){return v(),o.getLoadedLanguages()}function f(..._){v(),o.loadLanguages(_.flat(1))}async function p(..._){return f(await Jl(_))}function h(..._){v();for(const w of _.flat(1))o.loadTheme(w)}async function g(..._){return v(),h(await ec(_))}function v(){if(t)throw new V("Shiki instance has been disposed")}function b(){t||(t=!0,o.dispose(),Vt-=1)}return{setTheme:c,getTheme:l,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,resolveLangAlias:a,loadLanguage:p,loadLanguageSync:f,loadTheme:g,loadThemeSync:h,dispose:b,[Symbol.dispose]:b}}async function Ep(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([ec(e.themes||[]),Jl(e.langs||[]),e.engine]);return wp({...e,themes:t,langs:n,engine:r})}const nc=new WeakMap;function _r(e,t){nc.set(e,t)}function nn(e){return nc.get(e)}var br=class rc{_stacks={};lang;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 rc(Object.fromEntries(mp(n).map(r=>[r,yo])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,o]=t;this.lang=r,this._stacks={[o]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return Sp(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Sp(e){const t=[],n=new Set;function r(o){var a;if(n.has(o))return;n.add(o);const i=(a=o==null?void 0:o.nameScopesList)==null?void 0:a.scopeName;i&&t.push(i),o.parent&&r(o.parent)}return r(e),t}function Ap(e,t){if(!(e instanceof br))throw new V("Invalid grammar state");return e.getInternalStack(t)}const Cp=/,/,xp=/ /;function oc(e,t,n={}){const{theme:r=e.getLoadedThemes()[0]}=n;if(gr(e.resolveLangAlias(n.lang||"text"))||vr(r))return yr(t).map(s=>[{content:s[0],offset:s[1]}]);const{theme:o,colorMap:i}=e.setTheme(r),a=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==a.name)throw new V(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${a.name}"`);if(!n.grammarState.themes.includes(o.name))throw new V(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return Ip(t,a,o,i,n)}function kp(...e){if(e.length===2)return nn(e[1]);const[t,n,r={}]=e,{lang:o="text",theme:i=t.getLoadedThemes()[0]}=r;if(gr(o)||vr(i))throw new V("Plain language does not have grammar state");if(o==="ansi")throw new V("ANSI language does not have grammar state");const{theme:a,colorMap:s}=t.setTheme(i),l=t.getLanguage(o);return new br(ii(n,l,a,s,r).stateStack,l.name,a.name)}function Ip(e,t,n,r,o){const i=ii(e,t,n,r,o),a=new br(i.stateStack,t.name,n.name);return _r(i.tokens,a),i.tokens}function ii(e,t,n,r,o){const i=$n(n,o),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:s=500,includeExplanation:l=!1}=o,c=yr(e);let u=o.grammarState?Ap(o.grammarState,n.name)??yo:o.grammarContextCode!=null?ii(o.grammarContextCode,t,n,r,{...o,grammarState:void 0,grammarContextCode:void 0}).stateStack:yo,d=[];const f=[];for(let p=0,h=c.length;p<h;p++){const[g,v]=c[p];if(g===""){d=[],f.push([]);continue}if(a>0&&g.length>=a){d=[],f.push([{content:g,offset:v,color:"",fontStyle:0}]);continue}let b,_,w;l&&l!=="tokenType"&&(b=t.tokenizeLine(g,u,s),_=b.tokens,w=0);const E=t.tokenizeLine2(g,u,s),S=E.tokens.length/2;for(let C=0;C<S;C++){const k=E.tokens[2*C],L=C+1<S?E.tokens[2*C+2]:g.length;if(k===L)continue;const I=E.tokens[2*C+1],P=Be(r[nt.getForeground(I)],i),$=nt.getFontStyle(I),D={content:g.substring(k,L),offset:v+k,color:P,fontStyle:$};if(l==="tokenType")D.type=nt.getTokenType(I);else if(l){const B=[];if(l!=="scopeName")for(const H of n.settings){let N;switch(typeof H.scope){case"string":N=H.scope.split(Cp).map(K=>K.trim());break;case"object":N=H.scope;break;default:continue}B.push({settings:H,selectors:N.map(K=>K.split(xp))})}D.explanation=[];let U=0;for(;k+U<L;){const H=_[w],N=g.substring(H.startIndex,H.endIndex);U+=N.length,D.explanation.push({content:N,scopes:l==="scopeName"?Lp(H.scopes):Rp(B,H.scopes)}),w+=1}}d.push(D)}f.push(d),d=[],u=E.ruleStack}return{tokens:f,stateStack:u}}function Lp(e){return e.map(t=>({scopeName:t}))}function Rp(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const i=t[r];n[r]={scopeName:i,themeMatches:Pp(e,i,t.slice(0,r))}}return n}function ta(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function Tp(e,t,n){if(!ta(e.at(-1),t))return!1;let r=e.length-2,o=n.length-1;for(;r>=0&&o>=0;)ta(e[r],n[o])&&(r-=1),o-=1;return r===-1}function Pp(e,t,n){const r=[];for(const{selectors:o,settings:i}of e)for(const a of o)if(Tp(a,t,n)){r.push(i);break}return r}function ic(e,t,n,r=oc){const o=Object.entries(n.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),i=o.map(c=>{const u=r(e,t,{...n,theme:c.theme});return{tokens:u,state:nn(u),theme:typeof c.theme=="string"?c.theme:c.theme.name}}),a=Dp(...i.map(c=>c.tokens)),s=a[0].map((c,u)=>c.map((d,f)=>{const p={content:d.content,variants:{},offset:d.offset};return"includeExplanation"in n&&n.includeExplanation&&(p.explanation=d.explanation),a.forEach((h,g)=>{const{content:v,explanation:b,offset:_,...w}=h[u][f];p.variants[o[g].color]=w}),p})),l=i[0].state?new br(Object.fromEntries(i.map(c=>{var u;return[c.theme,(u=c.state)==null?void 0:u.getInternalStack(c.theme)]})),i[0].state.lang):void 0;return l&&_r(s,l),s}function Dp(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const o=e.map(l=>l[r]),i=t.map(()=>[]);t.forEach((l,c)=>l.push(i[c]));const a=o.map(()=>0),s=o.map(l=>l[0]);for(;s.every(l=>l);){const l=Math.min(...s.map(c=>c.content.length));for(let c=0;c<n;c++){const u=s[c];u.content.length===l?(i[c].push(u),a[c]+=1,s[c]=o[c][a[c]]):(i[c].push({...u,content:u.content.slice(0,l)}),s[c]={...u,content:u.content.slice(l),offset:u.offset+l})}}}return t}const Op=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class fn{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}fn.prototype.normal={};fn.prototype.property={};fn.prototype.space=void 0;function ac(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new fn(n,r,t)}function _o(e){return e.toLowerCase()}class se{constructor(t,n){this.attribute=n,this.property=t}}se.prototype.attribute="";se.prototype.booleanish=!1;se.prototype.boolean=!1;se.prototype.commaOrSpaceSeparated=!1;se.prototype.commaSeparated=!1;se.prototype.defined=!1;se.prototype.mustUseProperty=!1;se.prototype.number=!1;se.prototype.overloadedBoolean=!1;se.prototype.property="";se.prototype.spaceSeparated=!1;se.prototype.space=void 0;let Mp=0;const R=lt(),W=lt(),bo=lt(),A=lt(),M=lt(),rt=lt(),le=lt();function lt(){return 2**++Mp}const wo=Object.freeze(Object.defineProperty({__proto__:null,boolean:R,booleanish:W,commaOrSpaceSeparated:le,commaSeparated:rt,number:A,overloadedBoolean:bo,spaceSeparated:M},Symbol.toStringTag,{value:"Module"})),Vr=Object.keys(wo);class ai extends se{constructor(t,n,r,o){let i=-1;if(super(t,n),na(this,"space",o),typeof r=="number")for(;++i<Vr.length;){const a=Vr[i];na(this,Vr[i],(r&wo[a])===wo[a])}}}ai.prototype.defined=!0;function na(e,t,n){n&&(e[t]=n)}function Rt(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new ai(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[_o(r)]=r,n[_o(i.attribute)]=r}return new fn(t,n,e.space)}const sc=Rt({properties:{ariaActiveDescendant:null,ariaAtomic:W,ariaAutoComplete:null,ariaBusy:W,ariaChecked:W,ariaColCount:A,ariaColIndex:A,ariaColSpan:A,ariaControls:M,ariaCurrent:null,ariaDescribedBy:M,ariaDetails:null,ariaDisabled:W,ariaDropEffect:M,ariaErrorMessage:null,ariaExpanded:W,ariaFlowTo:M,ariaGrabbed:W,ariaHasPopup:null,ariaHidden:W,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:M,ariaLevel:A,ariaLive:null,ariaModal:W,ariaMultiLine:W,ariaMultiSelectable:W,ariaOrientation:null,ariaOwns:M,ariaPlaceholder:null,ariaPosInSet:A,ariaPressed:W,ariaReadOnly:W,ariaRelevant:null,ariaRequired:W,ariaRoleDescription:M,ariaRowCount:A,ariaRowIndex:A,ariaRowSpan:A,ariaSelected:W,ariaSetSize:A,ariaSort:null,ariaValueMax:A,ariaValueMin:A,ariaValueNow:A,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function lc(e,t){return t in e?e[t]:t}function cc(e,t){return lc(e,t.toLowerCase())}const Np=Rt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:rt,acceptCharset:M,accessKey:M,action:null,allow:null,allowFullScreen:R,allowPaymentRequest:R,allowUserMedia:R,alpha:R,alt:null,as:null,async:R,autoCapitalize:null,autoComplete:M,autoFocus:R,autoPlay:R,blocking:M,capture:null,charSet:null,checked:R,cite:null,className:M,closedBy:null,colorSpace:null,cols:A,colSpan:A,command:null,commandFor:null,content:null,contentEditable:W,controls:R,controlsList:M,coords:A|rt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:R,defer:R,dir:null,dirName:null,disabled:R,download:bo,draggable:W,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:R,formTarget:null,headers:M,height:A,hidden:bo,high:A,href:null,hrefLang:null,htmlFor:M,httpEquiv:M,id:null,imageSizes:null,imageSrcSet:null,inert:R,inputMode:null,integrity:null,is:null,isMap:R,itemId:null,itemProp:M,itemRef:M,itemScope:R,itemType:M,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:R,low:A,manifest:null,max:null,maxLength:A,media:null,method:null,min:null,minLength:A,multiple:R,muted:R,name:null,nonce:null,noModule:R,noValidate:R,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:R,optimum:A,pattern:null,ping:M,placeholder:null,playsInline:R,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:R,referrerPolicy:null,rel:M,required:R,reversed:R,rows:A,rowSpan:A,sandbox:M,scope:null,scoped:R,seamless:R,selected:R,shadowRootClonable:R,shadowRootCustomElementRegistry:R,shadowRootDelegatesFocus:R,shadowRootMode:null,shadowRootSerializable:R,shape:null,size:A,sizes:null,slot:null,span:A,spellCheck:W,src:null,srcDoc:null,srcLang:null,srcSet:null,start:A,step:null,style:null,tabIndex:A,target:null,title:null,translate:null,type:null,typeMustMatch:R,useMap:null,value:W,width:A,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:M,axis:null,background:null,bgColor:null,border:A,borderColor:null,bottomMargin:A,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:R,declare:R,event:null,face:null,frame:null,frameBorder:null,hSpace:A,leftMargin:A,link:null,longDesc:null,lowSrc:null,marginHeight:A,marginWidth:A,noResize:R,noHref:R,noShade:R,noWrap:R,object:null,profile:null,prompt:null,rev:null,rightMargin:A,rules:null,scheme:null,scrolling:W,standby:null,summary:null,text:null,topMargin:A,valueType:null,version:null,vAlign:null,vLink:null,vSpace:A,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:R,disablePictureInPicture:R,disableRemotePlayback:R,exportParts:rt,part:M,prefix:null,property:null,results:A,security:null,unselectable:null},space:"html",transform:cc}),Vp=Rt({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:le,accentHeight:A,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:A,amplitude:A,arabicForm:null,ascent:A,attributeName:null,attributeType:null,azimuth:A,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:A,by:null,calcMode:null,capHeight:A,className:M,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:A,diffuseConstant:A,direction:null,display:null,dur:null,divisor:A,dominantBaseline:null,download:R,dx:null,dy:null,edgeMode:null,editable:null,elevation:A,enableBackground:null,end:null,event:null,exponent:A,externalResourcesRequired:null,fill:null,fillOpacity:A,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:rt,g2:rt,glyphName:rt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:A,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:A,horizOriginX:A,horizOriginY:A,id:null,ideographic:A,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:A,k:A,k1:A,k2:A,k3:A,k4:A,kernelMatrix:le,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:A,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:A,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:A,overlineThickness:A,paintOrder:null,panose1:null,path:null,pathLength:A,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:M,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:A,pointsAtY:A,pointsAtZ:A,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:le,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:le,rev:le,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:le,requiredFeatures:le,requiredFonts:le,requiredFormats:le,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:A,specularExponent:A,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:A,strikethroughThickness:A,string:null,stroke:null,strokeDashArray:le,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:A,strokeOpacity:A,strokeWidth:null,style:null,surfaceScale:A,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:le,tabIndex:A,tableValues:null,target:null,targetX:A,targetY:A,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:le,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:A,underlineThickness:A,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:A,values:null,vAlphabetic:A,vMathematical:A,vectorEffect:null,vHanging:A,vIdeographic:A,version:null,vertAdvY:A,vertOriginX:A,vertOriginY:A,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:A,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:lc}),uc=Rt({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()}}),dc=Rt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:cc}),fc=Rt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),$p=/[A-Z]/g,ra=/-[a-z]/g,Fp=/^data[-\w.:]+$/i;function Bp(e,t){const n=_o(t);let r=t,o=se;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Fp.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(ra,Wp);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!ra.test(i)){let a=i.replace($p,Hp);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}o=ai}return new o(r,t)}function Hp(e){return"-"+e.toLowerCase()}function Wp(e){return e.charAt(1).toUpperCase()}const pc=ac([sc,Np,uc,dc,fc],"html"),hc=ac([sc,Vp,uc,dc,fc],"svg"),oa={}.hasOwnProperty;function Gp(e,t){const n=t||{};function r(o,...i){let a=r.invalid;const s=r.handlers;if(o&&oa.call(o,e)){const l=String(o[e]);a=oa.call(s,l)?s[l]:r.unknown}if(a)return a.call(this,o,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const jp=/["&'<>`]/g,zp=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Up=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,qp=/[|\\{}()[\]^$+*?.]/g,ia=new WeakMap;function Kp(e,t){if(e=e.replace(t.subset?Xp(t.subset):jp,r),t.subset||t.escapeOnly)return e;return e.replace(zp,n).replace(Up,r);function n(o,i,a){return t.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,a.charCodeAt(i+2),t)}function r(o,i,a){return t.format(o.charCodeAt(0),a.charCodeAt(i+1),t)}}function Xp(e){let t=ia.get(e);return t||(t=Yp(e),ia.set(e,t)),t}function Yp(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(qp,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const Zp=/[\dA-Fa-f]/;function Qp(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!Zp.test(String.fromCharCode(t))?r:r+";"}const Jp=/\d/;function eh(e,t,n){const r="&#"+String(e);return n&&t&&!Jp.test(String.fromCharCode(t))?r:r+";"}const $r={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:"€"},th=["cent","copy","divide","gt","lt","not","para","times"],mc={}.hasOwnProperty,Eo={};let gn;for(gn in $r)mc.call($r,gn)&&(Eo[$r[gn]]=gn);const nh=/[^\dA-Za-z]/;function rh(e,t,n,r){const o=String.fromCharCode(e);if(mc.call(Eo,o)){const i=Eo[o],a="&"+i;return n&&Id.includes(i)&&!th.includes(i)&&(!r||t&&t!==61&&nh.test(String.fromCharCode(t)))?a:a+";"}return""}function oh(e,t,n){let r=Qp(e,t,n.omitOptionalSemicolons),o;if((n.useNamedReferences||n.useShortestReferences)&&(o=rh(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!o)&&n.useShortestReferences){const i=eh(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return o&&(!n.useShortestReferences||o.length<r.length)?o:r}function gt(e,t){return Kp(e,Object.assign({format:oh},t))}const ih=/^>|^->|<!--|-->|--!>|<!-$/g,ah=[">"],sh=["<",">"];function lh(e,t,n,r){return r.settings.bogusComments?"<?"+gt(e.value,Object.assign({},r.settings.characterReferences,{subset:ah}))+">":"<!--"+e.value.replace(ih,o)+"-->";function o(i){return gt(i,Object.assign({},r.settings.characterReferences,{subset:sh}))}}function ch(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function aa(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;o!==-1;)r++,o=n.indexOf(t,o+t.length);return r}function uh(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function dh(e){return e.join(" ").trim()}const fh=/[ \t\n\f\r]/g;function si(e){return typeof e=="object"?e.type==="text"?sa(e.value):!1:sa(e)}function sa(e){return e.replace(fh,"")===""}const z=vc(1),gc=vc(-1),ph=[];function vc(e){return t;function t(n,r,o){const i=n?n.children:ph;let a=(r||0)+e,s=i[a];if(!o)for(;s&&si(s);)a+=e,s=i[a];return s}}const hh={}.hasOwnProperty;function yc(e){return t;function t(n,r,o){return hh.call(e,n.tagName)&&e[n.tagName](n,r,o)}}const li=yc({body:gh,caption:Fr,colgroup:Fr,dd:bh,dt:_h,head:Fr,html:mh,li:yh,optgroup:wh,option:Eh,p:vh,rp:la,rt:la,tbody:Ah,td:ca,tfoot:Ch,th:ca,thead:Sh,tr:xh});function Fr(e,t,n){const r=z(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&si(r.value.charAt(0)))}function mh(e,t,n){const r=z(n,t);return!r||r.type!=="comment"}function gh(e,t,n){const r=z(n,t);return!r||r.type!=="comment"}function vh(e,t,n){const r=z(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"||n.tagName.includes("-")))}function yh(e,t,n){const r=z(n,t);return!r||r.type==="element"&&r.tagName==="li"}function _h(e,t,n){const r=z(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function bh(e,t,n){const r=z(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function la(e,t,n){const r=z(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function wh(e,t,n){const r=z(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function Eh(e,t,n){const r=z(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Sh(e,t,n){const r=z(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Ah(e,t,n){const r=z(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Ch(e,t,n){return!z(n,t)}function xh(e,t,n){const r=z(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function ca(e,t,n){const r=z(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const kh=yc({body:Rh,colgroup:Th,head:Lh,html:Ih,tbody:Ph});function Ih(e){const t=z(e,-1);return!t||t.type!=="comment"}function Lh(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 Rh(e){const t=z(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&si(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Th(e,t,n){const r=gc(n,t);if(n&&r&&r.type==="element"&&r.tagName==="colgroup"&&li(r,n.children.indexOf(r),n))return!1;const o=z(e,-1,!0);return!!(o&&o.type==="element"&&o.tagName==="col")}function Ph(e,t,n){const r=gc(n,t);if(n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&li(r,n.children.indexOf(r),n))return!1;const o=z(e,-1);return!!(o&&o.type==="element"&&o.tagName==="tr")}const vn={name:[[`
|
|
5
|
+
\f\r &/=>`.split(""),`
|
|
6
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
7
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
8
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
9
|
+
\f\r &>`.split(""),`\0
|
|
10
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
11
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
12
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},Dh=new Set(["desc","foreignObject","title"]);function Oh(e,t,n,r){const{schema:o}=r,i=o.space==="svg"?!1:r.settings.omitOptionalTags;let a=o.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const s=[];o.space==="html"&&e.tagName==="svg"&&(r.schema=hc);const l=Mh(r,e.properties);r.schema.space==="svg"&&Dh.has(e.tagName)&&(r.schema=pc);const c=r.all(o.space==="html"&&e.tagName==="template"?e.content:e);if(r.schema=o,c&&(a=!1),l||!i||!kh(e,t,n)){if(s.push("<",e.tagName,l?" "+l:""),a&&(o.space==="svg"||r.settings.closeSelfClosing)){const u=l.charAt(l.length-1);(!r.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&s.push(" "),s.push("/")}s.push(">")}return s.push(c),!a&&(!i||!li(e,t,n))&&s.push("</"+e.tagName+">"),s.join("")}function Mh(e,t){const n=[];let r=-1,o;if(t){for(o in t)if(t[o]!==null&&t[o]!==void 0){const i=Nh(e,o,t[o]);i&&n.push(i)}}for(;++r<n.length;){const i=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&i!=='"'&&i!=="'"&&(n[r]+=" ")}return n.join("")}function Nh(e,t,n){const r=Bp(e.schema,t),o=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,i=e.settings.allowDangerousCharacters?0:1;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 a=gt(r.attribute,Object.assign({},e.settings.characterReferences,{subset:vn.name[o][i]}));if(n===!0||(n=Array.isArray(n)?(r.commaSeparated?uh:dh)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n))return a;let s;if(e.settings.preferUnquoted&&(s=gt(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:vn.unquoted[o][i]}))),s!==n){let{quote:l}=e;e.settings.quoteSmart&&aa(n,l)>aa(n,e.alternative)&&(l=e.alternative),s=l+gt(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?vn.single:vn.double)[o][i],attribute:!0}))+l}return a+(s&&"="+s)}const Vh=["<","&"];function _c(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:gt(e.value,Object.assign({},r.settings.characterReferences,{subset:Vh}))}function $h(e,t,n,r){return r.settings.allowDangerousHtml?e.value:_c(e,t,n,r)}function Fh(e,t,n,r){return r.all(e)}const Bh=Gp("type",{invalid:Hh,unknown:Wh,handlers:{comment:lh,doctype:ch,element:Oh,raw:$h,root:Fh,text:_c}});function Hh(e){throw new Error("Expected node, not `"+e+"`")}function Wh(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const Gh={},jh={},zh=[];function Uh(e,t){const n=t||Gh,r=n.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");const o=r==='"'?"'":'"';return{one:qh,all:Kh,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||Op,characterReferences:n.characterReferences||jh,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?hc:pc,quote:r,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function qh(e,t,n){return Bh(e,t,n,this)}function Kh(e){const t=[],n=e&&e.children||zh;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}const ua=/\s+/g;function bc(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(ua)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(ua);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function Xh(e){const t=yr(e,!0),n=t.map(([a])=>a),r=t.map(([,a])=>a);function o(a){if(a===e.length)return{line:n.length-1,character:n.at(-1).length};let s=0,l=n.length-1;for(;s<l;){const c=s+l+1>>>1;r[c]<=a?s=c:l=c-1}return{line:s,character:a-r[s]}}function i(a,s){return r[a]+s}return{lines:n,indexToPos:o,posToIndex:i}}const Yh=["color","background-color"];function Zh(e,t){let n=0;const r=[];for(const o of t)o>n&&r.push({...e,content:e.content.slice(n,o),offset:e.offset+n}),n=o;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function Qh(e,t){let n=0,r=e.length;for(;n<r;){const o=n+(r-n>>1);e[o]<=t?n=o+1:r=o}return n}function Jh(e,t){const n=[...t instanceof Set?t:new Set(t)].sort((r,o)=>r-o);return n.length?e.map(r=>r.flatMap(o=>{const i=o.offset+o.content.length,a=Qh(n,o.offset);let s=a;for(;s<n.length&&n[s]<i;)s++;if(a===s)return o;const l=n.slice(a,s);for(let c=0;c<l.length;c++)l[c]-=o.offset;return Zh(o,l)})):e}function em(e,t,n,r,o="css-vars"){const i={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(u=>Fn(e.variants[u])),s=new Set(a.flatMap(u=>Object.keys(u))),l={},c=(u,d)=>{const f=d==="color"?"":d==="background-color"?"-bg":`-${d}`;return n+t[u]+(d==="color"?"":f)};return a.forEach((u,d)=>{for(const f of s){const p=u[f]||"inherit";if(d===0&&r&&Yh.includes(f))if(r==="light-dark()"&&a.length>1){const h=t.findIndex(_=>_==="light"),g=t.findIndex(_=>_==="dark");if(h===-1||g===-1)throw new V('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const v=a[h][f]||"inherit",b=a[g][f]||"inherit";l[f]=`light-dark(${v}, ${b})`,o==="css-vars"&&(l[c(d,f)]=p)}else l[f]=p;else o==="css-vars"&&(l[c(d,f)]=p)}}),i.htmlStyle=l,i}function Fn(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Q.Italic&&(t["font-style"]="italic"),e.fontStyle&Q.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&Q.Underline&&n.push("underline"),e.fontStyle&Q.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function So(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function tm(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let o=function(a){if(typeof a=="number"){if(a<0||a>n.source.length)throw new V(`Invalid decoration offset: ${a}. Code length: ${n.source.length}`);return{...r.indexToPos(a),offset:a}}else{const s=r.lines[a.line];if(s===void 0)throw new V(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${r.lines.length}`);let l=a.character;if(l<0&&(l=s.length+l),l<0||l>s.length)throw new V(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${s.length}`);return{...a,character:l,offset:r.posToIndex(a.line,l)}}};const r=Xh(n.source),i=(n.options.decorations||[]).map(a=>({...a,start:o(a.start),end:o(a.end)}));nm(i),e.set(n.meta,{decorations:i,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 Jh(n,t(this).decorations.flatMap(o=>[o.start.offset,o.end.offset]))},code(n){var u;if(!((u=this.options.decorations)!=null&&u.length))return;const r=t(this),o=[...n.children].filter(d=>d.type==="element"&&d.tagName==="span");if(o.length!==r.converter.lines.length)throw new V(`Number of lines in code element (${o.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function i(d,f,p,h){const g=o[d];let v="",b=-1,_=-1;if(f===0&&(b=0),p===0&&(_=0),p===Number.POSITIVE_INFINITY&&(_=g.children.length),b===-1||_===-1)for(let E=0;E<g.children.length;E++)v+=wc(g.children[E]),b===-1&&v.length===f&&(b=E+1),_===-1&&v.length===p&&(_=E+1);if(b===-1)throw new V(`Failed to find start index for decoration ${JSON.stringify(h.start)}`);if(_===-1)throw new V(`Failed to find end index for decoration ${JSON.stringify(h.end)}`);const w=g.children.slice(b,_);if(!h.alwaysWrap&&w.length===g.children.length)s(g,h,"line");else if(!h.alwaysWrap&&w.length===1&&w[0].type==="element")s(w[0],h,"token");else{const E={type:"element",tagName:"span",properties:{},children:w};s(E,h,"wrapper"),g.children.splice(b,w.length,E)}}function a(d,f){o[d]=s(o[d],f,"line")}function s(d,f,p){var v;const h=f.properties||{},g=f.transform||(b=>b);return d.tagName=f.tagName||"span",d.properties={...d.properties,...h,class:d.properties.class},(v=f.properties)!=null&&v.class&&bc(d,f.properties.class),d=g(d,p)||d,d}const l=[],c=r.decorations.sort((d,f)=>f.start.offset-d.start.offset||d.end.offset-f.end.offset);for(const d of c){const{start:f,end:p}=d;if(f.line===p.line)i(f.line,f.character,p.character,d);else if(f.line<p.line){i(f.line,f.character,Number.POSITIVE_INFINITY,d);for(let h=f.line+1;h<p.line;h++)l.push(()=>a(h,d));i(p.line,0,p.character,d)}}for(let d=l.length-1;d>=0;d--)l[d]()}}}function nm(e){if(!rm(e))for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new V(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const o=e[r],i=n.start.offset<=o.start.offset&&o.start.offset<n.end.offset,a=n.start.offset<o.end.offset&&o.end.offset<=n.end.offset,s=o.start.offset<=n.start.offset&&n.start.offset<o.end.offset,l=o.start.offset<n.end.offset&&n.end.offset<=o.end.offset;if(i||a||s||l){if(i&&a||s&&l||s&&n.start.offset===n.end.offset||a&&o.start.offset===o.end.offset)continue;throw new V(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(o.start)} intersect.`)}}}}function rm(e){const t=[],n=new Map,r=new Map;for(let i=0;i<e.length;i++){const{start:a,end:s}=e[i];if(a.offset>s.offset)return!1;a.offset!==s.offset&&(t.push(e[i]),n.has(a.offset)||n.set(a.offset,i),r.set(s.offset,i))}for(let i=0;i<e.length;i++){const{start:a,end:s}=e[i];if(a.offset===s.offset&&((n.get(a.offset)??i)<i||(r.get(a.offset)??i)>i))return!1}t.sort((i,a)=>i.start.offset-a.start.offset||a.end.offset-i.end.offset);const o=[];for(const{start:i,end:a}of t){for(;o.length&&o.at(-1)<=i.offset;)o.pop();if(o.length&&a.offset>o.at(-1))return!1;o.push(a.offset)}return!0}function wc(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(wc).join(""):""}const om=[tm()];function Bn(e){const t=im(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...om]}function im(e){const t=[],n=[],r=[];for(const o of e)switch(o.enforce){case"pre":t.push(o);break;case"post":n.push(o);break;default:r.push(o)}return{pre:t,post:n,normal:r}}var Je=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Br={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function am(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 da(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 sm(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)Br[r]&&t.push({type:"setDecoration",value:Br[r]});else if(r<=29){const o=Br[r-20];o&&(t.push({type:"resetDecoration",value:o}),o==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Je[r-30]}});else if(r===38){const o=da(e);o&&t.push({type:"setForegroundColor",value:o})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Je[r-40]}});else if(r===48){const o=da(e);o&&t.push({type:"setBackgroundColor",value:o})}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:Je[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Je[r-100+8]}})}return t}function lm(){let e=null,t=null,n=new Set;return{parse(r){const o=[];let i=0;do{const a=am(r,i),s=a.sequence?r.substring(i,a.startPosition):r.substring(i);if(s.length>0&&o.push({value:s,foreground:e,background:t,decorations:new Set(n)}),a.sequence){const l=sm(a.sequence);for(const c of l)c.type==="resetAll"?(e=null,t=null,n.clear()):c.type==="resetForegroundColor"?e=null:c.type==="resetBackgroundColor"?t=null:c.type==="resetDecoration"&&n.delete(c.value);for(const c of l)c.type==="setForegroundColor"?e=c.value:c.type==="setBackgroundColor"?t=c.value:c.type==="setDecoration"&&n.add(c.value)}i=a.position}while(i<r.length);return o}}}var cm={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 um(e=cm){function t(s){return e[s]}function n(s){return`#${s.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let r;function o(){if(r)return r;r=[];for(let c=0;c<Je.length;c++)r.push(t(Je[c]));let s=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let u=0;u<6;u++)for(let d=0;d<6;d++)r.push(n([s[c],s[u],s[d]]));let l=8;for(let c=0;c<24;c++,l+=10)r.push(n([l,l,l]));return r}function i(s){return o()[s]}function a(s){switch(s.type){case"named":return t(s.name);case"rgb":return n(s.rgb);case"table":return i(s.index)}}return{value:a}}const dm=/#([0-9a-f]{3,8})/i,fm=/var\((--[\w-]+-ansi-[\w-]+)\)/,pm={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 hm(e,t,n){const r=$n(e,n),o=yr(t),i=um(Object.fromEntries(Je.map(s=>{var c;const l=`terminal.ansi${s[0].toUpperCase()}${s.substring(1)}`;return[s,((c=e.colors)==null?void 0:c[l])||pm[s]]}))),a=lm();return o.map(s=>a.parse(s[0]).map(l=>{let c,u;l.decorations.has("reverse")?(c=l.background?i.value(l.background):e.bg,u=l.foreground?i.value(l.foreground):e.fg):(c=l.foreground?i.value(l.foreground):e.fg,u=l.background?i.value(l.background):void 0),c=Be(c,r),u=Be(u,r),l.decorations.has("dim")&&(c=mm(c));let d=Q.None;return l.decorations.has("bold")&&(d|=Q.Bold),l.decorations.has("italic")&&(d|=Q.Italic),l.decorations.has("underline")&&(d|=Q.Underline),l.decorations.has("strikethrough")&&(d|=Q.Strikethrough),{content:l.value,offset:s[1],color:c,bgColor:u,fontStyle:d}}))}function mm(e){const t=e.match(dm);if(t){const r=t[1];if(r.length===8){const o=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${o}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const o=r[0],i=r[1],a=r[2],s=r[3];return`#${o}${o}${i}${i}${a}${a}${Math.round(Number.parseInt(`${s}${s}`,16)/2).toString(16).padStart(2,"0")}`}else if(r.length===3){const o=r[0],i=r[1],a=r[2];return`#${o}${o}${i}${i}${a}${a}80`}}}const n=e.match(fm);return n?`var(${n[1]}-dim)`:e}function Ao(e,t,n={}){const r=e.resolveLangAlias(n.lang||"text"),{theme:o=e.getLoadedThemes()[0]}=n;if(!gr(r)&&!vr(o)&&r==="ansi"){const{theme:i}=e.setTheme(o);return hm(i,t,n)}return oc(e,t,n)}function Hn(e,t,n){let r,o,i,a,s,l;if("themes"in n){const{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:d="css-vars"}=n,f=Object.entries(n.themes).filter(b=>b[1]).map(b=>({color:b[0],theme:b[1]})).sort((b,_)=>b.color===c?-1:_.color===c?1:0);if(f.length===0)throw new V("`themes` option must not be empty");const p=ic(e,t,n,Ao);if(l=nn(p),c&&c!=="light-dark()"&&!f.some(b=>b.color===c))throw new V(`\`themes\` option must contain the defaultColor key \`${c}\``);const h=f.map(b=>e.getTheme(b.theme)),g=f.map(b=>b.color);i=p.map(b=>b.map(_=>em(_,g,u,c,d))),l&&_r(i,l);const v=f.map(b=>$n(b.theme,n));o=fa(f,h,v,u,c,"fg",d),r=fa(f,h,v,u,c,"bg",d),a=`shiki-themes ${h.map(b=>b.name).join(" ")}`,s=c?void 0:[o,r].join(";")}else if("theme"in n){const c=$n(n.theme,n);i=Ao(e,t,n);const u=e.getTheme(n.theme);r=Be(u.bg,c),o=Be(u.fg,c),a=u.name,l=nn(i)}else throw new V("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:o,bg:r,themeName:a,rootStyle:s,grammarState:l}}function fa(e,t,n,r,o,i,a){return e.map((s,l)=>{const c=Be(t[l][i],n[l])||"inherit",u=`${r+s.color}${i==="bg"?"-bg":""}:${c}`;if(l===0&&o){if(o==="light-dark()"&&e.length>1){const d=e.findIndex(p=>p.color==="light"),f=e.findIndex(p=>p.color==="dark");if(d===-1||f===-1)throw new V('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${Be(t[d][i],n[d])||"inherit"}, ${Be(t[f][i],n[f])||"inherit"});${u}`}return c}return a==="css-vars"?u:null}).filter(s=>!!s).join(";")}const Ec=/^\s+$/,gm=/^(\s*)(.*?)(\s*)$/;function Wn(e,t,n,r={meta:{},options:n,codeToHast:(o,i)=>Wn(e,o,i),codeToTokens:(o,i)=>Hn(e,o,i)}){var h,g;let o=t;for(const v of Bn(n))o=((h=v.preprocess)==null?void 0:h.call(r,o,n))||o;let{tokens:i,fg:a,bg:s,themeName:l,rootStyle:c,grammarState:u}=Hn(e,o,n);const{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?i=ym(i):d==="never"&&(i=_m(i)),f&&(i=bm(i));const p={...r,get source(){return o}};for(const v of Bn(n))i=((g=v.tokens)==null?void 0:g.call(p,i))||i;return vm(i,{...n,fg:a,bg:s,themeName:l,rootStyle:n.rootStyle===!1?!1:n.rootStyle??c},p,u)}function vm(e,t,n,r=nn(e)){var g,v,b,_;const o=Bn(t),i=[],a={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=t,c={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),l!==!1&&l!=null&&(c.tabindex=l.toString());for(const[w,E]of Object.entries(t.meta||{}))w.startsWith("_")||(c[w]=E);let u={type:"element",tagName:"pre",properties:c,children:[],data:t.data},d={type:"element",tagName:"code",properties:{},children:i};const f=[],p={...n,structure:s,addClassToHast:bc,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return a},get pre(){return u},get code(){return d},get lines(){return f}};if(e.forEach((w,E)=>{var k,L;E&&(s==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):s==="classic"&&i.push({type:"text",value:`
|
|
13
|
+
`}));let S={type:"element",tagName:"span",properties:{class:"line"},children:[]},C=0;for(const I of w){let P={type:"element",tagName:"span",properties:{...I.htmlAttrs},children:[{type:"text",value:I.content}]};const $=So(I.htmlStyle||Fn(I));$&&(P.properties.style=$);for(const D of o)P=((k=D==null?void 0:D.span)==null?void 0:k.call(p,P,E+1,C,S,I))||P;s==="inline"?a.children.push(P):s==="classic"&&S.children.push(P),C+=I.content.length}if(s==="classic"){for(const I of o)S=((L=I==null?void 0:I.line)==null?void 0:L.call(p,S,E+1))||S;f.push(S),i.push(S)}else s==="inline"&&f.push(S)}),s==="classic"){for(const w of o)d=((g=w==null?void 0:w.code)==null?void 0:g.call(p,d))||d;u.children.push(d);for(const w of o)u=((v=w==null?void 0:w.pre)==null?void 0:v.call(p,u))||u;a.children.push(u)}else if(s==="inline"){const w=[];let E={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const C of a.children)C.type==="element"&&C.tagName==="br"?(w.push(E),E={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(C.type==="element"||C.type==="text")&&E.children.push(C);w.push(E);let S={type:"element",tagName:"code",properties:{},children:w};for(const C of o)S=((b=C==null?void 0:C.code)==null?void 0:b.call(p,S))||S;a.children=[];for(let C=0;C<S.children.length;C++){C>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});const k=S.children[C];k.type==="element"&&a.children.push(...k.children)}}let h=a;for(const w of o)h=((_=w==null?void 0:w.root)==null?void 0:_.call(p,h))||h;return r&&_r(h,r),h}function ym(e){return e.map(t=>{const n=[];let r="",o;return t.forEach((i,a)=>{const s=!(i.fontStyle&&(i.fontStyle&Q.Underline||i.fontStyle&Q.Strikethrough));s&&Ec.test(i.content)&&t[a+1]?(o===void 0&&(o=i.offset),r+=i.content):r?(s?n.push({...i,offset:o,content:r+i.content}):n.push({content:r,offset:o},i),o=void 0,r=""):n.push(i)}),n})}function _m(e){return e.map(t=>t.flatMap(n=>{if(Ec.test(n.content))return n;const r=n.content.match(gm);if(!r)return n;const[,o,i,a]=r;if(!o&&!a)return n;const s=[{...n,offset:n.offset+o.length,content:i}];return o&&s.unshift({content:o,offset:n.offset}),a&&s.push({content:a,offset:n.offset+o.length+i.length}),s}))}function bm(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const o=n.at(-1),i=So(o.htmlStyle||Fn(o)),a=So(r.htmlStyle||Fn(r)),s=o.fontStyle&&(o.fontStyle&Q.Underline||o.fontStyle&Q.Strikethrough),l=r.fontStyle&&(r.fontStyle&Q.Underline||r.fontStyle&Q.Strikethrough);!s&&!l&&i===a?o.content+=r.content:n.push({...r})}return n})}const wm=Uh;function Em(e,t,n){var i;const r={meta:{},options:n,codeToHast:(a,s)=>Wn(e,a,s),codeToTokens:(a,s)=>Hn(e,a,s)};let o=wm(Wn(e,t,n,r));for(const a of Bn(n))o=((i=a.postprocess)==null?void 0:i.call(r,o,n))||o;return o}async function Sm(e){const t=await Ep(e);return{getLastGrammarState:(...n)=>kp(t,...n),codeToTokensBase:(n,r)=>Ao(t,n,r),codeToTokensWithThemes:(n,r)=>ic(t,n,r),codeToTokens:(n,r)=>Hn(t,n,r),codeToHast:(n,r)=>Wn(t,n,r),codeToHtml:(n,r)=>Em(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}const pa=4294967295;function Am(e){var t;return!e.sticky&&!((t=e.rawOptions)!=null&&t.strategy)}function ha(e,t){return{index:e,captureIndices:t.map(n=>n==null?{start:pa,end:pa,length:0}:{start:n[0],end:n[1],length:n[1]-n[0]})}}var Cm=class{patterns;options;regexps;lastSearches;constructor(e,t={}){this.patterns=e,this.options=t;const{forgiving:n=!1,cache:r,regexConstructor:o}=t;if(!o)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(i=>{if(typeof i!="string")return i;const a=r==null?void 0:r.get(i);if(a){if(a instanceof RegExp)return a;if(n)return null;throw a}try{const s=o(i);return r==null||r.set(i,s),s}catch(s){if(r==null||r.set(i,s),n)return null;throw s}}),this.lastSearches=this.regexps.map(i=>i&&Am(i)?{strId:0,searchedFrom:0,matchIndex:-1,indices:null}:null)}findNextMatchSync(e,t,n){const r=typeof e=="string"?e:e.content,o=typeof e=="string"?0:e.id||0;let i=-1,a=0,s=null;for(let l=0;l<this.regexps.length;l++){const c=this.regexps[l];if(c)try{const u=o?this.lastSearches[l]:null;let d,f;if(u&&u.strId===o&&u.searchedFrom<=t&&(u.matchIndex===-1||u.matchIndex>=t))d=u.matchIndex,f=u.indices;else{c.lastIndex=t;const p=c.exec(r);d=p?p.index:-1,f=p?p.indices:null,u&&(u.strId=o,u.searchedFrom=t,u.matchIndex=d,u.indices=f)}if(d===-1)continue;if(d===t)return ha(l,f);(i===-1||d<a)&&(i=l,a=d,s=f)}catch(u){if(this.options.forgiving)continue;throw u}}return i===-1?null:ha(i,s)}};let xm=0;function km(e){return{content:e,id:++xm}}function Tt(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function Im(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const ci=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),q=String.raw;function Pt(e,t){if(e==null)throw new Error(t??"Value expected");return e}const Sc=q`\[\^?`,Ac=`c.? | C(?:-.?)?|${q`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${q`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${q`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${q`o\{[^\}]*\}?`}|${q`\d{1,3}`}`,ui=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,yn=new RegExp(q`
|
|
14
|
+
\\ (?:
|
|
15
|
+
${Ac}
|
|
16
|
+
| [gk]<[^>]*>?
|
|
17
|
+
| [gk]'[^']*'?
|
|
18
|
+
| .
|
|
19
|
+
)
|
|
20
|
+
| \( (?:
|
|
21
|
+
\? (?:
|
|
22
|
+
[:=!>({]
|
|
23
|
+
| <[=!]
|
|
24
|
+
| <[^>]*>
|
|
25
|
+
| '[^']*'
|
|
26
|
+
| ~\|?
|
|
27
|
+
| #(?:[^)\\]|\\.?)*
|
|
28
|
+
| [^:)]*[:)]
|
|
29
|
+
)?
|
|
30
|
+
| \*[^\)]*\)?
|
|
31
|
+
)?
|
|
32
|
+
| (?:${ui.source})+
|
|
33
|
+
| ${Sc}
|
|
34
|
+
| .
|
|
35
|
+
`.replace(/\s+/g,""),"gsu"),Hr=new RegExp(q`
|
|
36
|
+
\\ (?:
|
|
37
|
+
${Ac}
|
|
38
|
+
| .
|
|
39
|
+
)
|
|
40
|
+
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
41
|
+
| ${Sc}
|
|
42
|
+
| &&
|
|
43
|
+
| .
|
|
44
|
+
`.replace(/\s+/g,""),"gsu");function Lm(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=Km(n.flags),o=[r.extended],i={captureGroup:n.rules.captureGroup,getCurrentModX(){return o.at(-1)},numOpenGroups:0,popModX(){o.pop()},pushModX(d){o.push(d)},replaceCurrentModX(d){o[o.length-1]=d},singleline:n.rules.singleline};let a=[],s;for(yn.lastIndex=0;s=yn.exec(e);){const d=Rm(i,e,s[0],yn.lastIndex);d.tokens?a.push(...d.tokens):d.token&&a.push(d.token),d.lastIndex!==void 0&&(yn.lastIndex=d.lastIndex)}const l=[];let c=0;a.filter(d=>d.type==="GroupOpen").forEach(d=>{d.kind==="capturing"?d.number=++c:d.raw==="("&&l.push(d)}),c||l.forEach((d,f)=>{d.kind="capturing",d.number=f+1});const u=c||l.length;return{tokens:a.map(d=>d.type==="EscapedNumber"?Ym(d,u):d).flat(),flags:r}}function Rm(e,t,n,r){const[o,i]=n;if(n==="["||n==="[^"){const a=Tm(t,n,r);return{tokens:a.tokens,lastIndex:a.lastIndex}}if(o==="\\"){if("AbBGyYzZ".includes(i))return{token:ma(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:Hm(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:xc(n)}}if(i==="K")return{token:kc("keep",n)};if(i==="N"||i==="R")return{token:et("newline",n,{negate:i==="N"})};if(i==="O")return{token:et("any",n)};if(i==="X")return{token:et("text_segment",n)};const a=Cc(n,{inCharClass:!1});return Array.isArray(a)?{tokens:a}:{token:a}}if(o==="("){if(i==="*")return{token:zm(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:jm(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:ft("group",n)};if(n==="(?>")return{token:ft("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:ft(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:ft("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:ft("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:$m(n)}}if(e.getCurrentModX()){if(n==="#"){const a=t.indexOf(`
|
|
45
|
+
`,r);return{lastIndex:a===-1?t.length:a}}if(/^\s$/.test(n)){const a=/\s+/y;return a.lastIndex=r,{lastIndex:a.exec(t)?a.lastIndex:r}}}if(n===".")return{token:et("dot",n)};if(n==="^"||n==="$"){const a=e.singleline?{"^":q`\A`,$:q`\Z`}[n]:n;return{token:ma(a,n)}}return n==="|"?{token:Dm(n)}:ui.test(n)?{tokens:Zm(n)}:{token:xe(Tt(n),n)}}function Tm(e,t,n){const r=[ga(t[1]==="^",t)];let o=1,i;for(Hr.lastIndex=n;i=Hr.exec(e);){const a=i[0];if(a[0]==="["&&a[1]!==":")o++,r.push(ga(a[1]==="^",a));else if(a==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(xe(93,a));else if(o--,r.push(Om(a)),!o)break}else{const s=Pm(a);Array.isArray(s)?r.push(...s):r.push(s)}}return{tokens:r,lastIndex:Hr.lastIndex||e.length}}function Pm(e){if(e[0]==="\\")return Cc(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!ci.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return et("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?Mm(e):e==="&&"?Nm(e):xe(Tt(e),e)}function Cc(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return Gm(e);if("dDhHsSwW".includes(n))return Um(e);if(e.startsWith(q`\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 qm(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const r=e.split(/\\x/).slice(1).map(a=>parseInt(a,16)),o=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),i=new TextEncoder;return[...o].map(a=>{const s=[...i.encode(a)].map(l=>`\\x${l.toString(16)}`).join("");return xe(Tt(a),s)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return xe(Xm(e),e);if(va.has(n))return xe(va.get(n),e);if(/\d/.test(n))return Vm(t,e);if(e==="\\")throw new Error(q`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return xe(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function Dm(e){return{type:"Alternator",raw:e}}function ma(e,t){return{type:"Assertion",kind:e,raw:t}}function xc(e){return{type:"Backreference",raw:e}}function xe(e,t){return{type:"Character",value:e,raw:t}}function Om(e){return{type:"CharacterClassClose",raw:e}}function Mm(e){return{type:"CharacterClassHyphen",raw:e}}function Nm(e){return{type:"CharacterClassIntersector",raw:e}}function ga(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function et(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function kc(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:Pt(n.flags),raw:t}}function Vm(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function $m(e){return{type:"GroupClose",raw:e}}function ft(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function Fm(e,t,n,r){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:r}}function Bm(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function Hm(e){return{type:"Subroutine",raw:e}}const Wm=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),va=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function Gm(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 xe(Tt(t.toUpperCase())-64,e)}function jm(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??="";const o=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),i=_a(n),a=_a(r),s={};if(i&&(s.enable=i),a&&(s.disable=a),e.endsWith(")"))return t.replaceCurrentModX(o),kc("flags",e,{flags:s});if(e.endsWith(":"))return t.pushModX(o),t.numOpenGroups++,ft("group",e,{...(i||a)&&{flags:s}});throw new Error(`Unexpected flag modifier "${e}"`)}function zm(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:o}=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 i=o?o.split(",").filter(u=>u!=="").map(u=>/^[+-]?\d+$/.test(u)?+u:u):[],[a,s,l]=i,c=Wm.has(n)?n.toLowerCase():"custom";switch(c){case"fail":case"mismatch":case"skip":if(i.length>0)throw new Error(`Named callout arguments not allowed "${i}"`);break;case"error":if(i.length>1)throw new Error(`Named callout allows only one argument "${i}"`);if(typeof a=="string")throw new Error(`Named callout argument must be a number "${a}"`);break;case"max":if(!i.length||i.length>2)throw new Error(`Named callout must have one or two arguments "${i}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(i.length===2&&(typeof s=="number"||!/^[<>X]$/.test(s)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${s}"`);break;case"count":case"total_count":if(i.length>1)throw new Error(`Named callout allows only one argument "${i}"`);if(i.length===1&&(typeof a=="number"||!/^[<>X]$/.test(a)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${a}"`);break;case"cmp":if(i.length!==3)throw new Error(`Named callout must have three arguments "${i}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(typeof s=="number"||!/^(?:[<>!=]=|[<>])$/.test(s))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${c}"`)}return Fm(c,r??null,(o==null?void 0:o.split(","))??null,e)}function ya(e){let t=null,n,r;if(e[0]==="{"){const{minStr:o,maxStr:i}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,a=1e5;if(+o>a||i&&+i>a)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+o,r=i===void 0?+o:i===""?1/0:+i,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 Bm(t,n,r,e)}function Um(e){const t=e[1].toLowerCase();return et({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function qm(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return et("property",e,{value:r,negate:t==="P"&&!n||t==="p"&&!!n})}function _a(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 Km(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 Xm(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 Ym(e,t){const{raw:n,inCharClass:r}=e,o=n.slice(1);if(!r&&(o!=="0"&&o.length===1||o[0]!=="0"&&+o<=t))return[xc(n)];const i=[],a=o.match(/^[0-7]+|\d/g);for(let s=0;s<a.length;s++){const l=a[s];let c;if(s===0&&l!=="8"&&l!=="9"){if(c=parseInt(l,8),c>127)throw new Error(q`Octal encoded byte above 177 unsupported "${n}"`)}else c=Tt(l);i.push(xe(c,(s===0?"\\":"")+l))}return i}function Zm(e){const t=[],n=new RegExp(ui,"gy");let r;for(;r=n.exec(e);){const o=r[0];if(o[0]==="{"){const i=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(o);if(i){const{min:a,max:s}=i.groups;if(+a>+s&&o.endsWith("?")){n.lastIndex--,t.push(ya(o.slice(0,-1)));continue}}}t.push(ya(o))}return t}function Ic(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 Qm(e){return Jm.has(e.type)}const Jm=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Lc(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=Lm(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),o=(f,p)=>{const h=r.tokens[i.nextIndex];switch(i.parent=f,i.nextIndex++,h.type){case"Alternator":return ot();case"Assertion":return eg(h);case"Backreference":return tg(h,i);case"Character":return wr(h.value,{useLastValid:!!p.isCheckingRangeEnd});case"CharacterClassHyphen":return ng(h,i,p);case"CharacterClassOpen":return rg(h,i,p);case"CharacterSet":return og(h,i);case"Directive":return ug(h.kind,{flags:h.flags});case"GroupOpen":return ig(h,i,p);case"NamedCallout":return fg(h.kind,h.tag,h.arguments);case"Quantifier":return ag(h,i);case"Subroutine":return sg(h,i);default:throw new Error(`Unexpected token type "${h.type}"`)}},i={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:o},a=hg(dg(r.flags));let s=a.body[0];for(;i.nextIndex<r.tokens.length;){const f=o(s,{});f.type==="Alternative"?(a.body.push(f),s=f):s.body.push(f)}const{capturingGroups:l,hasNumberedRef:c,namedGroupsByName:u,subroutines:d}=i;if(c&&u.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:f}of d)if(typeof f=="number"){if(f>l.length)throw new Error("Subroutine uses a group number that's not defined");f&&(l[f-1].isSubroutined=!0)}else if(u.has(f)){if(u.get(f).length>1)throw new Error(q`Subroutine uses a duplicate group name "\g<${f}>"`);u.get(f)[0].isSubroutined=!0}else throw new Error(q`Subroutine uses a group name that's not defined "\g<${f}>"`);return a}function eg({kind:e}){return Co(Pt({"^":"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===q`\B`||e===q`\Y`})}function tg({raw:e},t){const n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),o=(i,a=!1)=>{const s=t.capturingGroups.length;let l=!1;if(i>s)if(t.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,xo(a?s+1-i:i,{orphan:l})};if(n){const i=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(i)return o(+i.groups.num,!!i.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 xo(r)}return o(+r)}function ng(e,t,n){const{tokens:r,walk:o}=t,i=t.parent,a=i.body.at(-1),s=r[t.nextIndex];if(!n.isCheckingRangeEnd&&a&&a.type!=="CharacterClass"&&a.type!=="CharacterClassRange"&&s&&s.type!=="CharacterClassOpen"&&s.type!=="CharacterClassClose"&&s.type!=="CharacterClassIntersector"){const l=o(i,{...n,isCheckingRangeEnd:!0});if(a.type==="Character"&&l.type==="Character")return i.body.pop(),cg(a,l);throw new Error("Invalid character class range")}return wr(Tt("-"))}function rg({negate:e},t,n){const{tokens:r,walk:o}=t,i=[Rn()],a=r[t.nextIndex];let s=Ea(a);for(;s.type!=="CharacterClassClose";){if(s.type==="CharacterClassIntersector")i.push(Rn()),t.nextIndex++;else{const c=i.at(-1);c.body.push(o(c,n))}s=Ea(r[t.nextIndex],a)}const l=Rn({negate:e});return i.length===1?l.body=i[0].body:(l.kind="intersection",l.body=i.map(c=>c.body.length===1?c.body[0]:c)),t.nextIndex++,l}function og({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:o,skipPropertyNameValidation:i,unicodePropertyMap:a}=r;if(e==="property"){const s=Er(n);if(ci.has(s)&&!(a!=null&&a.has(s)))e="posix",n=s;else return pt(n,{negate:t,normalizeUnknownPropertyNames:o,skipPropertyNameValidation:i,unicodePropertyMap:a})}return e==="posix"?pg(n,{negate:t}):ko(e,{negate:t})}function ig(e,t,n){const{tokens:r,capturingGroups:o,namedGroupsByName:i,skipLookbehindValidation:a,walk:s}=t,l=mg(e),c=l.type==="AbsenceFunction",u=wa(l),d=u&&l.negate;if(l.type==="CapturingGroup"&&(o.push(l),l.name&&Im(i,l.name,[]).push(l)),c&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let f=Sa(r[t.nextIndex]);for(;f.type!=="GroupClose";){if(f.type==="Alternator")l.body.push(ot()),t.nextIndex++;else{const p=l.body.at(-1),h=s(p,{...n,isInAbsenceFunction:n.isInAbsenceFunction||c,isInLookbehind:n.isInLookbehind||u,isInNegLookbehind:n.isInNegLookbehind||d});if(p.body.push(h),(u||n.isInLookbehind)&&!a){const g="Lookbehind includes a pattern not allowed by Oniguruma";if(d||n.isInNegLookbehind){if(ba(h)||h.type==="CapturingGroup")throw new Error(g)}else if(ba(h)||wa(h)&&h.negate)throw new Error(g)}}f=Sa(r[t.nextIndex])}return t.nextIndex++,l}function ag({kind:e,min:t,max:n},r){const o=r.parent,i=o.body.at(-1);if(!i||!Qm(i))throw new Error("Quantifier requires a repeatable token");const a=Tc(e,t,n,i);return o.body.pop(),a}function sg({raw:e},t){const{capturingGroups:n,subroutines:r}=t;let o=e.slice(3,-1);const i=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(o);if(i){const s=+i.groups.num,l=n.length;if(t.hasNumberedRef=!0,o={"":s,"+":l+s,"-":l+1-s}[i.groups.sign],o<1)throw new Error("Invalid subroutine number")}else o==="0"&&(o=0);const a=Pc(o);return r.push(a),a}function lg(e,t){return{type:"AbsenceFunction",kind:e,body:pn(t==null?void 0:t.body)}}function ot(e){return{type:"Alternative",body:Dc(e==null?void 0:e.body)}}function Co(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!(t!=null&&t.negate)),n}function xo(e,t){const n=!!(t!=null&&t.orphan);return{type:"Backreference",ref:e,...n&&{orphan:n}}}function Rc(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!gg(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:pn(t==null?void 0:t.body)}}function wr(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 Rn(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:Dc(e==null?void 0:e.body)}}function cg(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function ko(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 ug(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:Pt(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function dg(e){return{type:"Flags",...e}}function ve(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:pn(e==null?void 0:e.body)}}function Ze(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:pn(e==null?void 0:e.body)}}function fg(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function pg(e,t){const n=!!(t!=null&&t.negate);if(!ci.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}function Tc(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 hg(e,t){return{type:"Regex",body:pn(t==null?void 0:t.body),flags:e}}function Pc(e){return{type:"Subroutine",ref:e}}function pt(e,t){var o;const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=(o=n.unicodePropertyMap)==null?void 0:o.get(Er(e));if(!r){if(n.normalizeUnknownPropertyNames)r=vg(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(q`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function mg({flags:e,kind:t,name:n,negate:r,number:o}){switch(t){case"absence_repeater":return lg("repeater");case"atomic":return ve({atomic:!0});case"capturing":return Rc(o,{name:n});case"group":return ve({flags:e});case"lookahead":case"lookbehind":return Ze({behind:t==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function pn(e){if(e===void 0)e=[ot()];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 Dc(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 ba(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function wa(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function gg(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function vg(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 Er(e){return e.replace(/[- _]+/g,"").toLowerCase()}function Ea(e,t){const n=t;return Pt(e,`Unclosed character class${(n==null?void 0:n.type)==="Character"&&n.value===93&&n.raw==="]"?' (started with "]")':""}`)}function Sa(e){return Pt(e,"Unclosed group")}function qt(e,t,n=null){function r(i,a){for(let s=0;s<i.length;s++){const l=o(i[s],a,s,i);s=Math.max(-1,s+l)}}function o(i,a=null,s=null,l=null){var b,_;let c=0,u=!1;const d={node:i,parent:a,key:s,container:l,root:e,remove(){_n(l).splice(Math.max(0,ut(s)+c),1),c--,u=!0},removeAllNextSiblings(){return _n(l).splice(ut(s)+1)},removeAllPrevSiblings(){const w=ut(s)+c;return c-=w,_n(l).splice(0,Math.max(0,w))},replaceWith(w,E={}){const S=!!E.traverse;l?l[Math.max(0,ut(s)+c)]=w:Pt(a,"Can't replace root node")[s]=w,S&&o(w,a,s,l),u=!0},replaceWithMultiple(w,E={}){const S=!!E.traverse;if(_n(l).splice(Math.max(0,ut(s)+c),1,...w),c+=w.length-1,S){let C=0;for(let k=0;k<w.length;k++)C+=o(w[k],a,ut(s)+k+C,l)}u=!0},skip(){u=!0}},{type:f}=i,p=t["*"],h=t[f],g=typeof p=="function"?p:p==null?void 0:p.enter,v=typeof h=="function"?h:h==null?void 0:h.enter;if(g==null||g(d,n),v==null||v(d,n),!u)switch(f){case"AbsenceFunction":case"Alternative":case"CapturingGroup":case"CharacterClass":case"Group":case"LookaroundAssertion":r(i.body,i);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":o(i.min,i,"min"),o(i.max,i,"max");break;case"Quantifier":o(i.body,i,"body");break;case"Regex":r(i.body,i),o(i.flags,i,"flags");break;default:throw new Error(`Unexpected node type "${f}"`)}return(b=h==null?void 0:h.exit)==null||b.call(h,d,n),(_=p==null?void 0:p.exit)==null||_.call(p,d,n),c}return o(e),e}function _n(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function ut(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const yg=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function _g(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function bg(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const pe=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function di(e,t,n,r){const o=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),i=[!1];let a=0,s="";for(const l of e.matchAll(o)){const{0:c,groups:{$skip:u}}=l;if(!u&&(!r||r===pe.DEFAULT==!a)){n instanceof Function?s+=n(l,{context:a?pe.CHAR_CLASS:pe.DEFAULT,negated:i[i.length-1]}):s+=n;continue}c[0]==="["?(a++,i.push(c[1]==="^")):c==="]"&&a&&(a--,i.pop()),s+=c}return s}function Oc(e,t,n,r){di(e,t,n,r)}function wg(e,t,n=0,r){if(!new RegExp(t,"su").test(e))return null;const o=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");o.lastIndex=n;let i=0,a;for(;a=o.exec(e);){const{0:s,groups:{$skip:l}}=a;if(!l&&(!r||r===pe.DEFAULT==!i))return a;s==="["?i++:s==="]"&&i&&i--,o.lastIndex==a.index&&o.lastIndex++}return null}function bn(e,t,n){return!!wg(e,t,0,n)}function Eg(e,t){const n=/\\?./gsu;n.lastIndex=t;let r=e.length,o=0,i=1,a;for(;a=n.exec(e);){const[s]=a;if(s==="[")o++;else if(o)s==="]"&&o--;else if(s==="(")i++;else if(s===")"&&(i--,!i)){r=a.index;break}}return e.slice(t,r)}const Aa=new RegExp(String.raw`(?<noncapturingStart>${yg})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function Sg(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 o="(?>",i="(?:(?=(",a=[0],s=[];let l=0,c=0,u=NaN,d;do{d=!1;let f=0,p=0,h=!1,g;for(Aa.lastIndex=Number.isNaN(u)?0:u+i.length;g=Aa.exec(e);){const{0:v,index:b,groups:{capturingStart:_,noncapturingStart:w}}=g;if(v==="[")f++;else if(f)v==="]"&&f--;else if(v===o&&!h)u=b,h=!0;else if(h&&w)p++;else if(_)h?p++:(l++,a.push(l+c));else if(v===")"&&h){if(!p){c++;const E=l+c;if(e=`${e.slice(0,u)}${i}${e.slice(u+o.length,b)}))<$$${E}>)${e.slice(b+1)}`,d=!0,s.push(E),_g(n,E),r.size){const S=new Map;r.forEach((C,k)=>{S.set(k>=E?k+1:k,C.map(L=>L>=E?L+1:L))}),r=S}break}p--}}}while(d);return n.push(...s),e=di(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:f,groups:{backrefNum:p,wrappedBackrefNum:h}})=>{if(p){const g=+p;if(g>a.length-1)throw new Error(`Backref "${f}" greater than number of captures`);return`\\${a[g]}`}return`\\${h}`},pe.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const Mc=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Wr=new RegExp(String.raw`
|
|
46
|
+
\\(?: \d+
|
|
47
|
+
| c[A-Za-z]
|
|
48
|
+
| [gk]<[^>]+>
|
|
49
|
+
| [pPu]\{[^\}]+\}
|
|
50
|
+
| u[A-Fa-f\d]{4}
|
|
51
|
+
| x[A-Fa-f\d]{2}
|
|
52
|
+
)
|
|
53
|
+
| \((?: \? (?: [:=!>]
|
|
54
|
+
| <(?:[=!]|[^>]+>)
|
|
55
|
+
| [A-Za-z\-]+:
|
|
56
|
+
| \(DEFINE\)
|
|
57
|
+
))?
|
|
58
|
+
| (?<qBase>${Mc})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
59
|
+
| \\?.
|
|
60
|
+
`.replace(/\s+/g,""),"gsu");function Ag(e){if(!new RegExp(`${Mc}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,o="",i=0,a;for(Wr.lastIndex=0;a=Wr.exec(e);){const{0:s,index:l,groups:{qBase:c,qMod:u,invalidQ:d}}=a;if(s==="[")i||(r=l),i++;else if(s==="]")i?i--:r=null;else if(!i)if(u==="+"&&o&&!o.startsWith("(")){if(d)throw new Error(`Invalid quantifier "${s}"`);let f=-1;if(/^\{\d+\}$/.test(c))e=bg(e,l+c.length,u,"");else{if(o===")"||o==="]"){const p=o===")"?n:r;if(p===null)throw new Error(`Invalid unmatched "${o}"`);e=`${e.slice(0,p)}(?>${e.slice(p,l)}${c})${e.slice(l+s.length)}`}else e=`${e.slice(0,l-o.length)}(?>${o}${c})${e.slice(l+s.length)}`;f+=4}Wr.lastIndex+=f}else s[0]==="("?t.push(l):s===")"&&(n=t.length?t.pop():null);o=s}return{pattern:e}}const fe=String.raw,Cg=fe`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Io=fe`\(\?R=(?<rDepth>[^\)]+)\)|${Cg}`,Sr=fe`\(\?<(?![=!])(?<captureName>[^>]+)>`,Nc=fe`${Sr}|(?<unnamed>\()(?!\?)`,Ue=new RegExp(fe`${Sr}|${Io}|\(\?|\\?.`,"gsu"),Gr="Cannot use multiple overlapping recursions";function xg(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let o=(t==null?void 0:t.captureTransfers)??new Map;if(!new RegExp(Io,"su").test(e))return{pattern:e,captureTransfers:o,hiddenCaptures:n};if(r==="plugin"&&bn(e,fe`\(\?\(DEFINE\)`,pe.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const i=[],a=bn(e,fe`\\[1-9]`,pe.DEFAULT),s=new Map,l=[];let c=!1,u=0,d=0,f;for(Ue.lastIndex=0;f=Ue.exec(e);){const{0:p,groups:{captureName:h,rDepth:g,gRNameOrNum:v,gRDepth:b}}=f;if(p==="[")u++;else if(u)p==="]"&&u--;else if(g){if(Ca(g),c)throw new Error(Gr);if(a)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const _=e.slice(0,f.index),w=e.slice(Ue.lastIndex);if(bn(w,Io,pe.DEFAULT))throw new Error(Gr);const E=+g-1;e=xa(_,w,E,!1,n,i,d),o=Ia(o,_,E,i.length,0,d);break}else if(v){Ca(b);let _=!1;for(const D of l)if(D.name===v||D.num===+v){if(_=!0,D.hasRecursedWithin)throw new Error(Gr);break}if(!_)throw new Error(fe`Recursive \g cannot be used outside the referenced group "${r==="external"?v:fe`\g<${v}&R=${b}>`}"`);const w=s.get(v),E=Eg(e,w);if(a&&bn(E,fe`${Sr}|\((?!\?)`,pe.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const S=e.slice(w,f.index),C=E.slice(S.length+p.length),k=i.length,L=+b-1,I=xa(S,C,L,!0,n,i,d);o=Ia(o,S,L,i.length-k,k,d);const P=e.slice(0,w),$=e.slice(w+E.length);e=`${P}${I}${$}`,Ue.lastIndex+=I.length-p.length-S.length-C.length,l.forEach(D=>D.hasRecursedWithin=!0),c=!0}else if(h)d++,s.set(String(d),Ue.lastIndex),s.set(h,Ue.lastIndex),l.push({num:d,name:h});else if(p[0]==="("){const _=p==="(";_&&(d++,s.set(String(d),Ue.lastIndex)),l.push(_?{num:d}:{})}else p===")"&&l.pop()}return n.push(...i),{pattern:e,captureTransfers:o,hiddenCaptures:n}}function Ca(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 xa(e,t,n,r,o,i,a){const s=new Set;r&&Oc(e+t,Sr,({groups:{captureName:c}})=>{s.add(c)},pe.DEFAULT);const l=[n,r?s:null,o,i,a];return`${e}${ka(`(?:${e}`,"forward",...l)}(?:)${ka(`${t})`,"backward",...l)}${t}`}function ka(e,t,n,r,o,i,a){const l=u=>t==="forward"?u+2:n-u+2-1;let c="";for(let u=0;u<n;u++){const d=l(u);c+=di(e,fe`${Nc}|\\k<(?<backref>[^>]+)>`,({0:f,groups:{captureName:p,unnamed:h,backref:g}})=>{if(g&&r&&!r.has(g))return f;const v=`_$${d}`;if(h||p){const b=a+i.length+1;return i.push(b),kg(o,b),h?f:`(?<${p}${v}>`}return fe`\k<${g}${v}>`},pe.DEFAULT)}return c}function kg(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function Ia(e,t,n,r,o,i){if(e.size&&r){let a=0;Oc(t,Nc,()=>a++,pe.DEFAULT);const s=i-a+o,l=new Map;return e.forEach((c,u)=>{const d=(r-a*n)/n,f=a*n,p=u>s+a?u+r:u,h=[];for(const g of c)if(g<=s)h.push(g);else if(g>s+a+d)h.push(g+r);else if(g<=s+a)for(let v=0;v<=n;v++)h.push(g+a*v);else for(let v=0;v<=n;v++)h.push(g+f+d*v);l.set(p,h)}),l}return e}var G=String.fromCodePoint,T=String.raw,_e={},Ar=globalThis.RegExp;_e.flagGroups=(()=>{try{new Ar("(?i:)")}catch{return!1}return!0})();_e.unicodeSets=(()=>{try{new Ar("[[]]","v")}catch{return!1}return!0})();_e.bugFlagVLiteralHyphenIsRange=_e.unicodeSets?(()=>{try{new Ar(T`[\d\-a]`,"v")}catch{return!0}return!1})():!1;_e.bugNestedClassIgnoresNegation=_e.unicodeSets&&new Ar("[[^a]]","v").test("a");function Gn(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 rn(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function Lo(e,t){return La[e]>=La[t]}function Ig(e,t){if(e==null)throw new Error(t??"Value expected");return e}var La={ES2025:2025,ES2024:2024,ES2018:2018},Lg={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Vc(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!Lg[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=_e.flagGroups?"ES2025":_e.unicodeSets?"ES2024":"ES2018"),t}var Rg="[ -\r ]",Tg=new Set([G(304),G(305)]),Ae=T`[\p{L}\p{M}\p{N}\p{Pc}]`;function $c(e){if(Tg.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),o=Og.get(n),i=Pg.get(n),a=Dg.get(n);return[...r].length===1&&t.add(r),a&&t.add(a),o&&t.add(o),t.add(n),i&&t.add(i),[...t]}var fi=new Map(`C Other
|
|
61
|
+
Cc Control cntrl
|
|
62
|
+
Cf Format
|
|
63
|
+
Cn Unassigned
|
|
64
|
+
Co Private_Use
|
|
65
|
+
Cs Surrogate
|
|
66
|
+
L Letter
|
|
67
|
+
LC Cased_Letter
|
|
68
|
+
Ll Lowercase_Letter
|
|
69
|
+
Lm Modifier_Letter
|
|
70
|
+
Lo Other_Letter
|
|
71
|
+
Lt Titlecase_Letter
|
|
72
|
+
Lu Uppercase_Letter
|
|
73
|
+
M Mark Combining_Mark
|
|
74
|
+
Mc Spacing_Mark
|
|
75
|
+
Me Enclosing_Mark
|
|
76
|
+
Mn Nonspacing_Mark
|
|
77
|
+
N Number
|
|
78
|
+
Nd Decimal_Number digit
|
|
79
|
+
Nl Letter_Number
|
|
80
|
+
No Other_Number
|
|
81
|
+
P Punctuation punct
|
|
82
|
+
Pc Connector_Punctuation
|
|
83
|
+
Pd Dash_Punctuation
|
|
84
|
+
Pe Close_Punctuation
|
|
85
|
+
Pf Final_Punctuation
|
|
86
|
+
Pi Initial_Punctuation
|
|
87
|
+
Po Other_Punctuation
|
|
88
|
+
Ps Open_Punctuation
|
|
89
|
+
S Symbol
|
|
90
|
+
Sc Currency_Symbol
|
|
91
|
+
Sk Modifier_Symbol
|
|
92
|
+
Sm Math_Symbol
|
|
93
|
+
So Other_Symbol
|
|
94
|
+
Z Separator
|
|
95
|
+
Zl Line_Separator
|
|
96
|
+
Zp Paragraph_Separator
|
|
97
|
+
Zs Space_Separator
|
|
98
|
+
ASCII
|
|
99
|
+
ASCII_Hex_Digit AHex
|
|
100
|
+
Alphabetic Alpha
|
|
101
|
+
Any
|
|
102
|
+
Assigned
|
|
103
|
+
Bidi_Control Bidi_C
|
|
104
|
+
Bidi_Mirrored Bidi_M
|
|
105
|
+
Case_Ignorable CI
|
|
106
|
+
Cased
|
|
107
|
+
Changes_When_Casefolded CWCF
|
|
108
|
+
Changes_When_Casemapped CWCM
|
|
109
|
+
Changes_When_Lowercased CWL
|
|
110
|
+
Changes_When_NFKC_Casefolded CWKCF
|
|
111
|
+
Changes_When_Titlecased CWT
|
|
112
|
+
Changes_When_Uppercased CWU
|
|
113
|
+
Dash
|
|
114
|
+
Default_Ignorable_Code_Point DI
|
|
115
|
+
Deprecated Dep
|
|
116
|
+
Diacritic Dia
|
|
117
|
+
Emoji
|
|
118
|
+
Emoji_Component EComp
|
|
119
|
+
Emoji_Modifier EMod
|
|
120
|
+
Emoji_Modifier_Base EBase
|
|
121
|
+
Emoji_Presentation EPres
|
|
122
|
+
Extended_Pictographic ExtPict
|
|
123
|
+
Extender Ext
|
|
124
|
+
Grapheme_Base Gr_Base
|
|
125
|
+
Grapheme_Extend Gr_Ext
|
|
126
|
+
Hex_Digit Hex
|
|
127
|
+
IDS_Binary_Operator IDSB
|
|
128
|
+
IDS_Trinary_Operator IDST
|
|
129
|
+
ID_Continue IDC
|
|
130
|
+
ID_Start IDS
|
|
131
|
+
Ideographic Ideo
|
|
132
|
+
Join_Control Join_C
|
|
133
|
+
Logical_Order_Exception LOE
|
|
134
|
+
Lowercase Lower
|
|
135
|
+
Math
|
|
136
|
+
Noncharacter_Code_Point NChar
|
|
137
|
+
Pattern_Syntax Pat_Syn
|
|
138
|
+
Pattern_White_Space Pat_WS
|
|
139
|
+
Quotation_Mark QMark
|
|
140
|
+
Radical
|
|
141
|
+
Regional_Indicator RI
|
|
142
|
+
Sentence_Terminal STerm
|
|
143
|
+
Soft_Dotted SD
|
|
144
|
+
Terminal_Punctuation Term
|
|
145
|
+
Unified_Ideograph UIdeo
|
|
146
|
+
Uppercase Upper
|
|
147
|
+
Variation_Selector VS
|
|
148
|
+
White_Space space
|
|
149
|
+
XID_Continue XIDC
|
|
150
|
+
XID_Start XIDS`.split(/\s/).map(e=>[Er(e),e])),Pg=new Map([["s",G(383)],[G(383),"s"]]),Dg=new Map([[G(223),G(7838)],[G(107),G(8490)],[G(229),G(8491)],[G(969),G(8486)]]),Og=new Map([Me(453),Me(456),Me(459),Me(498),...jr(8072,8079),...jr(8088,8095),...jr(8104,8111),Me(8124),Me(8140),Me(8188)]),Mg=new Map([["alnum",T`[\p{Alpha}\p{Nd}]`],["alpha",T`\p{Alpha}`],["ascii",T`\p{ASCII}`],["blank",T`[\p{Zs}\t]`],["cntrl",T`\p{Cc}`],["digit",T`\p{Nd}`],["graph",T`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",T`\p{Lower}`],["print",T`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",T`[\p{P}\p{S}]`],["space",T`\p{space}`],["upper",T`\p{Upper}`],["word",T`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",T`\p{AHex}`]]);function Ng(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function Me(e){const t=G(e);return[t.toLowerCase(),t]}function jr(e,t){return Ng(e,t).map(n=>Me(n))}var Fc=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function Vg(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};Bc(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Lo(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};qt(e,$g,r);const o={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},i={currentFlags:o,prevFlags:null,globalFlags:o,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};qt(e,Fg,i);const a={groupsByName:i.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:i.reffedNodesByReferencer};return qt(e,Bg,a),e._originMap=i.groupOriginByCopy,e._strategy=r.strategy,e}var $g={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:o}=e;if(o==="repeater"){const i=ve();i.body[0].body.push(Ze({negate:!0,body:r}),pt("Any"));const a=ve();a.body[0].body.push(Tc("greedy",0,1/0,i)),n(F(a,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const o=e.body.filter(i=>i.kind==="flags");for(let i=n+1;i<t.body.length;i++){const a=t.body[i];rn(r,a,[]).push(...o)}},exit({node:e},{flagDirectivesByAlt:t}){var n;if((n=t.get(e))!=null&&n.length){const r=Wc(t.get(e));if(r){const o=ve({flags:r});o.body[0].body=e.body,e.body=[F(o,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:o,remove:i,replaceWith:a},s){const{kind:l,negate:c}=e,{asciiWordBoundaries:u,avoidSubclass:d,supportedGNodes:f,wordIsAscii:p}=s;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${c?"Y":"y"}"`);if(l==="line_end")a(F(Ze({body:[ot({body:[Co("string_end")]}),ot({body:[wr(10)]})]}),t));else if(l==="line_start")a(F(Ce(T`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(l==="search_start")if(f.has(e))o.flags.sticky=!0,i();else{const h=r[n-1];if(h&&Ug(h))a(F(Ze({negate:!0}),t));else{if(d)throw new Error(T`Uses "\G" in a way that requires a subclass`);a(Ne(Co("string_start"),t)),s.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")a(F(Ce(T`(?=\n?\z)`),t));else if(l==="word_boundary"){if(!p&&!u){const h=`(?:(?<=${Ae})(?!${Ae})|(?<!${Ae})(?=${Ae}))`,g=`(?:(?<=${Ae})(?=${Ae})|(?<!${Ae})(?!${Ae}))`;a(F(Ce(c?g:h),t))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Ur(n)&&(n=zr(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!Ur(r)&&(r=zr(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=Rn({body:[e]});n(F(r,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:o,digitIsAscii:i,spaceIsAscii:a,wordIsAscii:s}){const{kind:l,negate:c,value:u}=e;if(i&&(l==="digit"||u==="digit")){n(Ne(ko("digit",{negate:c}),t));return}if(a&&(l==="space"||u==="space")){n(F(qr(Ce(Rg),c),t));return}if(s&&(l==="word"||u==="word")){n(Ne(ko("word",{negate:c}),t));return}if(l==="any")n(Ne(pt("Any"),t));else if(l==="digit")n(Ne(pt("Nd",{negate:c}),t));else if(l!=="dot")if(l==="text_segment"){if(r==="strict")throw new Error(T`Use of "\X" requires non-strict accuracy`);const d="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",f=T`\p{RI}{2}|${d}(?:\u200D${d})*`;n(F(Ce(T`(?>\r\n|${o?T`\p{RGI_Emoji}`:f}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l==="hex")n(Ne(pt("AHex",{negate:c}),t));else if(l==="newline")n(F(Ce(c?`[^
|
|
151
|
+
]`:`(?>\r
|
|
152
|
+
?|[
|
|
153
|
+
\v\f
\u2028\u2029])`),t));else if(l==="posix")if(!o&&(u==="graph"||u==="print")){if(r==="strict")throw new Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let d={graph:"!-~",print:" -~"}[u];c&&(d=`\0-${G(d.codePointAt(0)-1)}${G(d.codePointAt(2)+1)}-`),n(F(Ce(`[${d}]`),t))}else n(F(qr(Ce(Mg.get(u)),c),t));else if(l==="property")fi.has(Er(u))||(e.key="sc");else if(l==="space")n(Ne(pt("space",{negate:c}),t));else if(l==="word")n(F(qr(Ce(Ae),c),t));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:o,removeAllPrevSiblings:i,removeAllNextSiblings:a}){const{kind:s,flags:l}=e;if(s==="flags")if(!l.enable&&!l.disable)r();else{const c=ve({flags:l});c.body[0].body=a(),o(F(c,t),{traverse:!0})}else if(s==="keep"){const c=n.body[0],d=n.body.length===1&&Ic(c,{type:"Group"})&&c.body[0].body.length===1?c.body[0]:n;if(t.parent!==d||d.body.length>1)throw new Error(T`Uses "\K" in a way that's unsupported`);const f=Ze({behind:!0});f.body[0].body=i(),o(F(f,t))}else throw new Error(`Unexpected directive kind "${s}"`)},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(F(Ze({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=ve();t.body[0].body.push(e.body),e.body=F(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,o=!1;for(const i of e.body)if(i.body.length===1&&i.body[0].kind==="search_start")i.body.pop();else{const a=jc(i.body);a?(r=!0,Array.isArray(a)?n.push(...a):n.push(a)):o=!0}r&&!o&&n.forEach(i=>t.add(i))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t==="strict"&&n&&r)throw new Error(T`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Ur(n)&&(n=zr(n,t),e.ref=n)}},Fg={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:o}=e;r||n.set(e,[...t.get(o).map(({node:i})=>i)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:o,groupsByName:i,multiplexCapturesToLeftByRef:a,openRefs:s,reffedNodesByReferencer:l}){const c=o.get(e);if(c&&s.has(e.number)){const d=Ne(Ra(e.number),t);l.set(d,s.get(e.number)),n(d);return}s.set(e.number,e),a.set(e.number,[]),e.name&&rn(a,e.name,[]);const u=a.get(e.name??e.number);for(let d=0;d<u.length;d++){const f=u[d];if(c===f.node||c&&c===f.origin||e===f.origin){u.splice(d,1);break}}if(a.get(e.number).push({node:e,origin:c}),e.name&&a.get(e.name).push({node:e,origin:c}),e.name){const d=rn(i,e.name,new Map);let f=!1;if(c)f=!0;else for(const p of d.values())if(!p.hasDuplicateNameToRemove){f=!0;break}i.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:f})}},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=Gn(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){const{isRecursive:o,ref:i}=e;if(o){let u=t;for(;(u=u.parent)&&!(u.type==="CapturingGroup"&&(u.name===i||u.number===i)););r.reffedNodesByReferencer.set(e,u);return}const a=r.subroutineRefMap.get(i),s=i===0,l=s?Ra(0):Hc(a,r.groupOriginByCopy,null);let c=l;if(!s){const u=Wc(Gg(a,f=>f.type==="Group"&&!!f.flags)),d=u?Gn(r.globalFlags,u):r.globalFlags;Hg(d,r.currentFlags)||(c=ve({flags:jg(d)}),c.body[0].body.push(l))}n(F(c,t),{traverse:!s})}},Bg={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}const i=r.reffedNodesByReferencer.get(e).filter(a=>Wg(a,e));if(!i.length)n(F(Ze({negate:!0}),t));else if(i.length>1){const a=ve({atomic:!0,body:i.reverse().map(s=>ot({body:[xo(s.number)]}))});n(F(a,t))}else e.ref=i[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 o=Rc();e.body.at(-1).body.push(o)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function Bc(e){qt(e,{"*"({node:t,parent:n}){t.parent=n}})}function Hg(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function Wg(e,t){let n=t;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===e)return!1;const r=Gc(n.parent);for(const o of r){if(o===n)break;if(o===e||zc(o,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function Hc(e,t,n,r){const o=Array.isArray(e)?[]:{};for(const[i,a]of Object.entries(e))i==="parent"?o.parent=Array.isArray(n)?r:n:a&&typeof a=="object"?o[i]=Hc(a,t,o,n):(i==="type"&&a==="CapturingGroup"&&t.set(o,t.get(e)??e),o[i]=a);return o}function Ra(e){const t=Pc(e);return t.isRecursive=!0,t}function Gg(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function zr(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 Wc(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(o=>{var i,a;(i=r.enable)!=null&&i[o]&&(delete n.disable[o],n.enable[o]=!0),(a=r.disable)!=null&&a[o]&&(n.disable[o]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function jg({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 Gc(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function jc(e){const t=e.find(n=>n.kind==="search_start"||qg(n,{negate:!1})||!zg(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 o=jc(r.body);if(!o)return null;Array.isArray(o)?n.push(...o):n.push(o)}return n}return null}function zc(e,t){const n=Gc(e)??[];for(const r of n)if(r===t||zc(r,t))return!0;return!1}function zg({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function Ug(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function qg(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&Ic(e.body[0],{type:"Assertion",kind:"search_start"})}function Ur(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Ce(e,t){const r=Lc(e,{...t,unicodePropertyMap:fi}).body;return r.length>1||r[0].body.length>1?ve({body:r}):r[0].body[0]}function qr(e,t){return e.negate=t,e}function Ne(e,t){return e.parent=t,e}function F(e,t){return Bc(e),e.parent=t,e}function Kg(e,t){const n=Vc(t),r=Lo(n.target,"ES2024"),o=Lo(n.target,"ES2025"),i=n.rules.recursionLimit;if(!Number.isInteger(i)||i<2||i>20)throw new Error("Invalid recursionLimit; use 2-20");let a=null,s=null;if(!o){const p=[e.flags.ignoreCase];qt(e,Xg,{getCurrentModI:()=>p.at(-1),popModI(){p.pop()},pushModI(h){p.push(h)},setHasCasedChar(){p.at(-1)?a=!0:s=!0}})}const l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||a)&&!s)};let c=e;const u={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:c,originMap:e._originMap,recursionLimit:i,useAppliedIgnoreCase:!!(!o&&a&&s),useFlagMods:o,useFlagV:r,verbose:n.verbose};function d(p){return u.lastNode=c,c=p,Ig(Yg[p.type],`Unexpected node type "${p.type}"`)(p,u,d)}const f={pattern:e.body.map(d).join("|"),flags:d(e.flags),options:{...e.options}};return r||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],u.captureMap.forEach((p,h)=>{p.hidden&&f._hiddenCaptures.push(h),p.transferTo&&rn(f._captureTransfers,p.transferTo,[]).push(h)}),f}var Xg={"*":{enter({node:e},t){if(Pa(e)){const n=t.getCurrentModI();t.pushModI(e.flags?Gn({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){Pa(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){pi(G(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),Uc(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&Fc.has(e.value)&&t.setHasCasedChar()}},Yg={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?T`\B`:T`\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:o,number:i}=e,a={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(a.hidden=!0,i>s.number&&(a.transferTo=s.number)),t.captureMap.set(i,a),`(${o?`?<${o}>`:""}${r.map(n).join("|")})`},Character({value:e},t){const n=G(e),r=dt(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&pi(n)){const o=$c(n);return t.inCharClass?o.join(""):o.length>1?`[${o.join("")}]`:o[0]}return n},CharacterClass(e,t,n){const{kind:r,negate:o,parent:i}=e;let{body:a}=e;if(r==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");_e.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&a.some(Da)&&(a=[wr(45),...a.filter(c=>!Da(c))]);const s=()=>`[${o?"^":""}${a.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||_e.bugNestedClassIgnoresNegation)&&!o){const u=a.filter(d=>d.type==="CharacterClass"&&d.kind==="union"&&d.negate);if(u.length){const d=ve(),f=d.body[0];return d.parent=i,f.parent=d,a=a.filter(p=>!u.includes(p)),e.body=a,a.length?(e.parent=f,f.body.push(e)):d.body.pop(),u.forEach(p=>{const h=ot({body:[p]});p.parent=h,h.parent=d,d.body.push(h)}),n(d)}}t.inCharClass=!0;const c=s();return t.inCharClass=!1,c}const l=a[0];if(r==="union"&&!o&&l&&((!t.useFlagV||!t.verbose)&&i.kind==="union"&&!(_e.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&i.kind==="intersection"&&a.length===1&&l.type!=="CharacterClassRange"))return a.map(n).join("");if(!t.useFlagV&&i.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return s()},CharacterClassRange(e,t){const n=e.min.value,r=e.max.value,o={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},i=dt(n,o),a=dt(r,o),s=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const l=Uc(e);tv(l).forEach(u=>{s.add(Array.isArray(u)?`${dt(u[0],o)}-${dt(u[1],o)}`:dt(u,o))})}return`${i}-${a}${[...s].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},o){if(e==="dot")return o.currentFlags.dotAll?o.appliedGlobalFlags.dotAll||o.useFlagMods?".":"[^]":T`[^\n]`;if(e==="digit")return t?T`\D`:T`\d`;if(e==="property"){if(o.useAppliedIgnoreCase&&o.currentFlags.ignoreCase&&Fc.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?T`\P`:T`\p`}{${r?`${r}=`:""}${n}}`}if(e==="word")return t?T`\W`:T`\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},o,i){const a=o.currentFlags;n&&(o.currentFlags=Gn(a,n));const s=t.map(i).join("|"),l=!o.verbose&&t.length===1&&r.type!=="Quantifier"&&!e&&(!o.useFlagMods||!n)?s:`(?${nv(e,n,o.useFlagMods)}${s})`;return o.currentFlags=a,l},LookaroundAssertion({body:e,kind:t,negate:n},r,o){return`(?${`${t==="lookahead"?"":"<"}${n?"!":"="}`}${e.map(o).join("|")})`},Quantifier(e,t,n){return n(e.body)+rv(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})`:T`\g<${t}&R=${r}>`}},Zg=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),Qg=new Set(["-","\\","]","^","["]),Jg=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Ta=new Map([[9,T`\t`],[10,T`\n`],[11,T`\v`],[12,T`\f`],[13,T`\r`],[8232,T`\u2028`],[8233,T`\u2029`],[65279,T`\uFEFF`]]),ev=new RegExp("^\\p{Cased}$","u");function pi(e){return ev.test(e)}function Uc(e,t){const n=!!(t!=null&&t.firstOnly),r=e.min.value,o=e.max.value,i=[];if(r<65&&(o===65535||o>=131071)||r===65536&&o>=131071)return i;for(let a=r;a<=o;a++){const s=G(a);if(!pi(s))continue;const l=$c(s).filter(c=>{const u=c.codePointAt(0);return u<r||u>o});if(l.length&&(i.push(...l),n))break}return i}function dt(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(Ta.has(e))return Ta.get(e);if(e<32||e>126&&e<160||e>262143||t&&ov(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const o=n?r?Jg:Qg:Zg,i=G(e);return(o.has(i)?"\\":"")+i}function tv(e){const t=e.map(o=>o.codePointAt(0)).sort((o,i)=>o-i),n=[];let r=null;for(let o=0;o<t.length;o++)t[o+1]===t[o]+1?r??=t[o]:r===null?n.push(t[o]):(n.push([r,t[o]]),r=null);return n}function nv(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:o,disable:i}=t;r=(o!=null&&o.ignoreCase?"i":"")+(o!=null&&o.dotAll?"s":"")+(i?"-":"")+(i!=null&&i.ignoreCase?"i":"")+(i!=null&&i.dotAll?"s":"")}return`${r}:`}function rv({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 Pa({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function ov(e){return e>47&&e<58}function Da({type:e,value:t}){return e==="Character"&&t===45}var iv=class Ro extends RegExp{#t=new Map;#e=null;#r;#n=null;#o=null;rawOptions={};get source(){return this.#r||"(?:)"}constructor(t,n,r){const o=!!(r!=null&&r.lazyCompile);if(t instanceof RegExp){if(r)throw new Error("Cannot provide options when copying a regexp");const i=t;super(i,n),this.#r=i.source,i instanceof Ro&&(this.#t=i.#t,this.#n=i.#n,this.#o=i.#o,this.rawOptions=i.rawOptions)}else{const i={hiddenCaptures:[],strategy:null,transfers:[],...r};super(o?"":t,n),this.#r=t,this.#t=sv(i.hiddenCaptures,i.transfers),this.#o=i.strategy,this.rawOptions=r??{}}o||(this.#e=this)}exec(t){if(!this.#e){const{lazyCompile:o,...i}=this.rawOptions;this.#e=new Ro(this.#r,this.flags,i)}const n=this.global||this.sticky,r=this.lastIndex;if(this.#o==="clip_search"&&n&&r){this.lastIndex=0;const o=this.#i(t.slice(r));return o&&(av(o,r,t,this.hasIndices),this.lastIndex+=r),o}return this.#i(t)}#i(t){this.#e.lastIndex=this.lastIndex;const n=super.exec.call(this.#e,t);if(this.lastIndex=this.#e.lastIndex,!n||!this.#t.size)return n;const r=[...n];n.length=1;let o;this.hasIndices&&(o=[...n.indices],n.indices.length=1);const i=[0];for(let a=1;a<r.length;a++){const{hidden:s,transferTo:l}=this.#t.get(a)??{};if(s?i.push(null):(i.push(n.length),n.push(r[a]),this.hasIndices&&n.indices.push(o[a])),l&&r[a]!==void 0){const c=i[l];if(!c)throw new Error(`Invalid capture transfer to "${c}"`);if(n[c]=r[a],this.hasIndices&&(n.indices[c]=o[a]),n.groups){this.#n||(this.#n=lv(this.source));const u=this.#n.get(l);u&&(n.groups[u]=r[a],this.hasIndices&&(n.indices.groups[u]=o[a]))}}}return n}};function av(e,t,n,r){if(e.index+=t,e.input=n,r){const o=e.indices;for(let a=0;a<o.length;a++){const s=o[a];s&&(o[a]=[s[0]+t,s[1]+t])}const i=o.groups;i&&Object.keys(i).forEach(a=>{const s=i[a];s&&(i[a]=[s[0]+t,s[1]+t])})}}function sv(e,t){const n=new Map;for(const r of e)n.set(r,{hidden:!0});for(const[r,o]of t)for(const i of o)rn(n,i,{}).transferTo=r;return n}function lv(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r=0,o=0,i;for(;i=t.exec(e);){const{0:a,groups:{capture:s,name:l}}=i;a==="["?r++:r?a==="]"&&r--:s&&(o++,l&&n.set(o,l))}return n}function cv(e,t){const n=uv(e,t);return n.options?new iv(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function uv(e,t){const n=Vc(t),r=Lc(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:fi}),o=Vg(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=Kg(o,n),a=xg(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:"external"}),s=Ag(a.pattern),l=Sg(s.pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),c={pattern:l.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${i.flags}${i.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const u=l.hiddenCaptures.sort((h,g)=>h-g),d=Array.from(l.captureTransfers),f=o._strategy,p=c.pattern.length>=n.lazyCompileLength;(u.length||d.length||f||p)&&(c.options={...u.length&&{hiddenCaptures:u},...d.length&&{transfers:d},...f&&{strategy:f},...p&&{lazyCompile:p}})}return c}function dv(e,t){return cv(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function fv(e={}){const t={target:"auto",cache:new Map,...e};return t.regexConstructor||=n=>dv(n,{target:t.target}),{createScanner(n){return new Cm(n,t)},createString:km}}const pv=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>m(()=>import("./chunks/andromeeda-0825276e.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>m(()=>import("./chunks/aurora-x-902226c9.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>m(()=>import("./chunks/ayu-dark-360e23c9.js"),[]))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>m(()=>import("./chunks/ayu-light-06439344.js"),[]))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>m(()=>import("./chunks/ayu-mirage-329fbbc2.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>m(()=>import("./chunks/catppuccin-frappe-28e43d66.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>m(()=>import("./chunks/catppuccin-latte-9a48f275.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>m(()=>import("./chunks/catppuccin-macchiato-370cbee9.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>m(()=>import("./chunks/catppuccin-mocha-3ff2c663.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>m(()=>import("./chunks/dark-plus-dc5ab0c3.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>m(()=>import("./chunks/dracula-4dc0b5c6.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>m(()=>import("./chunks/dracula-soft-976eecd8.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>m(()=>import("./chunks/everforest-dark-fffc9ca4.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>m(()=>import("./chunks/everforest-light-89b50e8a.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>m(()=>import("./chunks/github-dark-ebeae7f8.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>m(()=>import("./chunks/github-dark-default-7e608625.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>m(()=>import("./chunks/github-dark-dimmed-f1b43f6e.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>m(()=>import("./chunks/github-dark-high-contrast-3b79c377.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>m(()=>import("./chunks/github-light-452dc73a.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>m(()=>import("./chunks/github-light-default-7230acd4.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>m(()=>import("./chunks/github-light-high-contrast-c3f5487a.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>m(()=>import("./chunks/gruvbox-dark-hard-8277b640.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>m(()=>import("./chunks/gruvbox-dark-medium-52b4753a.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>m(()=>import("./chunks/gruvbox-dark-soft-7671101a.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>m(()=>import("./chunks/gruvbox-light-hard-fa312006.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>m(()=>import("./chunks/gruvbox-light-medium-045d51a1.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>m(()=>import("./chunks/gruvbox-light-soft-6b2fe762.js"),[]))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>m(()=>import("./chunks/horizon-7d7536b3.js"),[]))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>m(()=>import("./chunks/horizon-bright-9aff3d34.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>m(()=>import("./chunks/houston-5b12bc73.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>m(()=>import("./chunks/kanagawa-dragon-e0ec9bb0.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>m(()=>import("./chunks/kanagawa-lotus-a07128e3.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>m(()=>import("./chunks/kanagawa-wave-bbea1b2a.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>m(()=>import("./chunks/laserwave-37deba33.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>m(()=>import("./chunks/light-plus-01a51dda.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>m(()=>import("./chunks/material-theme-f27c83fc.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>m(()=>import("./chunks/material-theme-darker-3c70e60a.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>m(()=>import("./chunks/material-theme-lighter-45f756d2.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>m(()=>import("./chunks/material-theme-ocean-49ae0eda.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>m(()=>import("./chunks/material-theme-palenight-9462bfb3.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>m(()=>import("./chunks/min-dark-d8ea3e44.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>m(()=>import("./chunks/min-light-22f7c862.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>m(()=>import("./chunks/monokai-c0c02d84.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>m(()=>import("./chunks/night-owl-18016e88.js"),[]))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>m(()=>import("./chunks/night-owl-light-41348ad0.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>m(()=>import("./chunks/nord-04fad416.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>m(()=>import("./chunks/one-dark-pro-98938862.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>m(()=>import("./chunks/one-light-ba2b76c3.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>m(()=>import("./chunks/plastic-b31717de.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>m(()=>import("./chunks/poimandres-a18fb2c7.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>m(()=>import("./chunks/red-16c11454.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>m(()=>import("./chunks/rose-pine-5223d410.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>m(()=>import("./chunks/rose-pine-dawn-93c2ae7c.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>m(()=>import("./chunks/rose-pine-moon-93ea4888.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>m(()=>import("./chunks/slack-dark-9dd03364.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>m(()=>import("./chunks/slack-ochin-0686fa31.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>m(()=>import("./chunks/snazzy-light-b4e48e52.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>m(()=>import("./chunks/solarized-dark-cd11f3c4.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>m(()=>import("./chunks/solarized-light-905a6aff.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>m(()=>import("./chunks/synthwave-84-cf9149df.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>m(()=>import("./chunks/tokyo-night-475297c5.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>m(()=>import("./chunks/vesper-e10e3a42.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>m(()=>import("./chunks/vitesse-black-2687ea8d.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>m(()=>import("./chunks/vitesse-dark-c5b03d09.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>m(()=>import("./chunks/vitesse-light-308f70b2.js"),[]))}],Oa=Object.fromEntries(pv.map(e=>[e.id,e.import]));function hv(e){if(Array.isArray(e))return e}function mv(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function To(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 qc(e,t){if(e){if(typeof e=="string")return To(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)?To(e,t):void 0}}function gv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
154
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kc(e,t){return hv(e)||mv(e,t)||qc(e,t)||gv()}var Kr={},$t={},Ma;function Xc(){if(Ma)return $t;Ma=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.bind=void 0;function e(t,n){var r=n.type,o=n.listener,i=n.options;return t.addEventListener(r,o,i),function(){t.removeEventListener(r,o,i)}}return $t.bind=e,$t}var qe={},Na;function vv(){if(Na)return qe;Na=1;var e=qe&&qe.__assign||function(){return e=Object.assign||function(i){for(var a,s=1,l=arguments.length;s<l;s++){a=arguments[s];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(i[c]=a[c])}return i},e.apply(this,arguments)};Object.defineProperty(qe,"__esModule",{value:!0}),qe.bindAll=void 0;var t=Xc();function n(i){if(!(typeof i>"u"))return typeof i=="boolean"?{capture:i}:i}function r(i,a){if(a==null)return i;var s=e(e({},i),{options:e(e({},n(a)),n(i.options))});return s}function o(i,a,s){var l=a.map(function(c){var u=r(c,s);return(0,t.bind)(i,u)});return function(){l.forEach(function(u){return u()})}}return qe.bindAll=o,qe}var Va;function yv(){return Va||(Va=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.bindAll=e.bind=void 0;var t=Xc();Object.defineProperty(e,"bind",{enumerable:!0,get:function(){return t.bind}});var n=vv();Object.defineProperty(e,"bindAll",{enumerable:!0,get:function(){return n.bindAll}})})(Kr)),Kr}var xt=yv(),Yc="data-pdnd-honey-pot";function Zc(e){return e instanceof Element&&e.hasAttribute(Yc)}function Qc(e){var t=document.elementsFromPoint(e.x,e.y),n=Kc(t,2),r=n[0],o=n[1];return r?Zc(r)?o??null:r:null}function on(e){"@babel/helpers - typeof";return on=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},on(e)}function _v(e,t){if(on(e)!="object"||!e)return e;var n;if(typeof Symbol<"u"&&(n=e[Symbol.toPrimitive])!==void 0){var r=n.call(e,t);if(on(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bv(e){var t=_v(e,"string");return on(t)=="symbol"?t:t+""}function Dt(e,t,n){return(t=bv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jc=2147483647,eu={inset:"unset",border:"none",padding:0,margin:0,overflow:"visible",color:"inherit",background:"transparent",width:"auto",height:"auto"};function ct(e){var t=null;return function(){if(!t){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=e.apply(this,o);t={result:a}}return t.result}}var vt=ct(function(){return typeof HTMLElement<"u"&&typeof HTMLElement.prototype.showPopover=="function"});function $a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Fa(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){Dt(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}var an=2,Ba=an/2;function wv(e){return{x:Math.floor(e.x),y:Math.floor(e.y)}}function Ev(e){return{x:e.x-Ba,y:e.y-Ba}}function Sv(e){return{x:Math.max(e.x,0),y:Math.max(e.y,0)}}function Av(e){return{x:Math.min(e.x,window.innerWidth-an),y:Math.min(e.y,window.innerHeight-an)}}function Ha(e){var t=e.client,n=Av(Sv(Ev(wv(t))));return DOMRect.fromRect({x:n.x,y:n.y,width:an,height:an})}function Wa(e){var t=e.clientRect;return{left:"".concat(t.left,"px"),top:"".concat(t.top,"px"),width:"".concat(t.width,"px"),height:"".concat(t.height,"px")}}function Cv(e){var t=e.client,n=e.clientRect;return t.x>=n.x&&t.x<=n.x+n.width&&t.y>=n.y&&t.y<=n.y+n.height}function xv(e){var t=e.initial,n=document.createElement("div");n.setAttribute(Yc,"true"),vt()&&n.setAttribute("popover","manual");var r=Ha({client:t});Object.assign(n.style,Fa(Fa({position:"fixed"},vt()?eu:{zIndex:Jc}),{},{backgroundColor:"transparent",padding:0,margin:0,boxSizing:"border-box",pointerEvents:"auto"},Wa({clientRect:r}))),document.body.appendChild(n),vt()&&n.showPopover();var o=xt.bind(window,{type:"pointermove",listener:function(a){var s={x:a.clientX,y:a.clientY};r=Ha({client:s}),Object.assign(n.style,Wa({clientRect:r}))},options:{capture:!0}});return function(a){var s=a.current;if(o(),Cv({client:s,clientRect:r})){n.remove();return}function l(){c(),n.remove()}var c=xt.bindAll(window,[{type:"pointerdown",listener:l},{type:"pointermove",listener:l},{type:"focusin",listener:l},{type:"focusout",listener:l},{type:"dragstart",listener:l},{type:"dragenter",listener:l},{type:"dragover",listener:l}],{capture:!0})}}function kv(){var e=null;function t(){return e=null,xt.bind(window,{type:"pointermove",listener:function(o){e={x:o.clientX,y:o.clientY}},options:{capture:!0}})}function n(){var r=null;return function(i){var a=i.eventName,s=i.payload;if(a==="onDragStart"){var l=s.location.initial.input,c=e??{x:l.clientX,y:l.clientY};r=xv({initial:c})}if(a==="onDrop"){var u,d=s.location.current.input;(u=r)===null||u===void 0||u({current:{x:d.clientX,y:d.clientY}}),r=null,e=null}}}return{bindEvents:t,getOnPostDispatch:n}}function Iv(e){if(Array.isArray(e))return To(e)}function Lv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Rv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
155
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tu(e){return Iv(e)||Lv(e)||qc(e)||Rv()}var Tv=ct(function(){return navigator.userAgent.includes("Firefox")}),Cr=ct(function(){var t=navigator,n=t.userAgent;return n.includes("AppleWebKit")&&!n.includes("Chrome")});function Pv(e){return"nodeName"in e}function Dv(e){return Pv(e)&&e.ownerDocument!==document}var Po={isLeavingWindow:Symbol("leaving"),isEnteringWindow:Symbol("entering")};(function(){if(typeof window>"u"||!Cr())return;function t(){return{enterCount:0,isOverWindow:!1}}var n=t();function r(){n=t()}xt.bindAll(window,[{type:"dragstart",listener:function(){n.enterCount=0,n.isOverWindow=!0}},{type:"drop",listener:r},{type:"dragend",listener:r},{type:"dragenter",listener:function(i){!n.isOverWindow&&n.enterCount===0&&(i[Po.isEnteringWindow]=!0),n.isOverWindow=!0,n.enterCount++}},{type:"dragleave",listener:function(i){n.enterCount--,n.isOverWindow&&n.enterCount===0&&(i[Po.isLeavingWindow]=!0,n.isOverWindow=!1)}}],{capture:!0})})();function Ov(e){var t=e.dragLeave;return Cr()?t.hasOwnProperty(Po.isLeavingWindow):!1}function Mv(e){var t=e.dragLeave,n=t.type,r=t.relatedTarget;return n!=="dragleave"?!1:Cr()?Ov({dragLeave:t}):r==null?!0:Tv()?Dv(r):r instanceof HTMLIFrameElement}function Nv(e){var t=e.onDragEnd;return[{type:"pointermove",listener:(function(){var n=0;return function(){if(n<20){n++;return}t()}})()},{type:"pointerdown",listener:t}]}function Kt(e){return{altKey:e.altKey,button:e.button,buttons:e.buttons,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY}}var Vv=function(t){var n=[],r=null,o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];n=s,!r&&(r=requestAnimationFrame(function(){r=null,t.apply(void 0,n)}))};return o.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},o},Xr=Vv(function(e){return e()}),wn=(function(){var e=null;function t(r){var o=requestAnimationFrame(function(){e=null,r()});e={frameId:o,fn:r}}function n(){e&&(cancelAnimationFrame(e.frameId),e.fn(),e=null)}return{schedule:t,flush:n}})();function $v(e){var t=e.source,n=e.initial,r=e.dispatchEvent,o={dropTargets:[]};function i(s){r(s),o={dropTargets:s.payload.location.current.dropTargets}}var a={start:function(l){var c=l.nativeSetDragImage,u={current:n,previous:o,initial:n};i({eventName:"onGenerateDragPreview",payload:{source:t,location:u,nativeSetDragImage:c}}),wn.schedule(function(){i({eventName:"onDragStart",payload:{source:t,location:u}})})},dragUpdate:function(l){var c=l.current;wn.flush(),Xr.cancel(),i({eventName:"onDropTargetChange",payload:{source:t,location:{initial:n,previous:o,current:c}}})},drag:function(l){var c=l.current;Xr(function(){wn.flush();var u={initial:n,previous:o,current:c};i({eventName:"onDrag",payload:{source:t,location:u}})})},drop:function(l){var c=l.current,u=l.updatedSourcePayload;wn.flush(),Xr.cancel(),i({eventName:"onDrop",payload:{source:u??t,location:{current:c,previous:o,initial:n}}})}};return a}var Do={isActive:!1};function nu(){return!Do.isActive}function Fv(e){return e.dataTransfer?e.dataTransfer.setDragImage.bind(e.dataTransfer):null}function Bv(e){var t=e.current,n=e.next;if(t.length!==n.length)return!0;for(var r=0;r<t.length;r++)if(t[r].element!==n[r].element)return!0;return!1}function Hv(e){var t=e.event,n=e.dragType,r=e.getDropTargetsOver,o=e.dispatchEvent;if(!nu())return;var i=Wv({event:t,dragType:n,getDropTargetsOver:r});Do.isActive=!0;var a={current:i};Yr({event:t,current:i.dropTargets});var s=$v({source:n.payload,dispatchEvent:o,initial:i});function l(p){var h=Bv({current:a.current.dropTargets,next:p.dropTargets});a.current=p,h&&s.dragUpdate({current:a.current})}function c(p){var h=Kt(p),g=Zc(p.target)?Qc({x:h.clientX,y:h.clientY}):p.target,v=r({target:g,input:h,source:n.payload,current:a.current.dropTargets});v.length&&(p.preventDefault(),Yr({event:p,current:v})),l({dropTargets:v,input:h})}function u(){a.current.dropTargets.length&&l({dropTargets:[],input:a.current.input}),s.drop({current:a.current,updatedSourcePayload:null}),d()}function d(){Do.isActive=!1,f()}var f=xt.bindAll(window,[{type:"dragover",listener:function(h){c(h),s.drag({current:a.current})}},{type:"dragenter",listener:c},{type:"dragleave",listener:function(h){Mv({dragLeave:h})&&(l({input:a.current.input,dropTargets:[]}),n.startedFrom==="external"&&u())}},{type:"drop",listener:function(h){if(a.current={dropTargets:a.current.dropTargets,input:Kt(h)},!a.current.dropTargets.length){u();return}h.preventDefault(),Yr({event:h,current:a.current.dropTargets}),s.drop({current:a.current,updatedSourcePayload:n.type==="external"?n.getDropPayload(h):null}),d()}},{type:"dragend",listener:function(h){a.current={dropTargets:a.current.dropTargets,input:Kt(h)},u()}}].concat(tu(Nv({onDragEnd:u}))),{capture:!0});s.start({nativeSetDragImage:Fv(t)})}function Yr(e){var t,n=e.event,r=e.current,o=(t=r[0])===null||t===void 0?void 0:t.dropEffect;o!=null&&n.dataTransfer&&(n.dataTransfer.dropEffect=o)}function Wv(e){var t=e.event,n=e.dragType,r=e.getDropTargetsOver,o=Kt(t);if(n.startedFrom==="external")return{input:o,dropTargets:[]};var i=r({input:o,source:n.payload,target:t.target,current:[]});return{input:o,dropTargets:i}}var Ga={canStart:nu,start:Hv},Oo=new Map;function Gv(e){var t=e.typeKey,n=e.mount,r=Oo.get(t);if(r)return r.usageCount++,r;var o={typeKey:t,unmount:n(),usageCount:1};return Oo.set(t,o),o}function jv(e){var t=Gv(e);return function(){t.usageCount--,!(t.usageCount>0)&&(t.unmount(),Oo.delete(e.typeKey))}}function hi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){t.forEach(function(o){return o()})}}function ru(e,t){var n=t.attribute,r=t.value;return e.setAttribute(n,r),function(){return e.removeAttribute(n)}}function ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ja(Object(n),!0).forEach(function(r){Dt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ja(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zr(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=zv(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
156
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,i=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw i}}}}function zv(e,t){if(e){if(typeof e=="string")return za(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)?za(e,t):void 0}}function za(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 Qr(e){return e.slice(0).reverse()}function Uv(e){var t=e.typeKey,n=e.defaultDropEffect,r=new WeakMap,o="data-drop-target-for-".concat(t),i="[".concat(o,"]");function a(p){return r.set(p.element,p),function(){return r.delete(p.element)}}function s(p){var h=hi(ru(p.element,{attribute:o,value:"true"}),a(p));return ct(h)}function l(p){var h,g,v,b,_=p.source,w=p.target,E=p.input,S=p.result,C=S===void 0?[]:S;if(w==null)return C;if(!(w instanceof Element))return w instanceof Node?l({source:_,target:w.parentElement,input:E,result:C}):C;var k=w.closest(i);if(k==null)return C;var L=r.get(k);if(L==null)return C;var I={input:E,source:_,element:L.element};if(L.canDrop&&!L.canDrop(I))return l({source:_,target:L.element.parentElement,input:E,result:C});var P=(h=(g=L.getData)===null||g===void 0?void 0:g.call(L,I))!==null&&h!==void 0?h:{},$=(v=(b=L.getDropEffect)===null||b===void 0?void 0:b.call(L,I))!==null&&v!==void 0?v:n,D={data:P,element:L.element,dropEffect:$,isActiveDueToStickiness:!1};return l({source:_,target:L.element.parentElement,input:E,result:[].concat(tu(C),[D])})}function c(p){var h=p.eventName,g=p.payload,v=Zr(g.location.current.dropTargets),b;try{for(v.s();!(b=v.n()).done;){var _,w=b.value,E=r.get(w.element),S=De(De({},g),{},{self:w});E==null||(_=E[h])===null||_===void 0||_.call(E,S)}}catch(C){v.e(C)}finally{v.f()}}var u={onGenerateDragPreview:c,onDrag:c,onDragStart:c,onDrop:c,onDropTargetChange:function(h){var g=h.payload,v=new Set(g.location.current.dropTargets.map(function(K){return K.element})),b=new Set,_=Zr(g.location.previous.dropTargets),w;try{for(_.s();!(w=_.n()).done;){var E,S=w.value;b.add(S.element);var C=r.get(S.element),k=v.has(S.element),L=De(De({},g),{},{self:S});if(C==null||(E=C.onDropTargetChange)===null||E===void 0||E.call(C,L),!k){var I;C==null||(I=C.onDragLeave)===null||I===void 0||I.call(C,L)}}}catch(K){_.e(K)}finally{_.f()}var P=Zr(g.location.current.dropTargets),$;try{for(P.s();!($=P.n()).done;){var D,B,U=$.value;if(!b.has(U.element)){var H=De(De({},g),{},{self:U}),N=r.get(U.element);N==null||(D=N.onDropTargetChange)===null||D===void 0||D.call(N,H),N==null||(B=N.onDragEnter)===null||B===void 0||B.call(N,H)}}}catch(K){P.e(K)}finally{P.f()}}};function d(p){u[p.eventName](p)}function f(p){var h=p.source,g=p.target,v=p.input,b=p.current,_=l({source:h,target:g,input:v});if(_.length>=b.length)return _;for(var w=Qr(b),E=Qr(_),S=[],C=0;C<w.length;C++){var k,L=w[C],I=E[C];if(I!=null){S.push(I);continue}var P=S[C-1],$=w[C-1];if((P==null?void 0:P.element)!==($==null?void 0:$.element))break;var D=r.get(L.element);if(!D)break;var B={input:v,source:h,element:D.element};if(D.canDrop&&!D.canDrop(B)||!((k=D.getIsSticky)!==null&&k!==void 0&&k.call(D,B)))break;S.push(De(De({},L),{},{isActiveDueToStickiness:!0}))}return Qr(S)}return{dropTargetForConsumers:s,getIsOver:f,dispatchEvent:d}}function qv(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Kv(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
157
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,i=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw i}}}}function Kv(e,t){if(e){if(typeof e=="string")return Ua(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)?Ua(e,t):void 0}}function Ua(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 qa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Xv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qa(Object(n),!0).forEach(function(r){Dt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qa(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yv(){var e=new Set,t=null;function n(i){t&&(!i.canMonitor||i.canMonitor(t.canMonitorArgs))&&t.active.add(i)}function r(i){var a=Xv({},i);e.add(a),n(a);function s(){e.delete(a),t&&t.active.delete(a)}return ct(s)}function o(i){var a=i.eventName,s=i.payload;if(a==="onGenerateDragPreview"){t={canMonitorArgs:{initial:s.location.initial,source:s.source},active:new Set};var l=qv(e),c;try{for(l.s();!(c=l.n()).done;){var u=c.value;n(u)}}catch(v){l.e(v)}finally{l.f()}}if(t){for(var d=Array.from(t.active),f=0,p=d;f<p.length;f++){var h=p[f];if(t.active.has(h)){var g;(g=h[a])===null||g===void 0||g.call(h,s)}}a==="onDrop"&&(t.active.clear(),t=null)}}return{dispatchEvent:o,monitorForConsumers:r}}function Zv(e){var t=e.typeKey,n=e.mount,r=e.dispatchEventToSource,o=e.onPostDispatch,i=e.defaultDropEffect,a=Yv(),s=Uv({typeKey:t,defaultDropEffect:i});function l(d){r==null||r(d),s.dispatchEvent(d),a.dispatchEvent(d),o==null||o(d)}function c(d){var f=d.event,p=d.dragType;Ga.start({event:f,dragType:p,getDropTargetsOver:s.getIsOver,dispatchEvent:l})}function u(){function d(){var f={canStart:Ga.canStart,start:c};return n(f)}return jv({typeKey:t,mount:d})}return{registerUsage:u,dropTarget:s.dropTargetForConsumers,monitor:a.monitorForConsumers}}var Qv=ct(function(){return navigator.userAgent.toLocaleLowerCase().includes("android")}),Jv="pdnd:android-fallback",Ka="text/plain",ey="text/uri-list",ty="application/vnd.pdnd",jn=new WeakMap;function ny(e){return jn.set(e.element,e),function(){jn.delete(e.element)}}var Xa=kv(),mi=Zv({typeKey:"element",defaultDropEffect:"move",mount:function(t){return hi(Xa.bindEvents(),xt.bind(document,{type:"dragstart",listener:function(r){var o,i,a,s,l,c;if(t.canStart(r)&&!r.defaultPrevented&&r.dataTransfer){var u=r.target;if(u instanceof HTMLElement){var d=jn.get(u);if(d){var f=Kt(r),p={element:d.element,dragHandle:(o=d.dragHandle)!==null&&o!==void 0?o:null,input:f};if(d.canDrag&&!d.canDrag(p)){r.preventDefault();return}if(d.dragHandle){var h=Qc({x:f.clientX,y:f.clientY});if(!d.dragHandle.contains(h)){r.preventDefault();return}}var g=(i=(a=d.getInitialDataForExternal)===null||a===void 0?void 0:a.call(d,p))!==null&&i!==void 0?i:null;if(g)for(var v=0,b=Object.entries(g);v<b.length;v++){var _=Kc(b[v],2),w=_[0],E=_[1];r.dataTransfer.setData(w,E??"")}Qv()&&!r.dataTransfer.types.includes(Ka)&&!r.dataTransfer.types.includes(ey)&&r.dataTransfer.setData(Ka,Jv),r.dataTransfer.setData(ty,"");var S={element:d.element,dragHandle:(s=d.dragHandle)!==null&&s!==void 0?s:null,data:(l=(c=d.getInitialData)===null||c===void 0?void 0:c.call(d,p))!==null&&l!==void 0?l:{}},C={type:"element",payload:S,startedFrom:"internal"};t.start({event:r,dragType:C})}}}}}))},dispatchEventToSource:function(t){var n,r,o=t.eventName,i=t.payload;(n=jn.get(i.source.element))===null||n===void 0||(r=n[o])===null||r===void 0||r.call(n,i)},onPostDispatch:Xa.getOnPostDispatch()}),ry=mi.dropTarget,oy=mi.monitor;function iy(e){var t=hi(mi.registerUsage(),ny(e),ru(e.element,{attribute:"draggable",value:"true"}));return ct(t)}function ay(e){var t=e.element,n=e.input;return function(o){var i=o.container,a=t.getBoundingClientRect(),s=i.getBoundingClientRect(),l=Math.min(n.clientX-a.x,s.width),c=Math.min(n.clientY-a.y,s.height);return{x:l,y:c}}}function Ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Za(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){Dt(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 sy(){return{x:0,y:0}}function ly(e){var t=e.render,n=e.nativeSetDragImage,r=e.getOffset,o=r===void 0?sy:r,i=document.createElement("div");vt()&&i.setAttribute("popover","manual"),Object.assign(i.style,Za(Za({position:"fixed"},vt()?eu:{zIndex:Jc}),{},{top:0,left:0,pointerEvents:"none"})),document.body.append(i),vt()&&i.showPopover();var a=t({container:i});queueMicrotask(function(){var c=o({container:i});if(Cr()){var u=i.getBoundingClientRect();if(u.width===0)return;i.style.left="-".concat(u.width-1e-4,"px")}n==null||n(i,c.x,c.y)});function s(){l(),a==null||a(),document.body.removeChild(i)}var l=oy({onDragStart:s,onDrop:s})}function Qa(e){var t;return(t=e[ou])!==null&&t!==void 0?t:null}var ou=Symbol("closestEdge");function Ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function es(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ja(Object(n),!0).forEach(function(r){Dt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ja(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var cy={top:function(t,n){return Math.abs(n.y-t.top)},right:function(t,n){return Math.abs(t.right-n.x)},bottom:function(t,n){return Math.abs(t.bottom-n.y)},left:function(t,n){return Math.abs(n.x-t.left)}};function ts(e,t){var n,r,o=t.element,i=t.input,a=t.allowedEdges,s={x:i.clientX,y:i.clientY},l=o.getBoundingClientRect(),c=a.map(function(d){return{edge:d,value:cy[d](l,s)}}),u=(n=(r=c.sort(function(d,f){return d.value-f.value})[0])===null||r===void 0?void 0:r.edge)!==null&&n!==void 0?n:null;return es(es({},e),{},Dt({},ou,u))}const He=Math.min,Ie=Math.max,zn=Math.round,En=Math.floor,Le=e=>({x:e,y:e}),uy={left:"right",right:"left",bottom:"top",top:"bottom"};function iu(e,t,n){return Ie(e,He(t,n))}function Ot(e,t){return typeof e=="function"?e(t):e}function it(e){return e.split("-")[0]}function Mt(e){return e.split("-")[1]}function au(e){return e==="x"?"y":"x"}function gi(e){return e==="y"?"height":"width"}function ke(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function vi(e){return au(ke(e))}function dy(e,t,n){n===void 0&&(n=!1);const r=Mt(e),o=vi(e),i=gi(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Un(a)),[a,Un(a)]}function fy(e){const t=Un(e);return[Mo(e),t,Mo(t)]}function Mo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ns=["left","right"],rs=["right","left"],py=["top","bottom"],hy=["bottom","top"];function my(e,t,n){switch(e){case"top":case"bottom":return n?t?rs:ns:t?ns:rs;case"left":case"right":return t?py:hy;default:return[]}}function gy(e,t,n,r){const o=Mt(e);let i=my(it(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(Mo)))),i}function Un(e){const t=it(e);return uy[t]+e.slice(t.length)}function vy(e){var t,n,r,o;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(r=e.bottom)!=null?r:0,left:(o=e.left)!=null?o:0}}function su(e){return typeof e!="number"?vy(e):{top:e,right:e,bottom:e,left:e}}function qn(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function os(e,t,n){let{reference:r,floating:o}=e;const i=ke(t),a=vi(t),s=gi(a),l=it(t),c=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}const h=Mt(t);return h&&(p[a]+=f*(h==="end"?1:-1)*(n&&c?-1:1)),p}async function yy(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Ot(t,e),h=su(p),v=s[f?d==="floating"?"reference":"floating":d],b=qn(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),_=d==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),E=await(i.isElement==null?void 0:i.isElement(w))&&await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1},S=qn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:_,offsetParent:w,strategy:l}):_);return{top:(b.top-S.top+h.top)/E.y,bottom:(S.bottom-b.bottom+h.bottom)/E.y,left:(b.left-S.left+h.left)/E.x,right:(S.right-b.right+h.right)/E.x}}const _y=50,by=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:yy},l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=os(c,r,l),f=r,p=0;const h={};for(let g=0;g<i.length;g++){const v=i[g];if(!v)continue;const{name:b,fn:_}=v,{x:w,y:E,data:S,reset:C}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});u=w??u,d=E??d,h[b]={...h[b],...S},C&&p<_y&&(p++,typeof C=="object"&&(C.placement&&(f=C.placement),C.rects&&(c=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:u,y:d}=os(c,f,l)),g=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}},wy=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Ot(e,t)||{};if(c==null)return{};const d=su(u),f={x:n,y:r},p=vi(o),h=gi(p),g=await a.getDimensions(c),v=p==="y",b=v?"top":"left",_=v?"bottom":"right",w=v?"clientHeight":"clientWidth",E=i.reference[h]+i.reference[p]-f[p]-i.floating[h],S=f[p]-i.reference[p],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let k=C?C[w]:0;(!k||!await(a.isElement==null?void 0:a.isElement(C)))&&(k=s.floating[w]||i.floating[h]);const L=E/2-S/2,I=k/2-g[h]/2-1,P=He(d[b],I),$=He(d[_],I),D=k-g[h]-$,B=k/2-g[h]/2+L,U=iu(P,B,D),H=!l.arrow&&Mt(o)!=null&&B!==U&&i.reference[h]/2-(B<P?P:$)-g[h]/2<0,N=H?B<P?B-P:B-D:0;return{[p]:f[p]+N,data:{[p]:U,centerOffset:B-U-N,...H&&{alignmentOffset:N}},reset:H}}}),Ey=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...v}=Ot(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const b=it(o),_=ke(s),w=it(s)===s,E=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=f||(w||!g?[Un(s)]:fy(s)),C=h!=="none";!f&&C&&S.push(...gy(s,g,h,E));const k=[s,...S],L=await l.detectOverflow(t,v),I=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&I.push(L[b]),d){const U=dy(o,a,E);I.push(L[U[0]],L[U[1]])}if(P=[...P,{placement:o,overflows:I}],!I.every(U=>U<=0)){var $,D;const U=((($=i.flip)==null?void 0:$.index)||0)+1,H=k[U];if(H&&(!(d==="alignment"?_!==ke(H):!1)||P.every(ge=>ke(ge.placement)===_?ge.overflows[0]>0:!0)))return{data:{index:U,overflows:P},reset:{placement:H}};let N=(D=P.filter(K=>K.overflows[0]<=0).sort((K,ge)=>K.overflows[1]-ge.overflows[1])[0])==null?void 0:D.placement;if(!N)switch(p){case"bestFit":{var B;const K=(B=P.filter(ge=>{if(C){const Pe=ke(ge.placement);return Pe===_||Pe==="y"}return!0}).map(ge=>[ge.placement,ge.overflows.filter(Pe=>Pe>0).reduce((Pe,kd)=>Pe+kd,0)]).sort((ge,Pe)=>ge[1]-Pe[1])[0])==null?void 0:B[0];K&&(N=K);break}case"initialPlacement":N=s;break}if(o!==N)return{reset:{placement:N}}}return{}}}},Sy=new Set(["left","top"]);async function Ay(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=it(n),s=Mt(n),l=ke(n)==="y",c=Sy.has(a)?-1:1,u=i&&l?-1:1,d=Ot(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof h=="number"&&(p=s==="end"?h*-1:h),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const Cy=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await Ay(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},xy=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:_=>{let{x:w,y:E}=_;return{x:w,y:E}}},...c}=Ot(e,t),u={x:n,y:r},d=await i.detectOverflow(t,c),f=ke(o),p=au(f);let h=u[p],g=u[f];const v=(_,w)=>iu(w+d[_==="y"?"top":"left"],w,w-d[_==="y"?"bottom":"right"]);a&&(h=v(p,h)),s&&(g=v(f,g));const b=l.fn({...t,[p]:h,[f]:g});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:a,[f]:s}}}}}},ky=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...s}=Ot(e,t),l=await o.detectOverflow(t,s),c=it(n),u=Mt(n),d=ke(n)==="y",{width:f,height:p}=r.floating;let h,g;c==="top"||c==="bottom"?(h=c,g=u===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(g=c,h=u==="end"?"top":"bottom");const v=p-l.top-l.bottom,b=f-l.left-l.right,_=He(p-l[h],v),w=He(f-l[g],b),E=t.middlewareData.shift,S=!E;let C=_,k=w;E!=null&&E.enabled.x&&(k=b),E!=null&&E.enabled.y&&(C=v),S&&!u&&(d?k=f-2*Ie(l.left,l.right):C=p-2*Ie(l.top,l.bottom)),await a({...t,availableWidth:k,availableHeight:C});const L=await o.getDimensions(i.floating);return f!==L.width||p!==L.height?{reset:{rects:!0}}:{}}}};function xr(){return typeof window<"u"}function Nt(e){return lu(e)?(e.nodeName||"").toLowerCase():"#document"}function oe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Te(e){var t;return(t=(lu(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lu(e){return xr()?e instanceof Node||e instanceof oe(e).Node:!1}function Ee(e){return xr()?e instanceof Element||e instanceof oe(e).Element:!1}function ze(e){return xr()?e instanceof HTMLElement||e instanceof oe(e).HTMLElement:!1}function is(e){return!xr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof oe(e).ShadowRoot}function kr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Se(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function Iy(e){return/^(table|td|th)$/.test(Nt(e))}function Ir(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Ly=/transform|translate|scale|rotate|perspective|filter/,Ry=/paint|layout|strict|content/,Ke=e=>!!e&&e!=="none";let Jr;function yi(e){const t=Ee(e)?Se(e):e;return Ke(t.transform)||Ke(t.translate)||Ke(t.scale)||Ke(t.rotate)||Ke(t.perspective)||!_i()&&(Ke(t.backdropFilter)||Ke(t.filter))||Ly.test(t.willChange||"")||Ry.test(t.contain||"")}function Ty(e){let t=at(e);for(;ze(t)&&!sn(t);){if(yi(t))return t;if(Ir(t))return null;t=at(t)}return null}function _i(){return Jr==null&&(Jr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Jr}function sn(e){return/^(html|body|#document)$/.test(Nt(e))}function Se(e){return oe(e).getComputedStyle(e)}function Lr(e){return Ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function at(e){if(Nt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||is(e)&&e.host||Te(e);return is(t)?t.host:t}function cu(e){const t=at(e);return sn(t)?(e.ownerDocument||e).body:ze(t)&&kr(t)?t:cu(t)}function ln(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=cu(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=oe(o);if(i){const s=No(a);return t.concat(a,a.visualViewport||[],kr(o)?o:[],s&&n?ln(s):[])}else return t.concat(o,ln(o,[],n))}function No(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function uu(e){const t=Se(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ze(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=zn(n)!==i||zn(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function bi(e){return Ee(e)?e:e.contextElement}function yt(e){const t=bi(e);if(!ze(t))return Le(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=uu(t);let a=(i?zn(n.width):n.width)/r,s=(i?zn(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Py=Le(0);function du(e){const t=oe(e);return!_i()||!t.visualViewport?Py:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Dy(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===oe(e)}function st(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=bi(e);let a=Le(1);t&&(r?Ee(r)&&(a=yt(r)):a=yt(e));const s=Dy(i,n,r)?du(i):Le(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i&&r){const f=oe(i),p=Ee(r)?oe(r):r;let h=f,g=No(h);for(;g&&p!==h;){const v=yt(g),b=g.getBoundingClientRect(),_=Se(g),w=b.left+(g.clientLeft+parseFloat(_.paddingLeft))*v.x,E=b.top+(g.clientTop+parseFloat(_.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=w,c+=E,h=oe(g),g=No(h)}}return qn({width:u,height:d,x:l,y:c})}function Rr(e,t){const n=Lr(e).scrollLeft;return t?t.left+n:st(Te(e)).left+n}function fu(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Rr(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Oy(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=Te(r),s=t?Ir(t.floating):!1;if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Le(1);const u=Le(0),d=ze(r);if((d||!i)&&((Nt(r)!=="body"||kr(a))&&(l=Lr(r)),d)){const p=st(r);c=yt(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const f=a&&!d&&!i?fu(a,l):Le(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function My(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Ny(e){const t=Lr(e),n=e.ownerDocument.body,r=Ie(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=Ie(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Rr(e);const a=-t.scrollTop;return Se(n).direction==="rtl"&&(i+=Ie(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:a}}const Vy=25;function $y(e,t,n){n===void 0&&(n="viewport");const r=n==="layoutViewport",o=oe(e),i=Te(e),a=o.visualViewport;let s=i.clientWidth,l=i.clientHeight,c=0,u=0;if(a){const f=!_i()||t==="fixed";r?f||(c=-a.offsetLeft,u=-a.offsetTop):(s=a.width,l=a.height,f&&(c=a.offsetLeft,u=a.offsetTop))}if(Rr(i)<=0){const f=i.ownerDocument,p=f.body,h=getComputedStyle(p),g=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,v=Math.abs(i.clientWidth-p.clientWidth-g),b=getComputedStyle(i).scrollbarGutter==="stable both-edges"?v/2:v;b<=Vy&&(s-=b)}return{width:s,height:l,x:c,y:u}}function Fy(e,t){const n=st(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=yt(e),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:a,height:s,x:l,y:c}}function as(e,t,n){let r;if(t==="viewport"||t==="layoutViewport")r=$y(e,n,t);else if(t==="document")r=Ny(Te(e));else if(Ee(t))r=Fy(t,n);else{const o=du(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return qn(r)}function By(e,t){const n=t.get(e);if(n)return n;let r=ln(e,[],!1).filter(s=>Ee(s)&&Nt(s)!=="body"),o=null;const i=Se(e).position==="fixed";let a=i?at(e):e;for(;Ee(a)&&!sn(a);){const s=Se(a),l=yi(a),c=o?o.position:i?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&s.position==="static")?r=r.filter(d=>d!==a):o=s,a=at(a)}return t.set(e,r),r}function Hy(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Ir(t)?[]:By(t,this._c):[].concat(n),r],s=as(t,a[0],o);let l=s.top,c=s.right,u=s.bottom,d=s.left;for(let f=1;f<a.length;f++){const p=as(t,a[f],o);l=Ie(p.top,l),c=He(p.right,c),u=He(p.bottom,u),d=Ie(p.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function Wy(e){const{width:t,height:n}=uu(e);return{width:t,height:n}}function Gy(e,t,n){const r=ze(t),o=Te(t),i=n==="fixed",a=st(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Le(0);if((r||!i)&&((Nt(t)!=="body"||kr(o))&&(s=Lr(t)),r)){const f=st(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}!r&&o&&(l.x=Rr(o));const c=o&&!r&&!i?fu(o,s):Le(0),u=a.left+s.scrollLeft-l.x-c.x,d=a.top+s.scrollTop-l.y-c.y;return{x:u,y:d,width:a.width,height:a.height}}function eo(e){return Se(e).position==="static"}function ss(e,t){if(!ze(e)||Se(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Te(e)===n&&(n=n.ownerDocument.body),n}function pu(e,t){const n=oe(e);if(Ir(e))return n;if(!ze(e)){let o=at(e);for(;o&&!sn(o);){if(Ee(o)&&!eo(o))return o;o=at(o)}return n}let r=ss(e,t);for(;r&&Iy(r)&&eo(r);)r=ss(r,t);return r&&sn(r)&&eo(r)&&!yi(r)?n:r||Ty(e)||n}const jy=async function(e){const t=this.getOffsetParent||pu,n=this.getDimensions,r=await n(e.floating);return{reference:Gy(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function zy(e){return Se(e).direction==="rtl"}const Uy={convertOffsetParentRelativeRectToViewportRelativeRect:Oy,getDocumentElement:Te,getClippingRect:Hy,getOffsetParent:pu,getElementRects:jy,getClientRects:My,getDimensions:Wy,getScale:yt,isElement:Ee,isRTL:zy};function hu(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qy(e,t,n){let r=null,o;const i=Te(e);function a(){var u;clearTimeout(o),(u=r)==null||u.disconnect(),r=null}function s(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),a();const f=e.getBoundingClientRect(),{left:p,top:h,width:g,height:v}=f;if(u||t(),!g||!v)return;const b=En(h),_=En(i.clientWidth-(p+g)),w=En(i.clientHeight-(h+v)),E=En(p),C={rootMargin:-b+"px "+-_+"px "+-w+"px "+-E+"px",threshold:Ie(0,He(1,d))||1};let k=!0;function L(I){const P=I[0].intersectionRatio;if(!hu(f,e.getBoundingClientRect()))return s();if(P!==d){if(!k)return s();P?s(!1,P):o=setTimeout(()=>{s(!1,1e-7)},1e3)}k=!1}try{r=new IntersectionObserver(L,{...C,root:i.ownerDocument})}catch{r=new IntersectionObserver(L,C)}r.observe(e)}const l=oe(e),c=()=>s(n);return l.addEventListener("resize",c),s(!0),()=>{l.removeEventListener("resize",c),a()}}function Ky(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=bi(e),u=o||i?[...c?ln(c):[],...t?ln(t):[]]:[];u.forEach(b=>{o&&b.addEventListener("scroll",n),i&&b.addEventListener("resize",n)});const d=c&&s?qy(c,n,i):null;let f=-1,p=null;a&&(p=new ResizeObserver(b=>{let[_]=b;_&&_.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),c&&!l&&p.observe(c),t&&p.observe(t));let h,g=l?st(e):null;l&&v();function v(){const b=st(e);g&&!hu(g,b)&&n(),g=b,h=requestAnimationFrame(v)}return n(),()=>{var b;u.forEach(_=>{o&&_.removeEventListener("scroll",n),i&&_.removeEventListener("resize",n)}),d==null||d(),(b=p)==null||b.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const Xy=Cy,Yy=xy,Zy=Ey,Qy=ky,Jy=wy,e_=(e,t,n)=>{const r=new Map,o=n??{},i={...Uy,...o.platform,_c:r};return by(e,t,{...o,platform:i})},ls={display:"flex",flexDirection:"column",position:"relative",width:"100%",boxSizing:"border-box",minWidth:"0px"};function cs(e,t){return t?t==="center"&&typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports(e,"safe center")?"safe center":t:""}function t_(e){const t=e.createElement("div");t.setAttribute("data-sw-embed","true");const n=e.createElement("div");n.setAttribute("data-sw-embed-stage","true"),n.style.display="none",n.style.flexDirection="column",n.style.flex="1",n.style.width="100%";const r=e.createElement("div");return r.setAttribute("data-sw-embed-status","true"),r.style.display="flex",r.style.flexDirection="column",r.style.flex="1",r.style.width="100%",t.append(n,r),{root:t,stageSlot:n,statusSlot:r}}function n_(e,t,n){const r=cs("align-items",n==null?void 0:n.alignItems),o=cs("justify-content",n==null?void 0:n.justifyContent),i=e.querySelector("[data-sw-host-root]");for(const a of[t,i])a&&(r?a.style.setProperty("align-items",r):a.style.removeProperty("align-items"),o?a.style.setProperty("justify-content",o):a.style.removeProperty("justify-content"))}function r_(e,t){const n=Object.keys(t).sort().map(r=>[r,t[r]]);return JSON.stringify([e,n])}const o_=3e4,Kn=new Map;let i_=0;function mu(e){return new Worker(e,{type:"module"})}function a_(e){const t=mu(e);return{endpoint:dr(t),onError(n){const r=i=>{var a;(a=i.preventDefault)===null||a===void 0||a.call(i),n(i.message||"Worker 模块加载或执行失败。")},o=()=>n("Worker 消息反序列化失败。");return t.addEventListener("error",r),t.addEventListener("messageerror",o),()=>{t.removeEventListener("error",r),t.removeEventListener("messageerror",o)}},terminate:()=>t.terminate()}}function Vo(e,t){if(!t.disposed){t.disposed=!0,t.idleTimer!==void 0&&(clearTimeout(t.idleTimer),t.idleTimer=void 0);for(const n of t.sessions.values())n.close();t.sessions.clear(),Kn.get(e)===t&&Kn.delete(e),t.worker.terminate()}}function s_(e,t){const n=Kn.get(e);if(n&&!n.disposed)return n.idleTimer!==void 0&&(clearTimeout(n.idleTimer),n.idleTimer=void 0),n;const r=mu(t),o={worker:r,sessions:new Map,errorListeners:new Set,idleTimer:void 0,disposed:!1},i=a=>{const s=[...o.errorListeners];Vo(e,o);for(const l of s)l(a)};return r.addEventListener("error",a=>{var s;(s=a.preventDefault)===null||s===void 0||s.call(a),i(a.message||"共享预览 Worker 模块加载或执行失败。")}),r.addEventListener("messageerror",()=>{i("共享预览 Worker 消息反序列化失败。")}),Kn.set(e,o),o}function l_(e,t){const n=t?`${e}::${t}`:e,r=s_(n,e),o=`embed-session-${++i_}`,i=new MessageChannel;i.port1.start(),r.sessions.set(o,i.port1);try{r.worker.postMessage({kind:"sw-embed-attach",sessionId:o,port:i.port2},[i.port2])}catch(s){throw i.port1.close(),r.sessions.delete(o),Vo(n,r),s}let a=!1;return{endpoint:dr(i.port1),onError(s){return r.errorListeners.add(s),()=>{r.errorListeners.delete(s)}},terminate(){a||(a=!0,i.port1.close(),r.sessions.delete(o),r.disposed||(r.worker.postMessage({kind:"sw-embed-detach",sessionId:o}),r.sessions.size===0&&r.idleTimer===void 0&&(r.idleTimer=setTimeout(()=>{r.sessions.size===0&&Vo(n,r)},o_))))}}}const c_=/^[a-zA-Z0-9_@.-]+$/;function u_(e){const t=new URL(e,"http://localhost/");return t.pathname.endsWith("/")||(t.pathname=`${t.pathname}/`),t.search="",t.hash="",t}function Oe(e){return{ok:!1,error:{kind:"url-validation",message:"仅允许加载同源部署路径下的 a/web/*.js 编译输出模块。",detail:e}}}function d_(e,t){if(typeof e!="string")return Oe("模块地址必须为非空字符串。");const n=e.trim();if(!n||n.includes("\\")||n.includes("\0")||n.startsWith("//"))return Oe(n||"(empty)");if(n.includes("?")||n.includes("#")||n.replace(/^[a-zA-Z][a-zA-Z0-9+.-]*:\/\/[^/]+/,"").split("/").some(a=>a==="."||a===".."))return Oe(n);let r,o;try{r=u_(t),o=new URL(n,r)}catch{return Oe(n)}if(o.protocol!=="http:"&&o.protocol!=="https:"||o.origin!==r.origin)return Oe(n);const i=`${r.pathname}a/web/`;return!o.pathname.startsWith(i)||!o.pathname.endsWith(".js")||o.pathname.slice(i.length).split("/").some(a=>!a||a==="."||a===".."||!c_.test(a))?Oe(n):{ok:!0,moduleUrl:o.href,baseUrl:r.href}}var Ft=class extends un("EmbedIdentityError"){};function f_(e,t){return O(function*(){const n=new URL(e),r=/\/a\/web\/primitives\/([^/]+)\//.exec(n.pathname);if(r)return r[1]!==t?yield*he(new Ft({message:"嵌入示例与当前宿主 Runtime 不一致。"})):void 0;n.pathname=n.pathname.replace(/\/example-\d+\.js$/,".json").replace(/\.js$/,".json");const o=yield*Wi({try:a=>fetch(n.href,{credentials:"same-origin",signal:a}),catch:a=>new Ft({message:a instanceof Error?a.message:String(a),cause:a})});if(!o.ok)return yield*he(new Ft({message:`无法读取嵌入产物身份:HTTP ${o.status}`}));const i=yield*Wi({try:()=>o.json(),catch:a=>new Ft({message:a instanceof Error?a.message:String(a),cause:a})});if(i.platform!=="web"||i.runtimeIdentity!==t)return yield*he(new Ft({message:"嵌入产物与当前宿主平台或 Runtime 不一致。"}))})}function wi(e,t){return y(y({mode:e},(t==null?void 0:t.locale)!==void 0?{locale:t.locale}:{}),(t==null?void 0:t.reducedMotion)!==void 0?{reducedMotion:t.reducedMotion}:{})}var _t=class extends un("EmbedSessionError"){};function Tr(e){return e instanceof Error?e.message||e.name:String(e)}function p_(e,t){return e.workerUrl?new URL(e.workerUrl,t).href:new URL("runtime/worker.js",t).href}function kt(e,t,n,r){e({status:"failed",error:{kind:t,message:n,detail:r}})}function h_(e,t,n,r){return ie(je({try:()=>e(t,{isolation:n,partitionKey:r}),catch:o=>new _t({kind:"load",message:"无法创建嵌入运行隔离线程。",detail:Tr(o),cause:o})}),o=>x(()=>{o.terminate()}))}function m_(e,t,n){const r=n.getHostContext(),o=wi(t.themeMode,r.config),i=r.env;return ei(e,{kind:"bootstrap",protocolVersion:ti,moduleUrl:t.moduleUrl,baseUrl:t.baseUrl,primitiveApiMajor:n.primitiveApiMajor,initialTheme:t.themeMode,initialConfig:o,initialEnv:i,runtimeIdentity:n.runtimeIdentity})}function g_(e,t,n,r,o,i){return gf(e).pipe(bl(wl(t.timeoutMs)),Al(a=>St(a)||r.closing||r.ready?Ge:(r.ready=!0,o().pipe(At(x(()=>kt(i,"timeout","嵌入产物启动超时。",t.moduleUrl)))))),Sl(n))}function v_(e,t,n,r,o,i,a,s){const l=n.getHostContext();return Jo({container:t,endpoint:e.endpoint,elements:[...n.elements.values()],hostConfig:wi(r.themeMode,l.config),hostEnv:l.env,applyDocumentTheme:!1,baseUrl:r.baseUrl,workerUrl:n.workerUrl,runtimeIdentity:n.runtimeIdentity,primitiveApiMajor:n.primitiveApiMajor,onReady(){i.closing||i.ready||(i.ready=!0,mf(o,Ge),s({status:"ready"}))},onRuntimeError(c){if(i.closing)return;i.ready=!0,a();const u=c.phase==="load"?"load":"runtime";kt(s,u,u==="load"?"嵌入产物模块加载失败。":"嵌入产物运行时异常。",c.message)}})}function y_(e,t,n,r){return ie(je({try:()=>e.onError(o=>{if(t.closing)return;const i=t.ready?"runtime":"load";t.ready=!0,n(),kt(r,i,i==="load"?"嵌入产物脚本加载失败。":"嵌入产物线程未捕获异常。",o)}),catch:o=>new _t({kind:"load",message:"嵌入舞台错误监听初始化失败。",detail:Tr(o),cause:o})}),o=>x(()=>o())).pipe(fr)}function gu(e,t,n,r,o,i,a,s,l){return O(function*(){var c;const u=r_(r.baseUrl,n.getHostContext().env),d=yield*h_(e,p_(n,r.baseUrl),(c=r.isolation)!==null&&c!==void 0?c:"shared",u),f=yield*df(d.endpoint,"host"),p=yield*ff(),h=yield*v_(d,t,n,r,p,i,s,l);yield*y_(d,i,s,l),yield*g_(p,r,o,i,a,l),yield*je({try:()=>{var g;return(g=r.onStageMounted)===null||g===void 0?void 0:g.call(r)},catch:g=>new _t({kind:"load",message:"嵌入舞台挂载失败。",detail:Tr(g),cause:g})}),i.closing||(i.host=h),yield*m_(f,r,n)}).pipe(Y(o))}function vu(e,t,n,r){if(pf(e)||t.closing)return n();const o=hf(e),i=o instanceof _t?o.kind:"load",a=o instanceof _t?o.message:"嵌入舞台初始化失败。",s=o instanceof _t?o.detail:Tr(o);return n().pipe(At(x(()=>kt(r,i,a,s))))}function yu(e,t,n){const r={closing:!1,ready:!1};let o;const i=()=>mr(()=>{r.closing=!0,r.host=void 0;const l=o;return o=void 0,l?$e(l,Fe):Ge}),a=()=>{n.runFork(i())};return{state:r,closeSession:i,closeSessionSync:a,withSessionScope:l=>O(function*(){const c=yield*Qo(n.nodeScope);if(r.closing){yield*$e(c,Fe);return}o=c,yield*l(c)}),session:{key:e,theme:t,get host(){return r.closing?void 0:r.host},cleanup:a}}}function __(e,t,n,r,o,i){const{state:a,closeSession:s,closeSessionSync:l,withSessionScope:c,session:u}=yu(o.sessionKey,o.themeMode,r);return r.runFork(c(d=>gu(e,t,n,o,d,a,s,l,i).pipe(_l(f=>vu(f,a,s,i))))),u}function b_(e,t,n,r,o,i,a,s,l){var c;const u=e.isolation==="dedicated"?"dedicated":"shared",d=String((c=e.sessionKey)!==null&&c!==void 0?c:""),{state:f,closeSession:p,closeSessionSync:h,withSessionScope:g,session:v}=yu(d,s,r),b=Date.now()+l;return r.runFork(g(_=>f_(a.moduleUrl,n.runtimeIdentity).pipe(bl(wl(l)),El({onFailure:w=>f.closing?p():p().pipe(At(x(()=>kt(i,"load","无法加载嵌入产物。",w.message)))),onSuccess:w=>f.closing||_.state._tag==="Closed"?Ge:Qt(w)?p().pipe(At(x(()=>kt(i,"timeout","嵌入产物身份检查超时。")))):gu(o,t,n,y(y({},a),{},{themeMode:v.theme,isolation:u,timeoutMs:Math.max(1,b-Date.now()),sessionKey:d}),_,f,p,h,i).pipe(_l(E=>vu(E,f,p,i)))}),Sl(_),fr))),v}const w_="250px 0px",E_=16,us=new WeakMap;function S_(e,t){var n,r,o,i;if(!((n=(r=e.defaultView)===null||r===void 0||(r=r.navigator)===null||r===void 0||(r=r.userAgent)===null||r===void 0?void 0:r.includes("HappyDOM"))!==null&&n!==void 0&&n))return!1;const a=String((o=(i=t.prototype)===null||i===void 0?void 0:i.observe)!==null&&o!==void 0?o:"").replace(/\/\/[^\n]*/g,"").replace(/\/\*[\s\S]*?\*\//g,"");return/\{\s*\}\s*$/.test(a)}function A_(e){var t;const n=us.get(e);if(n)return n;const r=(t=e.defaultView)===null||t===void 0?void 0:t.IntersectionObserver;if(typeof r!="function"||S_(e,r))return;const o=new WeakMap,i={observer:new r(a=>{for(const l of a){var s;(s=o.get(l.target))===null||s===void 0||s(l.isIntersecting)}},{rootMargin:w_}),listeners:o};return us.set(e,i),i}function C_(e,t){const n=e.ownerDocument,r=n?A_(n):void 0;return r?(r.listeners.set(e,t),r.observer.observe(e),()=>{r.listeners.delete(e),r.observer.unobserve(e)}):(t(!0),()=>{})}const ds=new WeakMap;function x_(e){const t=new Map,n=r=>{if(!(t.size<=e))for(const[o,i]of t){if(t.size<=e)break;o===r||i.isVisible()||(t.delete(o),i.evict())}};return{touch(r,o){t.has(r)&&t.delete(r),t.set(r,o),n(r)},remove(r){t.delete(r)}}}function k_(e){let t=ds.get(e);return t||(t=x_(E_),ds.set(e,t)),t}var I_=class extends un("EmbedWorkerUnavailableError"){};let L_=0;function R_(e,t){if(typeof Worker!="function")throw new I_({message:"当前运行环境不支持 Web Worker。"});return(t==null?void 0:t.isolation)!=="dedicated"&&typeof MessageChannel=="function"?l_(e,t==null?void 0:t.partitionKey):a_(e)}function T_(e,t,n,r,o,i,a){var s;const l=String((s=e.sessionKey)!==null&&s!==void 0?s:""),c=h=>i(h,l),u=d_(e.src,n.baseUrl);if(!u.ok){t.replaceChildren(),c({status:"failed",error:u.error});return}const d=e.theme==="dark"?"dark":"light",f=e.isolation==="dedicated"?"dedicated":"shared",p=typeof e.timeoutMs=="number"&&e.timeoutMs>0?e.timeoutMs:1e4;if(c({status:"loading"}),n.runtimeIdentity){const h=new URL(u.moduleUrl);return/\/a\/web\/primitives\//.test(h.pathname)||h.searchParams.set("runtime",n.runtimeIdentity),b_(e,t,n,r,o,c,y(y({},u),{},{moduleUrl:h.href,onStageMounted:a}),d,p)}return __(o,t,n,r,{moduleUrl:u.moduleUrl,baseUrl:u.baseUrl,themeMode:d,isolation:f,timeoutMs:p,sessionKey:l,onStageMounted:a},c)}function $o(e,t,n,r){const o=r==="ready";t.style.display=o?"flex":"none",n.style.display=o?"none":"flex",e.setAttribute("data-embed-status",r)}function P_(e,t){var n;const r=Symbol("sw-embed"),o=k_(t.env.document);let i=e,a=String((n=e.sessionKey)!==null&&n!==void 0?n:""),s=!1,l;const c={isVisible:()=>s,evict:()=>{if(!l)return;const f=l.key;l.cleanup(),l=void 0,t.stageSlot.replaceChildren(),t.emitState({status:"loading"},f)}},u=f=>{l==null||l.cleanup(),l=T_(f,t.stageSlot,t.env,t.runtime,t.workerFactory,t.emitState,t.syncAlignment),l&&o.touch(r,c)},d=C_(t.root,f=>{s=f,f&&(l?o.touch(r,c):u(i))});return{getSession:()=>l,getActiveKey:()=>a,update(f){var p;i=f;const h=String((p=f.sessionKey)!==null&&p!==void 0?p:""),g=f.theme==="dark"?"dark":"light";if(h!==a){a=h,s?u(f):(l==null||l.cleanup(),l=void 0,o.remove(r));return}l&&l.theme!==g&&(l.theme=g,l.host&&t.runtime.runFork(l.host.setHostContext({config:{mode:g}}))),typeof f.status=="string"&&$o(t.root,t.stageSlot,t.statusSlot,f.status)},dispose(){d(),o.remove(r),l==null||l.cleanup(),l=void 0}}}function D_(e,t){return O(function*(){var n,r;const o=yield*Yo,i=yield*ae,a=yield*ur,s=yield*ee(),l={nodeScope:o,runFork:s},{root:c,stageSlot:u,statusSlot:d}=t_(i.document),f=++L_;let p=e.style;const h=()=>n_(u,d,p);c.id=J(i,"embed",e.id,e.autoId,f),j(c,p,void 0,ls),h();const g={current:String((n=e.sessionKey)!==null&&n!==void 0?n:"")},v=(E,S)=>{S===g.current&&$o(c,u,d,E.status),s(a.dispatchEvent("onEmbedStateChange",y(y({},E),{},{sessionKey:S})))};$o(c,u,d,String((r=e.status)!==null&&r!==void 0?r:"loading"));const b=P_(e,{root:c,stageSlot:u,statusSlot:d,env:i,runtime:l,workerFactory:t,emitState:v,syncAlignment:h}),_=E=>{var S;g.current=String((S=E.sessionKey)!==null&&S!==void 0?S:""),b.update(E)},w=i.subscribeHostContext(E=>{const S=b.getSession();S!=null&&S.host&&s(S.host.setHostContext({config:wi(S.theme,E.config),env:E.env}))});return yield*ne(()=>x(()=>{w(),b.dispose()})),{element:c,childContainer:d,update(E){const S=E.style;c.id=J(i,"embed",E.id,E.autoId,f),j(c,S,p,ls),p=S,h(),_(E)}}})}function _u(e={}){var t;const n=(t=e.createWorker)!==null&&t!==void 0?t:R_;return{type:"sw-embed",onMount:r=>D_(r,n)}}const O_=[_u()];function bu(e,t){return e instanceof Error&&e.message?e.message:typeof e=="string"&&e.length>0?e:t}function M_(e){var t,n;const r=(t=e.defaultView)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.clipboard;if(typeof(r==null?void 0:r.writeText)=="function")return r;const o=(n=globalThis.navigator)===null||n===void 0?void 0:n.clipboard;if(typeof(o==null?void 0:o.writeText)=="function")return o}function N_(e,t,n){var r;if(typeof e.execCommand!="function")return{ok:!1,error:"Clipboard API is unavailable."};const o=(r=e.body)!==null&&r!==void 0?r:t,i=e.createElement("textarea");i.value=n,i.setAttribute("readonly",""),i.style.position="fixed",i.style.top="-9999px",i.style.left="-9999px",i.style.opacity="0",i.style.pointerEvents="none";const a=e.activeElement;try{var s,l,c;return o.appendChild(i),(s=i.focus)===null||s===void 0||s.call(i,{preventScroll:!0}),(l=i.select)===null||l===void 0||l.call(i),(c=i.setSelectionRange)===null||c===void 0||c.call(i,0,n.length),e.execCommand("copy")?{ok:!0}:{ok:!1,error:"Copy command failed."}}catch(d){return{ok:!1,error:bu(d,"Copy command failed.")}}finally{if(i.remove(),a!=null&&a.isConnected&&a!==e.activeElement){var u;(u=a.focus)===null||u===void 0||u.call(a,{preventScroll:!0})}}}async function V_(e,t){const n=M_(e.document);if(n)try{return await n.writeText(t),{ok:!0}}catch(r){return{ok:!1,error:bu(r,"Failed to write clipboard.")}}return N_(e.document,e.rootContainer,t)}const $_=[{type:"sw-clipboard",onAttach:O(function*(){const e=yield*ae;yield*(yield*be).registerCommand(Ld,t=>Rd(()=>V_(e,t.text)))})}],F_=new Set(["text","txt","plain","plaintext"]),B_={svg:"xml",env:"dotenv"};function H_(e){return e in Nl?e:B_[e]}function W_(e){var t;if(typeof e!="string")return;const n=e.trim().toLowerCase();if(n)return F_.has(n)?"text":(t=H_(n))!==null&&t!==void 0?t:"text"}function G_(e,t){const n=W_(e);return n||"text"}const Fo={light:"github-light",dark:"github-dark"};let bt,to;const fs=new Map;function j_(){return bt?Promise.resolve(bt):(to||(to=Sm({themes:[Oa[Fo.light],Oa[Fo.dark]],langs:[],engine:fv({forgiving:!0})}).then(e=>(bt=e,e))),to)}function z_(e,t){if(e.getLoadedLanguages().includes(t))return Promise.resolve();const n=fs.get(t);if(n)return n;const r=Nl[t];if(!r)return Promise.resolve();const o=e.loadLanguage(r).catch(()=>{});return fs.set(t,o),o}function wu(e){return e.endsWith(`\r
|
|
158
|
+
`)?e.slice(0,-2):e.endsWith(`
|
|
159
|
+
`)?e.slice(0,-1):e}function U_(e){return e.map(t=>t.map(n=>{var r,o;const i=(r=n.htmlStyle)===null||r===void 0?void 0:r.color,a=(o=n.htmlStyle)===null||o===void 0?void 0:o["--shiki-dark"];return y(y({content:n.content},i?{lightColor:i}:{}),a?{darkColor:a}:{})}))}function Eu(e,t,n){const r=wu(t),o=n!=="text"&&e.getLoadedLanguages().includes(n)?n:"text";return U_(e.codeToTokens(r,{lang:o,themes:Fo,defaultColor:"light"}).tokens)}function Su(e){return wu(e).split(/\r?\n/).map(t=>[{content:t}])}function q_(e,t){if(bt&&!(t!=="text"&&!bt.getLoadedLanguages().includes(t)))return Eu(bt,e,t)}async function K_(e,t){try{const n=await j_();return t!=="text"&&await z_(n,t),Eu(n,e,t)}catch{return Su(e)}}const X_=[{type:"sw-code-highlight",onAttach:O(function*(){const e=yield*be,t=yield*me,n=yield*ee(),r=new Map,o=(i,a,s)=>{r.get(i.token)===i.requestId&&n(t.emit(Qd,{token:i.token,requestId:i.requestId,language:a,lines:s}).pipe(te))};yield*e.registerCommand(Td,i=>x(()=>{r.set(i.token,i.requestId);const a=G_(i.language);if(a==="text"||i.value.length===0){o(i,"text",Su(i.value));return}const s=q_(i.value,a);if(s){o(i,a,s);return}K_(i.value,a).then(l=>{o(i,a,l)})})),yield*ne(()=>x(()=>{r.clear()}))})}];let Y_=0;const ps={display:"flex",flexDirection:"column",boxSizing:"border-box",color:"var(--sw-foreground)"};function hs(e){const t=e.mode==="light"||e.mode==="dark"?e.mode:void 0,n=e.tokens;return t?gl(t,n):Yd(n)}function ms(e,t){typeof t.mode=="string"?e.setAttribute("data-sw-theme",t.mode):e.removeAttribute("data-sw-theme"),typeof t.locale=="string"&&t.locale.length>0?e.setAttribute("lang",t.locale):e.removeAttribute("lang"),t.reducedMotion==="reduce"||t.reducedMotion==="no-preference"||t.reducedMotion==="system"?e.setAttribute("data-sw-reduced-motion",t.reducedMotion):e.removeAttribute("data-sw-reduced-motion")}const Z_=[{type:"sw-config-scope",mount(e,t){const n=t.document.createElement("div"),r=++Y_;let o=hs(e),i=e.style;return n.id=J(t,"config-scope",e.id,e.autoId,r),co(n,o),j(n,i,void 0,ps),ms(n,e),{element:n,update(a){const s=hs(a),l=a.style;n.id=J(t,"config-scope",a.id,a.autoId,r),co(n,s,o),j(n,l,i,ps),o=s,i=l,ms(n,a)}}}}];function Au(){return{registered:!1,disabled:!1,targetMounted:!1,requiresHandle:!1,handleMounted:!1,bound:!1,dragging:!1}}function Q_(e,t){return!t.disabled&&t.targetMounted&&(!t.requiresHandle||t.handleMounted)?e.bound&&t.sameDomBinding?{next:y(y({},e),{},{registered:!0,disabled:!1,targetMounted:!0,requiresHandle:t.requiresHandle,handleMounted:t.handleMounted,bound:!0}),action:"update"}:{next:{registered:!0,disabled:!1,targetMounted:!0,requiresHandle:t.requiresHandle,handleMounted:t.handleMounted,bound:!0,dragging:!1},action:"bind"}:{next:{registered:!0,disabled:t.disabled,targetMounted:t.targetMounted,requiresHandle:t.requiresHandle,handleMounted:t.handleMounted,bound:!1,dragging:!1},action:e.bound?"unbind":"none"}}function Cu(e,t){return e.registered&&e.bound&&!e.disabled&&!t&&!e.dragging}function J_(e,t){return Cu(e,t)?{next:y(y({},e),{},{dragging:!0}),started:!0}:{next:e,started:!1}}function eb(e){return e.dragging?{next:y(y({},e),{},{dragging:!1}),ended:!0}:{next:e,ended:!1}}function tb(){return Au()}const xu=Symbol.for("shwfed.dnd.dragMeta"),nb=Symbol.for("shwfed.dnd.dropMeta");function gs(e,t){var n;return(n=ce(e,t))!==null&&n!==void 0?n:void 0}function rb(e,t){for(const n of e){const r=n.data[nb];if(r&&r.hostContainer===t)return{dropped:!0,targetId:r.targetId,edge:r.edge}}return{dropped:!1}}const vs=["id","draggable","data-dragging","data-sw-draggable-target","data-drop-active","data-drop-over","data-drop-edge"];function ob(e,t){if(t.parentElement===e)return!0;const n=t.tagName;return n==="TD"||n==="TH"||t.hasAttribute("data-sw-view")}function ib(e){const t=e.querySelectorAll("*"),n=[];for(let r=0;r<t.length;r++){const o=t[r];if(!o||!ob(e,o))continue;const i=o.getBoundingClientRect();n.push({index:r,width:i.width,height:i.height})}return n}function ys(e,t,n,r){if(t>0){const o=`${t}px`;e.style.width=o,e.style.minWidth=o,e.style.maxWidth=o}n>0&&(e.style.height=`${n}px`),e.style.boxSizing="border-box",r&&(e.style.flexShrink="0")}function ab(e){for(const t of vs)e.removeAttribute(t);for(const t of e.querySelectorAll('[data-sw-droppable-indicator="true"]'))t.remove();for(const t of e.querySelectorAll("*"))for(const n of vs)t.removeAttribute(n)}function ku(e){e.setAttribute("data-sw-drag-preview","true"),e.style.backgroundColor||(e.style.backgroundColor="var(--sw-surface)"),e.style.boxShadow="var(--sw-shadow-md)",e.style.borderRadius||(e.style.borderRadius="var(--sw-radius-md)"),e.style.pointerEvents="none",e.style.margin="0px"}function sb(e,t,n){if(t.tagName!=="TR"){e.appendChild(t);return}const r=e.ownerDocument,o=r.createElement("table");o.style.borderCollapse="collapse",o.style.tableLayout="fixed",n>0&&(o.style.width=`${n}px`),ku(o);const i=r.createElement("tbody");i.appendChild(t),o.appendChild(i),e.appendChild(o)}function lb(e,t){const n=e.getBoundingClientRect(),r=ib(e),o=e.cloneNode(!0),i=o.querySelectorAll("*");ys(o,n.width,n.height,!1);for(const a of r){const s=i[a.index];s&&ys(s,a.width,a.height,!0)}return ab(o),ku(o),sb(t,o,n.width),()=>{t.replaceChildren()}}const cb=`
|
|
160
|
+
[data-sw-draggable-target="true"] {
|
|
161
|
+
-webkit-tap-highlight-color: transparent;
|
|
162
|
+
}
|
|
163
|
+
[data-sw-draggable-target="true"][data-dragging="true"] {
|
|
164
|
+
opacity: 0.45;
|
|
165
|
+
}
|
|
166
|
+
[data-sw-draggable-handle="true"] {
|
|
167
|
+
touch-action: none;
|
|
168
|
+
user-select: none;
|
|
169
|
+
}
|
|
170
|
+
@media (prefers-reduced-motion: reduce) {
|
|
171
|
+
[data-sw-draggable-target="true"] {
|
|
172
|
+
transition: none;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
`;function ub(e,t){var n,r;const o=(n=(r=e.document.defaultView)===null||r===void 0?void 0:r.MutationObserver)!==null&&n!==void 0?n:globalThis.MutationObserver;if(typeof o!="function")return()=>{};const i=new o(t),a={childList:!0,subtree:!0,attributes:!0,attributeFilter:["id","data-disabled"]};return i.observe(e.rootContainer,a),e.rootContainer.contains(e.overlayContainer)||i.observe(e.overlayContainer,a),()=>i.disconnect()}function db(e){const{binding:t,target:n,dragHandle:r,env:o,onStart:i,onEnd:a}=e;return{canDrag:()=>Cu(t.machine,(r==null?void 0:r.getAttribute("data-disabled"))==="true"),getInitialData:()=>{const s=t.config,l={sourceId:n.id,sourceType:s.type,sourceData:y({},s.data),hostContainer:o.rootContainer,draggableEl:n};return{[xu]:l}},onGenerateDragPreview:({nativeSetDragImage:s,location:l})=>{t.config.preview==="snapshot"&&ly({nativeSetDragImage:s,getOffset:ay({element:n,input:l.initial.input}),render:({container:c})=>lb(n,c)})},onDragStart:()=>{const s=J_(t.machine,(r==null?void 0:r.getAttribute("data-disabled"))==="true");if(t.machine=s.next,!s.started)return;const l=t.config;n.setAttribute("data-dragging","true"),i({token:t.token,sourceId:n.id,sourceType:l.type,sourceData:y({},l.data)})},onDrop:({location:s})=>{const l=eb(t.machine);if(t.machine=l.next,n.removeAttribute("data-dragging"),!l.ended)return;const c=t.config,u=rb(s.current.dropTargets,o.rootContainer);a(y({token:t.token,sourceId:n.id,sourceType:c.type,sourceData:y({},c.data)},u))}}}function fb(e){const{binding:t,target:n,dragHandle:r}=e;n.setAttribute("data-sw-draggable-target","true"),n.setAttribute("data-drag-type",t.config.type),r==null||r.setAttribute("data-sw-draggable-handle","true");const o=iy(y({element:n,dragHandle:r},db(e)));return()=>{o(),n.removeAttribute("data-sw-draggable-target"),n.removeAttribute("data-drag-type"),n.removeAttribute("data-dragging"),r==null||r.removeAttribute("data-sw-draggable-handle")}}function Bo(e){var t;(t=e.cleanup)===null||t===void 0||t.call(e),e.cleanup=void 0,e.boundTarget=void 0,e.boundHandle=void 0}function _s(e,t,n,r){const{config:o}=t,i=o.disabled?void 0:gs(e,o.targetId),a=o.disabled||!o.handleId?void 0:gs(e,o.handleId),s=Q_(t.machine,{disabled:o.disabled,targetMounted:!!i,requiresHandle:!!o.handleId,handleMounted:!!a,sameDomBinding:!!(t.cleanup&&t.boundTarget===i&&t.boundHandle===a)});if(t.machine=s.next,s.action==="unbind"||s.action==="none"){Bo(t);return}if(s.action==="update"){i==null||i.setAttribute("data-drag-type",o.type);return}i&&(Bo(t),t.boundTarget=i,t.boundHandle=a,t.cleanup=fb({binding:t,target:i,dragHandle:a,env:e,onStart:n,onEnd:r}))}function pb(e,t,n){const r=new Map,i=ub(e,()=>{for(const c of r.values())_s(e,c,t,n)}),a=c=>{const u=r.get(c);u&&(Bo(u),u.machine=tb(),r.delete(c))};return{sync:c=>{let u=r.get(c.token);u?u.config=c:(u={token:c.token,config:c,machine:Au(),boundTarget:void 0,boundHandle:void 0,cleanup:void 0},r.set(c.token,u)),_s(e,u,t,n)},remove:a,dispose:()=>{i();for(const c of[...r.keys()])a(c)}}}const hb=[{type:"sw-draggable",styles:cb,onAttach:O(function*(){const e=yield*ae,t=yield*be,n=yield*me,r=yield*ee(),o=pb(e,i=>r(n.emit(ef,i).pipe(te)),i=>r(n.emit(Jd,i).pipe(te)));yield*t.registerCommand(Pd,i=>x(()=>o.sync(i))),yield*t.registerCommand(Dd,i=>x(()=>o.remove(i.token))),yield*ne(()=>x(()=>o.dispose()))})}];function Iu(){return{registered:!1,targetMounted:!1,bound:!1,disabled:!1,active:!1,edge:"none"}}function mb(e,t,n,r){return e.registered&&e.bound&&!e.disabled&&t&&n&&!r}function gb(e,t,n,r){if(!t)return{next:{registered:!0,targetMounted:!1,bound:!1,disabled:n,active:!1,edge:"none"},action:e.bound?"unbind":"none",emitLeave:!1};if(e.bound&&r){const o=n&&e.active;return{next:y(y({},e),{},{registered:!0,targetMounted:!0,disabled:n,active:o?!1:e.active,edge:o?"none":e.edge}),action:"keep",emitLeave:o}}return{next:{registered:!0,targetMounted:!0,bound:!0,disabled:n,active:!1,edge:"none"},action:"bind",emitLeave:!1}}function vb(e,t,n){return!e.bound||e.disabled||!t?{next:e,emitEnter:!1}:{next:y(y({},e),{},{active:!0,edge:n}),emitEnter:!0}}function yb(e,t,n){return!t||!e.bound||e.disabled?e.active?{next:y(y({},e),{},{active:!1,edge:"none"}),emitEnter:!1,emitLeave:!0}:{next:e,emitEnter:!1,emitLeave:!1}:e.active?{next:y(y({},e),{},{edge:n}),emitEnter:!1,emitLeave:!1}:{next:y(y({},e),{},{active:!0,edge:n}),emitEnter:!0,emitLeave:!1}}function Lu(e,t){return e.active?{next:y(y({},e),{},{active:!1,edge:"none"}),emitLeave:t}:{next:e,emitLeave:!1}}function _b(e,t){const n=e.bound&&!e.disabled&&t;return{next:y(y({},e),{},{active:!1,edge:"none"}),emitDrop:n}}function bb(){return Iu()}const Ru=Symbol.for("shwfed.dnd.dropMeta");function wb(e,t){var n;return(n=ce(e,t))!==null&&n!==void 0?n:void 0}function Eb(e,t){return e===void 0?!0:e.includes(t)}function Sb(e,t,n,r){if(n==="none")return"inside";const o=e.getBoundingClientRect(),i={altKey:!1,button:0,buttons:0,ctrlKey:!1,metaKey:!1,shiftKey:!1,pageX:t.clientX,pageY:t.clientY,clientX:t.clientX,clientY:t.clientY};if(n==="vertical"){if(o.height<=0)return"top";const s=(t.clientY-o.top)/o.height;return r?s<.25?"top":s>.75?"bottom":"inside":Qa(ts({},{element:e,input:i,allowedEdges:["top","bottom"]}))==="bottom"?"bottom":"top"}if(o.width<=0)return"left";const a=(t.clientX-o.left)/o.width;return r?a<.25?"left":a>.75?"right":"inside":Qa(ts({},{element:e,input:i,allowedEdges:["left","right"]}))==="right"?"right":"left"}function Qe(e,t){if(!t){e.removeAttribute("data-drop-over"),e.removeAttribute("data-drop-edge");return}e.setAttribute("data-drop-over","true"),e.setAttribute("data-drop-edge",t)}const Ab=`
|
|
176
|
+
[data-sw-droppable-target="true"][data-drop-over="true"][data-drop-edge="inside"] {
|
|
177
|
+
outline: 2px solid var(--sw-primary);
|
|
178
|
+
outline-offset: -2px;
|
|
179
|
+
}
|
|
180
|
+
`;function Tn(e){return e[xu]}function no(e){return e[Ru]}function ro(e,t,n,r){return{token:e,sourceId:n.sourceId,sourceType:n.sourceType,sourceData:y({},n.sourceData),targetId:t.id,edge:r.edge}}function Cb(e,t){var n,r;const o=(n=(r=e.document.defaultView)===null||r===void 0?void 0:r.MutationObserver)!==null&&n!==void 0?n:globalThis.MutationObserver;if(typeof o!="function")return()=>{};const i=new o(t),a={childList:!0,subtree:!0,attributes:!0,attributeFilter:["id"]};return i.observe(e.rootContainer,a),e.rootContainer.contains(e.overlayContainer)||i.observe(e.overlayContainer,a),()=>i.disconnect()}function xb(e,t,n,r){const o=Tn(r.data);return o?mb(n.machine,o.hostContainer===t.rootContainer,Eb(n.config.accept,o.sourceType),r.element.contains(e)||o.draggableEl.contains(e)):!1}function kb(e){const{binding:t,el:n,env:r,signals:o}=e;return{canDrop:({source:i})=>xb(n,r,t,i),getData({input:i}){const a=Sb(n,i,t.config.axis,t.config.allowInside);return{[Ru]:{targetId:n.id,edge:a,hostContainer:r.rootContainer}}},onDragEnter({source:i,self:a,location:s}){var l;const c=Tn(i.data),u=no(a.data);if(!c||!u)return;const d=vb(t.machine,((l=s.current.dropTargets[0])===null||l===void 0?void 0:l.element)===n,u.edge);t.machine=d.next,d.emitEnter&&(Qe(n,u.edge),o.onEnter(ro(t.token,n,c,u)))},onDrag({source:i,self:a,location:s}){var l,c;const u=Tn(i.data),d=no(a.data),f=((l=s.current.dropTargets[0])===null||l===void 0?void 0:l.element)===n,p=yb(t.machine,f&&!!(u&&d),(c=d==null?void 0:d.edge)!==null&&c!==void 0?c:"inside");if(t.machine=p.next,p.emitLeave){Qe(n,void 0),o.onLeave({token:t.token});return}!u||!d||!p.next.active||(Qe(n,d.edge),p.emitEnter&&o.onEnter(ro(t.token,n,u,d)))},onDragLeave(){const i=Lu(t.machine,!0);t.machine=i.next,i.emitLeave&&(Qe(n,void 0),o.onLeave({token:t.token}))},onDrop({source:i,self:a,location:s}){var l;const c=_b(t.machine,((l=s.current.dropTargets[0])===null||l===void 0?void 0:l.element)===n);if(t.machine=c.next,Qe(n,void 0),!c.emitDrop)return;const u=Tn(i.data),d=no(a.data);u&&d&&o.onDrop(ro(t.token,n,u,d))}}}function Ib(e){const{binding:t,el:n}=e;n.setAttribute("data-sw-droppable-target","true");const r=ry(y({element:n},kb(e)));return()=>{t.machine=Lu(t.machine,!1).next,r(),n.removeAttribute("data-sw-droppable-target"),Qe(n,void 0)}}function Ho(e){var t;(t=e.cleanup)===null||t===void 0||t.call(e),e.cleanup=void 0,e.boundTarget=void 0}function bs(e,t,n){const r=wb(e,t.config.targetId),o=gb(t.machine,!!r,t.config.disabled,!!(t.cleanup&&t.boundTarget===r));if(t.machine=o.next,o.action==="unbind"||o.action==="none"){Ho(t);return}if(o.action==="keep"){o.emitLeave&&r&&(Qe(r,void 0),n.onLeave({token:t.token}));return}r&&(Ho(t),t.boundTarget=r,t.cleanup=Ib({binding:t,el:r,env:e,signals:n}))}function Lb(e,t){const n=new Map,o=Cb(e,()=>{for(const l of n.values())bs(e,l,t)}),i=l=>{const c=n.get(l);c&&(Ho(c),c.machine=bb(),n.delete(l))};return{sync:l=>{let c=n.get(l.token);c?c.config=l:(c={token:l.token,config:l,machine:Iu(),boundTarget:void 0,cleanup:void 0},n.set(l.token,c)),bs(e,c,t)},remove:i,dispose:()=>{o();for(const l of[...n.keys()])i(l)}}}const Rb=[{type:"sw-droppable",styles:Ab,onAttach:O(function*(){const e=yield*ae,t=yield*be,n=yield*me,r=yield*ee(),o=Lb(e,{onEnter:i=>r(n.emit(rf,i).pipe(te)),onLeave:i=>r(n.emit(nf,i).pipe(te)),onDrop:i=>r(n.emit(tf,i).pipe(te))});yield*t.registerCommand(Od,i=>x(()=>o.sync(i))),yield*t.registerCommand(Md,i=>x(()=>o.remove(i.token))),yield*ne(()=>x(()=>o.dispose()))})}];function Tb(){return{phase:"idle",observedTarget:"none",constrainedSize:!1,activeRunId:0,hasPlacement:!1,lastSide:"bottom",lastAlign:"center",disposed:!1}}function Pb(e,t,n){if(t){const r=e.phase==="observing",o=e.constrainedSize;return{next:y(y({},e),{},{phase:"idle",observedTarget:"none",constrainedSize:!1,activeRunId:e.activeRunId+1,hasPlacement:!1}),shouldStopAutoUpdate:r,shouldClearFloatingStyles:!0,clearConstrainedSize:o,shouldClearMaxSize:!1}}return!n&&e.constrainedSize?{next:y(y({},e),{},{constrainedSize:!1}),shouldStopAutoUpdate:!1,shouldClearFloatingStyles:!1,clearConstrainedSize:!1,shouldClearMaxSize:!0}:{next:e,shouldStopAutoUpdate:!1,shouldClearFloatingStyles:!1,clearConstrainedSize:!1,shouldClearMaxSize:!1}}function Db(e,t,n,r){return e.disposed||!t||n==="none"?e.phase==="observing"?{next:y(y({},e),{},{phase:"idle",observedTarget:"none",activeRunId:e.activeRunId+1}),action:"stop"}:{next:e,action:"noop"}:e.phase!=="observing"||e.observedTarget!==n||n==="element"&&r?{next:y(y({},e),{},{phase:"observing",observedTarget:n,activeRunId:e.activeRunId+1}),action:"restart-auto-update"}:{next:e,action:"reposition"}}function Ob(e,t){if(e.disposed||e.phase!=="observing")return{next:e,runId:0,accepted:!1};const n=e.activeRunId+1;return{next:y(y({},e),{},{activeRunId:n,constrainedSize:t}),runId:n,accepted:!0}}function Mb(e,t,n,r){if(e.disposed||e.phase!=="observing"||t!==e.activeRunId)return{next:e,accepted:!1,placementChanged:!1};const o=!e.hasPlacement||e.lastSide!==n||e.lastAlign!==r;return{next:y(y({},e),{},{hasPlacement:!0,lastSide:n,lastAlign:r}),accepted:!0,placementChanged:o}}function Nb(e){const t=e.phase==="observing",n=e.constrainedSize;return{next:y(y({},e),{},{phase:"idle",observedTarget:"none",constrainedSize:!1,activeRunId:e.activeRunId+1,hasPlacement:!1,disposed:!0}),shouldStopAutoUpdate:t,clearConstrainedSize:n}}function Vb(e,t){return t==="center"?e:`${e}-${t}`}function $b(e){const[t,n]=e.split("-");return{side:t==="top"||t==="left"||t==="right"?t:"bottom",align:n==="start"||n==="end"?n:"center"}}function Fb(e,t){const n=t==="start"?"left":t==="end"?"right":"center",r=t==="start"?"top":t==="end"?"bottom":"center";return e==="top"?`bottom ${n}`:e==="bottom"?`top ${n}`:e==="left"?`${r} right`:`${r} left`}const Bb={top:"bottom",bottom:"top",left:"right",right:"left"};function Sn(e){return`${Math.max(0,Math.round(e*100)/100)}px`}function Xn(e,t){var n;return(n=ce(e,t))!==null&&n!==void 0?n:void 0}function Hb(e,t){return{contextElement:e,getBoundingClientRect(){var n;const r=(n=t())!==null&&n!==void 0?n:{x:0,y:0};return{width:0,height:0,x:r.x,y:r.y,top:r.y,left:r.x,right:r.x,bottom:r.y}}}}function Tu(e,t){e.removeAttribute("data-side"),e.removeAttribute("data-align"),e.style.removeProperty("position"),e.style.removeProperty("left"),e.style.removeProperty("top"),e.style.removeProperty("transform"),e.style.removeProperty("transform-origin"),e.style.removeProperty("--sw-floating-side"),e.style.removeProperty("--sw-floating-origin"),e.style.removeProperty("--sw-floating-available-width"),e.style.removeProperty("--sw-floating-available-height"),e.style.removeProperty("--sw-floating-anchor-width"),e.style.removeProperty("--sw-floating-anchor-height"),t&&(e.style.removeProperty("max-width"),e.style.removeProperty("max-height"))}function Pu(e){e.removeAttribute("data-side"),e.style.removeProperty("position"),e.style.removeProperty("left"),e.style.removeProperty("top"),e.style.removeProperty("right"),e.style.removeProperty("bottom")}function Wb(e){var t,n;const r=(t=(n=e.getBoundingClientRect)===null||n===void 0?void 0:n.call(e).width)!==null&&t!==void 0?t:0;return Number.isFinite(r)&&r>0?r:e.offsetWidth>0?e.offsetWidth:8}function Gb(e,t,n){const r=Wb(e);e.setAttribute("data-side",t),e.style.position="absolute",e.style.left="",e.style.top="",e.style.right="",e.style.bottom="",(n==null?void 0:n.x)!==void 0&&(e.style.left=`${Math.round(n.x)}px`),(n==null?void 0:n.y)!==void 0&&(e.style.top=`${Math.round(n.y)}px`),e.style[Bb[t]]=`${-r/2}px`}function jb(e,t,n,r){const o=[Xy(t.offset)];return t.flip&&o.push(Zy({padding:t.shiftPadding})),t.shift&&o.push(Yy({padding:t.shiftPadding})),o.push(Qy({padding:t.shiftPadding,apply({rects:i,availableWidth:a,availableHeight:s}){if(!r()||!e.isConnected)return;const l=Sn(a),c=Sn(s);e.style.setProperty("--sw-floating-available-width",l),e.style.setProperty("--sw-floating-available-height",c),e.style.setProperty("--sw-floating-anchor-width",Sn(i.reference.width)),e.style.setProperty("--sw-floating-anchor-height",Sn(i.reference.height)),t.constrainSize&&(e.style.maxWidth=l,e.style.maxHeight=c)}})),n&&o.push(Jy({element:n,padding:6})),o}function zb(e){const{reference:t,domAnchor:n,element:r,arrowEl:o,config:i,isCurrent:a,onPlacement:s}=e;r.style.position="fixed",r.style.left="0px",r.style.top="0px";const l=Vb(i.side,i.align);e_(t,r,{strategy:"fixed",placement:l,middleware:jb(r,i,o,a)}).then(c=>{if(!a()||!r.isConnected||n&&!n.isConnected)return;const u=$b(c.placement),d=Fb(u.side,u.align);r.setAttribute("data-side",u.side),r.setAttribute("data-align",u.align),r.style.transform=`translate3d(${Math.round(c.x)}px, ${Math.round(c.y)}px, 0px)`,r.style.transformOrigin=d,r.style.setProperty("--sw-floating-side",u.side),r.style.setProperty("--sw-floating-origin",d),o&&o.isConnected&&Gb(o,u.side,c.middlewareData.arrow),s(u)})}function Yn(e){var t;(t=e.stopAutoUpdate)===null||t===void 0||t.call(e),e.stopAutoUpdate=void 0,e.observedAnchor=void 0}function Ub(e){const t=Nb(e.machine);e.machine=t.next,(t.shouldStopAutoUpdate||e.stopAutoUpdate)&&Yn(e),e.floatingEl&&Tu(e.floatingEl,t.clearConstrainedSize),e.arrowEl&&Pu(e.arrowEl),e.floatingEl=void 0,e.arrowEl=void 0}function qb(e,t){var n,r;const o=(n=(r=e.document.defaultView)===null||r===void 0?void 0:r.MutationObserver)!==null&&n!==void 0?n:globalThis.MutationObserver;if(typeof o!="function")return()=>{};const i=new o(t),a={childList:!0,subtree:!0,attributes:!0,attributeFilter:["id"]};return i.observe(e.rootContainer,a),e.rootContainer.contains(e.overlayContainer)||i.observe(e.overlayContainer,a),()=>i.disconnect()}function Kb(e,t){const n=Xn(e,t.config.floatingId),r=Xn(e,t.config.arrowId),o=!!(t.floatingEl&&t.floatingEl!==n),i=Pb(t.machine,o,t.config.constrainSize);t.machine=i.next,i.shouldStopAutoUpdate&&Yn(t),i.shouldClearFloatingStyles&&t.floatingEl&&Tu(t.floatingEl,i.clearConstrainedSize),t.arrowEl&&t.arrowEl!==r&&Pu(t.arrowEl),i.shouldClearMaxSize&&n&&(n.style.removeProperty("max-width"),n.style.removeProperty("max-height")),t.floatingEl=n,t.arrowEl=r}function ws(e,t,n){const r=t.floatingEl;if(!r||!r.isConnected)return;const o=t.config.anchorPoint,i=o?void 0:Xn(e,t.config.anchorId);if(!o&&(!i||!i.isConnected))return;const a=Ob(t.machine,t.config.constrainSize);if(!a.accepted)return;t.machine=a.next;const s=a.runId;zb({reference:o?t.virtualAnchor:i,domAnchor:i,element:r,arrowEl:t.arrowEl,config:t.config,isCurrent:()=>r.isConnected&&s===t.machine.activeRunId,onPlacement:l=>{const c=Mb(t.machine,s,l.side,l.align);t.machine=c.next,c.accepted&&c.placementChanged&&n({token:t.token,side:l.side,align:l.align})}})}function Es(e,t,n){Kb(e,t);const r=t.floatingEl,o=t.config.anchorPoint,i=o?void 0:Xn(e,t.config.anchorId),a=o?"point":i?"element":"none",s=i!==t.observedAnchor||!t.stopAutoUpdate,l=Db(t.machine,!!(r!=null&&r.isConnected),a,s);if(t.machine=l.next,l.action==="stop"){Yn(t);return}if(l.action==="restart-auto-update"&&r){Yn(t),t.observedAnchor=i;const c=a==="point"?t.virtualAnchor:i;t.stopAutoUpdate=Ky(c,r,()=>ws(e,t,n));return}l.action==="reposition"&&ws(e,t,n)}function Xb(e,t){const n=new Map,o=qb(e,()=>{for(const l of n.values())Es(e,l,t)}),i=l=>{const c=n.get(l);c&&(Ub(c),n.delete(l))};return{sync:l=>{let c=n.get(l.token);if(c)c.config=l;else{const u={token:l.token,config:l,machine:Tb(),floatingEl:void 0,arrowEl:void 0,observedAnchor:void 0,stopAutoUpdate:void 0,virtualAnchor:Hb(e.overlayContainer,()=>u.config.anchorPoint)};c=u,n.set(l.token,c)}Es(e,c,t)},remove:i,dispose:()=>{o();for(const l of[...n.keys()])i(l)}}}const Yb=[{type:"sw-floating",onAttach:O(function*(){const e=yield*ae,t=yield*be,n=yield*me,r=yield*ee(),o=Xb(e,i=>{r(n.emit(of,i).pipe(te))});yield*t.registerCommand(Nd,i=>x(()=>o.sync(i))),yield*t.registerCommand(Vd,i=>x(()=>o.remove(i.token))),yield*ne(()=>x(()=>o.dispose()))})}],Zb=[];function Du(e,t="16px"){return typeof e=="number"&&Number.isFinite(e)&&e>0?`${e}px`:typeof e=="string"&&e.trim().length>0?e.trim():t}function Qb(e,t,n,r,o=!1){if(t.replaceChildren(),!vl(n)){t.setAttribute("data-icon-missing",typeof n=="string"?n:"");return}t.removeAttribute("data-icon-missing");const i=e.createElement("span");i.setAttribute("data-icon-resource",n.name),i.setAttribute("aria-hidden","true");const a=Du(r,"1em");i.style.display="block",i.style.flexShrink="0",i.style.width=n.width===n.height?a:`calc(${a} * ${n.width/n.height})`,i.style.height=a;const s=`url("${n.uri.replaceAll('"',"%22").replaceAll("'","%27").replaceAll("(","%28").replaceAll(")","%29")}")`;n.mode==="mask"?(i.style.setProperty("-webkit-mask-image",s),i.style.setProperty("-webkit-mask-repeat","no-repeat"),i.style.setProperty("-webkit-mask-position","center"),i.style.setProperty("-webkit-mask-size","contain"),i.style.maskImage=s,i.style.maskRepeat="no-repeat",i.style.maskPosition="center",i.style.maskSize="contain",i.style.backgroundColor="currentColor"):(i.style.backgroundImage=s,i.style.backgroundRepeat="no-repeat",i.style.backgroundPosition="center",i.style.backgroundSize="contain"),o&&(i.style.animation="sw-spin 0.9s linear infinite"),t.appendChild(i)}let Jb=0;function Ss(e,t,n,r,o){const i=t.style,a=Du(t.size);e.id=J(n,"icon",t.id,t.autoId,r),j(e,i,o,{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:a,height:a});const s=vl(t.name)?t.name.name:typeof t.name=="string"?t.name:"";return e.setAttribute("data-icon",s),Qb(n.document,e,t.name,t.size,!!t.spin),typeof t.ariaLabel=="string"&&t.ariaLabel.length>0?(e.setAttribute("role","img"),e.setAttribute("aria-label",t.ariaLabel),e.removeAttribute("aria-hidden")):(e.setAttribute("aria-hidden","true"),e.removeAttribute("role"),e.removeAttribute("aria-label")),i}const e0=[{type:"sw-icon",mount(e,t){const n=t.document.createElement("span"),r=++Jb;let o=Ss(n,e,t,r);return{element:n,update(i){o=Ss(n,i,t,r,o)}}}}];let t0=0;const n0=/[\u0000-\u001F\u007F]/,r0=/^[a-zA-Z][a-zA-Z0-9+.-]*:/,o0=/^https?:\/\//i,i0=/^blob:/i,a0=/^data:image\/[a-z0-9.+-]+[;,]/i,s0={display:"block",boxSizing:"border-box",borderTopWidth:"0px",borderRightWidth:"0px",borderBottomWidth:"0px",borderLeftWidth:"0px"};function Wo(e,t){return Array.isArray(e.__events)&&e.__events.includes(t)}function l0(e){if(typeof e!="string")return;const t=e.trim();if(!(!t||n0.test(t)||t.startsWith("//")))return r0.test(t)?o0.test(t)||i0.test(t)||a0.test(t)?t:void 0:t}function c0(e){switch(e){case"contain":case"cover":case"fill":case"none":case"scale-down":return e;default:return"cover"}}function As(e,t,n,r){typeof n=="string"&&r.includes(n)?e.setAttribute(t,n):e.removeAttribute(t)}function u0(e,t,n,r){if(t.hasSeenSrc&&r===t.lastRawSrc)return;t.hasSeenSrc=!0,t.lastRawSrc=r;const o=l0(r);if(t.safeSrc=o,!o){e.removeAttribute("src"),e.setAttribute("data-status","error"),Wo(t.props,"onError")&&n.dispatchEvent("onError");return}e.setAttribute("data-status","loading"),e.getAttribute("src")!==o&&e.setAttribute("src",o)}function Cs(e,t,n,r,o){const i=n.style;t.props=n,e.id=J(r,"image",n.id,n.autoId,o),j(e,i,t.style,s0),t.style=i,e.alt=typeof n.alt=="string"?n.alt:"",e.style.objectFit=c0(n.objectFit),As(e,"loading",n.loading,["eager","lazy"]),As(e,"decoding",n.decoding,["sync","async","auto"]),u0(e,t,r,n.src)}const d0=[{type:"sw-image",mount(e,t){const n=++t0,r=t.document.createElement("img");r.setAttribute("data-sw-image","true");const o={props:e,lastRawSrc:void 0,hasSeenSrc:!1};return r.addEventListener("load",()=>{o.safeSrc&&(r.setAttribute("data-status","loaded"),Wo(o.props,"onLoad")&&t.dispatchEvent("onLoad"))}),r.addEventListener("error",()=>{o.safeSrc&&(r.setAttribute("data-status","error"),Wo(o.props,"onError")&&t.dispatchEvent("onError"))}),Cs(r,o,e,t,n),{element:r,update(i){Cs(r,o,i,t,n)}}}}];function Ei(e,t){return e>=t?e:t}function Ou(e){return{isComposing:!1,lastEditSeq:0,ackedSeq:0,committedValue:e,lastDispatchedValue:e,hostValue:e}}function Si(e){return e.isComposing||e.ackedSeq<e.lastEditSeq?{state:e,shouldWriteHost:!1,nextHostValue:e.hostValue,shouldDispatchChange:!1,changeValue:""}:e.hostValue!==e.committedValue?{state:y(y({},e),{},{hostValue:e.committedValue,lastDispatchedValue:e.committedValue}),shouldWriteHost:!0,nextHostValue:e.committedValue,shouldDispatchChange:!1,changeValue:""}:{state:e,shouldWriteHost:!1,nextHostValue:e.hostValue,shouldDispatchChange:!1,changeValue:""}}function Mu(e){return{state:y(y({},e),{},{isComposing:!0}),shouldWriteHost:!1,nextHostValue:e.hostValue,shouldDispatchChange:!1,changeValue:""}}function Nu(e,t,n){const r=y(y({},e),{},{isComposing:!1,ackedSeq:Ei(e.ackedSeq,n),hostValue:t});return t!==e.lastDispatchedValue?{state:y(y({},r),{},{lastDispatchedValue:t}),shouldWriteHost:!1,nextHostValue:t,shouldDispatchChange:!0,changeValue:t}:Si(r)}function Vu(e,t,n){const r=y(y({},e),{},{hostValue:t});return e.isComposing||n||t===e.lastDispatchedValue?{state:r,shouldWriteHost:!1,nextHostValue:t,shouldDispatchChange:!1,changeValue:""}:{state:y(y({},r),{},{lastDispatchedValue:t}),shouldWriteHost:!1,nextHostValue:t,shouldDispatchChange:!0,changeValue:t}}function $u(e,t){return t<=e.lastEditSeq?e:y(y({},e),{},{lastEditSeq:t})}function Fu(e,t,n,r){return Si(y(y({},e),{},{committedValue:t,ackedSeq:Ei(e.ackedSeq,n),hostValue:r}))}function Bu(e,t,n){return Si(y(y({},e),{},{ackedSeq:Ei(e.ackedSeq,t),hostValue:n}))}const f0=`
|
|
181
|
+
[data-sw-input] {
|
|
182
|
+
width: 100%;
|
|
183
|
+
height: 2.25rem;
|
|
184
|
+
padding: 0.375rem 0.625rem;
|
|
185
|
+
border-radius: var(--sw-radius-md);
|
|
186
|
+
border: 1px solid var(--sw-border);
|
|
187
|
+
background-color: var(--sw-surface);
|
|
188
|
+
color: var(--sw-foreground);
|
|
189
|
+
box-shadow: var(--sw-shadow-sm);
|
|
190
|
+
font-size: 1rem;
|
|
191
|
+
line-height: 1.5rem;
|
|
192
|
+
}
|
|
193
|
+
[data-sw-input]:disabled {
|
|
194
|
+
color: var(--sw-disabled-foreground);
|
|
195
|
+
opacity: 0.6;
|
|
196
|
+
}
|
|
197
|
+
[data-sw-input]:focus {
|
|
198
|
+
border-color: var(--sw-border-focus);
|
|
199
|
+
}
|
|
200
|
+
[data-sw-input][data-mode="plain"] {
|
|
201
|
+
border-width: 0;
|
|
202
|
+
border-style: none;
|
|
203
|
+
border-radius: 0;
|
|
204
|
+
background-color: transparent;
|
|
205
|
+
box-shadow: none;
|
|
206
|
+
}
|
|
207
|
+
[data-sw-input]::placeholder {
|
|
208
|
+
color: var(--sw-muted-foreground);
|
|
209
|
+
}
|
|
210
|
+
`;function Hu(e,t,n,r){if(n==="focus"){e.disabled||e.focus();return}if(n==="blur"){e.blur();return}if(n==="select"){e.select();return}if(n==="setSelectionRange"){const{anchor:o,focus:i}=r&&typeof r=="object"?r:{};if(typeof o!="number"||typeof i!="number"||!Number.isFinite(o)||!Number.isFinite(i))return Promise.reject(new ue({method:n,message:`Invalid arguments for "setSelectionRange" on ${t}: expected finite numeric anchor and focus.`}));const a=Math.min(o,i),s=Math.max(o,i),l=o>i?"backward":"forward";e.setSelectionRange(a,s,l);return}return Promise.reject(new ue({method:n,message:`Unsupported method "${n}" on ${t}.`}))}let p0=0;function Xt(e,t,n,r){if(n.sync=r.state,r.shouldWriteHost&&(e.value=r.nextHostValue),r.shouldDispatchChange){const o=t.dispatchEvent("onChange",r.changeValue);St(o)&&(n.sync=$u(n.sync,o.value))}}function Ai(e,t){var n,r;return(n=(r=e.getAckSeq)===null||r===void 0?void 0:r.call(e))!==null&&n!==void 0?n:t.sync.lastEditSeq}function xs(e,t,n,r,o){const i=t.style;e.id=J(n,"input",t.id,t.autoId,o),e.type=typeof t.type=="string"?t.type:"text",e.placeholder=typeof t.placeholder=="string"?t.placeholder:"",e.disabled=!!t.disabled,e.readOnly=!!t.readOnly,e.setAttribute("data-sw-input","true"),e.setAttribute("data-mode",t.mode==="plain"?"plain":"default"),typeof t.ariaLabel=="string"&&t.ariaLabel.length>0?e.setAttribute("aria-label",t.ariaLabel):e.removeAttribute("aria-label");const a=typeof t.value=="string"?t.value:"";Xt(e,n,r,Fu(r.sync,a,Ai(n,r),e.value)),j(e,i,r.currentStyle),r.currentStyle=i}function h0(e,t,n){e.addEventListener("focus",()=>t.dispatchEvent("onFocus")),e.addEventListener("blur",()=>t.dispatchEvent("onBlur")),e.addEventListener("compositionstart",()=>{Xt(e,t,n,Mu(n.sync))}),e.addEventListener("compositionend",()=>{Xt(e,t,n,Nu(n.sync,e.value,Ai(t,n)))}),e.addEventListener("input",r=>{const o="isComposing"in r&&!!r.isComposing;Xt(e,t,n,Vu(n.sync,e.value,o))}),e.addEventListener("keydown",r=>{if(!(n.sync.isComposing||r.isComposing||r.keyCode===229)){if(r.key==="Escape"){e.blur();return}r.key==="Enter"&&t.dispatchEvent("onSubmit",e.value)}})}const m0=[{type:"sw-input",styles:f0,mount(e,t){const n=t.document.createElement("input"),r=++p0,o={sync:Ou(typeof e.value=="string"?e.value:"")};return xs(n,e,t,o,r),h0(n,t,o),{element:n,update(i){xs(n,i,t,o,r)},invoke(i,a){return Hu(n,"sw-input",i,a)},onAck(){const i=Bu(o.sync,Ai(t,o),n.value);Xt(n,t,o,i)}}}}];let g0=0;const Wu="button, input, select, textarea, a[href]",Gu='[role="button"], [role="checkbox"], [role="switch"], [role="slider"], [role="radio"], [data-sw-pressable]',v0=`${Wu}, ${Gu}, [contenteditable="true"], [contenteditable=""]`,y0=`
|
|
211
|
+
[data-sw-label] {
|
|
212
|
+
display: inline-flex;
|
|
213
|
+
align-items: center;
|
|
214
|
+
user-select: none;
|
|
215
|
+
}
|
|
216
|
+
`;function oo(e,t,n){const r=t;if(!r||typeof r.closest!="function")return null;const o=r.closest(n);return!o||o===e||!e.contains(o)?null:o}function ks(e,t,n,r,o){const i=t.style,a=!!t.disabled;return e.id=J(n,"label",t.id,t.autoId,r),typeof t.htmlFor=="string"&&t.htmlFor.length>0?e.setAttribute("for",t.htmlFor):e.removeAttribute("for"),a?e.setAttribute("data-disabled","true"):e.removeAttribute("data-disabled"),j(e,i,o),i}function _0(e,t){const n=r=>{r.defaultPrevented||r.detail<=1||oo(e,r.target,v0)||r.preventDefault()};e.addEventListener("mousedown",n),e.addEventListener("pointerdown",r=>n(r)),e.addEventListener("click",r=>{if(oo(e,r.target,Wu))return;const o=oo(e,r.target,Gu);if(t().disabled&&!o){r.preventDefault();return}o&&e.hasAttribute("for")&&r.preventDefault()})}const b0=[{type:"sw-label",styles:y0,mount(e,t){const n=t.document.createElement("label");n.setAttribute("data-sw-label","true");const r=++g0;let o=e,i=ks(n,e,t,r);return _0(n,()=>o),{element:n,childContainer:n,update(a){o=a,i=ks(n,a,t,r,i)}}}}],w0=/^--[a-zA-Z0-9_-]+$/,ht=e=>Math.round(e*100)/100;function Is(e){if(!(!e||!w0.test(e)||e.startsWith("--sw-")))return e}function E0(e){var t;const n=(t=e.getBoundingClientRect)===null||t===void 0?void 0:t.call(e),r=n&&Number.isFinite(n.width)&&n.width>0?n.width:e.offsetWidth,o=n&&Number.isFinite(n.height)&&n.height>0?n.height:e.offsetHeight;return{width:ht(r),height:ht(o)}}function Ls(e){if(!e||e==="none")return{x:1,y:1};const t=/scale\(([^,)]+)(?:,\s*([^)]+))?\)/.exec(e);if(t){const r=Number.parseFloat(t[1]),o=t[2]!==void 0?Number.parseFloat(t[2]):r;return{x:Number.isFinite(r)&&r>0?r:1,y:Number.isFinite(o)&&o>0?o:1}}const n=/matrix\(([^)]+)\)/.exec(e);if(n){const r=n[1].split(",").map(o=>Number.parseFloat(o.trim()));if(r.length>=4){const o=Math.hypot(r[0],r[1]),i=Math.hypot(r[2],r[3]);return{x:o>0?o:1,y:i>0?i:1}}}return{x:1,y:1}}function S0(e,t){let n=1,r=1,o=e;for(;o&&o!==t.parentElement;){if(o.hasAttribute("data-sw-canvas-stage")){const a=o.getBoundingClientRect();if(o.offsetWidth>0&&a.width>0){const l=a.width/o.offsetWidth,c=o.offsetHeight>0&&a.height>0?a.height/o.offsetHeight:l;return{x:n*l,y:r*c}}const s=Ls(o.style.transform);return{x:n*s.x,y:r*s.y}}const i=Ls(o.style.transform);if(n*=i.x,r*=i.y,o===t)break;o=o.parentElement}return{x:n,y:r}}function Zn(e,t){var n;return(n=ce(e,t))!==null&&n!==void 0?n:void 0}function A0(e,t,n){const r=n.x>0?n.x:1,o=n.y>0?n.y:1;return{left:ht((e.left-t.left)/r),top:ht((e.top-t.top)/o),width:ht(e.width/r),height:ht(e.height/o)}}function C0(e,t){if(!e)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of r){const i=e[o],a=t[o];if(!i||!a||i.left!==a.left||i.top!==a.top||i.width!==a.width||i.height!==a.height)return!1}return!0}function x0(e){if(!e||e.length===0)return[];const t=[];for(const i of e){var n,r,o;const a=i.sourceId.trim(),s=((n=i.targetId)===null||n===void 0?void 0:n.trim())||void 0,l=Is((r=i.widthVar)===null||r===void 0?void 0:r.trim()),c=Is((o=i.heightVar)===null||o===void 0?void 0:o.trim());a&&(l||c)&&t.push({sourceId:a,targetId:s,widthVar:l,heightVar:c})}return t}function Rs(e){for(const t of e)t.target.style.removeProperty(t.prop)}function k0(e,t,n){const r=[],o=[];for(const a of t){const s=Zn(e,a.sourceId),l=a.targetId?Zn(e,a.targetId):e.rootContainer;if(s&&o.push(s),!s||!l)continue;const{width:c,height:u}=E0(s);a.widthVar&&r.push({target:l,prop:a.widthVar,value:`${c}px`}),a.heightVar&&r.push({target:l,prop:a.heightVar,value:`${u}px`})}for(const a of n)r.some(s=>s.target===a.target&&s.prop===a.prop)||a.target.style.removeProperty(a.prop);const i=[];for(const a of r)a.target.style.getPropertyValue(a.prop)!==a.value&&a.target.style.setProperty(a.prop,a.value),i.push({target:a.target,prop:a.prop});return{applied:i,sources:o}}function I0(e,t){const n=e.defaultView,r=typeof(n==null?void 0:n.requestAnimationFrame)=="function"?n.requestAnimationFrame.bind(n):void 0,o=typeof(n==null?void 0:n.cancelAnimationFrame)=="function"?n.cancelAnimationFrame.bind(n):void 0;let i,a=!1;return{schedule(){if(r){if(i!==void 0)return;i=r(()=>{i=void 0,t()});return}a||(a=!0,queueMicrotask(()=>{a=!1,t()}))},cancel(){i!==void 0&&(o==null||o(i),i=void 0),a=!1}}}function L0(e,t){if(t.ids.length===0)return{rects:{},elements:[]};const n=t.containerId?Zn(e,t.containerId):e.rootContainer;if(!n)return{rects:{},elements:[]};const r=n.getBoundingClientRect(),o=S0(n,e.rootContainer),i={},a=[n];for(const s of t.ids){const l=Zn(e,s);l&&(a.push(l),i[s]=A0(l.getBoundingClientRect(),r,o))}return{rects:i,elements:a}}function Ts(e,t,n){if(!e)return n;for(const r of t)n.has(r)||e.unobserve(r);for(const r of n)t.has(r)||e.observe(r);return n}function ju(e,t){const n=new Set;for(const r of t.values()){const{applied:o,sources:i}=k0(e,r.vars,r.appliedVars);r.appliedVars=o;for(const a of i)n.add(a)}return n}function R0(e,t,n){const r=ju(e,t);for(const o of t.values()){if(o.ids.length===0)continue;const{rects:i,elements:a}=L0(e,o);for(const s of a)r.add(s);C0(o.lastRects,i)||(o.lastRects=i,n({token:o.token,rects:i}))}return r}function T0(e,t,n){var r,o;const i=e.document.defaultView,a=(r=i==null?void 0:i.ResizeObserver)!==null&&r!==void 0?r:globalThis.ResizeObserver,s=(o=i==null?void 0:i.MutationObserver)!==null&&o!==void 0?o:globalThis.MutationObserver,l=typeof a=="function"?new a(t):void 0,c=typeof s=="function"?new s(t):void 0;return c==null||c.observe(e.rootContainer,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","id","data-dragging"]}),e.rootContainer.addEventListener("scroll",n,{passive:!0,capture:!0}),i==null||i.addEventListener("resize",t),{resizeObserver:l,disconnect(){l==null||l.disconnect(),c==null||c.disconnect(),e.rootContainer.removeEventListener("scroll",n,!0),i==null||i.removeEventListener("resize",t)}}}function P0(e,t){const n=new Map;let r=new Set;const o=()=>{const d=R0(e,n,t);r=Ts(s.resizeObserver,r,d)},i=I0(e.document,o),a=()=>{const d=ju(e,n);[...n.values()].some(f=>f.ids.length>0)?i.schedule():r=Ts(s.resizeObserver,r,d)},s=T0(e,a,i.schedule),l=d=>{const f=n.get(d);f&&(Rs(f.appliedVars),n.delete(d),a())};return{sync:d=>{var f,p,h;const g=x0(d.vars),v=((f=d.ids)!==null&&f!==void 0?f:[]).map(_=>_.trim()).filter(_=>_.length>0);if(g.length===0&&v.length===0){l(d.token);return}const b=n.get(d.token);n.set(d.token,{token:d.token,vars:g,appliedVars:(p=b==null?void 0:b.appliedVars)!==null&&p!==void 0?p:[],containerId:((h=d.containerId)===null||h===void 0?void 0:h.trim())||void 0,ids:v,lastRects:v.length>0?b==null?void 0:b.lastRects:void 0}),o(),v.length>0&&i.schedule()},remove:l,dispose:()=>{i.cancel();for(const d of n.values())Rs(d.appliedVars);s.disconnect(),n.clear(),r.clear()}}}const D0=[{type:"sw-layout",onAttach:O(function*(){const e=yield*ae,t=yield*be,n=yield*me,r=yield*ee(),o=P0(e,i=>{r(n.emit(af,i).pipe(te))});yield*t.registerCommand($d,i=>x(()=>{o.sync(i)})),yield*t.registerCommand(Fd,i=>x(()=>{o.remove(i.token)})),yield*ne(()=>x(()=>{o.dispose()}))})}];function O0(e){const t=e.defaultView;if(typeof(t==null?void 0:t.matchMedia)=="function")return t.matchMedia.bind(t);if(typeof globalThis.matchMedia=="function")return globalThis.matchMedia.bind(globalThis)}function M0(e,t){const n=r=>{var o;t(!!((o=r==null?void 0:r.matches)!==null&&o!==void 0?o:e.matches))};return typeof e.addEventListener=="function"?(e.addEventListener("change",n),()=>e.removeEventListener("change",n)):typeof e.addListener=="function"?(e.addListener(n),()=>e.removeListener(n)):()=>{}}function N0(e,t){const n=new Map,r=new Map,o=(l,c,u)=>t({token:l,query:c,matches:u}),i=l=>{const c=r.get(l);if(c===void 0)return;r.delete(l);const u=n.get(c);u&&(u.tokens.delete(l),u.tokens.size===0&&(u.dispose(),n.delete(c)))};return{syncToken:(l,c)=>{const u=r.get(l);u!==void 0&&u!==c&&i(l);let d=n.get(c);if(!d){const f=O0(e.document);if(!f)return;const p=f(c),h=new Set,g={mql:p,matches:!!p.matches,tokens:h,dispose:M0(p,v=>{if(v!==g.matches){g.matches=v;for(const b of g.tokens)o(b,c,v)}})};n.set(c,g),d=g}d.matches=!!d.mql.matches,d.tokens.add(l),r.set(l,c),o(l,c,d.matches)},unsubscribeToken:i,disposeAll:()=>{for(const l of n.values())l.dispose();n.clear(),r.clear()}}}const V0=[{type:"sw-media-query",onAttach:O(function*(){const e=yield*ae,t=yield*be,n=yield*me,r=yield*ee(),o=N0(e,i=>{r(n.emit(vf,i).pipe(te))});yield*t.registerCommand(Bd,i=>x(()=>{const a=i.query.trim();if(!a){o.unsubscribeToken(i.token);return}o.syncToken(i.token,a)})),yield*t.registerCommand(Hd,i=>x(()=>{o.unsubscribeToken(i.token)})),yield*ne(()=>x(()=>{o.disposeAll()}))})}],$0=["x","y","scale","scaleX","scaleY","rotate","opacity"],F0=new Set(["x","y","scale","scaleX","scaleY","rotate"]);function Go(e){return e==="scale"||e==="scaleX"||e==="scaleY"||e==="opacity"?1:0}function zu(e=240,t=0){const n=Math.min(.8,Math.max(0,Number.isFinite(t)?t:0)),r=Math.max(.06,Math.min(4,(Number.isFinite(e)?e:240)/1e3)),o=1-n,i=2*Math.PI/r;return{stiffness:i*i,damping:2*o*i}}const B0=.1,H0=.004;function Gt(e,t,n,r,o,i,a){const s=Number.isFinite(i)&&i>0?Math.min(i,B0):0;if(s===0)return Math.abs(n-e)<=a&&Math.abs(t)<=a*10?{value:n,velocity:0,settled:!0}:{value:e,velocity:t,settled:!1};const l=Math.max(1,Math.ceil(s/H0)),c=s/l;let u=e,d=t;for(let f=0;f<l;f+=1){const p=-r*(u-n)-o*d;d+=p*c,u+=d*c}return Math.abs(n-u)<=a&&Math.abs(d)<=a*10?{value:n,velocity:0,settled:!0}:{value:u,velocity:d,settled:!1}}function Uu(e){const t=Math.min(1,Math.max(0,e));return t>=1?1:1-Math.pow(2,-10*t)}function W0(e,t){return $0.filter(n=>t[n]!==void 0||(e==null?void 0:e[n])!==void 0)}const io=new WeakMap;function G0(e,t){io.set(e,t);const n=e;return n.__MPIS_MOTION_CLOCK__=t,()=>{io.get(e)===t&&io.delete(e),n.__MPIS_MOTION_CLOCK__===t&&delete n.__MPIS_MOTION_CLOCK__}}function j0(e,t){const n=e.defaultView,r=typeof(n==null?void 0:n.requestAnimationFrame)=="function"?n.requestAnimationFrame.bind(n):void 0,o=typeof(n==null?void 0:n.cancelAnimationFrame)=="function"?n.cancelAnimationFrame.bind(n):void 0;let i="live",a,s,l=0;const c=()=>{a!==void 0&&(o==null||o(a),a=void 0),s!==void 0&&(clearTimeout(s),s=void 0),l=0},u=f=>{if(a=void 0,s=void 0,i!=="live")return;const p=l>0?Math.max(1,f-l):16;l=f,t(p)?d():l=0},d=()=>{if(!(i!=="live"||a!==void 0||s!==void 0)){if(r){a=r(u);return}s=setTimeout(()=>u(Date.now()),16)}};return{getMode:()=>i,setMode(f){i!==f&&(i=f,f==="manual"&&c())},step(f=16){return t(Math.max(1,Number.isFinite(f)?f:16))},schedule:d,stop:c}}function Ps(e,t){e.mode=t.mode,e.stiffness=t.stiffness,e.damping=t.damping,e.durationMs=t.durationMs,e.elapsedMs=0,e.runId=t.runId,e.values=y({},t.values),e.velocities=y({},t.velocities),e.startValues=y({},t.startValues),e.targets=y({},t.targets)}function z0(e,t,n,r,o=16){const i=e.snapshot;if(!i)return;const a=Math.max(1,Number.isFinite(o)?o:16),s=y(y({},e),{},{values:{},velocities:{},startValues:{},targets:{}});Ps(s,i);let l=!1;for(let f=0;f<600&&!l;f+=1)l=n(s,a);const c=Math.max(a,s.elapsedMs);Ps(e,i);const u=t===0?0:t===1?c:c*.5;let d=!1;for(;e.elapsedMs<u&&!d;){const f=Math.min(a,Math.max(1,u-e.elapsedMs));i.dtHistory.push(f),d=n(e,f)}return r(e),e.active=!d&&t<1,{token:e.token,targetId:e.targetId,runId:e.runId,mode:e.mode,fraction:t,elapsedMs:e.elapsedMs,settledDurationMs:c,settled:d,values:y({},e.values)}}const An=.25;function mt(e){return Math.round(e*100)/100}function Ds(e,t){return e?Math.abs(e.x-t.x)<An&&Math.abs(e.y-t.y)<An&&Math.abs(e.width-t.width)<An&&Math.abs(e.height-t.height)<An:!1}const Qn={x:0,y:0,width:0,height:0},Cn=.1,xn=.1,Ci={tag:"Hidden"};function tt(e){return Number.isFinite(e)?e:0}function Jn(e){return{x:tt(e.x),y:tt(e.y),width:Math.max(0,tt(e.width)),height:Math.max(0,tt(e.height))}}function qu(e){return e?{width:Math.max(0,tt(e.width)),height:Math.max(0,tt(e.height))}:void 0}function U0(e){return Math.abs(e.x)<Cn&&Math.abs(e.y)<Cn&&Math.abs(e.width)<Cn&&Math.abs(e.height)<Cn}function q0(){return Ci}function K0(e,t,n,r,o,i,a,s,l,c){if(t==="")return Ci;if(e.tag==="Hidden"||l)return{tag:"Settled",activeId:t,rect:n,containerSize:r};if(e.tag==="Settled")return c?{tag:"Settled",activeId:t,rect:n,containerSize:r}:{tag:"Animating",activeId:t,mode:o,durationMs:i,stiffness:a,damping:s,elapsedMs:0,startRect:e.rect,current:e.rect,velocity:Qn,target:n,containerSize:r};if(c)return{tag:"Settled",activeId:t,rect:n,containerSize:r};const u=o==="spring"?e.velocity:Qn;return{tag:"Animating",activeId:t,mode:o,durationMs:i,stiffness:a,damping:s,elapsedMs:0,startRect:e.current,current:e.current,velocity:u,target:n,containerSize:r}}function X0(e,t,n){return e.tag==="Hidden"?e:e.tag==="Settled"?y(y({},e),{},{rect:t,containerSize:n}):y(y({},e),{},{target:t,containerSize:n})}function ao(e,t,n,r,o){if(e.tag!=="Animating")return e;const i=e.elapsedMs+t,a=e.mode==="tween"?e.durationMs:e.durationMs*4>=1500?e.durationMs*4:1500;return o||i>=a?{tag:"Settled",activeId:e.activeId,rect:e.target,containerSize:e.containerSize}:y(y({},e),{},{elapsedMs:i,current:n,velocity:r})}function Y0(e,t){const n=Jn(t.targetRect),r=qu(t.containerSize),o=Math.max(0,tt(t.transition.durationMs)),i=t.reducedMotion||o<=0,a=zu(o,t.transition.bounce),s=e.tag==="Settled"?Ds(e.rect,n):e.tag==="Animating"?Ds(e.current,n)&&U0(e.velocity):!1;return K0(e,t.activeId,n,r,t.transition.mode,o,a.stiffness,a.damping,i,s)}function Z0(e,t){const n=Number.isFinite(t)&&t>0?Math.min(t,100):16,r=e.elapsedMs+n;if(e.mode==="tween"){const u=e.durationMs<=0?1:Math.min(1,r/e.durationMs);if(u>=1)return ao(e,n,e.target,Qn,!0);const d=Uu(u);return ao(e,n,Jn({x:e.startRect.x+(e.target.x-e.startRect.x)*d,y:e.startRect.y+(e.target.y-e.startRect.y)*d,width:e.startRect.width+(e.target.width-e.startRect.width)*d,height:e.startRect.height+(e.target.height-e.startRect.height)*d}),Qn,!1)}const o=Math.min(.05,Math.max(.001,n/1e3)),i=Gt(e.current.x,e.velocity.x,e.target.x,e.stiffness,e.damping,o,xn),a=Gt(e.current.y,e.velocity.y,e.target.y,e.stiffness,e.damping,o,xn),s=Gt(e.current.width,e.velocity.width,e.target.width,e.stiffness,e.damping,o,xn),l=Gt(e.current.height,e.velocity.height,e.target.height,e.stiffness,e.damping,o,xn),c=i.settled&&a.settled&&s.settled&&l.settled;return ao(e,n,Jn({x:i.value,y:a.value,width:s.value,height:l.value}),{x:i.velocity,y:a.velocity,width:s.velocity,height:l.velocity},c)}function jt(e,t){switch(t.tag){case"TargetMissing":case"NodeReplaced":return q0();case"Sync":return Y0(e,t);case"Remeasure":return X0(e,Jn(t.targetRect),qu(t.containerSize));case"Tick":return e.tag==="Animating"?Z0(e,t.dtMs):e}}function Q0(e,t){if(e.tag==="Hidden")return{visible:!1,rect:void 0,counterOffset:void 0,containerSize:void 0,needsTick:!1};const n=e.tag==="Settled"?e.rect:e.current,r=e.tag==="Animating";return t&&e.containerSize!==void 0?{visible:!0,rect:n,counterOffset:{x:-n.x,y:-n.y},containerSize:e.containerSize,needsTick:r}:{visible:!0,rect:n,counterOffset:void 0,containerSize:void 0,needsTick:r}}function J0(e){var t;const n=(t=e.getBoundingClientRect)===null||t===void 0?void 0:t.call(e);if(n&&(n.width>0||n.height>0)){const r=e.offsetWidth>0&&n.width>0?n.width/e.offsetWidth:1,o=e.offsetHeight>0&&n.height>0?n.height/e.offsetHeight:r;return{width:mt(Math.max(n.width/r,e.scrollWidth||0)),height:mt(Math.max(n.height/o,e.scrollHeight||0))}}return{width:Math.max(e.offsetWidth,e.scrollWidth),height:Math.max(e.offsetHeight,e.scrollHeight)}}function ew(e,t){var n,r;const o=(n=e.getBoundingClientRect)===null||n===void 0?void 0:n.call(e),i=(r=t.getBoundingClientRect)===null||r===void 0?void 0:r.call(t);if(o&&i&&(i.width>0||i.height>0)){const a=e.offsetWidth>0&&o.width>0?o.width/e.offsetWidth:1,s=e.offsetHeight>0&&o.height>0?o.height/e.offsetHeight:a;return{x:mt((i.left-o.left)/a-e.clientLeft+e.scrollLeft),y:mt((i.top-o.top)/s-e.clientTop+e.scrollTop),width:mt(i.width/a),height:mt(i.height/s)}}return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}function xi(e,t){var n,r,o,i,a,s;const l=(n=t.x)!==null&&n!==void 0?n:0,c=(r=t.y)!==null&&r!==void 0?r:0,u=(o=t.scale)!==null&&o!==void 0?o:1,d=((i=t.scaleX)!==null&&i!==void 0?i:1)*u,f=((a=t.scaleY)!==null&&a!==void 0?a:1)*u,p=(s=t.rotate)!==null&&s!==void 0?s:0;if(t.x!==void 0||t.y!==void 0||t.scale!==void 0||t.scaleX!==void 0||t.scaleY!==void 0||t.rotate!==void 0){const h=Math.round(l*100)/100,g=Math.round(c*100)/100,v=Math.round(d*1e3)/1e3,b=Math.round(f*1e3)/1e3,_=Math.round(p*100)/100;e.style.transform=`translate3d(${h}px, ${g}px, 0px) scale(${v}, ${b}) rotate(${_}deg)`}if(t.opacity!==void 0){const h=Math.min(1,Math.max(0,Math.round(t.opacity*1e3)/1e3));e.style.opacity=String(h)}}function Ku(e,t){var n,r,o;const i=(n=e.closest)===null||n===void 0||(n=n.call(e,"[data-sw-reduced-motion]"))===null||n===void 0?void 0:n.getAttribute("data-sw-reduced-motion");return i==="always"?!0:i==="never"?!1:!!(!((r=t.defaultView)===null||r===void 0||(o=r.matchMedia)===null||o===void 0)&&o.call(r,"(prefers-reduced-motion: reduce)").matches)}const tw=200;function Xu(e){e&&(e.style.removeProperty("transform"),e.style.removeProperty("transform-origin"),e.style.removeProperty("width"),e.style.removeProperty("height"),e.style.removeProperty("opacity"),e.style.removeProperty("transition"),e.style.removeProperty("pointer-events"),e.style.removeProperty("overflow"))}function Yu(e){e&&(e.style.removeProperty("transform"),e.style.removeProperty("width"),e.style.removeProperty("height"),e.style.removeProperty("transition"),e.style.removeProperty("pointer-events"))}function jo(e,t,n){const r=Q0(n,t!==null);return e.style.transition="none",!r.visible||!r.rect?(e.style.opacity="0",!1):(e.style.pointerEvents="none",e.style.transformOrigin="left top",e.style.width=`${r.rect.width}px`,e.style.height=`${r.rect.height}px`,e.style.transform=`translate3d(${r.rect.x}px, ${r.rect.y}px, 0)`,e.style.opacity="1",t&&r.counterOffset&&r.containerSize&&(e.style.overflow="hidden",t.style.pointerEvents="none",t.style.transition="none",t.style.width=`${r.containerSize.width}px`,t.style.height=`${r.containerSize.height}px`,t.style.transform=`translate3d(${r.counterOffset.x}px, ${r.counterOffset.y}px, 0)`),r.needsTick)}function Zu(e,t,n,r){e&&(t.observedContainer!==n&&(t.observedContainer&&e.unobserve(t.observedContainer),n&&e.observe(n),t.observedContainer=n),t.observedActive!==r&&(t.observedActive&&e.unobserve(t.observedActive),r&&e.observe(r),t.observedActive=r))}function Os(e,t,n,r,o){const i=ce(e,t.containerId),a=ce(e,t.indicatorId),s=t.activeId?ce(e,t.activeId):null,l=t.counterTargetId?ce(e,t.counterTargetId):null;if(t.appliedIndicator&&t.appliedIndicator!==a&&(Xu(t.appliedIndicator),t.state=jt(t.state,{tag:"NodeReplaced"})),t.appliedCounter&&t.appliedCounter!==l&&Yu(t.appliedCounter),t.appliedIndicator=a,t.appliedCounter=l,Zu(n,t,i,s),!i||!a)return;if(!s||!t.activeId){t.state=jt(t.state,{tag:"TargetMissing"}),jo(a,l,t.state);return}const c=ew(i,s),u=l?J0(i):void 0,d=Ku(i,e.document);r||t.state.tag==="Hidden"?t.state=jt(t.state,{tag:"Sync",activeId:t.activeId,targetRect:c,containerSize:u,transition:t.transition,reducedMotion:d}):t.state=jt(t.state,{tag:"Remeasure",targetRect:c,containerSize:u}),jo(a,l,t.state)&&o()}function nw(e){var t,n,r;const o=(t=e.transition)===null||t===void 0?void 0:t.durationMs,i=typeof o=="number"&&Number.isFinite(o)&&o>=0?o:tw;return{mode:((n=e.transition)===null||n===void 0?void 0:n.type)==="tween"?"tween":"spring",durationMs:i,bounce:typeof((r=e.transition)===null||r===void 0?void 0:r.bounce)=="number"&&Number.isFinite(e.transition.bounce)?e.transition.bounce:0}}function rw(e,t){let n=!1;for(const r of e.values())r.state.tag==="Animating"&&(r.state=jt(r.state,{tag:"Tick",dtMs:t}),r.appliedIndicator&&jo(r.appliedIndicator,r.appliedCounter,r.state)&&(n=!0));return n}function ow(e){let t=0;for(const n of e.values())n.state.tag==="Animating"&&(t+=1);return t}function iw(e,t=()=>{}){var n,r;const o=new Map,i=e.document.defaultView,a=(n=i==null?void 0:i.ResizeObserver)!==null&&n!==void 0?n:globalThis.ResizeObserver,s=(r=i==null?void 0:i.MutationObserver)!==null&&r!==void 0?r:globalThis.MutationObserver,l=()=>{for(const h of o.values())Os(e,h,c,!1,t)},c=typeof a=="function"?new a(l):void 0,u=typeof s=="function"?new s(l):void 0;u==null||u.observe(e.rootContainer,{childList:!0,subtree:!0});const d=h=>{var g;const v=h.layout;if(!v)return;const b=nw(h),_=(g=o.get(h.token))!==null&&g!==void 0?g:{containerId:v.containerId,indicatorId:h.targetId,activeId:v.activeId,counterTargetId:v.counterTargetId,transition:b,state:Ci,appliedIndicator:null,appliedCounter:null,observedContainer:null,observedActive:null};_.containerId=v.containerId,_.indicatorId=h.targetId,_.activeId=v.activeId,_.counterTargetId=v.counterTargetId,_.transition=b,o.set(h.token,_),Os(e,_,c,!0,t)},f=h=>{const g=o.get(h);g&&(Zu(c,g,null,null),Xu(g.appliedIndicator),Yu(g.appliedCounter),o.delete(h))};return{sync:d,step:h=>rw(o,h),activeCount:()=>ow(o),remove:f,dispose:()=>{for(const h of[...o.keys()])f(h);c==null||c.disconnect(),u==null||u.disconnect()}}}function aw(e,t){return ce(e,t)}function Qu(e,t){const n=Math.min(.05,Math.max(.001,t/1e3));e.elapsedMs+=t;let r=!0;for(const s of Object.keys(e.targets)){var o,i;const l=e.targets[s],c=(o=e.values[s])!==null&&o!==void 0?o:Go(s);if(e.mode==="tween"){var a;const f=e.durationMs<=0?1:Math.min(1,e.elapsedMs/e.durationMs),p=(a=e.startValues[s])!==null&&a!==void 0?a:c;e.values[s]=p+(l-p)*Uu(f),e.velocities[s]=0,f<1&&(r=!1);continue}const u=s==="opacity"||s==="scale"||s==="scaleX"||s==="scaleY"?.002:.1,d=Gt(c,(i=e.velocities[s])!==null&&i!==void 0?i:0,l,e.stiffness,e.damping,n,u);e.values[s]=d.value,e.velocities[s]=d.velocity,d.settled||(r=!1)}return e.element&&xi(e.element,e.values),r}function sw(e,t,n,r){var o,i,a,s,l,c;const u=W0(t.initial,n),d=r?"tween":(o=(i=t.transition)===null||i===void 0?void 0:i.type)!==null&&o!==void 0?o:"spring",f=r?140:(a=(s=t.transition)===null||s===void 0?void 0:s.durationMs)!==null&&a!==void 0?a:d==="spring"?240:200,p=zu(f,(l=(c=t.transition)===null||c===void 0?void 0:c.bounce)!==null&&l!==void 0?l:0);e.mode=d,e.durationMs=Math.max(0,f),e.stiffness=p.stiffness,e.damping=p.damping,e.elapsedMs=0,e.runId=t.runId,e.targets={},e.startValues={};let h=!1;for(const w of u){var g,v,b,_;const E=(g=n[w])!==null&&g!==void 0?g:Go(w),S=!e.initialized&&((v=t.initial)===null||v===void 0?void 0:v[w])!==void 0?t.initial[w]:(b=e.values[w])!==null&&b!==void 0?b:Go(w);if(r&&F0.has(w)){e.values[w]=E,e.velocities[w]=0;continue}e.values[w]=S,e.startValues[w]=S,e.targets[w]=E,(Math.abs(E-S)>1e-4||Math.abs((_=e.velocities[w])!==null&&_!==void 0?_:0)>1e-4)&&(h=!0)}return e.initialized=!0,e.snapshot={token:e.token,targetId:e.targetId,runId:e.runId,mode:e.mode,stiffness:e.stiffness,damping:e.damping,durationMs:e.durationMs,values:y({},e.values),velocities:y({},e.velocities),startValues:y({},e.startValues),targets:y({},e.targets),dtHistory:[]},e.element&&xi(e.element,e.values),h}function lw(e,t){return{token:e.token,targetId:e.targetId,element:t,values:{},velocities:{},startValues:{},targets:{},mode:"spring",stiffness:400,damping:40,durationMs:240,elapsedMs:0,runId:e.runId,active:!1,initialized:!1}}function cw(e,t,n,r,o,i){const a=aw(e,n.targetId);let s=t.get(n.token);if(!s||s.targetId!==n.targetId?(s=lw(n,a),t.set(n.token,s)):s.element=a,!a||!sw(s,n,r,Ku(a,e.document))){s.active=!1,o({token:n.token,runId:n.runId});return}s.active=!0,i()}function uw(e,t,n,r){return{getMode:n.getMode,setMode:n.setMode,step:(o=16)=>(n.step(o),{activeCount:[...e.values()].filter(i=>i.active).length+t(),elapsedMs:r()}),sampleRunProgress:(o,i,a=16)=>{const s=e.get(o);if(s)return z0(s,i,(l,c)=>Qu(l,c),l=>{const c=l;c.element&&xi(c.element,c.values)},a)},listRuns:()=>[...e.values()].map(o=>({token:o.token,targetId:o.targetId,runId:o.runId,mode:o.mode,active:o.active,elapsedMs:o.elapsedMs,values:y({},o.values)}))}}function dw(e,t){const n=new Map;let r=0,o=()=>{};const i=iw(e,()=>o()),a=j0(e.document,l=>{let c=i.step(l);r+=l;for(const d of n.values()){var u;d.active&&((u=d.snapshot)===null||u===void 0||u.dtHistory.push(l),Qu(d,l)?(d.active=!1,t({token:d.token,runId:d.runId})):c=!0)}return c});o=a.schedule;const s=G0(e.document,uw(n,i.activeCount,a,()=>r));return{sync(l){l.layout?i.sync(l):i.remove(l.token),l.animate?cw(e,n,l,l.animate,t,a.schedule):(n.delete(l.token),n.size===0&&i.activeCount()===0&&a.stop())},remove(l){i.remove(l),n.delete(l),n.size===0&&i.activeCount()===0&&a.stop()},dispose(){s(),i.dispose(),a.stop(),n.clear()}}}const fw=[{type:"sw-motion",onAttach:O(function*(){const e=yield*ae,t=yield*be,n=yield*me,r=yield*ee(),o=dw(e,i=>{r(n.emit(sf,i).pipe(te))});yield*t.registerCommand(Wd,i=>x(()=>{o.sync(i)})),yield*t.registerCommand(Gd,i=>x(()=>{o.remove(i.token)})),yield*ne(()=>x(()=>{o.dispose()}))})}];function Ve(e,t,n){return e<t?t:e>n?n:e}function Ju(e,t,n,r,o){const i=e>0?e:1,a=t>=i?t:i,s=Ve(n,i,a);return{zoom:r?Ve(o,i,a):s,panX:0,panY:0,minZoom:i,maxZoom:a,defaultZoom:s,isControlled:r,spacePressed:!1,dragPhase:"idle",dragFromSpace:!1,pointerCaptured:!1,hasPendingAnchor:!1,pendingAnchorZoom:0,pendingAnchorCx:0,pendingAnchorCy:0}}const pw={hasPendingAnchor:!1,pendingAnchorZoom:0,pendingAnchorCx:0,pendingAnchorCy:0};function hw(e,t){const n=t.minZoom>0?t.minZoom:e.minZoom,r=t.maxZoom>=n?t.maxZoom:n,o=Ve(t.defaultZoom,n,r),i=y(y({},e),{},{minZoom:n,maxZoom:r,defaultZoom:o,isControlled:t.isControlled},pw);if(t.resetChanged){const s=t.isControlled?Ve(t.controlledZoom,n,r):o;return{next:y(y({},i),{},{zoom:s,panX:0,panY:0}),shouldEmit:!t.isControlled&&s!==e.zoom,emitZoom:s}}if(t.isControlled){const s=Ve(t.controlledZoom,n,r),l=e.hasPendingAnchor&&t.anchorMatched;return{next:y(y({},i),{},{zoom:s,panX:l?t.anchoredPanX:e.panX,panY:l?t.anchoredPanY:e.panY}),shouldEmit:!1,emitZoom:s}}const a=Ve(e.zoom,n,r);return{next:y(y({},i),{},{zoom:a}),shouldEmit:!1,emitZoom:a}}function mw(e,t,n,r,o,i){const a=Ve(t,e.minZoom,e.maxZoom);return a===e.zoom?{next:e,shouldEmit:!1,emitZoom:e.zoom}:e.isControlled?{next:y(y({},e),{},{hasPendingAnchor:!0,pendingAnchorZoom:a,pendingAnchorCx:o,pendingAnchorCy:i}),shouldEmit:!0,emitZoom:a}:{next:y(y({},e),{},{zoom:a,panX:n,panY:r,hasPendingAnchor:!1,pendingAnchorZoom:0,pendingAnchorCx:0,pendingAnchorCy:0}),shouldEmit:!0,emitZoom:a}}function gw(e){const t=e.zoom!==e.defaultZoom;return{next:y(y({},e),{},{panX:0,panY:0,zoom:e.isControlled?e.zoom:e.defaultZoom,hasPendingAnchor:!1,pendingAnchorZoom:0,pendingAnchorCx:0,pendingAnchorCy:0}),shouldEmit:t,emitZoom:e.defaultZoom}}function Ms(e,t){return e.spacePressed===t?e:y(y({},e),{},{spacePressed:t})}function vw(e,t,n){if(e.dragPhase!=="idle")return{next:e,started:!1,preventDefault:!1};const r=!t&&e.spacePressed;return!t&&!r&&n?{next:e,started:!1,preventDefault:!1}:{next:y(y({},e),{},{dragPhase:"pending",dragFromSpace:r,pointerCaptured:!1}),started:!0,preventDefault:t||r}}function yw(e,t,n,r){return e.dragPhase==="idle"?{next:e,moved:!1,enteredPanning:!1}:e.dragPhase==="pending"&&!t?{next:e,moved:!1,enteredPanning:!1}:{next:y(y({},e),{},{dragPhase:"panning",pointerCaptured:!0,panX:n,panY:r}),moved:!0,enteredPanning:e.dragPhase==="pending"}}function _w(e){if(e.dragPhase==="idle")return{next:e,wasPanning:!1,shouldSuppressClick:!1};const t=e.dragPhase==="panning",n=t||e.dragFromSpace;return{next:y(y({},e),{},{dragPhase:"idle",dragFromSpace:!1,pointerCaptured:!1}),wasPanning:t,shouldSuppressClick:n}}function bw(e){return typeof e=="number"&&Number.isFinite(e)&&e>0?e:.25}function ww(e,t){return typeof e=="number"&&Number.isFinite(e)&&e>=t?e:Math.max(t,3)}function Ew(e,t,n){return ki(typeof e=="number"&&Number.isFinite(e)&&e>0?e:1,t,n)}function ki(e,t,n){return Ve(e,t,n)}function Sw(e){return Math.round(e*1e3)/1e3}function Aw(e,t,n,r){return Sw(ki(e*Math.exp(-t*.0025),n,r))}function ed(e,t,n,r,o,i){if(n<=0)return{panX:e,panY:t};const a=r/n;return{panX:o-(o-e)*a,panY:i-(i-t)*a}}function Cw(e){const t=e.defaultView,n=e.documentElement;if(t&&n&&typeof t.getComputedStyle=="function"){const r=Number.parseFloat(t.getComputedStyle(n).fontSize);if(Number.isFinite(r)&&r>0)return r}return 16}const xw=3,kw=["button","input","textarea","select","a","label",'[role="button"]','[role="radio"]','[role="checkbox"]','[role="switch"]','[role="slider"]','[role="separator"]','[role="menuitem"]','[tabindex]:not([tabindex="-1"])','[contenteditable="true"]',"[data-sw-pan-zoom-interactive]"].join(", ");function td(e){if(!e||typeof e!="object")return null;const t=e;return t.nodeType===1?t:t.nodeType===3?t.parentElement:null}function nd(e,t){let n=td(e);if(!n||!t.contains(n))return!1;for(;n&&n!==t;){if(n.matches(kw))return!0;n=n.parentElement}return!1}function Ns(e){var t,n;const r=td(e);if(!r)return!1;const o=(t=r.tagName)===null||t===void 0?void 0:t.toLowerCase();if(o==="input"||o==="textarea"||o==="select")return!0;const i=(n=r.getAttribute)===null||n===void 0?void 0:n.call(r,"contenteditable");return i==="true"||i===""||!!r.isContentEditable}function Iw(e,t){if(t.defaultPrevented||!t.ctrlKey&&!t.metaKey)return;const{viewport:n,state:r,syncView:o,emitZoom:i}=e;t.preventDefault();const a=n.getBoundingClientRect(),s=t.clientX-(a.left+a.width/2),l=t.clientY-(a.top+a.height/2),c=r.machine,u=Aw(c.zoom,t.deltaY,c.minZoom,c.maxZoom),d=ed(c.panX,c.panY,c.zoom,u,s,l),f=mw(c,u,d.panX,d.panY,s,l);r.machine=f.next,f.shouldEmit&&(f.next.isControlled||o(),i(f.emitZoom))}function Lw(e){const t=r=>{r.preventDefault(),r.stopPropagation()};e.addEventListener("click",t,!0);const n=setTimeout(()=>e.removeEventListener("click",t,!0),0);return()=>{clearTimeout(n),e.removeEventListener("click",t,!0)}}function Vs(e,t,n){try{var r,o;n?(r=e.setPointerCapture)===null||r===void 0||r.call(e,t):(o=e.releasePointerCapture)===null||o===void 0||o.call(e,t)}catch{}}function Rw(e){const{doc:t,root:n,viewport:r,stage:o,state:i,syncView:a}=e;let s=null,l;const c=f=>{if(f.button!==0&&f.button!==1)return;const p=vw(i.machine,f.button===1,nd(f.target,o));p.started&&(p.preventDefault&&f.preventDefault(),i.machine=p.next,s={pointerId:f.pointerId,startX:f.clientX,startY:f.clientY,startPanX:p.next.panX,startPanY:p.next.panY})},u=f=>{if(!s||f.pointerId!==s.pointerId)return;const p=f.clientX-s.startX,h=f.clientY-s.startY,g=yw(i.machine,Math.hypot(p,h)>xw,s.startPanX+p,s.startPanY+h);i.machine=g.next,g.moved&&(g.enteredPanning&&(n.setAttribute("data-panning","true"),Vs(r,s.pointerId,!0)),a())},d=f=>{if(!s||f.pointerId!==s.pointerId)return;const p=s.pointerId;s=null;const h=_w(i.machine);i.machine=h.next,h.wasPanning&&(Vs(r,p,!1),n.removeAttribute("data-panning")),h.shouldSuppressClick&&(l==null||l(),l=Lw(r))};return r.addEventListener("pointerdown",c),t.addEventListener("pointermove",u),t.addEventListener("pointerup",d),t.addEventListener("pointercancel",d),()=>{l==null||l(),r.removeEventListener("pointerdown",c),t.removeEventListener("pointermove",u),t.removeEventListener("pointerup",d),t.removeEventListener("pointercancel",d)}}function Tw(e,t,n,r){var o;let i=!1;const a=()=>{r.machine.spacePressed&&(r.machine=Ms(r.machine,!1),t.removeAttribute("data-space-pan"))},s=()=>{i=!0},l=()=>{i=!1},c=d=>{d.key!==" "&&d.code!=="Space"||Ns(e.activeElement)||Ns(d.target)||!i&&!t.contains(e.activeElement)||(d.preventDefault(),!r.machine.spacePressed&&(r.machine=Ms(r.machine,!0),t.setAttribute("data-space-pan","true")))},u=d=>{(d.key===" "||d.code==="Space")&&a()};return n.addEventListener("pointerenter",s),n.addEventListener("pointerleave",l),e.addEventListener("keydown",c),e.addEventListener("keyup",u),(o=e.defaultView)===null||o===void 0||o.addEventListener("blur",a),()=>{var d;n.removeEventListener("pointerenter",s),n.removeEventListener("pointerleave",l),e.removeEventListener("keydown",c),e.removeEventListener("keyup",u),(d=e.defaultView)===null||d===void 0||d.removeEventListener("blur",a)}}function Pw(e,t,n){var r,o;const i=(r=(o=e.defaultView)===null||o===void 0?void 0:o.ResizeObserver)!==null&&r!==void 0?r:globalThis.ResizeObserver;return ie(x(()=>{if(typeof i!="function")return;const a=new i(n);return a.observe(t),a}),a=>x(()=>a==null?void 0:a.disconnect())).pipe(fr)}function Dw(e){return O(function*(){const{doc:t,root:n,viewport:r,stage:o,state:i,syncView:a,emitZoom:s}=e,l=f=>Iw(e,f),c=f=>{if(nd(f.target,o))return;const p=gw(i.machine);i.machine=p.next,a(),p.shouldEmit&&s(p.emitZoom)};yield*ie(x(()=>{r.addEventListener("wheel",l,{passive:!1}),r.addEventListener("dblclick",c)}),()=>x(()=>{r.removeEventListener("wheel",l),r.removeEventListener("dblclick",c)}));const u=Rw(e);yield*ne(()=>x(()=>u()));const d=Tw(t,n,r,i);yield*ne(()=>x(()=>d())),yield*Pw(t,r,a)})}const Ow={position:"relative",display:"flex",flex:"1",width:"100%",height:"100%",minWidth:"0px",minHeight:"0px",overflow:"hidden",borderTopWidth:"0px",borderRightWidth:"0px",borderBottomWidth:"0px",borderLeftWidth:"0px",touchAction:"none"},Mw=`
|
|
217
|
+
[data-sw-pan-zoom-viewport] {
|
|
218
|
+
cursor: grab !important;
|
|
219
|
+
touch-action: none;
|
|
220
|
+
}
|
|
221
|
+
[data-sw-pan-zoom][data-space-pan="true"],
|
|
222
|
+
[data-sw-pan-zoom][data-space-pan="true"] * {
|
|
223
|
+
cursor: grab !important;
|
|
224
|
+
}
|
|
225
|
+
[data-sw-pan-zoom][data-panning="true"],
|
|
226
|
+
[data-sw-pan-zoom][data-panning="true"] * {
|
|
227
|
+
cursor: grabbing !important;
|
|
228
|
+
user-select: none !important;
|
|
229
|
+
}
|
|
230
|
+
`;function Nw(e){return e==="light"||e==="dark"?e:"none"}function Vw(e,t,n,r,o,i,a){if(n.style.transform=`translate3d(${o}px, ${i}px, 0) scale(${r})`,a==="none"){t.style.backgroundColor="transparent",t.style.backgroundImage="none",t.style.removeProperty("background-size"),t.style.removeProperty("background-position");return}const s=a==="dark",l=Cw(e)*r,c=t.getBoundingClientRect(),u=c.width||t.clientWidth||0,d=c.height||t.clientHeight||0;t.style.backgroundColor=s?"#09090b":"#fafafa",t.style.backgroundImage=s?"radial-gradient(circle, #27272a 1px, transparent 1px)":"radial-gradient(circle, #d4d4d8 1px, transparent 1px)",t.style.backgroundSize=`${l}px ${l}px`,t.style.backgroundPosition=`${u/2+o}px ${d/2+i}px`}let $w=0;function Fw(e){const t=e.createElement("div");t.setAttribute("data-sw-pan-zoom","true");const n=e.createElement("div");n.setAttribute("data-sw-pan-zoom-viewport","true"),n.style.width="100%",n.style.height="100%",n.style.display="flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.overflow="hidden",n.style.position="relative";const r=e.createElement("div");return r.setAttribute("data-sw-pan-zoom-stage","true"),r.style.display="flex",r.style.flexDirection="column",r.style.alignItems="center",r.style.justifyContent="center",r.style.flexShrink="0",r.style.width="fit-content",r.style.maxWidth="none",r.style.transformOrigin="center center",n.appendChild(r),t.appendChild(n),{root:t,viewport:n,stage:r}}function Bw(e,t,n,r,o){e.id=J(r,"pan-zoom",t.id,t.autoId,o),typeof t.ariaLabel=="string"&&t.ariaLabel.length>0?e.setAttribute("aria-label",t.ariaLabel):e.removeAttribute("aria-label"),e.setAttribute("data-grid",n)}function Hw(e,t,n,r){const o=bw(t.minZoom),i=ww(t.maxZoom,o),a=Ew(t.defaultZoom,o,i),s=typeof t.zoom=="number"&&Number.isFinite(t.zoom),l=s?t.zoom:a,c=!n&&!Object.is(t.resetSignal,e.resetSignal);if(e.resetSignal=t.resetSignal,e.grid=Nw(t.grid),n){e.machine=Ju(o,i,a,s,l);return}const u=e.machine,d=ki(l,o,i),f=u.hasPendingAnchor&&Math.abs(d-u.pendingAnchorZoom)<1e-6,p=f?ed(u.panX,u.panY,u.zoom,d,u.pendingAnchorCx,u.pendingAnchorCy):{panX:u.panX,panY:u.panY},h=hw(u,{minZoom:o,maxZoom:i,defaultZoom:a,isControlled:s,controlledZoom:l,resetChanged:c,anchorMatched:f,anchoredPanX:p.panX,anchoredPanY:p.panY});e.machine=h.next,h.shouldEmit&&r(h.emitZoom)}function Ww(e){return O(function*(){const t=yield*ae,n=yield*ur,r=yield*ee(),o=t.document,i=++$w,{root:a,viewport:s,stage:l}=Fw(o);let c=e,u;const d={machine:Ju(.25,3,1,!1,1),resetSignal:e.resetSignal,grid:"none"},f=g=>{const v=Array.isArray(c.__events)?c.__events:void 0;(!v||v.includes("onZoomChange"))&&r(n.dispatchEvent("onZoomChange",g))},p=()=>{const{zoom:g,panX:v,panY:b}=d.machine;Vw(o,s,l,g,v,b,d.grid)},h=(g,v)=>{c=g;const b=g.style;j(a,b,u,Ow),u=b,Hw(d,g,v,f),Bw(a,g,d.grid,t,i),p()};return h(e,!0),yield*Dw({doc:o,root:a,viewport:s,stage:l,state:d,syncView:p,emitZoom:f}),{element:a,childContainer:l,update:g=>h(g,!1)}})}const Gw=[{type:"sw-pan-zoom",styles:Mw,onMount:Ww}];function jw(){return{layerCount:0,activeCount:0,activeModalCount:0,listenersMounted:!1,overflowLocked:!1,scheduled:!1,nextOrder:0}}function zw(e,t,n,r){return e?t?n:r:!1}function Uw(e){return 1e3+e}function rd(e,t){return e&&t}function od(e,t){return e&&t}function qw(e,t,n,r){return e?n&&r?"autofocus":t?"none":"modal":n?"autofocus":"none"}function Kw(e){const t=!e.listenersMounted,n=!e.scheduled;return{next:y(y({},e),{},{layerCount:e.layerCount+1,listenersMounted:!0,scheduled:!0}),shouldMountListeners:t,shouldSchedule:n}}function Xw(e){return e.layerCount<=0||e.scheduled?{next:e,shouldSchedule:!1}:{next:y(y({},e),{},{scheduled:!0}),shouldSchedule:!0}}function Yw(e){return e.scheduled?y(y({},e),{},{scheduled:!1}):e}function Zw(e){const t=e.nextOrder+1;return{next:y(y({},e),{},{nextOrder:t}),order:t}}function Qw(e,t,n){const r=t<0?0:t>e.layerCount?e.layerCount:t,o=n<0?0:n>r?r:n,i=o>0,a=!e.overflowLocked&&i,s=e.overflowLocked&&!i;return{next:y(y({},e),{},{activeCount:r,activeModalCount:o,overflowLocked:i}),lockOverflow:a,unlockOverflow:s}}function Jw(e){if(e.layerCount<=0)return{next:e,shouldUnmountListeners:!1};const t=e.layerCount-1,n=e.activeCount>t?t:e.activeCount,r=e.activeModalCount>n?n:e.activeModalCount,o=t===0&&e.listenersMounted;return{next:y(y({},e),{},{layerCount:t,activeCount:n,activeModalCount:r,listenersMounted:t>0,overflowLocked:r>0,scheduled:!1}),shouldUnmountListeners:o}}function eE(e){return!!e.inert||e.hasAttribute("inert")||e.getAttribute("aria-hidden")==="true"}function tE(e){if("inert"in e){const n={native:!0,inert:e.inert};return e.inert=!0,n}const t={native:!1,hadInert:e.hasAttribute("inert"),ariaHidden:e.getAttribute("aria-hidden")};return e.setAttribute("inert",""),e.setAttribute("aria-hidden","true"),t}function nE(e,t){if(t.native){e.inert=t.inert;return}t.hadInert||e.removeAttribute("inert"),t.ariaHidden===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t.ariaHidden)}const rE='button:not([disabled]), input:not([disabled]), textarea:not([disabled]), select:not([disabled]), a[href], [tabindex]:not([tabindex="-1"])';function id(e){return[...e.element.querySelectorAll(rE)].filter(t=>{if(t.tabIndex<0||t.matches(":disabled, [disabled]"))return!1;for(let o=t;o;o=o.parentElement){var n,r;const i=(n=o.ownerDocument.defaultView)===null||n===void 0?void 0:n.getComputedStyle(o);if(o.hidden||eE(o)||(i==null?void 0:i.display)==="none"||(i==null?void 0:i.visibility)==="hidden"||(i==null?void 0:i.visibility)==="collapse"||o.matches("fieldset[disabled]")&&!(!((r=[...o.children].find(a=>a.tagName==="LEGEND"))===null||r===void 0)&&r.contains(t)))return!1}return!0})}function zo(e){var t;((t=id(e)[0])!==null&&t!==void 0?t:e.element).focus()}function oE(e,t,n,r){if(e.key==="Escape"&&(e.stopPropagation(),rd(!0,t.props.closeOnEscape!==!1)&&(e.preventDefault(),t.requestClose("escape"))),e.key==="Tab"&&r.length){var o;const i=r.flatMap(id),a=(o=i[0])!==null&&o!==void 0?o:r[0].element,s=i.length>0?i[i.length-1]:r[0].element;e.shiftKey&&(n.activeElement===a||r.some(l=>n.activeElement===l.element))?(e.preventDefault(),s.focus()):!e.shiftKey&&(n.activeElement===s||!r.some(l=>l.element.contains(n.activeElement)))&&(e.preventDefault(),a.focus())}}let iE=0;const er=new WeakMap,Ii=e=>e.length>0?e[e.length-1]:void 0;function $s(e,t){var n;const r=e.target===t.document?t.document.activeElement:e.target,o=r==null||(n=r.closest)===null||n===void 0?void 0:n.call(r,"[data-sw-host-root], [data-sw-overlay-root]");return(o==null?void 0:o.parentElement)===t.rootContainer}function tr(e,t){return t.find(n=>n!==e&&n.element.contains(e.anchor))}function Li(e,t,n){const r=tr(e,n);return!!(r&&(r===t||Li(r,t,n)))}function nr(e){const t=e.filter(r=>r.active).sort((r,o)=>{var i,a;return((i=r.order)!==null&&i!==void 0?i:0)-((a=o.order)!==null&&a!==void 0?a:0)}),n=r=>t.filter(o=>tr(o,e)===r).flatMap(o=>[o,...n(o)]);return n()}function rr(e){const t=nr(e),n=[...t].reverse().find(r=>!!r.props.modal);return n?t.filter(r=>r===n||Li(r,n,e)):[]}function Fs(e,t,n){var r;if(!e||t.props.modal||!t.props.closeOnOutsidePress||t.element.contains(e))return!1;const o=t.props.anchorId,i=typeof o=="string"&&o&&(r=ce(n,o))!==null&&r!==void 0?r:void 0;return!i||!i.contains(e)}function aE(e,t,n,r,o){if(n&&od(r.includes(n),n.props.restoreFocus!==!1)){const u=[...r].reverse().map(d=>d.previousFocus).find(d=>(d==null?void 0:d.isConnected)&&!d.closest('[inert], [aria-hidden="true"]'));u==null||u.focus()}const i=rr(t),a=Ii(o),s=i.some(u=>u.element.contains(e.document.activeElement)),l=!!(a&&i.includes(a)),c=qw(i.length>0,s,!!a,l);c==="modal"&&i[0]?zo(i[0]):c==="autofocus"&&a&&zo(a)}function sE(e,t,n,r){const o=new Map;let i;const a=s=>{const l=tr(s,t);return l?a(l)+1:0};return()=>{o.forEach((p,h)=>nE(h,p)),o.clear();const s=Ii(nr(t)),l=[],c=[];r(Yw(n())),t.sort((p,h)=>a(p)-a(h));for(const p of[...t]){const h=tr(p,t),g=zw(!!p.props.open,!!h,!!(h!=null&&h.active),p.anchor.isConnected);if(g&&!p.active){const v=Zw(n());r(v.next),p.previousFocus=p.props.restoreFocus===!1?void 0:e.document.activeElement,e.overlayContainer.appendChild(p.element),p.active=!0,p.order=v.order,!p.props.modal&&p.props.autoFocus&&c.push(p)}else!g&&p.active&&(p.active=!1,p.element.remove(),l.push(p))}const u=nr(t);u.forEach((p,h)=>{p.element.style.zIndex=String(Uw(h))});const d=u.filter(p=>!!p.props.modal).length,f=Qw(n(),u.length,d);if(r(f.next),f.next.overflowLocked){i===void 0&&(i=e.rootContainer.style.overflow),e.rootContainer.style.overflow="hidden";const p=e.rootContainer.querySelector("[data-sw-host-root]"),h=rr(t);for(const g of[p,...u.filter(v=>!h.includes(v)).map(v=>v.element)])g&&o.set(g,tE(g))}else i!==void 0&&(e.rootContainer.style.overflow=i,i=void 0);aE(e,t,s,l,c)}}function lE(e,t,n){const r=e.document;let o=!1;const i=c=>{const u=n();u&&$s(c,e)&&oE(c,u,r,rr(t))},a=c=>{const u=rr(t);u.length&&$s(c,e)&&!u.some(d=>d.element.contains(c.target))&&zo(u[0])},s=c=>{const u=n();!u||!Fs(c.target,u,e)||(o=!0,queueMicrotask(()=>{o=!1}),u.requestClose("outside-press"))},l=c=>{if(o)return;const u=n();u&&Fs(c.target,u,e)&&u.requestClose("outside-press")};return{mount(){r.addEventListener("keydown",i),r.addEventListener("focusin",a),r.addEventListener("pointerdown",s,!0),r.addEventListener("click",l,!0)},unmount(){r.removeEventListener("keydown",i),r.removeEventListener("focusin",a),r.removeEventListener("pointerdown",s,!0),r.removeEventListener("click",l,!0)}}}function cE(e){const t=[];let n=jw();const r=()=>Ii(nr(t)),o=sE(e,t,()=>n,l=>{n=l}),i=lE(e,t,r),a=()=>{queueMicrotask(()=>{n.scheduled&&o()})},s={add(l){t.push(l);const c=Kw(n);n=c.next,c.shouldMountListeners&&i.mount(),c.shouldSchedule&&a()},update(){const l=Xw(n);n=l.next,l.shouldSchedule&&a()},isTop:l=>r()===l,remove(l){const c=t.indexOf(l);if(c<0)return;const u=r(),d=u===l||!!(u&&Li(u,l,t));t.splice(c,1),l.element.remove();const f=l.active&&od(d,l.props.restoreFocus!==!1)?l.previousFocus:void 0;l.active=!1,n=Jw(n).next,o(),f!=null&&f.isConnected&&f.focus(),t.length===0&&n.layerCount===0&&!n.listenersMounted&&er.get(e.overlayContainer)===s&&(i.unmount(),er.delete(e.overlayContainer))}};return s}const uE=[{type:"sw-portal",mount(e,t){var n;const r=t.document.createElement("span");r.hidden=!0;const o=t.document.createElement("div"),i=++iE;o.setAttribute("data-sw-portal","true"),o.tabIndex=-1;const a=(n=er.get(t.overlayContainer))!==null&&n!==void 0?n:cE(t);er.set(t.overlayContainer,a);const s={anchor:r,element:o,props:e,active:!1,requestClose(d){t.dispatchEvent("onCloseRequest",d),t.dispatchEvent("onOpenChange",!1)}};o.addEventListener("click",d=>{d.target===o&&s.props.modal&&rd(a.isTop(s),!!s.props.closeOnOutsidePress)&&s.requestClose("outside-press")});let l,c;const u=d=>{s.props=d,o.id=J(t,"portal",d.id,d.autoId,i);const f=d.style;j(o,f,l),l=f;const p=gl(d.themeMode==="dark"?"dark":"light",d.themeTokens);co(o,p,c),c=p;for(const[h,g]of[["role","role"],["ariaLabel","aria-label"],["ariaLabelledBy","aria-labelledby"],["ariaDescribedBy","aria-describedby"]]){const v=d[h];typeof v=="string"&&v.length>0?o.setAttribute(g,v):o.removeAttribute(g)}d.modal?o.setAttribute("aria-modal","true"):o.removeAttribute("aria-modal"),a.update()};return a.add(s),u(e),{element:r,childContainer:o,update:u,dispose:()=>a.remove(s)}}}],dE=`
|
|
231
|
+
[data-sw-pressable] {
|
|
232
|
+
-webkit-tap-highlight-color: transparent;
|
|
233
|
+
user-select: none;
|
|
234
|
+
transition-property: box-shadow, opacity, background-color, border-color, color;
|
|
235
|
+
transition-duration: 150ms;
|
|
236
|
+
transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
237
|
+
}
|
|
238
|
+
a[data-sw-pressable] {
|
|
239
|
+
color: inherit;
|
|
240
|
+
text-decoration: none;
|
|
241
|
+
}
|
|
242
|
+
[data-sw-pressable][data-focus-visible="true"][data-focus-ring="true"]:not([data-disabled="true"]) {
|
|
243
|
+
box-shadow: 0 0 0 2px var(--sw-background), 0 0 0 4px var(--sw-border-focus);
|
|
244
|
+
}
|
|
245
|
+
@media (prefers-reduced-motion: reduce) {
|
|
246
|
+
[data-sw-pressable] {
|
|
247
|
+
transition-duration: 120ms;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
`,cn={leaveGroup:"",recordGrace:!1,enterGroup:""},We={scheduleDelayMs:0,cancelTimer:!1,emitHover:"none",groupDelta:cn};function fE(e){return typeof e!="number"||!Number.isFinite(e)||e<=0?0:e>5e3?5e3:e}function Ri(e){return typeof e=="string"&&e.length>0?e:""}function Pn(){return{activeCount:0,hasLastClosed:!1,lastClosedAt:0}}function pE(e,t){if(e.activeCount>0)return!0;if(!e.hasLastClosed)return!1;const n=t-e.lastClosedAt;return n>=0&&n<=300}function hE(e,t){return e.activeCount>0||!e.hasLastClosed?!1:t-e.lastClosedAt>300}function ad(e,t,n,r){if(t==="")return e;const o=n.leaveGroup===t,i=n.enterGroup===t,a=o?e.activeCount>0?e.activeCount-1:0:e.activeCount,s=i?a+1:a,l=o&&n.recordGrace;return{activeCount:s,hasLastClosed:l?!0:e.hasLastClosed,lastClosedAt:l?r:e.lastClosedAt}}function sd(e,t,n,r){return e<=0||t!==""&&pE(n,r)?0:e}function mE(e){return{phase:"idle",disabled:e.disabled,hasListener:e.hasListener,hoverDelay:e.hoverDelay,group:e.group,activeGroup:"",timerPending:!1}}function gE(e,t,n,r){if(e.phase==="disposed"||e.disabled||!e.hasListener)return{next:e,effect:We};if(e.phase==="active")return{next:e,effect:We};const o=e.timerPending,i=sd(e.hoverDelay,e.group,t,n);return i<=0?r?{next:y(y({},e),{},{phase:"active",activeGroup:e.group,timerPending:!1}),effect:{scheduleDelayMs:0,cancelTimer:o,emitHover:"enter",groupDelta:{leaveGroup:"",recordGrace:!1,enterGroup:e.group}}}:{next:y(y({},e),{},{phase:"idle",timerPending:!1}),effect:{scheduleDelayMs:0,cancelTimer:o,emitHover:"none",groupDelta:cn}}:{next:y(y({},e),{},{phase:"pending",timerPending:!0}),effect:{scheduleDelayMs:i,cancelTimer:o,emitHover:"none",groupDelta:cn}}}function vE(e,t){return e.phase!=="pending"?{next:e,effect:We}:e.disabled||!e.hasListener||!t?{next:y(y({},e),{},{phase:"idle",timerPending:!1}),effect:We}:{next:y(y({},e),{},{phase:"active",activeGroup:e.group,timerPending:!1}),effect:{scheduleDelayMs:0,cancelTimer:!1,emitHover:"enter",groupDelta:{leaveGroup:"",recordGrace:!1,enterGroup:e.group}}}}function ld(e){return e.phase==="disposed"||e.phase==="idle"?{next:e,effect:We}:e.phase==="pending"?{next:y(y({},e),{},{phase:"idle",timerPending:!1}),effect:{scheduleDelayMs:0,cancelTimer:e.timerPending,emitHover:"none",groupDelta:cn}}:{next:y(y({},e),{},{phase:"idle",activeGroup:"",timerPending:!1}),effect:{scheduleDelayMs:0,cancelTimer:e.timerPending,emitHover:"leave",groupDelta:{leaveGroup:e.activeGroup,recordGrace:!0,enterGroup:""}}}}function Bs(e,t){if(e.phase==="disposed")return{next:e,effect:We};const n=y(y({},e),{},{disabled:t.disabled,hasListener:t.hasListener,hoverDelay:t.hoverDelay,group:t.group});return t.disabled||!t.hasListener?ld(n):e.phase==="active"&&t.group!==e.activeGroup?{next:y(y({},n),{},{activeGroup:t.group}),effect:{scheduleDelayMs:0,cancelTimer:!1,emitHover:"none",groupDelta:{leaveGroup:e.activeGroup,recordGrace:!1,enterGroup:t.group}}}:{next:n,effect:We}}function yE(e){if(e.phase==="disposed")return{next:e,effect:We};const t=e.phase==="active",n=e.timerPending;return{next:y(y({},e),{},{phase:"disposed",activeGroup:"",timerPending:!1}),effect:{scheduleDelayMs:0,cancelTimer:n,emitHover:"none",groupDelta:t?{leaveGroup:e.activeGroup,recordGrace:!1,enterGroup:""}:cn}}}function or(){return typeof performance<"u"&&typeof performance.now=="function"?performance.now():Date.now()}const It=new WeakMap,Hs=new WeakMap;function Yt(e,t){return Array.isArray(e.__events)&&e.__events.includes(t)}function so(e,t){var n;return{disabled:!!(!((n=t.isDisabled)===null||n===void 0)&&n.call(t,e)),hasListener:Yt(e,"onHoverChange"),hoverDelay:fE(e.hoverDelay),group:Ri(e.hoverGroup)}}function _E(e,t,n){if(t==="")return Pn();const r=It.get(e),o=r==null?void 0:r.get(t);return o?hE(o.state,n)?(r==null||r.delete(t),r&&!r.size&&It.delete(e),Pn()):o.state:Pn()}function bE(e,t,n){const r=Ri(t);if(r==="")return;let o=It.get(e);o||(o=new Map,It.set(e,o));let i=o.get(r);i||(i={tokens:new Set,state:Pn()},o.set(r,i)),!i.tokens.has(n)&&(i.tokens.add(n),i.state=ad(i.state,r,{leaveGroup:"",recordGrace:!1,enterGroup:r},or()))}function wE(e,t,n,r,o=or()){const i=Ri(t);if(i==="")return;const a=It.get(e),s=a==null?void 0:a.get(i);s&&(s.tokens.delete(n)?s.state=ad(s.state,i,{leaveGroup:i,recordGrace:r,enterGroup:""},o):r&&(s.state=y(y({},s.state),{},{hasLastClosed:!0,lastClosedAt:o})),s.state.activeCount===0&&!s.state.hasLastClosed&&(a==null||a.delete(i),a&&!a.size&&It.delete(e)))}function Ws(e){var t;const n=Hs.get(e);if(n)return n;const r=(t=e.closest)===null||t===void 0?void 0:t.call(e,'[data-sw-floating-anchor="true"]');return r?Hs.get(r):void 0}function EE(e,t,n,r){t.leaveGroup!==""&&wE(e,t.leaveGroup,n,t.recordGrace,r),t.enterGroup!==""&&bE(e,t.enterGroup,n)}function SE(e,t,n){const r=Symbol("hover");let o=mE(so(t(),n)),i;const a=()=>{i!==void 0&&(clearTimeout(i),i=void 0)},s=()=>!n.shouldEnter||n.shouldEnter(),l=(c,u=or())=>{o=c.next;const{effect:d}=c;d.cancelTimer&&a(),EE(e.rootContainer,d.groupDelta,r,u),d.emitHover==="enter"?e.dispatchEvent("onHoverChange",!0):d.emitHover==="leave"&&e.dispatchEvent("onHoverChange",!1),d.scheduleDelayMs>0&&(a(),i=setTimeout(()=>{i=void 0,l(vE(o,s()))},d.scheduleDelayMs))};return{getPhase:()=>o.phase,enter(){const c=or();if(l(Bs(o,so(t(),n)),c),o.phase==="disposed"||o.phase==="active"||o.disabled||!o.hasListener)return;const u=_E(e.rootContainer,o.group,c),d=sd(o.hoverDelay,o.group,u,c)>0?!0:s();l(gE(o,u,c,d),c)},leave:()=>l(ld(o)),sync:c=>l(Bs(o,so(c,n))),dispose:()=>l(yE(o))}}function AE(e,t,n,r){const o=SE(t,n,r);return e.addEventListener("pointerenter",()=>{var i,a;if(o.getPhase()==="disposed")return;const s=n();!Yt(s,"onHoverChange")||!((i=r.isDisabled)===null||i===void 0)&&i.call(r,s)||((a=Ws(e))===null||a===void 0||a.enterTrigger(),o.enter())}),e.addEventListener("pointerleave",i=>{if(o.getPhase()==="pending"){o.leave();return}if(o.getPhase()!=="active")return;const a=Ws(e);if(a){a.deferTriggerLeave(i,o.leave);return}o.leave()}),{sync:o.sync,dispose:o.dispose}}function CE(e,t,n,r){let o=!1;const i=()=>{o&&(o=!1,Yt(n(),"onBlur")&&t.dispatchEvent("onBlur"))};return e.addEventListener("focus",()=>{var a;const s=n();!((a=r.isDisabled)===null||a===void 0)&&a.call(r,s)||(o=!0,Yt(s,"onFocus")&&t.dispatchEvent("onFocus"))}),e.addEventListener("blur",()=>{o=!1,Yt(n(),"onBlur")&&t.dispatchEvent("onBlur")}),{leave:i}}function cd(e,t,n,r={}){let o=n;const i=AE(e,t,()=>o,r),a=CE(e,t,()=>o,r);return{update(s){var l;o=s,i.sync(s),!((l=r.isDisabled)===null||l===void 0)&&l.call(r,s)&&a.leave()},dispose:i.dispose}}let xE=0;const ir={display:"flex",flexDirection:"column",boxSizing:"border-box",minWidth:"0px",borderTopWidth:"0px",borderRightWidth:"0px",borderBottomWidth:"0px",borderLeftWidth:"0px"},Gs={container:"div",section:"section",article:"article",nav:"nav",header:"header",footer:"footer",main:"main",aside:"aside",quote:"blockquote",list:"ul","ordered-list":"ol","list-item":"li"};function kE(e){return typeof e=="string"&&Object.prototype.hasOwnProperty.call(Gs,e)?{semantic:e,tag:Gs[e]}:{semantic:"container",tag:"div"}}const IE=`
|
|
251
|
+
blockquote[data-sw-view],
|
|
252
|
+
ul[data-sw-view],
|
|
253
|
+
ol[data-sw-view],
|
|
254
|
+
li[data-sw-view] {
|
|
255
|
+
margin: 0;
|
|
256
|
+
padding: 0;
|
|
257
|
+
}
|
|
258
|
+
ul[data-sw-view],
|
|
259
|
+
ol[data-sw-view] {
|
|
260
|
+
list-style: none;
|
|
261
|
+
}
|
|
262
|
+
`;function js(e,t,n,r,o){const i=typeof t.role=="string"&&t.role.length>0?t.role:void 0;e.id=J(n,"view",t.id,t.autoId,r),e.setAttribute("data-sw-view",o),o==="ordered-list"&&typeof t.start=="number"&&Number.isInteger(t.start)?e.setAttribute("start",String(t.start)):e.removeAttribute("start"),i?e.setAttribute("role",i):e.removeAttribute("role"),typeof t.ariaLabel=="string"&&t.ariaLabel.length>0?e.setAttribute("aria-label",t.ariaLabel):e.removeAttribute("aria-label");for(const[a,s]of[["ariaCurrent","aria-current"],["ariaHidden","aria-hidden"],["ariaOrientation","aria-orientation"]])t[a]!==void 0?e.setAttribute(s,String(t[a])):e.removeAttribute(s)}const LE=[{type:"sw-view",styles:IE,mount(e,t){const{semantic:n,tag:r}=kE(e.as),o=t.document.createElement(r),i=++xE;let a=e.style;return j(o,a,void 0,ir),js(o,e,t,i,n),{element:o,update(s){const l=s.style;j(o,l,a,ir),a=l,js(o,s,t,i,n)},invoke(s){return s==="measure"?ml(o):Promise.reject(new ue({method:s,message:`Unsupported method "${s}" on sw-view.`}))}}}}],RE="button, input, textarea, select, a[href], [data-sw-pressable]",TE=/[\u0000-\u001F\u007F]/,PE=/^[a-zA-Z][a-zA-Z0-9+.-]*:/,DE=/^(https?:|mailto:|tel:)/i;function Pr(e){if(typeof e!="string")return;const t=e.trim();if(!(!t||TE.test(t)))return PE.test(t)?DE.test(t)?t:void 0:t}const OE=[["ariaLabel","aria-label"],["ariaLabelledBy","aria-labelledby"],["ariaDescribedBy","aria-describedby"],["ariaControls","aria-controls"],["ariaActiveDescendant","aria-activedescendant"],["ariaOrientation","aria-orientation"]],ME=[["ariaHidden","aria-hidden"],["ariaExpanded","aria-expanded"],["ariaSelected","aria-selected"]],NE=[["ariaChecked","aria-checked"],["ariaPressed","aria-pressed"]],VE=[["ariaValueNow","aria-valuenow"],["ariaValueMin","aria-valuemin"],["ariaValueMax","aria-valuemax"]],Bt=new WeakMap;function $E(e){return O(function*(){let t=Bt.get(e);if(!t){const r={pointer:!1,refs:0,cleanup:()=>{}},o=()=>{r.pointer=!0},i=()=>{r.pointer=!1};e.addEventListener("pointerdown",o,!0),e.addEventListener("mousedown",o,!0),e.addEventListener("keydown",i,!0),r.cleanup=()=>{e.removeEventListener("pointerdown",o,!0),e.removeEventListener("mousedown",o,!0),e.removeEventListener("keydown",i,!0)},Bt.set(e,r),t=r}const n=t;return yield*ie(x(()=>{n.refs+=1}),()=>x(()=>{const r=Bt.get(e);r&&(r.refs-=1,r.refs<=0&&(r.cleanup(),Bt.delete(e)))})),{isPointer:()=>{var r,o;return(r=(o=Bt.get(e))===null||o===void 0?void 0:o.pointer)!==null&&r!==void 0?r:!1}}})}function ye(e,t){return Array.isArray(e.__events)&&e.__events.includes(t)}function ar(e,t){if(!t)return!1;const n=typeof t.closest=="function"?t:t.parentElement,r=n==null?void 0:n.closest(RE);return!!(r&&r!==e&&e.contains(r))}function FE(e,t){for(const[n,r]of OE){const o=t[n];typeof o=="string"&&o.length>0?e.setAttribute(r,o):e.removeAttribute(r)}for(const[n,r]of ME){const o=t[n];typeof o=="boolean"?e.setAttribute(r,String(o)):e.removeAttribute(r)}}function BE(e,t,n){typeof t.ariaDisabled=="boolean"?e.setAttribute("aria-disabled",String(t.ariaDisabled)):n?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled"),t.ariaCurrent!==void 0&&t.ariaCurrent!==!1?e.setAttribute("aria-current",String(t.ariaCurrent)):e.removeAttribute("aria-current");for(const[i,a]of NE){const s=t[i];typeof s=="boolean"||s==="mixed"?e.setAttribute(a,String(s)):e.removeAttribute(a)}const r=t.ariaHasPopup;typeof r=="boolean"||typeof r=="string"&&r.length>0?e.setAttribute("aria-haspopup",String(r)):e.removeAttribute("aria-haspopup");const o=t.ariaInvalid;typeof o=="boolean"||o==="grammar"||o==="spelling"?e.setAttribute("aria-invalid",String(o)):e.removeAttribute("aria-invalid");for(const[i,a]of VE){const s=t[i];typeof s=="number"&&Number.isFinite(s)?e.setAttribute(a,String(s)):e.removeAttribute(a)}}function HE(e,t,n){if(e.tagName!=="A")return!1;const r=Pr(t.href);return n||r===void 0?(e.removeAttribute("href"),e.removeAttribute("target"),e.removeAttribute("rel"),r!==void 0):(e.setAttribute("href",r),t.target==="_blank"?(e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer")):(e.removeAttribute("target"),e.removeAttribute("rel")),!0)}function zs(e,t,n,r,o){const i=ye(t,"onPress"),a=!!t.disabled,s=HE(e,t,a),l=typeof t.focusRing=="boolean"?t.focusRing:i||s,c=typeof t.role=="string"&&t.role.length>0?t.role:!s&&i?"button":void 0,u=i||s||ye(t,"onKeyDown")||ye(t,"onFocus")||ye(t,"onBlur"),d=typeof t.tabIndex=="number"&&Number.isFinite(t.tabIndex)?Math.trunc(t.tabIndex):void 0;return e.id=J(n,"pressable",t.id,t.autoId,r),e.setAttribute("data-sw-pressable","true"),e.setAttribute("data-disabled",a?"true":"false"),e.setAttribute("data-focus-ring",l?"true":"false"),c?e.setAttribute("role",c):e.removeAttribute("role"),a?(e.removeAttribute("tabindex"),e.setAttribute("data-hovered","false"),e.setAttribute("data-pressed","false"),e.setAttribute("data-focus-visible","false")):d!==void 0?e.setAttribute("tabindex",String(d)):s?(o==null?void 0:o.explicitTabIndex)!==void 0&&e.removeAttribute("tabindex"):u?(!o||o.disabled||!o.interactive||o.explicitTabIndex!==void 0||!e.hasAttribute("tabindex"))&&e.setAttribute("tabindex","0"):e.removeAttribute("tabindex"),FE(e,t),BE(e,t,a),{explicitTabIndex:d,interactive:u,disabled:a}}let WE=0;function GE(e,t){return Array.isArray(e)&&e.includes(t)}function jE(e,t,n,r){const o=e.tagName==="A"&&Pr(n.href)!==void 0;if(n.disabled){o&&t.preventDefault();return}if(!(t.defaultPrevented||ar(e,t.target))){if(o){if(t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||n.target==="_blank")return;ye(n,"onPress")&&(t.preventDefault(),r("onPress"));return}ye(n,"onPress")&&r("onPress")}}function zE(e,t,n,r){let o;const i=()=>{e.setAttribute("data-pressed","false"),o==null||o(),o=void 0};return e.addEventListener("pointerenter",()=>{r().disabled||e.setAttribute("data-hovered","true")}),e.addEventListener("pointerleave",()=>e.setAttribute("data-hovered","false")),e.addEventListener("pointerdown",a=>{if(r().disabled||a.button!==void 0&&a.button!==0||ar(e,a.target))return;e.setAttribute("data-pressed","true"),o==null||o();const s=()=>i();t.addEventListener("pointerup",s,!0),t.addEventListener("pointercancel",s,!0),o=()=>{t.removeEventListener("pointerup",s,!0),t.removeEventListener("pointercancel",s,!0)}}),e.addEventListener("pointerup",i),e.addEventListener("pointercancel",i),e.addEventListener("click",a=>{jE(e,a,r(),n)}),e.addEventListener("contextmenu",a=>{var s,l;const c=r();c.disabled||!ye(c,"onContextMenu")||ar(e,a.target)||(a.preventDefault(),n("onContextMenu",{clientX:(s=a.clientX)!==null&&s!==void 0?s:0,clientY:(l=a.clientY)!==null&&l!==void 0?l:0}))}),i}function UE(e,t,n,r,o){e.addEventListener("focus",()=>{n().disabled||e.setAttribute("data-focus-visible",r()?"false":"true")}),e.addEventListener("blur",()=>{e.setAttribute("data-focus-visible","false"),o()}),e.addEventListener("focusin",i=>{const a=n();!a.disabled&&ye(a,"onFocusWithinChange")&&!e.contains(i.relatedTarget)&&t("onFocusWithinChange",!0)}),e.addEventListener("focusout",i=>{ye(n(),"onFocusWithinChange")&&!e.contains(i.relatedTarget)&&t("onFocusWithinChange",!1)}),e.addEventListener("keydown",i=>{const a=n();if(a.disabled||ar(e,i.target))return;const s=i.defaultPrevented;GE(a.preventDefaultKeys,i.key)&&i.preventDefault(),ye(a,"onKeyDown")&&t("onKeyDown",{key:i.key,code:i.code,shiftKey:i.shiftKey,ctrlKey:i.ctrlKey,altKey:i.altKey,metaKey:i.metaKey,repeat:i.repeat});const l=e.tagName==="A"&&Pr(a.href)!==void 0,c=l?i.key==="Enter":i.key==="Enter"||i.key===" ",u=!l||a.target!=="_blank";ye(a,"onPress")&&u&&!s&&c&&(i.preventDefault(),i.repeat||(e.setAttribute("data-pressed","true"),t("onPress")))}),e.addEventListener("keyup",i=>{(i.key==="Enter"||i.key===" ")&&e.setAttribute("data-pressed","false")})}const qE=[{type:"sw-pressable",styles:dE,onMount:e=>O(function*(){const t=yield*ae,n=yield*ur,r=yield*ee(),o=Pr(e.href)!==void 0,i=t.document.createElement(o?"a":"div"),a=++WE;let s=e,l=e.style;const c=(h,g)=>{r(n.dispatchEvent(h,g))};i.setAttribute("data-hovered","false"),i.setAttribute("data-pressed","false"),i.setAttribute("data-focus-visible","false"),j(i,l,void 0,ir);let u=zs(i,s,t,a);const d=yield*$E(t.document),f=cd(i,{rootContainer:t.rootContainer,dispatchEvent:c},e,{isDisabled:h=>!!h.disabled}),p=zE(i,t.document,c,()=>s);return UE(i,c,()=>s,d.isPointer,p),yield*ne(()=>x(()=>{p(),f.dispose()})),{element:i,update(h){const g=h.style;j(i,g,l,ir),l=g,s=h,h.disabled&&p(),u=zs(i,h,t,a,u),f.update(h)},invoke(h){if(h==="focus"){s.disabled||i.focus();return}if(h==="blur"){i.blur();return}return h==="measure"?ml(i):Promise.reject(new ue({method:h,message:`Unsupported method "${h}" on sw-pressable.`}))}}})}];function KE(e,t,n,r){return{enabledCount:0,disabled:r,orientation:e,loop:t,dir:n,isControlled:!1,controlledIndex:-1,lastActiveIndex:-1,tabStopIndex:-1}}function XE(e,t,n){if(e==="Home")return"home";if(e==="End")return"end";const r=t==="horizontal"||t==="both",o=t==="vertical"||t==="both";return r&&e==="ArrowRight"?n==="rtl"?"prev":"next":r&&e==="ArrowLeft"?n==="rtl"?"next":"prev":o&&e==="ArrowDown"?"next":o&&e==="ArrowUp"?"prev":"none"}function Ti(e,t,n,r,o,i,a,s,l){const c=t<0?0:t,u=a&&s>=0&&s<c?s:-1,d=l>=0&&l<c?l:-1;if(n||c===0)return{enabledCount:c,disabled:n,orientation:r,loop:o,dir:i,isControlled:a,controlledIndex:u,lastActiveIndex:d,tabStopIndex:-1};const f=u>=0?u:d>=0?d:0;return{enabledCount:c,disabled:n,orientation:r,loop:o,dir:i,isControlled:a,controlledIndex:u,lastActiveIndex:f,tabStopIndex:f}}function YE(e,t,n){if(e.disabled||e.enabledCount<=0||t<0||t>=e.enabledCount)return{next:e,handled:!1,changed:!1,targetIndex:-1};const r=XE(n,e.orientation,e.dir);if(r==="none")return{next:e,handled:!1,changed:!1,targetIndex:-1};const o=r==="home"?0:r==="end"?e.enabledCount-1:r==="next"?t+1:t-1,i=r==="home"||r==="end"?o:e.loop?(o+e.enabledCount)%e.enabledCount:o<0?0:o>=e.enabledCount?e.enabledCount-1:o;return{next:y(y({},e),{},{lastActiveIndex:i,tabStopIndex:i}),handled:!0,changed:i!==t,targetIndex:i}}function ZE(e,t){if(e.disabled||t<0||t>=e.enabledCount)return{next:e,shouldUpdateTabStops:!1};const n=!e.isControlled;return{next:y(y({},e),{},{lastActiveIndex:t,tabStopIndex:n?t:e.tabStopIndex}),shouldUpdateTabStops:n}}function Pi(e){return e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"||e.getAttribute("data-disabled")==="true"}function Di(e,t){const n=[];for(const r of t.itemIds){const o=ce(e,r);o&&n.push(o)}return n}function Oi(e,t){for(const n of e)n.tabIndex=n===t?0:-1}function QE(e,t){const n=Di(e,t.config),r=n.filter(l=>!Pi(l)),o=t.config.activeId!==void 0,i=o?r.findIndex(l=>l.id===t.config.activeId):-1,a=t.lastActiveId?r.findIndex(l=>l.id===t.lastActiveId):-1;t.machine=Ti(t.machine,r.length,t.config.disabled,t.config.orientation,t.config.loop,t.config.dir,o,i,a);const s=t.machine.tabStopIndex>=0?r[t.machine.tabStopIndex]:void 0;s&&(t.lastActiveId=s.id),Oi(n,s)}function JE(e,t,n,r){if(t.config.disabled||n.defaultPrevented||n.altKey||n.ctrlKey||n.metaKey)return;const o=Di(e,t.config),i=o.filter(f=>!Pi(f));if(i.length===0)return;const a=e.document.activeElement,s=i.findIndex(f=>f===a||f===n.target||f.contains(a));if(s===-1)return;const l=t.config.activeId!==void 0,c=l?i.findIndex(f=>f.id===t.config.activeId):-1,u=YE(Ti(t.machine,i.length,t.config.disabled,t.config.orientation,t.config.loop,t.config.dir,l,c,s),s,n.key);if(!u.handled)return;n.preventDefault(),n.stopPropagation(),t.machine=u.next;const d=i[u.targetIndex];t.lastActiveId=d.id,Oi(o,d),d.focus(),u.changed&&r({token:t.token,activeId:d.id})}function eS(e,t,n,r){const o=a=>{if(t.config.disabled)return;const s=Di(e,t.config),l=s.filter(g=>!Pi(g)),c=l.findIndex(g=>g===a.target||g.contains(a.target));if(c===-1)return;const u=t.config.activeId!==void 0,d=u?l.findIndex(g=>g.id===t.config.activeId):-1,f=t.lastActiveId?l.findIndex(g=>g.id===t.lastActiveId):-1,p=ZE(Ti(t.machine,l.length,t.config.disabled,t.config.orientation,t.config.loop,t.config.dir,u,d,f),c);t.machine=p.next;const h=l[c];t.lastActiveId=h.id,p.shouldUpdateTabStops&&Oi(s,h)},i=a=>JE(e,t,a,r);return n.addEventListener("focusin",o),n.addEventListener("keydown",i),()=>{n.removeEventListener("focusin",o),n.removeEventListener("keydown",i)}}function tS(e,t){const n=new Map;return{sync:a=>{const s=ce(e,a.containerId);let l=n.get(a.token);if(l||(l={token:a.token,containerEl:null,config:a,machine:KE(a.orientation,a.loop,a.dir,a.disabled),lastActiveId:a.activeId},n.set(a.token,l)),l.config=a,l.containerEl!==s){var c;(c=l.unbind)===null||c===void 0||c.call(l),l.containerEl=s,l.unbind=s?eS(e,l,s,t):void 0}QE(e,l)},remove:a=>{var s;const l=n.get(a);l&&((s=l.unbind)===null||s===void 0||s.call(l),n.delete(a))},dispose:()=>{var a;for(const s of n.values())(a=s.unbind)===null||a===void 0||a.call(s);n.clear()}}}const nS=[{type:"sw-roving-focus",onAttach:O(function*(){const e=yield*ae,t=yield*be,n=yield*me,r=yield*ee(),o=tS(e,i=>{r(n.emit(yf,i).pipe(te))});yield*t.registerCommand(jd,i=>x(()=>o.sync(i))),yield*t.registerCommand(zd,i=>x(()=>o.remove(i.token))),yield*ne(()=>x(()=>o.dispose()))})}];function ud(e){return{direction:e.direction,overflowV:!1,overflowH:!1,horizontalWheelBound:!1,dragAxis:"none",hasEndReached:e.hasEndReached,endReachedLatchedY:!1,latchedScrollHeight:0,endReachedLatchedX:!1,latchedScrollWidth:0,hasViewportNeed:e.hasViewportNeed,hasViewportWindow:e.hasViewportWindow,windowVersion:e.windowVersion,windowBusy:e.windowBusy,inFlight:!1,inFlightVersion:0,disposed:!1}}function rS(e,t,n,r){if(e.disposed)return e;const o=t==="horizontal"&&r,i=e.dragAxis==="vertical"&&n||e.dragAxis==="horizontal"&&r;return y(y({},e),{},{direction:t,overflowV:n,overflowH:r,horizontalWheelBound:o,dragAxis:i?e.dragAxis:"none"})}function oS(e,t){return e.disposed?{next:e,started:!1}:(t==="vertical"?e.overflowV:e.overflowH)?{next:y(y({},e),{},{dragAxis:t}),started:!0}:{next:e,started:!1}}function iS(e){return e.dragAxis==="none"?e:y(y({},e),{},{dragAxis:"none"})}function aS(e,t){if(e.disposed)return e;const n=!t.hasEndReached,r=!t.hasViewportNeed||!t.hasViewportWindow||e.inFlight&&e.inFlightVersion!==t.windowVersion;return y(y({},e),{},{direction:t.direction,horizontalWheelBound:t.direction==="horizontal"&&e.overflowH,hasEndReached:t.hasEndReached,endReachedLatchedY:n?!1:e.endReachedLatchedY,latchedScrollHeight:n?0:e.latchedScrollHeight,endReachedLatchedX:n?!1:e.endReachedLatchedX,latchedScrollWidth:n?0:e.latchedScrollWidth,hasViewportNeed:t.hasViewportNeed,hasViewportWindow:t.hasViewportWindow,windowVersion:t.windowVersion,windowBusy:t.windowBusy,inFlight:r?!1:e.inFlight,inFlightVersion:r?0:e.inFlightVersion})}function dd(e,t){if(e.disposed)return{next:e,fireEndReached:!1,fireViewportNeed:!1};const n=e.hasEndReached&&t.reachedY?e.endReachedLatchedY:!1,r=n?e.latchedScrollHeight:0,o=e.hasEndReached&&t.reachedX?e.endReachedLatchedX:!1,i=o?e.latchedScrollWidth:0,a=e.hasEndReached&&t.reachedY&&(!n||r!==t.scrollHeight),s=e.hasEndReached&&t.reachedX&&(!o||i!==t.scrollWidth),l=a||s,c=l&&t.reachedY?!0:n,u=l&&t.reachedY?t.scrollHeight:r,d=l&&t.reachedX?!0:o,f=l&&t.reachedX?t.scrollWidth:i,p=!e.hasViewportNeed||!e.hasViewportWindow||t.viewportSatisfied,h=e.inFlight&&e.inFlightVersion===e.windowVersion&&!t.viewportJumped,g=!p&&!e.windowBusy&&!h,v=p?!1:g?!0:e.inFlight,b=p?0:g?e.windowVersion:e.inFlightVersion;return{next:y(y({},e),{},{endReachedLatchedY:c,latchedScrollHeight:u,endReachedLatchedX:d,latchedScrollWidth:f,inFlight:v,inFlightVersion:b}),fireEndReached:l,fireViewportNeed:g}}function sS(e,t){if(e.disposed)return{next:e,fireEndReached:!1,fireViewportNeed:!1};const n=!e.hasViewportNeed||!e.hasViewportWindow||e.inFlightVersion!==e.windowVersion||t.viewportSatisfied;return dd(e.inFlight&&n?y(y({},e),{},{inFlight:!1,inFlightVersion:0}):e,t)}function fd(e){return y(y({},e),{},{horizontalWheelBound:!1,dragAxis:"none",endReachedLatchedY:!1,latchedScrollHeight:0,endReachedLatchedX:!1,latchedScrollWidth:0,inFlight:!1,inFlightVersion:0,disposed:!0})}const lS=24;function sr(e,t,n){const r=t==="vertical"?e.clientHeight:e.clientWidth,o=t==="vertical"?e.scrollHeight:e.scrollWidth,i=Math.max(0,o-r);return{viewportSize:r,contentSize:o,maxScroll:i,overflow:n&&r>0&&i>0}}function pd(e){const t=/^(\d+(?:\.\d+)?)px$/.exec(e);if(t)return Number(t[1]);const n=/^(\d+(?:\.\d+)?)rem$/.exec(e);return n?Number(n[1])*16:10}function hd(e,t,n,r,o){const i=n*2,a=t>0?Math.max(0,t-i):Math.max(0,e.viewportSize-o-i);if(a<=0||e.contentSize<=0)return{size:0,offset:0,maxOffset:0,progress:0};const s=Math.min(lS,a),l=e.viewportSize/e.contentSize,c=Math.max(s,Math.min(a,a*l)),u=Math.max(0,a-c),d=e.maxScroll>0?Math.min(1,Math.max(0,r/e.maxScroll)):0;return{size:c,offset:d*u,maxOffset:u,progress:d}}function lr(e,t,n){return t===1?e*16:t===2?e*(n>0?n:400):e}function cS(e,t,n,r){return O(function*(){var o,i;const a=e.defaultView,s=(o=a==null?void 0:a.ResizeObserver)!==null&&o!==void 0?o:globalThis.ResizeObserver,l=(i=a==null?void 0:a.MutationObserver)!==null&&i!==void 0?i:globalThis.MutationObserver,c=new Set,u=yield*ie(x(()=>typeof s=="function"?new s(r):void 0),f=>x(()=>{f==null||f.disconnect(),c.clear()})),d=()=>{if(!u)return;const f=new Set([t,n,...Array.from(n.children)]);for(const p of c)f.has(p)||(u.unobserve(p),c.delete(p));for(const p of f)c.has(p)||(u.observe(p),c.add(p))};return yield*ie(x(()=>{if(typeof l!="function")return;const f=new l(()=>{d(),r()});return f.observe(n,{childList:!0,subtree:!0}),f}),f=>x(()=>f==null?void 0:f.disconnect())),d(),{syncObserved:d}})}function Uo(e,t){return!Number.isFinite(e)||t<=0?0:Math.max(0,Math.min(t,e))}function uS(e,t){var n,r,o,i;const a=t,s=lr((n=a.deltaX)!==null&&n!==void 0?n:0,(r=a.deltaMode)!==null&&r!==void 0?r:0,e.content.clientWidth),l=lr((o=a.deltaY)!==null&&o!==void 0?o:0,(i=a.deltaMode)!==null&&i!==void 0?i:0,e.content.clientHeight),c=e.config.direction==="horizontal"||e.config.direction==="both",u=e.config.direction==="vertical"||e.config.direction==="both";let d=!1;if(u&&l!==0){const p=e.content.scrollTop,h=Math.max(0,e.content.scrollHeight-e.content.clientHeight);e.content.scrollTop=Uo(p+l,h),e.content.scrollTop!==p&&(d=!0)}const f=e.config.direction==="horizontal"&&s===0&&l!==0?l:s;if(c&&f!==0){const p=e.content.scrollLeft,h=Math.max(0,e.content.scrollWidth-e.content.clientWidth);e.content.scrollLeft=Uo(p+f,h),e.content.scrollLeft!==p&&(d=!0)}d&&(a.preventDefault(),a.stopPropagation(),e.sync())}function dS(e,t){var n,r,o,i;if(e.config.direction!=="horizontal")return;const a=t;if(a.ctrlKey||a.metaKey)return;const s=lr((n=a.deltaX)!==null&&n!==void 0?n:0,(r=a.deltaMode)!==null&&r!==void 0?r:0,e.content.clientWidth),l=lr((o=a.deltaY)!==null&&o!==void 0?o:0,(i=a.deltaMode)!==null&&i!==void 0?i:0,e.content.clientHeight);if(l===0||Math.abs(s)>=Math.abs(l))return;const c=Math.max(0,e.content.scrollWidth-e.content.clientWidth);if(c<=0)return;const u=e.content.scrollLeft,d=Uo(u+l,c);d!==u&&(e.content.scrollLeft=d,a.preventDefault(),a.stopPropagation(),e.sync())}function fS(e){let t=!1;const n=o=>dS(e,o),r=()=>{t&&(e.content.removeEventListener("wheel",n),t=!1)};return{sync(o){const i=e.config.direction==="horizontal"&&o;i&&!t?(e.content.addEventListener("wheel",n,{passive:!1}),t=!0):i||r()},dispose:r}}function md(e,t){return Math.max(0,Math.min(t,e))}function gd(e,t){return t==="vertical"?e.scrollTop:e.scrollLeft}function Mi(e,t,n){t==="vertical"?e.scrollTop=n:e.scrollLeft=n}function kn(e,t){e.track.style.padding=`${t.paddingPx}px`,e.track.style.setProperty("--sw-sa-sb-size",t.width),e.track.setAttribute("data-custom-color",t.color?"true":"false"),t.color?e.track.style.setProperty("--sw-sa-sb-color",t.color):e.track.style.removeProperty("--sw-sa-sb-color"),t.trackColor?e.track.style.setProperty("--sw-sa-sb-track",t.trackColor):e.track.style.removeProperty("--sw-sa-sb-track")}function Us(e,t,n,r){const o=r?e.config.width:"0px",i=r?pd(e.config.width):0;if(t.track.style.setProperty("--sw-sa-sb-corner",o),t.track.setAttribute("data-visible",n.overflow?"true":"false"),!n.overflow){t.track.setAttribute("aria-hidden","true"),t.thumb.style.removeProperty("height"),t.thumb.style.removeProperty("width"),t.thumb.style.transform="translate3d(0, 0, 0)";return}t.track.removeAttribute("aria-hidden");const a=t.axis==="vertical"?t.track.clientHeight:t.track.clientWidth,s=gd(e.content,t.axis),l=hd(n,a,e.config.paddingPx,s,i);t.track.setAttribute("aria-valuenow",String(Math.round(l.progress*100))),t.axis==="vertical"?(t.thumb.style.height=`${l.size}px`,t.thumb.style.transform=`translate3d(0, ${l.offset}px, 0)`):(t.thumb.style.width=`${l.size}px`,t.thumb.style.transform=`translate3d(${l.offset}px, 0, 0)`)}function Lt(e){var t,n;const r=e.drag;if(e.machine=iS(e.machine),!!r){e.drag=void 0,(t=e.releaseDocListeners)===null||t===void 0||t.call(e),e.releaseDocListeners=void 0,r.track.removeAttribute("data-dragging"),(n=e.doc.documentElement)===null||n===void 0||n.removeAttribute("data-sw-scroll-area-dragging");try{var o,i;!((o=(i=r.track).hasPointerCapture)===null||o===void 0)&&o.call(i,r.pointerId)&&r.track.releasePointerCapture(r.pointerId)}catch{}}}function vd(e,t){var n;const r=e.drag;if(!r||e.seenEvents.has(t))return;e.seenEvents.add(t);const o=t;if(((n=o.pointerId)!==null&&n!==void 0?n:0)!==r.pointerId)return;const i=(r.axis==="vertical"?o.clientY:o.clientX)-r.startCoord;if(r.maxOffset<=0||r.maxScroll<=0)return;const a=md(r.startScroll+i*r.maxScroll/r.maxOffset,r.maxScroll);Mi(e.content,r.axis,a),e.sync()}function yd(e,t){var n;const r=e.drag;!r||e.seenEvents.has(t)||(e.seenEvents.add(t),((n=t.pointerId)!==null&&n!==void 0?n:0)===r.pointerId&&Lt(e))}function pS(e){const t=o=>vd(e,o),n=o=>yd(e,o),r=o=>{o.key!=="Escape"||!e.drag||(Mi(e.content,e.drag.axis,e.drag.startScroll),Lt(e),e.sync())};e.doc.addEventListener("pointermove",t),e.doc.addEventListener("pointerup",n),e.doc.addEventListener("pointercancel",n),e.doc.addEventListener("keydown",r),e.releaseDocListeners=()=>{e.doc.removeEventListener("pointermove",t),e.doc.removeEventListener("pointerup",n),e.doc.removeEventListener("pointercancel",n),e.doc.removeEventListener("keydown",r)}}function qs(e,t,n,r,o,i){var a,s;Lt(e);const l=oS(e.machine,t.axis);if(!l.started)return;e.machine=l.next;const c=(a=n.pointerId)!==null&&a!==void 0?a:0;e.drag={axis:t.axis,track:t.track,pointerId:c,startCoord:t.axis==="vertical"?n.clientY:n.clientX,startScroll:r,maxScroll:o,maxOffset:i};try{var u,d;(u=(d=t.track).setPointerCapture)===null||u===void 0||u.call(d,c)}catch{}t.track.setAttribute("data-dragging","true"),(s=e.doc.documentElement)===null||s===void 0||s.setAttribute("data-sw-scroll-area-dragging","true"),pS(e)}function hS(e,t,n){const r=n;if(r.button!==void 0&&r.button!==0)return;const o=e.config.direction===t.axis||e.config.direction==="both",i=sr(e.content,t.axis,o);if(!i.overflow)return;r.preventDefault(),r.stopPropagation();const a=e.config.direction==="both",s=t.axis==="vertical"?"horizontal":"vertical",l=a&&sr(e.content,s,!0).overflow?pd(e.config.width):0,c=t.axis==="vertical"?t.track.clientHeight:t.track.clientWidth,u=gd(e.content,t.axis),d=hd(i,c,e.config.paddingPx,u,l);if(r.target===t.thumb){qs(e,t,r,u,i.maxScroll,d.maxOffset);return}const f=t.track.getBoundingClientRect(),p=t.axis==="vertical"?r.clientY-f.top:r.clientX-f.left,h=Math.max(0,Math.min(d.maxOffset,p-e.config.paddingPx-d.size/2)),g=d.maxOffset>0?md(h/d.maxOffset*i.maxScroll,i.maxScroll):0;Mi(e.content,t.axis,g),e.sync(),qs(e,t,r,g,i.maxScroll,d.maxOffset)}function Ks(e,t){const n=l=>hS(e,t,l),r=l=>vd(e,l),o=l=>yd(e,l),s=[["pointerdown",n],["pointermove",r],["pointerup",o],["pointercancel",o],["lostpointercapture",l=>{var c;e.drag&&((c=l.pointerId)!==null&&c!==void 0?c:0)===e.drag.pointerId&&Lt(e)}],["wheel",l=>uS(e,l),{passive:!1}]];for(const[l,c,u]of s)t.track.addEventListener(l,c,u);return()=>{for(const[l,c]of s)t.track.removeEventListener(l,c)}}function mS(e,t,n,r,o){return{doc:e,content:t,vNodes:n,hNodes:r,seenEvents:new WeakSet,config:o,machine:ud({direction:o.direction,hasEndReached:!1,hasViewportNeed:!1,hasViewportWindow:!1,windowVersion:0,windowBusy:!1}),sync:()=>{}}}function gS(e,t,n,r,o){const i=mS(e,t,n,r,o),a=fS(i),s=()=>{const d=i.config.direction==="vertical"||i.config.direction==="both",f=i.config.direction==="horizontal"||i.config.direction==="both",p=sr(t,"vertical",d),h=sr(t,"horizontal",f);i.machine=rS(i.machine,i.config.direction,p.overflow,h.overflow),i.machine.dragAxis==="none"&&i.drag&&Lt(i);const g=i.machine.overflowV&&i.machine.overflowH;Us(i,n,p,g),Us(i,r,h,g),a.sync(i.machine.horizontalWheelBound)};i.sync=s,kn(n,o),kn(r,o);const l=()=>s();t.addEventListener("scroll",l,{passive:!0});const c=Ks(i,n),u=Ks(i,r);return s(),{updateConfig(d){i.config=d,kn(n,d),kn(r,d),s()},sync:s,dispose(){Lt(i),i.machine=fd(i.machine),a.dispose(),t.removeEventListener("scroll",l),c(),u()}}}const vS="0.625rem",yS=new Set(["flexDirection","justifyContent","alignItems","flexWrap","gap","rowGap","columnGap","paddingTop","paddingRight","paddingBottom","paddingLeft","overflow","overflowX","overflowY"]),_S={display:"flex",flexDirection:"column",position:"relative",minWidth:"0px",minHeight:"0px",overflow:"hidden",borderTopWidth:"0px",borderRightWidth:"0px",borderBottomWidth:"0px",borderLeftWidth:"0px"};function bS(e){const t=Ni(e);return{display:"flex",flexDirection:t==="horizontal"?"row":"column",minWidth:"0px",minHeight:"0px",overflowX:t==="horizontal"||t==="both"?"auto":"hidden",overflowY:t==="vertical"||t==="both"?"auto":"hidden"}}function Ni(e){return e==="horizontal"||e==="both"?e:"vertical"}function wS(e){if(!e)return{rootStyle:void 0,contentStyle:void 0};const t={},n={};let r=!1,o=!1;for(const[i,a]of Object.entries(e))yS.has(i)?(n[i]=a,o=!0):(t[i]=a,r=!0);return{rootStyle:r?t:void 0,contentStyle:o?n:void 0}}function ES(e){const t=/^(\d+(?:\.\d+)?)px$/.exec(e);if(t&&Number(t[1])<4)return 0;const n=/^(\d+(?:\.\d+)?)rem$/.exec(e);return n&&Number(n[1])<.25?0:1}function Xs(e){const t=typeof e.scrollbarWidth=="string"&&e.scrollbarWidth.length>0?e.scrollbarWidth:vS,n=typeof e.scrollbarColor=="string"&&e.scrollbarColor.length>0?e.scrollbarColor:void 0,r=typeof e.scrollbarTrackColor=="string"&&e.scrollbarTrackColor.length>0?e.scrollbarTrackColor:void 0;return{direction:Ni(e.direction),width:t,paddingPx:ES(t),color:n,trackColor:r}}const SS=`
|
|
263
|
+
[data-sw-scroll-area] {
|
|
264
|
+
position: relative;
|
|
265
|
+
display: flex;
|
|
266
|
+
flex-direction: column;
|
|
267
|
+
min-width: 0;
|
|
268
|
+
min-height: 0;
|
|
269
|
+
overflow: hidden;
|
|
270
|
+
box-sizing: border-box;
|
|
271
|
+
}
|
|
272
|
+
[data-sw-scroll-area-content] {
|
|
273
|
+
display: flex;
|
|
274
|
+
flex: 1 1 auto;
|
|
275
|
+
width: 100%;
|
|
276
|
+
min-width: 0;
|
|
277
|
+
min-height: 0;
|
|
278
|
+
max-width: 100%;
|
|
279
|
+
max-height: 100%;
|
|
280
|
+
box-sizing: border-box;
|
|
281
|
+
border-radius: inherit;
|
|
282
|
+
scrollbar-width: none;
|
|
283
|
+
-ms-overflow-style: none;
|
|
284
|
+
}
|
|
285
|
+
[data-sw-scroll-area-content]::-webkit-scrollbar {
|
|
286
|
+
display: none;
|
|
287
|
+
width: 0;
|
|
288
|
+
height: 0;
|
|
289
|
+
}
|
|
290
|
+
[data-sw-scroll-area-scrollbar] {
|
|
291
|
+
position: absolute;
|
|
292
|
+
z-index: 1;
|
|
293
|
+
box-sizing: border-box;
|
|
294
|
+
display: flex;
|
|
295
|
+
touch-action: none;
|
|
296
|
+
user-select: none;
|
|
297
|
+
-webkit-user-select: none;
|
|
298
|
+
background-color: var(--sw-sa-sb-track, transparent);
|
|
299
|
+
transition-property: opacity, background-color;
|
|
300
|
+
transition-duration: 150ms;
|
|
301
|
+
transition-timing-function: ease;
|
|
302
|
+
}
|
|
303
|
+
[data-sw-scroll-area-scrollbar][data-visible="false"] {
|
|
304
|
+
opacity: 0;
|
|
305
|
+
pointer-events: none;
|
|
306
|
+
}
|
|
307
|
+
[data-sw-scroll-area-scrollbar][data-visible="true"] {
|
|
308
|
+
opacity: 1;
|
|
309
|
+
pointer-events: auto;
|
|
310
|
+
}
|
|
311
|
+
[data-sw-scroll-area-scrollbar][data-orientation="vertical"] {
|
|
312
|
+
top: 0;
|
|
313
|
+
right: 0;
|
|
314
|
+
bottom: var(--sw-sa-sb-corner, 0px);
|
|
315
|
+
width: var(--sw-sa-sb-size, 0.625rem);
|
|
316
|
+
flex-direction: column;
|
|
317
|
+
}
|
|
318
|
+
[data-sw-scroll-area-scrollbar][data-orientation="horizontal"] {
|
|
319
|
+
left: 0;
|
|
320
|
+
right: var(--sw-sa-sb-corner, 0px);
|
|
321
|
+
bottom: 0;
|
|
322
|
+
height: var(--sw-sa-sb-size, 0.625rem);
|
|
323
|
+
flex-direction: row;
|
|
324
|
+
}
|
|
325
|
+
[data-sw-scroll-area-thumb] {
|
|
326
|
+
position: relative;
|
|
327
|
+
flex-shrink: 0;
|
|
328
|
+
border-radius: 9999px;
|
|
329
|
+
background-color: var(--sw-sa-sb-color, var(--sw-border));
|
|
330
|
+
transition-property: background-color;
|
|
331
|
+
transition-duration: 150ms;
|
|
332
|
+
transition-timing-function: ease;
|
|
333
|
+
}
|
|
334
|
+
[data-sw-scroll-area-scrollbar][data-orientation="vertical"] [data-sw-scroll-area-thumb] {
|
|
335
|
+
width: 100%;
|
|
336
|
+
}
|
|
337
|
+
[data-sw-scroll-area-scrollbar][data-orientation="horizontal"] [data-sw-scroll-area-thumb] {
|
|
338
|
+
height: 100%;
|
|
339
|
+
}
|
|
340
|
+
@media (hover: hover) and (pointer: fine) {
|
|
341
|
+
[data-sw-scroll-area-scrollbar]:not([data-custom-color="true"]):hover [data-sw-scroll-area-thumb] {
|
|
342
|
+
background-color: var(--sw-border-focus);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
[data-sw-scroll-area-scrollbar]:not([data-custom-color="true"])[data-dragging="true"] [data-sw-scroll-area-thumb] {
|
|
346
|
+
background-color: var(--sw-border-focus);
|
|
347
|
+
}
|
|
348
|
+
:root[data-sw-scroll-area-dragging="true"],
|
|
349
|
+
:root[data-sw-scroll-area-dragging="true"] * {
|
|
350
|
+
user-select: none !important;
|
|
351
|
+
-webkit-user-select: none !important;
|
|
352
|
+
}
|
|
353
|
+
@media (prefers-reduced-motion: reduce) {
|
|
354
|
+
[data-sw-scroll-area-scrollbar],
|
|
355
|
+
[data-sw-scroll-area-thumb] {
|
|
356
|
+
transition-duration: 0ms;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
`;function _d(e,t){return typeof e=="number"&&Number.isFinite(e)&&e>=0?e:t}function AS(e){if(!e||typeof e!="object"||Array.isArray(e))return;const t=e;if(typeof t.top!="number"||!Number.isFinite(t.top)||typeof t.bottom!="number"||!Number.isFinite(t.bottom)||t.bottom<t.top)return;let n,r;if(t.left!==void 0||t.right!==void 0){if(typeof t.left!="number"||!Number.isFinite(t.left)||typeof t.right!="number"||!Number.isFinite(t.right)||t.right<t.left)return;n=t.left,r=t.right}return y(y({top:t.top,bottom:t.bottom},n!==void 0&&r!==void 0?{left:n,right:r}:{}),{},{margin:_d(t.margin,0),busy:!!t.busy})}function CS(e,t){return!e||!t?e===t:e.top===t.top&&e.bottom===t.bottom&&e.left===t.left&&e.right===t.right&&e.margin===t.margin&&e.busy===t.busy}function Ys(e,t,n,r,o,i){if(e<n||t>r)return!1;const a=n>0&&e<n+i,s=r<o&&t>r-i;return!a&&!s}function xS(e,t,n){return n?!(e!=="horizontal"&&t.clientHeight>0&&!Ys(t.scrollTop,t.scrollTop+t.clientHeight,n.top,n.bottom,t.scrollHeight,n.margin)||e!=="vertical"&&n.left!==void 0&&n.right!==void 0&&t.clientWidth>0&&!Ys(t.scrollLeft,t.scrollLeft+t.clientWidth,n.left,n.right,t.scrollWidth,n.margin)):!0}function kS(e,t,n,r,o,i){return n?e!=="horizontal"&&i.clientHeight>0&&Math.abs(i.scrollTop-r)>=i.clientHeight||e!=="vertical"&&(t==null?void 0:t.left)!==void 0&&(t==null?void 0:t.right)!==void 0&&i.clientWidth>0&&Math.abs(i.scrollLeft-o)>=i.clientWidth:!1}function Zs(e,t){return Array.isArray(e.__events)&&e.__events.includes(t)}function Qs(e,t){var n;return{direction:e.direction,hasEndReached:e.hasEndReached,hasViewportNeed:e.hasViewportNeed,hasViewportWindow:!!e.viewportWindow,windowVersion:t,windowBusy:!!(!((n=e.viewportWindow)===null||n===void 0)&&n.busy)}}function Js(e,t){const{direction:n,endReachedThreshold:r,viewportWindow:o}=e.config,i=n!=="horizontal"&&t.clientHeight>0&&t.scrollHeight-t.clientHeight>0&&t.scrollTop+t.clientHeight>=t.scrollHeight-r,a=n!=="vertical"&&t.clientWidth>0&&t.scrollWidth-t.clientWidth>0&&t.scrollLeft+t.clientWidth>=t.scrollWidth-r;return{reachedY:i,scrollHeight:t.scrollHeight,reachedX:a,scrollWidth:t.scrollWidth,viewportSatisfied:xS(n,t,o),viewportJumped:kS(n,o,e.machine.inFlight,e.inFlightScrollTop,e.inFlightScrollLeft,t)}}function el(e,t,n){e.machine=n.next,n.fireEndReached&&e.dispatchEvent("onEndReached",t),n.fireViewportNeed&&(e.inFlightScrollTop=t.scrollTop,e.inFlightScrollLeft=t.scrollLeft,e.dispatchEvent("onViewportNeed",t))}function qo(e){return{scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,scrollWidth:e.scrollWidth,clientWidth:e.clientWidth,scrollHeight:e.scrollHeight,clientHeight:e.clientHeight}}function tl(e){return{direction:Ni(e.direction),hasEndReached:Zs(e,"onEndReached"),endReachedThreshold:_d(e.endReachedThreshold,0),hasViewportNeed:Zs(e,"onViewportNeed"),viewportWindow:AS(e.viewportWindow)}}function IS(e,t,n){const r={content:e,dispatchEvent:n,config:t,windowVersion:1,machine:ud(Qs(t,1)),inFlightScrollTop:0,inFlightScrollLeft:0},o=()=>{if(r.machine.disposed)return;const i=qo(e);el(r,i,dd(r.machine,Js(r,i)))};return{check:o,updateConfig(i){r.machine.disposed||(CS(r.config.viewportWindow,i.viewportWindow)||(r.windowVersion+=1),r.config=i,r.machine=aS(r.machine,Qs(i,r.windowVersion)),o())},onAck(){if(r.machine.disposed)return;const i=qo(e);el(r,i,sS(r.machine,Js(r,i)))},dispose(){r.machine=fd(r.machine)}}}let LS=0,RS=0;function nl(e,t,n){const r=e.createElement("div");r.setAttribute("data-sw-scroll-area-scrollbar",t),r.setAttribute("data-orientation",t),r.setAttribute("data-visible","false"),r.setAttribute("role","scrollbar"),r.setAttribute("aria-controls",n),r.setAttribute("aria-orientation",t),r.setAttribute("aria-valuemin","0"),r.setAttribute("aria-valuemax","100"),r.setAttribute("aria-valuenow","0"),r.setAttribute("aria-hidden","true");const o=e.createElement("div");return o.setAttribute("data-sw-scroll-area-thumb",t),r.appendChild(o),{axis:t,track:r,thumb:o}}function bd(e,t){return e===void 0?re(void 0):e==="auto"||e==="instant"||e==="smooth"?re(e):he(new ue({method:t,message:`Invalid scroll behavior "${String(e)}" on sw-scroll-area.`}))}function rl(e,t,n){return e===void 0?re(void 0):e==="start"||e==="center"||e==="end"||e==="nearest"?re(e):he(new ue({method:n,message:`Invalid "${t}" alignment "${String(e)}" on sw-scroll-area.`}))}function ol(e,t,n){return e===void 0?re(void 0):typeof e=="number"&&Number.isFinite(e)?re(e):he(new ue({method:n,message:`Invalid "${t}" coordinate on sw-scroll-area: expected a finite number.`}))}function TS(e,t,n,r){const o=Zo(e.getElementById(r));if(St(o)&&(t.contains(o.value)||n.contains(o.value)))return o;for(const i of t===n?[t]:[t,n]){const a=i.querySelectorAll("[id]");for(let s=0;s<a.length;s+=1){const l=a[s];if(l&&l.id===r)return pr(l)}}return hr()}function PS(e,t,n){return O(function*(){if(!t||typeof t!="object"||Array.isArray(t))return yield*he(new ue({method:"scrollTo",message:'Invalid arguments for "scrollTo" on sw-scroll-area: expected an options object.'}));const r=t,o=yield*ol(r.top,"top","scrollTo"),i=yield*ol(r.left,"left","scrollTo"),a=yield*bd(r.behavior,"scrollTo"),s={};o!==void 0&&(s.top=o),i!==void 0&&(s.left=i),a!==void 0&&(s.behavior=a),e.scrollTo(s),n()})}function DS(e,t,n,r,o){return O(function*(){const i=r&&typeof r=="object"?r:{};if(typeof i.targetId!="string"||i.targetId.length===0)return yield*he(new ue({method:"scrollIntoView",message:'Invalid "targetId" for "scrollIntoView" on sw-scroll-area: expected a non-empty string.'}));const a=TS(e,t,n,i.targetId);if(Qt(a))return yield*he(new ue({method:"scrollIntoView",message:`Target element "${i.targetId}" was not found inside sw-scroll-area.`}));const s=i.options;if(s!==void 0&&(!s||typeof s!="object"||Array.isArray(s)))return yield*he(new ue({method:"scrollIntoView",message:'Invalid options for "scrollIntoView" on sw-scroll-area: expected an object.'}));const l=s??{},c=yield*rl(l.block,"block","scrollIntoView"),u=yield*rl(l.inline,"inline","scrollIntoView"),d=yield*bd(l.behavior,"scrollIntoView"),f={};c!==void 0&&(f.block=c),u!==void 0&&(f.inline=u),d!==void 0&&(f.behavior=d),a.value.scrollIntoView(Object.keys(f).length>0?f:void 0),o()})}function il(e,t){return new Promise((n,r)=>{e(t.pipe(Zd({onSuccess:o=>n(o),onFailure:o=>r(o)})))})}function OS(e,t,n,r,o,i,a){return e==="scrollTo"?il(a,PS(r,t,i)):e==="scrollIntoView"?il(a,DS(n,r,o,t,i)):e==="measure"?Promise.resolve(qo(r)):Promise.reject(new ue({method:e,message:`Unsupported method "${e}" on sw-scroll-area.`}))}function MS(e,t){const n=e.createElement("div");n.setAttribute("data-sw-scroll-area","true");const r=e.createElement("div");r.id=`sw-${t}-scroll-area-content-${++RS}`,r.setAttribute("data-sw-scroll-area-content","true");const o=nl(e,"vertical",r.id),i=nl(e,"horizontal",r.id);return n.appendChild(r),n.appendChild(o.track),n.appendChild(i.track),{root:n,content:r,vNodes:o,hNodes:i}}function NS(e){return O(function*(){const t=yield*ae,n=yield*ur,r=yield*ee(),o=t.document,i=++LS,{root:a,content:s,vNodes:l,hNodes:c}=MS(o,t.hostId);let u,d;const f=_=>{const w=wS(_.style);a.id=J(t,"scroll-area",_.id,_.autoId,i),j(a,w.rootStyle,u,_S),j(s,w.contentStyle,d,bS(_.direction)),u=w.rootStyle,d=w.contentStyle};f(e);const p=(_,w)=>{r(n.dispatchEvent(_,w))},h=gS(o,s,l,c,Xs(e)),g=IS(s,tl(e),p),v=()=>{h.sync(),g.check()},b=yield*cS(o,a,s,v);return yield*ie(x(()=>{s.addEventListener("scroll",g.check,{passive:!0})}),()=>x(()=>{s.removeEventListener("scroll",g.check),g.dispose(),h.dispose()})),queueMicrotask(v),{element:a,childContainer:s,update(_){f(_),h.updateConfig(Xs(_)),b.syncObserved(),g.updateConfig(tl(_))},invoke(_,w){return OS(_,w,o,s,t.rootContainer,v,r)},onAck(){b.syncObserved(),h.sync(),g.onAck()}}})}const VS=[{type:"sw-scroll-area",styles:SS,onMount:NS}];function wt(e,t,n){const r=t<=n?t:n,o=t<=n?n:t;return e<r?r:e>o?o:e}function $S(e,t,n,r){const o=t<=n?t:n,i=t<=n?n:t,a=wt(e,o,i);return{phase:"idle",disabled:r,min:o,max:i,value:a,startValue:a,previewValue:a,activePointerId:-1,docListenersBound:!1,pointerCaptured:!1}}function FS(e,t,n,r,o){const i=n<=r?n:r,a=n<=r?r:n,s=wt(t,i,a);if(o&&e.phase==="dragging")return{next:{phase:"idle",disabled:!0,min:i,max:a,value:s,startValue:s,previewValue:s,activePointerId:-1,docListenersBound:!1,pointerCaptured:!1},cancelledSession:!0};if(e.phase==="dragging"){const l=wt(e.previewValue,i,a),c=wt(e.startValue,i,a);return{next:y(y({},e),{},{disabled:o,min:i,max:a,value:s,startValue:c,previewValue:l}),cancelledSession:!1}}return{next:y(y({},e),{},{disabled:o,min:i,max:a,value:s,startValue:s,previewValue:s}),cancelledSession:!1}}function BS(e,t){if(e.disabled||t<0)return{next:e,started:!1,replacedPrevious:!1};const n=e.phase==="dragging";return{next:y(y({},e),{},{phase:"dragging",startValue:e.value,previewValue:e.value,activePointerId:t,docListenersBound:!0,pointerCaptured:!0}),started:!0,replacedPrevious:n}}function HS(e,t,n){if(e.phase!=="dragging"||e.activePointerId!==t)return{next:e,changed:!1};const r=wt(n,e.min,e.max);return r===e.previewValue?{next:e,changed:!1}:{next:y(y({},e),{},{previewValue:r}),changed:!0}}function WS(e,t){if(e.phase!=="dragging"||e.activePointerId!==t)return{next:e,closed:!1,shouldCommit:!1,committedValue:e.value};const n=e.previewValue,r=n!==e.startValue;return{next:y(y({},e),{},{phase:"idle",value:n,startValue:n,previewValue:n,activePointerId:-1,docListenersBound:!1,pointerCaptured:!1}),closed:!0,shouldCommit:r,committedValue:n}}function GS(e){if(e.phase!=="dragging")return{next:e,cancelled:!1,restoredValue:e.value};const t=e.value;return{next:y(y({},e),{},{phase:"idle",value:t,startValue:t,previewValue:t,activePointerId:-1,docListenersBound:!1,pointerCaptured:!1}),cancelled:!0,restoredValue:t}}function jS(e,t){if(e.disabled||e.phase==="dragging")return{next:e,handled:!1,committed:!1,committedValue:e.value};const n=wt(t,e.min,e.max);return n===e.value?{next:e,handled:!0,committed:!1,committedValue:e.value}:{next:y(y({},e),{},{value:n,startValue:n,previewValue:n}),handled:!0,committed:!0,committedValue:n}}const zS=/^--[a-zA-Z0-9_-]+$/;function al(e){if(!(!e||!zS.test(e)||e.startsWith("--sw-")))return e}function Vi(e,t,n,r){const o=Math.min(t,n),i=Math.max(t,n),a=Math.min(i,Math.max(o,e));if(typeof r=="number"&&Number.isFinite(r)&&r>0){const s=o+Math.round((a-o)/r)*r;return Math.round(Math.min(i,Math.max(o,s))*1e4)/1e4}return Math.round(a*1e4)/1e4}function US(e,t,n){const r=n-t;return!Number.isFinite(r)||r<=0?0:Math.min(100,Math.max(0,Number(((e-t)/r*100).toFixed(4))))}function qS(e,t,n,r){const o=t.getBoundingClientRect(),i=$i(e,t,n.axis,n.reverse),a=n.axis==="y"?o.height:o.width;if(!Number.isFinite(a)||a<=0)return n.value;const s=n.axis==="y"?(r.clientY-o.top)/a:(r.clientX-o.left)/a,l=Math.min(1,Math.max(0,i<0?1-s:s));return Vi(n.min+l*(n.max-n.min),n.min,n.max,n.step)}function $i(e,t,n,r){let o=r?-1:1;if(n==="x"){var i,a,s;((i=(a=t.closest("[dir]"))===null||a===void 0?void 0:a.getAttribute("dir"))!==null&&i!==void 0?i:(s=e.documentElement)===null||s===void 0?void 0:s.getAttribute("dir"))==="rtl"&&(o=o*-1)}return o}function KS(e,t,n,r){if(r.key==="Home")return n.min;if(r.key==="End")return n.max;const o=(Number.isFinite(n.step)&&n.step>0?n.step:1)*(r.shiftKey?4:1),i=$i(e,t,n.axis,n.reverse);if(n.axis==="y")return r.key==="ArrowUp"?n.value-o*i:r.key==="ArrowDown"?n.value+o*i:void 0;if(r.key==="ArrowLeft")return n.value-o*i;if(r.key==="ArrowRight")return n.value+o*i}function Fi(e,t){return ce(e,t)}function wd(e,t,n,r,o,i){return o&&i&&(o!==e||i!==t)&&o.style.removeProperty(i),e&&t?(e.style.setProperty(t,`${n}${r}`),{target:e,cssVar:t}):{target:null,cssVar:void 0}}function hn(e,t,n){var r,o,i;const a=al(t.config.cssVar),s=al(t.config.cssPercentVar),l=t.config.targetId?Fi(e,t.config.targetId):(r=(o=t.handleEl)===null||o===void 0?void 0:o.parentElement)!==null&&r!==void 0?r:e.rootContainer,c=wd(l,a,n,t.config.unit,t.appliedTarget,t.appliedVar);t.appliedTarget&&t.appliedPercentVar&&(t.appliedTarget!==l||t.appliedPercentVar!==s)&&t.appliedTarget.style.removeProperty(t.appliedPercentVar),l&&s&&l.style.setProperty(s,`${US(n,t.config.min,t.config.max)}%`),t.appliedTarget=(i=c.target)!==null&&i!==void 0?i:l&&s?l:null,t.appliedVar=c.cssVar,t.appliedPercentVar=l&&s?s:void 0}function Dr(e,t){var n;if(e.dragMeta=void 0,(n=e.unbindDoc)===null||n===void 0||n.call(e),e.unbindDoc=void 0,!!e.handleEl&&(delete e.handleEl.dataset.dragging,!(t<0)))try{var r,o;!((r=(o=e.handleEl).hasPointerCapture)===null||r===void 0)&&r.call(o,t)&&e.handleEl.releasePointerCapture(t)}catch{}}function XS(e,t,n,r){var o;if(t.machine.phase!=="dragging"||!t.dragMeta||n.has(r))return;n.add(r);const i=r,a=(o=i.pointerId)!==null&&o!==void 0?o:0,s=t.config.trackId?Fi(e,t.config.trackId):null,l=s?qS(e.document,s,t.config,i):Vi(t.machine.startValue+((t.config.axis==="y"?i.clientY:i.clientX)-t.dragMeta.startCoord)*t.dragMeta.sign,t.config.min,t.config.max),c=HS(t.machine,a,l);t.machine=c.next,c.changed&&hn(e,t,t.machine.previewValue)}function YS(e,t,n,r,o){var i;if(t.machine.phase!=="dragging"||n.has(r))return;n.add(r);const a=(i=r.pointerId)!==null&&i!==void 0?i:0,s=WS(t.machine,a);s.closed&&(t.machine=s.next,Dr(t,a),t.config=y(y({},t.config),{},{value:s.committedValue}),hn(e,t,s.committedValue),s.shouldCommit&&o({token:t.token,value:s.committedValue}))}function ZS(e,t,n,r,o,i){const a=r;if(a.key==="Escape"&&t.machine.phase==="dragging"){a.preventDefault(),o();return}const s=KS(e.document,n,t.config,a);if(s===void 0)return;const l=Vi(s,t.config.min,t.config.max,t.config.step),c=jS(t.machine,l);c.handled&&(a.preventDefault(),c.committed&&(t.machine=c.next,t.config=y(y({},t.config),{},{value:c.committedValue}),hn(e,t,c.committedValue),i({token:t.token,value:c.committedValue})))}function QS(e,t,n,r,o,i,a,s){var l;if(r.button!==void 0&&r.button!==0)return;const c=(l=r.pointerId)!==null&&l!==void 0?l:0,u=t.machine.activePointerId,d=BS(t.machine,c);if(d.started){r.preventDefault(),r.stopPropagation(),d.replacedPrevious&&Dr(t,u),t.machine=d.next,t.dragMeta={startCoord:t.config.axis==="y"?r.clientY:r.clientX,sign:$i(e,n,t.config.axis,t.config.reverse)},n.dataset.dragging="true";try{var f;(f=n.setPointerCapture)===null||f===void 0||f.call(n,c)}catch{}e.addEventListener("pointermove",i),e.addEventListener("pointerup",a),e.addEventListener("pointercancel",o),e.addEventListener("keydown",s),t.unbindDoc=()=>{e.removeEventListener("pointermove",i),e.removeEventListener("pointerup",a),e.removeEventListener("pointercancel",o),e.removeEventListener("keydown",s)}}}function JS(e,t,n,r,o){const i=e.document,a=new WeakSet,s=()=>{const h=t.machine.activePointerId,g=GS(t.machine);g.cancelled&&(t.machine=g.next,Dr(t,h),t.config=y(y({},t.config),{},{value:g.restoredValue}),hn(e,t,g.restoredValue))},l=h=>XS(e,t,a,h),c=h=>YS(e,t,a,h,r),u=h=>{h.key!=="Escape"||t.machine.phase!=="dragging"||(h.preventDefault(),s())},d=h=>QS(i,t,n,h,s,l,c,u),f=h=>ZS(e,t,n,h,s,r),p=h=>{h.preventDefault(),h.stopPropagation(),t.machine.disabled||o({token:t.token})};return n.addEventListener("pointerdown",d),n.addEventListener("pointermove",l),n.addEventListener("pointerup",c),n.addEventListener("pointercancel",s),n.addEventListener("keydown",f),n.addEventListener("dblclick",p),()=>{s(),n.removeEventListener("pointerdown",d),n.removeEventListener("pointermove",l),n.removeEventListener("pointerup",c),n.removeEventListener("pointercancel",s),n.removeEventListener("keydown",f),n.removeEventListener("dblclick",p)}}function eA(e,t,n){const r=new Map,o=s=>{var l;const c=r.get(s);c&&((l=c.unbindHandle)===null||l===void 0||l.call(c),c.appliedTarget&&c.appliedPercentVar&&c.appliedTarget.style.removeProperty(c.appliedPercentVar),wd(null,void 0,0,"",c.appliedTarget,c.appliedVar),r.delete(s))};return{sync:s=>{const l=Fi(e,s.handleId);let c=r.get(s.token);c||(c={token:s.token,handleEl:null,config:s,machine:$S(s.value,s.min,s.max,s.disabled),appliedTarget:null,appliedVar:void 0,appliedPercentVar:void 0},r.set(s.token,c));const u=c.machine.activePointerId,d=FS(c.machine,s.value,s.min,s.max,s.disabled);if(c.config=s,c.machine=d.next,d.cancelledSession&&Dr(c,u),c.handleEl!==l){var f;(f=c.unbindHandle)===null||f===void 0||f.call(c),c.handleEl=l,c.unbindHandle=l?JS(e,c,l,t,n):void 0}hn(e,c,c.machine.previewValue)},remove:o,dispose:()=>{for(const s of[...r.keys()])o(s)}}}const tA=[{type:"sw-scrub",onAttach:O(function*(){const e=yield*ae,t=yield*be,n=yield*me,r=yield*ee(),o=eA(e,i=>r(n.emit(bf,i).pipe(te)),i=>r(n.emit(_f,i).pipe(te)));yield*t.registerCommand(Ud,i=>x(()=>o.sync(i))),yield*t.registerCommand(qd,i=>x(()=>o.remove(i.token))),yield*ne(()=>x(()=>o.dispose()))})}];function nA(e){var t;const n=e;if(!n||typeof n.tagName!="string")return!1;const r=n.tagName.toUpperCase();return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"?!0:!!(n.isContentEditable||!((t=n.closest)===null||t===void 0)&&t.call(n,'[contenteditable="true"], [contenteditable=""]'))}function sl(e){return e.length===1?e.toLowerCase():e}function rA(e,t,n){var r,o,i,a;const s=(r=t.ctrl)!==null&&r!==void 0?r:!!(t.mod&&!n),l=(o=t.meta)!==null&&o!==void 0?o:!!(t.mod&&n),c=(i=t.alt)!==null&&i!==void 0?i:!1,u=(a=t.shift)!==null&&a!==void 0?a:!1;return e.ctrlKey===s&&e.metaKey===l&&e.altKey===c&&e.shiftKey===u}function oA(e,t,n){if(e.isComposing)return;const r=sl(e.key),o=nA(e.target);for(let i=0;i<t.length;i++){const a=t[i];if(!(!a||typeof a.id!="string"||typeof a.key!="string")&&!(e.repeat&&a.allowRepeat===!1)&&!(o&&!a.allowInInput)&&sl(a.key)===r&&rA(e,a,n))return{binding:a,index:i}}}function iA(e,t){var n;const r=e.target===t.document?t.document.activeElement:e.target,o=r==null||(n=r.closest)===null||n===void 0?void 0:n.call(r,"[data-sw-host-root], [data-sw-overlay-root]");return!o||o.parentElement===t.rootContainer}function aA(e){var t,n;const r=(t=(n=e.defaultView)===null||n===void 0||(n=n.navigator)===null||n===void 0?void 0:n.platform)!==null&&t!==void 0?t:"";return/mac|iphone|ipad|ipod/i.test(r)}function sA(e,t,n){return r=>{const o=t();if(!o.length||!iA(r,e))return;const i=aA(e.document);for(let a=o.length-1;a>=0;a--){const s=o[a],l=oA(r,s.bindings,i);if(l){l.binding.preventDefault!==!1&&r.preventDefault(),l.binding.stopPropagation&&r.stopPropagation(),n({token:s.token,generation:s.generation,index:l.index,detail:{id:l.binding.id,key:r.key,repeat:r.repeat,shiftKey:r.shiftKey,ctrlKey:r.ctrlKey,altKey:r.altKey,metaKey:r.metaKey}});return}}}}const lA=[{type:"sw-shortcut",onAttach:O(function*(){const e=yield*ae,t=yield*be,n=yield*me,r=yield*ee();let o=[];yield*t.registerCommand(Kd,a=>x(()=>{o=lf(o,{token:a.token,generation:a.generation,order:a.order,bindings:a.bindings})})),yield*t.registerCommand(Xd,a=>x(()=>{o=cf(o,a.token)}));const i=sA(e,()=>o,a=>{r(n.emit(wf,a).pipe(te))});yield*ie(x(()=>{e.document.addEventListener("keydown",i)}),()=>x(()=>{e.document.removeEventListener("keydown",i),o=[]}))})}],Ed="http://www.w3.org/2000/svg",cA=/^(?:none|currentColor|transparent|#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\([^()]+\)|var\(--[a-zA-Z0-9_-]+\)|[a-zA-Z]{3,20})$/,uA=/^(?:(?:translate|scale|rotate|skewX|skewY|matrix)\([0-9eE.,+\-\s]+\)\s*)+$/,dA=/^-?\d+(?:\.\d+)?(?:\s+|,\s*)-?\d+(?:\.\d+)?(?:\s+|,\s*)\d+(?:\.\d+)?(?:\s+|,\s*)\d+(?:\.\d+)?$/,fA=/^[MmLlHhVvCcSsQqTtAaZz0-9eE.,+\-\s]+$/;function X(e,t,n){n!==void 0&&n.length>0?e.setAttribute(t,n):e.removeAttribute(t)}function Et(e){if(typeof e=="number"&&Number.isFinite(e))return String(e);if(typeof e=="string"&&/^-?\d+(?:\.\d+)?(?:%|px|em|rem)?$/.test(e.trim()))return e.trim()}function cr(e){if(typeof e!="string")return;const t=e.trim();return cA.test(t)?t:void 0}function pA(e){if(typeof e!="string")return;const t=e.trim();return uA.test(t)?t:void 0}function ll(e,t,n,r,o){const i=t.style;return e.id=J(n,"svg",t.id,t.autoId,r),e.setAttribute("data-sw-svg","true"),X(e,"viewBox",typeof t.viewBox=="string"&&dA.test(t.viewBox.trim())?t.viewBox.trim():void 0),X(e,"width",Et(t.width)),X(e,"height",Et(t.height)),X(e,"fill",cr(t.fill)),X(e,"stroke",cr(t.stroke)),X(e,"stroke-width",Et(t.strokeWidth)),typeof t.ariaLabel=="string"&&t.ariaLabel.length>0?(e.setAttribute("role","img"),e.setAttribute("aria-label",t.ariaLabel),e.removeAttribute("aria-hidden")):(e.removeAttribute("role"),e.removeAttribute("aria-label"),t.ariaHidden?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")),j(e,i,o),i}function hA(e,t){X(e,"fill",cr(t.fill)),X(e,"stroke",cr(t.stroke)),X(e,"stroke-width",Et(t.strokeWidth)),X(e,"opacity",Et(t.opacity)),X(e,"transform",pA(t.transform));const n=t.strokeLinecap==="round"||t.strokeLinecap==="square"||t.strokeLinecap==="butt"?t.strokeLinecap:void 0,r=t.strokeLinejoin==="round"||t.strokeLinejoin==="bevel"||t.strokeLinejoin==="miter"?t.strokeLinejoin:void 0,o=t.fillRule==="evenodd"||t.fillRule==="nonzero"?t.fillRule:void 0;X(e,"stroke-linecap",n),X(e,"stroke-linejoin",r),X(e,"fill-rule",o),X(e,"stroke-dasharray",typeof t.strokeDasharray=="string"&&/^[0-9.,\s]+$/.test(t.strokeDasharray.trim())?t.strokeDasharray.trim():void 0)}function cl(e,t,n){if(hA(t,n),e==="path"){X(t,"d",typeof n.d=="string"&&fA.test(n.d.trim())?n.d.trim():void 0);return}const r=e==="rect"?["x","y","width","height","rx","ry"]:e==="circle"?["cx","cy","r"]:e==="line"?["x1","y1","x2","y2"]:[];for(const o of r)X(t,o,Et(n[o]))}let mA=0;const gA=`
|
|
360
|
+
[data-sw-svg] {
|
|
361
|
+
display: block;
|
|
362
|
+
box-sizing: border-box;
|
|
363
|
+
overflow: visible;
|
|
364
|
+
}
|
|
365
|
+
`;function Ht(e,t){return{type:e,mount(n,r){const o=r.document.createElementNS(Ed,t);return cl(t,o,n),{element:o,update(i){cl(t,o,i)}}}}}const vA=[{type:"sw-svg",styles:gA,mount(e,t){const n=t.document.createElementNS(Ed,"svg"),r=++mA;let o=ll(n,e,t,r);return{element:n,update(i){o=ll(n,i,t,r,o)}}}},Ht("sw-svg-path","path"),Ht("sw-svg-rect","rect"),Ht("sw-svg-circle","circle"),Ht("sw-svg-line","line"),Ht("sw-svg-g","g")],yA=`
|
|
366
|
+
p[data-sw-text],
|
|
367
|
+
h1[data-sw-text],
|
|
368
|
+
h2[data-sw-text],
|
|
369
|
+
h3[data-sw-text],
|
|
370
|
+
h4[data-sw-text],
|
|
371
|
+
h5[data-sw-text],
|
|
372
|
+
h6[data-sw-text] {
|
|
373
|
+
margin: 0;
|
|
374
|
+
min-width: 0;
|
|
375
|
+
}
|
|
376
|
+
[data-sw-text="strong"] {
|
|
377
|
+
font-weight: 600;
|
|
378
|
+
}
|
|
379
|
+
[data-sw-text="em"] {
|
|
380
|
+
font-style: italic;
|
|
381
|
+
}
|
|
382
|
+
[data-sw-text="del"] {
|
|
383
|
+
text-decoration-line: line-through;
|
|
384
|
+
}
|
|
385
|
+
[data-sw-text="small"] {
|
|
386
|
+
font-size: 0.875em;
|
|
387
|
+
}
|
|
388
|
+
[data-sw-text="mark"] {
|
|
389
|
+
background-color: var(--sw-warning-surface);
|
|
390
|
+
color: var(--sw-warning-foreground);
|
|
391
|
+
border-radius: var(--sw-radius-sm);
|
|
392
|
+
padding: 0 0.2em;
|
|
393
|
+
}
|
|
394
|
+
`;function _A(e){return e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight}function bA(e,t,n){if(typeof t!="number"||!Number.isInteger(t)||t<=0){e.style.removeProperty("-webkit-line-clamp"),e.style.removeProperty("-webkit-box-orient"),n!=null&&n.display||e.style.removeProperty("display");return}if(t===1){var r;e.style.overflow="hidden",e.style.whiteSpace="nowrap",e.style.textOverflow=(r=n==null?void 0:n.textOverflow)!==null&&r!==void 0?r:"ellipsis",e.style.removeProperty("-webkit-line-clamp"),e.style.removeProperty("-webkit-box-orient");return}e.style.display="-webkit-box",e.style.overflow="hidden",e.style.setProperty("-webkit-box-orient","vertical"),e.style.setProperty("-webkit-line-clamp",String(t))}let wA=0;const ul={inline:"span",paragraph:"p",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",strong:"strong",em:"em",del:"del",small:"small",mark:"mark"};function EA(e){return typeof e=="string"&&Object.prototype.hasOwnProperty.call(ul,e)?{semantic:e,tag:ul[e]}:{semantic:"inline",tag:"span"}}function dl(e,t,n,r,o,i){const a=t.style,s=t.selectable===!1?"none":"text";return e.id=J(n,"text",t.id,t.autoId,r),e.setAttribute("data-sw-text",o),j(e,a,i,{userSelect:s}),bA(e,t.numberOfLines,a),a}const SA=[{type:"sw-text",styles:yA,mount(e,t){const{semantic:n,tag:r}=EA(e.as),o=t.document.createElement(r),i=++wA;let a=e,s=dl(o,e,t,i,n);const l=cd(o,t,e,{shouldEnter:()=>!a.onlyHoverWhenTruncated||_A(o)});return{element:o,update(c){a=c,s=dl(o,c,t,i,n,s),l.update(c)},dispose:l.dispose}}}];let AA=0;function Zt(e,t,n,r){if(n.sync=r.state,r.shouldWriteHost&&(e.value=r.nextHostValue),r.shouldDispatchChange){const o=t.dispatchEvent("onChange",r.changeValue);St(o)&&(n.sync=$u(n.sync,o.value))}}function Bi(e,t){var n,r;return(n=(r=e.getAckSeq)===null||r===void 0?void 0:r.call(e))!==null&&n!==void 0?n:t.sync.lastEditSeq}function fl(e,t,n,r,o){const i=t.style;e.id=J(n,"textarea",t.id,t.autoId,o),e.placeholder=typeof t.placeholder=="string"?t.placeholder:"",e.rows=typeof t.rows=="number"&&t.rows>0?t.rows:3,e.disabled=!!t.disabled,e.readOnly=!!t.readOnly,e.setAttribute("data-sw-textarea","true"),e.setAttribute("data-mode",t.mode==="plain"?"plain":"default"),typeof t.ariaLabel=="string"&&t.ariaLabel.length>0?e.setAttribute("aria-label",t.ariaLabel):e.removeAttribute("aria-label");const a=typeof t.value=="string"?t.value:"";Zt(e,n,r,Fu(r.sync,a,Bi(n,r),e.value)),j(e,i,r.currentStyle),r.currentStyle=i}function CA(e,t,n){e.addEventListener("focus",()=>t.dispatchEvent("onFocus")),e.addEventListener("blur",()=>t.dispatchEvent("onBlur")),e.addEventListener("compositionstart",()=>{Zt(e,t,n,Mu(n.sync))}),e.addEventListener("compositionend",()=>{Zt(e,t,n,Nu(n.sync,e.value,Bi(t,n)))}),e.addEventListener("input",r=>{const o="isComposing"in r&&!!r.isComposing;Zt(e,t,n,Vu(n.sync,e.value,o))}),e.addEventListener("keydown",r=>{n.sync.isComposing||r.isComposing||r.keyCode===229||r.key==="Escape"&&e.blur()})}const xA=[{type:"sw-textarea",styles:`
|
|
395
|
+
[data-sw-textarea] {
|
|
396
|
+
width: 100%;
|
|
397
|
+
min-height: 5.5rem;
|
|
398
|
+
padding: 0.5rem 0.625rem;
|
|
399
|
+
border-radius: var(--sw-radius-md);
|
|
400
|
+
border: 1px solid var(--sw-border);
|
|
401
|
+
background-color: var(--sw-surface);
|
|
402
|
+
color: var(--sw-foreground);
|
|
403
|
+
box-shadow: var(--sw-shadow-sm);
|
|
404
|
+
font-size: 1rem;
|
|
405
|
+
line-height: 1.5;
|
|
406
|
+
resize: vertical;
|
|
407
|
+
}
|
|
408
|
+
[data-sw-textarea]:disabled {
|
|
409
|
+
color: var(--sw-disabled-foreground);
|
|
410
|
+
opacity: 0.6;
|
|
411
|
+
}
|
|
412
|
+
[data-sw-textarea]:focus {
|
|
413
|
+
border-color: var(--sw-border-focus);
|
|
414
|
+
}
|
|
415
|
+
[data-sw-textarea][data-mode="plain"] {
|
|
416
|
+
border-width: 0;
|
|
417
|
+
border-style: none;
|
|
418
|
+
border-radius: 0;
|
|
419
|
+
background-color: transparent;
|
|
420
|
+
box-shadow: none;
|
|
421
|
+
}
|
|
422
|
+
[data-sw-textarea]::placeholder {
|
|
423
|
+
color: var(--sw-muted-foreground);
|
|
424
|
+
}
|
|
425
|
+
`,mount(e,t){const n=t.document.createElement("textarea"),r=++AA,o={sync:Ou(typeof e.value=="string"?e.value:"")};return fl(n,e,t,o,r),CA(n,t,o),{element:n,update(i){fl(n,i,t,o,r)},invoke(i,a){return Hu(n,"sw-textarea",i,a)},onAck(){const i=Bu(o.sync,Bi(t,o),n.value);Zt(n,t,o,i)}}}}],Sd=[...$_,...X_,...Z_,...hb,...Rb,...O_,...Yb,...Zb,...e0,...d0,...m0,...b0,...D0,...V0,...fw,...Gw,...uE,...qE,...nS,...VS,...tA,...lA,...vA,...SA,...xA,...LE],pl=new Set;for(const e of Sd){if(pl.has(e.type))throw new Error("宿主类型重名:"+e.type);pl.add(e.type)}const kA=Object.freeze(Sd),IA=`
|
|
426
|
+
*, *::before, *::after {
|
|
427
|
+
box-sizing: border-box;
|
|
428
|
+
cursor: default !important;
|
|
429
|
+
outline: none !important;
|
|
430
|
+
}
|
|
431
|
+
:focus, :focus-visible {
|
|
432
|
+
outline: none !important;
|
|
433
|
+
}
|
|
434
|
+
button, input, textarea {
|
|
435
|
+
font: inherit;
|
|
436
|
+
color: inherit;
|
|
437
|
+
}
|
|
438
|
+
button, [role="button"], input[type="button"], input[type="submit"], input[type="reset"] {
|
|
439
|
+
-webkit-tap-highlight-color: transparent;
|
|
440
|
+
user-select: none;
|
|
441
|
+
}
|
|
442
|
+
button:disabled, input:disabled, textarea:disabled {
|
|
443
|
+
cursor: default !important;
|
|
444
|
+
}
|
|
445
|
+
html, body {
|
|
446
|
+
margin: 0;
|
|
447
|
+
padding: 0;
|
|
448
|
+
background-color: var(--sw-background);
|
|
449
|
+
color: var(--sw-foreground);
|
|
450
|
+
font-family: var(--sw-font-sans);
|
|
451
|
+
font-size: var(--sw-body-font-size);
|
|
452
|
+
line-height: var(--sw-body-line-height);
|
|
453
|
+
-webkit-font-smoothing: antialiased;
|
|
454
|
+
-webkit-text-size-adjust: 100%;
|
|
455
|
+
text-size-adjust: 100%;
|
|
456
|
+
}
|
|
457
|
+
@keyframes sw-spin {
|
|
458
|
+
from { transform: rotate(0deg); }
|
|
459
|
+
to { transform: rotate(360deg); }
|
|
460
|
+
}
|
|
461
|
+
`,Ad="data-sw-head-icon";function LA(e){if(e.tagName.toLowerCase()!=="link")return!1;const t=e.getAttribute("rel");return typeof t=="string"&&/\bicon\b/i.test(t)}function RA(e){const t=e.head;if(!t)return[];const n=[];for(const r of Array.from(t.children))LA(r)&&!r.hasAttribute(Ad)&&n.push({node:r,parent:t,nextSibling:r.nextSibling});return n}function TA(e,t){const n=e.head;if(n)for(let r=t.length-1;r>=0;r-=1){const o=t[r];o.node.isConnected||(o.nextSibling&&o.nextSibling.parentNode===o.parent?o.parent.insertBefore(o.node,o.nextSibling):n.appendChild(o.node))}}function PA(e,t,n,r){const o=e.head;if(!o)return n;for(const a of t)a.node.isConnected&&a.node.remove();const i=n??e.createElement("link");return n||(i.setAttribute("rel","icon"),i.setAttribute("type","image/svg+xml"),i.setAttribute(Ad,"true")),i.setAttribute("href",r),i.isConnected||o.appendChild(i),i}function DA(e){const t=e.title,n=RA(e);let r=null,o=null;const i=()=>{r&&(r.remove(),r=null),o=null,TA(e,n)};return{apply:l=>mr(()=>{var c;const u=l.icon?uf(l.icon):null;if(l.icon&&u===void 0)return he(new ue({channel:yl.channel,message:"Rejected unsafe or non-platform document head icon resource."}));const d=(c=l.title)!==null&&c!==void 0?c:t;return e.title!==d&&(e.title=d),u?(!r||!r.isConnected||o!==u)&&(r=PA(e,n,r,u),o=u):i(),re({ok:!0})}),restore:()=>{e.title!==t&&(e.title=t),i()}}}function Cd(e,t){return O(function*(){const n=DA(e);yield*t.registerCommand(yl,n.apply),yield*ne(()=>x(()=>n.restore()))})}const hl=Object.freeze(kA.map(e=>{var t;return y(y({},e),{},{styles:IA+((t=e.styles)!==null&&t!==void 0?t:"")})}));function xd(e={}){return e.createEmbedWorker?hl.map(t=>t.type==="sw-embed"?y(y({},_u({createWorker:e.createEmbedWorker})),{},{styles:t.styles}):t):hl}function Re(e,t,n){const r=e.ownerDocument,o=r.createElement("section");o.setAttribute("role","alert"),o.setAttribute("data-runtime-host-error","true"),Object.assign(o.style,{margin:"24px",padding:"16px",borderRadius:"8px",border:"1px solid var(--sw-destructive, #c72028)",backgroundColor:"var(--sw-destructive-surface, #fcf4f4)",color:"var(--sw-destructive-text, #a61b20)",fontFamily:"var(--sw-font-sans, sans-serif)",fontSize:"16px"});const i=r.createElement("div");if(i.style.fontWeight="600",i.textContent=t,o.appendChild(i),n){const a=r.createElement("div");Object.assign(a.style,{marginTop:"6px",fontFamily:"var(--sw-font-mono, monospace)",fontSize:"14px"}),a.textContent=n,o.appendChild(a)}e.replaceChildren(o)}function OA(e,t){return!!(e.previewMode||t!=null&&t.enabled||e.initialMockSet!==void 0||(t==null?void 0:t.mockSet)!==void 0)}function MA(e,t,n,r){return new Promise((o,i)=>{const a=setTimeout(()=>{t.delete(n),i(new Error(`Preview sync timeout for ${n}`))},1e4);t.set(n,s=>{clearTimeout(a),o(s)}),uo(e.emit(Sf,{requestId:n,...r.envRev!==void 0?{envRev:r.envRev}:{},...r.config!==void 0?{config:r.config}:{},...r.env!==void 0?{env:{...r.env}}:{},...r.mockSet!==void 0?{mockSet:r.mockSet}:{}}).pipe(ni(s=>x(()=>{clearTimeout(a),t.delete(n),i(s)}))))})}function NA(e){return O(function*(){let t=!1,n,r=e.initialEnvRev,o=e.initialMockRev,i=0;const a=new Map;yield*e.signals.subscribe(Ef,c=>x(()=>{c.ok&&(r=c.envRev,o=c.mockRev);const u=a.get(c.requestId);u&&(a.delete(c.requestId),u(c))})).pipe(te);const s={isReady:()=>t,getRuntimeError:()=>n,getEnvRev:()=>r,getMockRev:()=>o,syncContext:async c=>((c.config!==void 0||c.env!==void 0)&&await Xe(e.host.setHostContext({...c.config!==void 0?{config:c.config}:{},...c.env!==void 0?{env:{...c.env}}:{}})),MA(e.signals,a,`sync-${++i}`,c))},l=globalThis;return l.__MPIS_PREVIEW_HOST__=s,yield*ne(()=>x(()=>{for(const c of a.values())c({requestId:"closed",ok:!1,envRev:r,mockRev:o,error:"Host scope closed"});a.clear(),l.__MPIS_PREVIEW_HOST__===s&&delete l.__MPIS_PREVIEW_HOST__})),{markReady:()=>{t=!0},markFailed:c=>{n=c}}})}function VA(e){var t;return{kind:"bootstrap",protocolVersion:ti,moduleUrl:e.moduleUrl,...e.preloadModules&&e.preloadModules.length>0?{preloadModules:e.preloadModules}:{},baseUrl:e.baseUrl,primitiveApiMajor:e.state.primitiveApiMajor,runtimeIdentity:e.state.runtimeIdentity,initialTheme:e.initialConfig.mode??"light",initialConfig:e.initialConfig,initialEnv:e.initialEnv,initialLocation:e.initialLocation,...e.previewEnabled?{previewMode:!0,initialEnvRev:((t=e.state.preview)==null?void 0:t.envRev)??0}:{},...e.previewMockSet!==void 0?{initialMockSet:e.previewMockSet}:{}}}class Hi extends un("EmbeddedWorkerError"){}function $A(e){const t=new Worker(e,{type:"module"});return{endpoint:dr(t),onError(n){const r=i=>{var a;(a=i.preventDefault)==null||a.call(i),n(i.message||"入口 Worker 脚本加载或执行异常。")},o=()=>n("入口 Worker 消息反序列化失败。");return t.addEventListener("error",r),t.addEventListener("messageerror",o),()=>{t.removeEventListener("error",r),t.removeEventListener("messageerror",o)}},terminate:()=>t.terminate()}}function FA(e,t){return ie(je({try:()=>e(t),catch:n=>new Hi({message:n instanceof Error?n.message||n.name:String(n),cause:n})}),n=>x(()=>n.terminate()))}const lo=e=>({status:e,host:hr(),updateContext:()=>Ge});function BA(e,t,n){return je({try:()=>{const r=new URL(n.baseUrl??".",e.baseURI||t.location.href).href,o=n.runtimeBaseUrl.endsWith("/")?n.runtimeBaseUrl:`${n.runtimeBaseUrl}/`,i=new URL(o,r).href,a=new URL(n.workerModule??"worker.js",i).href;return{baseUrl:r,runtimeBaseUrl:i,workerScriptUrl:a}},catch:r=>new Hi({message:r instanceof Error?r.message||r.name:String(r),cause:r})})}function HA(e,t,n,r,o,i,a,s){return O(function*(){const l=yield*xl(kl(Il(o.endpoint,"host"),Ll(me,r.signals))).pipe(Y(a)),c=i.mountNavigation?yield*Rl(t,n,{registerCommand:r.registerCommand}).pipe(Tl(l),Y(a)):void 0;return i.mountHead&&(yield*Cd(e,{registerCommand:r.registerCommand}).pipe(Y(a))),yield*ie(je({try:()=>o.onError(u=>s("入口 Worker 线程异常终止。",u)),catch:u=>new Hi({message:u instanceof Error?u.message||u.name:String(u),cause:u})}),u=>x(()=>u())).pipe(Y(a)),{endpoint:Pl(l,Dl),initialLocation:c==null?void 0:c.initialLocation}})}function WA(e,t,n,r,o,i,a){var c,u;const s={...r.initialConfig,...o.initialConfig,mode:((c=o.initialConfig)==null?void 0:c.mode)??o.initialTheme??((u=r.initialConfig)==null?void 0:u.mode)??"light"},l={...r.initialEnv,...o.initialEnv};return O(function*(){const{baseUrl:d,runtimeBaseUrl:f,workerScriptUrl:p}=yield*BA(t,n,o),h=yield*FA(o.createWorker??$A,p).pipe(Y(i)),g=yield*Jo({container:e,endpoint:h.endpoint,elements:o.elements??xd({createEmbedWorker:o.createWorker}),hostConfig:s,hostEnv:l,applyDocumentTheme:o.applyDocumentTheme??!1,baseUrl:d,workerUrl:p,runtimeIdentity:r.runtimeIdentity,primitiveApiMajor:Ct,...r.entryId?{entryId:r.entryId}:{},...r.version?{version:r.version}:{},onRuntimeError:_=>{a(_.phase==="load"?"入口产物模块加载失败。":"入口产物发生运行时异常。",_.message)}}).pipe(Y(i)),{endpoint:v,initialLocation:b}=yield*HA(t,n,d,g,h,o,i,a);return yield*ei(v,{kind:"bootstrap",protocolVersion:ti,inlineModules:{entry:r.entry,modules:r.modules,runtimeBaseUrl:f,runtimeIdentity:r.runtimeIdentity},baseUrl:d,primitiveApiMajor:r.primitiveApiMajor,runtimeIdentity:r.runtimeIdentity,initialTheme:s.mode??"light",initialConfig:s,initialEnv:l,...b?{initialLocation:b}:{}}),{status:"ready",host:pr(g),updateContext:_=>g.setHostContext(_)}})}function GA(e,t,n,r,o){return r.platform!=="web"?(Re(e,"当前 Web 宿主不支持此产物平台。",r.platform),re(lo("incompatible"))):r.primitiveApiMajor!==Ct?(Re(e,"Primitive API 主版本不兼容,已拒绝执行入口产物。",`required=${r.primitiveApiMajor}, available=${Ct}`),re(lo("incompatible"))):O(function*(){const i=yield*Qo(yield*Yo),a=yield*ee();let s=!1;const l=(u,d)=>mr(()=>s||i.state._tag==="Closed"?Ge:(s=!0,$e(i,Fe).pipe(At(x(()=>Re(e,u,d))))));return yield*WA(e,t,n,r,o,i,(u,d)=>{!s&&i.state._tag!=="Closed"&&a(l(u,d))}).pipe(ni(u=>l("宿主环境初始化失败。",u instanceof Error?u.message:String(u)).pipe(Cl(lo("failed")))))})}async function rC(e,t,n){const r=e.ownerDocument,o=r.defaultView;if(!o)return Re(e,"宿主环境初始化失败。","容器未挂载到有效的浏览器窗口上下文。"),{status:"failed",updateContext:async()=>{},dispose:async()=>{}};const i=await Xe(Ol());let a;try{a=await Xe(GA(e,r,o,t,n).pipe(Y(i)))}catch(l){return await Xe($e(i,Fe)),Re(e,"宿主环境初始化失败。",l instanceof Error?l.message:String(l)),{status:"failed",updateContext:async()=>{},dispose:async()=>{}}}if(a.status!=="ready")return await Xe($e(i,Fe)),{status:a.status==="incompatible"?"incompatible":"failed",updateContext:async()=>{},dispose:async()=>{}};let s;return{status:"ready",updateContext:async l=>{s||await Xe(a.updateContext(l))},dispose:()=>(s??=Xe($e(i,Fe)),s)}}const Ko="runtime-bootstrap";class Xo extends un("BootstrapError"){}function jA(e){const t=new Worker(e,{type:"module"});return{endpoint:dr(t),onError(n){const r=i=>{var a;(a=i.preventDefault)==null||a.call(i),n(i.message||"入口 Worker 脚本加载或执行异常。")},o=()=>n("入口 Worker 消息反序列化失败。");return t.addEventListener("error",r),t.addEventListener("messageerror",o),()=>{t.removeEventListener("error",r),t.removeEventListener("messageerror",o)}},terminate:()=>t.terminate()}}function zA(e){var n,r;const t=Zo((r=(n=e.getElementById(Ko))==null?void 0:n.textContent)==null?void 0:r.trim()).pipe(Af(o=>o.length>0));return Qt(t)?re(hr()):je({try:()=>JSON.parse(t.value),catch:o=>new Xo({message:o instanceof Error?o.message:String(o),cause:o})}).pipe(Al(o=>!o||typeof o!="object"||typeof o.status!="string"?he(new Xo({message:`Invalid #${Ko} payload.`})):re(pr(o))))}function UA(e){return e.elements??xd({createEmbedWorker:e.createWorker})}function qA(e,t){return ie(je({try:()=>e(t),catch:n=>new Xo({message:n instanceof Error?n.message||n.name:String(n),cause:n})}),n=>x(()=>n.terminate()))}const KA=(e,t)=>ie(x(()=>e.onError(t)),n=>x(()=>n())).pipe(fr),XA=()=>Ge,zt=e=>({status:e,host:hr(),updateContext:XA});function YA(e,t){var r,o;return{initialConfig:{...e.initialConfig,...t.initialConfig,mode:((r=t.initialConfig)==null?void 0:r.mode)??t.initialTheme??((o=e.initialConfig)==null?void 0:o.mode)??"light"},initialEnv:{...e.initialEnv,...t.initialEnv}}}function ZA(e,t,n,r,o,i,a){var h;const s=new URL(".",t.baseURI||n.location.href).href,l=new URL(r.moduleUrl,s).href,c=r.manifestUrl?new URL(r.manifestUrl,s).href:void 0,u=(h=r.preloadModules)==null?void 0:h.map(g=>new URL(g,s).href),d=new URL(r.workerModule,s).href,{initialConfig:f,initialEnv:p}=YA(r,o);return O(function*(){var k,L;const g=yield*qA(o.createWorker??jA,d).pipe(Y(i));let v;const b=o.initialMockSet??((k=r.preview)==null?void 0:k.mockSet),_=OA(o,r.preview),w=yield*Jo({container:e,endpoint:g.endpoint,elements:UA(o),hostConfig:f,hostEnv:p,applyDocumentTheme:!0,baseUrl:s,workerUrl:r.workerModule,runtimeIdentity:r.runtimeIdentity,primitiveApiMajor:Ct,...r.entryId?{entryId:r.entryId}:{},...r.version?{version:r.version}:{},...r.studioOrigin?{studioOrigin:r.studioOrigin}:{},moduleUrl:l,...c?{manifestUrl:c}:{},onReady:()=>v==null?void 0:v.markReady(),onRuntimeError:I=>{v==null||v.markFailed(I.message),a(I.phase==="load"?"入口产物模块加载失败。":"入口产物发生运行时异常。",I.message)}}).pipe(Y(i));_&&(v=yield*NA({host:w,signals:w.signals,initialEnvRev:((L=r.preview)==null?void 0:L.envRev)??0,initialMockRev:(b==null?void 0:b.mockRev)??0}).pipe(Y(i)));const E=yield*xl(kl(Il(g.endpoint,"host"),Ll(me,w.signals))).pipe(Y(i)),S=yield*Rl(n,s,{registerCommand:w.registerCommand}).pipe(Tl(E),Y(i));return yield*Cd(t,{registerCommand:w.registerCommand}).pipe(Y(i)),yield*KA(g,I=>{v==null||v.markFailed(I),a("入口 Worker 线程异常终止。",I)}).pipe(Y(i)),yield*ei(Pl(E,Dl),VA({state:r,moduleUrl:l,preloadModules:u,baseUrl:s,initialConfig:f,initialEnv:p,initialLocation:S.initialLocation,previewEnabled:_,previewMockSet:b})),{status:"ready",host:pr(w),updateContext:I=>w.setHostContext(I)}})}function QA(e,t,n,r,o){return O(function*(){const i=yield*Qo(yield*Yo),a=yield*ee();let s=!1;const l=(u,d)=>mr(()=>s||i.state._tag==="Closed"?Ge:(s=!0,$e(i,Fe).pipe(At(x(()=>Re(e,u,d))))));return yield*ZA(e,t,n,r,o,i,(u,d)=>{!s&&i.state._tag!=="Closed"&&a(l(u,d))}).pipe(ni(u=>l("宿主环境初始化失败。",u instanceof Error?u.message:String(u)).pipe(Cl(zt("failed")))))})}function JA(e,t,n={}){const r=Zo(e.getElementById("app"));return zA(e).pipe(El({onFailure:o=>x(()=>(St(r)&&Re(r.value,"无法解析宿主引导配置。",o.message),zt("failed"))),onSuccess:o=>{if(Qt(o)||o.value.status!=="ready"||Qt(r))return re(zt(St(o)&&o.value.status==="incompatible"?"incompatible":"idle"));const i=o.value;return i.platform!=="web"?(Re(r.value,"当前 Web 宿主不支持此产物平台。",i.platform),re(zt("incompatible"))):i.primitiveApiMajor!==Ct?(Re(r.value,"Primitive API 主版本不兼容,已拒绝执行入口产物。",`required=${i.primitiveApiMajor}, available=${Ct}`),re(zt("incompatible"))):QA(r.value,e,t,i,n)}}))}function eC(e,t){uo(O(function*(){const n=yield*Ol(),r=()=>uo($e(n,Fe));yield*ie(x(()=>(t.addEventListener("pagehide",r,{once:!0}),()=>t.removeEventListener("pagehide",r))),o=>x(()=>o())).pipe(Y(n)),yield*JA(e,t).pipe(Y(n))}))}typeof document<"u"&&typeof window<"u"&&document.getElementById(Ko)!==null&&eC(document,window);export{Ko as RUNTIME_BOOTSTRAP_ELEMENT_ID,rC as mountEmbeddedHost,JA as mountHostBootstrap};
|