@reviewflow/app 6.29.0 → 6.30.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/README.md +4 -2
- package/build/index-node.mjs +82 -10
- package/client/_expo/static/css/{global-5d78cd7d74c13d3efa0ebc9c34bf74ce.css → global-38ec5413df335aab6df428b378e57678.css} +1 -1
- package/client/_expo/static/js/web/{AppEntry-af33ecb76692f1d4bf129a8723a15db3.js → AppEntry-47fc619343957eb0afc7d828734d2885.js} +280 -273
- package/client/_expo/static/js/web/{__common-17510da16d95e3b1ba1460791f9458d4.js → __common-236a0578252ea820a7d88bdef538504b.js} +394 -394
- package/client/_expo/static/js/web/{abap-1d9ac56aacc2a77df03b00dd319411e4.js → abap-2e9f70da8df4d5e0a23604bb203909d8.js} +1 -1
- package/client/_expo/static/js/web/{actionscript-3-1b3a0e563fc28892e7450d7a3dbea9d7.js → actionscript-3-7ac2804f091b7eb5862701e9bbb535f2.js} +1 -1
- package/client/_expo/static/js/web/{ada-84b1e9cd9b0bf3a18d0b8572affad885.js → ada-f596d959b5ae8c9bbb8674f7c2232392.js} +1 -1
- package/client/_expo/static/js/web/{ahk-539e3bffce52d551d3b664bcd016b55e.js → ahk-7191833cc3e877dc43c551f6755647b4.js} +1 -1
- package/client/_expo/static/js/web/{ahk2-5c201e0c468e502fcf4ffeddebb2f8b8.js → ahk2-3d889b5cd44864ec94eddd32953fe08a.js} +1 -1
- package/client/_expo/static/js/web/{andromeeda-50135048b3ddc2743a3064e1b46487a7.js → andromeeda-4f75990c720cbd4cfd6069e52987242c.js} +1 -1
- package/client/_expo/static/js/web/{angular-ts-3ef0e268ab9aea5de0073451de700cc3.js → angular-ts-11ade30f63ee31752cc9453d7f70678b.js} +3 -3
- package/client/_expo/static/js/web/{apache-65187a5815520f2e9ff8c24c3af30c66.js → apache-f28ce9a5c4565eb19bce93e257d968ef.js} +1 -1
- package/client/_expo/static/js/web/{apex-1bbd9292747f1cc9a3976ba8955c03b1.js → apex-8f65ce73103fee1002b7be8455272791.js} +1 -1
- package/client/_expo/static/js/web/{apl-f347e265437638f741f55d5c3e85f534.js → apl-596c4d7f44a1275a1ac34314855af5b8.js} +1 -1
- package/client/_expo/static/js/web/{applescript-28667336110426563cf10da2a5a22a47.js → applescript-ee8665b8c5635fefcfe529892165fe1d.js} +1 -1
- package/client/_expo/static/js/web/{ara-1cc3024f78d455b0ef565e60543a468f.js → ara-c8362a5ebe4351e342e7cdd547a57757.js} +1 -1
- package/client/_expo/static/js/web/{asciidoc-4f40c8d751eabd6da991c0b8f4fce78f.js → asciidoc-04196d8ca08a8303da86ea4cc4310db2.js} +1 -1
- package/client/_expo/static/js/web/{asm-86ca8d0b7d008ae86180c4c83c0d400e.js → asm-6ea552dd02985d1d7a25c7af08f72db3.js} +1 -1
- package/client/_expo/static/js/web/{astro-0f065ec109b3ab5e55d9da65adc54680.js → astro-20be66484a64e1ef803c8d6c8296b55f.js} +1 -1
- package/client/_expo/static/js/web/{aurora-x-69d404602ecea6891a31abc6d1fcb430.js → aurora-x-110ae90a80dd2efbae8e4dc99f7793c6.js} +1 -1
- package/client/_expo/static/js/web/{awk-c5e456d2607d2179b7fe141afa2c5b64.js → awk-a0a921b4a12c2dc6c7e44a7a4097b98e.js} +1 -1
- package/client/_expo/static/js/web/{ayu-dark-845e503030a98ed772b2ce6642d376d4.js → ayu-dark-7ced1c2e1234aef5bb38c353d07b8739.js} +1 -1
- package/client/_expo/static/js/web/{ayu-light-1204e893f26b1cc869f87f2ca7f38b85.js → ayu-light-40b5476b805c13670df218a0ec1665b9.js} +1 -1
- package/client/_expo/static/js/web/{ayu-mirage-594a2eb331f7822576cf77ea166ef698.js → ayu-mirage-9d985b9e2c8e4a8657c6813418730f28.js} +1 -1
- package/client/_expo/static/js/web/{ballerina-d7fc8662739be75aafff4d8f605ed1e9.js → ballerina-2c3beec90018181e33296f06805b12d9.js} +1 -1
- package/client/_expo/static/js/web/{beancount-b40c19d6284d345f69b539901ff2ede2.js → beancount-2cc64a72ac1f53e2691f115c166a5f2a.js} +1 -1
- package/client/_expo/static/js/web/{berry-da1adcc97ceb4b132e51cee56339b4e1.js → berry-473a22a5d82882555eb5fbbc0d75151b.js} +1 -1
- package/client/_expo/static/js/web/{bicep-12577364945c0c0fba660fde491dd3ed.js → bicep-707a8fec327ec9427ea9a4f8df7e2bde.js} +1 -1
- package/client/_expo/static/js/web/{bird2-66d016a51f56984ffc04f36b3fbe11b0.js → bird2-e94e562177923c66407c19268c22390a.js} +1 -1
- package/client/_expo/static/js/web/{blade-ad182e55fedcd0b8f164d40befb3676f.js → blade-56270856a9aaf12bd547e68d68624cba.js} +1 -1
- package/client/_expo/static/js/web/{bsl-67044a389bc1e21b5f51a793dbc7963e.js → bsl-5875c1166d026f75a01dc2656c1d06b4.js} +1 -1
- package/client/_expo/static/js/web/{c3-9dcc1d47093209f86c06ac1242b25fda.js → c3-ec4dbd4bf84dacd9837696bf57dcaeb8.js} +1 -1
- package/client/_expo/static/js/web/{cadence-f99a3e28948cb610940806aa763325db.js → cadence-9026d2897cf4e3869ab762c6a801d82a.js} +1 -1
- package/client/_expo/static/js/web/{cairo-d8a8457d7bed646faccbca9da9acab18.js → cairo-5e112cf61ae5e1b14274252c26dc6a5d.js} +1 -1
- package/client/_expo/static/js/web/{catppuccin-frappe-228b4e91d3100e5c7f1eac27afb42285.js → catppuccin-frappe-c32292d540fd671f444cf00a1bc46c81.js} +1 -1
- package/client/_expo/static/js/web/{catppuccin-latte-099bf96bad478facc47d84545536d986.js → catppuccin-latte-0e28bfe1ef078e29ef1720b114515763.js} +1 -1
- package/client/_expo/static/js/web/{catppuccin-macchiato-24e1ff572f52d99a925b08965dbbd923.js → catppuccin-macchiato-cbf6fff24df23f6c7926c7a1c9936bc7.js} +1 -1
- package/client/_expo/static/js/web/{catppuccin-mocha-d94c2484f456d0e5c68e94c3e0b48811.js → catppuccin-mocha-cdeecc3b3491339d853320736afbe0ba.js} +1 -1
- package/client/_expo/static/js/web/{chapel-5a2a0923bdde4b612b3a73de150f7ed2.js → chapel-dd134b880f1a28c558f03879513d3cab.js} +1 -1
- package/client/_expo/static/js/web/{clarity-9f996b3edf341ab2349a15a8eb96e953.js → clarity-e748f22c22a03397313c18b2be53b055.js} +1 -1
- package/client/_expo/static/js/web/{cobol-c06d7ad2098b0f70e0f1899a36af2012.js → cobol-da95a7e0f3bdaa0158ce571d35628556.js} +1 -1
- package/client/_expo/static/js/web/{codeowners-bc0e9c16cc6ec9ce6ca1dbbc6fe1f0c7.js → codeowners-3a55a6f8cf8a6ad31ce589bf4b0158a1.js} +1 -1
- package/client/_expo/static/js/web/{codeql-076d43bf0f1c889bc686d33b598c0026.js → codeql-56fe168af0cf46f0cd9df81f02e49b46.js} +1 -1
- package/client/_expo/static/js/web/{common-lisp-a5864403f5607efc35488e8170bbc5df.js → common-lisp-7b38198cdf6534a5d97e00cf873e14a3.js} +1 -1
- package/client/_expo/static/js/web/{coq-7cded60d56df64b97825650b0ce7cd6e.js → coq-b68759446f213551c38ac3c3d16b3531.js} +1 -1
- package/client/_expo/static/js/web/{crystal-c856891e4f36067db417434b9968950e.js → crystal-70fb9c04267244d065e4c9deb9c53a6e.js} +1 -1
- package/client/_expo/static/js/web/{cue-efd93400698dc50968afc54a60e6e53d.js → cue-846e62b69adcc13b4dead6096841c31d.js} +1 -1
- package/client/_expo/static/js/web/{cypher-936eaf0d174fc822a0c973bd37dc8d21.js → cypher-8f1974041522ab0014c204ee5f2d05bb.js} +1 -1
- package/client/_expo/static/js/web/{d-c9e909471bbc090ee9268627b25288ab.js → d-d36d7ebe14df334c93696ffe22c68805.js} +1 -1
- package/client/_expo/static/js/web/{dark-plus-62e710c000d7ba4424ef62c5b70304c3.js → dark-plus-31eafb669d740c1c9364004354a80129.js} +1 -1
- package/client/_expo/static/js/web/{dax-6428a3d8f9765d5b70ede39489cede44.js → dax-a51f657288f543e13e8d55fe3218422b.js} +1 -1
- package/client/_expo/static/js/web/{desktop-293c95d61e64e74b4cce05553b731819.js → desktop-e980d86c6a0c968ce978e45e4c070422.js} +1 -1
- package/client/_expo/static/js/web/{diff-theme-preview-62d523936417adf8c8d90f415fa7a650.js → diff-theme-preview-f9a05045f1e388c69c588f3ec5e4070e.js} +1 -1
- package/client/_expo/static/js/web/{diff-viewer-9609b488fd8bcda7f3774e45fce06779.js → diff-viewer-c8c033837f41db40950202cc30bdf273.js} +1 -1
- package/client/_expo/static/js/web/{diff-worker-dd280c4c526a2fc9ff31be61789e0277.js → diff-worker-6249b0b0f59fbfe30871679a01405cd8.js} +5 -5
- package/client/_expo/static/js/web/{dotenv-132e8f5d8e558b3f445795042350c198.js → dotenv-bb882d264d60ded424b1c797cb726668.js} +1 -1
- package/client/_expo/static/js/web/{dracula-2f337bca17d461739420f14ec3df80e7.js → dracula-8929b8ec04c9d6df089058cf479c07d6.js} +1 -1
- package/client/_expo/static/js/web/{dracula-soft-2e75af49e445893f9f8b53961dd346a6.js → dracula-soft-335da7803d19ecdc8bf5072b2bdacb21.js} +1 -1
- package/client/_expo/static/js/web/{dream-maker-b9b6def5f93c6e798a1379775448a43f.js → dream-maker-068cf1265547eb3b69b3962ee6a8ca00.js} +1 -1
- package/client/_expo/static/js/web/{edge-7d3c0223f3b21b9acca378d1d1b3b5d9.js → edge-e48feef5365c143e5e77176fd43f4e28.js} +1 -1
- package/client/_expo/static/js/web/{elm-07a7e6f64d866ec33f5e3ad33ec9d0d2.js → elm-b026cdcc4e0cd9d272139f9f1decbc3b.js} +1 -1
- package/client/_expo/static/js/web/{emacs-lisp-ca5fc960d616a14674c6091b8fd80911.js → emacs-lisp-63ed44c0f6de4127586f7e232aca562a.js} +1 -1
- package/client/_expo/static/js/web/{erb-81c28127844a46cf19f470634a40b78b.js → erb-fd04af6fd3b1098b97f89116d874f28a.js} +1 -1
- package/client/_expo/static/js/web/{everforest-dark-5461b5eb0c9dc147daa4ba2c2c504c6b.js → everforest-dark-e511b5eed41906110538fae6eb7368b3.js} +1 -1
- package/client/_expo/static/js/web/{everforest-light-0cf85c94659c1fc554006cbfa177496b.js → everforest-light-1743fe16d39aacb09897ca8642ae9faa.js} +1 -1
- package/client/_expo/static/js/web/{fennel-f210597768cd97ad2b03b4a8e56cc992.js → fennel-81bfa65cc00b2663a7a49cfb93370277.js} +1 -1
- package/client/_expo/static/js/web/{fish-455602daff94587e2abbf9d99b062391.js → fish-82b67ac81a255f3e08b710d635f20a86.js} +1 -1
- package/client/_expo/static/js/web/{fluent-e151ea65b8eef1d9bb0c2cf752e8f9ad.js → fluent-72f3a2948353fa22b7dc5754a0329f78.js} +1 -1
- package/client/_expo/static/js/web/{fortran-fixed-form-8a97df3ca130f416ec00a6a38e0a8158.js → fortran-fixed-form-f1c08ca1cf4fe777916c930f03c3cf16.js} +1 -1
- package/client/_expo/static/js/web/{gdresource-31db48547692c2ce3c4679c44c9ff484.js → gdresource-87beec231127d940d96415f06fa422e0.js} +1 -1
- package/client/_expo/static/js/web/{genie-158dabfeffad4a137a13ef1b462117cd.js → genie-e8ea193e96905a3551370b6e17be228d.js} +1 -1
- package/client/_expo/static/js/web/{gherkin-275ed11cea0297b1b2c3e37280f91088.js → gherkin-8e254baae02e6780bc501ed62b622791.js} +1 -1
- package/client/_expo/static/js/web/{github-dark-0745af1bd606273b83f499844e95910c.js → github-dark-db515bfcce973ef8954c711d7f714b08.js} +1 -1
- package/client/_expo/static/js/web/{github-dark-default-6c7baa85b82aa9d133c22d990952c25c.js → github-dark-default-8f70e1d585fa0374423d73a242a26b54.js} +1 -1
- package/client/_expo/static/js/web/{github-dark-dimmed-25cef34a45c4119bd42a2644fcf6c359.js → github-dark-dimmed-8c28a2f2410734b879c6b649469d70d0.js} +1 -1
- package/client/_expo/static/js/web/{github-dark-high-contrast-d7b6898cb1a940424544e547a16c0572.js → github-dark-high-contrast-4a242662e3f8c205a0f1b163a0346a18.js} +1 -1
- package/client/_expo/static/js/web/{github-light-f42c37912e4754b0dcd74d3a2de8c166.js → github-light-62a68523dc322b0411610abe43feb6be.js} +1 -1
- package/client/_expo/static/js/web/{github-light-default-b50938a2fd181e270dc9dd5a963740b3.js → github-light-default-aca32ee5f1170f75ef3ccaf61c5ab44d.js} +1 -1
- package/client/_expo/static/js/web/{github-light-high-contrast-7fc271bc0806175811e749edb5898ce2.js → github-light-high-contrast-7d099c66e83346279821e7cbf5664abd.js} +1 -1
- package/client/_expo/static/js/web/{gleam-fc62b73f5178f854138da3b80b3aa6b5.js → gleam-f5ee350a7b20cfe900b2392a80cfbda3.js} +1 -1
- package/client/_expo/static/js/web/{glimmer-js-2712b042c00c4db5b4e8a7077861a03d.js → glimmer-js-7accf0134c6f0bd6c4e4a797dd4e666c.js} +1 -1
- package/client/_expo/static/js/web/{glimmer-ts-99d5caf11aacda481e5415cce24dac0b.js → glimmer-ts-b43d75417aa1d4c606d8879a42154960.js} +1 -1
- package/client/_expo/static/js/web/{gn-60bec68bfa1cbc9a52a860f570b5a84f.js → gn-1b9d3b0deef0bc06fb9701a598f1e620.js} +1 -1
- package/client/_expo/static/js/web/{gnuplot-0b7f8d8f35090eef6f9645ef8afb76be.js → gnuplot-23d9a547e591d009d721d686985aded0.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-dark-hard-e6ef48a2a0e612b7731aa51c634334cb.js → gruvbox-dark-hard-4bdb3104051b082cfe7b88c4befe97df.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-dark-medium-2c3141abf6f36351629129757c63d552.js → gruvbox-dark-medium-b80027930ffde9a5332584aa9566cb3c.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-dark-soft-87fd816f5e46c4f80bd9f6ed0d17296d.js → gruvbox-dark-soft-4b303e4a0489ce3ae6f5cee1460c8e78.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-light-hard-188d0df223de396522f90360832dd49d.js → gruvbox-light-hard-ef8283ae9c5b5bbffce912b74264fd29.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-light-medium-4a8b98d2c0dee4fe4772de1c5d4ed12d.js → gruvbox-light-medium-2e4ef31c6dce9cc96724fda6a7c12450.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-light-soft-d3202bc74e32fe6a34d4d07c3cf1b861.js → gruvbox-light-soft-519478c73027ea21f73a00a3fad78647.js} +1 -1
- package/client/_expo/static/js/web/{hack-63231f54b0ef1b1afc1f7ba55e6d3a5f.js → hack-739b39ae996b928ee6adc7d199fe11e4.js} +1 -1
- package/client/_expo/static/js/web/{haskell-0f7f119282159b8d91a15ecf9f82ae7d.js → haskell-2c8e25f0261d4d63b7d9f1669edeb7ab.js} +1 -1
- package/client/_expo/static/js/web/{hcl-f32c6c9348269c682ba8d4bbc91c45c6.js → hcl-ef6dd0f32cb1dfb757f59b636f7e0d31.js} +1 -1
- package/client/_expo/static/js/web/{hjson-830edd797527f404e011ba4c1778f392.js → hjson-580819e77d64cafc25be02f453b1bb94.js} +1 -1
- package/client/_expo/static/js/web/{horizon-61b888386fd855037303f11fac6404af.js → horizon-6d4fd821b31d7e524678d4358c69fe96.js} +1 -1
- package/client/_expo/static/js/web/{horizon-bright-de2954dddfd3629731bc57ff8721d110.js → horizon-bright-f677b81920e429cba4dcf5c8bf772871.js} +1 -1
- package/client/_expo/static/js/web/{houston-44b7b8ac04c0338b1565488a54910180.js → houston-9ee17be6bc8305a312a519bcef2ce8e4.js} +1 -1
- package/client/_expo/static/js/web/{http-6a42e598b7adab85d2a3e1167fcc6ef4.js → http-762b54ca58b4892921ac4c89577bce95.js} +1 -1
- package/client/_expo/static/js/web/{hurl-b3b02ef22642c5007a33d15401fd03f6.js → hurl-9d664e748a03fd9e7dd5feaf0c163b54.js} +1 -1
- package/client/_expo/static/js/web/{hxml-32b01d8fc354009a3066e5e549c4f07e.js → hxml-a6441709ca4fb936f55fd9b7cdd09d18.js} +1 -1
- package/client/_expo/static/js/web/{hy-3cc259bdb2c55056fd53884217354c3d.js → hy-b9dc5c4ee67ffe1d4e8b21a48af6cc08.js} +1 -1
- package/client/_expo/static/js/web/{imba-e1ab033ede27c485d3fb1db10d4db24d.js → imba-1639a98991192859fcbe680cfc3df2a8.js} +1 -1
- package/client/_expo/static/js/web/{jinja-6903eb3a526e1728c267460cdd4f8a32.js → jinja-ee27bbfb9b7b407d0a88734aea055069.js} +2 -2
- package/client/_expo/static/js/web/{jison-c49174e07485653730bb29d1eb5e2c29.js → jison-7bb4febcb890ac3135fdf6412def627e.js} +1 -1
- package/client/_expo/static/js/web/{json5-e6e22975c58fba13ed7b34374b18ccb1.js → json5-a77e3b35286e051499e7f42578f36d72.js} +1 -1
- package/client/_expo/static/js/web/{jsonl-87aa723b0d5b882b306e850a2334cf2d.js → jsonl-b262068391d1bdbb8f13e13189b4e827.js} +1 -1
- package/client/_expo/static/js/web/{jsonnet-5be29241ae8ee46a10822158af80d258.js → jsonnet-49d65ff62cc0f751cb9b901cb8fcaa69.js} +1 -1
- package/client/_expo/static/js/web/{jssm-8b57d8ddcc6fe95bf7c39b9b89636482.js → jssm-eb26f752d0424415b46f3556fe6b1ec2.js} +1 -1
- package/client/_expo/static/js/web/{just-c4adf0a68809cfb38314bc87b49a51fc.js → just-9cdad679bc6047e4a5baddbf658050af.js} +1 -1
- package/client/_expo/static/js/web/{kanagawa-dragon-6f2754a933baf7435c548adac8e2424a.js → kanagawa-dragon-18d94f9f60de6351b8a1195f32cc286c.js} +1 -1
- package/client/_expo/static/js/web/{kanagawa-lotus-ab269fc2d7b34768a9556f5fed25a816.js → kanagawa-lotus-db26a46a3f781e0bd9e6d43f653b629e.js} +1 -1
- package/client/_expo/static/js/web/{kanagawa-wave-49e78e9ad0bb51582867dde6a8896a9b.js → kanagawa-wave-c8b202ea155f70cef610c7f3c9bf5ec9.js} +1 -1
- package/client/_expo/static/js/web/{kdl-7946123227255a4a49d2a32798a9c6de.js → kdl-cbd9a313c63a98cf6474078f45d767a0.js} +1 -1
- package/client/_expo/static/js/web/{kotlin-61a341d5bc92f2cc09b8f421cd40f29e.js → kotlin-427747574e7e9bcd751c9d9946cf8cc4.js} +1 -1
- package/client/_expo/static/js/web/{kusto-109308489dbcd304f3a01474fe772f23.js → kusto-4dc8f46d2922310b637c309c142ec692.js} +1 -1
- package/client/_expo/static/js/web/{laserwave-93eb646888c0d35d278631b53e8155e1.js → laserwave-85ca7d1811cdd9e1c60fb8f7a6f403ec.js} +1 -1
- package/client/_expo/static/js/web/{lean-2311e885754c93ef25ba06edf92ef667.js → lean-827f19221f5915d5f988dcb40f9c3c5a.js} +1 -1
- package/client/_expo/static/js/web/{light-plus-5ec1e055ccff1960c110b07e1f7a2faf.js → light-plus-e1f65a346dcc461692a72e28bafce383.js} +1 -1
- package/client/_expo/static/js/web/{liquid-849aa471fdf6c64e962f0b1ec6ba3d7a.js → liquid-9b62c7aed1103d75a7909c888599865a.js} +1 -1
- package/client/_expo/static/js/web/{llvm-bacd42240f59e02862c5cc05e51a707a.js → llvm-de544aa1fc7a504a660c34b46b5ab9b7.js} +1 -1
- package/client/_expo/static/js/web/{logo-194c91183aae5a514bc4b24e6ce49048.js → logo-be2afa9a7ce74e801d706c51d7085034.js} +1 -1
- package/client/_expo/static/js/web/{luau-4ae7e84a770e4f28d9bc2148afef1e78.js → luau-2e7c991fbc8da185e929070016d8421c.js} +1 -1
- package/client/_expo/static/js/web/{marko-52e90b5e938dbbf41014e8ed1c4e6695.js → marko-30e47b82bf52629cecf3ba9486c04696.js} +1 -1
- package/client/_expo/static/js/web/{material-theme-f43866f45fade32fa7418ba171797767.js → material-theme-cd2cd122fee7044f2a36e6e86beafb9c.js} +1 -1
- package/client/_expo/static/js/web/{material-theme-darker-fc61931fbb84ace24fc74529daea62dd.js → material-theme-darker-ec939edad6d24c81d12cc19268d026d3.js} +1 -1
- package/client/_expo/static/js/web/{material-theme-lighter-1ca917fc60334f23674d1a476068457f.js → material-theme-lighter-3cd8ac83a80e31d6e6bdc6442891335a.js} +1 -1
- package/client/_expo/static/js/web/{material-theme-ocean-4deb12319d414812039bb490a95185e8.js → material-theme-ocean-5202edb58b012bbd48316261807f37bf.js} +1 -1
- package/client/_expo/static/js/web/{material-theme-palenight-ac91ff904673de97c723890788b18f44.js → material-theme-palenight-b33f1ea877dba746bbeccf5dead498a5.js} +1 -1
- package/client/_expo/static/js/web/{matlab-91122137e783bc9c2d9df68636f53501.js → matlab-bb04e5e6465113bb066e565619d84132.js} +1 -1
- package/client/_expo/static/js/web/{mdc-b97ea0cc1877a79c5fda7b79e35de216.js → mdc-4777477c147967e64c3164acb92c8a4e.js} +1 -1
- package/client/_expo/static/js/web/{mdx-5be34761e85cb0c2fea0564bdb233900.js → mdx-7173433185198ccc29a3c1c23e555cec.js} +1 -1
- package/client/_expo/static/js/web/{mermaid-fd328fddcb3d72ff2f772f8610c4d2df.js → mermaid-82286d584d169ec4fb1a5719eae10e19.js} +1 -1
- package/client/_expo/static/js/web/{min-dark-37a3ae7b14d8c3451786924fd0aa7684.js → min-dark-4248cfb843cfd707ce44e0dc6f7e380a.js} +1 -1
- package/client/_expo/static/js/web/{min-light-4e962cf6d8c1515296e915462cc2de48.js → min-light-2f11e9238b6b5aaa9bfb6c5c2a851052.js} +1 -1
- package/client/_expo/static/js/web/{mipsasm-98b812fc9f1868e2a2f3e9668e5b13be.js → mipsasm-d3a36a0c4324c6843a5f4aebc51c2a35.js} +1 -1
- package/client/_expo/static/js/web/{mojo-b56f753890491db8ec08da2db3dd467b.js → mojo-9af9778e18170228b407c433cf8edaef.js} +1 -1
- package/client/_expo/static/js/web/{monokai-aba8adf9d98039619c466ecb72dda36e.js → monokai-d0e7de54fa5aea43c1df797eda0d2433.js} +1 -1
- package/client/_expo/static/js/web/{moonbit-867206ae215ee9700f6a4c88e8267ae9.js → moonbit-ca39d911e49c0a35019ec0d0aa3e1cad.js} +1 -1
- package/client/_expo/static/js/web/{move-9de6916c994e4add3a89e702dec551e9.js → move-005ada459fcacbe954255ee996bc659e.js} +1 -1
- package/client/_expo/static/js/web/{narrat-40bd899a71b2e3eaa05ad219c0910cd0.js → narrat-fd3ad066b77f9324a078d30609a86341.js} +1 -1
- package/client/_expo/static/js/web/{nextflow-fd578ad0dce1f56a2d621ee1306db930.js → nextflow-5bb66091ccd60cb46c0bbd5407bfa486.js} +1 -1
- package/client/_expo/static/js/web/{nginx-d271920d20024b0e80316dfd44e7ad19.js → nginx-b661d6eedeafc799d5548b1b33557e3e.js} +1 -1
- package/client/_expo/static/js/web/{night-owl-83747781a1e5118658f479d7c59bd4f9.js → night-owl-d862b5d4dc7ee5500d40879663039990.js} +1 -1
- package/client/_expo/static/js/web/{night-owl-light-9becee553cdf76032a1e88a9ff37642a.js → night-owl-light-67c6fa791d65b2eec373456f5853a982.js} +1 -1
- package/client/_expo/static/js/web/{nix-1e0764b8678b2adb11010029bbc4d92e.js → nix-b2df628b9ea80cb1a9006f1d29fa9324.js} +2 -2
- package/client/_expo/static/js/web/{nord-d725dba51fe58463d40438604904757c.js → nord-f82226862319b7b01c1634c357ca3b11.js} +1 -1
- package/client/_expo/static/js/web/{nsis-74fdc5c6f70a20279fd926d7a88efa85.js → nsis-075cbc20fbcda6983df11aeb8f486d92.js} +1 -1
- package/client/_expo/static/js/web/{nushell-df4bdafd27bc1bf8870dd284b0aaac6f.js → nushell-c35be5f4f24e5e9a1e1d7d40e0a6f076.js} +1 -1
- package/client/_expo/static/js/web/{objective-cpp-5f5d2d54b6d3f52d28aed0fbf2e78df2.js → objective-cpp-f98441712e800dedda3a0c17c0b68a79.js} +1 -1
- package/client/_expo/static/js/web/{odin-bd0f65097c3e3bf70691bda4ffc909ef.js → odin-d9eebee12f942ef647847c1ae9dfc14a.js} +1 -1
- package/client/_expo/static/js/web/{one-dark-pro-59f0a6a24a4c4c3ba5ab032a96e5178f.js → one-dark-pro-1f51659a1c3c12bcd2593fb5e6e10f90.js} +1 -1
- package/client/_expo/static/js/web/{one-light-9973eb7c7570001dfc754607282ec25a.js → one-light-7d2aa5d51b94049fea07de987e1b2a1e.js} +1 -1
- package/client/_expo/static/js/web/{openscad-ee24f0d0bce886070c8a1c6db721e099.js → openscad-6501af630d983c807acb05bc0a16854b.js} +1 -1
- package/client/_expo/static/js/web/{org-6832822a2d6a767da8ea44e0fc86a35e.js → org-d2dbb388a8dac87386251ce5e9ad7d78.js} +1 -1
- package/client/_expo/static/js/web/{pascal-493aaad4b6c9652ac861f4b06cec6670.js → pascal-4543f4bab90ed965516f7c51607eb380.js} +1 -1
- package/client/_expo/static/js/web/{pierre-dark-c015a4a36af52a60f4f129f64ee0b0e7.js → pierre-dark-c1e6f70006b4297a29dd25b1cc087c79.js} +1 -1
- package/client/_expo/static/js/web/{pierre-dark-protanopia-deuteranopia-cd3c332e9eb35637c4a925f0efb47e08.js → pierre-dark-protanopia-deuteranopia-5fd7e8b639653143349368350475d58c.js} +1 -1
- package/client/_expo/static/js/web/{pierre-dark-soft-f00bf0241730877f06a882dce1e8c857.js → pierre-dark-soft-fb5879a3febe918fdcfabb984a9fb0b8.js} +1 -1
- package/client/_expo/static/js/web/{pierre-dark-tritanopia-5a6fa451830f27f0415daa3198f780d4.js → pierre-dark-tritanopia-1da20fc3f294cd5e914020086ece46e9.js} +1 -1
- package/client/_expo/static/js/web/{pierre-dark-vibrant-28d48bb687fb183f1d0a68c8ea362937.js → pierre-dark-vibrant-9af44ed0b8f20d0958c09eaa33b1672c.js} +1 -1
- package/client/_expo/static/js/web/{pierre-light-a6a2d3c7e53721b0b8076f42e3deb488.js → pierre-light-85ccdaacc26b1631d75a59960694b697.js} +1 -1
- package/client/_expo/static/js/web/{pierre-light-protanopia-deuteranopia-ad5491a00a8abaa6f3c554cda4412244.js → pierre-light-protanopia-deuteranopia-72456a52dbf8e6f2d6427fccd9577884.js} +1 -1
- package/client/_expo/static/js/web/{pierre-light-soft-453a4c7bd4da9f7112e96626b087e7ec.js → pierre-light-soft-14f58fea25684c9d5e7a9be9b40c611d.js} +1 -1
- package/client/_expo/static/js/web/{pierre-light-tritanopia-05a08d9945ac0e280335079debcbe32f.js → pierre-light-tritanopia-ac1d463c91096c1a1f46884553f29f2e.js} +1 -1
- package/client/_expo/static/js/web/{pierre-light-vibrant-2b4152cd3d89c4bade3d63c7c957c1d5.js → pierre-light-vibrant-af7e4d6bbf17dce08723df1f10bc11a2.js} +1 -1
- package/client/_expo/static/js/web/{pkl-f5da177903fb27b0b31bea9b9823b73a.js → pkl-1a05eb472378073673c81af5ba629cf6.js} +1 -1
- package/client/_expo/static/js/web/{plastic-1e12af0f7256bc45e6fcab73b0cee445.js → plastic-48e9da45c4f0d87b8a219220a5703457.js} +1 -1
- package/client/_expo/static/js/web/{plsql-666c55937e897e96fbee715e4aaa95ef.js → plsql-5b9695faf27afd7b54c05df9932ea57b.js} +1 -1
- package/client/_expo/static/js/web/{po-a0f0cc3c2e8f5d76a604fd9ae3e01fea.js → po-6dce78174843cc49c553bbfdbf047437.js} +1 -1
- package/client/_expo/static/js/web/{poimandres-a6100f42ef5039c3152e15c9de55aabf.js → poimandres-cf770dcdda162ba7cdab679ac64d8e89.js} +1 -1
- package/client/_expo/static/js/web/{polar-6d4d758a39a07538ed14375c4023f4cb.js → polar-f5aed72e2e48c2de5ec84b41d819373c.js} +1 -1
- package/client/_expo/static/js/web/{powerquery-58df826162f2188f7e7e3fdd745bb87e.js → powerquery-3eb7d455d8b384a22cfb06732a676570.js} +1 -1
- package/client/_expo/static/js/web/{prisma-083dfac0cd9671282da3a1750e4a446a.js → prisma-059a6fba16d968d97daf657bbc86abc0.js} +1 -1
- package/client/_expo/static/js/web/{prolog-312290dd46b2644881848c98f9ed5b67.js → prolog-dd7687c63944322e911f206b50cc4d12.js} +1 -1
- package/client/_expo/static/js/web/{proto-8fa6567af026def25d618520991b02da.js → proto-266d67b60472e34ac12cffe0b2b8ad60.js} +1 -1
- package/client/_expo/static/js/web/{pull-request-diff-tree-577c99c101e271e0c2ce04ec23ed3304.js → pull-request-diff-tree-f2f765e0d780844f72304460e6eab553.js} +73 -73
- package/client/_expo/static/js/web/{puppet-85d5b263d1eb6ce127669f5445b82732.js → puppet-b68aa4349c3d06bb7cac55b28304b000.js} +1 -1
- package/client/_expo/static/js/web/{purescript-153effca1998e46f0767b563ad6af8ee.js → purescript-c06437c654b4c8bccda2ddcd1fbfb4c4.js} +1 -1
- package/client/_expo/static/js/web/{qml-c398e3d3f05598df6b26b07da65dbcb6.js → qml-d60d56ea5d6d2edb69c9c60041b8a80f.js} +1 -1
- package/client/_expo/static/js/web/{qmldir-5ddc1a20ecc4eb2e8b1b8a1b3c39d2fd.js → qmldir-0ee2d5b89aa455c14b24d6e1897dafa9.js} +1 -1
- package/client/_expo/static/js/web/{qss-0adf3c41d66b3001e16a73372feee9de.js → qss-c701eac69a55633883d76aeec15723c3.js} +1 -1
- package/client/_expo/static/js/web/{racket-e0532363b687ff906f5f85742d120f87.js → racket-e5161c4a6bc3f849370db71eae4613da.js} +1 -1
- package/client/_expo/static/js/web/{razor-fcb2b4391468602de1104a1e6c391b93.js → razor-a960f79f9d40757489d453223834386b.js} +1 -1
- package/client/_expo/static/js/web/{rbs-86059f2a614409b8337adfe7bbcea75d.js → rbs-8d3061f011d66ab1cfd4d6b733b6737c.js} +1 -1
- package/client/_expo/static/js/web/{red-e4407a36b6345304f2002b892399ec12.js → red-f552accd2545eef2aa1fc84bede42904.js} +1 -1
- package/client/_expo/static/js/web/{reg-777386343a03a69ce3305323a0fac009.js → reg-f77a9d39622075fe34a1a10d0c40c565.js} +1 -1
- package/client/_expo/static/js/web/{rel-aec8a9c6e11df8b9dcda9300042465fd.js → rel-5b25099d5d318f901a72999e7bd5a1fd.js} +1 -1
- package/client/_expo/static/js/web/{reviewflow-diff-themes-31ee96fce5d07e9f7790981858ddb09d.js → reviewflow-diff-themes-c0d5cb1393c070e02ae9214b8f0865c6.js} +1 -1
- package/client/_expo/static/js/web/{riscv-8faa5a7d65f5758fdfd11c3d9339b22b.js → riscv-7944e2cbdbbb756ffc555c0a267b8671.js} +1 -1
- package/client/_expo/static/js/web/{ron-caff31dad613e006aa9d2b49cf4b5441.js → ron-ed329b2fe7a6784311546bfabac620a2.js} +1 -1
- package/client/_expo/static/js/web/{rose-pine-453d3effbf7167b4a1f159fa509b6420.js → rose-pine-9746d346cc0f8905466ed172a2a933a5.js} +1 -1
- package/client/_expo/static/js/web/{rose-pine-dawn-2ce44170def5e3731074f7b34bfc32ce.js → rose-pine-dawn-ada3ac1043fd2c5f389ed36618eba7f9.js} +1 -1
- package/client/_expo/static/js/web/{rose-pine-moon-776f26f8ff5f8f6d7de4ddeecd060b9a.js → rose-pine-moon-993570c475c162c916ddb1accb1c9a20.js} +1 -1
- package/client/_expo/static/js/web/{rosmsg-b5b8baa8a99fc4c6597b112fe6c60697.js → rosmsg-9ba7a37e8db144dc9238785eb59569a3.js} +1 -1
- package/client/_expo/static/js/web/{rst-1af790ace95681c18673fad47bbb6838.js → rst-a1985c64d2c0c6b49af1ec93948683de.js} +1 -1
- package/client/_expo/static/js/web/{sas-8abd17f165d4ad725ac2c3405e6eb965.js → sas-a49a5f3224476bf612a0b777e876a043.js} +1 -1
- package/client/_expo/static/js/web/{sass-d5197b54504df1acf71288abff0ba778.js → sass-c8366e510b76edd482cfe0ab53c6fff1.js} +1 -1
- package/client/_expo/static/js/web/{scheme-309c2e14100efaa61eae7f5e7be648ff.js → scheme-e4c7cf222fcbf8d5b19bb1c3ffcdc85f.js} +1 -1
- package/client/_expo/static/js/web/{shaderlab-ca11ebecb92afcc74fbbcf9058efa38d.js → shaderlab-b8f735dd901592e4253d23098bc96445.js} +1 -1
- package/client/_expo/static/js/web/{shellsession-dc53dd53a0bf1a4aeac75d135870ac88.js → shellsession-64add8d6a680ec6bf01ca774d06ab6ea.js} +1 -1
- package/client/_expo/static/js/web/{slack-dark-900b2ffa04d9927866d4f1676a1199ec.js → slack-dark-e01923a9dd8a7aab558ed28879fdc562.js} +1 -1
- package/client/_expo/static/js/web/{slack-ochin-f4abe91cff01c5a68772ae0aef983353.js → slack-ochin-764f03690136f62a1c80ca5cda00362c.js} +1 -1
- package/client/_expo/static/js/web/{smalltalk-26b7b94fbf1305fe3947439c6aa92bc5.js → smalltalk-3e8e0f9adcd17111d7e7c4b8ae1987db.js} +1 -1
- package/client/_expo/static/js/web/{smithy-e74e14330d69cda608a99e4b505b8406.js → smithy-b516dd0f777be60c3f1f0fd0c3637d29.js} +1 -1
- package/client/_expo/static/js/web/{snazzy-light-4aeab81d71e3fb42a53b52bcd691c12b.js → snazzy-light-e91b419ab227ccba98f4ce356e3717a7.js} +1 -1
- package/client/_expo/static/js/web/{solarized-dark-29a175a42c99641ce6900a326a9c189f.js → solarized-dark-223fd9e291411ac1996f1c9742c30067.js} +1 -1
- package/client/_expo/static/js/web/{solarized-light-2612df90b99d03fb87f600c365a7529a.js → solarized-light-7d0213f14006e5f1940dbcf259909356.js} +1 -1
- package/client/_expo/static/js/web/{solidity-8a16f487aa76217ba59af8f1c485c213.js → solidity-f6030d9ee66561938d58ed67c2adff63.js} +1 -1
- package/client/_expo/static/js/web/{soy-4d13f0a2ffc01e1063bdf8958fdcb23e.js → soy-1e7ae484e66692ad6da15d11f05bec7b.js} +1 -1
- package/client/_expo/static/js/web/{sparql-ee40145c39790a3ca5001f3a8e5ae331.js → sparql-fd3250e12151c5613e4870bcb00c28b0.js} +1 -1
- package/client/_expo/static/js/web/{splunk-f6c906780a1d0cd28186f1aef3aaa8d6.js → splunk-156389dd9909574643e18e37d58573c1.js} +1 -1
- package/client/_expo/static/js/web/{ssh-config-a0d07f103566f011999a52c666bfd483.js → ssh-config-621ccb446673c37fadb98a91b5028ca3.js} +1 -1
- package/client/_expo/static/js/web/{stata-ac6521703da2c260c6ec8809444d07ad.js → stata-2a21bd8dca5e50926f5836914b8d1cad.js} +1 -1
- package/client/_expo/static/js/web/{surrealql-71b9b67cd213361bebede83329ecabe6.js → surrealql-24bbef1183fd15ad3e876a1c6f4392e2.js} +1 -1
- package/client/_expo/static/js/web/{svelte-d4dbcb7221e8bcb511745886f949d6f6.js → svelte-9678eac406ab6e8cb8c40496ad2adea9.js} +1 -1
- package/client/_expo/static/js/web/{synthwave-84-38d280b6087be27cbd0b64d8f6321a1a.js → synthwave-84-2c602af4b36a85a8dc55e56b407ec438.js} +1 -1
- package/client/_expo/static/js/web/{systemd-1e068203f28181ec6bc62a246772e9fd.js → systemd-52efd932283ed86e51f8778ff1c1f695.js} +1 -1
- package/client/_expo/static/js/web/{talonscript-224f5c32bc3024a0792dec4305f31a03.js → talonscript-139cc2042caa8327d3456b84af07015d.js} +1 -1
- package/client/_expo/static/js/web/{tasl-dd30afb9ba0e6f9f8047319b9f680226.js → tasl-c4722e77b00035de3d3ae57248236b71.js} +1 -1
- package/client/_expo/static/js/web/{tcl-657b650a8e2c0b9037639a8d485899a9.js → tcl-1f9e664af36f966b0cd5d5c2900354d7.js} +1 -1
- package/client/_expo/static/js/web/{templ-c9aa0f67576eb2f0d4d88156efb63dd2.js → templ-c0975daf3998479217ddea72d24e486c.js} +1 -1
- package/client/_expo/static/js/web/{terraform-8bf996209fc8214e42769db8c44b7c5f.js → terraform-2c1e86c074ea8bdf9c85bc9ed9b09d3a.js} +1 -1
- package/client/_expo/static/js/web/{tokyo-night-88a4b97337940bd07b18ee16e107285d.js → tokyo-night-ae59d133800b7f7b015e1533e124bcd3.js} +1 -1
- package/client/_expo/static/js/web/{toml-d9524b9dcf26d0f5bf358c705e9ae1de.js → toml-9dc63a4a33d147338614616777c5b59f.js} +1 -1
- package/client/_expo/static/js/web/{ts-tags-bca6cd77bf42e9cdea9253e3f90e46a2.js → ts-tags-8c8a77c0fb052997a23f606cda830358.js} +6 -6
- package/client/_expo/static/js/web/{tsv-3643857c91b2a6d7c5cd5658ead34755.js → tsv-2f65a035fb214c7052305c91edf50bb9.js} +1 -1
- package/client/_expo/static/js/web/{typespec-25258fe581b1f7cb8daca4cc3cf4a654.js → typespec-158b81955d958df139c6646c39a24564.js} +1 -1
- package/client/_expo/static/js/web/{typst-760655f439200d69fe03ac27cfb3f85a.js → typst-659c947d60782fe0171591f58dac7e53.js} +1 -1
- package/client/_expo/static/js/web/{v-716e4e7d3b0e2b33ed72b2dc2915e2fe.js → v-c85d0aa4cf3366ae902f5c689d3463cd.js} +1 -1
- package/client/_expo/static/js/web/{vala-6e6910af609de1eaa24a1ce105a8b489.js → vala-d7a8cfd4015165eabb44b6b2a4ed4f45.js} +1 -1
- package/client/_expo/static/js/web/{vesper-329062b21aace0a4bfa486c9f172b05f.js → vesper-9a15d66379fca58281f70fa6cad11190.js} +1 -1
- package/client/_expo/static/js/web/{vhdl-a60f03524e1f99cdf80fa6f9b86a9e0c.js → vhdl-9b7f0aff6f0467d41a9bace4582a4749.js} +1 -1
- package/client/_expo/static/js/web/{viml-667efd0746f0308da09a89ca3d32b488.js → viml-5f3a1045155ba7d8c40d4eb8dbbf1661.js} +1 -1
- package/client/_expo/static/js/web/{vitesse-black-3141d08405533eacdb81209dcf1577f6.js → vitesse-black-1172bb5e50c5eefb0f8b3ba2988d6b6d.js} +1 -1
- package/client/_expo/static/js/web/{vitesse-dark-401e3402d0533898d96adf17b56441e2.js → vitesse-dark-8c46908fc4932e44f3f9c5b3f001aaf6.js} +1 -1
- package/client/_expo/static/js/web/{vitesse-light-1c433a2704eb03435038aa47e70c9e1e.js → vitesse-light-dc8af3f133fe090666bafcb63d823d6f.js} +1 -1
- package/client/_expo/static/js/web/{vue-d695b6a493070ddcc959bef53929e530.js → vue-e80251a2dffd54ab2fd2e70560f2cbf6.js} +5 -5
- package/client/_expo/static/js/web/{vue-html-bd346137d185805e4e3def64fe312c8a.js → vue-html-a02c0c5842d6548b9d3346d340c4e170.js} +1 -1
- package/client/_expo/static/js/web/{vue-vine-c267c64d580a41b12f4835c4aa5dfe21.js → vue-vine-02e07e15d152ebe4e1b40fd67cd9802e.js} +1 -1
- package/client/_expo/static/js/web/{vyper-5b694c8ece24472e65dfa4cb250f4574.js → vyper-27a5cb7e1f71f3cadd311c379c657710.js} +1 -1
- package/client/_expo/static/js/web/{wasm-df92e51d871e0a24ae48ea8f55dbe9eb.js → wasm-403dea06c287cc8cc40d7f87068a6240.js} +2 -2
- package/client/_expo/static/js/web/{wasm-9f04ea22d3e1a96c5d20e4c49d2a497c.js → wasm-69ca501bcaae4e41c92828c3f6ff27dc.js} +1 -1
- package/client/_expo/static/js/web/{wasm-B9ZqxnKj-98465696f727fee2761365a42cd495de.js → wasm-B9ZqxnKj-7c8a250fac2c7f594c5e0f0d9aa394a3.js} +1 -1
- package/client/_expo/static/js/web/{wenyan-d108fe79ba83311c372b99adcabd9c12.js → wenyan-3f643ff222fbf647026e14f63d7d3c1d.js} +1 -1
- package/client/_expo/static/js/web/{wgsl-af68e1a5ed2849644abf2c255bfcdacb.js → wgsl-3b55d0042dbdc87e095a5508805280a2.js} +1 -1
- package/client/_expo/static/js/web/{wikitext-31db3d319ac8895f83c9792fd5659ed1.js → wikitext-ee82ea5018ccefda7b78c423768d14a8.js} +1 -1
- package/client/_expo/static/js/web/{wit-65e0030f186ff3a82fa99bed7fc48132.js → wit-042fafa926e638d305f2888034d1a552.js} +1 -1
- package/client/_expo/static/js/web/{wolfram-8aef47bb255ffb8eb56d6811228763f9.js → wolfram-29e38f3c2860c573b984d6f371d9a2ee.js} +1 -1
- package/client/_expo/static/js/web/{zenscript-6e70271be4470166e9af4b3db5cd2e9c.js → zenscript-74e040dfdf4bea8e5caa8ff8e9eba08c.js} +1 -1
- package/client/index.html +3 -3
- package/package.json +2 -2
|
@@ -6,9 +6,9 @@ var __BUNDLE_START_TIME__=globalThis.nativePerformanceNow?nativePerformanceNow()
|
|
|
6
6
|
__d(function(g,_r,i,a,m,_e,d){m.exports=function(r,e){if(null==r)return{};var n={};for(var t in r)if({}.hasOwnProperty.call(r,t)){if(-1!==e.indexOf(t))continue;n[t]=r[t]}return n},m.exports.__esModule=!0,m.exports.default=m.exports},25,[]);
|
|
7
7
|
__d(function(g,r,i,a,m,_e,d){m.exports=function(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e},m.exports.__esModule=!0,m.exports.default=m.exports},30,[]);
|
|
8
8
|
__d(function(g,r,i,a,m,_e,d){var e=0;m.exports=function(t){return"__private_"+e+++"_"+t},m.exports.__esModule=!0,m.exports.default=m.exports},31,[]);
|
|
9
|
-
__d(function(g,r,i,a,m,e,d){m.exports=r(d[0])},
|
|
10
|
-
__d(function(g,r,i,a,m,e,d){function n(n,t){const o=globalThis[`${__METRO_GLOBAL_PREFIX__??''}__loadBundleAsync`];if(null!=o){const s=String(n);if(null!=t){const n=t[s];if(null!=n)return o(n)}}}function t(t,o,s){const u=()=>r.importAll(t,s);try{return u()}catch(s){const c=n(t,o);if(null!=c)return c.then(u);throw s}const c=n(t,o);return null!=c?c.then(u):u()}function o(n,o,s){const u=t(n,o,s),c=Promise.resolve(u);return c._result=u,c}o.unstable_importMaybeSync=function(n,o){return t(n,o)},o.prefetch=function(t,o,s){n(t,o)?.then(()=>{},()=>{})},o.unstable_resolve=function(n,t){if(!t)throw new Error('Bundle splitting is required for Web Worker imports');const o=t[n];if(!o)throw new Error('Worker import is missing from split bundle paths: '+o);return o},o.unstable_createWorker=function(n,t){if('undefined'==typeof crossOriginIsolated||!crossOriginIsolated)return new Worker(n,t);try{const s=(o=n,`\n const ASYNC_WORKER_BASE = ${JSON.stringify(o)};\n const IMPORT_SCRIPTS = importScripts;\n const FETCH = fetch;\n const fromBaseURL = (input) => new URL(input, ASYNC_WORKER_BASE).href;\n self.fetch = function(input, init) {\n return FETCH(typeof input === 'string' ? fromBaseURL(input) : input, init);\n };\n self.importScripts = function(...urls) {\n return IMPORT_SCRIPTS.apply(self, urls.map(fromBaseURL));\n };\n importScripts(ASYNC_WORKER_BASE);\n `);return n=URL.createObjectURL(new Blob([s],{type:'text/javascript'})),new Worker(n,t)}finally{URL.revokeObjectURL(n)}var o},m.exports=o},
|
|
11
|
-
__d(function(g,r,i,a,m,e,d){"use strict";r(d[0])},
|
|
9
|
+
__d(function(g,r,i,a,m,e,d){m.exports=r(d[0])},1022,[1023]);
|
|
10
|
+
__d(function(g,r,i,a,m,e,d){function n(n,t){const o=globalThis[`${__METRO_GLOBAL_PREFIX__??''}__loadBundleAsync`];if(null!=o){const s=String(n);if(null!=t){const n=t[s];if(null!=n)return o(n)}}}function t(t,o,s){const u=()=>r.importAll(t,s);try{return u()}catch(s){const c=n(t,o);if(null!=c)return c.then(u);throw s}const c=n(t,o);return null!=c?c.then(u):u()}function o(n,o,s){const u=t(n,o,s),c=Promise.resolve(u);return c._result=u,c}o.unstable_importMaybeSync=function(n,o){return t(n,o)},o.prefetch=function(t,o,s){n(t,o)?.then(()=>{},()=>{})},o.unstable_resolve=function(n,t){if(!t)throw new Error('Bundle splitting is required for Web Worker imports');const o=t[n];if(!o)throw new Error('Worker import is missing from split bundle paths: '+o);return o},o.unstable_createWorker=function(n,t){if('undefined'==typeof crossOriginIsolated||!crossOriginIsolated)return new Worker(n,t);try{const s=(o=n,`\n const ASYNC_WORKER_BASE = ${JSON.stringify(o)};\n const IMPORT_SCRIPTS = importScripts;\n const FETCH = fetch;\n const fromBaseURL = (input) => new URL(input, ASYNC_WORKER_BASE).href;\n self.fetch = function(input, init) {\n return FETCH(typeof input === 'string' ? fromBaseURL(input) : input, init);\n };\n self.importScripts = function(...urls) {\n return IMPORT_SCRIPTS.apply(self, urls.map(fromBaseURL));\n };\n importScripts(ASYNC_WORKER_BASE);\n `);return n=URL.createObjectURL(new Blob([s],{type:'text/javascript'})),new Worker(n,t)}finally{URL.revokeObjectURL(n)}var o},m.exports=o},1023,[]);
|
|
11
|
+
__d(function(g,r,i,a,m,e,d){"use strict";r(d[0])},1618,[1619]);
|
|
12
12
|
__d(function(e,t,n,r,o,s,i){var a,l,c,u,d,h,p=t(i[0]).default,f=t(i[1]).default,g=t(i[2]).default;const m=["content","explanation","offset"],y=["lazyCompile"],b=["theme"];var w=Object.defineProperty,k=(e,t)=>{let n={};for(var r in e)w(n,r,{get:e[r],enumerable:!0});return t||w(n,Symbol.toStringTag,{value:"Module"}),n},C=Object.defineProperty,v=Object.getOwnPropertyDescriptor,x=Object.getOwnPropertyNames,S=Object.prototype.hasOwnProperty,_=(e,t)=>{let n={};for(var r in e)C(n,r,{get:e[r],enumerable:!0});return t||C(n,Symbol.toStringTag,{value:"Module"}),n},A=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var o,s=x(t),i=0,a=s.length;i<a;i++)o=s[i],S.call(e,o)||o===n||C(e,o,{get:(e=>t[e]).bind(null,o),enumerable:!(r=v(t,o))||r.enumerable});return e},E=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function L(e){return Array.isArray(e)?I(e):e instanceof RegExp?e:"object"==typeof e?N(e):e}function I(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=L(e[n]);return t}function N(e){let t={};for(let n in e)t[n]=L(e[n]);return t}function P(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function O(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return 0===t?e:~t===e.length-1?O(e.substring(0,e.length-1)):e.substr(1+~t)}var T=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,$=class{static hasCaptures(e){return null!==e&&(T.lastIndex=0,T.test(e))}static replaceCaptures(e,t,n){return e.replace(T,(e,r,o,s)=>{let i=n[parseInt(r||o,10)];if(!i)return e;{let e=t.substring(i.start,i.end);for(;"."===e[0];)e=e.substring(1);switch(s){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function R(e,t){return e<t?-1:e>t?1:0}function M(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=R(e[r],t[r]);if(0!==n)return n}return 0}return n-r}function j(e){return!!/^#[0-9a-f]{6}$/i.test(e)||(!!/^#[0-9a-f]{8}$/i.test(e)||(!!/^#[0-9a-f]{3}$/i.test(e)||!!/^#[0-9a-f]{4}$/i.test(e)))}function D(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var B=class{constructor(e){this.fn=e}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}},F=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(q(e),t)}static createFromParsedTheme(e,t){return X(e,t)}_cachedMatchRoot=new B(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>U(e.parent,t.parentScopes));return n?new z(n.fontStyle,n.foreground,n.background):null}},G=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(const r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function U(e,t){if(0===t.length)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&&!W(e.scopeName,r);){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function W(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}var z=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function q(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,o=t.length;e<o;e++){let o,s=t[e];if(!s.settings)continue;if("string"==typeof s.scope){let e=s.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),o=e.split(",")}else o=Array.isArray(s.scope)?s.scope:[""];let i=-1;if("string"==typeof s.settings.fontStyle){i=0;let e=s.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":i|=1;break;case"bold":i|=2;break;case"underline":i|=4;break;case"strikethrough":i|=8}}let a=null;"string"==typeof s.settings.foreground&&j(s.settings.foreground)&&(a=s.settings.foreground);let l=null;"string"==typeof s.settings.background&&j(s.settings.background)&&(l=s.settings.background);for(let t=0,s=o.length;t<s;t++){let s=o[t].trim().split(" "),c=s[s.length-1],u=null;s.length>1&&(u=s.slice(0,s.length-1),u.reverse()),n[r++]=new H(c,u,e,i,a,l)}}return n}var H=class{constructor(e,t,n,r,o,s){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=o,this.background=s}},V=(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))(V||{});function X(e,t){e.sort((e,t)=>{let n=R(e.scope,t.scope);return 0!==n?n:(n=M(e.parentScopes,t.parentScopes),0!==n?n:e.index-t.index)});let n=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let s=new K(t),i=new z(n,s.getId(r),s.getId(o)),a=new Q(new J(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];a.insert(0,n.scope,n.parentScopes,n.fontStyle,s.getId(n.foreground),s.getId(n.background))}return new F(s,i,a)}var K=class{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw 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)}},Z=Object.freeze([]),J=class e{constructor(e,t,n,r,o){this.scopeDepth=e,this.parentScopes=t||Z,this.fontStyle=n,this.foreground=r,this.background=o}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}},Q=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[r]&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){const o=t.parentScopes[r].length-e.parentScopes[n].length;if(0!==o)return o;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,r=t.indexOf(".");if(-1===r?(e=t,n=""):(e=t.substring(0,r),n=t.substring(r+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,o,s,i){if(""===n)return void this._doInsertHere(t,r,o,s,i);let a,l,c,u=n.indexOf(".");-1===u?(a=n,l=""):(a=n.substring(0,u),l=n.substring(u+1)),this._children.hasOwnProperty(a)?c=this._children[a]:(c=new e(this._mainRule.clone(),J.cloneArr(this._rulesWithParentScopes)),this._children[a]=c),c.insert(t+1,l,r,o,s,i)}_doInsertHere(e,t,n,r,o){if(null!==t){for(let s=0,i=this._rulesWithParentScopes.length;s<i;s++){let i=this._rulesWithParentScopes[s];if(0===M(i.parentScopes,t))return void i.acceptOverwrite(e,n,r,o)}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===o&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new J(e,t,n,r,o))}else this._mainRule.acceptOverwrite(e,n,r,o)}},Y=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){const n=e.getLanguageId(t),r=e.getTokenType(t),o=e.getFontStyle(t),s=e.getForeground(t),i=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:o,foreground:s,background:i})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return!!(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static set(t,n,r,o,s,i,a){let l=e.getLanguageId(t),c=e.getTokenType(t),u=e.containsBalancedBrackets(t)?1:0,d=e.getFontStyle(t),h=e.getForeground(t),p=e.getBackground(t);return 0!==n&&(l=n),8!==r&&(c=r),null!==o&&(u=o?1:0),-1!==s&&(d=s),0!==i&&(h=i),0!==a&&(p=a),(l|c<<8|u<<10|d<<11|h<<15|p<<24)>>>0}};function ee(e){return e}function te(e,t){const n=[],r=re(e);let o=r.next();for(;null!==o;){let e=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=r.next()}let t=i();if(n.push({matcher:t,priority:e}),","!==o)break;o=r.next()}return n;function s(){if("-"===o){o=r.next();const e=s();return t=>!!e&&!e(t)}if("("===o){o=r.next();const e=a();return")"===o&&(o=r.next()),e}if(ne(o)){const e=[];do{e.push(o),o=r.next()}while(ne(o));return n=>t(e,n)}return null}function i(){const e=[];let t=s();for(;t;)e.push(t),t=s();return t=>e.every(e=>e(t))}function a(){const e=[];let t=i();for(;t&&(e.push(t),"|"===o||","===o);){do{o=r.next()}while("|"===o||","===o);t=i()}return t=>e.some(e=>e(t))}}function ne(e){return!!e&&!!e.match(/[\w\.:]+/)}function re(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 oe(e){"function"==typeof e.dispose&&e.dispose()}var se=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},ie=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},ae=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))}},le=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new se(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;processQueue(){const e=this.Q;this.Q=[];const t=new ae;for(const n of e)ce(n,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof se){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName))continue;if(this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function ce(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 s=n.lookup(t);e instanceof se?de({baseGrammar:s,selfGrammar:o},r):ue(e.ruleName,{baseGrammar:s,selfGrammar:o,repository:o.repository},r);const i=n.injections(e.scopeName);if(i)for(const e of i)r.add(new se(e))}function ue(e,t,n){if(t.repository&&t.repository[e]){he([t.repository[e]],t,n)}}function de(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&he(e.selfGrammar.patterns,Object.assign({},e,{repository:e.selfGrammar.repository}),t),e.selfGrammar.injections&&he(Object.values(e.selfGrammar.injections),Object.assign({},e,{repository:e.selfGrammar.repository}),t)}function he(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const e=r.repository?P({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&he(r.patterns,Object.assign({},t,{repository:e}),n);const o=r.include;if(!o)continue;const s=be(o);switch(s.kind){case 0:de(Object.assign({},t,{selfGrammar:t.baseGrammar}),n);break;case 1:de(t,n);break;case 2:ue(s.ruleName,Object.assign({},t,{repository:e}),n);break;case 3:case 4:const r=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){const o={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};4===s.kind?ue(s.ruleName,o,n):de(o,n)}else 4===s.kind?n.add(new ie(s.scopeName,s.ruleName)):n.add(new se(s.scopeName))}}}var pe=class{kind=0},fe=class{kind=1},ge=class{constructor(e){this.ruleName=e}kind=2},me=class{constructor(e){this.scopeName=e}kind=3},ye=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function be(e){if("$base"===e)return new pe;if("$self"===e)return new fe;const t=e.indexOf("#");return-1===t?new me(e):0===t?new ge(e.substring(1)):new ye(e.substring(0,t),e.substring(t+1))}var we=/\\(\d+)/,ke=/\\(\d+)/g;var Ce=class{constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=$.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=$.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${O(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?$.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?$.replaceCaptures(this._contentName,e,t):this._contentName}},ve=class extends Ce{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!")}},xe=class extends Ce{constructor(e,t,n,r,o){super(e,t,n,null),this._match=new Le(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 Ie,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Se=class extends Ce{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 Ie,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},_e=class extends Ce{constructor(e,t,n,r,o,s,i,a,l,c){super(e,t,n,r),this._begin=new Le(o,this.id),this.beginCaptures=s,this._end=new Le(i||"\uffff",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,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 Ie;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Ae=class extends Ce{constructor(e,t,n,r,o,s,i,a,l){super(e,t,n,r),this._begin=new Le(o,this.id),this.beginCaptures=s,this.whileCaptures=a,this._while=new Le(i,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ie;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 Ie,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"\uffff"),this._cachedCompiledWhilePatterns}},Ee=class e{static createCaptureRule(e,t,n,r,o){return e.registerRule(e=>new ve(t,e,n,r,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(o=>{if(t.id=o,t.match)return new xe(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=P({},r,t.repository));let o=t.patterns;return void 0===o&&t.include&&(o=[{include:t.include}]),new Se(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(o,n,r))}return t.while?new Ae(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new _e(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let o=[];if(t){let s=0;for(const e in t){if("$vscodeTextmateLocation"===e)continue;const t=parseInt(e,10);t>s&&(s=t)}for(let e=0;e<=s;e++)o[e]=null;for(const s in t){if("$vscodeTextmateLocation"===s)continue;const i=parseInt(s,10);let a=0;t[s].patterns&&(a=e.getCompiledRuleId(t[s],n,r)),o[i]=e.createCaptureRule(n,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,a)}}return o}static _compilePatterns(t,n,r){let o=[];if(t)for(let s=0,i=t.length;s<i;s++){const i=t[s];let a=-1;if(i.include){const t=be(i.include);switch(t.kind){case 0:case 1:a=e.getCompiledRuleId(r[i.include],n,r);break;case 2:let o=r[t.ruleName];o&&(a=e.getCompiledRuleId(o,n,r));break;case 3:case 4:const s=t.scopeName,l=4===t.kind?t.ruleName:null,c=n.getExternalGrammar(s,r);if(c)if(l){let t=c.repository[l];t&&(a=e.getCompiledRuleId(t,n,c.repository))}else a=e.getCompiledRuleId(c.repository.$self,n,c.repository)}}else a=e.getCompiledRuleId(i,n,r);if(-1!==a){const e=n.getRule(a);let t=!1;if((e instanceof Se||e instanceof _e||e instanceof Ae)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;o.push(a)}}return{patterns:o,hasMissingPatterns:(t?t.length:0)!==o.length}}},Le=class e{constructor(e,t){if(e&&"string"==typeof e){const t=e.length;let n=0,r=[],o=!1;for(let s=0;s<t;s++)if("\\"===e.charAt(s)&&s+1<t){const t=e.charAt(s+1);"z"===t?(r.push(e.substring(n,s)),r.push("$(?!\\n)(?<!\\n)"),n=s+2):"A"!==t&&"G"!==t||(o=!0),s++}this.hasAnchor=o,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=we.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw new Error("This method should only be called if the source is a string");let n=t.map(t=>e.substring(t.start,t.end));return ke.lastIndex=0,this.source.replace(ke,(e,t)=>D(n[parseInt(t,10)]||""))}_buildAnchorCache(){if("string"!=typeof this.source)throw new Error("This method should only be called if the source is a string");let e,t,n,r,o=[],s=[],i=[],a=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),o[e]=n,s[e]=n,i[e]=n,a[e]=n,"\\"===n&&e+1<t&&(r=this.source.charAt(e+1),"A"===r?(o[e+1]="\uffff",s[e+1]="\uffff",i[e+1]="A",a[e+1]="A"):"G"===r?(o[e+1]="\uffff",s[e+1]="G",i[e+1]="\uffff",a[e+1]="G"):(o[e+1]=r,s[e+1]=r,i[e+1]=r,a[e+1]=r),e++);return{A0_G0:o.join(""),A0_G1:s.join(""),A1_G0:i.join(""),A1_G1:a.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache&&"string"==typeof this.source?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}},Ie=class{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new Ne(e,t,this._items.map(e=>e.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){return new Ne(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},Ne=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&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("\n")}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Pe=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Oe=class e{constructor(e,t){this._defaultAttributes=new Pe(e,8),this._embeddedLanguagesMatcher=new Te(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new Pe(0,0);_getBasicScopeAttributes=new B(e=>new Pe(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){const n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Te=class{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([e,t])=>D(e));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}};"undefined"!=typeof process&&process.env.VSCODE_TEXTMATE_DEBUG;var $e=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Re(e,t,n,r,o,s,i,a){const l=t.content.length;let c=!1,u=-1;if(i){const i=Me(e,t,n,r,o,s);o=i.stack,r=i.linePos,n=i.isFirstLine,u=i.anchorPosition}const d=Date.now();for(;!c;){if(0!==a&&Date.now()-d>a)return new $e(o,!0);h()}return new $e(o,!1);function h(){const i=je(e,t,n,r,o,u);if(!i)return s.produce(o,l),void(c=!0);const a=i.captureIndices,d=i.matchedRuleId,h=!!(a&&a.length>0)&&a[0].end>r;if(-1===d){const i=o.getRule(e);s.produce(o,a[0].start),o=o.withContentNameScopesList(o.nameScopesList),Ue(e,t,n,o,s,i.endCaptures,a),s.produce(o,a[0].end);const d=o;if(o=o.parent,u=d.getAnchorPos(),!h&&d.getEnterPos()===r)return o=d,s.produce(o,l),void(c=!0)}else{const i=e.getRule(d);s.produce(o,a[0].start);const p=o,f=i.getName(t.content,a),g=o.contentNameScopesList.pushAttributed(f,e);if(o=o.push(d,r,u,a[0].end===l,null,g,g),i instanceof _e){const r=i;Ue(e,t,n,o,s,r.beginCaptures,a),s.produce(o,a[0].end),u=a[0].end;const d=r.getContentName(t.content,a),f=g.pushAttributed(d,e);if(o=o.withContentNameScopesList(f),r.endHasBackReferences&&(o=o.withEndRule(r.getEndWithResolvedBackReferences(t.content,a))),!h&&p.hasSameRuleAs(o))return o=o.pop(),s.produce(o,l),void(c=!0)}else if(i instanceof Ae){const r=i;Ue(e,t,n,o,s,r.beginCaptures,a),s.produce(o,a[0].end),u=a[0].end;const d=r.getContentName(t.content,a),f=g.pushAttributed(d,e);if(o=o.withContentNameScopesList(f),r.whileHasBackReferences&&(o=o.withEndRule(r.getWhileWithResolvedBackReferences(t.content,a))),!h&&p.hasSameRuleAs(o))return o=o.pop(),s.produce(o,l),void(c=!0)}else if(Ue(e,t,n,o,s,i.captures,a),s.produce(o,a[0].end),o=o.pop(),!h)return o=o.safePop(),s.produce(o,l),void(c=!0)}a[0].end>r&&(r=a[0].end,n=!1)}}function Me(e,t,n,r,o,s){let i=o.beginRuleCapturedEOL?0:-1;const a=[];for(let t=o;t;t=t.pop()){const n=t.getRule(e);n instanceof Ae&&a.push({rule:n,stack:t})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:a,findOptions:c}=Ge(l.rule,e,l.stack.endRule,n,r===i),u=a.findNextMatchSync(t,r,c);if(!u){o=l.stack.pop();break}if(-2!==u.ruleId){o=l.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(s.produce(l.stack,u.captureIndices[0].start),Ue(e,t,n,l.stack,s,l.rule.whileCaptures,u.captureIndices),s.produce(l.stack,u.captureIndices[0].end),i=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}return{stack:o,linePos:r,anchorPosition:i,isFirstLine:n}}function je(e,t,n,r,o,s){const i=De(e,t,n,r,o,s),a=e.getInjections();if(0===a.length)return i;const l=Be(a,e,t,n,r,o,s);if(!l)return i;if(!i)return l;const c=i.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:i}function De(e,t,n,r,o,s){const{ruleScanner:i,findOptions:a}=Fe(o.getRule(e),e,o.endRule,n,r===s),l=i.findNextMatchSync(t,r,a);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}function Be(e,t,n,r,o,s,i){let a,l=Number.MAX_VALUE,c=null,u=0;const d=s.contentNameScopesList.getScopeNames();for(let s=0,h=e.length;s<h;s++){const h=e[s];if(!h.matcher(d))continue;const{ruleScanner:p,findOptions:f}=Fe(t.getRule(h.ruleId),t,null,r,o===i),g=p.findNextMatchSync(n,o,f);if(!g)continue;const m=g.captureIndices[0].start;if(!(m>=l)&&(l=m,c=g.captureIndices,a=g.ruleId,u=h.priority,l===o))break}return c?{priorityMatch:-1===u,captureIndices:c,matchedRuleId:a}:null}function Fe(e,t,n,r,o){return{ruleScanner:e.compileAG(t,n,r,o),findOptions:0}}function Ge(e,t,n,r,o){return{ruleScanner:e.compileWhileAG(t,n,r,o),findOptions:0}}function Ue(e,t,n,r,o,s,i){if(0===s.length)return;const a=t.content,l=Math.min(s.length,i.length),c=[],u=i[0].end;for(let t=0;t<l;t++){const l=s[t];if(null===l)continue;const d=i[t];if(0===d.length)continue;if(d.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=d.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,d.start):o.produce(r,d.start),l.retokenizeCapturedWithRuleId){const t=l.getName(a,i),s=r.contentNameScopesList.pushAttributed(t,e),c=l.getContentName(a,i),u=s.pushAttributed(c,e),h=r.push(l.retokenizeCapturedWithRuleId,d.start,-1,!1,null,s,u),p=e.createOnigString(a.substring(0,d.end));Re(e,p,n&&0===d.start,d.start,h,o,!1,0),oe(p);continue}const h=l.getName(a,i);if(null!==h){const t=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(h,e);c.push(new We(t,d.end))}}for(;c.length>0;)o.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var We=class{constructor(e,t){this.scopes=e,this.endPos=t}};function ze(e,t,n,r,o,s,i,a){return new Xe(e,t,n,r,o,s,i,a)}function qe(e,t,n,r,o){const s=te(t,He),i=Ee.getCompiledRuleId(n,r,o.repository);for(const n of s)e.push({debugSelector:t,matcher:n.matcher,ruleId:i,grammar:o,priority:n.priority})}function He(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(Ve(t[r],e))return n=r+1,!0;return!1})}function Ve(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 Xe=class{constructor(e,t,n,r,o,s,i,a){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=a,this._basicScopeAttributesProvider=new Oe(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=Ke(t,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const e of Object.keys(o)){const t=te(e,He);for(const n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:o[e]})}}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=e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),t=[],n=this._rootScopeName,r=e(n);if(r){const e=r.injections;if(e)for(let n in e)qe(t,n,e[n],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach(e=>{const n=this.getExternalGrammar(e);if(n){const e=n.injectionSelector;e&&qe(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return null===this._injections&&(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]=Ke(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){let o;if(-1===this._rootId&&(this._rootId=Ee.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==Je.NULL)o=!1,t.reset();else{o=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=Y.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),s=this.getRule(this._rootId).getName(null,null);let i;i=s?Ze.createRootAndLookUpScopeName(s,r,this):Ze.createRoot("unknown",r),t=new Je(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n";const s=this.createOnigString(e),i=s.content.length,a=new Ye(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=Re(this,s,o,0,t,a,!0,r);return oe(s),{lineLength:i,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function Ke(e,t){return(e=L(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 Ze=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,o=t?.scopePath??null;for(const t of n)o=G.push(o,t.scopeNames),r=new e(r,o,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new G(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const o=r.getMetadataForScope(t),s=new G(null,t),i=r.themeProvider.themeMatch(s),a=e.mergeAttributes(n,o,i);return new e(null,s,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,o=0,s=0;return null!==n&&(r=n.fontStyle,o=n.foregroundId,s=n.backgroundId),Y.set(e,t.languageId,t.tokenType,null,r,o,s)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);const r=t.split(/ /g);let o=this;for(const t of r)o=e._pushAttributed(o,t,n);return o}static _pushAttributed(t,n,r){const o=r.getMetadataForScope(n),s=t.scopePath.push(n),i=r.themeProvider.themeMatch(s),a=e.mergeAttributes(t.tokenAttributes,o,i);return new e(t,s,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const t=[];let n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},Je=class e{constructor(e,t,n,r,o,s,i,a){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=i,this.contentNameScopesList=a,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&Ze.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,o,s,i,a){return new e(this,t,n,r,o,s,i,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=Ze.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Ze.fromExtension(r,n.contentNameScopesList))}},Qe=class{allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):te(e,He).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>te(e,He).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},Ye=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}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e?.getScopeNames()??[];for(const e of this._tokenTypeOverrides)e.matcher(t)&&(n=Y.set(n,0,ee(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}return r&&(n=Y.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n?void(this._lastTokenEndIndex=t):(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),void(this._lastTokenEndIndex=t))}const n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},et=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;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 s=this._rawGrammars.get(e);if(!s)return null;this._grammars.set(e,ze(e,s,t,n,r,o,this,this._onigLib))}return this._grammars.get(e)}},tt=class{constructor(e){this._options=e,this._syncRegistry=new et(F.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(F.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new Qe(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,o){const s=new le(this._syncRegistry,e);for(;s.Q.length>0;)s.Q.map(e=>this._loadSingleGrammar(e.scopeName)),s.processQueue();return this._grammarForScopeName(e,t,n,r,o)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,o=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,o)}},nt=Je.NULL;function rt(e,t){const n="string"==typeof e?{}:Object.assign({},e.colorReplacements),r="string"==typeof e?e:e.name;for(const[e,o]of Object.entries(t?.colorReplacements||{}))"string"==typeof o?n[e]=o:e===r&&Object.assign(n,o);return n}function ot(e,t){return e&&t?.[e?.toLowerCase()]||e}function st(e){return Array.isArray(e)?e:[e]}async function it(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function at(e){return!e||["plaintext","txt","text","plain"].includes(e)}function lt(e){return"none"===e}function ct(e){return lt(e)}const ut=/(\r?\n)/g;function dt(e,t=!1){if(0===e.length)return[["",0]];const n=e.split(ut);let r=0;const o=[];for(let e=0;e<n.length;e+=2){const s=t?n[e]+(n[e+1]||""):n[e];o.push([s,r]),r+=n[e].length,r+=n[e+1]?.length||0}return o}const ht="#333333",pt="#bbbbbb",ft="#fffffe",gt="#1e1e1e",mt="__shiki_resolved";function yt(e){if(e?.[mt])return e;const t=Object.assign({},e);t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements=Object.assign({},t.colorReplacements),t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r="light"===t.type?ht:pt),n||(n="light"===t.type?ft:gt),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 s=new Map;function i(e){if(s.has(e))return s.get(e);o+=1;const n=`#${o.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?i(e):(s.set(e,n),n)}t.settings=t.settings.map(e=>{const n=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),r=e.settings?.background&&!e.settings.background.startsWith("#");if(!n&&!r)return e;const o=Object.assign({},e,{settings:Object.assign({},e.settings)});if(n){const n=i(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,o.settings.foreground=n}if(r){const n=i(e.settings.background);t.colorReplacements[n]=e.settings.background,o.settings.background=n}return o});for(const e of Object.keys(t.colors||{}))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){const n=i(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,mt,{enumerable:!1,writable:!1,value:!0}),t}async function bt(e){return[...new Set((await Promise.all(e.filter(e=>{return!("ansi"===(t=e)||at(t));var t}).map(async e=>await it(e).then(e=>Array.isArray(e)?e:[e])))).flat())]}async function wt(e){return(await Promise.all(e.map(async e=>ct(e)?null:yt(await it(e))))).filter(e=>!!e)}function kt(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 E(`Circular alias \`${[...n].join(" -> ")} -> ${e}\``);n.add(e)}}return e}var Ct=class extends tt{_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(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const t=yt(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=F.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=kt(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.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);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(const e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=[...this._langGraph.entries()],n=t.filter(([e,t])=>!t);if(n.length){const e=t.filter(([e,t])=>!!t&&(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e))).filter(e=>!n.includes(e));throw new E(`Missing languages ${n.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(const[e,n]of t)this._resolver.addLanguage(n);for(const[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);const t=e.embeddedLanguages??e.embeddedLangs;if(t)for(const e of t)this._langGraph.set(e,this._langMap.get(e))}},vt=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let n=[];for(let e=1;e<=t.length;e++){const r=t.slice(0,e).join(".");n=[...n,...this._injections.get(r)||[]]}return n}};let xt=0;function St(e){xt+=1,!1!==e.warnings&&xt>=10&&xt%10==0&&console.warn(`[Shiki] ${xt} 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 E("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(yt),o=new Ct(new vt(e.engine,n),r,n,e.langAlias);let s;function i(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};c();const t=o.getTheme(e);if(!t)throw new E(`Theme \`${e}\` not found, you may need to load it first`);return t}function a(...e){c(),o.loadLanguages(e.flat(1))}function l(...e){c();for(const t of e.flat(1))o.loadTheme(t)}function c(){if(t)throw new E("Shiki instance has been disposed")}function u(){t||(t=!0,o.dispose(),xt-=1)}return{setTheme:function(e){c();const t=i(e);return s!==e&&(o.setTheme(t),s=e),{theme:t,colorMap:o.getColorMap()}},getTheme:i,getLanguage:function(e){c();const t=o.getGrammar("string"==typeof e?e:e.name);if(!t)throw new E(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return c(),o.getLoadedThemes()},getLoadedLanguages:function(){return c(),o.getLoadedLanguages()},resolveLangAlias:function(t){return kt(t,e.langAlias)},loadLanguage:async function(...e){return a(await bt(e))},loadLanguageSync:a,loadTheme:async function(...e){return c(),l(await wt(e))},loadThemeSync:l,dispose:u,[Symbol.dispose]:u}}async function _t(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([wt(e.themes||[]),bt(e.langs||[]),e.engine]);return St(Object.assign({},e,{themes:t,langs:n,engine:r}))}const At=new WeakMap;function Et(e,t){At.set(e,t)}function Lt(e){return At.get(e)}var It=class e{_stacks={};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 e(Object.fromEntries(st(n).map(e=>[e,nt])),t)}constructor(...e){if(2===e.length){const[t,n]=e;this.lang=n,this._stacks=t}else{const[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return Nt(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Nt(e){const t=[],n=new Set;return(function e(r){if(n.has(r))return;n.add(r);const o=r?.nameScopesList?.scopeName;o&&t.push(o),r.parent&&e(r.parent)})(e),t}function Pt(e,t){if(!(e instanceof It))throw new E("Invalid grammar state");return e.getInternalStack(t)}const Ot=/,/,Tt=/ /;function $t(e,t,n={}){const{theme:r=e.getLoadedThemes()[0]}=n;if(at(e.resolveLangAlias(n.lang||"text"))||lt(r))return dt(t).map(e=>[{content:e[0],offset:e[1]}]);const{theme:o,colorMap:s}=e.setTheme(r),i=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==i.name)throw new E(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${i.name}"`);if(!n.grammarState.themes.includes(o.name))throw new E(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return Mt(t,i,o,s,n)}function Rt(...e){if(2===e.length)return Lt(e[1]);const[t,n,r={}]=e,{lang:o="text",theme:s=t.getLoadedThemes()[0]}=r;if(at(o)||lt(s))throw new E("Plain language does not have grammar state");if("ansi"===o)throw new E("ANSI language does not have grammar state");const{theme:i,colorMap:a}=t.setTheme(s),l=t.getLanguage(o);return new It(jt(n,l,i,a,r).stateStack,l.name,i.name)}function Mt(e,t,n,r,o){const s=jt(e,t,n,r,o),i=new It(s.stateStack,t.name,n.name);return Et(s.tokens,i),s.tokens}function jt(e,t,n,r,o){const s=rt(n,o),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:a=500,includeExplanation:l=!1}=o,c=dt(e);let u=o.grammarState?Pt(o.grammarState,n.name)??nt:null!=o.grammarContextCode?jt(o.grammarContextCode,t,n,r,Object.assign({},o,{grammarState:void 0,grammarContextCode:void 0})).stateStack:nt,d=[];const h=[];for(let e=0,o=c.length;e<o;e++){const[o,p]=c[e];if(""===o){d=[],h.push([]);continue}if(i>0&&o.length>=i){d=[],h.push([{content:o,offset:p,color:"",fontStyle:0}]);continue}let f,g,m;l&&"tokenType"!==l&&(f=t.tokenizeLine(o,u,a),g=f.tokens,m=0);const y=t.tokenizeLine2(o,u,a),b=y.tokens.length/2;for(let e=0;e<b;e++){const t=y.tokens[2*e],i=e+1<b?y.tokens[2*e+2]:o.length;if(t===i)continue;const a=y.tokens[2*e+1],c=ot(r[Y.getForeground(a)],s),u=Y.getFontStyle(a),h={content:o.substring(t,i),offset:p+t,color:c,fontStyle:u};if("tokenType"===l)h.type=Y.getTokenType(a);else if(l){const e=[];if("scopeName"!==l)for(const t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(Ot).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(Tt))})}h.explanation=[];let r=0;for(;t+r<i;){const t=g[m],n=o.substring(t.startIndex,t.endIndex);r+=n.length,h.explanation.push({content:n,scopes:"scopeName"===l?Dt(t.scopes):Bt(e,t.scopes)}),m+=1}}d.push(h)}h.push(d),d=[],u=y.ruleStack}return{tokens:h,stateStack:u}}function Dt(e){return e.map(e=>({scopeName:e}))}function Bt(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const o=t[r];n[r]={scopeName:o,themeMatches:Ut(e,o,t.slice(0,r))}}return n}function Ft(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function Gt(e,t,n){if(!Ft(e.at(-1),t))return!1;let r=e.length-2,o=n.length-1;for(;r>=0&&o>=0;)Ft(e[r],n[o])&&(r-=1),o-=1;return-1===r}function Ut(e,t,n){const r=[];for(const{selectors:o,settings:s}of e)for(const e of o)if(Gt(e,t,n)){r.push(s);break}return r}function Wt(e,t,n,r=$t){const o=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),s=o.map(o=>{const s=r(e,t,Object.assign({},n,{theme:o.theme}));return{tokens:s,state:Lt(s),theme:"string"==typeof o.theme?o.theme:o.theme.name}}),i=zt(...s.map(e=>e.tokens)),a=i[0].map((e,t)=>e.map((e,r)=>{const s={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(s.explanation=e.explanation),i.forEach((e,n)=>{const i=e[t][r],a=g(i,m);s.variants[o[n].color]=a}),s})),l=s[0].state?new It(Object.fromEntries(s.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),s[0].state.lang):void 0;return l&&Et(a,l),a}function zt(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const o=e.map(e=>e[r]),s=t.map(()=>[]);t.forEach((e,t)=>e.push(s[t]));const i=o.map(()=>0),a=o.map(e=>e[0]);for(;a.every(e=>e);){const e=Math.min(...a.map(e=>e.content.length));for(let t=0;t<n;t++){const n=a[t];n.content.length===e?(s[t].push(n),i[t]+=1,a[t]=o[t][i[t]]):(s[t].push(Object.assign({},n,{content:n.content.slice(0,e)})),a[t]=Object.assign({},n,{content:n.content.slice(e),offset:n.offset+e}))}}}return t}const qt=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var Ht=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};function Vt(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Ht(n,r,t)}function Xt(e){return e.toLowerCase()}Ht.prototype.normal={},Ht.prototype.property={},Ht.prototype.space=void 0;var Kt=class{constructor(e,t){this.attribute=t,this.property=e}};Kt.prototype.attribute="",Kt.prototype.booleanish=!1,Kt.prototype.boolean=!1,Kt.prototype.commaOrSpaceSeparated=!1,Kt.prototype.commaSeparated=!1,Kt.prototype.defined=!1,Kt.prototype.mustUseProperty=!1,Kt.prototype.number=!1,Kt.prototype.overloadedBoolean=!1,Kt.prototype.property="",Kt.prototype.spaceSeparated=!1,Kt.prototype.space=void 0;var Zt=k({boolean:()=>Qt,booleanish:()=>Yt,commaOrSpaceSeparated:()=>on,commaSeparated:()=>rn,number:()=>tn,overloadedBoolean:()=>en,spaceSeparated:()=>nn});let Jt=0;const Qt=sn(),Yt=sn(),en=sn(),tn=sn(),nn=sn(),rn=sn(),on=sn();function sn(){return 2**++Jt}const an=Object.keys(Zt);var ln=class extends Kt{constructor(e,t,n,r){let o=-1;if(super(e,t),cn(this,"space",r),"number"==typeof n)for(;++o<an.length;){const e=an[o];cn(this,an[o],(n&Zt[e])===Zt[e])}}};function cn(e,t,n){n&&(e[t]=n)}function un(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const s=new ln(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[Xt(r)]=r,n[Xt(s.attribute)]=r}return new Ht(t,n,e.space)}ln.prototype.defined=!0;const dn=un({properties:{ariaActiveDescendant:null,ariaAtomic:Yt,ariaAutoComplete:null,ariaBusy:Yt,ariaChecked:Yt,ariaColCount:tn,ariaColIndex:tn,ariaColSpan:tn,ariaControls:nn,ariaCurrent:null,ariaDescribedBy:nn,ariaDetails:null,ariaDisabled:Yt,ariaDropEffect:nn,ariaErrorMessage:null,ariaExpanded:Yt,ariaFlowTo:nn,ariaGrabbed:Yt,ariaHasPopup:null,ariaHidden:Yt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nn,ariaLevel:tn,ariaLive:null,ariaModal:Yt,ariaMultiLine:Yt,ariaMultiSelectable:Yt,ariaOrientation:null,ariaOwns:nn,ariaPlaceholder:null,ariaPosInSet:tn,ariaPressed:Yt,ariaReadOnly:Yt,ariaRelevant:null,ariaRequired:Yt,ariaRoleDescription:nn,ariaRowCount:tn,ariaRowIndex:tn,ariaRowSpan:tn,ariaSelected:Yt,ariaSetSize:tn,ariaSort:null,ariaValueMax:tn,ariaValueMin:tn,ariaValueNow:tn,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function hn(e,t){return t in e?e[t]:t}function pn(e,t){return hn(e,t.toLowerCase())}const fn=un({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:rn,acceptCharset:nn,accessKey:nn,action:null,allow:null,allowFullScreen:Qt,allowPaymentRequest:Qt,allowUserMedia:Qt,alpha:Qt,alt:null,as:null,async:Qt,autoCapitalize:null,autoComplete:nn,autoFocus:Qt,autoPlay:Qt,blocking:nn,capture:null,charSet:null,checked:Qt,cite:null,className:nn,closedBy:null,colorSpace:null,cols:tn,colSpan:tn,command:null,commandFor:null,content:null,contentEditable:Yt,controls:Qt,controlsList:nn,coords:tn|rn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qt,defer:Qt,dir:null,dirName:null,disabled:Qt,download:en,draggable:Yt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qt,formTarget:null,headers:nn,height:tn,hidden:en,high:tn,href:null,hrefLang:null,htmlFor:nn,httpEquiv:nn,id:null,imageSizes:null,imageSrcSet:null,inert:Qt,inputMode:null,integrity:null,is:null,isMap:Qt,itemId:null,itemProp:nn,itemRef:nn,itemScope:Qt,itemType:nn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qt,low:tn,manifest:null,max:null,maxLength:tn,media:null,method:null,min:null,minLength:tn,multiple:Qt,muted:Qt,name:null,nonce:null,noModule:Qt,noValidate:Qt,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:Qt,optimum:tn,pattern:null,ping:nn,placeholder:null,playsInline:Qt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Qt,referrerPolicy:null,rel:nn,required:Qt,reversed:Qt,rows:tn,rowSpan:tn,sandbox:nn,scope:null,scoped:Qt,seamless:Qt,selected:Qt,shadowRootClonable:Qt,shadowRootCustomElementRegistry:Qt,shadowRootDelegatesFocus:Qt,shadowRootMode:null,shadowRootSerializable:Qt,shape:null,size:tn,sizes:null,slot:null,span:tn,spellCheck:Yt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:tn,step:null,style:null,tabIndex:tn,target:null,title:null,translate:null,type:null,typeMustMatch:Qt,useMap:null,value:Yt,width:tn,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:nn,axis:null,background:null,bgColor:null,border:tn,borderColor:null,bottomMargin:tn,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Qt,declare:Qt,event:null,face:null,frame:null,frameBorder:null,hSpace:tn,leftMargin:tn,link:null,longDesc:null,lowSrc:null,marginHeight:tn,marginWidth:tn,noResize:Qt,noHref:Qt,noShade:Qt,noWrap:Qt,object:null,profile:null,prompt:null,rev:null,rightMargin:tn,rules:null,scheme:null,scrolling:Yt,standby:null,summary:null,text:null,topMargin:tn,valueType:null,version:null,vAlign:null,vLink:null,vSpace:tn,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Qt,disablePictureInPicture:Qt,disableRemotePlayback:Qt,exportParts:rn,part:nn,prefix:null,property:null,results:tn,security:null,unselectable:null},space:"html",transform:pn}),gn=un({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:on,accentHeight:tn,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:tn,amplitude:tn,arabicForm:null,ascent:tn,attributeName:null,attributeType:null,azimuth:tn,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:tn,by:null,calcMode:null,capHeight:tn,className:nn,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:tn,diffuseConstant:tn,direction:null,display:null,dur:null,divisor:tn,dominantBaseline:null,download:Qt,dx:null,dy:null,edgeMode:null,editable:null,elevation:tn,enableBackground:null,end:null,event:null,exponent:tn,externalResourcesRequired:null,fill:null,fillOpacity:tn,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:rn,g2:rn,glyphName:rn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:tn,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:tn,horizOriginX:tn,horizOriginY:tn,id:null,ideographic:tn,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:tn,k:tn,k1:tn,k2:tn,k3:tn,k4:tn,kernelMatrix:on,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:tn,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:tn,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:tn,overlineThickness:tn,paintOrder:null,panose1:null,path:null,pathLength:tn,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:nn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:tn,pointsAtY:tn,pointsAtZ:tn,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:on,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:on,rev:on,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:on,requiredFeatures:on,requiredFonts:on,requiredFormats:on,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:tn,specularExponent:tn,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:tn,strikethroughThickness:tn,string:null,stroke:null,strokeDashArray:on,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:tn,strokeOpacity:tn,strokeWidth:null,style:null,surfaceScale:tn,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:on,tabIndex:tn,tableValues:null,target:null,targetX:tn,targetY:tn,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:on,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:tn,underlineThickness:tn,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:tn,values:null,vAlphabetic:tn,vMathematical:tn,vectorEffect:null,vHanging:tn,vIdeographic:tn,version:null,vertAdvY:tn,vertOriginX:tn,vertOriginY:tn,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:tn,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:hn}),mn=un({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),yn=un({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:pn}),bn=un({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),wn=/[A-Z]/g,kn=/-[a-z]/g,Cn=/^data[-\w.:]+$/i;function vn(e,t){const n=Xt(t);let r=t,o=Kt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Cn.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(kn,Sn);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!kn.test(e)){let n=e.replace(wn,xn);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=ln}return new o(r,t)}function xn(e){return"-"+e.toLowerCase()}function Sn(e){return e.charAt(1).toUpperCase()}const _n=Vt([dn,fn,mn,yn,bn],"html"),An=Vt([dn,gn,mn,yn,bn],"svg"),En={}.hasOwnProperty;const Ln=/["&'<>`]/g,In=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Nn=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Pn=/[|\\{}()[\]^$+*?.]/g,On=new WeakMap;function Tn(e,t){return e=e.replace(t.subset?$n(t.subset):Ln,n),t.subset||t.escapeOnly?e:e.replace(In,function(e,n,r){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}).replace(Nn,n);function n(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function $n(e){let t=On.get(e);return t||(t=Rn(e),On.set(e,t)),t}function Rn(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(Pn,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const Mn=/[\dA-Fa-f]/;function jn(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!Mn.test(String.fromCharCode(t))?r:r+";"}const Dn=/\d/;function Bn(e,t,n){const r="&#"+String(e);return n&&t&&!Dn.test(String.fromCharCode(t))?r:r+";"}const Fn=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Gn={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203e",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",lang:"\u2329",rang:"\u232a",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:"\"",amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02c6",tilde:"\u02dc",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203a",euro:"\u20ac"},Un=["cent","copy","divide","gt","lt","not","para","times"],Wn={}.hasOwnProperty,zn={};let qn;for(qn in Gn)Wn.call(Gn,qn)&&(zn[Gn[qn]]=qn);const Hn=/[^\dA-Za-z]/;function Vn(e,t,n,r){const o=String.fromCharCode(e);if(Wn.call(zn,o)){const e=zn[o],s="&"+e;return n&&Fn.includes(e)&&!Un.includes(e)&&(!r||t&&61!==t&&Hn.test(String.fromCharCode(t)))?s:s+";"}return""}function Xn(e,t,n){let r,o=jn(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=Vn(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){const r=Bn(e,t,n.omitOptionalSemicolons);r.length<o.length&&(o=r)}return r&&(!n.useShortestReferences||r.length<o.length)?r:o}function Kn(e,t){return Tn(e,Object.assign({format:Xn},t))}const Zn=/^>|^->|<!--|-->|--!>|<!-$/g,Jn=[">"],Qn=["<",">"];function Yn(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}function er(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}function tr(e){return e.join(" ").trim()}const nr=/[ \t\n\f\r]/g;function rr(e){return"object"==typeof e?"text"===e.type&&or(e.value):or(e)}function or(e){return""===e.replace(nr,"")}const sr=lr(1),ir=lr(-1),ar=[];function lr(e){return function(t,n,r){const o=t?t.children:ar;let s=(n||0)+e,i=o[s];if(!r)for(;i&&rr(i);)s+=e,i=o[s];return i}}const cr={}.hasOwnProperty;function ur(e){return function(t,n,r){return cr.call(e,t.tagName)&&e[t.tagName](t,n,r)}}const dr=ur({body:function(e,t,n){const r=sr(n,t);return!r||"comment"!==r.type},caption:hr,colgroup:hr,dd:function(e,t,n){const r=sr(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){const r=sr(n,t);return Boolean(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:hr,html:function(e,t,n){const r=sr(n,t);return!r||"comment"!==r.type},li:function(e,t,n){const r=sr(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){const r=sr(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){const r=sr(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){const r=sr(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},rp:pr,rt:pr,tbody:function(e,t,n){const r=sr(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:fr,tfoot:function(e,t,n){return!sr(n,t)},th:fr,thead:function(e,t,n){const r=sr(n,t);return Boolean(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){const r=sr(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function hr(e,t,n){const r=sr(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&rr(r.value.charAt(0)))}function pr(e,t,n){const r=sr(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function fr(e,t,n){const r=sr(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}const gr=ur({body:function(e){const t=sr(e,-1,!0);return!(t&&("comment"===t.type||"text"===t.type&&rr(t.value.charAt(0))||"element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName)))},colgroup:function(e,t,n){const r=ir(n,t),o=sr(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&dr(r,n.children.indexOf(r),n))&&Boolean(o&&"element"===o.type&&"col"===o.tagName)},head:function(e){const t=new Set;for(const n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}const n=e.children[0];return!n||"element"===n.type},html:function(e){const t=sr(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){const r=ir(n,t),o=sr(e,-1);return(!n||!r||"element"!==r.type||"thead"!==r.tagName&&"tbody"!==r.tagName||!dr(r,n.children.indexOf(r),n))&&Boolean(o&&"element"===o.type&&"tr"===o.tagName)}});const mr={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[["\"&".split(""),"\"&'`".split("")],["\0\"&".split(""),"\0\"&'`".split("")]]};function yr(e,t){const n=[];let r,o=-1;if(t)for(r in t)if(null!==t[r]&&void 0!==t[r]){const o=br(e,r,t[r]);o&&n.push(o)}for(;++o<n.length;){const t=e.settings.tightAttributes?n[o].charAt(n[o].length-1):void 0;o!==n.length-1&&"\""!==t&&"'"!==t&&(n[o]+=" ")}return n.join("")}function br(e,t,n){const r=vn(e.schema,t),o=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,s=e.settings.allowDangerousCharacters?0:1;let i,a=e.quote;if(!r.overloadedBoolean||n!==r.attribute&&""!==n?!r.boolean&&!r.overloadedBoolean||"string"==typeof n&&n!==r.attribute&&""!==n||(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";const l=Kn(r.attribute,Object.assign({},e.settings.characterReferences,{subset:mr.name[o][s]}));return!0===n?l:(n=Array.isArray(n)?(r.commaSeparated?er:tr)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n?l:(e.settings.preferUnquoted&&(i=Kn(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:mr.unquoted[o][s]}))),i!==n&&(e.settings.quoteSmart&&Yn(n,a)>Yn(n,e.alternative)&&(a=e.alternative),i=a+Kn(n,Object.assign({},e.settings.characterReferences,{subset:("'"===a?mr.single:mr.double)[o][s],attribute:!0}))+a),l+(i?"="+i:i)))}const wr=["<","&"];function kr(e,t,n,r){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?Kn(e.value,Object.assign({},r.settings.characterReferences,{subset:wr})):e.value}const Cr=(function(e,t){const n=t||{};function r(t,...n){let o=r.invalid;const s=r.handlers;if(t&&En.call(t,e)){const n=String(t[e]);o=En.call(s,n)?s[n]:r.unknown}if(o)return o.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r})("type",{invalid:function(e){throw new Error("Expected node, not `"+e+"`")},unknown:function(e){throw new Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+Kn(e.value,Object.assign({},r.settings.characterReferences,{subset:Jn}))+">":"\x3c!--"+e.value.replace(Zn,function(e){return Kn(e,Object.assign({},r.settings.characterReferences,{subset:Qn}))})+"--\x3e"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){const o=r.schema,s="svg"!==o.space&&r.settings.omitOptionalTags;let i="svg"===o.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const a=[];let l;"html"===o.space&&"svg"===e.tagName&&(r.schema=An);const c=yr(r,e.properties),u=r.all("html"===o.space&&"template"===e.tagName?e.content:e);return r.schema=o,u&&(i=!1),!c&&s&&gr(e,t,n)||(a.push("<",e.tagName,c?" "+c:""),i&&("svg"===o.space||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||"/"===l||l&&"\""!==l&&"'"!==l)&&a.push(" "),a.push("/")),a.push(">")),a.push(u),i||s&&dr(e,t,n)||a.push("</"+e.tagName+">"),a.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:kr(e,0,n,r)},root:function(e,t,n,r){return r.all(e)},text:kr}});const vr={},xr={},Sr=[];function _r(e,t,n){return Cr(e,t,n,this)}function Ar(e){const t=[],n=e&&e.children||Sr;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}const Er=/\s+/g;function Lr(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(Er)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(Er);for(const t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}function Ir(e){const t=dt(e,!0).map(([e])=>e);return{lines:t,indexToPos:function(n){if(n===e.length)return{line:t.length-1,character:t.at(-1).length};let r=n,o=0;for(const e of t){if(r<e.length)break;r-=e.length,o++}return{line:o,character:r}},posToIndex:function(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+=n,r}}}const Nr=["color","background-color"];function Pr(e,t){let n=0;const r=[];for(const o of t)o>n&&r.push(Object.assign({},e,{content:e.content.slice(n,o),offset:e.offset+n})),n=o;return n<e.content.length&&r.push(Object.assign({},e,{content:e.content.slice(n),offset:e.offset+n})),r}function Or(e,t){const n=[...t instanceof Set?t:new Set(t)].sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{const t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?Pr(e,t):e})):e}function Tr(e,t,n,r,o="css-vars"){const s={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(t=>$r(e.variants[t])),a=new Set(i.flatMap(e=>Object.keys(e))),l={},c=(e,r)=>{const o="color"===r?"":"background-color"===r?"-bg":`-${r}`;return n+t[e]+("color"===r?"":o)};return i.forEach((e,n)=>{for(const s of a){const a=e[s]||"inherit";if(0===n&&r&&Nr.includes(s))if("light-dark()"===r&&i.length>1){const e=t.findIndex(e=>"light"===e),r=t.findIndex(e=>"dark"===e);if(-1===e||-1===r)throw new E("When using `defaultColor: \"light-dark()\"`, you must provide both `light` and `dark` themes");const u=i[e][s]||"inherit",d=i[r][s]||"inherit";l[s]=`light-dark(${u}, ${d})`,"css-vars"===o&&(l[c(n,s)]=a)}else l[s]=a;else"css-vars"===o&&(l[c(n,s)]=a)}}),s.htmlStyle=l,s}function $r(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&V.Italic&&(t["font-style"]="italic"),e.fontStyle&V.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&V.Underline&&n.push("underline"),e.fontStyle&V.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function Rr(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}function Mr(){const e=new WeakMap;function t(t){if(!e.has(t.meta)){const r=Ir(t.source);function n(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new E(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return Object.assign({},r.indexToPos(e),{offset:e})}{const t=r.lines[e.line];if(void 0===t)throw new E(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new E(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return Object.assign({},e,{character:n,offset:r.posToIndex(e.line,n)})}}const o=(t.options.decorations||[]).map(e=>Object.assign({},e,{start:n(e.start),end:n(e.end)}));jr(o),e.set(t.meta,{decorations:o,converter:r,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){if(this.options.decorations?.length)return Or(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;const n=t(this),r=[...e.children].filter(e=>"element"===e.type&&"span"===e.tagName);if(r.length!==n.converter.lines.length)throw new E(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function o(e,t,n,o){const s=r[e];let a="",l=-1,c=-1;if(0===t&&(l=0),0===n&&(c=0),n===Number.POSITIVE_INFINITY&&(c=s.children.length),-1===l||-1===c)for(let e=0;e<s.children.length;e++)a+=Dr(s.children[e]),-1===l&&a.length===t&&(l=e+1),-1===c&&a.length===n&&(c=e+1);if(-1===l)throw new E(`Failed to find start index for decoration ${JSON.stringify(o.start)}`);if(-1===c)throw new E(`Failed to find end index for decoration ${JSON.stringify(o.end)}`);const u=s.children.slice(l,c);if(o.alwaysWrap||u.length!==s.children.length)if(o.alwaysWrap||1!==u.length||"element"!==u[0].type){const e={type:"element",tagName:"span",properties:{},children:u};i(e,o,"wrapper"),s.children.splice(l,u.length,e)}else i(u[0],o,"token");else i(s,o,"line")}function s(e,t){r[e]=i(r[e],t,"line")}function i(e,t,n){const r=t.properties||{},o=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties=Object.assign({},e.properties,r,{class:e.properties.class}),t.properties?.class&&Lr(e,t.properties.class),e=o(e,n)||e}const a=[],l=n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(const e of l){const{start:t,end:n}=e;if(t.line===n.line)o(t.line,t.character,n.character,e);else if(t.line<n.line){o(t.line,t.character,Number.POSITIVE_INFINITY,e);for(let r=t.line+1;r<n.line;r++)a.unshift(()=>s(r,e));o(n.line,0,n.character,e)}}a.forEach(e=>e())}}}function jr(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new E(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const t=e[r],o=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,s=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,i=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,a=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(o||s||i||a){if(o&&s)continue;if(i&&a)continue;if(i&&n.start.offset===n.end.offset)continue;if(s&&t.start.offset===t.end.offset)continue;throw new E(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}}function Dr(e){return"text"===e.type?e.value:"element"===e.type?e.children.map(Dr).join(""):""}const Br=[Mr()];function Fr(e){const t=Gr(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...Br]}function Gr(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 Ur=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Wr={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function zr(e,t){const n=e.indexOf("\x1b",t);if(-1!==n&&"["===e[n+1]){const t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}function qr(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function Hr(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)Wr[r]&&t.push({type:"setDecoration",value:Wr[r]});else if(r<=29){const e=Wr[r-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Ur[r-30]}});else if(38===r){const n=qr(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Ur[r-40]}});else if(48===r){const n=qr(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):53===r?t.push({type:"setDecoration",value:"overline"}):55===r?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Ur[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Ur[r-100+8]}})}return t}function Vr(){let e=null,t=null,n=new Set;return{parse(r){const o=[];let s=0;do{const i=zr(r,s),a=i.sequence?r.substring(s,i.startPosition):r.substring(s);if(a.length>0&&o.push({value:a,foreground:e,background:t,decorations:new Set(n)}),i.sequence){const r=Hr(i.sequence);for(const o of r)"resetAll"===o.type?(e=null,t=null,n.clear()):"resetForegroundColor"===o.type?e=null:"resetBackgroundColor"===o.type?t=null:"resetDecoration"===o.type&&n.delete(o.value);for(const o of r)"setForegroundColor"===o.type?e=o.value:"setBackgroundColor"===o.type?t=o.value:"setDecoration"===o.type&&n.add(o.value)}s=i.position}while(s<r.length);return o}}}var Xr={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 Kr(e=Xr){function t(t){return e[t]}function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}let r;function o(){if(r)return r;r=[];for(let e=0;e<Ur.length;e++)r.push(t(Ur[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let o=0;o<6;o++)for(let s=0;s<6;s++)r.push(n([e[t],e[o],e[s]]));let o=8;for(let e=0;e<24;e++,o+=10)r.push(n([o,o,o]));return r}return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return n(e.rgb);case"table":return r=e.index,o()[r]}var r}}}const Zr=/#([0-9a-f]{3,8})/i,Jr=/var\((--[\w-]+-ansi-[\w-]+)\)/,Qr={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 Yr(e,t,n){const r=rt(e,n),o=dt(t),s=Kr(Object.fromEntries(Ur.map(t=>{const n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||Qr[t]]}))),i=Vr();return o.map(t=>i.parse(t[0]).map(n=>{let o,i;n.decorations.has("reverse")?(o=n.background?s.value(n.background):e.bg,i=n.foreground?s.value(n.foreground):e.fg):(o=n.foreground?s.value(n.foreground):e.fg,i=n.background?s.value(n.background):void 0),o=ot(o,r),i=ot(i,r),n.decorations.has("dim")&&(o=eo(o));let a=V.None;return n.decorations.has("bold")&&(a|=V.Bold),n.decorations.has("italic")&&(a|=V.Italic),n.decorations.has("underline")&&(a|=V.Underline),n.decorations.has("strikethrough")&&(a|=V.Strikethrough),{content:n.value,offset:t[1],color:o,bgColor:i,fontStyle:a}}))}function eo(e){const t=e.match(Zr);if(t){const e=t[1];if(8===e.length){const t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){const t=e[0],n=e[1],r=e[2],o=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${o}${o}`,16)/2).toString(16).padStart(2,"0")}`}if(3===e.length){const t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}const n=e.match(Jr);return n?`var(${n[1]}-dim)`:e}function to(e,t,n={}){const r=e.resolveLangAlias(n.lang||"text"),{theme:o=e.getLoadedThemes()[0]}=n;if(!at(r)&&!lt(o)&&"ansi"===r){const{theme:r}=e.setTheme(o);return Yr(r,t,n)}return $t(e,t,n)}function no(e,t,n){let r,o,s,i,a,l;if("themes"in n){const{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:d="css-vars"}=n,h=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===c?-1:t.color===c?1:0);if(0===h.length)throw new E("`themes` option must not be empty");const p=Wt(e,t,n,to);if(l=Lt(p),c&&"light-dark()"!==c&&!h.some(e=>e.color===c))throw new E(`\`themes\` option must contain the defaultColor key \`${c}\``);const f=h.map(t=>e.getTheme(t.theme)),g=h.map(e=>e.color);s=p.map(e=>e.map(e=>Tr(e,g,u,c,d))),l&&Et(s,l);const m=h.map(e=>rt(e.theme,n));o=ro(h,f,m,u,c,"fg",d),r=ro(h,f,m,u,c,"bg",d),i=`shiki-themes ${f.map(e=>e.name).join(" ")}`,a=c?void 0:[o,r].join(";")}else{if(!("theme"in n))throw new E("Invalid options, either `theme` or `themes` must be provided");{const a=rt(n.theme,n);s=to(e,t,n);const c=e.getTheme(n.theme);r=ot(c.bg,a),o=ot(c.fg,a),i=c.name,l=Lt(s)}}return{tokens:s,fg:o,bg:r,themeName:i,rootStyle:a,grammarState:l}}function ro(e,t,n,r,o,s,i){return e.map((a,l)=>{const c=ot(t[l][s],n[l])||"inherit",u=`${r+a.color}${"bg"===s?"-bg":""}:${c}`;if(0===l&&o){if("light-dark()"===o&&e.length>1){const r=e.findIndex(e=>"light"===e.color),o=e.findIndex(e=>"dark"===e.color);if(-1===r||-1===o)throw new E("When using `defaultColor: \"light-dark()\"`, you must provide both `light` and `dark` themes");return`light-dark(${ot(t[r][s],n[r])||"inherit"}, ${ot(t[o][s],n[o])||"inherit"});${u}`}return c}return"css-vars"===i?u:null}).filter(e=>!!e).join(";")}const oo=/^\s+$/,so=/^(\s*)(.*?)(\s*)$/;function io(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>io(e,t,n),codeToTokens:(t,n)=>no(e,t,n)}){let o=t;for(const e of Fr(n))o=e.preprocess?.call(r,o,n)||o;let{tokens:s,fg:i,bg:a,themeName:l,rootStyle:c,grammarState:u}=no(e,o,n);const{mergeWhitespaces:d=!0,mergeSameStyleTokens:h=!1}=n;!0===d?s=lo(s):"never"===d&&(s=co(s)),h&&(s=uo(s));const p=Object.assign({},r,{get source(){return o}});for(const e of Fr(n))s=e.tokens?.call(p,s)||s;return ao(s,Object.assign({},n,{fg:i,bg:a,themeName:l,rootStyle:!1!==n.rootStyle&&(n.rootStyle??c)}),p,u)}function ao(e,t,n,r=Lt(e)){const o=Fr(t),s=[],i={type:"root",children:[]},{structure:a="classic",tabindex:l="0"}=t,c={class:`shiki ${t.themeName||""}`};!1!==t.rootStyle&&(null!=t.rootStyle?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),!1!==l&&null!=l&&(c.tabindex=l.toString());for(const[e,n]of Object.entries(t.meta||{}))e.startsWith("_")||(c[e]=n);let u={type:"element",tagName:"pre",properties:c,children:[],data:t.data},d={type:"element",tagName:"code",properties:{},children:s};const h=[],p=Object.assign({},n,{structure:a,addClassToHast:Lr,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return u},get code(){return d},get lines(){return h}});if(e.forEach((e,t)=>{t&&("inline"===a?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===a&&s.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},r=0;for(const s of e){let e={type:"element",tagName:"span",properties:Object.assign({},s.htmlAttrs),children:[{type:"text",value:s.content}]};const l=Rr(s.htmlStyle||$r(s));l&&(e.properties.style=l);for(const i of o)e=i?.span?.call(p,e,t+1,r,n,s)||e;"inline"===a?i.children.push(e):"classic"===a&&n.children.push(e),r+=s.content.length}if("classic"===a){for(const e of o)n=e?.line?.call(p,n,t+1)||n;h.push(n),s.push(n)}else"inline"===a&&h.push(n)}),"classic"===a){for(const e of o)d=e?.code?.call(p,d)||d;u.children.push(d);for(const e of o)u=e?.pre?.call(p,u)||u;i.children.push(u)}else if("inline"===a){const e=[];let t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const n of i.children)"element"===n.type&&"br"===n.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):"element"!==n.type&&"text"!==n.type||t.children.push(n);e.push(t);let n={type:"element",tagName:"code",properties:{},children:e};for(const e of o)n=e?.code?.call(p,n)||n;i.children=[];for(let e=0;e<n.children.length;e++){e>0&&i.children.push({type:"element",tagName:"br",properties:{},children:[]});const t=n.children[e];"element"===t.type&&i.children.push(...t.children)}}let f=i;for(const e of o)f=e?.root?.call(p,f)||f;return r&&Et(f,r),f}function lo(e){return e.map(e=>{const t=[];let n,r="";return e.forEach((o,s)=>{const i=!(o.fontStyle&&(o.fontStyle&V.Underline||o.fontStyle&V.Strikethrough));i&&oo.test(o.content)&&e[s+1]?(void 0===n&&(n=o.offset),r+=o.content):r?(i?t.push(Object.assign({},o,{offset:n,content:r+o.content})):t.push({content:r,offset:n},o),n=void 0,r=""):t.push(o)}),t})}function co(e){return e.map(e=>e.flatMap(e=>{if(oo.test(e.content))return e;const t=e.content.match(so);if(!t)return e;const[,n,r,o]=t;if(!n&&!o)return e;const s=[Object.assign({},e,{offset:e.offset+n.length,content:r})];return n&&s.unshift({content:n,offset:e.offset}),o&&s.push({content:o,offset:e.offset+n.length+r.length}),s}))}function uo(e){return e.map(e=>{const t=[];for(const n of e){if(0===t.length){t.push(Object.assign({},n));continue}const e=t.at(-1),r=Rr(e.htmlStyle||$r(e)),o=Rr(n.htmlStyle||$r(n)),s=e.fontStyle&&(e.fontStyle&V.Underline||e.fontStyle&V.Strikethrough),i=n.fontStyle&&(n.fontStyle&V.Underline||n.fontStyle&V.Strikethrough);s||i||r!==o?t.push(Object.assign({},n)):e.content+=n.content}return t})}const ho=function(e,t){const n=t||vr,r=n.quote||"\"",o="\""===r?"'":"\"";if("\""!==r&&"'"!==r)throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:_r,all:Ar,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||qt,characterReferences:n.characterReferences||xr,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?An:_n,quote:r,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)};function po(e,t,n){const r={meta:{},options:n,codeToHast:(t,n)=>io(e,t,n),codeToTokens:(t,n)=>no(e,t,n)};let o=ho(io(e,t,n,r));for(const e of Fr(n))o=e.postprocess?.call(r,o,n)||o;return o}async function fo(e){const t=await _t(e);return Object.assign({getLastGrammarState:(...e)=>Rt(t,...e),codeToTokensBase:(e,n)=>to(t,e,n),codeToTokensWithThemes:(e,n)=>Wt(t,e,n),codeToTokens:(e,n)=>no(t,e,n),codeToHast:(e,n)=>io(t,e,n),codeToHtml:(e,n)=>po(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({})},t,{getInternalContext:()=>t})}const go=4294967295;var mo=class{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(e=>{if("string"!=typeof e)return e;const t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{const t=o(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}})}findNextMatchSync(e,t,n){const r="string"==typeof e?e:e.content,o=[];function s(e,t,n=0){return{index:e,captureIndices:t.indices.map(e=>null==e?{start:go,end:go,length:0}:{start:e[0]+n,end:e[1]+n,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){const n=this.regexps[e];if(n)try{n.lastIndex=t;const i=n.exec(r);if(!i)continue;if(i.index===t)return s(e,i,0);o.push([e,i,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(o.length){const e=Math.min(...o.map(e=>e[1].index));for(const[t,n,r]of o)if(n.index===e)return s(t,n,r)}return null}};function yo(e){if(1!==[...e].length)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function bo(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const wo=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),ko=String.raw;function Co(e,t){if(null==e)throw new Error(t??"Value expected");return e}const vo=ko`\[\^?`,xo=`c.? | C(?:-.?)?|${ko`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${ko`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${ko`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${ko`o\{[^\}]*\}?`}|${ko`\d{1,3}`}`,So=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,_o=new RegExp(ko`
|
|
13
13
|
\\ (?:
|
|
14
14
|
${xo}
|
|
@@ -55,5 +55,5 @@ __d(function(e,t,n,r,o,s,i){var a,l,c,u,d,h,p=t(i[0]).default,f=t(i[1]).default,
|
|
|
55
55
|
))?
|
|
56
56
|
| (?<qBase>${li})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
57
57
|
| \\?.
|
|
58
|
-
`.replace(/\s+/g,""),"gsu");function ui(e){if(!new RegExp(`${li}\\+`).test(e))return{pattern:e};const t=[];let n,r=null,o=null,s="",i=0;for(ci.lastIndex=0;n=ci.exec(e);){const{0:a,index:l,groups:{qBase:c,qMod:u,invalidQ:d}}=n;if("["===a)i||(o=l),i++;else if("]"===a)i?i--:o=null;else if(!i)if("+"===u&&s&&!s.startsWith("(")){if(d)throw new Error(`Invalid quantifier "${a}"`);let t=-1;if(/^\{\d+\}$/.test(c))e=Ys(e,l+c.length,u,"");else{if(")"===s||"]"===s){const t=")"===s?r:o;if(null===t)throw new Error(`Invalid unmatched "${s}"`);e=`${e.slice(0,t)}(?>${e.slice(t,l)}${c})${e.slice(l+a.length)}`}else e=`${e.slice(0,l-s.length)}(?>${s}${c})${e.slice(l+a.length)}`;t+=4}ci.lastIndex+=t}else"("===a[0]?t.push(l):")"===a&&(r=t.length?t.pop():null);s=a}return{pattern:e}}const di=String.raw,hi=di`\(\?R=(?<rDepth>[^\)]+)\)|${di`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`}`,pi=di`\(\?<(?![=!])(?<captureName>[^>]+)>`,fi=di`${pi}|(?<unnamed>\()(?!\?)`,gi=new RegExp(di`${pi}|${hi}|\(\?|\\?.`,"gsu"),mi="Cannot use multiple overlapping recursions";function yi(e,t){const{hiddenCaptures:n,mode:r}=Object.assign({hiddenCaptures:[],mode:"plugin"},t);let o=t?.captureTransfers??new Map;if(!new RegExp(hi,"su").test(e))return{pattern:e,captureTransfers:o,hiddenCaptures:n};if("plugin"===r&&oi(e,di`\(\?\(DEFINE\)`,ei.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const s=[],i=oi(e,di`\\[1-9]`,ei.DEFAULT),a=new Map,l=[];let c,u=!1,d=0,h=0;for(gi.lastIndex=0;c=gi.exec(e);){const{0:t,groups:{captureName:p,rDepth:f,gRNameOrNum:g,gRDepth:m}}=c;if("["===t)d++;else if(d)"]"===t&&d--;else{if(f){if(bi(f),u)throw new Error(mi);if(i)throw new Error(("external"===r?"Backrefs":"Numbered backrefs")+" cannot be used with global recursion");const t=e.slice(0,c.index),a=e.slice(gi.lastIndex);if(oi(a,hi,ei.DEFAULT))throw new Error(mi);const l=+f-1;e=wi(t,a,l,!1,n,s,h),o=vi(o,t,l,s.length,0,h);break}if(g){bi(m);let d=!1;for(const e of l)if(e.name===g||e.num===+g){if(d=!0,e.hasRecursedWithin)throw new Error(mi);break}if(!d)throw new Error(di`Recursive \g cannot be used outside the referenced group "${"external"===r?g:di`\g<${g}&R=${m}>`}"`);const p=a.get(g),f=si(e,p);if(i&&oi(f,di`${pi}|\((?!\?)`,ei.DEFAULT))throw new Error(("external"===r?"Backrefs":"Numbered backrefs")+" cannot be used with recursion of capturing groups");const y=e.slice(p,c.index),b=f.slice(y.length+t.length),w=s.length,k=+m-1,C=wi(y,b,k,!0,n,s,h);o=vi(o,y,k,s.length-w,w,h),e=`${e.slice(0,p)}${C}${e.slice(p+f.length)}`,gi.lastIndex+=C.length-t.length-y.length-b.length,l.forEach(e=>e.hasRecursedWithin=!0),u=!0}else if(p)h++,a.set(String(h),gi.lastIndex),a.set(p,gi.lastIndex),l.push({num:h,name:p});else if("("===t[0]){const e="("===t;e&&(h++,a.set(String(h),gi.lastIndex)),l.push(e?{num:h}:{})}else")"===t&&l.pop()}}return n.push(...s),{pattern:e,captureTransfers:o,hiddenCaptures:n}}function bi(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)<2||e>100)throw new Error(t)}function wi(e,t,n,r,o,s,i){const a=new Set;r&&ni(e+t,pi,({groups:{captureName:e}})=>{a.add(e)},ei.DEFAULT);const l=[n,r?a:null,o,s,i];return`${e}${ki(`(?:${e}`,"forward",...l)}(?:)${ki(`${t})`,"backward",...l)}${t}`}function ki(e,t,n,r,o,s,i){const a=e=>"forward"===t?e+2:n-e+2-1;let l="";for(let t=0;t<n;t++){const n=a(t);l+=ti(e,di`${fi}|\\k<(?<backref>[^>]+)>`,({0:e,groups:{captureName:t,unnamed:a,backref:l}})=>{if(l&&r&&!r.has(l))return e;const c=`_$${n}`;if(a||t){const n=i+s.length+1;return s.push(n),Ci(o,n),a?e:`(?<${t}${c}>`}return di`\k<${l}${c}>`},ei.DEFAULT)}return l}function Ci(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function vi(e,t,n,r,o,s){if(e.size&&r){let i=0;ni(t,fi,()=>i++,ei.DEFAULT);const a=s-i+o,l=new Map;return e.forEach((e,t)=>{const o=(r-i*n)/n,s=i*n,c=t>a+i?t+r:t,u=[];for(const t of e)if(t<=a)u.push(t);else if(t>a+i+o)u.push(t+r);else if(t<=a+i)for(let e=0;e<=n;e++)u.push(t+i*e);else for(let e=0;e<=n;e++)u.push(t+s+o*e);l.set(c,u)}),l}return e}var xi=String.fromCodePoint,Si=String.raw,_i={},Ai=globalThis.RegExp;function Ei(e,{enable:t,disable:n}){return{dotAll:!(n?.dotAll||!t?.dotAll&&!e.dotAll),ignoreCase:!(n?.ignoreCase||!t?.ignoreCase&&!e.ignoreCase)}}function Li(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function Ii(e,t){return Pi[e]>=Pi[t]}function Ni(e,t){if(null==e)throw new Error(t??"Value expected");return e}_i.flagGroups=(()=>{try{new Ai("(?i:)")}catch{return!1}return!0})(),_i.unicodeSets=(()=>{try{new Ai("[[]]","v")}catch{return!1}return!0})(),_i.bugFlagVLiteralHyphenIsRange=!!_i.unicodeSets&&(()=>{try{new Ai(Si`[\d\-a]`,"v")}catch{return!0}return!1})(),_i.bugNestedClassIgnoresNegation=_i.unicodeSets&&new Ai("[[^a]]","v").test("a");var Pi={ES2025:2025,ES2024:2024,ES2018:2018},Oi={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Ti(e={}){if("[object Object]"!=={}.toString.call(e))throw new Error("Unexpected options");if(void 0!==e.target&&!Oi[e.target])throw new Error(`Unexpected target "${e.target}"`);const t=Object.assign({accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1},e,{rules:Object.assign({allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1},e.rules)});return"auto"===t.target&&(t.target=_i.flagGroups?"ES2025":_i.unicodeSets?"ES2024":"ES2018"),t}var $i=new Set([xi(304),xi(305)]),Ri=Si`[\p{L}\p{M}\p{N}\p{Pc}]`;function Mi(e){if($i.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),o=Fi.get(n),s=Di.get(n),i=Bi.get(n);return 1===[...r].length&&t.add(r),i&&t.add(i),o&&t.add(o),t.add(n),s&&t.add(s),[...t]}var ji=new Map("C Other\nCc Control cntrl\nCf Format\nCn Unassigned\nCo Private_Use\nCs Surrogate\nL Letter\nLC Cased_Letter\nLl Lowercase_Letter\nLm Modifier_Letter\nLo Other_Letter\nLt Titlecase_Letter\nLu Uppercase_Letter\nM Mark Combining_Mark\nMc Spacing_Mark\nMe Enclosing_Mark\nMn Nonspacing_Mark\nN Number\nNd Decimal_Number digit\nNl Letter_Number\nNo Other_Number\nP Punctuation punct\nPc Connector_Punctuation\nPd Dash_Punctuation\nPe Close_Punctuation\nPf Final_Punctuation\nPi Initial_Punctuation\nPo Other_Punctuation\nPs Open_Punctuation\nS Symbol\nSc Currency_Symbol\nSk Modifier_Symbol\nSm Math_Symbol\nSo Other_Symbol\nZ Separator\nZl Line_Separator\nZp Paragraph_Separator\nZs Space_Separator\nASCII\nASCII_Hex_Digit AHex\nAlphabetic Alpha\nAny\nAssigned\nBidi_Control Bidi_C\nBidi_Mirrored Bidi_M\nCase_Ignorable CI\nCased\nChanges_When_Casefolded CWCF\nChanges_When_Casemapped CWCM\nChanges_When_Lowercased CWL\nChanges_When_NFKC_Casefolded CWKCF\nChanges_When_Titlecased CWT\nChanges_When_Uppercased CWU\nDash\nDefault_Ignorable_Code_Point DI\nDeprecated Dep\nDiacritic Dia\nEmoji\nEmoji_Component EComp\nEmoji_Modifier EMod\nEmoji_Modifier_Base EBase\nEmoji_Presentation EPres\nExtended_Pictographic ExtPict\nExtender Ext\nGrapheme_Base Gr_Base\nGrapheme_Extend Gr_Ext\nHex_Digit Hex\nIDS_Binary_Operator IDSB\nIDS_Trinary_Operator IDST\nID_Continue IDC\nID_Start IDS\nIdeographic Ideo\nJoin_Control Join_C\nLogical_Order_Exception LOE\nLowercase Lower\nMath\nNoncharacter_Code_Point NChar\nPattern_Syntax Pat_Syn\nPattern_White_Space Pat_WS\nQuotation_Mark QMark\nRadical\nRegional_Indicator RI\nSentence_Terminal STerm\nSoft_Dotted SD\nTerminal_Punctuation Term\nUnified_Ideograph UIdeo\nUppercase Upper\nVariation_Selector VS\nWhite_Space space\nXID_Continue XIDC\nXID_Start XIDS".split(/\s/).map(e=>[qs(e),e])),Di=new Map([["s",xi(383)],[xi(383),"s"]]),Bi=new Map([[xi(223),xi(7838)],[xi(107),xi(8490)],[xi(229),xi(8491)],[xi(969),xi(8486)]]),Fi=new Map([Wi(453),Wi(456),Wi(459),Wi(498),...zi(8072,8079),...zi(8088,8095),...zi(8104,8111),Wi(8124),Wi(8140),Wi(8188)]),Gi=new Map([["alnum",Si`[\p{Alpha}\p{Nd}]`],["alpha",Si`\p{Alpha}`],["ascii",Si`\p{ASCII}`],["blank",Si`[\p{Zs}\t]`],["cntrl",Si`\p{Cc}`],["digit",Si`\p{Nd}`],["graph",Si`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",Si`\p{Lower}`],["print",Si`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",Si`[\p{P}\p{S}]`],["space",Si`\p{space}`],["upper",Si`\p{Upper}`],["word",Si`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",Si`\p{AHex}`]]);function Ui(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function Wi(e){const t=xi(e);return[t.toLowerCase(),t]}function zi(e,t){return Ui(e,t).map(e=>Wi(e))}var qi=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function Hi(e,t){const n=Object.assign({accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025"},t);Zi(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Ii(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};Xs(e,Vi,r);const o={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},s={currentFlags:o,prevFlags:null,globalFlags:o,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};return Xs(e,Xi,s),Xs(e,Ki,{groupsByName:s.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:s.reffedNodesByReferencer}),e._originMap=s.groupOriginByCopy,e._strategy=r.strategy,e}var Vi={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:o}=e;if("repeater"!==o)throw new Error("Unsupported absence function \"(?~|\"");{const e=Ns();e.body[0].body.push(Ps({negate:!0,body:r}),js("Any"));const o=Ns();o.body[0].body.push($s("greedy",0,1/0,e)),n(ga(o,t),{traverse:!0})}},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const o=e.body.filter(e=>"flags"===e.kind);for(let e=n+1;e<t.body.length;e++){Li(r,t.body[e],[]).push(...o)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){const n=ra(t.get(e));if(n){const t=Ns({flags:n});t.body[0].body=e.body,e.body=[ga(t,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:o,remove:s,replaceWith:i},a){const{kind:l,negate:c}=e,{asciiWordBoundaries:u,avoidSubclass:d,supportedGNodes:h,wordIsAscii:p}=a;if("text_segment_boundary"===l)throw new Error(`Unsupported text segment boundary "\\${c?"Y":"y"}"`);if("line_end"===l)i(ga(Ps({body:[ks({body:[Cs("string_end")]}),ks({body:[Ss(10)]})]}),t));else if("line_start"===l)i(ga(ha(Si`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if("search_start"===l)if(h.has(e))o.flags.sticky=!0,s();else{const e=r[n-1];if(e&&ca(e))i(ga(Ps({negate:!0}),t));else{if(d)throw new Error(Si`Uses "\G" in a way that requires a subclass`);i(fa(Cs("string_start"),t)),a.strategy="clip_search"}}else if("string_end"===l||"string_start"===l);else if("string_end_newline"===l)i(ga(ha(Si`(?=\n?\z)`),t));else{if("word_boundary"!==l)throw new Error(`Unexpected assertion kind "${l}"`);if(!p&&!u){i(ga(ha(c?`(?:(?<=${Ri})(?=${Ri})|(?<!${Ri})(?!${Ri}))`:`(?:(?<=${Ri})(?!${Ri})|(?<!${Ri})(?=${Ri}))`),t))}}},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;"string"!=typeof n||da(n)||(n=na(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!da(r)&&(r=na(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){"intersection"===t.kind&&n(ga(_s({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:o,digitIsAscii:s,spaceIsAscii:i,wordIsAscii:a}){const{kind:l,negate:c,value:u}=e;if(!s||"digit"!==l&&"digit"!==u)if(!i||"space"!==l&&"space"!==u)if(!a||"word"!==l&&"word"!==u)if("any"===l)n(fa(js("Any"),t));else if("digit"===l)n(fa(js("Nd",{negate:c}),t));else if("dot"===l);else if("text_segment"===l){if("strict"===r)throw new Error(Si`Use of "\X" requires non-strict accuracy`);const e="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",s=Si`\p{RI}{2}|${e}(?:\u200D${e})*`;n(ga(ha(Si`(?>\r\n|${o?Si`\p{RGI_Emoji}`:s}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if("hex"===l)n(fa(js("AHex",{negate:c}),t));else if("newline"===l)n(ga(ha(c?"[^\n]":"(?>\r\n?|[\n\v\f\x85\u2028\u2029])"),t));else if("posix"===l)if(o||"graph"!==u&&"print"!==u)n(ga(pa(ha(Gi.get(u)),c),t));else{if("strict"===r)throw new Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let e={graph:"!-~",print:" -~"}[u];c&&(e=`\0-${xi(e.codePointAt(0)-1)}${xi(e.codePointAt(2)+1)}-\udbff\udfff`),n(ga(ha(`[${e}]`),t))}else if("property"===l)ji.has(qs(u))||(e.key="sc");else if("space"===l)n(fa(js("space",{negate:c}),t));else{if("word"!==l)throw new Error(`Unexpected character set kind "${l}"`);n(ga(pa(ha(Ri),c),t))}else n(fa(Es("word",{negate:c}),t));else n(ga(pa(ha("[\t-\r ]"),c),t));else n(fa(Es("digit",{negate:c}),t))},Directive({node:e,parent:t,root:n,remove:r,replaceWith:o,removeAllPrevSiblings:s,removeAllNextSiblings:i}){const{kind:a,flags:l}=e;if("flags"===a)if(l.enable||l.disable){const e=Ns({flags:l});e.body[0].body=i(),o(ga(e,t),{traverse:!0})}else r();else{if("keep"!==a)throw new Error(`Unexpected directive kind "${a}"`);{const e=n.body[0],r=1===n.body.length&&as(e,{type:"Group"})&&1===e.body[0].body.length?e.body[0]:n;if(t.parent!==r||r.body.length>1)throw new Error(Si`Uses "\K" in a way that's unsupported`);const i=Ps({behind:!0});i.body[0].body=s(),o(ga(i,t))}}},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error("Unsupported flag \"P\"");if("word"===e.textSegmentMode)throw new Error("Unsupported flag \"y{w}\"");["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(t=>delete e[t]),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?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&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;"lookbehind"===n&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){const{kind:r}=e;if("fail"!==r)throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`);n(ga(Ps({negate:!0}),t))},Quantifier({node:e}){if("Quantifier"===e.body.type){const t=Ns();t.body[0].body.push(e.body),e.body=ga(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,o=!1;for(const t of e.body)if(1===t.body.length&&"search_start"===t.body[0].kind)t.body.pop();else{const e=ia(t.body);e?(r=!0,Array.isArray(e)?n.push(...e):n.push(e)):o=!0}r&&!o&&n.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if("strict"===t&&n&&r)throw new Error(Si`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;"string"!=typeof n||da(n)||(n=na(n,t),e.ref=n)}},Xi={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:o}=e;r||n.set(e,[...t.get(o).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:o,groupsByName:s,multiplexCapturesToLeftByRef:i,openRefs:a,reffedNodesByReferencer:l}){const c=o.get(e);if(c&&a.has(e.number)){const r=fa(ea(e.number),t);return l.set(r,a.get(e.number)),void n(r)}a.set(e.number,e),i.set(e.number,[]),e.name&&Li(i,e.name,[]);const u=i.get(e.name??e.number);for(let t=0;t<u.length;t++){const n=u[t];if(c===n.node||c&&c===n.origin||e===n.origin){u.splice(t,1);break}}if(i.get(e.number).push({node:e,origin:c}),e.name&&i.get(e.name).push({node:e,origin:c}),e.name){const t=Li(s,e.name,new Map);let n=!1;if(c)n=!0;else for(const e of t.values())if(!e.hasDuplicateNameToRemove){n=!0;break}s.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:n})}},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=Ei(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){const{isRecursive:o,ref:s}=e;if(o){let n=t;for(;(n=n.parent)&&("CapturingGroup"!==n.type||n.name!==s&&n.number!==s););return void r.reffedNodesByReferencer.set(e,n)}const i=r.subroutineRefMap.get(s),a=0===s,l=a?ea(0):Yi(i,r.groupOriginByCopy,null);let c=l;if(!a){const e=ra(ta(i,e=>"Group"===e.type&&!!e.flags)),t=e?Ei(r.globalFlags,e):r.globalFlags;Ji(t,r.currentFlags)||(c=Ns({flags:oa(t)}),c.body[0].body.push(l))}n(ga(c,t),{traverse:!a})}},Ki={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan)return void(r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref));const o=r.reffedNodesByReferencer.get(e).filter(t=>Qi(t,e));o.length?o.length>1?n(ga(Ns({atomic:!0,body:o.reverse().map(e=>ks({body:[vs(e.number)]}))}),t)):e.ref=o[0].number:n(ga(Ps({negate:!0}),t))},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 t=0;t<n;t++){const t=xs();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){e.isRecursive&&0!==e.ref&&(e.ref=t.reffedNodesByReferencer.get(e).number)}};function Zi(e){Xs(e,{"*"({node:e,parent:t}){e.parent=t}})}function Ji(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function Qi(e,t){let n=t;do{if("Regex"===n.type)return!1;if("Alternative"===n.type)continue;if(n===e)return!1;const t=sa(n.parent);for(const r of t){if(r===n)break;if(r===e||aa(r,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function Yi(e,t,n,r){const o=Array.isArray(e)?[]:{};for(const[s,i]of Object.entries(e))"parent"===s?o.parent=Array.isArray(n)?r:n:i&&"object"==typeof i?o[s]=Yi(i,t,o,n):("type"===s&&"CapturingGroup"===i&&t.set(o,t.get(e)??e),o[s]=i);return o}function ea(e){const t=Ms(e);return t.isRecursive=!0,t}function ta(e,t){const n=[];for(;e=e.parent;)t&&!t(e)||n.push(e);return n}function na(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/gu,"_")}`;return t.set(e,n),n}function ra(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete n.disable[t],n.enable[t]=!0),e.disable?.[t]&&(n.disable[t]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function oa({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 sa(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function ia(e){const t=e.find(e=>"search_start"===e.kind||ua(e,{negate:!1})||!la(e));if(!t)return null;if("search_start"===t.kind)return t;if("LookaroundAssertion"===t.type)return t.body[0].body[0];if("CapturingGroup"===t.type||"Group"===t.type){const e=[];for(const n of t.body){const t=ia(n.body);if(!t)return null;Array.isArray(t)?e.push(...t):e.push(t)}return e}return null}function aa(e,t){const n=sa(e)??[];for(const e of n)if(e===t||aa(e,t))return!0;return!1}function la({type:e}){return"Assertion"===e||"Directive"===e||"LookaroundAssertion"===e}function ca(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||"Quantifier"===e.type&&e.min&&t.includes(e.body.type)}function ua(e,t){const n=Object.assign({negate:null},t);return"LookaroundAssertion"===e.type&&(null===n.negate||e.negate===n.negate)&&1===e.body.length&&as(e.body[0],{type:"Assertion",kind:"search_start"})}function da(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function ha(e,t){const n=us(e,Object.assign({},t,{unicodePropertyMap:ji})).body;return n.length>1||n[0].body.length>1?Ns({body:n}):n[0].body[0]}function pa(e,t){return e.negate=t,e}function fa(e,t){return e.parent=t,e}function ga(e,t){return Zi(e),e.parent=t,e}function ma(e,t){const n=Ti(t),r=Ii(n.target,"ES2024"),o=Ii(n.target,"ES2025"),s=n.rules.recursionLimit;if(!Number.isInteger(s)||s<2||s>20)throw new Error("Invalid recursionLimit; use 2-20");let i=null,a=null;if(!o){const t=[e.flags.ignoreCase];Xs(e,ya,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?i=!0:a=!0}})}const l={dotAll:e.flags.dotAll,ignoreCase:!(!e.flags.ignoreCase&&!i||a)};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:s,useAppliedIgnoreCase:!(o||!i||!a),useFlagMods:o,useFlagV:r,verbose:n.verbose};function d(e){return u.lastNode=c,c=e,Ni(ba[e.type],`Unexpected node type "${e.type}"`)(e,u,d)}const h={pattern:e.body.map(d).join("|"),flags:d(e.flags),options:Object.assign({},e.options)};return r||(delete h.options.force.v,h.options.disable.v=!0,h.options.unicodeSetsPlugin=null),h._captureTransfers=new Map,h._hiddenCaptures=[],u.captureMap.forEach((e,t)=>{e.hidden&&h._hiddenCaptures.push(t),e.transferTo&&Li(h._captureTransfers,e.transferTo,[]).push(t)}),h}var ya={"*":{enter({node:e},t){if(Na(e)){const n=t.getCurrentModI();t.pushModI(e.flags?Ei({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){Na(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){Sa(xi(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),_a(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){"property"===e.kind&&qi.has(e.value)&&t.setHasCasedChar()}},ba={Alternative:({body:e},t,n)=>e.map(n).join(""),Assertion({kind:e,negate:t}){if("string_end"===e)return"$";if("string_start"===e)return"^";if("word_boundary"===e)return t?Si`\B`:Si`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if("number"!=typeof e)throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&"strict"===t.accuracy&&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:s}=e,i={ignoreCase:t.currentFlags.ignoreCase},a=t.originMap.get(e);return a&&(i.hidden=!0,s>a.number&&(i.transferTo=a.number)),t.captureMap.set(s,i),`(${o?`?<${o}>`:""}${r.map(n).join("|")})`},Character({value:e},t){const n=xi(e),r=Aa(e,{escDigit:"Backreference"===t.lastNode.type,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Sa(n)){const e=Mi(n);return t.inCharClass?e.join(""):e.length>1?`[${e.join("")}]`:e[0]}return n},CharacterClass(e,t,n){const{kind:r,negate:o,parent:s}=e;let{body:i}=e;if("intersection"===r&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");_i.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(Pa)&&(i=[Ss(45),...i.filter(e=>!Pa(e))]);const a=()=>`[${o?"^":""}${i.map(n).join("intersection"===r?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||_i.bugNestedClassIgnoresNegation)&&!o){const t=i.filter(e=>"CharacterClass"===e.type&&"union"===e.kind&&e.negate);if(t.length){const r=Ns(),o=r.body[0];return r.parent=s,o.parent=r,i=i.filter(e=>!t.includes(e)),e.body=i,i.length?(e.parent=o,o.body.push(e)):r.body.pop(),t.forEach(e=>{const t=ks({body:[e]});e.parent=t,t.parent=r,r.body.push(t)}),n(r)}}t.inCharClass=!0;const r=a();return t.inCharClass=!1,r}const l=i[0];if("union"===r&&!o&&l&&((!t.useFlagV||!t.verbose)&&"union"===s.kind&&(!_i.bugFlagVLiteralHyphenIsRange||!t.useFlagV)||!t.verbose&&"intersection"===s.kind&&1===i.length&&"CharacterClassRange"!==l.type))return i.map(n).join("");if(!t.useFlagV&&"CharacterClass"===s.type)throw new Error("Uses nested character class in a way that requires min target ES2024");return a()},CharacterClassRange(e,t){const n=e.min.value,r=e.max.value,o={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},s=Aa(n,o),i=Aa(r,o),a=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Ea(_a(e)).forEach(e=>{a.add(Array.isArray(e)?`${Aa(e[0],o)}-${Aa(e[1],o)}`:Aa(e,o))}),`${s}-${i}${[...a].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},o){if("dot"===e)return o.currentFlags.dotAll?o.appliedGlobalFlags.dotAll||o.useFlagMods?".":"[^]":Si`[^\n]`;if("digit"===e)return t?Si`\D`:Si`\d`;if("property"===e){if(o.useAppliedIgnoreCase&&o.currentFlags.ignoreCase&&qi.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?Si`\P`:Si`\p`}{${r?`${r}=`:""}${n}}`}if("word"===e)return t?Si`\W`:Si`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags:(e,t)=>(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":""),Group({atomic:e,body:t,flags:n,parent:r},o,s){const i=o.currentFlags;n&&(o.currentFlags=Ei(i,n));const a=t.map(s).join("|"),l=o.verbose||1!==t.length||"Quantifier"===r.type||e||o.useFlagMods&&n?`(?${La(e,n,o.useFlagMods)}${a})`:a;return o.currentFlags=i,l},LookaroundAssertion:({body:e,kind:t,negate:n},r,o)=>`(?${"lookahead"===t?"":"<"}${n?"!":"="}${e.map(o).join("|")})`,Quantifier:(e,t,n)=>n(e.body)+Ia(e),Subroutine({isRecursive:e,ref:t},n){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const r=n.recursionLimit;return 0===t?`(?R=${r})`:Si`\g<${t}&R=${r}>`}},wa=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),ka=new Set(["-","\\","]","^","["]),Ca=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),va=new Map([[9,Si`\t`],[10,Si`\n`],[11,Si`\v`],[12,Si`\f`],[13,Si`\r`],[8232,Si`\u2028`],[8233,Si`\u2029`],[65279,Si`\uFEFF`]]),xa=/^\p{Cased}$/u;function Sa(e){return xa.test(e)}function _a(e,t){const n=!!t?.firstOnly,r=e.min.value,o=e.max.value,s=[];if(r<65&&(65535===o||o>=131071)||65536===r&&o>=131071)return s;for(let e=r;e<=o;e++){const t=xi(e);if(!Sa(t))continue;const i=Mi(t).filter(e=>{const t=e.codePointAt(0);return t<r||t>o});if(i.length&&(s.push(...i),n))break}return s}function Aa(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(va.has(e))return va.get(e);if(e<32||e>126&&e<160||e>262143||t&&((o=e)>47&&o<58))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;var o;const s=n?r?Ca:ka:wa,i=xi(e);return(s.has(i)?"\\":"")+i}function Ea(e){const t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),n=[];let r=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?r??=t[e]:null===r?n.push(t[e]):(n.push([r,t[e]]),r=null);return n}function La(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:e,disable:n}=t;r=(e?.ignoreCase?"i":"")+(e?.dotAll?"s":"")+(n?"-":"")+(n?.ignoreCase?"i":"")+(n?.dotAll?"s":"")}return`${r}:`}function Ia({kind:e,max:t,min:n}){let r;return r=n||1!==t?n||t!==1/0?1===n&&t===1/0?"+":n===t?`{${n}}`:`{${n},${t===1/0?"":t}}`:"*":"?",r+{greedy:"",lazy:"?",possessive:"+"}[e]}function Na({type:e}){return"CapturingGroup"===e||"Group"===e||"LookaroundAssertion"===e}function Pa({type:e,value:t}){return"Character"===e&&45===t}var Oa=(a=f("captureMap"),l=f("compiled"),c=f("pattern"),u=f("nameMap"),d=f("strategy"),h=f("execCore"),class e extends RegExp{get source(){return p(this,c)[c]||"(?:)"}constructor(t,n,r){const o=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw new Error("Cannot provide options when copying a regexp");const o=t;super(o,n),Object.defineProperty(this,h,{value:Ta}),Object.defineProperty(this,a,{writable:!0,value:new Map}),Object.defineProperty(this,l,{writable:!0,value:null}),Object.defineProperty(this,c,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:null}),Object.defineProperty(this,d,{writable:!0,value:null}),this.rawOptions={},p(this,c)[c]=o.source,o instanceof e&&(p(this,a)[a]=p(o,a)[a],p(this,u)[u]=p(o,u)[u],p(this,d)[d]=p(o,d)[d],this.rawOptions=o.rawOptions)}else{const e=Object.assign({hiddenCaptures:[],strategy:null,transfers:[]},r);super(o?"":t,n),Object.defineProperty(this,h,{value:Ta}),Object.defineProperty(this,a,{writable:!0,value:new Map}),Object.defineProperty(this,l,{writable:!0,value:null}),Object.defineProperty(this,c,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:null}),Object.defineProperty(this,d,{writable:!0,value:null}),this.rawOptions={},p(this,c)[c]=t,p(this,a)[a]=Ra(e.hiddenCaptures,e.transfers),p(this,d)[d]=e.strategy,this.rawOptions=r??{}}o||(p(this,l)[l]=this)}exec(t){if(!p(this,l)[l]){const t=this.rawOptions,n=g(t,y);p(this,l)[l]=new e(p(this,c)[c],this.flags,n)}const n=this.global||this.sticky,r=this.lastIndex;if("clip_search"===p(this,d)[d]&&n&&r){this.lastIndex=0;const e=p(this,h)[h](t.slice(r));return e&&($a(e,r,t,this.hasIndices),this.lastIndex+=r),e}return p(this,h)[h](t)}});function Ta(e){p(this,l)[l].lastIndex=this.lastIndex;const t=RegExp.prototype.exec.call(p(this,l)[l],e);if(this.lastIndex=p(this,l)[l].lastIndex,!t||!p(this,a)[a].size)return t;const n=[...t];let r;t.length=1,this.hasIndices&&(r=[...t.indices],t.indices.length=1);const o=[0];for(let e=1;e<n.length;e++){const{hidden:s,transferTo:i}=p(this,a)[a].get(e)??{};if(s?o.push(null):(o.push(t.length),t.push(n[e]),this.hasIndices&&t.indices.push(r[e])),i&&void 0!==n[e]){const s=o[i];if(!s)throw new Error(`Invalid capture transfer to "${s}"`);if(t[s]=n[e],this.hasIndices&&(t.indices[s]=r[e]),t.groups){p(this,u)[u]||(p(this,u)[u]=Ma(this.source));const o=p(this,u)[u].get(i);o&&(t.groups[o]=n[e],this.hasIndices&&(t.indices.groups[o]=r[e]))}}}return t}function $a(e,t,n,r){if(e.index+=t,e.input=n,r){const n=e.indices;for(let e=0;e<n.length;e++){const r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])}const r=n.groups;r&&Object.keys(r).forEach(e=>{const n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])})}}function Ra(e,t){const n=new Map;for(const t of e)n.set(t,{hidden:!0});for(const[e,r]of t)for(const t of r)Li(n,t,{}).transferTo=e;return n}function Ma(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r,o=0,s=0;for(;r=t.exec(e);){const{0:e,groups:{capture:t,name:i}}=r;"["===e?o++:o?"]"===e&&o--:t&&(s++,i&&n.set(s,i))}return n}function ja(e,t){const n=Da(e,t);return n.options?new Oa(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function Da(e,t){const n=Ti(t),r=Hi(us(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:ji}),{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=ma(r,n),s=yi(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),i=ai(ui(s.pattern).pattern,{captureTransfers:s.captureTransfers,hiddenCaptures:s.hiddenCaptures}),a={pattern:i.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const e=i.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(i.captureTransfers),o=r._strategy,s=a.pattern.length>=n.lazyCompileLength;(e.length||t.length||o||s)&&(a.options=Object.assign({},e.length&&{hiddenCaptures:e},t.length&&{transfers:t},o&&{strategy:o},s&&{lazyCompile:s}))}return a}function Ba(e,t){return ja(e,Object.assign({global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0}},t))}function Fa(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=e=>Ba(e,{target:t.target}),{createScanner:e=>new mo(e,t),createString:e=>({content:e})}}var Ga=k({createOnigurumaEngine:()=>hl,getDefaultWasmLoader:()=>dl,loadWasm:()=>al,setDefaultWasmLoader:()=>ul}),Ua=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Wa(){return"undefined"!=typeof performance?performance.now():Date.now()}const za=(e,t)=>e+(t-e%t)%t;async function qa(e){let t,n;const r={};function o(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function s(e){try{return t.grow(e-n.byteLength+65535>>>16),o(t.buffer),1}catch{}}const i="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function a(e,t,n=1024){const r=t+n;let o=t;for(;e[o]&&!(o>=r);)++o;if(o-t>16&&e.buffer&&i)return i.decode(e.subarray(t,o));let s="";for(;t<o;){let n=e[t++];if(!(128&n)){s+=String.fromCharCode(n);continue}const r=63&e[t++];if(192==(224&n)){s+=String.fromCharCode((31&n)<<6|r);continue}const o=63&e[t++];if(n=224==(240&n)?(15&n)<<12|r<<6|o:(7&n)<<18|r<<12|o<<6|63&e[t++],n<65536)s+=String.fromCharCode(n);else{const e=n-65536;s+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return s}function l(e,t){return e?a(r.HEAPU8,e,t):""}const c={emscripten_get_now:Wa,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){const t=r.HEAPU8.length,n=2147483648;if((e>>>=0)>n)return!1;for(let r=1;r<=4;r*=2){let o=t*(1+.2/r);if(o=Math.min(o,e+100663296),s(Math.min(n,za(Math.max(e,o),65536))))return!0}return!1},fd_write:()=>0};return await(async function(){const n=await e({env:c,wasi_snapshot_preview1:c});t=n.memory,o(t.buffer),Object.assign(r,n),r.UTF8ToString=l})(),r}var Ha=Object.defineProperty,Va=(e,t,n)=>t in e?Ha(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xa=(e,t,n)=>Va(e,"symbol"!=typeof t?t+"":t,n);let Ka=null;function Za(e){throw new Ua(e.UTF8ToString(e.getLastOnigError()))}var Ja=class e{constructor(t){Xa(this,"utf16Length"),Xa(this,"utf8Length"),Xa(this,"utf16Value"),Xa(this,"utf8Value"),Xa(this,"utf16OffsetToUtf8"),Xa(this,"utf8OffsetToUtf16");const n=t.length,r=e._utf8ByteLength(t),o=r!==n,s=o?new Uint32Array(n+1):null;o&&(s[n]=r);const i=o?new Uint32Array(r+1):null;o&&(i[r]=n);const a=new Uint8Array(r);let l=0;for(let e=0;e<n;e++){const r=t.charCodeAt(e);let c=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){const n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(c=65536+(r-55296<<10)|n-56320,u=!0)}o&&(s[e]=l,u&&(s[e+1]=l),c<=127?i[l+0]=e:c<=2047?(i[l+0]=e,i[l+1]=e):c<=65535?(i[l+0]=e,i[l+1]=e,i[l+2]=e):(i[l+0]=e,i[l+1]=e,i[l+2]=e,i[l+3]=e)),c<=127?a[l++]=c:c<=2047?(a[l++]=192|(1984&c)>>>6,a[l++]=128|(63&c)>>>0):c<=65535?(a[l++]=224|(61440&c)>>>12,a[l++]=128|(4032&c)>>>6,a[l++]=128|(63&c)>>>0):(a[l++]=240|(1835008&c)>>>18,a[l++]=128|(258048&c)>>>12,a[l++]=128|(4032&c)>>>6,a[l++]=128|(63&c)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=a,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=i}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){const o=e.charCodeAt(n);let s=o,i=!1;if(o>=55296&&o<=56319&&n+1<r){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(s=65536+(o-55296<<10)|t-56320,i=!0)}t+=s<=127?1:s<=2047?2:s<=65535?3:4,i&&n++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}};const Qa=class e{constructor(t){if(Xa(this,"id",++e.LAST_ID),Xa(this,"_onigBinding"),Xa(this,"content"),Xa(this,"utf16Length"),Xa(this,"utf8Length"),Xa(this,"utf16OffsetToUtf8"),Xa(this,"utf8OffsetToUtf16"),Xa(this,"ptr"),!Ka)throw new Ua("Must invoke loadWasm first.");this._onigBinding=Ka,this.content=t;const n=new Ja(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=Ka.omalloc(1e4)),e._sharedPtrInUse=!0,Ka.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(Ka)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Xa(Qa,"LAST_ID",0),Xa(Qa,"_sharedPtr",0),Xa(Qa,"_sharedPtrInUse",!1);let Ya=Qa;var el=class{constructor(e){if(Xa(this,"_onigBinding"),Xa(this,"_ptr"),!Ka)throw new Ua("Must invoke loadWasm first.");const t=[],n=[];for(let r=0,o=e.length;r<o;r++){const o=new Ja(e[r]);t[r]=o.createString(Ka),n[r]=o.utf8Length}const r=Ka.omalloc(4*e.length);Ka.HEAPU32.set(t,r/4);const o=Ka.omalloc(4*e.length);Ka.HEAPU32.set(n,o/4);const s=Ka.createOnigScanner(r,o,e.length);for(let n=0,r=e.length;n<r;n++)Ka.ofree(t[n]);Ka.ofree(o),Ka.ofree(r),0===s&&Za(Ka),this._onigBinding=Ka,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new Ya(e);const n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===s)return null;const i=o.HEAPU32;let a=s/4;const l=i[a++],c=i[a++],u=[];for(let t=0;t<c;t++){const n=e.convertUtf8OffsetToUtf16(i[a++]),r=e.convertUtf8OffsetToUtf16(i[a++]);u[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:u}}};function tl(e){return"function"==typeof e.default}function nl(e){return void 0!==e.data}function rl(e){return"undefined"!=typeof Response&&e instanceof Response}function ol(e){return"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||"undefined"!=typeof Buffer&&Buffer.isBuffer?.(e)||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&e instanceof Uint32Array}let sl,il;function al(e){if(sl)return sl;return sl=(async function(){Ka=await qa(async t=>{let n=e;var r;return n=await n,"function"==typeof n&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator?n=await n.instantiator(t):tl(n)?n=await n.default(t):(nl(n)&&(n=n.data),rl(n)?n="function"==typeof WebAssembly.instantiateStreaming?await(r=n,e=>WebAssembly.instantiateStreaming(r,e))(t):await cl(n)(t):ol(n)||n instanceof WebAssembly.Module?n=await ll(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await ll(n.default)(t))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})})(),sl}function ll(e){return t=>WebAssembly.instantiate(e,t)}function cl(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}function ul(e){il=e}function dl(){return il}async function hl(e){return e&&await al(e),{createScanner:e=>new el(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new Ya(e)}}var pl,fl;A(_({}),pl=Ga,"default"),fl&&A(fl,pl,"default"),(()=>{try{return!1}catch{return!1}})();const gl={dark:"pierre-dark",light:"pierre-light"};Object.freeze({fromStart:0,fromEnd:0});const ml=new Map,yl=new Set;function bl(e,t){e=Array.isArray(e)?e:[e];for(const n of e){if(yl.has(n.name))continue;let e=ml.get(n.name);null==e&&(e=n,ml.set(n.name,e));const r=e.data.find(t=>t.name===e.name||!0===t.aliases?.includes(e.name));if(null==r)throw new Error(`attachResolvedLanguages: No returned grammar declares "${e.name}" as its name or an alias.`);t.loadLanguageSync(e.data);try{t.getLanguage(e.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${e.name}". Load the alias first or give the grammar a unique name.`)}yl.add(e.name)}}const wl=new Set;var kl=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name="DuplicateThemeError"}},Cl=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name="UnregisteredThemeError"}},vl=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name="UnresolvedThemeError"}};const xl=(function(){const e=new Map,t=new Map,n=new Map;let r=0;function o(o){const s=t.get(o);if(void 0!==s)return Promise.resolve(s);const i=n.get(o);if(void 0!==i)return i;const a=e.get(o);if(void 0===a)return Promise.reject(new Cl(o));const l=r,c=a().then(e=>{const s=null!==(i=e)&&"object"==typeof i&&"default"in i?i.default:i;var i;return l===r&&t.set(o,s),n.get(o)===c&&n.delete(o),s}).catch(e=>{throw n.get(o)===c&&n.delete(o),e});return n.set(o,c),c}function s(e,n){t.set(e,n)}return{clearResolvedThemes:function(){r++,t.clear(),n.clear()},getResolvedOrResolveTheme:function(e){const n=t.get(e);return void 0!==n?n:o(e)},getResolvedTheme:function(e){return t.get(e)},getResolvedThemes:function(e){const n=[];for(const r of e){const e=t.get(r);if(void 0===e)throw new vl(r);n.push(e)}return n},hasRegisteredTheme:function(t){return e.has(t)},hasResolvedTheme:function(e){return t.has(e)},hasResolvedThemes:function(e){for(const n of e)if(!t.has(n))return!1;return!0},registerTheme:function(t,n){if(e.has(t))throw new kl(t);e.set(t,n)},registerThemeIfAbsent:function(t,n){return!e.has(t)&&(e.set(t,n),!0)},resolveTheme:o,resolveThemes:function(e){return Promise.all(e.map(e=>o(e)))},seedResolvedTheme:s,seedResolvedThemes:function(e){for(const[t,n]of e)s(t,n)}}})();function Sl(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let e;if("string"==typeof n){if(e=xl.getResolvedTheme(n),null==e)throw new Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else e=n,n=n.name,null==xl.getResolvedTheme(n)&&xl.seedResolvedTheme(n,e);wl.has(n)||(wl.add(n),t.loadThemeSync(e))}}const _l=new Map;let Al=0;const El={"1c":"1c",abap:"abap",as:"actionscript-3",ada:"ada",adb:"ada",ads:"ada",adoc:"asciidoc",asciidoc:"asciidoc","component.html":"angular-html","component.ts":"angular-ts",conf:"nginx",htaccess:"apache",cls:"tex",trigger:"apex",apl:"apl",applescript:"applescript",scpt:"applescript",ara:"ara",asm:"asm",s:"riscv",astro:"astro",awk:"awk",bal:"ballerina",sh:"zsh",bash:"zsh",bat:"cmd",cmd:"cmd",be:"berry",beancount:"beancount",bib:"bibtex",bicep:"bicep","blade.php":"blade",bsl:"bsl",c:"c",h:"objective-cpp",cs:"csharp",cpp:"cpp",hpp:"cpp",cc:"cpp",cxx:"cpp",hh:"cpp",cdc:"cdc",cairo:"cairo",clar:"clarity",clj:"clojure",cljs:"clojure",cljc:"clojure",soy:"soy",cmake:"cmake","CMakeLists.txt":"cmake",cob:"cobol",cbl:"cobol",cobol:"cobol",CODEOWNERS:"codeowners",ql:"ql",coffee:"coffeescript",lisp:"lisp",cl:"lisp",lsp:"lisp",log:"log",v:"verilog",cql:"cql",cr:"crystal",css:"css",csv:"csv",cue:"cue",cypher:"cypher",cyp:"cypher",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",patch:"diff",Dockerfile:"dockerfile",dockerfile:"dockerfile",env:"dotenv",dm:"dream-maker",edge:"edge",el:"emacs-lisp",ex:"elixir",exs:"elixir",elm:"elm",erb:"erb",erl:"erlang",hrl:"erlang",f:"fortran-fixed-form",for:"fortran-fixed-form",fs:"fsharp",fsi:"fsharp",fsx:"fsharp",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"fortran-free-form",f95:"fortran-free-form",fnl:"fennel",fish:"fish",ftl:"ftl",tres:"gdresource",res:"gdresource",gd:"gdscript",gdshader:"gdshader",gs:"genie",feature:"gherkin",COMMIT_EDITMSG:"git-commit","git-rebase-todo":"git-rebase",gjs:"glimmer-js",gleam:"gleam",gts:"glimmer-ts",glsl:"glsl",vert:"glsl",frag:"glsl",shader:"shaderlab",gp:"gnuplot",plt:"gnuplot",gnuplot:"gnuplot",go:"go",graphql:"graphql",gql:"graphql",groovy:"groovy",gvy:"groovy",hack:"hack",haml:"haml",hbs:"handlebars",handlebars:"handlebars",hs:"haskell",lhs:"haskell",hx:"haxe",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",fx:"hlsl",html:"html",htm:"html",http:"http",rest:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",cfg:"ini",jade:"pug",pug:"pug",java:"java",js:"javascript",mjs:"javascript",cjs:"javascript",jinja:"jinja",jinja2:"jinja",j2:"jinja",jison:"jison",jl:"julia",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",libsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",kt:"kotlin",kts:"kts",kql:"kusto",tex:"tex",ltx:"tex",lean:"lean4",less:"less",liquid:"liquid",lit:"lit",ll:"llvm",logo:"logo",lua:"lua",luau:"luau",Makefile:"makefile",mk:"makefile",makefile:"makefile",md:"markdown",markdown:"markdown",marko:"marko",m:"wolfram",mat:"matlab",mdc:"mdc",mdx:"mdx",wiki:"wikitext",mediawiki:"wikitext",mmd:"mermaid",mermaid:"mermaid",mips:"mipsasm",mojo:"mojo","\ud83d\udd25":"mojo",move:"move",nar:"narrat",nf:"nextflow",nim:"nim",nims:"nim",nimble:"nim",nix:"nix",nu:"nushell",mm:"objective-cpp",ml:"ocaml",mli:"ocaml",mll:"ocaml",mly:"ocaml",odin:"odin",pas:"pascal",p:"pascal",pl:"prolog",pm:"perl",t:"perl",raku:"raku",p6:"raku",pl6:"raku",php:"php",phtml:"php",pls:"plsql",sql:"sql",po:"po",polar:"polar",pcss:"postcss",pot:"pot",potx:"potx",pq:"powerquery",pqm:"powerquery",ps1:"powershell",psm1:"powershell",psd1:"powershell",prisma:"prisma",pro:"prolog",P:"prolog",properties:"properties",proto:"protobuf",pp:"puppet",purs:"purescript",py:"python",pyw:"python",pyi:"python",BUCK:"python",BUILD:"python",PACKAGE:"python",WORKSPACE:"python",Tiltfile:"python",bazel:"python",bxl:"python",bzl:"python",bzlmod:"python",star:"python",sky:"python",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",R:"r",rkt:"racket",rktl:"racket",razor:"razor",cshtml:"razor",rb:"ruby",rbw:"ruby",reg:"reg",regex:"regexp",rel:"rel",rs:"rust",rst:"rst",rake:"ruby",gemspec:"ruby",jbuilder:"ruby",builder:"ruby",rabl:"ruby",arb:"ruby",ru:"ruby",podspec:"ruby",Gemfile:"ruby",Rakefile:"ruby",Guardfile:"ruby",Capfile:"ruby",Berksfile:"ruby",Brewfile:"ruby",Vagrantfile:"ruby",Thorfile:"ruby",Appraisals:"ruby",Dangerfile:"ruby",sas:"sas",sass:"sass",scala:"scala",sc:"scala",scm:"scheme",ss:"scheme",sld:"scheme",scss:"scss",sdbl:"sdbl",shadergraph:"shader",st:"smalltalk",sol:"solidity",sparql:"sparql",rq:"sparql",spl:"splunk",config:"ssh-config",do:"stata",ado:"stata",dta:"stata",styl:"stylus",stylus:"stylus",svelte:"svelte",swift:"swift",sv:"system-verilog",svh:"system-verilog",service:"systemd",socket:"systemd",device:"systemd",timer:"systemd",talon:"talonscript",tasl:"tasl",tcl:"tcl",templ:"templ",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"typescript",mts:"typescript",cts:"typescript",tsp:"typespec",tsv:"tsv",tsx:"tsx",ttl:"turtle",twig:"twig",typ:"typst",vv:"v",vala:"vala",vapi:"vala",vb:"vb",vbs:"vb",bas:"vb",vh:"verilog",vhd:"vhdl",vhdl:"vhdl",vim:"vimscript",vue:"vue","vine.ts":"vue-vine",vy:"vyper",wasm:"wasm",wat:"wasm",wy:"\u6587\u8a00",wgsl:"wgsl",wit:"wit",wl:"wolfram",nb:"wolfram",xml:"xml",xsl:"xsl",xslt:"xsl",yaml:"yaml",yml:"yml",zs:"zenscript",zig:"zig",zsh:"zsh",sty:"tex"};function Ll(e){const t=Il(e);if(null!=t)return t;const n=e.split(/[/\\]/).pop()??e;return n===e?"text":Il(n)??"text"}function Il(e){if(_l.has(e))return _l.get(e)??"text";if(Object.hasOwn(El,e))return El[e]??null;const t=e.match(/\.([^/\\]+\.[^/\\]+)$/);if(null!=t){if(_l.has(t[1]))return _l.get(t[1])??"text";if(Object.hasOwn(El,t[1]))return El[t[1]]??"text"}const n=e.match(/\.([^.]+)$/)?.[1]??"";return _l.has(n)?_l.get(n)??"text":Object.hasOwn(El,n)?El[n]??"text":null}function Nl(e,t){if(e<=Al)return!1;_l.clear();for(const e in t){const n=t[e];null!=n&&_l.set(e,n)}return Al=e,!0}var Pl=class{diff(e,t,n={}){let r;"function"==typeof n?(r=n,n={}):"callback"in n&&(r=n.callback);const o=this.castInput(e,n),s=this.castInput(t,n),i=this.removeEmpty(this.tokenize(o,n)),a=this.removeEmpty(this.tokenize(s,n));return this.diffWithOptionsObj(i,a,n,r)}diffWithOptionsObj(e,t,n,r){var o;const s=e=>(e=this.postProcess(e,n),r?void setTimeout(function(){r(e)},0):e),i=t.length,a=e.length;let l=1,c=i+a;null!=n.maxEditLength&&(c=Math.min(c,n.maxEditLength));const u=null!==(o=n.timeout)&&void 0!==o?o:1/0,d=Date.now()+u,h=[{oldPos:-1,lastComponent:void 0}];let p=this.extractCommon(h[0],t,e,0,n);if(h[0].oldPos+1>=a&&p+1>=i)return s(this.buildValues(h[0].lastComponent,t,e));let f=-1/0,g=1/0;const m=()=>{for(let r=Math.max(f,-l);r<=Math.min(g,l);r+=2){let o;const l=h[r-1],c=h[r+1];l&&(h[r-1]=void 0);let u=!1;if(c){const e=c.oldPos-r;u=c&&0<=e&&e<i}const d=l&&l.oldPos+1<a;if(u||d){if(o=!d||u&&l.oldPos<c.oldPos?this.addToPath(c,!0,!1,0,n):this.addToPath(l,!1,!0,1,n),p=this.extractCommon(o,t,e,r,n),o.oldPos+1>=a&&p+1>=i)return s(this.buildValues(o.lastComponent,t,e))||!0;h[r]=o,o.oldPos+1>=a&&(g=Math.min(g,r-1)),p+1>=i&&(f=Math.max(f,r+1))}else h[r]=void 0}l++};if(r)!(function e(){setTimeout(function(){if(l>c||Date.now()>d)return r(void 0);m()||e()},0)})();else for(;l<=c&&Date.now()<=d;){const e=m();if(e)return e}}addToPath(e,t,n,r,o){const s=e.lastComponent;return s&&!o.oneChangePerToken&&s.added===t&&s.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:s.count+1,added:t,removed:n,previousComponent:s.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:s}}}extractCommon(e,t,n,r,o){const s=t.length,i=n.length;let a=e.oldPos,l=a-r,c=0;for(;l+1<s&&a+1<i&&this.equals(n[a+1],t[l+1],o);)l++,a++,c++,o.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return c&&!o.oneChangePerToken&&(e.lastComponent={count:c,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=a,l}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){const t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){const r=[];let o;for(;e;)r.push(e),o=e.previousComponent,delete e.previousComponent,e=o;r.reverse();const s=r.length;let i=0,a=0,l=0;for(;i<s;i++){const e=r[i];if(e.removed)e.value=this.join(n.slice(l,l+e.count)),l+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(a,a+e.count);r=r.map(function(e,t){const r=n[l+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(a,a+e.count));a+=e.count,e.added||(l+=e.count)}}return r}};const Ol=new class extends Pl{};function Tl(e,t){let n;for(n=0;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function $l(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return"";for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function Rl(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function Ml(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function jl(e,t){return Rl(e,t,"")}function Dl(e,t){return Ml(e,t,"")}function Bl(e,t){return t.slice(0,Fl(e,t))}function Fl(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);const o=Array(r);let s=0;o[0]=0;for(let e=1;e<r;e++){for(t[e]==t[s]?o[e]=o[s]:o[e]=s;s>0&&t[e]!=t[s];)s=o[s];t[e]==t[s]&&s++}s=0;for(let r=n;r<e.length;r++){for(;s>0&&e[r]!=t[s];)s=o[s];e[r]==t[s]&&s++}return s}function Gl(e,t){const n=[];for(const r of Array.from(t.segment(e))){const e=r.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}return n}function Ul(e,t){if(t)return zl(e,t)[1];let n;for(n=e.length-1;n>=0&&e[n].match(/\s/);n--);return e.substring(n+1)}function Wl(e,t){if(t)return zl(e,t)[0];const n=e.match(/^\s*/);return n?n[0]:""}function zl(e,t){if(!t)return[Wl(e),Ul(e)];if("word"!=t.resolvedOptions().granularity)throw new Error("The segmenter passed must have a granularity of \"word\"");const n=Gl(e,t),r=n[0],o=n[n.length-1];return[/\s/.test(r)?r:"",/\s/.test(o)?o:""]}const ql="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",Hl=new RegExp(`[${ql}]+|\\s+|[^${ql}]`,"ug");function Vl(e,t,n,r,o){if(t&&n){const[s,i]=zl(t.value,o),[a,l]=zl(n.value,o);if(e){const r=Tl(s,a);e.value=Ml(e.value,a,r),t.value=jl(t.value,r),n.value=jl(n.value,r)}if(r){const e=$l(i,l);r.value=Rl(r.value,l,e),t.value=Dl(t.value,e),n.value=Dl(n.value,e)}}else if(n){if(e){const e=Wl(n.value,o);n.value=n.value.substring(e.length)}if(r){const e=Wl(r.value,o);r.value=r.value.substring(e.length)}}else if(e&&r){const n=Wl(r.value,o),[s,i]=zl(t.value,o),a=Tl(n,s);t.value=jl(t.value,a);const l=$l(jl(n,a),i);t.value=Dl(t.value,l),r.value=Rl(r.value,n,l),e.value=Ml(e.value,n,n.slice(0,n.length-l.length))}else if(r){const e=Wl(r.value,o),n=Bl(Ul(t.value,o),e);t.value=Dl(t.value,n)}else if(e){const n=Bl(Ul(e.value,o),Wl(t.value,o));t.value=jl(t.value,n)}}new class extends Pl{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){const r=t.intlSegmenter;if("word"!=r.resolvedOptions().granularity)throw new Error("The segmenter passed must have a granularity of \"word\"");n=Gl(e,r)}else n=e.match(Hl)||[];const r=[];let o=null;return n.forEach(e=>{/\s/.test(e)?null==o?r.push(e):r.push(r.pop()+e):null!=o&&/\s/.test(o)?r[r.length-1]==o?r.push(r.pop()+e):r.push(o+e):r.push(e),o=e}),r}join(e){return e.map((e,t)=>0==t?e:e.replace(/^\s+/,"")).join("")}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,o=null;return e.forEach(e=>{e.added?r=e:e.removed?o=e:((r||o)&&Vl(n,o,r,e,t.intlSegmenter),n=e,r=null,o=null)}),(r||o)&&Vl(n,o,r,null,t.intlSegmenter),e}};const Xl=new class extends Pl{tokenize(e){const t=new RegExp(`(\\r?\\n)|[${ql}]+|[^\\S\\n\\r]+|[^${ql}]`,"ug");return e.match(t)||[]}};function Kl(e,t,n){return Xl.diff(e,t,n)}function Zl(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));const n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){const o=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=o:n.push(o)}return n}function Jl(e){return"."==e||"!"==e||"?"==e}new class extends Pl{constructor(){super(...arguments),this.tokenize=Zl}equals(e,t,n){return n.ignoreWhitespace?(n.newlineIsToken&&e.includes("\n")||(e=e.trim()),n.newlineIsToken&&t.includes("\n")||(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith("\n")&&(e=e.slice(0,-1)),t.endsWith("\n")&&(t=t.slice(0,-1))),super.equals(e,t,n)}};new class extends Pl{tokenize(e){var t;const n=[];let r=0;for(let o=0;o<e.length;o++){if(o==e.length-1){n.push(e.slice(r));break}if(Jl(e[o])&&e[o+1].match(/\s/)){for(n.push(e.slice(r,o+1)),o=r=o+1;null===(t=e[o+1])||void 0===t?void 0:t.match(/\s/);)o++;n.push(e.slice(r,o+1)),r=o+1}}return n}};new class extends Pl{tokenize(e){return e.split(/([{}:;,]|\s+)/)}};function Ql(e,t,n,r,o){let s,i;for(t=t||[],n=n||[],r&&(e=r(void 0===o?"":o,e)),s=0;s<t.length;s+=1)if(t[s]===e)return n[s];if("[object Array]"===Object.prototype.toString.call(e)){for(t.push(e),i=new Array(e.length),n.push(i),s=0;s<e.length;s+=1)i[s]=Ql(e[s],t,n,r,String(s));return t.pop(),n.pop(),i}if(e&&e.toJSON&&(e=e.toJSON()),"object"==typeof e&&null!==e){t.push(e),i={},n.push(i);const o=[];let a;for(a in e)Object.prototype.hasOwnProperty.call(e,a)&&o.push(a);for(o.sort(),s=0;s<o.length;s+=1)a=o[s],i[a]=Ql(e[a],t,n,r,a);t.pop(),n.pop()}else i=e;return i}new class extends Pl{constructor(){super(...arguments),this.tokenize=Zl}get useLongestToken(){return!0}castInput(e,t){const{undefinedReplacement:n,stringifyReplacer:r=(e,t)=>void 0===t?n:t}=t;return"string"==typeof e?e:JSON.stringify(Ql(e,null,null,r),null," ")}equals(e,t,n){return super.equals(e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"),n)}};function Yl(e,t){for(const n of t)e.push(n)}function ec(e){let t=e.length;return 10===e.charCodeAt(t-1)&&(t--,13===e.charCodeAt(t-1)&&t--),e.slice(0,t)}function tc(e,t=0){let n=3735928559^t,r=1103547991^t;for(let t,o=0;o<e.length;o++)t=e.charCodeAt(o),n=Math.imul(n^t,2654435761),r=Math.imul(r^t,1597334677);return n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),(4294967296*(2097151&r)+(n>>>0)).toString(36).slice(0,6)}function nc({tagName:e,children:t=[],properties:n={}}){return{type:"element",tagName:e,properties:n,children:t}}function rc(e){let t=e.children[0];for(;null!=t;){if("element"===t.type&&"code"===t.tagName)return t;t="children"in t?t.children[0]:null}}function oc(e,t,n){const r="function"==typeof n.lineInfo?n.lineInfo(t):n.lineInfo[t-1];if(null==r){const r=`processLine: line ${t}, contains no state.lineInfo`;throw console.error(r,{node:e,line:t,state:n}),new Error(r)}return e.tagName="div",e.properties["data-line"]=r.lineNumber,e.properties["data-alt-line"]=r.altLineNumber,e.properties["data-line-type"]=r.type,e.properties["data-line-index"]=r.lineIndex,0===e.children.length&&e.children.push({type:"text",value:"\n"}),e}new class extends Pl{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};const sc=Symbol("no-token"),ic=Symbol("multiple-tokens");function ac(e){const t=lc(e);if(null!=t)return t;let n=sc;const r=[];let o,s=[];const i=()=>{if(0===s.length||null==o)return s=[],void(o=void 0);if(1===s.length){const t=s[0];if("element"===t?.type){e=o,t.properties["data-char"]=e;for(const e of t.children)cc(e)}else cc(t);return r.push(t),s=[],void(o=void 0)}var e;for(const e of s)cc(e);r.push(nc({tagName:"span",properties:{"data-char":o},children:s})),s=[],o=void 0},a=e=>{e!==sc&&(e!==ic?n!==sc?n!==e&&(n=ic):n=e:n=ic)};for(const t of e.children){const e="element"===t.type?ac(t):sc;a(e),"number"==typeof e?(null!=o&&o!==e&&i(),o??=e,s.push(t)):(i(),r.push(t))}return i(),e.children=r,n}function lc(e){const t=e.properties["data-char"];if("number"==typeof t)return t}function cc(e){if("element"===e.type){e.properties["data-char"]=void 0;for(const t of e.children)cc(t)}}function uc(e=!1,t=!1){const n={lineInfo:[]},r=[Object.assign({line:e=>(delete e.properties.class,e),pre(t){const r=rc(t),o=[];if(null!=r){let t=1;for(const s of r.children)"element"===s.type&&(e&&ac(s),o.push(oc(s,t,n)),t++);r.children=o}return t}},e?{tokens(e){for(const t of e){let e=0;for(const n of t){const t=n;t.__lineChar??=e,e+=n.content.length}}},preprocess(e,t){t.mergeWhitespaces="never"},span(e,t,n,r,o){if(null!=o?.offset&&null!=o.content){const t=o.__lineChar;return null!=t&&(e.properties["data-char"]=t),e}return e}}:null)];return t&&r.push(hc,dc),e&&r.push({line:e=>("element"===e.type&&0===e.children.length&&e.children.push({type:"element",tagName:"br",properties:{},children:[]}),e)}),{state:n,transformers:r,toClass:dc}}const dc=(function(e={}){const{classPrefix:t="__shiki_",classSuffix:n="",classReplacer:r=e=>e}=e,o=new Map;function s(e){return Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}function i(e){const i="string"==typeof e?e:s(e);let a=t+tc(i)+n;return a=r(a),o.has(a)||o.set(a,"string"==typeof e?e:Object.assign({},e)),a}return{name:"@shikijs/transformers:style-to-class",pre(e){if(!e.properties.style)return;const t=i(e.properties.style);delete e.properties.style,this.addClassToHast(e,t)},tokens(e){for(const t of e)for(const e of t){if(!e.htmlStyle)continue;const t=i(e.htmlStyle);e.htmlStyle={},e.htmlAttrs||={},e.htmlAttrs.class?e.htmlAttrs.class+=` ${t}`:e.htmlAttrs.class=t}},getClassRegistry:()=>o,getCSS(){let e="";for(const[t,n]of o.entries())e+=`.${t}{${"string"==typeof n?n:s(n)}}`;return e},clearRegistry(){o.clear()}}})({classPrefix:"hl-"}),hc={name:"token-style-normalizer",tokens(e){for(const t of e)for(const e of t){if(null!=e.htmlStyle)continue;const t={};null!=e.color&&(t.color=e.color),null!=e.bgColor&&(t["background-color"]=e.bgColor),null!=e.fontStyle&&0!==e.fontStyle&&(1&e.fontStyle&&(t["font-style"]="italic"),2&e.fontStyle&&(t["font-weight"]="bold"),4&e.fontStyle&&(t["text-decoration"]="underline")),Object.keys(t).length>0&&(e.htmlStyle=t)}}};function pc(e){return`--${"token"===e?"diffs-token":"diffs"}-`}const fc=/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i,gc=/^0(?:\.0+)?%?$/;function mc(e){const t=e.indexOf("(");if(t<=0||!e.endsWith(")"))return;const n=e.slice(0,t).trim();if(!/^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color)$/i.test(n))return;const r=e.slice(t+1,-1).trim();if(0===r.length)return;const o=r.lastIndexOf("/");if(-1!==o)return r.slice(o+1).trim();if(/^(?:rgba|hsla)$/i.test(n)){const e=r.split(",");if(4===e.length)return e[3]?.trim()}}function yc(e){const t=/^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})\b/i.exec(e.trim());if(null==t)return null;const n=t[1];let r,o=1;return 3===n.length?r=n.split("").map(e=>e+e).join(""):6===n.length?r=n:(r=n.slice(0,6),o=parseInt(n.slice(6,8),16)/255),[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16),o]}function bc(e){if(null==e)return null;const t=yc(e);if(null==t)return null;const n=t[0]/255,r=t[1]/255,o=t[2]/255,s=e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4;return.2126*s(n)+.7152*s(r)+.0722*s(o)}function wc(e){if(null==e)return!1;const t=e.trim().toLowerCase();if("transparent"===t)return!0;if(fc.test(t))return!0;const n=mc(t);return null!=n&&gc.test(n)}function kc(e,t,n){if(null==t||null==n)return!1;const r=bc(e),o=bc(t),s=bc(n);return null!=r&&null!=o&&null!=s&&Math.abs(r-s)<Math.abs(r-o)}const Cc=new WeakMap;function vc(e){const t=Cc.get(e);if(null!=t)return t;const n=e.colors??{},r=Object.assign({},n),o=n["editor.background"]??e.bg,s=n["editor.foreground"]??e.fg,i=n["sideBar.background"]??o,a=n["sideBar.foreground"]??s;xc(r,"editor.background",o),xc(r,"editor.foreground",s),xc(r,"sideBar.background",i),xc(r,"sideBar.foreground",a),xc(r,"input.background",n["input.background"]??i),xc(r,"sideBarSectionHeader.foreground",n["sideBarSectionHeader.foreground"]??a),xc(r,"list.activeSelectionForeground",n["list.activeSelectionForeground"]??a),xc(r,"gitDecoration.addedResourceForeground",Sc(n["gitDecoration.addedResourceForeground"],n["terminal.ansiGreen"],n["editorGutter.addedBackground"])),xc(r,"gitDecoration.modifiedResourceForeground",Sc(n["gitDecoration.modifiedResourceForeground"],n["terminal.ansiBlue"],n["editorGutter.modifiedBackground"])),xc(r,"gitDecoration.deletedResourceForeground",Sc(n["gitDecoration.deletedResourceForeground"],n["terminal.ansiRed"],n["editorGutter.deletedBackground"]));const l=(wc(n["list.focusOutline"])?void 0:n["list.focusOutline"])??(wc(n.focusBorder)?void 0:n.focusBorder);null!=l?r["list.focusOutline"]=l:delete r["list.focusOutline"];const c=n["list.hoverBackground"];var u,d;null!=c&&(u=c,null!=(d=i)&&u.toLowerCase()===d.toLowerCase()||kc(c,i,a))&&delete r["list.hoverBackground"];const h=Object.freeze(Object.assign({},e,{colors:Object.freeze(r)}));return Cc.set(e,h),h}function xc(e,t,n){null!=n&&""!==n&&(e[t]=n)}function Sc(...e){for(const t of e)if(null!=t&&""!==t)return t}function _c({theme:e=gl,highlighter:t,prefix:n}){let r="";if("string"==typeof e){const o=t.getTheme(e),s=vc(o);r+=`color:${s.fg};`,r+=`background-color:${s.bg};`,r+=`${pc("global")}fg:${s.fg};`,r+=`${pc("global")}bg:${s.bg};`,r+=Ac(o,n)}else{let n=t.getTheme(e.dark),o=vc(n);r+=`${pc("global")}dark:${o.fg};`,r+=`${pc("global")}dark-bg:${o.bg};`,r+=Ac(n,"dark"),n=t.getTheme(e.light),o=vc(n),r+=`${pc("global")}light:${o.fg};`,r+=`${pc("global")}light-bg:${o.bg};`,r+=Ac(n,"light")}return r}function Ac(e,t){t=null!=t?`${t}-`:"";let n="";const r=e.colors?.["gitDecoration.addedResourceForeground"]??e.colors?.["terminal.ansiGreen"];null!=r&&(n+=`${pc("global")}${t}addition-color:${r};`);const o=e.colors?.["gitDecoration.deletedResourceForeground"]??e.colors?.["terminal.ansiRed"];null!=o&&(n+=`${pc("global")}${t}deletion-color:${o};`);const s=e.colors?.["gitDecoration.modifiedResourceForeground"]??e.colors?.["terminal.ansiBlue"];return null!=s&&(n+=`${pc("global")}${t}modified-color:${s};`),n}function Ec(e){let t=e.children[0];for(;null!=t;){if("element"===t.type&&"code"===t.tagName)return t.children;t="children"in t?t.children[0]:null}throw console.error(e),new Error("getLineNodes: Unable to find children")}function Lc(e,t){return e-(0===t?0:1)}function Ic(e,t){return Lc(e,t)+t}function Nc({isPartial:e,rangeSize:t,expandedHunks:n,hunkIndex:r,collapsedContextThreshold:o}){const s=Math.max(t,0);if(0===s||e)return{fromStart:0,fromEnd:0,rangeSize:s,collapsedLines:s,renderAll:!1};if(!0===n||s<=o)return{fromStart:s,fromEnd:0,rangeSize:s,collapsedLines:0,renderAll:!0};const i=n?.get(r),a=Math.min(Math.max(i?.fromStart??0,0),s),l=Math.min(Math.max(i?.fromEnd??0,0),s),c=a+l,u=c>=s;return{fromStart:u?s:a,fromEnd:u?0:l,rangeSize:s,collapsedLines:Math.max(s-c,0),renderAll:u}}function Pc({fileDiff:e,errorPrefix:t}){const n=e.hunks[e.hunks.length-1];if(null==n||e.isPartial||0===e.additionLines.length||0===e.deletionLines.length)return 0;const r=e.additionLines.length-Ic(n.additionStart,n.additionCount),o=e.deletionLines.length-Ic(n.deletionStart,n.deletionCount);if(r<=0&&o<=0)return 0;if(r!==o)throw new Error(`${t}: trailing context mismatch (additions=${r}, deletions=${o}) for ${e.name}`);return Math.min(r,o)}function Oc({fileDiff:e,hunkIndex:t,expandedHunks:n,collapsedContextThreshold:r,errorPrefix:o}){if(t!==e.hunks.length-1)return;const s=Pc({fileDiff:e,errorPrefix:o});if(s<=0)return;if(!0===n||s<=r)return{fromStart:s,fromEnd:0,rangeSize:s,collapsedLines:0,renderAll:!0};const i=n?.get(e.hunks.length),a=Math.min(Math.max(i?.fromStart??0,0),s);return{fromStart:a,fromEnd:0,rangeSize:s,collapsedLines:s-a,renderAll:a>=s}}function Tc({diff:e,diffStyle:t,startingLine:n=0,totalLines:r=1/0,expandedHunks:o,collapsedContextThreshold:s=1,callback:i}){const a=$c({diff:e,diffStyle:t,startingLine:n,expandedHunks:o,collapsedContextThreshold:s}),l={viewportStart:n,viewportEnd:n+r,isWindowedHighlight:n>0||r<1/0,splitCount:a.splitCount,unifiedCount:a.unifiedCount,finalHunkIndex:e.hunks.length-1,shouldBreak(){if(!l.isWindowedHighlight)return!1;const e=l.unifiedCount>=n+r,o=l.splitCount>=n+r;return"unified"===t?e:("split"===t||e)&&o},shouldSkip(e,r){if(!l.isWindowedHighlight)return!1;const o=e>0&&l.unifiedCount+e<=n,s=r>0&&l.splitCount+r<=n;return"unified"===t?o:("split"===t||o)&&s},incrementCounts(e,n){"unified"!==t&&"both"!==t||(l.unifiedCount+=e),"split"!==t&&"both"!==t||(l.splitCount+=n)},isInWindow(e,n){if(!l.isWindowedHighlight)return!0;const r=l.isInUnifiedWindow(e),o=l.isInSplitWindow(n);return"unified"===t?r:"split"===t?o:r||o},isInUnifiedWindow:e=>!l.isWindowedHighlight||l.unifiedCount>=n-e&&l.unifiedCount<n+r,isInSplitWindow:e=>!l.isWindowedHighlight||l.splitCount>=n-e&&l.splitCount<n+r,emit:(e,n=!1)=>(n||("unified"===t?l.incrementCounts(1,0):"split"===t?l.incrementCounts(0,1):l.incrementCounts(1,1)),i(e)??!1)};e:for(let d=a.hunkIndex;d<e.hunks.length;d++){const h=e.hunks[d];if(null==h)throw new Error("iterateOverDiff: invalid hunk index");if(l.shouldBreak())break;const p=Lc(h.deletionStart,h.deletionCount),f=Lc(h.additionStart,h.additionCount),g=e.isPartial||0!==h.deletionCount?h.deletionLineIndex:p,m=e.isPartial||0!==h.additionCount?h.additionLineIndex:f,y=Nc({isPartial:e.isPartial,rangeSize:h.collapsedBefore,expandedHunks:o,hunkIndex:d,collapsedContextThreshold:s}),b=d===l.finalHunkIndex?Oc({fileDiff:e,hunkIndex:d,expandedHunks:o,collapsedContextThreshold:s,errorPrefix:"iterateOverDiff"}):void 0,w=y.fromStart+y.fromEnd;function c(e,n){return null==b||b.collapsedLines<=0||b.fromStart+b.fromEnd>0?0:"unified"===t?e===h.unifiedLineStart+h.unifiedLineCount-1?b.collapsedLines:0:n===h.splitLineStart+h.splitLineCount-1?b.collapsedLines:0}let k=0===y.collapsedLines;function u(){return k?0:(k=!0,y.collapsedLines)}if(l.shouldSkip(w,w))l.incrementCounts(w,w),u();else{let L=h.unifiedLineStart-y.rangeSize,I=h.splitLineStart-y.rangeSize,N=g-y.rangeSize,P=m-y.rangeSize,O=p+1-y.rangeSize,T=f+1-y.rangeSize;if(jc(l,y.fromStart,t,e=>l.emit({hunkIndex:d,hunk:h,collapsedBefore:0,collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:O+e,lineIndex:N+e,noEOFCR:!1,unifiedLineIndex:L+e,splitLineIndex:I+e},additionLine:{unifiedLineIndex:L+e,splitLineIndex:I+e,lineIndex:P+e,lineNumber:T+e,noEOFCR:!1}})))break e;if(L=h.unifiedLineStart-y.fromEnd,I=h.splitLineStart-y.fromEnd,N=g-y.fromEnd,P=m-y.fromEnd,O=p+1-y.fromEnd,T=f+1-y.fromEnd,jc(l,y.fromEnd,t,e=>l.emit({hunkIndex:d,hunk:h,collapsedBefore:u(),collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:O+e,lineIndex:N+e,noEOFCR:!1,unifiedLineIndex:L+e,splitLineIndex:I+e},additionLine:{unifiedLineIndex:L+e,splitLineIndex:I+e,lineIndex:P+e,lineNumber:T+e,noEOFCR:!1}}),()=>{u()}))break e}let C=h.unifiedLineStart,v=h.splitLineStart,x=g,S=m,_=p+1,A=f+1;const E=h.hunkContent.at(-1);for(const $ of h.hunkContent){if(l.shouldBreak())break e;const R=$===E;if("context"===$.type){if(l.shouldSkip($.lines,$.lines))l.incrementCounts($.lines,$.lines),u();else if(jc(l,$.lines,t,e=>{const t=R&&e===$.lines-1,n=C+e,r=v+e;return l.emit({hunkIndex:d,hunk:h,collapsedBefore:u(),collapsedAfter:c(n,r),type:"context",deletionLine:{lineNumber:_+e,lineIndex:x+e,noEOFCR:t&&h.noEOFCRDeletions,unifiedLineIndex:n,splitLineIndex:r},additionLine:{unifiedLineIndex:n,splitLineIndex:r,lineIndex:S+e,lineNumber:A+e,noEOFCR:t&&h.noEOFCRAdditions}})},()=>{u()}))break e;C+=$.lines,v+=$.lines,x+=$.lines,S+=$.lines,_+=$.lines,A+=$.lines}else{const M=Math.max($.deletions,$.additions),j=$.deletions+$.additions;if(!l.shouldSkip(j,M)){const D=Dc(l,$,t);(D[0]?.[0]??0)>0&&u();for(const[B,F]of D)for(let G=B;G<F;G++){const U=c(C+G,"unified"===t?v+(G<$.deletions?G:G-$.deletions):v+G);if(l.emit(Bc({hunkIndex:d,hunk:h,collapsedBefore:u(),collapsedAfter:U,diffStyle:t,index:G,unifiedLineIndex:C,splitLineIndex:v,additionLineIndex:S,deletionLineIndex:x,additionLineNumber:A,deletionLineNumber:_,content:$,isLastContent:R,unifiedCount:j,splitCount:M}),!0))break e}}u(),l.incrementCounts(j,M),C+=j,v+=M,x+=$.deletions,S+=$.additions,_+=$.deletions,A+=$.additions}}if(null!=b){const{collapsedLines:W,fromStart:z,fromEnd:q}=b,H=z+q;if(jc(l,H,t,t=>{const n=t===H-1;return l.emit({hunkIndex:e.hunks.length,hunk:void 0,collapsedBefore:0,collapsedAfter:n?W:0,type:"context-expanded",deletionLine:{lineNumber:_+t,lineIndex:x+t,noEOFCR:!1,unifiedLineIndex:C+t,splitLineIndex:v+t},additionLine:{unifiedLineIndex:C+t,splitLineIndex:v+t,lineIndex:S+t,lineNumber:A+t,noEOFCR:!1}})},void 0,()=>l.shouldBreak()))break e}}}function $c({diff:e,diffStyle:t,startingLine:n,expandedHunks:r,collapsedContextThreshold:o}){if(n<=0||"both"===t)return{hunkIndex:0,splitCount:0,unifiedCount:0};const s=Rc({diff:e,expandedHunks:r,collapsedContextThreshold:o});let i=0,a=e.hunks.length-1,l=e.hunks.length;for(;i<=a;){const e=i+a>>1,r=s[e+1];if(null==r)throw new Error("iterateOverDiff: invalid hunk prefix index");("unified"===t?r.unifiedCount:r.splitCount)>n?(l=e,a=e-1):i=e+1}if(l>=e.hunks.length){const t=s[e.hunks.length];if(null==t)throw new Error("iterateOverDiff: invalid terminal hunk prefix index");return{hunkIndex:e.hunks.length,splitCount:t.splitCount,unifiedCount:t.unifiedCount}}const c=s[l];if(null==c)throw new Error("iterateOverDiff: invalid selected hunk prefix index");return{hunkIndex:l,splitCount:c.splitCount,unifiedCount:c.unifiedCount}}function Rc({diff:e,expandedHunks:t,collapsedContextThreshold:n}){let r=0,o=0;const s=e.hunks.length-1,i=[{splitCount:0,unifiedCount:0}];for(let a=0;a<e.hunks.length;a++){const l=e.hunks[a];if(null==l)throw new Error("iterateOverDiff: invalid hunk summary index");const c=Nc({isPartial:e.isPartial,rangeSize:l.collapsedBefore,expandedHunks:t,hunkIndex:a,collapsedContextThreshold:n}),u=c.fromStart+c.fromEnd;r+=u+l.splitLineCount,o+=u+l.unifiedLineCount;const d=a===s?Oc({fileDiff:e,hunkIndex:a,expandedHunks:t,collapsedContextThreshold:n,errorPrefix:"iterateOverDiff"}):void 0;if(null!=d){const e=d.fromStart+d.fromEnd;r+=e,o+=e}i.push({splitCount:r,unifiedCount:o})}return i}function Mc(e,t,n){if(!e.isWindowedHighlight||t<=0)return[0,t];const r=[];function o(n){const o=Math.max(0,e.viewportStart-n),s=Math.min(t,e.viewportEnd-n);s>o&&r.push([o,s])}if("split"!==n&&o(e.unifiedCount),"unified"!==n&&o(e.splitCount),0===r.length)return[0,0];let s=r[0][0],i=r[0][1];for(let e=1;e<r.length;e++){const t=r[e];s=Math.min(s,t[0]),i=Math.max(i,t[1])}return[s,i]}function jc(e,t,n,r,o,s){const[i,a]=Mc(e,t,n);i>0&&(e.incrementCounts(i,i),o?.());let l=i;for(;l<t;){if(!0===s?.())return!0;if(l>=a){e.incrementCounts(t-l,t-l);break}if(e.isInWindow(0,0)){if(!0===r(l))return!0}else e.incrementCounts(1,1);l++}return!1}function Dc(e,t,n){if(!e.isWindowedHighlight)return[[0,"unified"===n?t.deletions+t.additions:Math.max(t.deletions,t.additions)]];const r="unified"!==n,o="unified"===n?"unified":"split",s=[];function i(t,n){if(t+n<=e.viewportStart||t>=e.viewportEnd)return;const r=Math.max(0,e.viewportStart-t),o=Math.min(n,e.viewportEnd-t);return o>r?[r,o]:void 0}function a(e,n){return"split"===o?e:"additions"===n?[e[0]+t.deletions,e[1]+t.deletions]:e}function l(e,t){if(null==e)return;const[n,r]=a(e,t);r>n&&s.push([n,r])}if("split"!==n&&(l(i(e.unifiedCount,t.deletions),"deletions"),l(i(e.unifiedCount+t.deletions,t.additions),"additions")),r&&(l(i(e.splitCount,t.deletions),"deletions"),l(i(e.splitCount,t.additions),"additions")),0===s.length)return s;s.sort((e,t)=>e[0]-t[0]);const c=[s[0]];for(const[e,t]of s.slice(1)){const n=c[c.length-1];e<=n[1]?n[1]=Math.max(n[1],t):c.push([e,t])}return c}function Bc({hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:r,diffStyle:o,index:s,unifiedLineIndex:i,splitLineIndex:a,additionLineIndex:l,deletionLineIndex:c,additionLineNumber:u,deletionLineNumber:d,content:h,isLastContent:p,unifiedCount:f,splitCount:g}){const m=s<h.deletions?i+s:void 0,y="unified"===o?s>=h.deletions?i+s:void 0:s<h.additions?i+h.deletions+s:void 0,b="unified"===o?a+(s<h.deletions?s:s-h.deletions):a+s,w=s<h.deletions?c+s:void 0,k=s<h.deletions?d+s:void 0,C="unified"===o?s>=h.deletions?l+(s-h.deletions):void 0:s<h.additions?l+s:void 0,v="unified"===o?s>=h.deletions?u+(s-h.deletions):void 0:s<h.additions?u+s:void 0,x="unified"===o?p&&s===h.deletions-1&&t.noEOFCRDeletions:p&&s===g-1&&t.noEOFCRDeletions,S="unified"===o?p&&s===f-1&&t.noEOFCRAdditions:p&&s===g-1&&t.noEOFCRAdditions,_=null!=w&&null!=k&&null!=m?{lineNumber:k,lineIndex:w,noEOFCR:x,unifiedLineIndex:m,splitLineIndex:b}:void 0,A=null!=C&&null!=v&&null!=y?{unifiedLineIndex:y,splitLineIndex:b,lineIndex:C,lineNumber:v,noEOFCR:S}:void 0;if(null==_&&null!=A)return{type:"change",hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:r,deletionLine:void 0,additionLine:A};if(null!=_&&null==A)return{type:"change",hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:r,deletionLine:_,additionLine:void 0};if(null==_||null==A)throw new Error("iterateOverDiff: missing change line data");return{type:"change",hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:r,deletionLine:_,additionLine:A}}function Fc({line:e,spanStart:t,spanLength:n}){return{start:{line:e,character:t},end:{line:e,character:t+n},properties:{"data-diff-span":""},alwaysWrap:!0}}function Gc({item:e,arr:t,enableJoin:n,isNeutral:r=!1,isLastItem:o=!1}){const s=t[t.length-1];if(null==s||o||!n)return void t.push([r?0:1,e.value]);const i=0===s[0];r===i||r&&1===e.value.length&&!i?s[1]+=e.value:t.push([r?0:1,e.value])}const Uc={forcePlainText:!1};function Wc(e,t,n,{forcePlainText:r,startingLine:o,totalLines:s,expandedHunks:i,collapsedContextThreshold:a=1}=Uc){r?(o??=0,s??=1/0):(o=0,s=1/0);const l=o>0||s<1/0,c="string"==typeof n.theme?t.getTheme(n.theme).type:void 0,u=_c({theme:n.theme,highlighter:t}),d=r&&!l&&(e.unifiedLineCount>1e3||e.splitLineCount>1e3)?"none":n.lineDiffType,h={deletionLines:[],additionLines:[]},{maxLineDiffLength:p}=n,f=!r&&!e.isPartial,g=r?i:void 0,m=new Map;function y(e){const t=f?0:e,n=m.get(t)??{deletionContent:{push(e){this.value+=e,this.length++},value:"",length:0},additionContent:{push(e){this.value+=e,this.length++},value:"",length:0},deletionInfo:[],additionInfo:[],deletionDecorations:[],additionDecorations:[],deletionSegments:[],additionSegments:[]};return m.set(t,n),n}function b(e,t,n,r){if(l){let e=n.at(-1);null!=e&&e.targetIndex+e.count===t||(e={targetIndex:t,originalOffset:r.length,count:0},n.push(e)),e.count++}r.push(e)}Tc({diff:e,diffStyle:"both",startingLine:o,totalLines:s,expandedHunks:!l||g,collapsedContextThreshold:a,callback:({hunkIndex:t,additionLine:n,deletionLine:r,type:o})=>{const s=y(t),i=null!=n?n.splitLineIndex:r.splitLineIndex;"change"===o&&null!=n&&null!=r&&qc({additionLine:e.additionLines[n.lineIndex],deletionLine:e.deletionLines[r.lineIndex],deletionLineIndex:s.deletionContent.length,additionLineIndex:s.additionContent.length,deletionDecorations:s.deletionDecorations,additionDecorations:s.additionDecorations,lineDiffType:d,maxLineDiffLength:p}),null!=r&&(b(e.deletionLines[r.lineIndex],r.lineIndex,s.deletionSegments,s.deletionContent),s.deletionInfo.push({type:"change"===o?"change-deletion":o,lineNumber:r.lineNumber,altLineNumber:"change"===o?void 0:n.lineNumber??void 0,lineIndex:`${r.unifiedLineIndex},${i}`})),null!=n&&(b(e.additionLines[n.lineIndex],n.lineIndex,s.additionSegments,s.additionContent),s.additionInfo.push({type:"change"===o?"change-addition":o,lineNumber:n.lineNumber,altLineNumber:"change"===o?void 0:r.lineNumber??void 0,lineIndex:`${n.unifiedLineIndex},${i}`}))}});for(const o of m.values()){if(0===o.deletionContent.length&&0===o.additionContent.length)continue;const s={name:e.prevName??e.name,contents:o.deletionContent.value},i={name:e.name,contents:o.additionContent.value},{deletionLines:a,additionLines:l}=Hc({deletionFile:s,deletionInfo:o.deletionInfo,deletionDecorations:o.deletionDecorations,additionFile:i,additionInfo:o.additionInfo,additionDecorations:o.additionDecorations,highlighter:t,options:n,languageOverride:r?"text":e.lang});if(f)h.deletionLines=a,h.additionLines=l;else{if(o.deletionSegments.length>0)for(const e of o.deletionSegments)for(let t=0;t<e.count;t++)h.deletionLines[e.targetIndex+t]=a[e.originalOffset+t];else Yl(h.deletionLines,a);if(o.additionSegments.length>0)for(const e of o.additionSegments)for(let t=0;t<e.count;t++)h.additionLines[e.targetIndex+t]=l[e.originalOffset+t];else Yl(h.additionLines,l)}}return{code:h,themeStyles:u,baseThemeType:c}}function zc(e,{deletionLineIndex:t,additionLineIndex:n,deletionDecorations:r,additionDecorations:o}){let s=0,i=0,a=-1,l=0,c=-1,u=0;for(const{value:t,added:n,removed:r}of e)r?(-1===a&&(a=s),s+=t.length,l=s):n?(-1===c&&(c=i),i+=t.length,u=i):(s+=t.length,i+=t.length);-1!==a&&r.push(Fc({line:t,spanStart:a,spanLength:l-a})),-1!==c&&o.push(Fc({line:n,spanStart:c,spanLength:u-c}))}function qc({deletionLine:e,additionLine:t,deletionLineIndex:n,additionLineIndex:r,deletionDecorations:o,additionDecorations:s,lineDiffType:i,maxLineDiffLength:a}){if(null==e||null==t||"none"===i)return;if(e=ec(e),t=ec(t),e.length>a||t.length>a)return;const l="char"===i?(c=e,u=t,Ol.diff(c,u,d)):Kl(e,t);var c,u,d;if("word-line"===i)return void zc(l,{deletionLineIndex:n,additionLineIndex:r,deletionDecorations:o,additionDecorations:s});const h=[],p=[],f="word-alt"===i,g=l.at(-1);for(const e of l){const t=e===g;e.added||e.removed?e.removed?Gc({item:e,arr:h,enableJoin:f,isLastItem:t}):Gc({item:e,arr:p,enableJoin:f,isLastItem:t}):(Gc({item:e,arr:h,enableJoin:f,isNeutral:!0,isLastItem:t}),Gc({item:e,arr:p,enableJoin:f,isNeutral:!0,isLastItem:t}))}let m=0;for(const e of h)1===e[0]&&o.push(Fc({line:n,spanStart:m,spanLength:e[1].length})),m+=e[1].length;m=0;for(const e of p)1===e[0]&&s.push(Fc({line:r,spanStart:m,spanLength:e[1].length})),m+=e[1].length}function Hc(e){let{deletionFile:t,additionFile:n,deletionInfo:r,additionInfo:o,highlighter:s,deletionDecorations:i,additionDecorations:a,languageOverride:l,options:{theme:c}}=e,u=g(e.options,b);const d=l??Ll(t.name),h=l??Ll(n.name),{state:p,transformers:f}=uc(u.useTokenTransformer),m="string"==typeof c?Object.assign({},u,{lang:"text",theme:c,transformers:f,decorations:void 0,defaultColor:!1,cssVariablePrefix:pc("token"),tokenizeTimeLimit:0}):Object.assign({},u,{lang:"text",themes:c,transformers:f,decorations:void 0,defaultColor:!1,cssVariablePrefix:pc("token"),tokenizeTimeLimit:0});return{deletionLines:""===t.contents?[]:(m.lang=d,p.lineInfo=r,m.decorations=i,Ec(s.codeToHast(ec(t.contents),m))),additionLines:""===n.contents?[]:(m.lang=h,m.decorations=a,p.lineInfo=o,Ec(s.codeToHast(ec(n.contents),m)))}}function Vc(e){const t=[0];let n=e.indexOf("\r"),r=e.indexOf("\n"),o=0,s=0;for(;-1!==n||-1!==r;){let i;if(-1!==n&&(-1===r||n<r)?r===n+1?(i=r+1,n=e.indexOf("\r",i),r=e.indexOf("\n",i)):(i=n+1,n=e.indexOf("\r",i)):(i=r+1,r=e.indexOf("\n",i)),t.push(i),4===++s){if(i-o<=40){for(let n=i;n<e.length;n++){const r=e.charCodeAt(n);10!==r&&13!==r||(13===r&&n+1<e.length&&10===e.charCodeAt(n+1)&&n++,t.push(n+1))}return t}o=i,s=0}}return t}function Xc(e){const t=Vc(e);return Array.from({length:t.length},(n,r)=>{const o=t[r],s=t[r+1]??e.length;return e.slice(o,s)})}const Kc={forcePlainText:!1};function Zc(e,t,{theme:n,tokenizeMaxLineLength:r,useTokenTransformer:o},{forcePlainText:s,startingLine:i,totalLines:a,lines:l}=Kc){s?(i??=0,a??=1/0):(i=0,a=1/0);const c=i>0||a<1/0,{state:u,transformers:d}=uc(o),h=s?"text":e.lang??Ll(e.name),p="string"==typeof n?t.getTheme(n).type:void 0,f=_c({theme:n,highlighter:t});u.lineInfo=e=>({type:"context",lineIndex:e-1+i,lineNumber:e+i});const g="string"==typeof n?{lang:h,theme:n,transformers:d,defaultColor:!1,cssVariablePrefix:pc("token"),tokenizeMaxLineLength:r,tokenizeTimeLimit:0}:{lang:h,themes:n,transformers:d,defaultColor:!1,cssVariablePrefix:pc("token"),tokenizeMaxLineLength:r,tokenizeTimeLimit:0},m=Ec(t.codeToHast((c?Jc(l??Xc(e.contents),i,a):e.contents).replace(/\r(?!\n)/g,"\n"),g));const y=c?new Array(i):m;return c&&Yl(y,m),{code:y,themeStyles:f,baseThemeType:p}}function Jc(e,t,n){if(0===e.length)return"";const r=Math.min(t+n,e.length);return e.slice(t,r).join("")}let Qc,Yc={theme:gl,useTokenTransformer:!1,tokenizeMaxLineLength:1e3,lineDiffType:"word-alt",maxLineDiffLength:1e3};const eu=/(?:)/;async function tu(e){try{switch(e.type){case"initialize":await nu(e);break;case"set-render-options":await ru(e);break;case"file":await ou(e);break;case"diff":await su(e);break;default:throw new Error(`Unknown request type: ${e.type}`)}}catch(t){console.error("Worker error:",t),uu(e.id,t)}finally{eu.exec("")}}async function nu({id:e,renderOptions:t,preferredHighlighter:n,resolvedThemes:r,resolvedLanguages:o,customExtensionsVersion:s,customExtensionMap:i}){let a=iu(n);"then"in a&&(a=await a),au({customExtensionsVersion:s,customExtensionMap:i}),Sl(r,a),null!=o&&bl(o,a),Yc=t,postMessage({type:"success",id:e,requestType:"initialize",sentAt:Date.now()})}async function ru({id:e,renderOptions:t,resolvedThemes:n}){let r=iu();"then"in r&&(r=await r),Sl(n,r),Yc=t,postMessage({type:"success",id:e,requestType:"set-render-options",sentAt:Date.now()})}async function ou({id:e,file:t,resolvedLanguages:n,customExtensionsVersion:r,customExtensionMap:o}){let s=iu();"then"in s&&(s=await s),au({customExtensionsVersion:r,customExtensionMap:o}),null!=n&&bl(n,s);const i={theme:Yc.theme,useTokenTransformer:Yc.useTokenTransformer,tokenizeMaxLineLength:Yc.tokenizeMaxLineLength};lu(e,Zc(t,s,i),i)}async function su({id:e,diff:t,resolvedLanguages:n,customExtensionsVersion:r,customExtensionMap:o}){let s=iu();"then"in s&&(s=await s),au({customExtensionsVersion:r,customExtensionMap:o}),null!=n&&bl(n,s),cu(e,Wc(t,s,Yc),Yc)}function iu(e="shiki-js"){return Qc??=fo({themes:[],langs:[],engine:"shiki-wasm"===e?hl(t(i[4])(i[3],i.paths)):Fa()}),Qc}function au({customExtensionsVersion:e,customExtensionMap:t}){if(null!=e||null!=t){if(null==e||null==t)throw new Error("Worker request must include both customExtensionsVersion and customExtensionMap");Nl(e,t)}}function lu(e,t,n){postMessage({type:"success",requestType:"file",id:e,result:t,options:n,sentAt:Date.now()})}function cu(e,t,n){postMessage({type:"success",requestType:"diff",id:e,result:t,options:n,sentAt:Date.now()})}function uu(e,t){const n={type:"error",id:e,error:t instanceof Error?t.message:String(t),stack:t instanceof Error?t.stack:void 0};postMessage(n)}self.addEventListener("error",e=>{console.error("[Shiki Worker] Unhandled error:",e.error)}),self.addEventListener("message",e=>{tu(e.data)})},1612,{"0":30,"1":31,"2":25,"3":1613,"4":1021,"paths":{"1613":"/_expo/static/js/web/wasm-B9ZqxnKj-98465696f727fee2761365a42cd495de.js"}});
|
|
59
|
-
__r(
|
|
58
|
+
`.replace(/\s+/g,""),"gsu");function ui(e){if(!new RegExp(`${li}\\+`).test(e))return{pattern:e};const t=[];let n,r=null,o=null,s="",i=0;for(ci.lastIndex=0;n=ci.exec(e);){const{0:a,index:l,groups:{qBase:c,qMod:u,invalidQ:d}}=n;if("["===a)i||(o=l),i++;else if("]"===a)i?i--:o=null;else if(!i)if("+"===u&&s&&!s.startsWith("(")){if(d)throw new Error(`Invalid quantifier "${a}"`);let t=-1;if(/^\{\d+\}$/.test(c))e=Ys(e,l+c.length,u,"");else{if(")"===s||"]"===s){const t=")"===s?r:o;if(null===t)throw new Error(`Invalid unmatched "${s}"`);e=`${e.slice(0,t)}(?>${e.slice(t,l)}${c})${e.slice(l+a.length)}`}else e=`${e.slice(0,l-s.length)}(?>${s}${c})${e.slice(l+a.length)}`;t+=4}ci.lastIndex+=t}else"("===a[0]?t.push(l):")"===a&&(r=t.length?t.pop():null);s=a}return{pattern:e}}const di=String.raw,hi=di`\(\?R=(?<rDepth>[^\)]+)\)|${di`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`}`,pi=di`\(\?<(?![=!])(?<captureName>[^>]+)>`,fi=di`${pi}|(?<unnamed>\()(?!\?)`,gi=new RegExp(di`${pi}|${hi}|\(\?|\\?.`,"gsu"),mi="Cannot use multiple overlapping recursions";function yi(e,t){const{hiddenCaptures:n,mode:r}=Object.assign({hiddenCaptures:[],mode:"plugin"},t);let o=t?.captureTransfers??new Map;if(!new RegExp(hi,"su").test(e))return{pattern:e,captureTransfers:o,hiddenCaptures:n};if("plugin"===r&&oi(e,di`\(\?\(DEFINE\)`,ei.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const s=[],i=oi(e,di`\\[1-9]`,ei.DEFAULT),a=new Map,l=[];let c,u=!1,d=0,h=0;for(gi.lastIndex=0;c=gi.exec(e);){const{0:t,groups:{captureName:p,rDepth:f,gRNameOrNum:g,gRDepth:m}}=c;if("["===t)d++;else if(d)"]"===t&&d--;else{if(f){if(bi(f),u)throw new Error(mi);if(i)throw new Error(("external"===r?"Backrefs":"Numbered backrefs")+" cannot be used with global recursion");const t=e.slice(0,c.index),a=e.slice(gi.lastIndex);if(oi(a,hi,ei.DEFAULT))throw new Error(mi);const l=+f-1;e=wi(t,a,l,!1,n,s,h),o=vi(o,t,l,s.length,0,h);break}if(g){bi(m);let d=!1;for(const e of l)if(e.name===g||e.num===+g){if(d=!0,e.hasRecursedWithin)throw new Error(mi);break}if(!d)throw new Error(di`Recursive \g cannot be used outside the referenced group "${"external"===r?g:di`\g<${g}&R=${m}>`}"`);const p=a.get(g),f=si(e,p);if(i&&oi(f,di`${pi}|\((?!\?)`,ei.DEFAULT))throw new Error(("external"===r?"Backrefs":"Numbered backrefs")+" cannot be used with recursion of capturing groups");const y=e.slice(p,c.index),b=f.slice(y.length+t.length),w=s.length,k=+m-1,C=wi(y,b,k,!0,n,s,h);o=vi(o,y,k,s.length-w,w,h),e=`${e.slice(0,p)}${C}${e.slice(p+f.length)}`,gi.lastIndex+=C.length-t.length-y.length-b.length,l.forEach(e=>e.hasRecursedWithin=!0),u=!0}else if(p)h++,a.set(String(h),gi.lastIndex),a.set(p,gi.lastIndex),l.push({num:h,name:p});else if("("===t[0]){const e="("===t;e&&(h++,a.set(String(h),gi.lastIndex)),l.push(e?{num:h}:{})}else")"===t&&l.pop()}}return n.push(...s),{pattern:e,captureTransfers:o,hiddenCaptures:n}}function bi(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)<2||e>100)throw new Error(t)}function wi(e,t,n,r,o,s,i){const a=new Set;r&&ni(e+t,pi,({groups:{captureName:e}})=>{a.add(e)},ei.DEFAULT);const l=[n,r?a:null,o,s,i];return`${e}${ki(`(?:${e}`,"forward",...l)}(?:)${ki(`${t})`,"backward",...l)}${t}`}function ki(e,t,n,r,o,s,i){const a=e=>"forward"===t?e+2:n-e+2-1;let l="";for(let t=0;t<n;t++){const n=a(t);l+=ti(e,di`${fi}|\\k<(?<backref>[^>]+)>`,({0:e,groups:{captureName:t,unnamed:a,backref:l}})=>{if(l&&r&&!r.has(l))return e;const c=`_$${n}`;if(a||t){const n=i+s.length+1;return s.push(n),Ci(o,n),a?e:`(?<${t}${c}>`}return di`\k<${l}${c}>`},ei.DEFAULT)}return l}function Ci(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function vi(e,t,n,r,o,s){if(e.size&&r){let i=0;ni(t,fi,()=>i++,ei.DEFAULT);const a=s-i+o,l=new Map;return e.forEach((e,t)=>{const o=(r-i*n)/n,s=i*n,c=t>a+i?t+r:t,u=[];for(const t of e)if(t<=a)u.push(t);else if(t>a+i+o)u.push(t+r);else if(t<=a+i)for(let e=0;e<=n;e++)u.push(t+i*e);else for(let e=0;e<=n;e++)u.push(t+s+o*e);l.set(c,u)}),l}return e}var xi=String.fromCodePoint,Si=String.raw,_i={},Ai=globalThis.RegExp;function Ei(e,{enable:t,disable:n}){return{dotAll:!(n?.dotAll||!t?.dotAll&&!e.dotAll),ignoreCase:!(n?.ignoreCase||!t?.ignoreCase&&!e.ignoreCase)}}function Li(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function Ii(e,t){return Pi[e]>=Pi[t]}function Ni(e,t){if(null==e)throw new Error(t??"Value expected");return e}_i.flagGroups=(()=>{try{new Ai("(?i:)")}catch{return!1}return!0})(),_i.unicodeSets=(()=>{try{new Ai("[[]]","v")}catch{return!1}return!0})(),_i.bugFlagVLiteralHyphenIsRange=!!_i.unicodeSets&&(()=>{try{new Ai(Si`[\d\-a]`,"v")}catch{return!0}return!1})(),_i.bugNestedClassIgnoresNegation=_i.unicodeSets&&new Ai("[[^a]]","v").test("a");var Pi={ES2025:2025,ES2024:2024,ES2018:2018},Oi={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Ti(e={}){if("[object Object]"!=={}.toString.call(e))throw new Error("Unexpected options");if(void 0!==e.target&&!Oi[e.target])throw new Error(`Unexpected target "${e.target}"`);const t=Object.assign({accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1},e,{rules:Object.assign({allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1},e.rules)});return"auto"===t.target&&(t.target=_i.flagGroups?"ES2025":_i.unicodeSets?"ES2024":"ES2018"),t}var $i=new Set([xi(304),xi(305)]),Ri=Si`[\p{L}\p{M}\p{N}\p{Pc}]`;function Mi(e){if($i.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),o=Fi.get(n),s=Di.get(n),i=Bi.get(n);return 1===[...r].length&&t.add(r),i&&t.add(i),o&&t.add(o),t.add(n),s&&t.add(s),[...t]}var ji=new Map("C Other\nCc Control cntrl\nCf Format\nCn Unassigned\nCo Private_Use\nCs Surrogate\nL Letter\nLC Cased_Letter\nLl Lowercase_Letter\nLm Modifier_Letter\nLo Other_Letter\nLt Titlecase_Letter\nLu Uppercase_Letter\nM Mark Combining_Mark\nMc Spacing_Mark\nMe Enclosing_Mark\nMn Nonspacing_Mark\nN Number\nNd Decimal_Number digit\nNl Letter_Number\nNo Other_Number\nP Punctuation punct\nPc Connector_Punctuation\nPd Dash_Punctuation\nPe Close_Punctuation\nPf Final_Punctuation\nPi Initial_Punctuation\nPo Other_Punctuation\nPs Open_Punctuation\nS Symbol\nSc Currency_Symbol\nSk Modifier_Symbol\nSm Math_Symbol\nSo Other_Symbol\nZ Separator\nZl Line_Separator\nZp Paragraph_Separator\nZs Space_Separator\nASCII\nASCII_Hex_Digit AHex\nAlphabetic Alpha\nAny\nAssigned\nBidi_Control Bidi_C\nBidi_Mirrored Bidi_M\nCase_Ignorable CI\nCased\nChanges_When_Casefolded CWCF\nChanges_When_Casemapped CWCM\nChanges_When_Lowercased CWL\nChanges_When_NFKC_Casefolded CWKCF\nChanges_When_Titlecased CWT\nChanges_When_Uppercased CWU\nDash\nDefault_Ignorable_Code_Point DI\nDeprecated Dep\nDiacritic Dia\nEmoji\nEmoji_Component EComp\nEmoji_Modifier EMod\nEmoji_Modifier_Base EBase\nEmoji_Presentation EPres\nExtended_Pictographic ExtPict\nExtender Ext\nGrapheme_Base Gr_Base\nGrapheme_Extend Gr_Ext\nHex_Digit Hex\nIDS_Binary_Operator IDSB\nIDS_Trinary_Operator IDST\nID_Continue IDC\nID_Start IDS\nIdeographic Ideo\nJoin_Control Join_C\nLogical_Order_Exception LOE\nLowercase Lower\nMath\nNoncharacter_Code_Point NChar\nPattern_Syntax Pat_Syn\nPattern_White_Space Pat_WS\nQuotation_Mark QMark\nRadical\nRegional_Indicator RI\nSentence_Terminal STerm\nSoft_Dotted SD\nTerminal_Punctuation Term\nUnified_Ideograph UIdeo\nUppercase Upper\nVariation_Selector VS\nWhite_Space space\nXID_Continue XIDC\nXID_Start XIDS".split(/\s/).map(e=>[qs(e),e])),Di=new Map([["s",xi(383)],[xi(383),"s"]]),Bi=new Map([[xi(223),xi(7838)],[xi(107),xi(8490)],[xi(229),xi(8491)],[xi(969),xi(8486)]]),Fi=new Map([Wi(453),Wi(456),Wi(459),Wi(498),...zi(8072,8079),...zi(8088,8095),...zi(8104,8111),Wi(8124),Wi(8140),Wi(8188)]),Gi=new Map([["alnum",Si`[\p{Alpha}\p{Nd}]`],["alpha",Si`\p{Alpha}`],["ascii",Si`\p{ASCII}`],["blank",Si`[\p{Zs}\t]`],["cntrl",Si`\p{Cc}`],["digit",Si`\p{Nd}`],["graph",Si`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",Si`\p{Lower}`],["print",Si`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",Si`[\p{P}\p{S}]`],["space",Si`\p{space}`],["upper",Si`\p{Upper}`],["word",Si`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",Si`\p{AHex}`]]);function Ui(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function Wi(e){const t=xi(e);return[t.toLowerCase(),t]}function zi(e,t){return Ui(e,t).map(e=>Wi(e))}var qi=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function Hi(e,t){const n=Object.assign({accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025"},t);Zi(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Ii(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};Xs(e,Vi,r);const o={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},s={currentFlags:o,prevFlags:null,globalFlags:o,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};return Xs(e,Xi,s),Xs(e,Ki,{groupsByName:s.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:s.reffedNodesByReferencer}),e._originMap=s.groupOriginByCopy,e._strategy=r.strategy,e}var Vi={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:o}=e;if("repeater"!==o)throw new Error("Unsupported absence function \"(?~|\"");{const e=Ns();e.body[0].body.push(Ps({negate:!0,body:r}),js("Any"));const o=Ns();o.body[0].body.push($s("greedy",0,1/0,e)),n(ga(o,t),{traverse:!0})}},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const o=e.body.filter(e=>"flags"===e.kind);for(let e=n+1;e<t.body.length;e++){Li(r,t.body[e],[]).push(...o)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){const n=ra(t.get(e));if(n){const t=Ns({flags:n});t.body[0].body=e.body,e.body=[ga(t,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:o,remove:s,replaceWith:i},a){const{kind:l,negate:c}=e,{asciiWordBoundaries:u,avoidSubclass:d,supportedGNodes:h,wordIsAscii:p}=a;if("text_segment_boundary"===l)throw new Error(`Unsupported text segment boundary "\\${c?"Y":"y"}"`);if("line_end"===l)i(ga(Ps({body:[ks({body:[Cs("string_end")]}),ks({body:[Ss(10)]})]}),t));else if("line_start"===l)i(ga(ha(Si`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if("search_start"===l)if(h.has(e))o.flags.sticky=!0,s();else{const e=r[n-1];if(e&&ca(e))i(ga(Ps({negate:!0}),t));else{if(d)throw new Error(Si`Uses "\G" in a way that requires a subclass`);i(fa(Cs("string_start"),t)),a.strategy="clip_search"}}else if("string_end"===l||"string_start"===l);else if("string_end_newline"===l)i(ga(ha(Si`(?=\n?\z)`),t));else{if("word_boundary"!==l)throw new Error(`Unexpected assertion kind "${l}"`);if(!p&&!u){i(ga(ha(c?`(?:(?<=${Ri})(?=${Ri})|(?<!${Ri})(?!${Ri}))`:`(?:(?<=${Ri})(?!${Ri})|(?<!${Ri})(?=${Ri}))`),t))}}},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;"string"!=typeof n||da(n)||(n=na(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!da(r)&&(r=na(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){"intersection"===t.kind&&n(ga(_s({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:o,digitIsAscii:s,spaceIsAscii:i,wordIsAscii:a}){const{kind:l,negate:c,value:u}=e;if(!s||"digit"!==l&&"digit"!==u)if(!i||"space"!==l&&"space"!==u)if(!a||"word"!==l&&"word"!==u)if("any"===l)n(fa(js("Any"),t));else if("digit"===l)n(fa(js("Nd",{negate:c}),t));else if("dot"===l);else if("text_segment"===l){if("strict"===r)throw new Error(Si`Use of "\X" requires non-strict accuracy`);const e="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",s=Si`\p{RI}{2}|${e}(?:\u200D${e})*`;n(ga(ha(Si`(?>\r\n|${o?Si`\p{RGI_Emoji}`:s}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if("hex"===l)n(fa(js("AHex",{negate:c}),t));else if("newline"===l)n(ga(ha(c?"[^\n]":"(?>\r\n?|[\n\v\f\x85\u2028\u2029])"),t));else if("posix"===l)if(o||"graph"!==u&&"print"!==u)n(ga(pa(ha(Gi.get(u)),c),t));else{if("strict"===r)throw new Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let e={graph:"!-~",print:" -~"}[u];c&&(e=`\0-${xi(e.codePointAt(0)-1)}${xi(e.codePointAt(2)+1)}-\udbff\udfff`),n(ga(ha(`[${e}]`),t))}else if("property"===l)ji.has(qs(u))||(e.key="sc");else if("space"===l)n(fa(js("space",{negate:c}),t));else{if("word"!==l)throw new Error(`Unexpected character set kind "${l}"`);n(ga(pa(ha(Ri),c),t))}else n(fa(Es("word",{negate:c}),t));else n(ga(pa(ha("[\t-\r ]"),c),t));else n(fa(Es("digit",{negate:c}),t))},Directive({node:e,parent:t,root:n,remove:r,replaceWith:o,removeAllPrevSiblings:s,removeAllNextSiblings:i}){const{kind:a,flags:l}=e;if("flags"===a)if(l.enable||l.disable){const e=Ns({flags:l});e.body[0].body=i(),o(ga(e,t),{traverse:!0})}else r();else{if("keep"!==a)throw new Error(`Unexpected directive kind "${a}"`);{const e=n.body[0],r=1===n.body.length&&as(e,{type:"Group"})&&1===e.body[0].body.length?e.body[0]:n;if(t.parent!==r||r.body.length>1)throw new Error(Si`Uses "\K" in a way that's unsupported`);const i=Ps({behind:!0});i.body[0].body=s(),o(ga(i,t))}}},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error("Unsupported flag \"P\"");if("word"===e.textSegmentMode)throw new Error("Unsupported flag \"y{w}\"");["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(t=>delete e[t]),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?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&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;"lookbehind"===n&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){const{kind:r}=e;if("fail"!==r)throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`);n(ga(Ps({negate:!0}),t))},Quantifier({node:e}){if("Quantifier"===e.body.type){const t=Ns();t.body[0].body.push(e.body),e.body=ga(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,o=!1;for(const t of e.body)if(1===t.body.length&&"search_start"===t.body[0].kind)t.body.pop();else{const e=ia(t.body);e?(r=!0,Array.isArray(e)?n.push(...e):n.push(e)):o=!0}r&&!o&&n.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if("strict"===t&&n&&r)throw new Error(Si`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;"string"!=typeof n||da(n)||(n=na(n,t),e.ref=n)}},Xi={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:o}=e;r||n.set(e,[...t.get(o).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:o,groupsByName:s,multiplexCapturesToLeftByRef:i,openRefs:a,reffedNodesByReferencer:l}){const c=o.get(e);if(c&&a.has(e.number)){const r=fa(ea(e.number),t);return l.set(r,a.get(e.number)),void n(r)}a.set(e.number,e),i.set(e.number,[]),e.name&&Li(i,e.name,[]);const u=i.get(e.name??e.number);for(let t=0;t<u.length;t++){const n=u[t];if(c===n.node||c&&c===n.origin||e===n.origin){u.splice(t,1);break}}if(i.get(e.number).push({node:e,origin:c}),e.name&&i.get(e.name).push({node:e,origin:c}),e.name){const t=Li(s,e.name,new Map);let n=!1;if(c)n=!0;else for(const e of t.values())if(!e.hasDuplicateNameToRemove){n=!0;break}s.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:n})}},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=Ei(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){const{isRecursive:o,ref:s}=e;if(o){let n=t;for(;(n=n.parent)&&("CapturingGroup"!==n.type||n.name!==s&&n.number!==s););return void r.reffedNodesByReferencer.set(e,n)}const i=r.subroutineRefMap.get(s),a=0===s,l=a?ea(0):Yi(i,r.groupOriginByCopy,null);let c=l;if(!a){const e=ra(ta(i,e=>"Group"===e.type&&!!e.flags)),t=e?Ei(r.globalFlags,e):r.globalFlags;Ji(t,r.currentFlags)||(c=Ns({flags:oa(t)}),c.body[0].body.push(l))}n(ga(c,t),{traverse:!a})}},Ki={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan)return void(r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref));const o=r.reffedNodesByReferencer.get(e).filter(t=>Qi(t,e));o.length?o.length>1?n(ga(Ns({atomic:!0,body:o.reverse().map(e=>ks({body:[vs(e.number)]}))}),t)):e.ref=o[0].number:n(ga(Ps({negate:!0}),t))},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 t=0;t<n;t++){const t=xs();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){e.isRecursive&&0!==e.ref&&(e.ref=t.reffedNodesByReferencer.get(e).number)}};function Zi(e){Xs(e,{"*"({node:e,parent:t}){e.parent=t}})}function Ji(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function Qi(e,t){let n=t;do{if("Regex"===n.type)return!1;if("Alternative"===n.type)continue;if(n===e)return!1;const t=sa(n.parent);for(const r of t){if(r===n)break;if(r===e||aa(r,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function Yi(e,t,n,r){const o=Array.isArray(e)?[]:{};for(const[s,i]of Object.entries(e))"parent"===s?o.parent=Array.isArray(n)?r:n:i&&"object"==typeof i?o[s]=Yi(i,t,o,n):("type"===s&&"CapturingGroup"===i&&t.set(o,t.get(e)??e),o[s]=i);return o}function ea(e){const t=Ms(e);return t.isRecursive=!0,t}function ta(e,t){const n=[];for(;e=e.parent;)t&&!t(e)||n.push(e);return n}function na(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/gu,"_")}`;return t.set(e,n),n}function ra(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete n.disable[t],n.enable[t]=!0),e.disable?.[t]&&(n.disable[t]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function oa({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 sa(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function ia(e){const t=e.find(e=>"search_start"===e.kind||ua(e,{negate:!1})||!la(e));if(!t)return null;if("search_start"===t.kind)return t;if("LookaroundAssertion"===t.type)return t.body[0].body[0];if("CapturingGroup"===t.type||"Group"===t.type){const e=[];for(const n of t.body){const t=ia(n.body);if(!t)return null;Array.isArray(t)?e.push(...t):e.push(t)}return e}return null}function aa(e,t){const n=sa(e)??[];for(const e of n)if(e===t||aa(e,t))return!0;return!1}function la({type:e}){return"Assertion"===e||"Directive"===e||"LookaroundAssertion"===e}function ca(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||"Quantifier"===e.type&&e.min&&t.includes(e.body.type)}function ua(e,t){const n=Object.assign({negate:null},t);return"LookaroundAssertion"===e.type&&(null===n.negate||e.negate===n.negate)&&1===e.body.length&&as(e.body[0],{type:"Assertion",kind:"search_start"})}function da(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function ha(e,t){const n=us(e,Object.assign({},t,{unicodePropertyMap:ji})).body;return n.length>1||n[0].body.length>1?Ns({body:n}):n[0].body[0]}function pa(e,t){return e.negate=t,e}function fa(e,t){return e.parent=t,e}function ga(e,t){return Zi(e),e.parent=t,e}function ma(e,t){const n=Ti(t),r=Ii(n.target,"ES2024"),o=Ii(n.target,"ES2025"),s=n.rules.recursionLimit;if(!Number.isInteger(s)||s<2||s>20)throw new Error("Invalid recursionLimit; use 2-20");let i=null,a=null;if(!o){const t=[e.flags.ignoreCase];Xs(e,ya,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?i=!0:a=!0}})}const l={dotAll:e.flags.dotAll,ignoreCase:!(!e.flags.ignoreCase&&!i||a)};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:s,useAppliedIgnoreCase:!(o||!i||!a),useFlagMods:o,useFlagV:r,verbose:n.verbose};function d(e){return u.lastNode=c,c=e,Ni(ba[e.type],`Unexpected node type "${e.type}"`)(e,u,d)}const h={pattern:e.body.map(d).join("|"),flags:d(e.flags),options:Object.assign({},e.options)};return r||(delete h.options.force.v,h.options.disable.v=!0,h.options.unicodeSetsPlugin=null),h._captureTransfers=new Map,h._hiddenCaptures=[],u.captureMap.forEach((e,t)=>{e.hidden&&h._hiddenCaptures.push(t),e.transferTo&&Li(h._captureTransfers,e.transferTo,[]).push(t)}),h}var ya={"*":{enter({node:e},t){if(Na(e)){const n=t.getCurrentModI();t.pushModI(e.flags?Ei({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){Na(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){Sa(xi(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),_a(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){"property"===e.kind&&qi.has(e.value)&&t.setHasCasedChar()}},ba={Alternative:({body:e},t,n)=>e.map(n).join(""),Assertion({kind:e,negate:t}){if("string_end"===e)return"$";if("string_start"===e)return"^";if("word_boundary"===e)return t?Si`\B`:Si`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if("number"!=typeof e)throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&"strict"===t.accuracy&&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:s}=e,i={ignoreCase:t.currentFlags.ignoreCase},a=t.originMap.get(e);return a&&(i.hidden=!0,s>a.number&&(i.transferTo=a.number)),t.captureMap.set(s,i),`(${o?`?<${o}>`:""}${r.map(n).join("|")})`},Character({value:e},t){const n=xi(e),r=Aa(e,{escDigit:"Backreference"===t.lastNode.type,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Sa(n)){const e=Mi(n);return t.inCharClass?e.join(""):e.length>1?`[${e.join("")}]`:e[0]}return n},CharacterClass(e,t,n){const{kind:r,negate:o,parent:s}=e;let{body:i}=e;if("intersection"===r&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");_i.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(Pa)&&(i=[Ss(45),...i.filter(e=>!Pa(e))]);const a=()=>`[${o?"^":""}${i.map(n).join("intersection"===r?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||_i.bugNestedClassIgnoresNegation)&&!o){const t=i.filter(e=>"CharacterClass"===e.type&&"union"===e.kind&&e.negate);if(t.length){const r=Ns(),o=r.body[0];return r.parent=s,o.parent=r,i=i.filter(e=>!t.includes(e)),e.body=i,i.length?(e.parent=o,o.body.push(e)):r.body.pop(),t.forEach(e=>{const t=ks({body:[e]});e.parent=t,t.parent=r,r.body.push(t)}),n(r)}}t.inCharClass=!0;const r=a();return t.inCharClass=!1,r}const l=i[0];if("union"===r&&!o&&l&&((!t.useFlagV||!t.verbose)&&"union"===s.kind&&(!_i.bugFlagVLiteralHyphenIsRange||!t.useFlagV)||!t.verbose&&"intersection"===s.kind&&1===i.length&&"CharacterClassRange"!==l.type))return i.map(n).join("");if(!t.useFlagV&&"CharacterClass"===s.type)throw new Error("Uses nested character class in a way that requires min target ES2024");return a()},CharacterClassRange(e,t){const n=e.min.value,r=e.max.value,o={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},s=Aa(n,o),i=Aa(r,o),a=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Ea(_a(e)).forEach(e=>{a.add(Array.isArray(e)?`${Aa(e[0],o)}-${Aa(e[1],o)}`:Aa(e,o))}),`${s}-${i}${[...a].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},o){if("dot"===e)return o.currentFlags.dotAll?o.appliedGlobalFlags.dotAll||o.useFlagMods?".":"[^]":Si`[^\n]`;if("digit"===e)return t?Si`\D`:Si`\d`;if("property"===e){if(o.useAppliedIgnoreCase&&o.currentFlags.ignoreCase&&qi.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?Si`\P`:Si`\p`}{${r?`${r}=`:""}${n}}`}if("word"===e)return t?Si`\W`:Si`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags:(e,t)=>(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":""),Group({atomic:e,body:t,flags:n,parent:r},o,s){const i=o.currentFlags;n&&(o.currentFlags=Ei(i,n));const a=t.map(s).join("|"),l=o.verbose||1!==t.length||"Quantifier"===r.type||e||o.useFlagMods&&n?`(?${La(e,n,o.useFlagMods)}${a})`:a;return o.currentFlags=i,l},LookaroundAssertion:({body:e,kind:t,negate:n},r,o)=>`(?${"lookahead"===t?"":"<"}${n?"!":"="}${e.map(o).join("|")})`,Quantifier:(e,t,n)=>n(e.body)+Ia(e),Subroutine({isRecursive:e,ref:t},n){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const r=n.recursionLimit;return 0===t?`(?R=${r})`:Si`\g<${t}&R=${r}>`}},wa=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),ka=new Set(["-","\\","]","^","["]),Ca=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),va=new Map([[9,Si`\t`],[10,Si`\n`],[11,Si`\v`],[12,Si`\f`],[13,Si`\r`],[8232,Si`\u2028`],[8233,Si`\u2029`],[65279,Si`\uFEFF`]]),xa=/^\p{Cased}$/u;function Sa(e){return xa.test(e)}function _a(e,t){const n=!!t?.firstOnly,r=e.min.value,o=e.max.value,s=[];if(r<65&&(65535===o||o>=131071)||65536===r&&o>=131071)return s;for(let e=r;e<=o;e++){const t=xi(e);if(!Sa(t))continue;const i=Mi(t).filter(e=>{const t=e.codePointAt(0);return t<r||t>o});if(i.length&&(s.push(...i),n))break}return s}function Aa(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(va.has(e))return va.get(e);if(e<32||e>126&&e<160||e>262143||t&&((o=e)>47&&o<58))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;var o;const s=n?r?Ca:ka:wa,i=xi(e);return(s.has(i)?"\\":"")+i}function Ea(e){const t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),n=[];let r=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?r??=t[e]:null===r?n.push(t[e]):(n.push([r,t[e]]),r=null);return n}function La(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:e,disable:n}=t;r=(e?.ignoreCase?"i":"")+(e?.dotAll?"s":"")+(n?"-":"")+(n?.ignoreCase?"i":"")+(n?.dotAll?"s":"")}return`${r}:`}function Ia({kind:e,max:t,min:n}){let r;return r=n||1!==t?n||t!==1/0?1===n&&t===1/0?"+":n===t?`{${n}}`:`{${n},${t===1/0?"":t}}`:"*":"?",r+{greedy:"",lazy:"?",possessive:"+"}[e]}function Na({type:e}){return"CapturingGroup"===e||"Group"===e||"LookaroundAssertion"===e}function Pa({type:e,value:t}){return"Character"===e&&45===t}var Oa=(a=f("captureMap"),l=f("compiled"),c=f("pattern"),u=f("nameMap"),d=f("strategy"),h=f("execCore"),class e extends RegExp{get source(){return p(this,c)[c]||"(?:)"}constructor(t,n,r){const o=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw new Error("Cannot provide options when copying a regexp");const o=t;super(o,n),Object.defineProperty(this,h,{value:Ta}),Object.defineProperty(this,a,{writable:!0,value:new Map}),Object.defineProperty(this,l,{writable:!0,value:null}),Object.defineProperty(this,c,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:null}),Object.defineProperty(this,d,{writable:!0,value:null}),this.rawOptions={},p(this,c)[c]=o.source,o instanceof e&&(p(this,a)[a]=p(o,a)[a],p(this,u)[u]=p(o,u)[u],p(this,d)[d]=p(o,d)[d],this.rawOptions=o.rawOptions)}else{const e=Object.assign({hiddenCaptures:[],strategy:null,transfers:[]},r);super(o?"":t,n),Object.defineProperty(this,h,{value:Ta}),Object.defineProperty(this,a,{writable:!0,value:new Map}),Object.defineProperty(this,l,{writable:!0,value:null}),Object.defineProperty(this,c,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:null}),Object.defineProperty(this,d,{writable:!0,value:null}),this.rawOptions={},p(this,c)[c]=t,p(this,a)[a]=Ra(e.hiddenCaptures,e.transfers),p(this,d)[d]=e.strategy,this.rawOptions=r??{}}o||(p(this,l)[l]=this)}exec(t){if(!p(this,l)[l]){const t=this.rawOptions,n=g(t,y);p(this,l)[l]=new e(p(this,c)[c],this.flags,n)}const n=this.global||this.sticky,r=this.lastIndex;if("clip_search"===p(this,d)[d]&&n&&r){this.lastIndex=0;const e=p(this,h)[h](t.slice(r));return e&&($a(e,r,t,this.hasIndices),this.lastIndex+=r),e}return p(this,h)[h](t)}});function Ta(e){p(this,l)[l].lastIndex=this.lastIndex;const t=RegExp.prototype.exec.call(p(this,l)[l],e);if(this.lastIndex=p(this,l)[l].lastIndex,!t||!p(this,a)[a].size)return t;const n=[...t];let r;t.length=1,this.hasIndices&&(r=[...t.indices],t.indices.length=1);const o=[0];for(let e=1;e<n.length;e++){const{hidden:s,transferTo:i}=p(this,a)[a].get(e)??{};if(s?o.push(null):(o.push(t.length),t.push(n[e]),this.hasIndices&&t.indices.push(r[e])),i&&void 0!==n[e]){const s=o[i];if(!s)throw new Error(`Invalid capture transfer to "${s}"`);if(t[s]=n[e],this.hasIndices&&(t.indices[s]=r[e]),t.groups){p(this,u)[u]||(p(this,u)[u]=Ma(this.source));const o=p(this,u)[u].get(i);o&&(t.groups[o]=n[e],this.hasIndices&&(t.indices.groups[o]=r[e]))}}}return t}function $a(e,t,n,r){if(e.index+=t,e.input=n,r){const n=e.indices;for(let e=0;e<n.length;e++){const r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])}const r=n.groups;r&&Object.keys(r).forEach(e=>{const n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])})}}function Ra(e,t){const n=new Map;for(const t of e)n.set(t,{hidden:!0});for(const[e,r]of t)for(const t of r)Li(n,t,{}).transferTo=e;return n}function Ma(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r,o=0,s=0;for(;r=t.exec(e);){const{0:e,groups:{capture:t,name:i}}=r;"["===e?o++:o?"]"===e&&o--:t&&(s++,i&&n.set(s,i))}return n}function ja(e,t){const n=Da(e,t);return n.options?new Oa(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function Da(e,t){const n=Ti(t),r=Hi(us(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:ji}),{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=ma(r,n),s=yi(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),i=ai(ui(s.pattern).pattern,{captureTransfers:s.captureTransfers,hiddenCaptures:s.hiddenCaptures}),a={pattern:i.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const e=i.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(i.captureTransfers),o=r._strategy,s=a.pattern.length>=n.lazyCompileLength;(e.length||t.length||o||s)&&(a.options=Object.assign({},e.length&&{hiddenCaptures:e},t.length&&{transfers:t},o&&{strategy:o},s&&{lazyCompile:s}))}return a}function Ba(e,t){return ja(e,Object.assign({global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0}},t))}function Fa(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=e=>Ba(e,{target:t.target}),{createScanner:e=>new mo(e,t),createString:e=>({content:e})}}var Ga=k({createOnigurumaEngine:()=>hl,getDefaultWasmLoader:()=>dl,loadWasm:()=>al,setDefaultWasmLoader:()=>ul}),Ua=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Wa(){return"undefined"!=typeof performance?performance.now():Date.now()}const za=(e,t)=>e+(t-e%t)%t;async function qa(e){let t,n;const r={};function o(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function s(e){try{return t.grow(e-n.byteLength+65535>>>16),o(t.buffer),1}catch{}}const i="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function a(e,t,n=1024){const r=t+n;let o=t;for(;e[o]&&!(o>=r);)++o;if(o-t>16&&e.buffer&&i)return i.decode(e.subarray(t,o));let s="";for(;t<o;){let n=e[t++];if(!(128&n)){s+=String.fromCharCode(n);continue}const r=63&e[t++];if(192==(224&n)){s+=String.fromCharCode((31&n)<<6|r);continue}const o=63&e[t++];if(n=224==(240&n)?(15&n)<<12|r<<6|o:(7&n)<<18|r<<12|o<<6|63&e[t++],n<65536)s+=String.fromCharCode(n);else{const e=n-65536;s+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return s}function l(e,t){return e?a(r.HEAPU8,e,t):""}const c={emscripten_get_now:Wa,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){const t=r.HEAPU8.length,n=2147483648;if((e>>>=0)>n)return!1;for(let r=1;r<=4;r*=2){let o=t*(1+.2/r);if(o=Math.min(o,e+100663296),s(Math.min(n,za(Math.max(e,o),65536))))return!0}return!1},fd_write:()=>0};return await(async function(){const n=await e({env:c,wasi_snapshot_preview1:c});t=n.memory,o(t.buffer),Object.assign(r,n),r.UTF8ToString=l})(),r}var Ha=Object.defineProperty,Va=(e,t,n)=>t in e?Ha(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xa=(e,t,n)=>Va(e,"symbol"!=typeof t?t+"":t,n);let Ka=null;function Za(e){throw new Ua(e.UTF8ToString(e.getLastOnigError()))}var Ja=class e{constructor(t){Xa(this,"utf16Length"),Xa(this,"utf8Length"),Xa(this,"utf16Value"),Xa(this,"utf8Value"),Xa(this,"utf16OffsetToUtf8"),Xa(this,"utf8OffsetToUtf16");const n=t.length,r=e._utf8ByteLength(t),o=r!==n,s=o?new Uint32Array(n+1):null;o&&(s[n]=r);const i=o?new Uint32Array(r+1):null;o&&(i[r]=n);const a=new Uint8Array(r);let l=0;for(let e=0;e<n;e++){const r=t.charCodeAt(e);let c=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){const n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(c=65536+(r-55296<<10)|n-56320,u=!0)}o&&(s[e]=l,u&&(s[e+1]=l),c<=127?i[l+0]=e:c<=2047?(i[l+0]=e,i[l+1]=e):c<=65535?(i[l+0]=e,i[l+1]=e,i[l+2]=e):(i[l+0]=e,i[l+1]=e,i[l+2]=e,i[l+3]=e)),c<=127?a[l++]=c:c<=2047?(a[l++]=192|(1984&c)>>>6,a[l++]=128|(63&c)>>>0):c<=65535?(a[l++]=224|(61440&c)>>>12,a[l++]=128|(4032&c)>>>6,a[l++]=128|(63&c)>>>0):(a[l++]=240|(1835008&c)>>>18,a[l++]=128|(258048&c)>>>12,a[l++]=128|(4032&c)>>>6,a[l++]=128|(63&c)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=a,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=i}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){const o=e.charCodeAt(n);let s=o,i=!1;if(o>=55296&&o<=56319&&n+1<r){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(s=65536+(o-55296<<10)|t-56320,i=!0)}t+=s<=127?1:s<=2047?2:s<=65535?3:4,i&&n++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}};const Qa=class e{constructor(t){if(Xa(this,"id",++e.LAST_ID),Xa(this,"_onigBinding"),Xa(this,"content"),Xa(this,"utf16Length"),Xa(this,"utf8Length"),Xa(this,"utf16OffsetToUtf8"),Xa(this,"utf8OffsetToUtf16"),Xa(this,"ptr"),!Ka)throw new Ua("Must invoke loadWasm first.");this._onigBinding=Ka,this.content=t;const n=new Ja(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=Ka.omalloc(1e4)),e._sharedPtrInUse=!0,Ka.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(Ka)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Xa(Qa,"LAST_ID",0),Xa(Qa,"_sharedPtr",0),Xa(Qa,"_sharedPtrInUse",!1);let Ya=Qa;var el=class{constructor(e){if(Xa(this,"_onigBinding"),Xa(this,"_ptr"),!Ka)throw new Ua("Must invoke loadWasm first.");const t=[],n=[];for(let r=0,o=e.length;r<o;r++){const o=new Ja(e[r]);t[r]=o.createString(Ka),n[r]=o.utf8Length}const r=Ka.omalloc(4*e.length);Ka.HEAPU32.set(t,r/4);const o=Ka.omalloc(4*e.length);Ka.HEAPU32.set(n,o/4);const s=Ka.createOnigScanner(r,o,e.length);for(let n=0,r=e.length;n<r;n++)Ka.ofree(t[n]);Ka.ofree(o),Ka.ofree(r),0===s&&Za(Ka),this._onigBinding=Ka,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new Ya(e);const n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===s)return null;const i=o.HEAPU32;let a=s/4;const l=i[a++],c=i[a++],u=[];for(let t=0;t<c;t++){const n=e.convertUtf8OffsetToUtf16(i[a++]),r=e.convertUtf8OffsetToUtf16(i[a++]);u[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:u}}};function tl(e){return"function"==typeof e.default}function nl(e){return void 0!==e.data}function rl(e){return"undefined"!=typeof Response&&e instanceof Response}function ol(e){return"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||"undefined"!=typeof Buffer&&Buffer.isBuffer?.(e)||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&e instanceof Uint32Array}let sl,il;function al(e){if(sl)return sl;return sl=(async function(){Ka=await qa(async t=>{let n=e;var r;return n=await n,"function"==typeof n&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator?n=await n.instantiator(t):tl(n)?n=await n.default(t):(nl(n)&&(n=n.data),rl(n)?n="function"==typeof WebAssembly.instantiateStreaming?await(r=n,e=>WebAssembly.instantiateStreaming(r,e))(t):await cl(n)(t):ol(n)||n instanceof WebAssembly.Module?n=await ll(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await ll(n.default)(t))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})})(),sl}function ll(e){return t=>WebAssembly.instantiate(e,t)}function cl(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}function ul(e){il=e}function dl(){return il}async function hl(e){return e&&await al(e),{createScanner:e=>new el(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new Ya(e)}}var pl,fl;A(_({}),pl=Ga,"default"),fl&&A(fl,pl,"default"),(()=>{try{return!1}catch{return!1}})();const gl={dark:"pierre-dark",light:"pierre-light"};Object.freeze({fromStart:0,fromEnd:0});const ml=new Map,yl=new Set;function bl(e,t){e=Array.isArray(e)?e:[e];for(const n of e){if(yl.has(n.name))continue;let e=ml.get(n.name);null==e&&(e=n,ml.set(n.name,e));const r=e.data.find(t=>t.name===e.name||!0===t.aliases?.includes(e.name));if(null==r)throw new Error(`attachResolvedLanguages: No returned grammar declares "${e.name}" as its name or an alias.`);t.loadLanguageSync(e.data);try{t.getLanguage(e.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${e.name}". Load the alias first or give the grammar a unique name.`)}yl.add(e.name)}}const wl=new Set;var kl=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name="DuplicateThemeError"}},Cl=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name="UnregisteredThemeError"}},vl=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name="UnresolvedThemeError"}};const xl=(function(){const e=new Map,t=new Map,n=new Map;let r=0;function o(o){const s=t.get(o);if(void 0!==s)return Promise.resolve(s);const i=n.get(o);if(void 0!==i)return i;const a=e.get(o);if(void 0===a)return Promise.reject(new Cl(o));const l=r,c=a().then(e=>{const s=null!==(i=e)&&"object"==typeof i&&"default"in i?i.default:i;var i;return l===r&&t.set(o,s),n.get(o)===c&&n.delete(o),s}).catch(e=>{throw n.get(o)===c&&n.delete(o),e});return n.set(o,c),c}function s(e,n){t.set(e,n)}return{clearResolvedThemes:function(){r++,t.clear(),n.clear()},getResolvedOrResolveTheme:function(e){const n=t.get(e);return void 0!==n?n:o(e)},getResolvedTheme:function(e){return t.get(e)},getResolvedThemes:function(e){const n=[];for(const r of e){const e=t.get(r);if(void 0===e)throw new vl(r);n.push(e)}return n},hasRegisteredTheme:function(t){return e.has(t)},hasResolvedTheme:function(e){return t.has(e)},hasResolvedThemes:function(e){for(const n of e)if(!t.has(n))return!1;return!0},registerTheme:function(t,n){if(e.has(t))throw new kl(t);e.set(t,n)},registerThemeIfAbsent:function(t,n){return!e.has(t)&&(e.set(t,n),!0)},resolveTheme:o,resolveThemes:function(e){return Promise.all(e.map(e=>o(e)))},seedResolvedTheme:s,seedResolvedThemes:function(e){for(const[t,n]of e)s(t,n)}}})();function Sl(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let e;if("string"==typeof n){if(e=xl.getResolvedTheme(n),null==e)throw new Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else e=n,n=n.name,null==xl.getResolvedTheme(n)&&xl.seedResolvedTheme(n,e);wl.has(n)||(wl.add(n),t.loadThemeSync(e))}}const _l=new Map;let Al=0;const El={"1c":"1c",abap:"abap",as:"actionscript-3",ada:"ada",adb:"ada",ads:"ada",adoc:"asciidoc",asciidoc:"asciidoc","component.html":"angular-html","component.ts":"angular-ts",conf:"nginx",htaccess:"apache",cls:"tex",trigger:"apex",apl:"apl",applescript:"applescript",scpt:"applescript",ara:"ara",asm:"asm",s:"riscv",astro:"astro",awk:"awk",bal:"ballerina",sh:"zsh",bash:"zsh",bat:"cmd",cmd:"cmd",be:"berry",beancount:"beancount",bib:"bibtex",bicep:"bicep","blade.php":"blade",bsl:"bsl",c:"c",h:"objective-cpp",cs:"csharp",cpp:"cpp",hpp:"cpp",cc:"cpp",cxx:"cpp",hh:"cpp",cdc:"cdc",cairo:"cairo",clar:"clarity",clj:"clojure",cljs:"clojure",cljc:"clojure",soy:"soy",cmake:"cmake","CMakeLists.txt":"cmake",cob:"cobol",cbl:"cobol",cobol:"cobol",CODEOWNERS:"codeowners",ql:"ql",coffee:"coffeescript",lisp:"lisp",cl:"lisp",lsp:"lisp",log:"log",v:"verilog",cql:"cql",cr:"crystal",css:"css",csv:"csv",cue:"cue",cypher:"cypher",cyp:"cypher",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",patch:"diff",Dockerfile:"dockerfile",dockerfile:"dockerfile",env:"dotenv",dm:"dream-maker",edge:"edge",el:"emacs-lisp",ex:"elixir",exs:"elixir",elm:"elm",erb:"erb",erl:"erlang",hrl:"erlang",f:"fortran-fixed-form",for:"fortran-fixed-form",fs:"fsharp",fsi:"fsharp",fsx:"fsharp",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"fortran-free-form",f95:"fortran-free-form",fnl:"fennel",fish:"fish",ftl:"ftl",tres:"gdresource",res:"gdresource",gd:"gdscript",gdshader:"gdshader",gs:"genie",feature:"gherkin",COMMIT_EDITMSG:"git-commit","git-rebase-todo":"git-rebase",gjs:"glimmer-js",gleam:"gleam",gts:"glimmer-ts",glsl:"glsl",vert:"glsl",frag:"glsl",shader:"shaderlab",gp:"gnuplot",plt:"gnuplot",gnuplot:"gnuplot",go:"go",graphql:"graphql",gql:"graphql",groovy:"groovy",gvy:"groovy",hack:"hack",haml:"haml",hbs:"handlebars",handlebars:"handlebars",hs:"haskell",lhs:"haskell",hx:"haxe",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",fx:"hlsl",html:"html",htm:"html",http:"http",rest:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",cfg:"ini",jade:"pug",pug:"pug",java:"java",js:"javascript",mjs:"javascript",cjs:"javascript",jinja:"jinja",jinja2:"jinja",j2:"jinja",jison:"jison",jl:"julia",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",libsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",kt:"kotlin",kts:"kts",kql:"kusto",tex:"tex",ltx:"tex",lean:"lean4",less:"less",liquid:"liquid",lit:"lit",ll:"llvm",logo:"logo",lua:"lua",luau:"luau",Makefile:"makefile",mk:"makefile",makefile:"makefile",md:"markdown",markdown:"markdown",marko:"marko",m:"wolfram",mat:"matlab",mdc:"mdc",mdx:"mdx",wiki:"wikitext",mediawiki:"wikitext",mmd:"mermaid",mermaid:"mermaid",mips:"mipsasm",mojo:"mojo","\ud83d\udd25":"mojo",move:"move",nar:"narrat",nf:"nextflow",nim:"nim",nims:"nim",nimble:"nim",nix:"nix",nu:"nushell",mm:"objective-cpp",ml:"ocaml",mli:"ocaml",mll:"ocaml",mly:"ocaml",odin:"odin",pas:"pascal",p:"pascal",pl:"prolog",pm:"perl",t:"perl",raku:"raku",p6:"raku",pl6:"raku",php:"php",phtml:"php",pls:"plsql",sql:"sql",po:"po",polar:"polar",pcss:"postcss",pot:"pot",potx:"potx",pq:"powerquery",pqm:"powerquery",ps1:"powershell",psm1:"powershell",psd1:"powershell",prisma:"prisma",pro:"prolog",P:"prolog",properties:"properties",proto:"protobuf",pp:"puppet",purs:"purescript",py:"python",pyw:"python",pyi:"python",BUCK:"python",BUILD:"python",PACKAGE:"python",WORKSPACE:"python",Tiltfile:"python",bazel:"python",bxl:"python",bzl:"python",bzlmod:"python",star:"python",sky:"python",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",R:"r",rkt:"racket",rktl:"racket",razor:"razor",cshtml:"razor",rb:"ruby",rbw:"ruby",reg:"reg",regex:"regexp",rel:"rel",rs:"rust",rst:"rst",rake:"ruby",gemspec:"ruby",jbuilder:"ruby",builder:"ruby",rabl:"ruby",arb:"ruby",ru:"ruby",podspec:"ruby",Gemfile:"ruby",Rakefile:"ruby",Guardfile:"ruby",Capfile:"ruby",Berksfile:"ruby",Brewfile:"ruby",Vagrantfile:"ruby",Thorfile:"ruby",Appraisals:"ruby",Dangerfile:"ruby",sas:"sas",sass:"sass",scala:"scala",sc:"scala",scm:"scheme",ss:"scheme",sld:"scheme",scss:"scss",sdbl:"sdbl",shadergraph:"shader",st:"smalltalk",sol:"solidity",sparql:"sparql",rq:"sparql",spl:"splunk",config:"ssh-config",do:"stata",ado:"stata",dta:"stata",styl:"stylus",stylus:"stylus",svelte:"svelte",swift:"swift",sv:"system-verilog",svh:"system-verilog",service:"systemd",socket:"systemd",device:"systemd",timer:"systemd",talon:"talonscript",tasl:"tasl",tcl:"tcl",templ:"templ",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"typescript",mts:"typescript",cts:"typescript",tsp:"typespec",tsv:"tsv",tsx:"tsx",ttl:"turtle",twig:"twig",typ:"typst",vv:"v",vala:"vala",vapi:"vala",vb:"vb",vbs:"vb",bas:"vb",vh:"verilog",vhd:"vhdl",vhdl:"vhdl",vim:"vimscript",vue:"vue","vine.ts":"vue-vine",vy:"vyper",wasm:"wasm",wat:"wasm",wy:"\u6587\u8a00",wgsl:"wgsl",wit:"wit",wl:"wolfram",nb:"wolfram",xml:"xml",xsl:"xsl",xslt:"xsl",yaml:"yaml",yml:"yml",zs:"zenscript",zig:"zig",zsh:"zsh",sty:"tex"};function Ll(e){const t=Il(e);if(null!=t)return t;const n=e.split(/[/\\]/).pop()??e;return n===e?"text":Il(n)??"text"}function Il(e){if(_l.has(e))return _l.get(e)??"text";if(Object.hasOwn(El,e))return El[e]??null;const t=e.match(/\.([^/\\]+\.[^/\\]+)$/);if(null!=t){if(_l.has(t[1]))return _l.get(t[1])??"text";if(Object.hasOwn(El,t[1]))return El[t[1]]??"text"}const n=e.match(/\.([^.]+)$/)?.[1]??"";return _l.has(n)?_l.get(n)??"text":Object.hasOwn(El,n)?El[n]??"text":null}function Nl(e,t){if(e<=Al)return!1;_l.clear();for(const e in t){const n=t[e];null!=n&&_l.set(e,n)}return Al=e,!0}var Pl=class{diff(e,t,n={}){let r;"function"==typeof n?(r=n,n={}):"callback"in n&&(r=n.callback);const o=this.castInput(e,n),s=this.castInput(t,n),i=this.removeEmpty(this.tokenize(o,n)),a=this.removeEmpty(this.tokenize(s,n));return this.diffWithOptionsObj(i,a,n,r)}diffWithOptionsObj(e,t,n,r){var o;const s=e=>(e=this.postProcess(e,n),r?void setTimeout(function(){r(e)},0):e),i=t.length,a=e.length;let l=1,c=i+a;null!=n.maxEditLength&&(c=Math.min(c,n.maxEditLength));const u=null!==(o=n.timeout)&&void 0!==o?o:1/0,d=Date.now()+u,h=[{oldPos:-1,lastComponent:void 0}];let p=this.extractCommon(h[0],t,e,0,n);if(h[0].oldPos+1>=a&&p+1>=i)return s(this.buildValues(h[0].lastComponent,t,e));let f=-1/0,g=1/0;const m=()=>{for(let r=Math.max(f,-l);r<=Math.min(g,l);r+=2){let o;const l=h[r-1],c=h[r+1];l&&(h[r-1]=void 0);let u=!1;if(c){const e=c.oldPos-r;u=c&&0<=e&&e<i}const d=l&&l.oldPos+1<a;if(u||d){if(o=!d||u&&l.oldPos<c.oldPos?this.addToPath(c,!0,!1,0,n):this.addToPath(l,!1,!0,1,n),p=this.extractCommon(o,t,e,r,n),o.oldPos+1>=a&&p+1>=i)return s(this.buildValues(o.lastComponent,t,e))||!0;h[r]=o,o.oldPos+1>=a&&(g=Math.min(g,r-1)),p+1>=i&&(f=Math.max(f,r+1))}else h[r]=void 0}l++};if(r)!(function e(){setTimeout(function(){if(l>c||Date.now()>d)return r(void 0);m()||e()},0)})();else for(;l<=c&&Date.now()<=d;){const e=m();if(e)return e}}addToPath(e,t,n,r,o){const s=e.lastComponent;return s&&!o.oneChangePerToken&&s.added===t&&s.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:s.count+1,added:t,removed:n,previousComponent:s.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:s}}}extractCommon(e,t,n,r,o){const s=t.length,i=n.length;let a=e.oldPos,l=a-r,c=0;for(;l+1<s&&a+1<i&&this.equals(n[a+1],t[l+1],o);)l++,a++,c++,o.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return c&&!o.oneChangePerToken&&(e.lastComponent={count:c,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=a,l}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){const t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){const r=[];let o;for(;e;)r.push(e),o=e.previousComponent,delete e.previousComponent,e=o;r.reverse();const s=r.length;let i=0,a=0,l=0;for(;i<s;i++){const e=r[i];if(e.removed)e.value=this.join(n.slice(l,l+e.count)),l+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(a,a+e.count);r=r.map(function(e,t){const r=n[l+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(a,a+e.count));a+=e.count,e.added||(l+=e.count)}}return r}};const Ol=new class extends Pl{};function Tl(e,t){let n;for(n=0;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function $l(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return"";for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function Rl(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function Ml(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function jl(e,t){return Rl(e,t,"")}function Dl(e,t){return Ml(e,t,"")}function Bl(e,t){return t.slice(0,Fl(e,t))}function Fl(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);const o=Array(r);let s=0;o[0]=0;for(let e=1;e<r;e++){for(t[e]==t[s]?o[e]=o[s]:o[e]=s;s>0&&t[e]!=t[s];)s=o[s];t[e]==t[s]&&s++}s=0;for(let r=n;r<e.length;r++){for(;s>0&&e[r]!=t[s];)s=o[s];e[r]==t[s]&&s++}return s}function Gl(e,t){const n=[];for(const r of Array.from(t.segment(e))){const e=r.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}return n}function Ul(e,t){if(t)return zl(e,t)[1];let n;for(n=e.length-1;n>=0&&e[n].match(/\s/);n--);return e.substring(n+1)}function Wl(e,t){if(t)return zl(e,t)[0];const n=e.match(/^\s*/);return n?n[0]:""}function zl(e,t){if(!t)return[Wl(e),Ul(e)];if("word"!=t.resolvedOptions().granularity)throw new Error("The segmenter passed must have a granularity of \"word\"");const n=Gl(e,t),r=n[0],o=n[n.length-1];return[/\s/.test(r)?r:"",/\s/.test(o)?o:""]}const ql="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",Hl=new RegExp(`[${ql}]+|\\s+|[^${ql}]`,"ug");function Vl(e,t,n,r,o){if(t&&n){const[s,i]=zl(t.value,o),[a,l]=zl(n.value,o);if(e){const r=Tl(s,a);e.value=Ml(e.value,a,r),t.value=jl(t.value,r),n.value=jl(n.value,r)}if(r){const e=$l(i,l);r.value=Rl(r.value,l,e),t.value=Dl(t.value,e),n.value=Dl(n.value,e)}}else if(n){if(e){const e=Wl(n.value,o);n.value=n.value.substring(e.length)}if(r){const e=Wl(r.value,o);r.value=r.value.substring(e.length)}}else if(e&&r){const n=Wl(r.value,o),[s,i]=zl(t.value,o),a=Tl(n,s);t.value=jl(t.value,a);const l=$l(jl(n,a),i);t.value=Dl(t.value,l),r.value=Rl(r.value,n,l),e.value=Ml(e.value,n,n.slice(0,n.length-l.length))}else if(r){const e=Wl(r.value,o),n=Bl(Ul(t.value,o),e);t.value=Dl(t.value,n)}else if(e){const n=Bl(Ul(e.value,o),Wl(t.value,o));t.value=jl(t.value,n)}}new class extends Pl{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){const r=t.intlSegmenter;if("word"!=r.resolvedOptions().granularity)throw new Error("The segmenter passed must have a granularity of \"word\"");n=Gl(e,r)}else n=e.match(Hl)||[];const r=[];let o=null;return n.forEach(e=>{/\s/.test(e)?null==o?r.push(e):r.push(r.pop()+e):null!=o&&/\s/.test(o)?r[r.length-1]==o?r.push(r.pop()+e):r.push(o+e):r.push(e),o=e}),r}join(e){return e.map((e,t)=>0==t?e:e.replace(/^\s+/,"")).join("")}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,o=null;return e.forEach(e=>{e.added?r=e:e.removed?o=e:((r||o)&&Vl(n,o,r,e,t.intlSegmenter),n=e,r=null,o=null)}),(r||o)&&Vl(n,o,r,null,t.intlSegmenter),e}};const Xl=new class extends Pl{tokenize(e){const t=new RegExp(`(\\r?\\n)|[${ql}]+|[^\\S\\n\\r]+|[^${ql}]`,"ug");return e.match(t)||[]}};function Kl(e,t,n){return Xl.diff(e,t,n)}function Zl(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));const n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){const o=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=o:n.push(o)}return n}function Jl(e){return"."==e||"!"==e||"?"==e}new class extends Pl{constructor(){super(...arguments),this.tokenize=Zl}equals(e,t,n){return n.ignoreWhitespace?(n.newlineIsToken&&e.includes("\n")||(e=e.trim()),n.newlineIsToken&&t.includes("\n")||(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith("\n")&&(e=e.slice(0,-1)),t.endsWith("\n")&&(t=t.slice(0,-1))),super.equals(e,t,n)}};new class extends Pl{tokenize(e){var t;const n=[];let r=0;for(let o=0;o<e.length;o++){if(o==e.length-1){n.push(e.slice(r));break}if(Jl(e[o])&&e[o+1].match(/\s/)){for(n.push(e.slice(r,o+1)),o=r=o+1;null===(t=e[o+1])||void 0===t?void 0:t.match(/\s/);)o++;n.push(e.slice(r,o+1)),r=o+1}}return n}};new class extends Pl{tokenize(e){return e.split(/([{}:;,]|\s+)/)}};function Ql(e,t,n,r,o){let s,i;for(t=t||[],n=n||[],r&&(e=r(void 0===o?"":o,e)),s=0;s<t.length;s+=1)if(t[s]===e)return n[s];if("[object Array]"===Object.prototype.toString.call(e)){for(t.push(e),i=new Array(e.length),n.push(i),s=0;s<e.length;s+=1)i[s]=Ql(e[s],t,n,r,String(s));return t.pop(),n.pop(),i}if(e&&e.toJSON&&(e=e.toJSON()),"object"==typeof e&&null!==e){t.push(e),i={},n.push(i);const o=[];let a;for(a in e)Object.prototype.hasOwnProperty.call(e,a)&&o.push(a);for(o.sort(),s=0;s<o.length;s+=1)a=o[s],i[a]=Ql(e[a],t,n,r,a);t.pop(),n.pop()}else i=e;return i}new class extends Pl{constructor(){super(...arguments),this.tokenize=Zl}get useLongestToken(){return!0}castInput(e,t){const{undefinedReplacement:n,stringifyReplacer:r=(e,t)=>void 0===t?n:t}=t;return"string"==typeof e?e:JSON.stringify(Ql(e,null,null,r),null," ")}equals(e,t,n){return super.equals(e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"),n)}};function Yl(e,t){for(const n of t)e.push(n)}function ec(e){let t=e.length;return 10===e.charCodeAt(t-1)&&(t--,13===e.charCodeAt(t-1)&&t--),e.slice(0,t)}function tc(e,t=0){let n=3735928559^t,r=1103547991^t;for(let t,o=0;o<e.length;o++)t=e.charCodeAt(o),n=Math.imul(n^t,2654435761),r=Math.imul(r^t,1597334677);return n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),(4294967296*(2097151&r)+(n>>>0)).toString(36).slice(0,6)}function nc({tagName:e,children:t=[],properties:n={}}){return{type:"element",tagName:e,properties:n,children:t}}function rc(e){let t=e.children[0];for(;null!=t;){if("element"===t.type&&"code"===t.tagName)return t;t="children"in t?t.children[0]:null}}function oc(e,t,n){const r="function"==typeof n.lineInfo?n.lineInfo(t):n.lineInfo[t-1];if(null==r){const r=`processLine: line ${t}, contains no state.lineInfo`;throw console.error(r,{node:e,line:t,state:n}),new Error(r)}return e.tagName="div",e.properties["data-line"]=r.lineNumber,e.properties["data-alt-line"]=r.altLineNumber,e.properties["data-line-type"]=r.type,e.properties["data-line-index"]=r.lineIndex,0===e.children.length&&e.children.push({type:"text",value:"\n"}),e}new class extends Pl{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};const sc=Symbol("no-token"),ic=Symbol("multiple-tokens");function ac(e){const t=lc(e);if(null!=t)return t;let n=sc;const r=[];let o,s=[];const i=()=>{if(0===s.length||null==o)return s=[],void(o=void 0);if(1===s.length){const t=s[0];if("element"===t?.type){e=o,t.properties["data-char"]=e;for(const e of t.children)cc(e)}else cc(t);return r.push(t),s=[],void(o=void 0)}var e;for(const e of s)cc(e);r.push(nc({tagName:"span",properties:{"data-char":o},children:s})),s=[],o=void 0},a=e=>{e!==sc&&(e!==ic?n!==sc?n!==e&&(n=ic):n=e:n=ic)};for(const t of e.children){const e="element"===t.type?ac(t):sc;a(e),"number"==typeof e?(null!=o&&o!==e&&i(),o??=e,s.push(t)):(i(),r.push(t))}return i(),e.children=r,n}function lc(e){const t=e.properties["data-char"];if("number"==typeof t)return t}function cc(e){if("element"===e.type){e.properties["data-char"]=void 0;for(const t of e.children)cc(t)}}function uc(e=!1,t=!1){const n={lineInfo:[]},r=[Object.assign({line:e=>(delete e.properties.class,e),pre(t){const r=rc(t),o=[];if(null!=r){let t=1;for(const s of r.children)"element"===s.type&&(e&&ac(s),o.push(oc(s,t,n)),t++);r.children=o}return t}},e?{tokens(e){for(const t of e){let e=0;for(const n of t){const t=n;t.__lineChar??=e,e+=n.content.length}}},preprocess(e,t){t.mergeWhitespaces="never"},span(e,t,n,r,o){if(null!=o?.offset&&null!=o.content){const t=o.__lineChar;return null!=t&&(e.properties["data-char"]=t),e}return e}}:null)];return t&&r.push(hc,dc),e&&r.push({line:e=>("element"===e.type&&0===e.children.length&&e.children.push({type:"element",tagName:"br",properties:{},children:[]}),e)}),{state:n,transformers:r,toClass:dc}}const dc=(function(e={}){const{classPrefix:t="__shiki_",classSuffix:n="",classReplacer:r=e=>e}=e,o=new Map;function s(e){return Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}function i(e){const i="string"==typeof e?e:s(e);let a=t+tc(i)+n;return a=r(a),o.has(a)||o.set(a,"string"==typeof e?e:Object.assign({},e)),a}return{name:"@shikijs/transformers:style-to-class",pre(e){if(!e.properties.style)return;const t=i(e.properties.style);delete e.properties.style,this.addClassToHast(e,t)},tokens(e){for(const t of e)for(const e of t){if(!e.htmlStyle)continue;const t=i(e.htmlStyle);e.htmlStyle={},e.htmlAttrs||={},e.htmlAttrs.class?e.htmlAttrs.class+=` ${t}`:e.htmlAttrs.class=t}},getClassRegistry:()=>o,getCSS(){let e="";for(const[t,n]of o.entries())e+=`.${t}{${"string"==typeof n?n:s(n)}}`;return e},clearRegistry(){o.clear()}}})({classPrefix:"hl-"}),hc={name:"token-style-normalizer",tokens(e){for(const t of e)for(const e of t){if(null!=e.htmlStyle)continue;const t={};null!=e.color&&(t.color=e.color),null!=e.bgColor&&(t["background-color"]=e.bgColor),null!=e.fontStyle&&0!==e.fontStyle&&(1&e.fontStyle&&(t["font-style"]="italic"),2&e.fontStyle&&(t["font-weight"]="bold"),4&e.fontStyle&&(t["text-decoration"]="underline")),Object.keys(t).length>0&&(e.htmlStyle=t)}}};function pc(e){return`--${"token"===e?"diffs-token":"diffs"}-`}const fc=/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i,gc=/^0(?:\.0+)?%?$/;function mc(e){const t=e.indexOf("(");if(t<=0||!e.endsWith(")"))return;const n=e.slice(0,t).trim();if(!/^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color)$/i.test(n))return;const r=e.slice(t+1,-1).trim();if(0===r.length)return;const o=r.lastIndexOf("/");if(-1!==o)return r.slice(o+1).trim();if(/^(?:rgba|hsla)$/i.test(n)){const e=r.split(",");if(4===e.length)return e[3]?.trim()}}function yc(e){const t=/^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})\b/i.exec(e.trim());if(null==t)return null;const n=t[1];let r,o=1;return 3===n.length?r=n.split("").map(e=>e+e).join(""):6===n.length?r=n:(r=n.slice(0,6),o=parseInt(n.slice(6,8),16)/255),[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16),o]}function bc(e){if(null==e)return null;const t=yc(e);if(null==t)return null;const n=t[0]/255,r=t[1]/255,o=t[2]/255,s=e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4;return.2126*s(n)+.7152*s(r)+.0722*s(o)}function wc(e){if(null==e)return!1;const t=e.trim().toLowerCase();if("transparent"===t)return!0;if(fc.test(t))return!0;const n=mc(t);return null!=n&&gc.test(n)}function kc(e,t,n){if(null==t||null==n)return!1;const r=bc(e),o=bc(t),s=bc(n);return null!=r&&null!=o&&null!=s&&Math.abs(r-s)<Math.abs(r-o)}const Cc=new WeakMap;function vc(e){const t=Cc.get(e);if(null!=t)return t;const n=e.colors??{},r=Object.assign({},n),o=n["editor.background"]??e.bg,s=n["editor.foreground"]??e.fg,i=n["sideBar.background"]??o,a=n["sideBar.foreground"]??s;xc(r,"editor.background",o),xc(r,"editor.foreground",s),xc(r,"sideBar.background",i),xc(r,"sideBar.foreground",a),xc(r,"input.background",n["input.background"]??i),xc(r,"sideBarSectionHeader.foreground",n["sideBarSectionHeader.foreground"]??a),xc(r,"list.activeSelectionForeground",n["list.activeSelectionForeground"]??a),xc(r,"gitDecoration.addedResourceForeground",Sc(n["gitDecoration.addedResourceForeground"],n["terminal.ansiGreen"],n["editorGutter.addedBackground"])),xc(r,"gitDecoration.modifiedResourceForeground",Sc(n["gitDecoration.modifiedResourceForeground"],n["terminal.ansiBlue"],n["editorGutter.modifiedBackground"])),xc(r,"gitDecoration.deletedResourceForeground",Sc(n["gitDecoration.deletedResourceForeground"],n["terminal.ansiRed"],n["editorGutter.deletedBackground"]));const l=(wc(n["list.focusOutline"])?void 0:n["list.focusOutline"])??(wc(n.focusBorder)?void 0:n.focusBorder);null!=l?r["list.focusOutline"]=l:delete r["list.focusOutline"];const c=n["list.hoverBackground"];var u,d;null!=c&&(u=c,null!=(d=i)&&u.toLowerCase()===d.toLowerCase()||kc(c,i,a))&&delete r["list.hoverBackground"];const h=Object.freeze(Object.assign({},e,{colors:Object.freeze(r)}));return Cc.set(e,h),h}function xc(e,t,n){null!=n&&""!==n&&(e[t]=n)}function Sc(...e){for(const t of e)if(null!=t&&""!==t)return t}function _c({theme:e=gl,highlighter:t,prefix:n}){let r="";if("string"==typeof e){const o=t.getTheme(e),s=vc(o);r+=`color:${s.fg};`,r+=`background-color:${s.bg};`,r+=`${pc("global")}fg:${s.fg};`,r+=`${pc("global")}bg:${s.bg};`,r+=Ac(o,n)}else{let n=t.getTheme(e.dark),o=vc(n);r+=`${pc("global")}dark:${o.fg};`,r+=`${pc("global")}dark-bg:${o.bg};`,r+=Ac(n,"dark"),n=t.getTheme(e.light),o=vc(n),r+=`${pc("global")}light:${o.fg};`,r+=`${pc("global")}light-bg:${o.bg};`,r+=Ac(n,"light")}return r}function Ac(e,t){t=null!=t?`${t}-`:"";let n="";const r=e.colors?.["gitDecoration.addedResourceForeground"]??e.colors?.["terminal.ansiGreen"];null!=r&&(n+=`${pc("global")}${t}addition-color:${r};`);const o=e.colors?.["gitDecoration.deletedResourceForeground"]??e.colors?.["terminal.ansiRed"];null!=o&&(n+=`${pc("global")}${t}deletion-color:${o};`);const s=e.colors?.["gitDecoration.modifiedResourceForeground"]??e.colors?.["terminal.ansiBlue"];return null!=s&&(n+=`${pc("global")}${t}modified-color:${s};`),n}function Ec(e){let t=e.children[0];for(;null!=t;){if("element"===t.type&&"code"===t.tagName)return t.children;t="children"in t?t.children[0]:null}throw console.error(e),new Error("getLineNodes: Unable to find children")}function Lc(e,t){return e-(0===t?0:1)}function Ic(e,t){return Lc(e,t)+t}function Nc({isPartial:e,rangeSize:t,expandedHunks:n,hunkIndex:r,collapsedContextThreshold:o}){const s=Math.max(t,0);if(0===s||e)return{fromStart:0,fromEnd:0,rangeSize:s,collapsedLines:s,renderAll:!1};if(!0===n||s<=o)return{fromStart:s,fromEnd:0,rangeSize:s,collapsedLines:0,renderAll:!0};const i=n?.get(r),a=Math.min(Math.max(i?.fromStart??0,0),s),l=Math.min(Math.max(i?.fromEnd??0,0),s),c=a+l,u=c>=s;return{fromStart:u?s:a,fromEnd:u?0:l,rangeSize:s,collapsedLines:Math.max(s-c,0),renderAll:u}}function Pc({fileDiff:e,errorPrefix:t}){const n=e.hunks[e.hunks.length-1];if(null==n||e.isPartial||0===e.additionLines.length||0===e.deletionLines.length)return 0;const r=e.additionLines.length-Ic(n.additionStart,n.additionCount),o=e.deletionLines.length-Ic(n.deletionStart,n.deletionCount);if(r<=0&&o<=0)return 0;if(r!==o)throw new Error(`${t}: trailing context mismatch (additions=${r}, deletions=${o}) for ${e.name}`);return Math.min(r,o)}function Oc({fileDiff:e,hunkIndex:t,expandedHunks:n,collapsedContextThreshold:r,errorPrefix:o}){if(t!==e.hunks.length-1)return;const s=Pc({fileDiff:e,errorPrefix:o});if(s<=0)return;if(!0===n||s<=r)return{fromStart:s,fromEnd:0,rangeSize:s,collapsedLines:0,renderAll:!0};const i=n?.get(e.hunks.length),a=Math.min(Math.max(i?.fromStart??0,0),s);return{fromStart:a,fromEnd:0,rangeSize:s,collapsedLines:s-a,renderAll:a>=s}}function Tc({diff:e,diffStyle:t,startingLine:n=0,totalLines:r=1/0,expandedHunks:o,collapsedContextThreshold:s=1,callback:i}){const a=$c({diff:e,diffStyle:t,startingLine:n,expandedHunks:o,collapsedContextThreshold:s}),l={viewportStart:n,viewportEnd:n+r,isWindowedHighlight:n>0||r<1/0,splitCount:a.splitCount,unifiedCount:a.unifiedCount,finalHunkIndex:e.hunks.length-1,shouldBreak(){if(!l.isWindowedHighlight)return!1;const e=l.unifiedCount>=n+r,o=l.splitCount>=n+r;return"unified"===t?e:("split"===t||e)&&o},shouldSkip(e,r){if(!l.isWindowedHighlight)return!1;const o=e>0&&l.unifiedCount+e<=n,s=r>0&&l.splitCount+r<=n;return"unified"===t?o:("split"===t||o)&&s},incrementCounts(e,n){"unified"!==t&&"both"!==t||(l.unifiedCount+=e),"split"!==t&&"both"!==t||(l.splitCount+=n)},isInWindow(e,n){if(!l.isWindowedHighlight)return!0;const r=l.isInUnifiedWindow(e),o=l.isInSplitWindow(n);return"unified"===t?r:"split"===t?o:r||o},isInUnifiedWindow:e=>!l.isWindowedHighlight||l.unifiedCount>=n-e&&l.unifiedCount<n+r,isInSplitWindow:e=>!l.isWindowedHighlight||l.splitCount>=n-e&&l.splitCount<n+r,emit:(e,n=!1)=>(n||("unified"===t?l.incrementCounts(1,0):"split"===t?l.incrementCounts(0,1):l.incrementCounts(1,1)),i(e)??!1)};e:for(let d=a.hunkIndex;d<e.hunks.length;d++){const h=e.hunks[d];if(null==h)throw new Error("iterateOverDiff: invalid hunk index");if(l.shouldBreak())break;const p=Lc(h.deletionStart,h.deletionCount),f=Lc(h.additionStart,h.additionCount),g=e.isPartial||0!==h.deletionCount?h.deletionLineIndex:p,m=e.isPartial||0!==h.additionCount?h.additionLineIndex:f,y=Nc({isPartial:e.isPartial,rangeSize:h.collapsedBefore,expandedHunks:o,hunkIndex:d,collapsedContextThreshold:s}),b=d===l.finalHunkIndex?Oc({fileDiff:e,hunkIndex:d,expandedHunks:o,collapsedContextThreshold:s,errorPrefix:"iterateOverDiff"}):void 0,w=y.fromStart+y.fromEnd;function c(e,n){return null==b||b.collapsedLines<=0||b.fromStart+b.fromEnd>0?0:"unified"===t?e===h.unifiedLineStart+h.unifiedLineCount-1?b.collapsedLines:0:n===h.splitLineStart+h.splitLineCount-1?b.collapsedLines:0}let k=0===y.collapsedLines;function u(){return k?0:(k=!0,y.collapsedLines)}if(l.shouldSkip(w,w))l.incrementCounts(w,w),u();else{let L=h.unifiedLineStart-y.rangeSize,I=h.splitLineStart-y.rangeSize,N=g-y.rangeSize,P=m-y.rangeSize,O=p+1-y.rangeSize,T=f+1-y.rangeSize;if(jc(l,y.fromStart,t,e=>l.emit({hunkIndex:d,hunk:h,collapsedBefore:0,collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:O+e,lineIndex:N+e,noEOFCR:!1,unifiedLineIndex:L+e,splitLineIndex:I+e},additionLine:{unifiedLineIndex:L+e,splitLineIndex:I+e,lineIndex:P+e,lineNumber:T+e,noEOFCR:!1}})))break e;if(L=h.unifiedLineStart-y.fromEnd,I=h.splitLineStart-y.fromEnd,N=g-y.fromEnd,P=m-y.fromEnd,O=p+1-y.fromEnd,T=f+1-y.fromEnd,jc(l,y.fromEnd,t,e=>l.emit({hunkIndex:d,hunk:h,collapsedBefore:u(),collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:O+e,lineIndex:N+e,noEOFCR:!1,unifiedLineIndex:L+e,splitLineIndex:I+e},additionLine:{unifiedLineIndex:L+e,splitLineIndex:I+e,lineIndex:P+e,lineNumber:T+e,noEOFCR:!1}}),()=>{u()}))break e}let C=h.unifiedLineStart,v=h.splitLineStart,x=g,S=m,_=p+1,A=f+1;const E=h.hunkContent.at(-1);for(const $ of h.hunkContent){if(l.shouldBreak())break e;const R=$===E;if("context"===$.type){if(l.shouldSkip($.lines,$.lines))l.incrementCounts($.lines,$.lines),u();else if(jc(l,$.lines,t,e=>{const t=R&&e===$.lines-1,n=C+e,r=v+e;return l.emit({hunkIndex:d,hunk:h,collapsedBefore:u(),collapsedAfter:c(n,r),type:"context",deletionLine:{lineNumber:_+e,lineIndex:x+e,noEOFCR:t&&h.noEOFCRDeletions,unifiedLineIndex:n,splitLineIndex:r},additionLine:{unifiedLineIndex:n,splitLineIndex:r,lineIndex:S+e,lineNumber:A+e,noEOFCR:t&&h.noEOFCRAdditions}})},()=>{u()}))break e;C+=$.lines,v+=$.lines,x+=$.lines,S+=$.lines,_+=$.lines,A+=$.lines}else{const M=Math.max($.deletions,$.additions),j=$.deletions+$.additions;if(!l.shouldSkip(j,M)){const D=Dc(l,$,t);(D[0]?.[0]??0)>0&&u();for(const[B,F]of D)for(let G=B;G<F;G++){const U=c(C+G,"unified"===t?v+(G<$.deletions?G:G-$.deletions):v+G);if(l.emit(Bc({hunkIndex:d,hunk:h,collapsedBefore:u(),collapsedAfter:U,diffStyle:t,index:G,unifiedLineIndex:C,splitLineIndex:v,additionLineIndex:S,deletionLineIndex:x,additionLineNumber:A,deletionLineNumber:_,content:$,isLastContent:R,unifiedCount:j,splitCount:M}),!0))break e}}u(),l.incrementCounts(j,M),C+=j,v+=M,x+=$.deletions,S+=$.additions,_+=$.deletions,A+=$.additions}}if(null!=b){const{collapsedLines:W,fromStart:z,fromEnd:q}=b,H=z+q;if(jc(l,H,t,t=>{const n=t===H-1;return l.emit({hunkIndex:e.hunks.length,hunk:void 0,collapsedBefore:0,collapsedAfter:n?W:0,type:"context-expanded",deletionLine:{lineNumber:_+t,lineIndex:x+t,noEOFCR:!1,unifiedLineIndex:C+t,splitLineIndex:v+t},additionLine:{unifiedLineIndex:C+t,splitLineIndex:v+t,lineIndex:S+t,lineNumber:A+t,noEOFCR:!1}})},void 0,()=>l.shouldBreak()))break e}}}function $c({diff:e,diffStyle:t,startingLine:n,expandedHunks:r,collapsedContextThreshold:o}){if(n<=0||"both"===t)return{hunkIndex:0,splitCount:0,unifiedCount:0};const s=Rc({diff:e,expandedHunks:r,collapsedContextThreshold:o});let i=0,a=e.hunks.length-1,l=e.hunks.length;for(;i<=a;){const e=i+a>>1,r=s[e+1];if(null==r)throw new Error("iterateOverDiff: invalid hunk prefix index");("unified"===t?r.unifiedCount:r.splitCount)>n?(l=e,a=e-1):i=e+1}if(l>=e.hunks.length){const t=s[e.hunks.length];if(null==t)throw new Error("iterateOverDiff: invalid terminal hunk prefix index");return{hunkIndex:e.hunks.length,splitCount:t.splitCount,unifiedCount:t.unifiedCount}}const c=s[l];if(null==c)throw new Error("iterateOverDiff: invalid selected hunk prefix index");return{hunkIndex:l,splitCount:c.splitCount,unifiedCount:c.unifiedCount}}function Rc({diff:e,expandedHunks:t,collapsedContextThreshold:n}){let r=0,o=0;const s=e.hunks.length-1,i=[{splitCount:0,unifiedCount:0}];for(let a=0;a<e.hunks.length;a++){const l=e.hunks[a];if(null==l)throw new Error("iterateOverDiff: invalid hunk summary index");const c=Nc({isPartial:e.isPartial,rangeSize:l.collapsedBefore,expandedHunks:t,hunkIndex:a,collapsedContextThreshold:n}),u=c.fromStart+c.fromEnd;r+=u+l.splitLineCount,o+=u+l.unifiedLineCount;const d=a===s?Oc({fileDiff:e,hunkIndex:a,expandedHunks:t,collapsedContextThreshold:n,errorPrefix:"iterateOverDiff"}):void 0;if(null!=d){const e=d.fromStart+d.fromEnd;r+=e,o+=e}i.push({splitCount:r,unifiedCount:o})}return i}function Mc(e,t,n){if(!e.isWindowedHighlight||t<=0)return[0,t];const r=[];function o(n){const o=Math.max(0,e.viewportStart-n),s=Math.min(t,e.viewportEnd-n);s>o&&r.push([o,s])}if("split"!==n&&o(e.unifiedCount),"unified"!==n&&o(e.splitCount),0===r.length)return[0,0];let s=r[0][0],i=r[0][1];for(let e=1;e<r.length;e++){const t=r[e];s=Math.min(s,t[0]),i=Math.max(i,t[1])}return[s,i]}function jc(e,t,n,r,o,s){const[i,a]=Mc(e,t,n);i>0&&(e.incrementCounts(i,i),o?.());let l=i;for(;l<t;){if(!0===s?.())return!0;if(l>=a){e.incrementCounts(t-l,t-l);break}if(e.isInWindow(0,0)){if(!0===r(l))return!0}else e.incrementCounts(1,1);l++}return!1}function Dc(e,t,n){if(!e.isWindowedHighlight)return[[0,"unified"===n?t.deletions+t.additions:Math.max(t.deletions,t.additions)]];const r="unified"!==n,o="unified"===n?"unified":"split",s=[];function i(t,n){if(t+n<=e.viewportStart||t>=e.viewportEnd)return;const r=Math.max(0,e.viewportStart-t),o=Math.min(n,e.viewportEnd-t);return o>r?[r,o]:void 0}function a(e,n){return"split"===o?e:"additions"===n?[e[0]+t.deletions,e[1]+t.deletions]:e}function l(e,t){if(null==e)return;const[n,r]=a(e,t);r>n&&s.push([n,r])}if("split"!==n&&(l(i(e.unifiedCount,t.deletions),"deletions"),l(i(e.unifiedCount+t.deletions,t.additions),"additions")),r&&(l(i(e.splitCount,t.deletions),"deletions"),l(i(e.splitCount,t.additions),"additions")),0===s.length)return s;s.sort((e,t)=>e[0]-t[0]);const c=[s[0]];for(const[e,t]of s.slice(1)){const n=c[c.length-1];e<=n[1]?n[1]=Math.max(n[1],t):c.push([e,t])}return c}function Bc({hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:r,diffStyle:o,index:s,unifiedLineIndex:i,splitLineIndex:a,additionLineIndex:l,deletionLineIndex:c,additionLineNumber:u,deletionLineNumber:d,content:h,isLastContent:p,unifiedCount:f,splitCount:g}){const m=s<h.deletions?i+s:void 0,y="unified"===o?s>=h.deletions?i+s:void 0:s<h.additions?i+h.deletions+s:void 0,b="unified"===o?a+(s<h.deletions?s:s-h.deletions):a+s,w=s<h.deletions?c+s:void 0,k=s<h.deletions?d+s:void 0,C="unified"===o?s>=h.deletions?l+(s-h.deletions):void 0:s<h.additions?l+s:void 0,v="unified"===o?s>=h.deletions?u+(s-h.deletions):void 0:s<h.additions?u+s:void 0,x="unified"===o?p&&s===h.deletions-1&&t.noEOFCRDeletions:p&&s===g-1&&t.noEOFCRDeletions,S="unified"===o?p&&s===f-1&&t.noEOFCRAdditions:p&&s===g-1&&t.noEOFCRAdditions,_=null!=w&&null!=k&&null!=m?{lineNumber:k,lineIndex:w,noEOFCR:x,unifiedLineIndex:m,splitLineIndex:b}:void 0,A=null!=C&&null!=v&&null!=y?{unifiedLineIndex:y,splitLineIndex:b,lineIndex:C,lineNumber:v,noEOFCR:S}:void 0;if(null==_&&null!=A)return{type:"change",hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:r,deletionLine:void 0,additionLine:A};if(null!=_&&null==A)return{type:"change",hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:r,deletionLine:_,additionLine:void 0};if(null==_||null==A)throw new Error("iterateOverDiff: missing change line data");return{type:"change",hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:r,deletionLine:_,additionLine:A}}function Fc({line:e,spanStart:t,spanLength:n}){return{start:{line:e,character:t},end:{line:e,character:t+n},properties:{"data-diff-span":""},alwaysWrap:!0}}function Gc({item:e,arr:t,enableJoin:n,isNeutral:r=!1,isLastItem:o=!1}){const s=t[t.length-1];if(null==s||o||!n)return void t.push([r?0:1,e.value]);const i=0===s[0];r===i||r&&1===e.value.length&&!i?s[1]+=e.value:t.push([r?0:1,e.value])}const Uc={forcePlainText:!1};function Wc(e,t,n,{forcePlainText:r,startingLine:o,totalLines:s,expandedHunks:i,collapsedContextThreshold:a=1}=Uc){r?(o??=0,s??=1/0):(o=0,s=1/0);const l=o>0||s<1/0,c="string"==typeof n.theme?t.getTheme(n.theme).type:void 0,u=_c({theme:n.theme,highlighter:t}),d=r&&!l&&(e.unifiedLineCount>1e3||e.splitLineCount>1e3)?"none":n.lineDiffType,h={deletionLines:[],additionLines:[]},{maxLineDiffLength:p}=n,f=!r&&!e.isPartial,g=r?i:void 0,m=new Map;function y(e){const t=f?0:e,n=m.get(t)??{deletionContent:{push(e){this.value+=e,this.length++},value:"",length:0},additionContent:{push(e){this.value+=e,this.length++},value:"",length:0},deletionInfo:[],additionInfo:[],deletionDecorations:[],additionDecorations:[],deletionSegments:[],additionSegments:[]};return m.set(t,n),n}function b(e,t,n,r){if(l){let e=n.at(-1);null!=e&&e.targetIndex+e.count===t||(e={targetIndex:t,originalOffset:r.length,count:0},n.push(e)),e.count++}r.push(e)}Tc({diff:e,diffStyle:"both",startingLine:o,totalLines:s,expandedHunks:!l||g,collapsedContextThreshold:a,callback:({hunkIndex:t,additionLine:n,deletionLine:r,type:o})=>{const s=y(t),i=null!=n?n.splitLineIndex:r.splitLineIndex;"change"===o&&null!=n&&null!=r&&qc({additionLine:e.additionLines[n.lineIndex],deletionLine:e.deletionLines[r.lineIndex],deletionLineIndex:s.deletionContent.length,additionLineIndex:s.additionContent.length,deletionDecorations:s.deletionDecorations,additionDecorations:s.additionDecorations,lineDiffType:d,maxLineDiffLength:p}),null!=r&&(b(e.deletionLines[r.lineIndex],r.lineIndex,s.deletionSegments,s.deletionContent),s.deletionInfo.push({type:"change"===o?"change-deletion":o,lineNumber:r.lineNumber,altLineNumber:"change"===o?void 0:n.lineNumber??void 0,lineIndex:`${r.unifiedLineIndex},${i}`})),null!=n&&(b(e.additionLines[n.lineIndex],n.lineIndex,s.additionSegments,s.additionContent),s.additionInfo.push({type:"change"===o?"change-addition":o,lineNumber:n.lineNumber,altLineNumber:"change"===o?void 0:r.lineNumber??void 0,lineIndex:`${n.unifiedLineIndex},${i}`}))}});for(const o of m.values()){if(0===o.deletionContent.length&&0===o.additionContent.length)continue;const s={name:e.prevName??e.name,contents:o.deletionContent.value},i={name:e.name,contents:o.additionContent.value},{deletionLines:a,additionLines:l}=Hc({deletionFile:s,deletionInfo:o.deletionInfo,deletionDecorations:o.deletionDecorations,additionFile:i,additionInfo:o.additionInfo,additionDecorations:o.additionDecorations,highlighter:t,options:n,languageOverride:r?"text":e.lang});if(f)h.deletionLines=a,h.additionLines=l;else{if(o.deletionSegments.length>0)for(const e of o.deletionSegments)for(let t=0;t<e.count;t++)h.deletionLines[e.targetIndex+t]=a[e.originalOffset+t];else Yl(h.deletionLines,a);if(o.additionSegments.length>0)for(const e of o.additionSegments)for(let t=0;t<e.count;t++)h.additionLines[e.targetIndex+t]=l[e.originalOffset+t];else Yl(h.additionLines,l)}}return{code:h,themeStyles:u,baseThemeType:c}}function zc(e,{deletionLineIndex:t,additionLineIndex:n,deletionDecorations:r,additionDecorations:o}){let s=0,i=0,a=-1,l=0,c=-1,u=0;for(const{value:t,added:n,removed:r}of e)r?(-1===a&&(a=s),s+=t.length,l=s):n?(-1===c&&(c=i),i+=t.length,u=i):(s+=t.length,i+=t.length);-1!==a&&r.push(Fc({line:t,spanStart:a,spanLength:l-a})),-1!==c&&o.push(Fc({line:n,spanStart:c,spanLength:u-c}))}function qc({deletionLine:e,additionLine:t,deletionLineIndex:n,additionLineIndex:r,deletionDecorations:o,additionDecorations:s,lineDiffType:i,maxLineDiffLength:a}){if(null==e||null==t||"none"===i)return;if(e=ec(e),t=ec(t),e.length>a||t.length>a)return;const l="char"===i?(c=e,u=t,Ol.diff(c,u,d)):Kl(e,t);var c,u,d;if("word-line"===i)return void zc(l,{deletionLineIndex:n,additionLineIndex:r,deletionDecorations:o,additionDecorations:s});const h=[],p=[],f="word-alt"===i,g=l.at(-1);for(const e of l){const t=e===g;e.added||e.removed?e.removed?Gc({item:e,arr:h,enableJoin:f,isLastItem:t}):Gc({item:e,arr:p,enableJoin:f,isLastItem:t}):(Gc({item:e,arr:h,enableJoin:f,isNeutral:!0,isLastItem:t}),Gc({item:e,arr:p,enableJoin:f,isNeutral:!0,isLastItem:t}))}let m=0;for(const e of h)1===e[0]&&o.push(Fc({line:n,spanStart:m,spanLength:e[1].length})),m+=e[1].length;m=0;for(const e of p)1===e[0]&&s.push(Fc({line:r,spanStart:m,spanLength:e[1].length})),m+=e[1].length}function Hc(e){let{deletionFile:t,additionFile:n,deletionInfo:r,additionInfo:o,highlighter:s,deletionDecorations:i,additionDecorations:a,languageOverride:l,options:{theme:c}}=e,u=g(e.options,b);const d=l??Ll(t.name),h=l??Ll(n.name),{state:p,transformers:f}=uc(u.useTokenTransformer),m="string"==typeof c?Object.assign({},u,{lang:"text",theme:c,transformers:f,decorations:void 0,defaultColor:!1,cssVariablePrefix:pc("token"),tokenizeTimeLimit:0}):Object.assign({},u,{lang:"text",themes:c,transformers:f,decorations:void 0,defaultColor:!1,cssVariablePrefix:pc("token"),tokenizeTimeLimit:0});return{deletionLines:""===t.contents?[]:(m.lang=d,p.lineInfo=r,m.decorations=i,Ec(s.codeToHast(ec(t.contents),m))),additionLines:""===n.contents?[]:(m.lang=h,m.decorations=a,p.lineInfo=o,Ec(s.codeToHast(ec(n.contents),m)))}}function Vc(e){const t=[0];let n=e.indexOf("\r"),r=e.indexOf("\n"),o=0,s=0;for(;-1!==n||-1!==r;){let i;if(-1!==n&&(-1===r||n<r)?r===n+1?(i=r+1,n=e.indexOf("\r",i),r=e.indexOf("\n",i)):(i=n+1,n=e.indexOf("\r",i)):(i=r+1,r=e.indexOf("\n",i)),t.push(i),4===++s){if(i-o<=40){for(let n=i;n<e.length;n++){const r=e.charCodeAt(n);10!==r&&13!==r||(13===r&&n+1<e.length&&10===e.charCodeAt(n+1)&&n++,t.push(n+1))}return t}o=i,s=0}}return t}function Xc(e){const t=Vc(e);return Array.from({length:t.length},(n,r)=>{const o=t[r],s=t[r+1]??e.length;return e.slice(o,s)})}const Kc={forcePlainText:!1};function Zc(e,t,{theme:n,tokenizeMaxLineLength:r,useTokenTransformer:o},{forcePlainText:s,startingLine:i,totalLines:a,lines:l}=Kc){s?(i??=0,a??=1/0):(i=0,a=1/0);const c=i>0||a<1/0,{state:u,transformers:d}=uc(o),h=s?"text":e.lang??Ll(e.name),p="string"==typeof n?t.getTheme(n).type:void 0,f=_c({theme:n,highlighter:t});u.lineInfo=e=>({type:"context",lineIndex:e-1+i,lineNumber:e+i});const g="string"==typeof n?{lang:h,theme:n,transformers:d,defaultColor:!1,cssVariablePrefix:pc("token"),tokenizeMaxLineLength:r,tokenizeTimeLimit:0}:{lang:h,themes:n,transformers:d,defaultColor:!1,cssVariablePrefix:pc("token"),tokenizeMaxLineLength:r,tokenizeTimeLimit:0},m=Ec(t.codeToHast((c?Jc(l??Xc(e.contents),i,a):e.contents).replace(/\r(?!\n)/g,"\n"),g));const y=c?new Array(i):m;return c&&Yl(y,m),{code:y,themeStyles:f,baseThemeType:p}}function Jc(e,t,n){if(0===e.length)return"";const r=Math.min(t+n,e.length);return e.slice(t,r).join("")}let Qc,Yc={theme:gl,useTokenTransformer:!1,tokenizeMaxLineLength:1e3,lineDiffType:"word-alt",maxLineDiffLength:1e3};const eu=/(?:)/;async function tu(e){try{switch(e.type){case"initialize":await nu(e);break;case"set-render-options":await ru(e);break;case"file":await ou(e);break;case"diff":await su(e);break;default:throw new Error(`Unknown request type: ${e.type}`)}}catch(t){console.error("Worker error:",t),uu(e.id,t)}finally{eu.exec("")}}async function nu({id:e,renderOptions:t,preferredHighlighter:n,resolvedThemes:r,resolvedLanguages:o,customExtensionsVersion:s,customExtensionMap:i}){let a=iu(n);"then"in a&&(a=await a),au({customExtensionsVersion:s,customExtensionMap:i}),Sl(r,a),null!=o&&bl(o,a),Yc=t,postMessage({type:"success",id:e,requestType:"initialize",sentAt:Date.now()})}async function ru({id:e,renderOptions:t,resolvedThemes:n}){let r=iu();"then"in r&&(r=await r),Sl(n,r),Yc=t,postMessage({type:"success",id:e,requestType:"set-render-options",sentAt:Date.now()})}async function ou({id:e,file:t,resolvedLanguages:n,customExtensionsVersion:r,customExtensionMap:o}){let s=iu();"then"in s&&(s=await s),au({customExtensionsVersion:r,customExtensionMap:o}),null!=n&&bl(n,s);const i={theme:Yc.theme,useTokenTransformer:Yc.useTokenTransformer,tokenizeMaxLineLength:Yc.tokenizeMaxLineLength};lu(e,Zc(t,s,i),i)}async function su({id:e,diff:t,resolvedLanguages:n,customExtensionsVersion:r,customExtensionMap:o}){let s=iu();"then"in s&&(s=await s),au({customExtensionsVersion:r,customExtensionMap:o}),null!=n&&bl(n,s),cu(e,Wc(t,s,Yc),Yc)}function iu(e="shiki-js"){return Qc??=fo({themes:[],langs:[],engine:"shiki-wasm"===e?hl(t(i[4])(i[3],i.paths)):Fa()}),Qc}function au({customExtensionsVersion:e,customExtensionMap:t}){if(null!=e||null!=t){if(null==e||null==t)throw new Error("Worker request must include both customExtensionsVersion and customExtensionMap");Nl(e,t)}}function lu(e,t,n){postMessage({type:"success",requestType:"file",id:e,result:t,options:n,sentAt:Date.now()})}function cu(e,t,n){postMessage({type:"success",requestType:"diff",id:e,result:t,options:n,sentAt:Date.now()})}function uu(e,t){const n={type:"error",id:e,error:t instanceof Error?t.message:String(t),stack:t instanceof Error?t.stack:void 0};postMessage(n)}self.addEventListener("error",e=>{console.error("[Shiki Worker] Unhandled error:",e.error)}),self.addEventListener("message",e=>{tu(e.data)})},1619,{"0":30,"1":31,"2":25,"3":1620,"4":1022,"paths":{"1620":"/_expo/static/js/web/wasm-B9ZqxnKj-7c8a250fac2c7f594c5e0f0d9aa394a3.js"}});
|
|
59
|
+
__r(1618);
|