azdiffs 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +67 -2
- package/THIRD_PARTY_NOTICES.md +4514 -0
- package/dist/cli.js +4768 -0
- package/dist/web/assets/_organization.___git._repository.pullrequest._pullRequestId-D7saE-jO.js +1 -0
- package/dist/web/assets/_organization.___git._repository.pullrequest._pullRequestId.commits._commitId-DOwGbBTQ.js +1 -0
- package/dist/web/assets/_organization.___git._repository.pullrequest._pullRequestId.commits.index-DzGjUdAz.js +1 -0
- package/dist/web/assets/_organization.___git._repository.pullrequest._pullRequestId.conflicts-Cjr34xFt.js +1 -0
- package/dist/web/assets/_organization.___git._repository.pullrequest._pullRequestId.files-BjjJ4Yb8.js +1 -0
- package/dist/web/assets/_organization.___git._repository.pullrequest._pullRequestId.index-iY62N_zR.js +1 -0
- package/dist/web/assets/_organization._project.___git._repository.pullrequest._pullRequestId-CrHRklAE.js +1 -0
- package/dist/web/assets/_organization._project.___git._repository.pullrequest._pullRequestId.commits._commitId-WC7fEryq.js +1 -0
- package/dist/web/assets/_organization._project.___git._repository.pullrequest._pullRequestId.commits.index-DzGjUdAz.js +1 -0
- package/dist/web/assets/_organization._project.___git._repository.pullrequest._pullRequestId.conflicts-BhUkafpV.js +1 -0
- package/dist/web/assets/_organization._project.___git._repository.pullrequest._pullRequestId.files-_RVmv4sD.js +1 -0
- package/dist/web/assets/_organization._project.___git._repository.pullrequest._pullRequestId.index-BJrgfbSD.js +1 -0
- package/dist/web/assets/_organization.index-hKcWlBrk.js +1 -0
- package/dist/web/assets/bat-qdxAdBWQ.js +1 -0
- package/dist/web/assets/bicep-CUHmPFLl.js +1 -0
- package/dist/web/assets/c-B0t_Dlza.js +1 -0
- package/dist/web/assets/cmake-Bj61d0ZC.js +1 -0
- package/dist/web/assets/commit-diff-view-CQeZylif.js +1 -0
- package/dist/web/assets/commits-view-B_TQ6AnD.js +13 -0
- package/dist/web/assets/conflicts-view-CnGEkjaP.js +8 -0
- package/dist/web/assets/core-D5Wev6DN.js +12 -0
- package/dist/web/assets/core-DfsS1UI1.js +12 -0
- package/dist/web/assets/cpp-DGR_3gb-.js +1 -0
- package/dist/web/assets/csharp-dmMxLVLW.js +1 -0
- package/dist/web/assets/css-CBDjU9xM.js +1 -0
- package/dist/web/assets/dart-CHZY9Xhz.js +1 -0
- package/dist/web/assets/dev.diff-DH1qvnWe.js +1 -0
- package/dist/web/assets/diff-woXpYk--.js +1 -0
- package/dist/web/assets/docker-IyjqRm3v.js +1 -0
- package/dist/web/assets/dotenv-CuH5my32.js +1 -0
- package/dist/web/assets/engine-javascript-C4Jk_eU2.js +141 -0
- package/dist/web/assets/engine-javascript-DpLLfDIa.js +141 -0
- package/dist/web/assets/engine-oniguruma-BfcA8yDp.js +1 -0
- package/dist/web/assets/engine-oniguruma-D--T0LcV.js +1 -0
- package/dist/web/assets/file-header-keBlejWu.js +49 -0
- package/dist/web/assets/files-view-Bu3bjrNf.js +1460 -0
- package/dist/web/assets/fsharp-D13ZGOAj.js +1 -0
- package/dist/web/assets/go-rLFTqkRN.js +1 -0
- package/dist/web/assets/grammars-DmFYBwmS.js +2 -0
- package/dist/web/assets/graphql-Br4JsJsw.js +1 -0
- package/dist/web/assets/groovy-CacY0gHj.js +1 -0
- package/dist/web/assets/hcl-Dh228itO.js +1 -0
- package/dist/web/assets/highlights-BJb1-tzP.js +1 -0
- package/dist/web/assets/highlights-CIgHM7EF-ByjlShdO.js +1 -0
- package/dist/web/assets/home-page-Y5jGxOav.js +1 -0
- package/dist/web/assets/html-Cyo-BRss.js +1 -0
- package/dist/web/assets/inbox-jP8QPtzZ.js +1 -0
- package/dist/web/assets/index-B297yCgq.js +11 -0
- package/dist/web/assets/index-CjZUV4-4.css +1 -0
- package/dist/web/assets/ini-B5eOa1yu.js +1 -0
- package/dist/web/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/dist/web/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/dist/web/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/dist/web/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/dist/web/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/dist/web/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/dist/web/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/dist/web/assets/java-r7y4bhRH.js +1 -0
- package/dist/web/assets/javascript-anBMbNY-.js +1 -0
- package/dist/web/assets/json-qhed-kSA.js +1 -0
- package/dist/web/assets/json5-BR5RXkoi.js +1 -0
- package/dist/web/assets/jsonc-CYpm1nAK.js +1 -0
- package/dist/web/assets/jsx-Bz0zcwM4.js +1 -0
- package/dist/web/assets/kotlin-DhhofPvG.js +1 -0
- package/dist/web/assets/langs_worker-Dyqdnub0.js +1 -0
- package/dist/web/assets/less-DVTAwKKz.js +1 -0
- package/dist/web/assets/lib-C2gVWm_O.js +1 -0
- package/dist/web/assets/lib-rf_jxHx0.js +1 -0
- package/dist/web/assets/lineChanges-Dw4ZXwVU.js +9 -0
- package/dist/web/assets/loader-BljfpPoZ.js +1 -0
- package/dist/web/assets/loader-C-ieOA_A.js +1 -0
- package/dist/web/assets/lua-mGgFNKt2.js +1 -0
- package/dist/web/assets/makefile-Dixweg8N.js +1 -0
- package/dist/web/assets/markdown-BYOwaDjH.js +1 -0
- package/dist/web/assets/overview-view-cEOsI9TY.js +2 -0
- package/dist/web/assets/php-DTciGFRO.js +1 -0
- package/dist/web/assets/pierre-dark-DMS-zpcK.js +1 -0
- package/dist/web/assets/pierre-light-BHq6aQNU.js +1 -0
- package/dist/web/assets/powershell-QtSnmXcu.js +1 -0
- package/dist/web/assets/properties-CHTuaqAW.js +1 -0
- package/dist/web/assets/proto-DB4EqR-F.js +1 -0
- package/dist/web/assets/pull-request-layout-DsDKURcq.js +35 -0
- package/dist/web/assets/python-gzcpVVnB.js +1 -0
- package/dist/web/assets/razor-3kKIP6Di.js +1 -0
- package/dist/web/assets/rolldown-runtime-BLXQ4ufn.js +1 -0
- package/dist/web/assets/routes-BruvNNp9.js +1 -0
- package/dist/web/assets/rust-DpiIf5JO.js +1 -0
- package/dist/web/assets/scala-BiFt_7mu.js +1 -0
- package/dist/web/assets/scss-DC8XIxmG.js +1 -0
- package/dist/web/assets/shellscript-CLZ0U2zV.js +1 -0
- package/dist/web/assets/shiki-DueA5xDi.js +1 -0
- package/dist/web/assets/shiki-DxP4sN1Z-caEk3oPG.js +1 -0
- package/dist/web/assets/shortcut-help-Cb0be4f3.js +1 -0
- package/dist/web/assets/sql-CEbI0hMM.js +1 -0
- package/dist/web/assets/stream-tokenizer-7LLwu37w-C37tUWGx.js +12 -0
- package/dist/web/assets/stream-tokenizer-B5Ok5N3S.js +4 -0
- package/dist/web/assets/svelte-iJTmbwM3.js +1 -0
- package/dist/web/assets/swift-CyEgAFGc.js +1 -0
- package/dist/web/assets/terraform-DswuEJGm.js +1 -0
- package/dist/web/assets/themes-BKc5vU6v.js +1 -0
- package/dist/web/assets/themes-SQq_asFq.js +1 -0
- package/dist/web/assets/toml-CcmNWLt0.js +1 -0
- package/dist/web/assets/tsx-udAQXfEw.js +1 -0
- package/dist/web/assets/typescript-bsJCZSQ-.js +1 -0
- package/dist/web/assets/utils-Tkdy0sOA.js +1 -0
- package/dist/web/assets/vb-DOwzaHZ0.js +1 -0
- package/dist/web/assets/vue-Dz_q6gML.js +1 -0
- package/dist/web/assets/wasm-C7N7kd8H.js +1 -0
- package/dist/web/assets/worker-B--T_fs_.js +7 -0
- package/dist/web/assets/xml-Bz5Z3pZJ.js +1 -0
- package/dist/web/assets/yaml-rwi0_p6S.js +1 -0
- package/dist/web/favicon.svg +5 -0
- package/dist/web/index.html +16 -0
- package/package.json +41 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=[Object.freeze(JSON.parse('{"displayName":"Markdown","name":"markdown","patterns":[{"include":"#frontMatter"},{"include":"#block"}],"repository":{"ampersand":{"match":"&(?!([0-9A-Za-z]+|#[0-9]+|#x\\\\h+);)","name":"meta.other.valid-ampersand.markdown"},"block":{"patterns":[{"include":"#separator"},{"include":"#heading"},{"include":"#blockquote"},{"include":"#lists"},{"include":"#fenced_code_block"},{"include":"#raw_block"},{"include":"#link-def"},{"include":"#html"},{"include":"#table"},{"include":"#paragraph"}]},"blockquote":{"begin":"(^|\\\\G) {0,3}(>) ?","captures":{"2":{"name":"punctuation.definition.quote.begin.markdown"}},"name":"markup.quote.markdown","patterns":[{"include":"#block"}],"while":"(^|\\\\G)\\\\s*(>) ?"},"bold":{"begin":"(?<open>(\\\\*\\\\*(?=\\\\w)|(?<!\\\\w)\\\\*\\\\*|(?<!\\\\w)\\\\b__))(?=\\\\S)(?=(<[^>]*+>|(?<raw>`+)([^`]|(?!(?<!`)\\\\k<raw>(?!`))`)*+\\\\k<raw>|\\\\\\\\[-\\\\]!#(-+.>\\\\[\\\\\\\\_`{}]?+|\\\\[((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+](( ?\\\\[[^]]*+])|(\\\\([\\\\t ]*+<?(.*?)>?[\\\\t ]*+((?<title>[\\"\'])(.*?)\\\\k<title>)?\\\\))))|(?!(?<=\\\\S)\\\\k<open>).)++(?<=\\\\S)(?=__\\\\b|\\\\*\\\\*)\\\\k<open>)","captures":{"1":{"name":"punctuation.definition.bold.markdown"}},"end":"(?<=\\\\S)(\\\\1)","name":"markup.bold.markdown","patterns":[{"applyEndPatternLast":1,"begin":"(?=<[^>]*?>)","end":"(?<=>)","patterns":[{"include":"text.html.derivative"}]},{"include":"#escape"},{"include":"#ampersand"},{"include":"#bracket"},{"include":"#raw"},{"include":"#bold"},{"include":"#italic"},{"include":"#image-inline"},{"include":"#link-inline"},{"include":"#link-inet"},{"include":"#link-email"},{"include":"#image-ref"},{"include":"#link-ref-literal"},{"include":"#link-ref"},{"include":"#link-ref-shortcut"},{"include":"#strikethrough"}]},"bracket":{"match":"<(?![!$/?A-Za-z])","name":"meta.other.valid-bracket.markdown"},"escape":{"match":"\\\\\\\\[-\\\\]!#(-+.>\\\\[\\\\\\\\_`{}]","name":"constant.character.escape.markdown"},"fenced_code_block":{"patterns":[{"include":"#fenced_code_block_css"},{"include":"#fenced_code_block_basic"},{"include":"#fenced_code_block_ini"},{"include":"#fenced_code_block_java"},{"include":"#fenced_code_block_lua"},{"include":"#fenced_code_block_makefile"},{"include":"#fenced_code_block_perl"},{"include":"#fenced_code_block_r"},{"include":"#fenced_code_block_ruby"},{"include":"#fenced_code_block_php"},{"include":"#fenced_code_block_sql"},{"include":"#fenced_code_block_vs_net"},{"include":"#fenced_code_block_xml"},{"include":"#fenced_code_block_xsl"},{"include":"#fenced_code_block_yaml"},{"include":"#fenced_code_block_dosbatch"},{"include":"#fenced_code_block_clojure"},{"include":"#fenced_code_block_coffee"},{"include":"#fenced_code_block_c"},{"include":"#fenced_code_block_cpp"},{"include":"#fenced_code_block_diff"},{"include":"#fenced_code_block_dockerfile"},{"include":"#fenced_code_block_git_commit"},{"include":"#fenced_code_block_git_rebase"},{"include":"#fenced_code_block_go"},{"include":"#fenced_code_block_groovy"},{"include":"#fenced_code_block_pug"},{"include":"#fenced_code_block_ignore"},{"include":"#fenced_code_block_js"},{"include":"#fenced_code_block_js_regexp"},{"include":"#fenced_code_block_json"},{"include":"#fenced_code_block_jsonc"},{"include":"#fenced_code_block_jsonl"},{"include":"#fenced_code_block_less"},{"include":"#fenced_code_block_objc"},{"include":"#fenced_code_block_swift"},{"include":"#fenced_code_block_scss"},{"include":"#fenced_code_block_perl6"},{"include":"#fenced_code_block_powershell"},{"include":"#fenced_code_block_python"},{"include":"#fenced_code_block_julia"},{"include":"#fenced_code_block_regexp_python"},{"include":"#fenced_code_block_rust"},{"include":"#fenced_code_block_scala"},{"include":"#fenced_code_block_shell"},{"include":"#fenced_code_block_ts"},{"include":"#fenced_code_block_tsx"},{"include":"#fenced_code_block_csharp"},{"include":"#fenced_code_block_fsharp"},{"include":"#fenced_code_block_dart"},{"include":"#fenced_code_block_handlebars"},{"include":"#fenced_code_block_markdown"},{"include":"#fenced_code_block_log"},{"include":"#fenced_code_block_erlang"},{"include":"#fenced_code_block_elixir"},{"include":"#fenced_code_block_latex"},{"include":"#fenced_code_block_bibtex"},{"include":"#fenced_code_block_twig"},{"include":"#fenced_code_block_yang"},{"include":"#fenced_code_block_abap"},{"include":"#fenced_code_block_restructuredtext"},{"include":"#fenced_code_block_unknown"}]},"fenced_code_block_abap":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(abap)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.abap","patterns":[{"include":"source.abap"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_basic":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(html?|shtml|xhtml|inc|tmpl|tpl)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.html","patterns":[{"include":"text.html.basic"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_bibtex":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(bibtex)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.bibtex","patterns":[{"include":"text.bibtex"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_c":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:([ch])((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.c","patterns":[{"include":"source.c"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_clojure":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(cl(?:js??|ojure))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.clojure","patterns":[{"include":"source.clojure"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_coffee":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(coffee|Cakefile|coffee.erb)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.coffee","patterns":[{"include":"source.coffee"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_cpp":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(c(?:pp|\\\\+\\\\+|xx))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.cpp source.cpp","patterns":[{"include":"source.cpp"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_csharp":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(c(?:s|sharp|#))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.csharp","patterns":[{"include":"source.cs"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_css":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(css(?:|.erb))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.css","patterns":[{"include":"source.css"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_dart":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(dart)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dart","patterns":[{"include":"source.dart"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_diff":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(patch|diff|rej)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.diff","patterns":[{"include":"source.diff"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_dockerfile":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:([Dd]ockerfile)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dockerfile","patterns":[{"include":"source.dockerfile"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_dosbatch":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(bat(?:|ch))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dosbatch","patterns":[{"include":"source.batchfile"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_elixir":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(elixir)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.elixir","patterns":[{"include":"source.elixir"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_erlang":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(erlang)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.erlang","patterns":[{"include":"source.erlang"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_fsharp":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(f(?:s|sharp|#))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.fsharp","patterns":[{"include":"source.fsharp"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_git_commit":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:((?:COMMIT_EDIT|MERGE_)MSG)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.git_commit","patterns":[{"include":"text.git-commit"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_git_rebase":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(git-rebase-todo)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.git_rebase","patterns":[{"include":"text.git-rebase"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_go":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(go(?:|lang))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.go","patterns":[{"include":"source.go"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_groovy":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(g(?:roovy|vy))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.groovy","patterns":[{"include":"source.groovy"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_handlebars":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(h(?:andlebars|bs))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.handlebars","patterns":[{"include":"text.html.handlebars"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_ignore":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:((?:git|)ignore)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.ignore","patterns":[{"include":"source.ignore"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_ini":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(ini|conf)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.ini","patterns":[{"include":"source.ini"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_java":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(java|bsh)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.java","patterns":[{"include":"source.java"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_js":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(jsx??|javascript|es6|mjs|cjs|dataviewjs|\\\\{\\\\.js.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.javascript","patterns":[{"include":"source.js"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_js_regexp":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(regexp)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.js_regexp","patterns":[{"include":"source.js.regexp"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_json":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(json5??|sublime-settings|sublime-menu|sublime-keymap|sublime-mousemap|sublime-theme|sublime-build|sublime-project|sublime-completions)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.json","patterns":[{"include":"source.json"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_jsonc":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(jsonc)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.jsonc","patterns":[{"include":"source.json.comments"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_jsonl":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(jsonl(?:|ines))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.jsonl","patterns":[{"include":"source.json.lines"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_julia":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(julia|\\\\{\\\\.julia.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.julia","patterns":[{"include":"source.julia"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_latex":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:((?:la|)tex)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.latex","patterns":[{"include":"text.tex.latex"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_less":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(less)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.less","patterns":[{"include":"source.css.less"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_log":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(log)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.log","patterns":[{"include":"text.log"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_lua":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(lua)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.lua","patterns":[{"include":"source.lua"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_makefile":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:((?:[Mm]|GNUm|OCamlM)akefile)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.makefile","patterns":[{"include":"source.makefile"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_markdown":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(m(?:arkdown|d))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.markdown","patterns":[{"include":"text.html.markdown"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_objc":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(objectivec|objective-c|mm|objc|obj-c|[hm])((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.objc","patterns":[{"include":"source.objc"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_perl":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(perl|pl|pm|pod|t|PL|psgi|vcl)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.perl","patterns":[{"include":"source.perl"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_perl6":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(perl6|p6|pl6|pm6|nqp)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.perl6","patterns":[{"include":"source.perl.6"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_php":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(php3??|php4|php5|phpt|phtml|aw|ctp)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.php","patterns":[{"include":"text.html.basic"},{"include":"source.php"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_powershell":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(p(?:owershell|s1|sm1|sd1|wsh))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.powershell","patterns":[{"include":"source.powershell"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_pug":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(jade|pug)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.pug","patterns":[{"include":"text.pug"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_python":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(python|py3??|rpy|pyw|cpy|SConstruct|Sconstruct|sconstruct|SConscript|gypi??|\\\\{\\\\.python.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.python","patterns":[{"include":"source.python"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_r":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:([RSrs]|Rprofile|\\\\{\\\\.r.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.r","patterns":[{"include":"source.r"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_regexp_python":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(re)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.regexp_python","patterns":[{"include":"source.regexp.python"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_restructuredtext":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(r(?:estructuredtext|st))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.restructuredtext","patterns":[{"include":"source.rst"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_ruby":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(ruby|rbx??|rjs|Rakefile|rake|cgi|fcgi|gemspec|irbrc|Capfile|ru|prawn|Cheffile|Gemfile|Guardfile|Hobofile|Vagrantfile|Appraisals|Rantfile|Berksfile|Berksfile.lock|Thorfile|Puppetfile)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.ruby","patterns":[{"include":"source.ruby"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_rust":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(rust|rs|\\\\{\\\\.rust.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.rust","patterns":[{"include":"source.rust"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_scala":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(s(?:cala|bt))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.scala","patterns":[{"include":"source.scala"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_scss":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(scss)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.scss","patterns":[{"include":"source.css.scss"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_shell":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(shell|sh|bash|zsh|bashrc|bash_profile|bash_login|profile|bash_logout|.textmate_init|\\\\{\\\\.bash.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.shellscript","patterns":[{"include":"source.shell"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_sql":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(sql|ddl|dml)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.sql","patterns":[{"include":"source.sql"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_swift":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(swift)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.swift","patterns":[{"include":"source.swift"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_ts":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(t(?:ypescript|s))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.typescript","patterns":[{"include":"source.ts"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_tsx":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(tsx)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.typescriptreact","patterns":[{"include":"source.tsx"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_twig":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(twig)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.twig","patterns":[{"include":"source.twig"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_unknown":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?=([^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown"},"fenced_code_block_vs_net":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(vb)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.vs_net","patterns":[{"include":"source.asp.vb.net"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_xml":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(xml|xsd|tld|jsp|pt|cpt|dtml|rss|opml)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.xml","patterns":[{"include":"text.xml"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_xsl":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(xslt??)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.xsl","patterns":[{"include":"text.xml.xsl"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_yaml":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(ya?ml)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.yaml","patterns":[{"include":"source.yaml"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_yang":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(yang)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.yang","patterns":[{"include":"source.yang"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"frontMatter":{"applyEndPatternLast":1,"begin":"\\\\A(?=(-{3,}))","end":"^(?: {0,3}\\\\1-*[\\\\t ]*|[\\\\t ]*\\\\.{3})$","endCaptures":{"0":{"name":"punctuation.definition.end.frontmatter"}},"patterns":[{"begin":"\\\\A(-{3,})(.*)$","beginCaptures":{"1":{"name":"punctuation.definition.begin.frontmatter"},"2":{"name":"comment.frontmatter"}},"contentName":"meta.embedded.block.frontmatter","patterns":[{"include":"source.yaml"}],"while":"^(?!(?: {0,3}\\\\1-*[\\\\t ]*|[\\\\t ]*\\\\.{3})$)"}]},"heading":{"captures":{"1":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{6})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.6.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{5})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.5.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{4})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.4.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{3})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.3.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{2})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.2.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{1})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.1.markdown"}]}},"match":"(?:^|\\\\G) {0,3}(#{1,6}\\\\s+(.*?)(\\\\s+#{1,6})?\\\\s*)$","name":"markup.heading.markdown"},"heading-setext":{"patterns":[{"match":"^(={3,})(?=[\\\\t ]*$\\\\n?)","name":"markup.heading.setext.1.markdown"},{"match":"^(-{3,})(?=[\\\\t ]*$\\\\n?)","name":"markup.heading.setext.2.markdown"}]},"html":{"patterns":[{"begin":"(^|\\\\G)\\\\s*(<!--)","captures":{"1":{"name":"punctuation.definition.comment.html"},"2":{"name":"punctuation.definition.comment.html"}},"end":"(-->)","name":"comment.block.html"},{"begin":"(?i)(^|\\\\G)\\\\s*(?=<(script|style|pre)(\\\\s|$|>)(?!.*?</(script|style|pre)>))","end":"(?i)(.*)((</)(script|style|pre)(>))","endCaptures":{"1":{"patterns":[{"include":"text.html.derivative"}]},"2":{"name":"meta.tag.structure.$4.end.html"},"3":{"name":"punctuation.definition.tag.begin.html"},"4":{"name":"entity.name.tag.html"},"5":{"name":"punctuation.definition.tag.end.html"}},"patterns":[{"begin":"(\\\\s*|$)","patterns":[{"include":"text.html.derivative"}],"while":"(?i)^(?!.*</(script|style|pre)>)"}]},{"begin":"(?i)(^|\\\\G)\\\\s*(?=</?[A-Za-z]+[^\\\\&/;gt\\\\s]*(\\\\s|$|/?>))","patterns":[{"include":"text.html.derivative"}],"while":"^(?!\\\\s*$)"},{"begin":"(^|\\\\G)\\\\s*(?=(<(?:[-0-9A-Za-z](/?>|\\\\s.*?>)|/[-0-9A-Za-z]>))\\\\s*$)","patterns":[{"include":"text.html.derivative"}],"while":"^(?!\\\\s*$)"}]},"image-inline":{"captures":{"1":{"name":"punctuation.definition.link.description.begin.markdown"},"2":{"name":"string.other.link.description.markdown"},"4":{"name":"punctuation.definition.link.description.end.markdown"},"5":{"name":"punctuation.definition.metadata.markdown"},"7":{"name":"punctuation.definition.link.markdown"},"8":{"name":"markup.underline.link.image.markdown"},"9":{"name":"punctuation.definition.link.markdown"},"10":{"name":"markup.underline.link.image.markdown"},"12":{"name":"string.other.link.description.title.markdown"},"13":{"name":"punctuation.definition.string.begin.markdown"},"14":{"name":"punctuation.definition.string.end.markdown"},"15":{"name":"string.other.link.description.title.markdown"},"16":{"name":"punctuation.definition.string.begin.markdown"},"17":{"name":"punctuation.definition.string.end.markdown"},"18":{"name":"string.other.link.description.title.markdown"},"19":{"name":"punctuation.definition.string.begin.markdown"},"20":{"name":"punctuation.definition.string.end.markdown"},"21":{"name":"punctuation.definition.metadata.markdown"}},"match":"(!\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(])(\\\\()[\\\\t ]*((<)((?:\\\\\\\\[<>]|[^\\\\n<>])*)(>)|((?<url>(?>[^()\\\\s]+)|\\\\(\\\\g<url>*\\\\))*))[\\\\t ]*(?:((\\\\().+?(\\\\)))|((\\").+?(\\"))|((\').+?(\')))?\\\\s*(\\\\))","name":"meta.image.inline.markdown"},"image-ref":{"captures":{"1":{"name":"punctuation.definition.link.description.begin.markdown"},"2":{"name":"string.other.link.description.markdown"},"4":{"name":"punctuation.definition.link.description.end.markdown"},"5":{"name":"punctuation.definition.constant.markdown"},"6":{"name":"constant.other.reference.link.markdown"},"7":{"name":"punctuation.definition.constant.markdown"}},"match":"(!\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(]) ?(\\\\[)(.*?)(])","name":"meta.image.reference.markdown"},"inline":{"patterns":[{"include":"#ampersand"},{"include":"#bracket"},{"include":"#bold"},{"include":"#italic"},{"include":"#raw"},{"include":"#strikethrough"},{"include":"#escape"},{"include":"#image-inline"},{"include":"#image-ref"},{"include":"#link-email"},{"include":"#link-inet"},{"include":"#link-inline"},{"include":"#link-ref"},{"include":"#link-ref-literal"},{"include":"#link-ref-shortcut"}]},"italic":{"begin":"(?<open>(\\\\*(?=\\\\w)|(?<!\\\\w)\\\\*|(?<!\\\\w)\\\\b_))(?=\\\\S)(?=(<[^>]*+>|(?<raw>`+)([^`]|(?!(?<!`)\\\\k<raw>(?!`))`)*+\\\\k<raw>|\\\\\\\\[-\\\\]!#(-+.>\\\\[\\\\\\\\_`{}]?+|\\\\[((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+](( ?\\\\[[^]]*+])|(\\\\([\\\\t ]*+<?(.*?)>?[\\\\t ]*+((?<title>[\\"\'])(.*?)\\\\k<title>)?\\\\))))|\\\\k<open>\\\\k<open>|(?!(?<=\\\\S)\\\\k<open>).)++(?<=\\\\S)(?=_\\\\b|\\\\*)\\\\k<open>)","captures":{"1":{"name":"punctuation.definition.italic.markdown"}},"end":"(?<=\\\\S)(\\\\1)((?!\\\\1)|(?=\\\\1\\\\1))","name":"markup.italic.markdown","patterns":[{"applyEndPatternLast":1,"begin":"(?=<[^>]*?>)","end":"(?<=>)","patterns":[{"include":"text.html.derivative"}]},{"include":"#escape"},{"include":"#ampersand"},{"include":"#bracket"},{"include":"#raw"},{"include":"#bold"},{"include":"#image-inline"},{"include":"#link-inline"},{"include":"#link-inet"},{"include":"#link-email"},{"include":"#image-ref"},{"include":"#link-ref-literal"},{"include":"#link-ref"},{"include":"#link-ref-shortcut"},{"include":"#strikethrough"}]},"link-def":{"captures":{"1":{"name":"punctuation.definition.constant.markdown"},"2":{"name":"constant.other.reference.link.markdown"},"3":{"name":"punctuation.definition.constant.markdown"},"4":{"name":"punctuation.separator.key-value.markdown"},"5":{"name":"punctuation.definition.link.markdown"},"6":{"name":"markup.underline.link.markdown"},"7":{"name":"punctuation.definition.link.markdown"},"8":{"name":"markup.underline.link.markdown"},"9":{"name":"string.other.link.description.title.markdown"},"10":{"name":"punctuation.definition.string.begin.markdown"},"11":{"name":"punctuation.definition.string.end.markdown"},"12":{"name":"string.other.link.description.title.markdown"},"13":{"name":"punctuation.definition.string.begin.markdown"},"14":{"name":"punctuation.definition.string.end.markdown"},"15":{"name":"string.other.link.description.title.markdown"},"16":{"name":"punctuation.definition.string.begin.markdown"},"17":{"name":"punctuation.definition.string.end.markdown"}},"match":"\\\\s*(\\\\[)([^]]+?)(])(:)[\\\\t ]*(?:(<)((?:\\\\\\\\[<>]|[^\\\\n<>])*)(>)|(\\\\S+?))[\\\\t ]*(?:((\\\\().+?(\\\\)))|((\\").+?(\\"))|((\').+?(\')))?\\\\s*$","name":"meta.link.reference.def.markdown"},"link-email":{"captures":{"1":{"name":"punctuation.definition.link.markdown"},"2":{"name":"markup.underline.link.markdown"},"4":{"name":"punctuation.definition.link.markdown"}},"match":"(<)((?:mailto:)?[!#-\'*+\\\\--9=?A-Z^-~]+@[-0-9A-Za-z]+(?:\\\\.[-0-9A-Za-z]+)*)(>)","name":"meta.link.email.lt-gt.markdown"},"link-inet":{"captures":{"1":{"name":"punctuation.definition.link.markdown"},"2":{"name":"markup.underline.link.markdown"},"3":{"name":"punctuation.definition.link.markdown"}},"match":"(<)((?:https?|ftp)://.*?)(>)","name":"meta.link.inet.markdown"},"link-inline":{"captures":{"1":{"name":"punctuation.definition.link.title.begin.markdown"},"2":{"name":"string.other.link.title.markdown","patterns":[{"include":"#raw"},{"include":"#bold"},{"include":"#italic"},{"include":"#strikethrough"},{"include":"#image-inline"}]},"4":{"name":"punctuation.definition.link.title.end.markdown"},"5":{"name":"punctuation.definition.metadata.markdown"},"7":{"name":"punctuation.definition.link.markdown"},"8":{"name":"markup.underline.link.markdown"},"9":{"name":"punctuation.definition.link.markdown"},"10":{"name":"markup.underline.link.markdown"},"12":{"name":"string.other.link.description.title.markdown"},"13":{"name":"punctuation.definition.string.begin.markdown"},"14":{"name":"punctuation.definition.string.end.markdown"},"15":{"name":"string.other.link.description.title.markdown"},"16":{"name":"punctuation.definition.string.begin.markdown"},"17":{"name":"punctuation.definition.string.end.markdown"},"18":{"name":"string.other.link.description.title.markdown"},"19":{"name":"punctuation.definition.string.begin.markdown"},"20":{"name":"punctuation.definition.string.end.markdown"},"21":{"name":"punctuation.definition.metadata.markdown"}},"match":"(\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(])(\\\\()[\\\\t ]*((<)((?:\\\\\\\\[<>]|[^\\\\n<>])*)(>)|((?<url>(?>[^()\\\\s]+)|\\\\(\\\\g<url>*\\\\))*))[\\\\t ]*(?:((\\\\()[^()]*(\\\\)))|((\\")[^\\"]*(\\"))|((\')[^\']*(\')))?\\\\s*(\\\\))","name":"meta.link.inline.markdown"},"link-ref":{"captures":{"1":{"name":"punctuation.definition.link.title.begin.markdown"},"2":{"name":"string.other.link.title.markdown","patterns":[{"include":"#raw"},{"include":"#bold"},{"include":"#italic"},{"include":"#strikethrough"},{"include":"#image-inline"}]},"4":{"name":"punctuation.definition.link.title.end.markdown"},"5":{"name":"punctuation.definition.constant.begin.markdown"},"6":{"name":"constant.other.reference.link.markdown"},"7":{"name":"punctuation.definition.constant.end.markdown"}},"match":"(?<![]\\\\\\\\])(\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(])(\\\\[)([^]]*+)(])","name":"meta.link.reference.markdown"},"link-ref-literal":{"captures":{"1":{"name":"punctuation.definition.link.title.begin.markdown"},"2":{"name":"string.other.link.title.markdown"},"4":{"name":"punctuation.definition.link.title.end.markdown"},"5":{"name":"punctuation.definition.constant.begin.markdown"},"6":{"name":"punctuation.definition.constant.end.markdown"}},"match":"(?<![]\\\\\\\\])(\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(]) ?(\\\\[)(])","name":"meta.link.reference.literal.markdown"},"link-ref-shortcut":{"captures":{"1":{"name":"punctuation.definition.link.title.begin.markdown"},"2":{"name":"string.other.link.title.markdown"},"3":{"name":"punctuation.definition.link.title.end.markdown"}},"match":"(?<![]\\\\\\\\])(\\\\[)((?:[^]\\\\[\\\\\\\\\\\\s]|\\\\\\\\[]\\\\[])+?)((?<!\\\\\\\\)])","name":"meta.link.reference.markdown"},"list_paragraph":{"begin":"(^|\\\\G)(?=\\\\S)(?![*->]\\\\s|[0-9]+\\\\.\\\\s)","name":"meta.paragraph.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"},{"include":"#heading-setext"}],"while":"(^|\\\\G)(?!\\\\s*$|#| {0,3}([-*>_] {2,}){3,}[\\\\t ]*$\\\\n?| {0,3}[*->]| {0,3}[0-9]+\\\\.)"},"lists":{"patterns":[{"begin":"(^|\\\\G)( {0,3})([-*+])([\\\\t ])","beginCaptures":{"3":{"name":"punctuation.definition.list.begin.markdown"}},"name":"markup.list.unnumbered.markdown","patterns":[{"include":"#block"},{"include":"#list_paragraph"}],"while":"((^|\\\\G)( {2,4}|\\\\t))|^([\\\\t ]*)$"},{"begin":"(^|\\\\G)( {0,3})([0-9]+[).])([\\\\t ])","beginCaptures":{"3":{"name":"punctuation.definition.list.begin.markdown"}},"name":"markup.list.numbered.markdown","patterns":[{"include":"#block"},{"include":"#list_paragraph"}],"while":"((^|\\\\G)( {2,4}|\\\\t))|^([\\\\t ]*)$"}]},"paragraph":{"begin":"(^|\\\\G) {0,3}(?=[^\\\\t\\\\n ])","name":"meta.paragraph.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"},{"include":"#heading-setext"}],"while":"(^|\\\\G)((?=\\\\s*[-=]{3,}\\\\s*$)| {4,}(?=[^\\\\t\\\\n ]))"},"raw":{"captures":{"1":{"name":"punctuation.definition.raw.markdown"},"3":{"name":"punctuation.definition.raw.markdown"}},"match":"(`+)((?:[^`]|(?!(?<!`)\\\\1(?!`))`)*+)(\\\\1)","name":"markup.inline.raw.string.markdown"},"raw_block":{"begin":"(^|\\\\G)( {4}|\\\\t)","name":"markup.raw.block.markdown","while":"(^|\\\\G)( {4}|\\\\t)"},"separator":{"match":"(^|\\\\G) {0,3}([-*_])( {0,2}\\\\2){2,}[\\\\t ]*$\\\\n?","name":"meta.separator.markdown"},"strikethrough":{"captures":{"1":{"name":"punctuation.definition.strikethrough.markdown"},"2":{"patterns":[{"applyEndPatternLast":1,"begin":"(?=<[^>]*?>)","end":"(?<=>)","patterns":[{"include":"text.html.derivative"}]},{"include":"#escape"},{"include":"#ampersand"},{"include":"#bracket"},{"include":"#raw"},{"include":"#bold"},{"include":"#italic"},{"include":"#image-inline"},{"include":"#link-inline"},{"include":"#link-inet"},{"include":"#link-email"},{"include":"#image-ref"},{"include":"#link-ref-literal"},{"include":"#link-ref"},{"include":"#link-ref-shortcut"}]},"3":{"name":"punctuation.definition.strikethrough.markdown"}},"match":"(?<!\\\\\\\\)(~{2,})(?!(?<=\\\\w~~)_)((?:[^~]|(?!(?<![\\\\\\\\~])\\\\1(?!~))~)*+)(\\\\1)(?!(?<=_\\\\1)\\\\w)","name":"markup.strikethrough.markdown"},"table":{"begin":"(^|\\\\G)(\\\\|)(?=[^|].+\\\\|\\\\s*$)","beginCaptures":{"2":{"name":"punctuation.definition.table.markdown"}},"name":"markup.table.markdown","patterns":[{"match":"\\\\|","name":"punctuation.definition.table.markdown"},{"captures":{"1":{"name":"punctuation.separator.table.markdown"}},"match":"(?<=\\\\|)\\\\s*(:?-+:?)\\\\s*(?=\\\\|)"},{"captures":{"1":{"patterns":[{"include":"#inline"}]}},"match":"(?<=\\\\|)\\\\s*(?=\\\\S)((\\\\\\\\\\\\||[^|])+)(?<=\\\\S)\\\\s*(?=\\\\|)"}],"while":"(^|\\\\G)(?=\\\\|)"}},"scopeName":"text.html.markdown","embeddedLangs":[],"aliases":["md"],"embeddedLangsLazy":["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","jsonl","less","objective-c","swift","scss","raku","powershell","python","julia","regexp","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","log","erlang","elixir","latex","bibtex","abap","rst","html-derivative"]}'))];export{e as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-BLXQ4ufn.js";import{$ as t,$t as n,Bn as r,C as i,E as a,N as o,Nn as s,Pn as c,Qt as l,S as u,T as d,_n as f,an as p,cn as m,dn as h,en as g,gn as ee,in as _,ln as te,nn as ne,on as v,pn as re,rn as ie,sn as y,tn as ae,vn as oe,xn as se,yn as ce,zn as le}from"./index-B297yCgq.js";import{C as ue,D as de,E as b,N as fe,T as pe,a as me,d as he,f as ge,g as _e,h as ve,i as ye,j as be,k as x,l as xe,m as Se,o as S,r as Ce,s as we,t as Te,u as Ee,v as De,y as Oe}from"./file-header-keBlejWu.js";import{_ as C,a as w,c as ke,d as T,f as Ae,g as E,h as D,i as je,l as Me,m as Ne,o as O,p as k,r as A,s as j,u as M}from"./inbox-jP8QPtzZ.js";import{i as Pe,r as Fe,t as Ie}from"./commits-view-B_TQ6AnD.js";import{F as Le,I as N,O as P,a as Re,c as ze,d as Be,f as Ve,h as He,i as Ue,k as F,l as We,m as Ge,o as Ke,p as qe,r as Je,s as I,t as Ye,u as Xe,v as Ze}from"./pull-request-layout-DsDKURcq.js";var L=e(r(),1);function Qe(e){return`Sends this pull request's changes to ${e.provider} (${e.name})`}function $e(e){if(e.included>=e.total)return null;let{generated:t,binary:n,unavailable:r}=e.skipped,i=e.skipped[`too-large`]+e.skipped[`over-budget`],a=[[t,`generated`],[n,`binary`],[i,`over the size limit`],[r,`could not be loaded`]].filter(([e])=>e>0).map(([e,t])=>`${e} ${t}`).join(`, `),o=e.total===1?`file`:`files`;return`Covers ${e.included} of ${e.total} ${o}${a.length>0?` (${a})`:``}`}function et(e,t){switch(e){case`tool-missing`:return`${t.name} was not found. Install it, then try again.`;case`not-signed-in`:return`${t.name} is not signed in. Run ${t.id} once in a terminal to sign in.`;case`timeout`:return`${t.name} took longer than 3 minutes and was stopped.`;case`too-large`:return`These changes are too large to summarize.`;case`busy`:return`Another summary is running. Try again when it is done.`;case`failed`:return`${t.name} could not summarize these changes.`;case`nothing-to-summarize`:return`Nothing to summarize: every changed file was left out or could not be loaded.`;case`server`:return`azdiffs did not answer. Check that it is still running in your terminal.`}}function tt(e){let t=Math.max(0,Math.floor(e/1e3));return t<60?`${t}s`:`${Math.floor(t/60)}m ${String(t%60).padStart(2,`0`)}s`}var nt=`X-Azdiffs-Key`,rt=_({id:p([`claude`,`codex`,`copilot`]),name:v(m(),g(1)),provider:v(m(),g(1))}),it=_({tools:l(rt)}),R=v(ie(),n(),ae(0)),z=_({summary:m(),tool:p([`claude`,`codex`,`copilot`]),generatedAt:m(),iterationId:R,sourceCommit:m(),coverage:_({included:R,total:R,skipped:_({generated:R,binary:R,"too-large":R,"over-budget":R,unavailable:R})})}),at=te([z,_({summary:ne()})]),ot=_({error:m()}),B=class extends Error{name=`SummaryError`;kind;constructor(e){super(`Summary failed: ${e}`),this.kind=e}};async function V(e,t,n){let r=c();if(r===null)throw new B(`server`);try{return await fetch(e,{method:`POST`,headers:{"Content-Type":`application/json`,[nt]:r},body:JSON.stringify(t),credentials:`same-origin`,cache:`no-store`,...n===void 0?{}:{signal:n}})}catch(e){throw n?.aborted===!0?e:new B(`server`)}}async function st(){try{let e=await V(`/api/ai/tools`,{});if(!e.ok)return[];let t=y(it,await e.json().catch(()=>null));return t.success?t.output.tools:[]}catch{return[]}}var ct={title:``,description:``,targetBranch:``,sourceBranch:``,patch:``,includedFiles:0,skipped:[]};async function lt(e){let t=await V(`/api/ai/summary`,{...e,...ct,cachedOnly:!0});if(!t.ok)throw await H(t);let n=y(at,await t.json().catch(()=>null));if(!n.success)throw new B(`server`);return n.output.summary===null?null:n.output}async function ut(e,t,n){let r=await V(`/api/ai/summary`,{...e,...t,regenerate:n.regenerate},n.signal);if(!r.ok)throw await H(r);let i=y(z,await r.json().catch(()=>null));if(!i.success)throw new B(`failed`);return i.output}var dt=[`tool-missing`,`not-signed-in`,`timeout`,`too-large`,`busy`,`failed`];async function H(e){if(e.status===403)return new B(`server`);let t=y(ot,await e.json().catch(()=>null)),n=dt.find(e=>t.success&&e===t.output.error);return n===void 0?new B(e.status>=500&&e.status!==502?`server`:`failed`):new B(n)}var ft=new TextEncoder;async function pt({changeSet:e,load:t,signal:n,concurrency:r=4}){n?.throwIfAborted();let i=e.files,a=new Map;for(let e of i)a.set(e.path,ht());let o=new Map(i.map(e=>[e.path,e])),s=ve({concurrency:r,run:async n=>{let r=await mt(o.get(n),e.baseCommit,t).catch(()=>({kind:`skip`,reason:`unavailable`}));a.get(n)?.resolve(r)}}),c=()=>s.dispose();n?.addEventListener(`abort`,c,{once:!0});try{s.add(i.filter(e=>!_e(e.path)).map(e=>e.path));let e=[],t=[],r=0,o=!1;for(let c of i){if(_e(c.path)){t.push({path:c.path,reason:`generated`});continue}if(o){t.push({path:c.path,reason:`over-budget`});continue}let i=await gt(a.get(c.path).promise,n);i.kind===`skip`?t.push({path:c.path,reason:i.reason}):r+i.bytes>307200?(o=!0,s.dispose(),t.push({path:c.path,reason:`over-budget`})):(e.push(i.patch),r+=i.bytes)}return{patch:e.join(``),files:{included:e.length,total:i.length},skipped:t}}finally{n?.removeEventListener(`abort`,c),s.dispose()}}async function mt(e,t,n){let r=async e=>{if(e===null)return{kind:`text`,text:``};try{return Se(await n(ge(e),e))}catch{return null}},[i,a]=await Promise.all([r(he(e,t)),r(Ee(e))]);if(i===null||a===null)return{kind:`skip`,reason:`unavailable`};if(i.kind===`binary`||a.kind===`binary`)return{kind:`skip`,reason:`binary`};if(i.kind===`too-large`||a.kind===`too-large`)return{kind:`skip`,reason:`too-large`};let o=Pe(e.change===`added`?`/dev/null`:`a/${e.originalPath??e.path}`,e.change===`deleted`?`/dev/null`:`b/${e.path}`,i.text,a.text,void 0,void 0,{context:3,headerOptions:Fe}),s=ft.encode(o).byteLength;return s>40960?{kind:`skip`,reason:`too-large`}:{kind:`patch`,patch:o,bytes:s}}function ht(){let e=()=>{};return{promise:new Promise(t=>{e=t}),resolve:e}}function gt(e,t){return t===void 0?e:new Promise((n,r)=>{let i=()=>r(t.reason);if(t.aborted)return i();t.addEventListener(`abort`,i,{once:!0}),e.then(e=>{t.removeEventListener(`abort`,i),n(e)},e=>{t.removeEventListener(`abort`,i),r(e)})})}var U={tools:[`ai`,`tools`],summary:e=>[`ai`,`summary`,e.tool,e.pullRequest.organization.toLowerCase(),e.pullRequest.project,e.pullRequest.repository,e.pullRequest.pullRequestId,e.iterationId,e.sourceCommit]};function _t(){return se({queryKey:U.tools,queryFn:st,staleTime:1/0,retry:!1})}var W=`azdiffs.summaryTool`;function vt(){try{return window.localStorage.getItem(W)}catch{return null}}function yt(e){try{window.localStorage.setItem(W,e)}catch{}}function bt({tools:e,pullRequest:t,scope:n,latest:r,changeSet:i}){let a=s(),[o,c]=(0,L.useState)(vt),l=e.find(e=>e.id===o)??e[0],[u,d]=(0,L.useState)({kind:`idle`}),f=(0,L.useRef)(null),p=(0,L.useMemo)(()=>({tool:l.id,pullRequest:{organization:n.organization,project:t.repository.projectName,repository:t.repository.name,pullRequestId:t.pullRequestId},iterationId:r.id,sourceCommit:r.sourceCommit}),[l.id,n.organization,t,r.id,r.sourceCommit]),m=se({queryKey:U.summary(p),queryFn:()=>lt(p),staleTime:1/0,retry:!1}).data??null;(0,L.useEffect)(()=>()=>f.current?.abort(),[]);let h=(0,L.useCallback)(({regenerate:e})=>{if(i===void 0)return;f.current?.abort();let r=new AbortController;f.current=r,d({kind:`running`,startedAt:Date.now()}),(async()=>{try{let o=await pt({changeSet:i,load:(e,t)=>xe(a,n,e,t),signal:r.signal});if(o.files.included===0)throw new B(`nothing-to-summarize`);let s=await ut(p,{title:t.title,description:t.description,targetBranch:t.targetBranch,sourceBranch:t.sourceBranch,patch:o.patch,includedFiles:o.files.included,skipped:o.skipped},{regenerate:e,signal:r.signal});if(r.signal.aborted)return;a.setQueryData(U.summary(p),s),d({kind:`idle`})}catch(e){if(r.signal.aborted)return;d({kind:`error`,error:e instanceof B?e.kind:`failed`})}})()},[i,a,n,p,t]),g=(0,L.useCallback)(()=>{f.current?.abort(),f.current=null,d({kind:`idle`})},[]);return{tool:l,chooseTool:(0,L.useCallback)(e=>{yt(e),c(e),d({kind:`idle`})},[]),summary:m,stale:m!==null&&m.iterationId!==r.id,run:u,ready:i!==void 0,start:h,cancel:g}}var G=le(),xt=`rounded-[10px] border border-border bg-surface px-4 py-3`;function St(){let{pullRequest:e,scope:t}=I(),n=_t(),r=N(e.supportsIterations?t:null).data?.at(-1);return n.data===void 0||n.data.length===0||r===void 0||r.sourceCommit===null?null:(0,G.jsx)(Ct,{tools:n.data,pullRequest:e,latest:{...r,sourceCommit:r.sourceCommit}},r.id)}function Ct({tools:e,pullRequest:t,latest:n}){let{scope:r}=I(),i=(0,L.useMemo)(()=>({iteration:n,since:null}),[n]),a=bt({tools:e,pullRequest:t,scope:r,latest:n,changeSet:Le(r,i).data}),o=(0,L.useId)(),s=(0,L.useRef)(null),c=(0,L.useRef)(!1);return(0,L.useEffect)(()=>{let e=a.run.kind===`running`;c.current&&!e&&s.current?.contains(document.activeElement)!==!0&&s.current?.focus(),c.current=e},[a.run.kind]),(0,G.jsxs)(`section`,{ref:s,tabIndex:-1,"aria-labelledby":o,className:`mt-6 ${xt}`,"data-testid":`summary-card`,"data-state":a.run.kind===`idle`&&a.summary!==null?`done`:a.run.kind,children:[(0,G.jsx)(`h2`,{id:o,className:`sr-only`,children:`Summary`}),(0,G.jsx)(wt,{summary:a,tools:e})]})}function wt({summary:e,tools:t}){let{run:n,tool:r}=e;return n.kind===`running`?(0,G.jsx)(Et,{summary:e,startedAt:n.startedAt}):n.kind===`error`?(0,G.jsxs)(`div`,{role:`alert`,className:`flex flex-wrap items-center gap-x-3 gap-y-2 text-[13px]`,children:[(0,G.jsxs)(`p`,{className:`min-w-0 flex-1 text-fg`,children:[(0,G.jsx)(D,{className:`mr-1.5 inline size-3.5 align-[-2px] text-danger`}),et(n.error,r)]}),(0,G.jsx)(`button`,{type:`button`,className:ce,onClick:()=>e.start({regenerate:e.summary!==null}),children:`Try again`})]}):e.summary===null?(0,G.jsx)(Tt,{summary:e,tools:t}):(0,G.jsx)(Dt,{summary:e})}function Tt({summary:e,tools:t}){return(0,G.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-2`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,G.jsxs)(`button`,{type:`button`,className:oe,disabled:!e.ready,onClick:()=>e.start({regenerate:!1}),"data-testid":`summarize`,children:[(0,G.jsx)(`span`,{"aria-hidden":`true`,children:`✦`}),`Summarize changes`]}),t.length>1&&(0,G.jsx)(Ze,{label:`Summarize with`,align:`start`,entries:t.map(t=>({kind:`radio`,label:t.name,checked:t.id===e.tool.id,onSelect:()=>e.chooseTool(t.id)})),trigger:t=>(0,G.jsxs)(`button`,{type:`button`,...t,className:`inline-flex shrink-0 items-center justify-center gap-1.5 rounded-[7px] text-[13px] font-medium whitespace-nowrap transition-colors disabled:cursor-not-allowed disabled:opacity-50 h-7 px-2 text-muted hover:bg-hover hover:text-fg`,"aria-label":`Summarize with ${e.tool.name}: choose the tool`,children:[e.tool.name,(0,G.jsx)(d,{className:`size-3.5`})]})})]}),(0,G.jsx)(`p`,{className:`min-w-0 text-xs text-muted`,"data-testid":`summary-provider`,children:Qe(e.tool)})]})}function Et({summary:e,startedAt:t}){let[n,r]=(0,L.useState)(()=>Date.now()),i=(0,L.useRef)(null);return(0,L.useEffect)(()=>{i.current?.focus();let e=window.setInterval(()=>r(Date.now()),1e3);return()=>window.clearInterval(e)},[]),(0,G.jsxs)(`div`,{className:`flex items-center gap-3 text-[13px]`,children:[(0,G.jsx)(Ot,{}),(0,G.jsxs)(`p`,{className:`min-w-0 flex-1 text-fg`,children:[(0,G.jsxs)(`span`,{role:`status`,children:[`Summarizing with `,e.tool.name,`…`]}),` `,(0,G.jsx)(`span`,{"aria-hidden":`true`,className:`text-muted tabular-nums`,children:tt(n-t)})]}),(0,G.jsx)(`button`,{ref:i,type:`button`,className:ce,onClick:e.cancel,"data-testid":`summary-cancel`,children:`Cancel`})]})}function Dt({summary:e}){let[t,n]=(0,L.useState)(!0),r=(0,L.useId)(),i=e.summary;if(i===null)return null;let o=$e(i.coverage),s=(0,G.jsx)(`button`,{type:`button`,className:`font-medium text-fg hover:underline`,onClick:()=>e.start({regenerate:!0}),children:`Regenerate`});return(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,G.jsxs)(`p`,{"aria-hidden":`true`,className:`text-[13px] font-medium text-muted`,children:[(0,G.jsx)(`span`,{className:`mr-1.5`,children:`✦`}),`Summary`]}),(0,G.jsxs)(`button`,{type:`button`,"aria-expanded":t,"aria-controls":r,"aria-label":t?`Hide summary`:`Show summary`,onClick:()=>n(e=>!e),className:`${re} ml-auto`,children:[t?(0,G.jsx)(d,{className:`size-3.5`}):(0,G.jsx)(a,{className:`size-3.5`}),t?`Hide`:`Show`]})]}),t&&(0,G.jsx)(`div`,{id:r,className:`mt-2`,"data-testid":`summary-text`,children:(0,G.jsx)(S,{source:i.summary})}),e.stale&&(0,G.jsxs)(`p`,{className:`mt-3 text-xs text-fg`,"data-testid":`summary-stale`,children:[(0,G.jsx)(D,{className:`mr-1 inline size-3.5 align-[-2px] text-modified`}),`Newer changes since this summary · `,s]}),(0,G.jsxs)(`div`,{className:`mt-3 space-y-0.5 border-t border-border pt-2.5 text-xs text-muted`,children:[(0,G.jsxs)(`p`,{"data-testid":`summary-footer`,children:[e.tool.name,` · for update `,i.iterationId,` ·`,` `,(0,G.jsx)(`time`,{dateTime:i.generatedAt,title:E(i.generatedAt),children:C(i.generatedAt)}),` `,`· `,s]}),o!==null&&(0,G.jsx)(`p`,{"data-testid":`summary-coverage`,children:o})]})]})}function Ot(){return(0,G.jsxs)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 16 16`,className:`size-4 shrink-0 animate-spin text-accent motion-reduce:animate-none`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,children:[(0,G.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6`,className:`opacity-25`}),(0,G.jsx)(`path`,{d:`M14 8a6 6 0 0 0-6-6`})]})}var kt={VoteUpdate:`vote`,RefUpdate:`push`,ReviewersUpdate:`reviewers`,StatusUpdate:`status`,PolicyStatusUpdate:`policy`,MergeAttempt:`merge`};function At(e){return kt[e.threadType??``]??`other`}var jt={vote:`Vote`,push:`Push`,reviewers:`Reviewers`,status:`Status`,policy:`Policy`,merge:`Merge`,other:`Activity`};function K(e){let t=e.comments[0]?.publishedDate??null,n=t===null?NaN:Date.parse(t);return Number.isNaN(n)?fe(e):n}function q(e){let t=[];for(let n of e){let e=x(n);e.kind===`pull-request`?t.push({kind:`thread`,at:K(n),thread:n}):e.kind===`system`&&t.push({kind:`activity`,at:K(n),thread:n,activity:At(n)})}return t.sort((e,t)=>e.at-t.at||e.thread.id-t.thread.id)}function Mt(e){let t=0,n=0;for(let r of e){let e=x(r).kind;(e===`line`||e===`file`)&&(t++,be(r.status)||n++)}return{total:t,active:n}}var Nt=/@<([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})>/gi,Pt=/^[A-Za-z][\w-]*(?:\.[A-Za-z][\w-]*)+:\s+(?=\S)/;function J(e){return/^[A-Za-z][\w-]*(?:\.[A-Za-z][\w-]*)+$/.test(e.trim())}var Ft={10:`approved`,5:`approved with suggestions`,0:`reset their vote`,[-5]:`is waiting for the author`,[-10]:`rejected`},It=/^(.*?)\s*\bvoted\s+(-?\d+)\.?$/;function Lt(e){let t=e.comments[0];if(t===void 0)return``;let n=new Map(e.identities.map(e=>[e.id.toLowerCase(),e])),r=t.content.replace(Nt,(e,t)=>{let r=n.get(t.toLowerCase());return r===void 0?e:`@${r.displayName}`}).replace(/\s+/g,` `).trim().replace(Pt,``),i=t.author.displayName.trim(),a=e.threadType===`VoteUpdate`?It.exec(r):null;if(a!==null){let t=Ft[e.voteResult??Number(a[2])];if(t!==void 0){let e=(a[1]??``).trim();return e.length>0?`${e} ${t}`:i.length>0&&!J(i)?`${i} ${t}`:t}}return i.length===0||i===`Unknown`||J(i)||r.includes(i)?r:r.length===0?i:`${i}: ${r}`}var Rt={approved:`Approved`,"approved-with-suggestions":`Approved with suggestions`,"waiting-for-author":`Waiting for author`,rejected:`Rejected`,"no-response":`No response`,declined:`Declined`};function Y(e){return e.vote>=10?`approved`:e.vote>0?`approved-with-suggestions`:e.vote<=-10?`rejected`:e.vote<0?`waiting-for-author`:e.hasDeclined?`declined`:`no-response`}var X={rejected:0,"waiting-for-author":1,approved:2,"approved-with-suggestions":3,"no-response":4,declined:5};function zt(e){let t=[...e].sort((e,t)=>X[Y(e)]-X[Y(t)]||e.displayName.localeCompare(t.displayName));return{required:t.filter(e=>e.isRequired),optional:t.filter(e=>!e.isRequired)}}function Bt(e){return/^\[[^\]]+\]\\(.+)$/.exec(e.displayName)?.[1]??e.displayName}var Vt={approved:`text-added`,"approved-with-suggestions":`text-added`,"waiting-for-author":`text-warning`,rejected:`text-danger`,"no-response":`text-muted`,declined:`text-muted`};function Ht({state:e}){let t=`size-3.5 ${Vt[e]}`;switch(e){case`approved`:case`approved-with-suggestions`:return(0,G.jsx)(A,{className:t});case`waiting-for-author`:return(0,G.jsx)(w,{className:t});case`rejected`:return(0,G.jsx)(O,{className:t});case`declined`:return(0,G.jsx)(Ne,{className:t});case`no-response`:return(0,G.jsx)(je,{className:t})}}function Ut({reviewer:e}){let t=Y(e),n=e.isContainer===!0;return(0,G.jsxs)(`li`,{className:`flex min-w-0 items-start gap-2.5 py-1 text-[13px]`,"data-testid":`reviewer`,"data-state":t,children:[(0,G.jsx)(`span`,{className:`mt-0.5`,children:(0,G.jsx)(Ht,{state:t})}),(0,G.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,G.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1`,children:[(0,G.jsx)(`span`,{className:`truncate text-fg`,title:e.displayName,children:Bt(e)}),n&&(0,G.jsxs)(`span`,{className:`inline-flex shrink-0 items-center gap-0.5 rounded-md border border-border px-1 text-[11px] leading-4 text-muted`,children:[(0,G.jsx)(Me,{className:`size-3`}),`Group`]})]}),(0,G.jsx)(`span`,{className:`block text-xs ${Vt[t]}`,"data-testid":`reviewer-vote`,children:Rt[t]})]})]})}function Wt({pullRequest:e}){let{required:t,optional:n}=zt(e.reviewers),r=e.reviewers.filter(e=>e.vote>0).length;return(0,G.jsx)(T,{title:`Reviewers`,testId:`reviewers`,aside:e.reviewers.length>0?`${r} of ${e.reviewers.length} approved`:void 0,children:e.reviewers.length===0?(0,G.jsx)(j,{children:`No reviewers.`}):(0,G.jsxs)(`div`,{className:`space-y-2`,children:[t.length>0&&(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`h3`,{className:`mb-0.5 text-xs text-muted`,children:`Required`}),(0,G.jsx)(`ul`,{"aria-label":`Required reviewers`,children:t.map(e=>(0,G.jsx)(Ut,{reviewer:e},e.id))})]}),n.length>0&&(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`h3`,{className:`mb-0.5 text-xs text-muted`,children:`Optional`}),(0,G.jsx)(`ul`,{"aria-label":`Optional reviewers`,children:n.map(e=>(0,G.jsx)(Ut,{reviewer:e},e.id))})]})]})})}var Gt={failed:`text-danger`,running:`text-accent`,pending:`text-warning`,passed:`text-added`};function Kt({state:e}){let t=`size-3.5 ${Gt[e]}`;switch(e){case`failed`:return(0,G.jsx)(O,{className:t});case`running`:return(0,G.jsx)(Ae,{className:t});case`pending`:return(0,G.jsx)(w,{className:t});case`passed`:return(0,G.jsx)(A,{className:t})}}function qt({check:e}){return(0,G.jsxs)(`li`,{className:`flex min-w-0 items-start gap-2.5 py-1 text-[13px]`,"data-testid":`check`,"data-state":e.state,"data-blocking":e.blocking?`true`:`false`,children:[(0,G.jsx)(`span`,{className:`mt-0.5`,children:(0,G.jsx)(Kt,{state:e.state})}),(0,G.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[e.url===void 0?(0,G.jsx)(`span`,{className:`block truncate text-fg`,title:e.name,children:e.name}):(0,G.jsxs)(P,{href:e.url,className:`flex min-w-0 items-center gap-1 text-fg hover:underline`,children:[(0,G.jsx)(`span`,{className:`truncate`,title:e.name,children:e.name}),(0,G.jsx)(ke,{className:`size-3 text-muted`}),(0,G.jsx)(`span`,{className:`sr-only`,children:`(opens in a new tab)`})]}),(0,G.jsxs)(`span`,{className:`block text-xs text-muted`,children:[(0,G.jsx)(`span`,{className:Gt[e.state],"data-testid":`check-state`,children:qe[e.state]}),` · `,e.blocking?`Required`:`Optional`,e.detail!==void 0&&(0,G.jsx)(`span`,{className:`block truncate`,title:e.detail,children:e.detail})]})]})]})}function Jt({result:e}){let{checks:t,pending:n,evaluationsError:r,statusesError:i}=e,a=r!==null&&i!==null,o=Ge(t),s;return s=n?(0,G.jsx)(M,{label:`Loading checks`}):a?(0,G.jsx)(k,{what:`Checks could not be loaded.`,error:r,onRetry:e.retry}):(0,G.jsxs)(`div`,{className:`space-y-2`,children:[(0,G.jsxs)(`p`,{className:`flex items-center gap-2 text-[13px] ${o.requiredNotPassed>0?`text-fg`:`text-muted`}`,"data-testid":`checks-summary`,children:[o.required>0&&(o.requiredNotPassed===0?(0,G.jsx)(A,{className:`size-3.5 text-added`}):(0,G.jsx)(D,{className:`size-3.5 text-warning`})),o.text]}),t.length>0&&(0,G.jsx)(`ul`,{"aria-label":`Checks`,className:`space-y-0.5`,children:t.map(e=>(0,G.jsx)(qt,{check:e},e.id))}),(r!==null||i!==null)&&(0,G.jsx)(Yt,{what:r===null?`Statuses could not be loaded; only policies are shown.`:`Policies could not be loaded; only statuses are shown.`,onRetry:e.retry})]}),(0,G.jsx)(T,{title:`Checks`,testId:`checks`,children:s})}function Yt({what:e,onRetry:t}){return(0,G.jsxs)(`p`,{role:`alert`,className:`flex flex-wrap items-center gap-x-2 text-[13px] text-muted`,children:[(0,G.jsx)(D,{className:`size-3.5 text-danger`}),e,(0,G.jsx)(`button`,{type:`button`,onClick:t,className:`font-medium text-fg hover:underline`,children:`Try again`})]})}function Xt(e){let t=e.targetBranch;if(e.status===`completed`)return{text:`Completed into ${t}`,tone:`good`};if(e.status===`abandoned`)return{text:`Abandoned`,tone:`neutral`};switch(e.mergeStatus){case`conflicts`:return{text:`Conflicts with ${t}`,tone:`bad`};case`queued`:return{text:`Checking mergeability`,tone:`neutral`};case`succeeded`:return{text:`No conflicts`,tone:`good`};case`rejectedByPolicy`:return{text:`Merge rejected by policy`,tone:`bad`};case`failure`:return{text:`The merge check failed`,tone:`bad`};default:return{text:`Mergeability not checked yet`,tone:`neutral`}}}function Zt({pullRequest:e,children:t}){let n=Xt(e);return(0,G.jsxs)(T,{title:`Branch`,testId:`merge`,children:[(0,G.jsxs)(`p`,{className:`flex items-center gap-2 text-[13px] ${n.tone===`bad`?`text-danger`:n.tone===`good`?`text-fg`:`text-muted`}`,"data-testid":`merge-state`,children:[n.tone===`bad`?(0,G.jsx)(D,{className:`size-3.5`}):n.tone===`good`?(0,G.jsx)(A,{className:`size-3.5 text-added`}):(0,G.jsx)(w,{className:`size-3.5`}),n.text]}),(0,G.jsxs)(`p`,{className:`mt-1 truncate pl-[22px] font-mono text-xs text-muted`,title:`${e.sourceBranch} → ${e.targetBranch}`,children:[e.sourceBranch,` → `,e.targetBranch]}),t!==void 0&&(0,G.jsx)(`div`,{className:`mt-2.5`,children:t})]})}function Qt(e,t,n){return`https://dev.azure.com/${encodeURIComponent(e)}/${encodeURIComponent(t)}/_workitems/edit/${n}`}function $t({organization:e,project:t,query:n}){let r;if(n.isPending)r=(0,G.jsx)(M,{label:`Loading work items`,lines:2});else if(n.data===void 0)r=(0,G.jsx)(k,{what:`Work items could not be loaded.`,error:n.error,onRetry:()=>void n.refetch()});else if(n.data.ids.length===0)r=(0,G.jsx)(j,{children:`No linked work items.`});else{let{ids:i,details:a,detailsProblem:o}=n.data;r=(0,G.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,G.jsx)(`ul`,{"aria-label":`Linked work items`,className:`space-y-1`,children:i.map(n=>{let r=a?.get(n);return(0,G.jsxs)(`li`,{className:`text-[13px]`,"data-testid":`work-item`,children:[(0,G.jsxs)(P,{href:Qt(e,t,n),className:`group flex min-w-0 items-baseline gap-1.5 text-fg`,children:[(0,G.jsxs)(`span`,{className:`shrink-0 font-mono text-xs text-muted group-hover:text-fg`,children:[`#`,n]}),r!==void 0&&(0,G.jsx)(`span`,{className:`min-w-0 truncate group-hover:underline`,title:r.title,children:r.title.length>0?r.title:`(untitled)`})]}),r!==void 0&&(0,G.jsx)(`span`,{className:`block text-xs text-muted`,children:[r.type,r.state].filter(e=>e.length>0).join(` · `)})]},n)})}),a===null&&(0,G.jsx)(`p`,{className:`text-xs text-muted`,"data-testid":`work-items-restricted`,children:o===`access`?`Titles unavailable: your sign-in may not have Work Items: Read access.`:`Titles unavailable: Azure DevOps did not return them.`})]})}return(0,G.jsx)(T,{title:`Work items`,testId:`work-items`,aside:n.data!==void 0&&n.data.ids.length>0?String(n.data.ids.length):void 0,children:r})}function en({labels:e}){return e.length===0?null:(0,G.jsx)(T,{title:`Labels`,testId:`labels`,children:(0,G.jsx)(`ul`,{"aria-label":`Labels`,className:`flex flex-wrap gap-1`,children:e.map(e=>(0,G.jsx)(`li`,{className:`rounded-full bg-raised px-2.5 text-xs leading-6 text-fg shadow-[0_0_0_1px_var(--azd-border)]`,children:e},e))})})}function tn({section:e}){let{location:n,pullRequest:r}=I();return(0,G.jsx)(t,{sidebarLabel:`Inbox`,sidebar:(0,G.jsx)(Ye,{location:n}),topBar:(0,G.jsx)(Je,{mode:`overview`}),children:(0,G.jsx)(an,{section:e},`${r.repository.id}:${r.pullRequestId}`)})}var nn=[],rn=()=>null;function an({section:e}){let{location:t,shortForm:n,pullRequest:r,scope:i}=I(),a=(0,L.useMemo)(()=>We.threads(i),[i]),o=pe({scope:i,comparison:null,repositoryName:r.repository.name,files:nn,lineText:rn,threadsKey:a}),s=Xe(i),c=Ve(i),l=Be(i),u=(0,L.useMemo)(()=>l.data===void 0?null:q(l.data).filter(e=>e.kind===`thread`).length,[l.data]);return(0,G.jsx)(ue,{controller:o,children:(0,G.jsx)(`div`,{className:`azd-scrollbar min-h-0 flex-1 overflow-auto`,"data-testid":`overview`,children:(0,G.jsxs)(`div`,{className:`mx-auto grid w-full max-w-[1240px] gap-x-12 gap-y-10 px-8 pt-10 pb-20 xl:grid-cols-[minmax(0,1fr)_260px]`,children:[(0,G.jsxs)(`div`,{className:`mx-auto w-full max-w-[820px] min-w-0`,children:[(0,G.jsx)(on,{pullRequest:r}),(0,G.jsx)(St,{}),(0,G.jsx)(cn,{location:t,shortForm:n,section:e,discussionCount:u}),(0,G.jsxs)(`div`,{className:`mt-5`,children:[e===`description`&&(0,G.jsx)(dn,{pullRequest:r}),e===`discussion`&&(0,G.jsx)(fn,{scope:i,review:o,location:t,shortForm:n}),e===`commits`&&(0,G.jsx)(Ie,{location:t,shortForm:n,scope:i})]}),(0,G.jsx)(hn,{})]}),(0,G.jsxs)(`aside`,{"aria-label":`Pull request details`,className:`min-w-0 space-y-7`,children:[(0,G.jsx)(Wt,{pullRequest:r}),(0,G.jsx)(Jt,{result:s}),(0,G.jsx)(Zt,{pullRequest:r,children:(0,G.jsx)(He,{})}),(0,G.jsx)($t,{organization:t.organization,project:t.project,query:c}),(0,G.jsx)(en,{labels:r.labels})]})]})})})}function on({pullRequest:e}){let t=Ke(e),{counts:n,scope:r}=I(),i=N(e.supportsIterations?r:null).data?.at(-1)?.id,a=i===void 0?void 0:De(Oe({...r,iteration:i}));return(0,G.jsxs)(`header`,{className:`space-y-3.5`,children:[(0,G.jsxs)(`h1`,{className:`text-[28px] leading-[1.2] font-semibold tracking-[-0.02em] text-fg-strong [text-wrap:balance]`,children:[e.title,` `,(0,G.jsxs)(`span`,{className:`font-normal text-muted tabular-nums`,children:[`#`,e.pullRequestId]})]}),(0,G.jsxs)(`dl`,{className:`flex flex-wrap items-center gap-x-2.5 gap-y-1.5 text-[13px] text-muted`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{className:`sr-only`,children:`Status`}),(0,G.jsxs)(`dd`,{className:`inline-flex h-6 items-center gap-1.5 rounded-full bg-raised px-2.5 font-medium shadow-[0_0_0_1px_var(--azd-border)] ${Re[t]}`,children:[(0,G.jsx)(ze,{status:t,className:`size-3.5`}),(0,G.jsx)(`span`,{"data-testid":`pull-request-status`,children:Ue[t]})]})]}),(0,G.jsx)(Z,{}),(0,G.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,G.jsx)(`dt`,{className:`sr-only`,children:`Author`}),(0,G.jsxs)(`dd`,{className:`flex items-center gap-1.5`,children:[(0,G.jsx)(h,{name:e.author.displayName,size:`sm`}),(0,G.jsx)(`span`,{className:`text-fg`,children:e.author.displayName})]})]}),(0,G.jsx)(Z,{}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{className:`sr-only`,children:`Created`}),(0,G.jsxs)(`dd`,{children:[`Created`,` `,(0,G.jsx)(`time`,{dateTime:e.creationDate,title:E(e.creationDate),children:C(e.creationDate)})]})]}),n.files!==null&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Z,{}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{className:`sr-only`,children:`Files changed`}),(0,G.jsxs)(`dd`,{className:`flex items-baseline gap-2 tabular-nums`,children:[n.files,` `,n.files===`1`?`file`:`files`,a!==void 0&&(0,G.jsx)(ee,{additions:a.additions,deletions:a.deletions})]})]})]})]}),(0,G.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-[13px]`,children:[(0,G.jsxs)(`span`,{className:`sr-only`,"data-testid":`pull-request-branches`,children:[e.sourceBranch,` → `,e.targetBranch]}),(0,G.jsx)(sn,{name:e.targetBranch,label:`Target branch`}),(0,G.jsx)(u,{className:`size-3.5 text-muted`}),(0,G.jsx)(sn,{name:e.sourceBranch,label:`Source branch`,copy:!0})]})]})}function Z(){return(0,G.jsx)(`span`,{"aria-hidden":`true`,className:`text-muted/60`,children:`·`})}function sn({name:e,label:t,copy:n=!1}){let[r,i]=(0,L.useState)(!1);return(0,G.jsxs)(`span`,{className:`inline-flex h-7 max-w-full min-w-0 items-center gap-1 rounded-[7px] border border-border bg-surface pr-1 pl-2.5 font-mono text-xs text-fg`,title:`${t}: ${e}`,children:[(0,G.jsxs)(`span`,{className:`sr-only`,children:[t,`: `]}),(0,G.jsx)(`span`,{className:`min-w-0 truncate`,children:e}),n?(0,G.jsx)(`button`,{type:`button`,"aria-label":r?`Copied`:`Copy branch name ${e}`,title:`Copy branch name`,onClick:()=>{navigator.clipboard.writeText(e).then(()=>{i(!0),window.setTimeout(()=>i(!1),1200)},()=>i(!1))},className:`inline-flex size-5 items-center justify-center rounded text-muted hover:bg-hover hover:text-fg`,children:r?(0,G.jsx)(`span`,{className:`text-[10px]`,children:`✓`}):(0,G.jsx)(o,{className:`size-3.5`})}):(0,G.jsx)(`span`,{className:`w-1.5`})]})}var Q=`inline-flex h-8 items-center gap-1.5 rounded-[6px] px-3 text-[13px] font-medium text-muted transition-colors hover:text-fg aria-[current=page]:bg-[var(--azd-selected)] aria-[current=page]:text-fg aria-[current=page]:shadow-[0_0_0_1px_var(--azd-border)]`;function cn({location:e,shortForm:t,section:n,discussionCount:r}){let{counts:i}=I();return(0,G.jsxs)(`nav`,{"aria-label":`Pull request sections`,className:`mt-7 inline-flex items-center gap-0.5 rounded-[8px] bg-raised p-0.5`,children:[(0,G.jsx)(F,{location:e,shortForm:t,page:{tab:`overview`},current:n===`description`,className:Q,testId:`tab-description`,children:`Description`}),(0,G.jsxs)(F,{location:e,shortForm:t,page:{tab:`discussion`},current:n===`discussion`,className:Q,testId:`tab-discussion`,children:[`Discussion`,r!==null&&r>0&&(0,G.jsxs)(`span`,{className:`font-normal tabular-nums text-muted`,children:[r,(0,G.jsx)(`span`,{className:`sr-only`,children:` comment threads`})]})]}),(0,G.jsxs)(F,{location:e,shortForm:t,page:{tab:`commits`},current:n===`commits`,className:Q,testId:`tab-commits`,children:[`Commits`,i.commits!==null&&(0,G.jsxs)(`span`,{className:`font-normal tabular-nums text-muted`,children:[i.commits,(0,G.jsx)(`span`,{className:`sr-only`,children:` commits`})]})]})]})}var ln=1500,un=30;function dn({pullRequest:e}){let t=e.description.trim(),n=t.length>ln||t.split(`
|
|
2
|
+
`).length>un,[r,i]=(0,L.useState)(!1),a=n&&!r;return(0,G.jsx)(`section`,{"aria-label":`Description`,"data-testid":`description`,children:t.length===0?(0,G.jsx)(`p`,{className:`text-[14px] text-muted`,children:`No description provided.`}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`div`,{id:`overview-description-body`,className:`text-[14px] leading-[1.65] text-fg ${a?`relative max-h-96 overflow-hidden`:``}`,children:[(0,G.jsx)(S,{source:e.description}),a&&(0,G.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-x-0 bottom-0 h-16 bg-gradient-to-t from-[var(--azd-canvas)] to-transparent`})]}),n&&(0,G.jsx)(`button`,{type:`button`,"aria-expanded":r,"aria-controls":`overview-description-body`,onClick:()=>i(e=>!e),className:`mt-2 text-[13px] font-medium text-muted hover:text-fg`,children:r?`Show less`:`Show full description`})]})})}function fn({scope:e,review:t,location:n,shortForm:r}){let i=Be(e),[a,o]=(0,L.useState)(!0),s=(0,L.useMemo)(()=>q(i.data??[]),[i.data]),c=(0,L.useMemo)(()=>Mt(i.data??[]),[i.data]),l=a?s:s.filter(e=>e.kind===`thread`),u=s.length-s.filter(e=>e.kind===`thread`).length,d;return d=i.isPending?(0,G.jsx)(M,{label:`Loading the discussion`}):i.data===void 0?(0,G.jsx)(k,{what:`The discussion could not be loaded.`,error:i.error,onRetry:()=>void i.refetch()}):(0,G.jsxs)(G.Fragment,{children:[l.length===0?(0,G.jsx)(j,{children:s.length===0?`No discussion yet.`:`No comments yet. Activity is hidden.`}):(0,G.jsx)(`ol`,{id:`overview-timeline`,"aria-label":`Timeline`,className:`space-y-2.5`,"data-testid":`timeline`,children:l.map(e=>(0,G.jsx)(pn,{entry:e},e.thread.id))}),c.total>0&&(0,G.jsxs)(`p`,{className:`mt-4 text-[13px] text-muted`,"data-testid":`file-comments`,children:[c.total,` file `,c.total===1?`comment`:`comments`,`,`,` `,c.active===0?`none`:c.active,` active ·`,` `,(0,G.jsx)(F,{location:n,shortForm:r,page:{tab:`files`},className:`font-medium text-fg hover:underline`,onClick:()=>we({commentFilter:c.active>0?`active`:`all`}),children:c.active>0?`Show active comments in Files`:`Show them in Files`})]})]}),(0,G.jsxs)(`section`,{"aria-labelledby":`overview-discussion`,"data-testid":`discussion`,children:[(0,G.jsxs)(`div`,{className:`mb-3 flex items-center gap-2`,children:[(0,G.jsx)(`h2`,{id:`overview-discussion`,className:`sr-only`,children:`Discussion`}),u>0&&(0,G.jsxs)(`button`,{type:`button`,"aria-controls":`overview-timeline`,onClick:()=>o(e=>!e),className:`ml-auto h-7 rounded-[7px] px-2 text-xs font-medium text-muted hover:bg-hover hover:text-fg`,"data-testid":`activity-toggle`,"data-showing":a?`true`:`false`,children:[a?`Hide`:`Show`,` activity (`,u,`)`]})]}),d,(0,G.jsx)(`div`,{className:`mt-4`,children:(0,G.jsx)(mn,{review:t})})]})}function pn({entry:e}){if(e.kind===`thread`)return(0,G.jsx)(`li`,{"data-testid":`timeline-thread`,children:(0,G.jsx)(Ce,{thread:e.thread})});let t=e.thread.comments[0]?.publishedDate??e.thread.publishedDate;return(0,G.jsxs)(`li`,{className:`flex min-w-0 items-baseline gap-3 px-3 text-[13px] text-muted`,"data-testid":`activity`,"data-activity":e.activity,children:[(0,G.jsx)(`span`,{className:`w-20 shrink-0 text-xs text-muted`,children:jt[e.activity]}),(0,G.jsx)(`span`,{className:`min-w-0 flex-1 break-words text-fg/90`,children:Lt(e.thread)}),(0,G.jsx)(`time`,{className:`shrink-0 text-xs tabular-nums`,dateTime:t??void 0,title:E(t),children:C(t)})]})}function mn({review:e}){let t=de,[n,r]=(0,L.useState)(!1),i=b(e.store,e=>e.busy.has(t)),a=b(e.store,e=>e.errors.get(t)),o=b(e.store,e=>e.focus===t),s=(0,L.useRef)(null),c=e.drafts.read(t).length>0;return i||!n&&!c&&a===void 0?(0,G.jsx)(`button`,{ref:s,type:`button`,disabled:i,onClick:()=>{r(!0),e.store.update(()=>({focus:t}))},className:`flex h-10 w-full items-center rounded-[10px] border border-border bg-surface px-3.5 text-left text-[13px] text-muted hover:border-border-strong hover:text-fg disabled:opacity-60`,"data-testid":`pull-request-comment-opener`,children:i?`Sending…`:`Add a comment to the pull request…`}):(0,G.jsx)(me,{drafts:e.drafts,draftKey:t,label:`Comment on the pull request`,submitLabel:`Comment`,busy:i,autoFocus:o,onFocused:()=>e.store.update(()=>({focus:null})),onSubmit:t=>{r(!1),e.commentOnPullRequest(t)},onCancel:()=>{r(!1),e.clearError(t)},returnFocus:()=>requestAnimationFrame(()=>s.current?.focus()),problem:a===void 0?null:(0,G.jsx)(ye,{review:e,errorKey:t,error:a,organization:e.organization}),testId:`pull-request-composer`})}var $=12;function hn(){let{location:e,shortForm:t,pullRequest:n,scope:r}=I(),i=N(n.supportsIterations?r:null).data?.at(-1),a=(0,L.useMemo)(()=>i===void 0?null:{iteration:i,since:null},[i]),o=Le(n.supportsIterations?r:null,a).data?.files;return(0,G.jsxs)(`section`,{"aria-labelledby":`overview-files`,className:`mt-12 border-t border-border pt-6`,"data-testid":`changed-files`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,G.jsx)(`h2`,{id:`overview-files`,className:`text-[18px] font-semibold tracking-[-0.01em] text-fg-strong`,children:o===void 0?`Files changed`:`${o.length} ${o.length===1?`file`:`files`} changed`}),(0,G.jsx)(F,{location:e,shortForm:t,page:{tab:`files`},className:`${f} ml-auto`,testId:`review-changes`,children:`Review changes`})]}),o!==void 0&&o.length>0&&(0,G.jsxs)(`ul`,{className:`mt-4 overflow-hidden rounded-[10px] border border-border bg-surface`,children:[o.slice(0,$).map(e=>(0,G.jsx)(_n,{file:e},e.path)),o.length>$&&(0,G.jsxs)(`li`,{className:`border-t border-border px-3.5 py-2 text-[13px] text-muted`,children:[`and `,o.length-$,` more`]})]})]})}var gn={added:`text-added`,modified:`text-modified`,deleted:`text-deleted`,renamed:`text-renamed`};function _n({file:e}){let t=e.path.lastIndexOf(`/`),n=e.path.slice(t+1),r=t===-1?``:e.path.slice(0,t);return(0,G.jsxs)(`li`,{className:`flex min-w-0 items-center gap-2.5 border-t border-border px-3.5 py-2 text-[13px] first:border-t-0`,children:[(0,G.jsxs)(`span`,{className:gn[e.change],title:Te[e.change],children:[(0,G.jsx)(i,{change:e.change}),(0,G.jsx)(`span`,{className:`sr-only`,children:Te[e.change]})]}),(0,G.jsxs)(`span`,{className:`min-w-0 truncate`,children:[(0,G.jsx)(`span`,{className:`font-medium text-fg`,children:n}),r.length>0&&(0,G.jsx)(`span`,{className:`ml-2 text-muted`,children:r})]})]})}export{tn as t};
|