@knpkv/control-center 0.9.4 → 0.9.5
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/dist/client/.vite/manifest.json +406 -406
- package/dist/client/assets/ActiveWorkPage-CeWw2uZl.js +2 -0
- package/dist/client/assets/ActiveWorkPage-CeWw2uZl.js.map +1 -0
- package/dist/client/assets/{AgentPage-YiYORLod.js → AgentPage-BAy7IgjJ.js} +3 -3
- package/dist/client/assets/AgentPage-BAy7IgjJ.js.map +1 -0
- package/dist/client/assets/{AtlassianOAuthCallbackPage-PfsrTytb.js → AtlassianOAuthCallbackPage-DDCTmcmB.js} +2 -2
- package/dist/client/assets/AtlassianOAuthCallbackPage-DDCTmcmB.js.map +1 -0
- package/dist/client/assets/{AuthorizedSharePage-BCwnILXF.js → AuthorizedSharePage-BZPfotuK.js} +2 -2
- package/dist/client/assets/AuthorizedSharePage-BZPfotuK.js.map +1 -0
- package/dist/client/assets/{BrowserSessionHydrator-BAb76EvO.js → BrowserSessionHydrator-B3yI9F2z.js} +2 -2
- package/dist/client/assets/{BrowserSessionHydrator-BAb76EvO.js.map → BrowserSessionHydrator-B3yI9F2z.js.map} +1 -1
- package/dist/client/assets/{CommandSearch-BSVXQfjF.js → CommandSearch-BrwiVFBI.js} +2 -2
- package/dist/client/assets/{CommandSearch-BSVXQfjF.js.map → CommandSearch-BrwiVFBI.js.map} +1 -1
- package/dist/client/assets/Domain-DH_T_LJ8.js.map +1 -1
- package/dist/client/assets/{ItemsPage-BzinDuxs.js → ItemsPage-CYmo7Dkm.js} +2 -2
- package/dist/client/assets/ItemsPage-CYmo7Dkm.js.map +1 -0
- package/dist/client/assets/{OpenPullRequestPage-BABGk9v2.js → OpenPullRequestPage-BcwTerpY.js} +2 -2
- package/dist/client/assets/OpenPullRequestPage-BcwTerpY.js.map +1 -0
- package/dist/client/assets/{Pages-Bfn7_LhJ.js → Pages-Cj24BSjm.js} +2 -2
- package/dist/client/assets/{Pages-Bfn7_LhJ.js.map → Pages-Cj24BSjm.js.map} +1 -1
- package/dist/client/assets/{PairPage-4meDmW_A.js → PairPage-JhivkRf1.js} +2 -2
- package/dist/client/assets/PairPage-JhivkRf1.js.map +1 -0
- package/dist/client/assets/PortfolioOverview-C0RZCx6V.js +2 -0
- package/dist/client/assets/PortfolioOverview-C0RZCx6V.js.map +1 -0
- package/dist/client/assets/{PullRequestReviewPanel-68vgbLzs.js → PullRequestReviewPanel-BeYAld4m.js} +4 -4
- package/dist/client/assets/{PullRequestReviewPanel-68vgbLzs.js.map → PullRequestReviewPanel-BeYAld4m.js.map} +1 -1
- package/dist/client/assets/ReleaseRoute-1bUQCSJi.js +2 -0
- package/dist/client/assets/ReleaseRoute-1bUQCSJi.js.map +1 -0
- package/dist/client/assets/{ReleaseWorkset-DcI6qwPE.js → ReleaseWorkset-DGufwIFe.js} +2 -2
- package/dist/client/assets/ReleaseWorkset-DGufwIFe.js.map +1 -0
- package/dist/client/assets/{ReviewSuggestionOverview-kNqjbwKQ.js → ReviewSuggestionOverview-CfU-Ynzq.js} +2 -2
- package/dist/client/assets/{ReviewSuggestionOverview-kNqjbwKQ.js.map → ReviewSuggestionOverview-CfU-Ynzq.js.map} +1 -1
- package/dist/client/assets/{ReviewSuggestionPublicationSurface-BtoYEprT.js → ReviewSuggestionPublicationSurface-DA-3PPs_.js} +2 -2
- package/dist/client/assets/ReviewSuggestionPublicationSurface-DA-3PPs_.js.map +1 -0
- package/dist/client/assets/{ServicesPage-DihUx1kr.js → ServicesPage-6G9OTRDn.js} +2 -2
- package/dist/client/assets/ServicesPage-6G9OTRDn.js.map +1 -0
- package/dist/client/assets/{TimelinePage-DyluBeEt.js → TimelinePage-D6YUtggO.js} +2 -2
- package/dist/client/assets/TimelinePage-D6YUtggO.js.map +1 -0
- package/dist/client/assets/{WorkspaceEntityLink-DjonIGqM.js → WorkspaceEntityLink-BqUurz8P.js} +2 -2
- package/dist/client/assets/{WorkspaceEntityLink-DjonIGqM.js.map → WorkspaceEntityLink-BqUurz8P.js.map} +1 -1
- package/dist/client/assets/{WorkspaceEntityRoute-DUVwW5WN.js → WorkspaceEntityRoute-CfupCFGN.js} +4 -4
- package/dist/client/assets/{WorkspaceEntityRoute-DUVwW5WN.js.map → WorkspaceEntityRoute-CfupCFGN.js.map} +1 -1
- package/dist/client/assets/{WorkspaceHomeLink-DSGM8jZK.js → WorkspaceHomeLink-DkAnxFk1.js} +2 -2
- package/dist/client/assets/{WorkspaceHomeLink-DSGM8jZK.js.map → WorkspaceHomeLink-DkAnxFk1.js.map} +1 -1
- package/dist/client/assets/{WorkspacePullRequestDetails-Z3MfihsH.js → WorkspacePullRequestDetails-SexYOZUB.js} +3 -3
- package/dist/client/assets/{WorkspacePullRequestDetails-Z3MfihsH.js.map → WorkspacePullRequestDetails-SexYOZUB.js.map} +1 -1
- package/dist/client/assets/{WorkspaceReleaseLayout-S6XHWEwh.js → WorkspaceReleaseLayout-J_IWrKc9.js} +2 -2
- package/dist/client/assets/{WorkspaceReleaseLayout-S6XHWEwh.js.map → WorkspaceReleaseLayout-J_IWrKc9.js.map} +1 -1
- package/dist/client/assets/{WorkspaceSettingsPage-Dn_eDC3m.js → WorkspaceSettingsPage-CFB0X_Oz.js} +2 -2
- package/dist/client/assets/WorkspaceSettingsPage-CFB0X_Oz.js.map +1 -0
- package/dist/client/assets/{angular-html-B-gwpVlh-DEM_d4RI.js → angular-html-B-gwpVlh-BHk2rITT.js} +2 -2
- package/dist/client/assets/{angular-html-B-gwpVlh-DEM_d4RI.js.map → angular-html-B-gwpVlh-BHk2rITT.js.map} +1 -1
- package/dist/client/assets/{angular-ts-BdaH9qH_-6UMLodBB.js → angular-ts-BdaH9qH_-DDpR3-gU.js} +2 -2
- package/dist/client/assets/{angular-ts-BdaH9qH_-6UMLodBB.js.map → angular-ts-BdaH9qH_-DDpR3-gU.js.map} +1 -1
- package/dist/client/assets/{apl-BLTDDucx-DIkkahEc.js → apl-BLTDDucx-C5lAAuBL.js} +2 -2
- package/dist/client/assets/{apl-BLTDDucx-DIkkahEc.js.map → apl-BLTDDucx-C5lAAuBL.js.map} +1 -1
- package/dist/client/assets/{astro-CM3EIsEH-D5DYxAYu.js → astro-CM3EIsEH-C-4mMpDY.js} +2 -2
- package/dist/client/assets/{astro-CM3EIsEH-D5DYxAYu.js.map → astro-CM3EIsEH-C-4mMpDY.js.map} +1 -1
- package/dist/client/assets/{blade-BuLZ1b4i-CBKkB_Nt.js → blade-BuLZ1b4i-Bo26Vrie.js} +2 -2
- package/dist/client/assets/{blade-BuLZ1b4i-CBKkB_Nt.js.map → blade-BuLZ1b4i-Bo26Vrie.js.map} +1 -1
- package/dist/client/assets/{c-BOe7FNWg-C15nlYFX.js → c-BOe7FNWg-Bn-hh2gC.js} +2 -2
- package/dist/client/assets/{c-BOe7FNWg-C15nlYFX.js.map → c-BOe7FNWg-Bn-hh2gC.js.map} +1 -1
- package/dist/client/assets/{chapel-DS426I0C-DoL0pgIr.js → chapel-DS426I0C-DZfMl2AF.js} +2 -2
- package/dist/client/assets/{chapel-DS426I0C-DoL0pgIr.js.map → chapel-DS426I0C-DZfMl2AF.js.map} +1 -1
- package/dist/client/assets/{cobol-D88xw2SU-DlPiznQQ.js → cobol-D88xw2SU-Dszzocsd.js} +2 -2
- package/dist/client/assets/{cobol-D88xw2SU-DlPiznQQ.js.map → cobol-D88xw2SU-Dszzocsd.js.map} +1 -1
- package/dist/client/assets/{coffee-9O-pYXz5-QB78c27T.js → coffee-9O-pYXz5-B-EAY7Cr.js} +2 -2
- package/dist/client/assets/{coffee-9O-pYXz5-QB78c27T.js.map → coffee-9O-pYXz5-B-EAY7Cr.js.map} +1 -1
- package/dist/client/assets/{controlCenterRelayDock-CDyCPu8u.js → controlCenterRelayDock-Bq4z8Xad.js} +3 -3
- package/dist/client/assets/{controlCenterRelayDock-CDyCPu8u.js.map → controlCenterRelayDock-Bq4z8Xad.js.map} +1 -1
- package/dist/client/assets/{controlCenterRelayDockChrome-BWLgzJhc.js → controlCenterRelayDockChrome-M45VQcSE.js} +2 -2
- package/dist/client/assets/{controlCenterRelayDockChrome-BWLgzJhc.js.map → controlCenterRelayDockChrome-M45VQcSE.js.map} +1 -1
- package/dist/client/assets/{cpp-CPk7VU6o-XEasjJQb.js → cpp-CPk7VU6o-B1PTCDWN.js} +2 -2
- package/dist/client/assets/{cpp-CPk7VU6o-XEasjJQb.js.map → cpp-CPk7VU6o-B1PTCDWN.js.map} +1 -1
- package/dist/client/assets/{crystal-CRftOMVe-Cl7VOKqv.js → crystal-CRftOMVe-3NFSGC4Y.js} +2 -2
- package/dist/client/assets/{crystal-CRftOMVe-Cl7VOKqv.js.map → crystal-CRftOMVe-3NFSGC4Y.js.map} +1 -1
- package/dist/client/assets/{css-DKjIhbA_-BqYkMclh.js → css-DKjIhbA_-BZzy1gno.js} +2 -2
- package/dist/client/assets/{css-DKjIhbA_-BqYkMclh.js.map → css-DKjIhbA_-BZzy1gno.js.map} +1 -1
- package/dist/client/assets/{diff-c2VIds2u.js → diff-CuvBMVEl.js} +3 -3
- package/dist/client/assets/{diff-c2VIds2u.js.map → diff-CuvBMVEl.js.map} +1 -1
- package/dist/client/assets/{edge-CZci3foK-CcvbLJND.js → edge-CZci3foK-BdZTWeOq.js} +2 -2
- package/dist/client/assets/{edge-CZci3foK-CcvbLJND.js.map → edge-CZci3foK-BdZTWeOq.js.map} +1 -1
- package/dist/client/assets/{elixir-BFbWRTPN-DCo1tsYk.js → elixir-BFbWRTPN-BSsfSNAc.js} +2 -2
- package/dist/client/assets/{elixir-BFbWRTPN-DCo1tsYk.js.map → elixir-BFbWRTPN-BSsfSNAc.js.map} +1 -1
- package/dist/client/assets/{elm-BFCSOEGh-KAuEEkOS.js → elm-BFCSOEGh-B7etdM00.js} +2 -2
- package/dist/client/assets/{elm-BFCSOEGh-KAuEEkOS.js.map → elm-BFCSOEGh-B7etdM00.js.map} +1 -1
- package/dist/client/assets/{erb-C0EkZJvn-3O5TlDRJ.js → erb-C0EkZJvn-BUpElafA.js} +2 -2
- package/dist/client/assets/{erb-C0EkZJvn-3O5TlDRJ.js.map → erb-C0EkZJvn-BUpElafA.js.map} +1 -1
- package/dist/client/assets/{git-rebase-DBDs07B2-BKfziPiX.js → git-rebase-DBDs07B2-3YW7dddl.js} +2 -2
- package/dist/client/assets/{git-rebase-DBDs07B2-BKfziPiX.js.map → git-rebase-DBDs07B2-3YW7dddl.js.map} +1 -1
- package/dist/client/assets/{glimmer-js-oqYt1Bty-oOPiIwDh.js → glimmer-js-oqYt1Bty-Q18N5198.js} +2 -2
- package/dist/client/assets/{glimmer-js-oqYt1Bty-oOPiIwDh.js.map → glimmer-js-oqYt1Bty-Q18N5198.js.map} +1 -1
- package/dist/client/assets/{glimmer-ts-CjmgbZTn-C8gjUbKN.js → glimmer-ts-CjmgbZTn-DflPUBBN.js} +2 -2
- package/dist/client/assets/{glimmer-ts-CjmgbZTn-C8gjUbKN.js.map → glimmer-ts-CjmgbZTn-DflPUBBN.js.map} +1 -1
- package/dist/client/assets/{glsl-BqUMGrwT-5PoVKbXD.js → glsl-BqUMGrwT-DZSnNyRQ.js} +2 -2
- package/dist/client/assets/{glsl-BqUMGrwT-5PoVKbXD.js.map → glsl-BqUMGrwT-DZSnNyRQ.js.map} +1 -1
- package/dist/client/assets/{graphql-CEJryLGF-Bx3HP-fV.js → graphql-CEJryLGF-BxoDC-bv.js} +2 -2
- package/dist/client/assets/{graphql-CEJryLGF-Bx3HP-fV.js.map → graphql-CEJryLGF-BxoDC-bv.js.map} +1 -1
- package/dist/client/assets/{hack-DwBIwaGr-C2bRI1k_.js → hack-DwBIwaGr-BD9UbS9V.js} +2 -2
- package/dist/client/assets/{hack-DwBIwaGr-C2bRI1k_.js.map → hack-DwBIwaGr-BD9UbS9V.js.map} +1 -1
- package/dist/client/assets/{haml-BgD6GFV2-C-E92qmq.js → haml-BgD6GFV2-tYRnxnkA.js} +2 -2
- package/dist/client/assets/{haml-BgD6GFV2-C-E92qmq.js.map → haml-BgD6GFV2-tYRnxnkA.js.map} +1 -1
- package/dist/client/assets/{handlebars-DAEAtsmp-B3Qkz-fG.js → handlebars-DAEAtsmp-CzuHoTaP.js} +2 -2
- package/dist/client/assets/{handlebars-DAEAtsmp-B3Qkz-fG.js.map → handlebars-DAEAtsmp-CzuHoTaP.js.map} +1 -1
- package/dist/client/assets/{html-B63qAdeQ-mzUq7RfB.js → html-B63qAdeQ-BvgXBi7v.js} +2 -2
- package/dist/client/assets/{html-B63qAdeQ-mzUq7RfB.js.map → html-B63qAdeQ-BvgXBi7v.js.map} +1 -1
- package/dist/client/assets/{html-derivative-DliF0Izh-DKttJgx1.js → html-derivative-DliF0Izh-BdazZa_A.js} +2 -2
- package/dist/client/assets/{html-derivative-DliF0Izh-DKttJgx1.js.map → html-derivative-DliF0Izh-BdazZa_A.js.map} +1 -1
- package/dist/client/assets/{http-BPdteiK2-BzL978Ty.js → http-BPdteiK2-DscIPq9Z.js} +2 -2
- package/dist/client/assets/{http-BPdteiK2-BzL978Ty.js.map → http-BPdteiK2-DscIPq9Z.js.map} +1 -1
- package/dist/client/assets/{hurl-y6bQoMbn-VmDIgNNg.js → hurl-y6bQoMbn-BniTWOKW.js} +2 -2
- package/dist/client/assets/{hurl-y6bQoMbn-VmDIgNNg.js.map → hurl-y6bQoMbn-BniTWOKW.js.map} +1 -1
- package/dist/client/assets/{index-BHQ_NP1r.js → index-DlDEYM2e.js} +3 -3
- package/dist/client/assets/{index-BHQ_NP1r.js.map → index-DlDEYM2e.js.map} +1 -1
- package/dist/client/assets/index-vGJLpF-N.css +1 -0
- package/dist/client/assets/{java-HDTZqoJ--r_CiLO3G.js → java-HDTZqoJ--DonfC-m-.js} +2 -2
- package/dist/client/assets/{java-HDTZqoJ--r_CiLO3G.js.map → java-HDTZqoJ--DonfC-m-.js.map} +1 -1
- package/dist/client/assets/{javascript-B8-PXjxO-D8IL8RVw.js → javascript-B8-PXjxO-DrojTnjU.js} +2 -2
- package/dist/client/assets/{javascript-B8-PXjxO-D8IL8RVw.js.map → javascript-B8-PXjxO-DrojTnjU.js.map} +1 -1
- package/dist/client/assets/{jinja-Li2helwk-iQ5WpNSs.js → jinja-Li2helwk-Bn7ViII1.js} +2 -2
- package/dist/client/assets/{jinja-Li2helwk-iQ5WpNSs.js.map → jinja-Li2helwk-Bn7ViII1.js.map} +1 -1
- package/dist/client/assets/{jison-D4pd2L4r-CnB2TCTC.js → jison-D4pd2L4r-CURwtPm2.js} +2 -2
- package/dist/client/assets/{jison-D4pd2L4r-CnB2TCTC.js.map → jison-D4pd2L4r-CURwtPm2.js.map} +1 -1
- package/dist/client/assets/{json-CHeq_08V-BzfhDAQG.js → json-CHeq_08V-DGJ-08B3.js} +2 -2
- package/dist/client/assets/{json-CHeq_08V-BzfhDAQG.js.map → json-CHeq_08V-DGJ-08B3.js.map} +1 -1
- package/dist/client/assets/{jsx-CTDAtxCE-BHaCLB5C.js → jsx-CTDAtxCE-B7AjYoF3.js} +2 -2
- package/dist/client/assets/{jsx-CTDAtxCE-BHaCLB5C.js.map → jsx-CTDAtxCE-B7AjYoF3.js.map} +1 -1
- package/dist/client/assets/{julia-B8HGxjvO-DUNXU97h.js → julia-B8HGxjvO-CX2HXF0x.js} +2 -2
- package/dist/client/assets/{julia-B8HGxjvO-DUNXU97h.js.map → julia-B8HGxjvO-CX2HXF0x.js.map} +1 -1
- package/dist/client/assets/{just-C1IY8eCo-CwcMki68.js → just-C1IY8eCo-194MeSWx.js} +2 -2
- package/dist/client/assets/{just-C1IY8eCo-CwcMki68.js.map → just-C1IY8eCo-194MeSWx.js.map} +1 -1
- package/dist/client/assets/{latex-CWjLpLhK-C2bYvB1V.js → latex-CWjLpLhK-CJV_bAR4.js} +2 -2
- package/dist/client/assets/{latex-CWjLpLhK-C2bYvB1V.js.map → latex-CWjLpLhK-CJV_bAR4.js.map} +1 -1
- package/dist/client/assets/{liquid-DO0vm52w-5ftSWtSQ.js → liquid-DO0vm52w-C-oH3gBH.js} +2 -2
- package/dist/client/assets/{liquid-DO0vm52w-5ftSWtSQ.js.map → liquid-DO0vm52w-C-oH3gBH.js.map} +1 -1
- package/dist/client/assets/{lua-rOZn354j-BFEal9UY.js → lua-rOZn354j-CWNr0VLI.js} +2 -2
- package/dist/client/assets/{lua-rOZn354j-BFEal9UY.js.map → lua-rOZn354j-CWNr0VLI.js.map} +1 -1
- package/dist/client/assets/{marko-CiZdnOV9-VE4QpTYR.js → marko-CiZdnOV9-D1oeBgJ5.js} +2 -2
- package/dist/client/assets/{marko-CiZdnOV9-VE4QpTYR.js.map → marko-CiZdnOV9-D1oeBgJ5.js.map} +1 -1
- package/dist/client/assets/{mdc-D1ADfxGi-DASKK9_I.js → mdc-D1ADfxGi-DDe8MjBS.js} +2 -2
- package/dist/client/assets/{mdc-D1ADfxGi-DASKK9_I.js.map → mdc-D1ADfxGi-DDe8MjBS.js.map} +1 -1
- package/dist/client/assets/{nginx-8KXIzHX2-OWn8Z957.js → nginx-8KXIzHX2-76JDQPWv.js} +2 -2
- package/dist/client/assets/{nginx-8KXIzHX2-OWn8Z957.js.map → nginx-8KXIzHX2-76JDQPWv.js.map} +1 -1
- package/dist/client/assets/{nim-CbBDSJf5-DzS23snq.js → nim-CbBDSJf5-Bg0Tpvlj.js} +2 -2
- package/dist/client/assets/{nim-CbBDSJf5-DzS23snq.js.map → nim-CbBDSJf5-Bg0Tpvlj.js.map} +1 -1
- package/dist/client/assets/{org-BlnOvN6p-mzfee9SX.js → org-BlnOvN6p-CpQvn0Ms.js} +2 -2
- package/dist/client/assets/{org-BlnOvN6p-mzfee9SX.js.map → org-BlnOvN6p-CpQvn0Ms.js.map} +1 -1
- package/dist/client/assets/patterns-CJ4c7F5A.js +2 -0
- package/dist/client/assets/patterns-CJ4c7F5A.js.map +1 -0
- package/dist/client/assets/{perl-CntHWu4k-C3Q6THHX.js → perl-CntHWu4k-R8g6ivQx.js} +2 -2
- package/dist/client/assets/{perl-CntHWu4k-C3Q6THHX.js.map → perl-CntHWu4k-R8g6ivQx.js.map} +1 -1
- package/dist/client/assets/{php-VF06KE26-uqmHEtRE.js → php-VF06KE26-qz2OohxQ.js} +2 -2
- package/dist/client/assets/{php-VF06KE26-uqmHEtRE.js.map → php-VF06KE26-qz2OohxQ.js.map} +1 -1
- package/dist/client/assets/primitives-Dj-qYrUZ-BIf5RLs4.js +2 -0
- package/dist/client/assets/primitives-Dj-qYrUZ-BIf5RLs4.js.map +1 -0
- package/dist/client/assets/{pug-DeZwH1tK-Dy2R8X_Z.js → pug-DeZwH1tK-hE7p1XRn.js} +2 -2
- package/dist/client/assets/{pug-DeZwH1tK-Dy2R8X_Z.js.map → pug-DeZwH1tK-hE7p1XRn.js.map} +1 -1
- package/dist/client/assets/{pullRequestReviewThreadReplay-Dhslqjta.js → pullRequestReviewThreadReplay-D-FuOlQ0.js} +2 -2
- package/dist/client/assets/{pullRequestReviewThreadReplay-Dhslqjta.js.map → pullRequestReviewThreadReplay-D-FuOlQ0.js.map} +1 -1
- package/dist/client/assets/{qml-CQhAR2tt-CkperL57.js → qml-CQhAR2tt-Blcerr_b.js} +2 -2
- package/dist/client/assets/{qml-CQhAR2tt-CkperL57.js.map → qml-CQhAR2tt-Blcerr_b.js.map} +1 -1
- package/dist/client/assets/{r-CGShpgkr-BeuwoEHJ.js → r-CGShpgkr-Bu3ifplH.js} +2 -2
- package/dist/client/assets/{r-CGShpgkr-BeuwoEHJ.js.map → r-CGShpgkr-Bu3ifplH.js.map} +1 -1
- package/dist/client/assets/{razor-CgB2QCs6-C9kZAmAY.js → razor-CgB2QCs6-C0YckD9e.js} +2 -2
- package/dist/client/assets/{razor-CgB2QCs6-C9kZAmAY.js.map → razor-CgB2QCs6-C0YckD9e.js.map} +1 -1
- package/dist/client/assets/{regexp-go_CdRjx-BvThUXwF.js → regexp-go_CdRjx-FwuQxSe1.js} +2 -2
- package/dist/client/assets/{regexp-go_CdRjx-BvThUXwF.js.map → regexp-go_CdRjx-FwuQxSe1.js.map} +1 -1
- package/dist/client/assets/{releaseRoutes-D04aOk03.js → releaseRoutes-Bpw_kfZI.js} +2 -2
- package/dist/client/assets/{releaseRoutes-D04aOk03.js.map → releaseRoutes-Bpw_kfZI.js.map} +1 -1
- package/dist/client/assets/{rst-CbWMI8ou-B_CNFtWj.js → rst-CbWMI8ou-_a-jzVR0.js} +2 -2
- package/dist/client/assets/{rst-CbWMI8ou-B_CNFtWj.js.map → rst-CbWMI8ou-_a-jzVR0.js.map} +1 -1
- package/dist/client/assets/{ruby-DsGwIs06-BNNoCsny.js → ruby-DsGwIs06-CvuKCvaN.js} +2 -2
- package/dist/client/assets/{ruby-DsGwIs06-BNNoCsny.js.map → ruby-DsGwIs06-CvuKCvaN.js.map} +1 -1
- package/dist/client/assets/{sas-DjxN8J4Z-DQwiaVY0.js → sas-DjxN8J4Z-6vMiHBWz.js} +2 -2
- package/dist/client/assets/{sas-DjxN8J4Z-DQwiaVY0.js.map → sas-DjxN8J4Z-6vMiHBWz.js.map} +1 -1
- package/dist/client/assets/{scss-bkiiULjK-BdNohiDl.js → scss-bkiiULjK-RWkdLi31.js} +2 -2
- package/dist/client/assets/{scss-bkiiULjK-BdNohiDl.js.map → scss-bkiiULjK-RWkdLi31.js.map} +1 -1
- package/dist/client/assets/{shellscript-Cuh1SIPr-CH9Y9Zzx.js → shellscript-Cuh1SIPr-xep8lhFb.js} +2 -2
- package/dist/client/assets/{shellscript-Cuh1SIPr-CH9Y9Zzx.js.map → shellscript-Cuh1SIPr-xep8lhFb.js.map} +1 -1
- package/dist/client/assets/{shellsession-C4UOwxb7-BVPXZqFb.js → shellsession-C4UOwxb7-B2Mjt8G4.js} +2 -2
- package/dist/client/assets/{shellsession-C4UOwxb7-BVPXZqFb.js.map → shellsession-C4UOwxb7-B2Mjt8G4.js.map} +1 -1
- package/dist/client/assets/{soy-CeGFXpLT-bVeC_qdu.js → soy-CeGFXpLT-DB96q8ji.js} +2 -2
- package/dist/client/assets/{soy-CeGFXpLT-bVeC_qdu.js.map → soy-CeGFXpLT-DB96q8ji.js.map} +1 -1
- package/dist/client/assets/{sql-qDYmMTO1-DRMw6L4F.js → sql-qDYmMTO1-Dp7sA9Pq.js} +2 -2
- package/dist/client/assets/{sql-qDYmMTO1-DRMw6L4F.js.map → sql-qDYmMTO1-Dp7sA9Pq.js.map} +1 -1
- package/dist/client/assets/{stata-Dzus_rwP-DcGzBrZt.js → stata-Dzus_rwP-Bk81H3oK.js} +2 -2
- package/dist/client/assets/{stata-Dzus_rwP-DcGzBrZt.js.map → stata-Dzus_rwP-Bk81H3oK.js.map} +1 -1
- package/dist/client/assets/{surrealql-DmTrf8uR-BGVhamzy.js → surrealql-DmTrf8uR-BAVDL68E.js} +2 -2
- package/dist/client/assets/{surrealql-DmTrf8uR-BGVhamzy.js.map → surrealql-DmTrf8uR-BAVDL68E.js.map} +1 -1
- package/dist/client/assets/{svelte-CWlRonoS-d0HsRKWL.js → svelte-CWlRonoS-g4MbXmCf.js} +2 -2
- package/dist/client/assets/{svelte-CWlRonoS-d0HsRKWL.js.map → svelte-CWlRonoS-g4MbXmCf.js.map} +1 -1
- package/dist/client/assets/{templ-EuFg1gKs-BBJ25IwK.js → templ-EuFg1gKs-B9lc3TqB.js} +2 -2
- package/dist/client/assets/{templ-EuFg1gKs-BBJ25IwK.js.map → templ-EuFg1gKs-B9lc3TqB.js.map} +1 -1
- package/dist/client/assets/{tex-Cbbx1SXS-Dh8M7x1F.js → tex-Cbbx1SXS-DPEKlVuI.js} +2 -2
- package/dist/client/assets/{tex-Cbbx1SXS-Dh8M7x1F.js.map → tex-Cbbx1SXS-DPEKlVuI.js.map} +1 -1
- package/dist/client/assets/{ts-tags-DOHpIWV2-DXabLRoX.js → ts-tags-DOHpIWV2-DN6mmSGx.js} +2 -2
- package/dist/client/assets/{ts-tags-DOHpIWV2-DXabLRoX.js.map → ts-tags-DOHpIWV2-DN6mmSGx.js.map} +1 -1
- package/dist/client/assets/{tsx-DmRL3u_2-Cn0tVC2C.js → tsx-DmRL3u_2-DulNQGwe.js} +2 -2
- package/dist/client/assets/{tsx-DmRL3u_2-Cn0tVC2C.js.map → tsx-DmRL3u_2-DulNQGwe.js.map} +1 -1
- package/dist/client/assets/{twig-BzcHspK1-BW8kSayf.js → twig-BzcHspK1-j95wbDo4.js} +2 -2
- package/dist/client/assets/{twig-BzcHspK1-BW8kSayf.js.map → twig-BzcHspK1-j95wbDo4.js.map} +1 -1
- package/dist/client/assets/{typescript-BYTx4UxO-XIX20smz.js → typescript-BYTx4UxO-C2eU2nTQ.js} +2 -2
- package/dist/client/assets/{typescript-BYTx4UxO-XIX20smz.js.map → typescript-BYTx4UxO-C2eU2nTQ.js.map} +1 -1
- package/dist/client/assets/{typst-BrfC91e7-BTQczO73.js → typst-BrfC91e7-Bry73qoG.js} +2 -2
- package/dist/client/assets/{typst-BrfC91e7-BTQczO73.js.map → typst-BrfC91e7-Bry73qoG.js.map} +1 -1
- package/dist/client/assets/{useWorkspaceDefaultLanding-DygvrKuK.js → useWorkspaceDefaultLanding-DPM3tzSI.js} +2 -2
- package/dist/client/assets/{useWorkspaceDefaultLanding-DygvrKuK.js.map → useWorkspaceDefaultLanding-DPM3tzSI.js.map} +1 -1
- package/dist/client/assets/{vue-B92PIQFm-Bo7Ratnf.js → vue-B92PIQFm-_KBJBFm9.js} +2 -2
- package/dist/client/assets/{vue-B92PIQFm-Bo7Ratnf.js.map → vue-B92PIQFm-_KBJBFm9.js.map} +1 -1
- package/dist/client/assets/{vue-html-EDHI-aeE-DZaGT8SW.js → vue-html-EDHI-aeE-Cx5Qo046.js} +2 -2
- package/dist/client/assets/{vue-html-EDHI-aeE-DZaGT8SW.js.map → vue-html-EDHI-aeE-Cx5Qo046.js.map} +1 -1
- package/dist/client/assets/{vue-vine-CmMdgoEY-D5tBNukX.js → vue-vine-CmMdgoEY-CDgVVhf3.js} +2 -2
- package/dist/client/assets/{vue-vine-CmMdgoEY-D5tBNukX.js.map → vue-vine-CmMdgoEY-CDgVVhf3.js.map} +1 -1
- package/dist/client/assets/{workspaceEntityRoutes-FAiial9O.js → workspaceEntityRoutes-Cc_RtLvy.js} +2 -2
- package/dist/client/assets/{workspaceEntityRoutes-FAiial9O.js.map → workspaceEntityRoutes-Cc_RtLvy.js.map} +1 -1
- package/dist/client/assets/{workspaceScrollCapture-AJpPgzgz.js → workspaceScrollCapture-Dg3Pebh8.js} +2 -2
- package/dist/client/assets/{workspaceScrollCapture-AJpPgzgz.js.map → workspaceScrollCapture-Dg3Pebh8.js.map} +1 -1
- package/dist/client/assets/{xml-Bz9Nzp99-Bj4-GEHY.js → xml-Bz9Nzp99-bfRaCa2x.js} +2 -2
- package/dist/client/assets/{xml-Bz9Nzp99-Bj4-GEHY.js.map → xml-Bz9Nzp99-bfRaCa2x.js.map} +1 -1
- package/dist/client/assets/{xsl-D0pOnfMq-9186FOf_.js → xsl-D0pOnfMq-BaQuui65.js} +2 -2
- package/dist/client/assets/{xsl-D0pOnfMq-9186FOf_.js.map → xsl-D0pOnfMq-BaQuui65.js.map} +1 -1
- package/dist/client/assets/{yaml-DKDHNCIP-ISipY-zA.js → yaml-DKDHNCIP-B5ot5BQr.js} +2 -2
- package/dist/client/assets/{yaml-DKDHNCIP-ISipY-zA.js.map → yaml-DKDHNCIP-B5ot5BQr.js.map} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/assets/controlCenterApi-CIz0g85O.js.map +1 -1
- package/package.json +8 -8
- package/dist/client/assets/ActiveWorkPage-BxSGZWS_.js +0 -2
- package/dist/client/assets/ActiveWorkPage-BxSGZWS_.js.map +0 -1
- package/dist/client/assets/AgentPage-YiYORLod.js.map +0 -1
- package/dist/client/assets/AtlassianOAuthCallbackPage-PfsrTytb.js.map +0 -1
- package/dist/client/assets/AuthorizedSharePage-BCwnILXF.js.map +0 -1
- package/dist/client/assets/ItemsPage-BzinDuxs.js.map +0 -1
- package/dist/client/assets/OpenPullRequestPage-BABGk9v2.js.map +0 -1
- package/dist/client/assets/PairPage-4meDmW_A.js.map +0 -1
- package/dist/client/assets/PortfolioOverview-BRB_qe4T.js +0 -2
- package/dist/client/assets/PortfolioOverview-BRB_qe4T.js.map +0 -1
- package/dist/client/assets/ReleaseRoute-D1srSd83.js +0 -2
- package/dist/client/assets/ReleaseRoute-D1srSd83.js.map +0 -1
- package/dist/client/assets/ReleaseWorkset-DcI6qwPE.js.map +0 -1
- package/dist/client/assets/ReviewSuggestionPublicationSurface-BtoYEprT.js.map +0 -1
- package/dist/client/assets/ServicesPage-DihUx1kr.js.map +0 -1
- package/dist/client/assets/TimelinePage-DyluBeEt.js.map +0 -1
- package/dist/client/assets/WorkspaceSettingsPage-Dn_eDC3m.js.map +0 -1
- package/dist/client/assets/index-BZ52pCV1.css +0 -1
- package/dist/client/assets/patterns-D0U0WCQS.js +0 -2
- package/dist/client/assets/patterns-D0U0WCQS.js.map +0 -1
- package/dist/client/assets/primitives-CjQX0eVM-BPKvllZ_.js +0 -2
- package/dist/client/assets/primitives-CjQX0eVM-BPKvllZ_.js.map +0 -1
package/dist/client/assets/{WorkspaceEntityRoute-DUVwW5WN.js → WorkspaceEntityRoute-CfupCFGN.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pullRequestReviewThreadReplay-
|
|
2
|
-
import{n as e,r as t,t as n}from"./rolldown-runtime-hePW80VL.js";import{t as r}from"./react-Cvdyeg_0.js";import{m as i,p as a,s as o,u as s}from"./hooks-CGvBGjhq.js";import{a as c,d as l,i as u,r as d,v as f}from"./Dialog-_t9OodCK-CzkLh9VB.js";import{t as p}from"./jsx-runtime-NZYk81nU.js";import{O as m,b as h,c as g,w as _,x as v,y}from"./index-BHQ_NP1r.js";import{a as b,d as x,f as S,h as C,i as w,l as T,m as E,n as ee,o as D,s as te,v as ne}from"./patterns-D0U0WCQS.js";import{n as O}from"./primitives-CjQX0eVM-BPKvllZ_.js";import{Aa as re,An as k,Bt as ie,Ei as A,Ga as ae,Gi as j,Jn as oe,Jr as se,Ka as ce,Mn as le,Nn as ue,Oi as de,On as fe,Pi as pe,Pt as me,Qn as he,Si as ge,Ti as _e,Ua as ve,Wr as ye,Xr as be,Yn as xe,Zr as Se,aa as Ce,bn as we,ci as Te,cr as Ee,da as De,fr as Oe,ga as ke,gi as Ae,ha as je,hi as Me,ki as Ne,kn as Pe,lr as Fe,mi as Ie,n as Le,or as Re,qr as ze,ua as Be,ui as Ve,ur as He,xn as Ue}from"./agent-api-0YXZd1ag.js";import{n as We,t as Ge}from"./BrowserCrypto-BBWJ9Dbb.js";import{a as Ke}from"./client-C9AVNoed.js";import{a as qe,i as Je,o as Ye,r as Xe}from"./releaseAgentTransport-BOsjuWAi.js";import{n as Ze,t as Qe}from"./workspaceEntityPaths-xAl2jRFm.js";import{a as $e,i as et,o as tt,t as nt}from"./workspaceEntityRoutes-FAiial9O.js";import{i as rt,n as it,r as at}from"./presentWorkspaceItems-Cd0qEwW1.js";import{t as ot}from"./authenticatedMutationClient-DHk0N1_5.js";import{c as st,h as ct,i as lt,l as ut,n as dt,r as ft}from"./controlCenterRelayDock-CDyCPu8u.js";import{i as pt,n as mt,t as ht}from"./confluenceTasks-DElhwVeZ.js";import{t as gt}from"./WorkspaceEntityLink-DjonIGqM.js";import{t as _t}from"./connectionTestTransport-DtTYdbuO.js";var M=t(r(),1),N=p(),vt=e=>({id:String(e.providerId),name:e.displayName??String(e.providerId),kind:`review`,provider:String(e.providerId),harness:e.reviewProfile.sandbox,model:String(e.model),skillIds:[]}),yt=e=>({namespace:`control-center`,subjectId:String(e.entityId),revisionId:e.sessionKey,baseRevision:e.baseRevision,headRevision:e.headRevision}),bt=e=>{switch(e._tag){case`operator-message`:return{id:String(e.eventSequence),role:`operator`,text:e.prompt};case`progress`:return{id:String(e.eventSequence),role:`relay`,text:e.text};case`review-report`:return{id:String(e.eventSequence),role:`relay`,text:`${String(e.report.suggestions.length)} suggestions · ${String(e.report.notes.length)} notes`};case`run-failed`:return{id:String(e.eventSequence),role:`system`,text:`Review failed at ${e.stage}.`};case`run-completed`:return{id:String(e.eventSequence),role:`system`,text:`Review completed · ${e.outcome}`};case`run-interrupted`:return{id:String(e.eventSequence),role:`system`,text:`Review interrupted by a restart.`};case`cancellation-requested`:return{id:String(e.eventSequence),role:`system`,text:`Cancellation requested.`};case`run-queued`:case`run-started`:case`suggestion-published`:case`suggestion-revised`:case`usage`:return null}},xt=e=>e._tag===`ready`&&e.thread!==void 0?e.thread.events.flatMap(e=>{let t=bt(e);return t===null?[]:[t]}):[],St=e=>e._tag===`ready`?e.providerPresets??(e.provider===null?[]:[e.provider]):[],Ct=({conversation:e,providerId:t,request:n,startReview:r})=>{let i=ct(e),a=oe(Le)(n.message);return De(a)?Te(new st({product:`control-center`,thread:i})):pe({try:()=>r(a.success,t),catch:()=>new st({product:`control-center`,thread:i})})},wt=e=>{let t=St(e),n=e._tag===`ready`?e.provider:null;return t.length===0||n===null?dt:lt({modelId:n.providerId,models:t.map(({model:e,providerId:t})=>({id:t,label:`${t} · ${e}`})),profileId:n.providerId,profiles:t.map(({providerId:e,reviewProfile:t})=>({id:e,label:t.label}))})},Tt=({canEnqueue:e,entityId:t,inspection:n,reviewState:r,startReview:i,workspaceId:a})=>{let o=n.entity.projection.details,s=(0,M.useMemo)(()=>wt(r),[r]),c=(0,M.useMemo)(()=>ft({_tag:`control-center`,route:{entityId:t,href:Ze(a,t)},selection:s,thread:{pluginConnectionId:n.source.pluginConnectionId,pullRequestId:n.source.vendorImmutableId,repositoryName:o._tag===`pull-request`?o.repository:`unavailable`,workspaceId:a}}),[o,t,n.source.pluginConnectionId,n.source.vendorImmutableId,s,a]),l=(0,M.useMemo)(()=>{let t={context:[{id:`repository`,label:`Repository`,value:o._tag===`pull-request`?o.repository:`Unavailable`},{id:`pull-request`,label:`Pull request`,value:`#${n.source.vendorImmutableId}`},{id:`head`,label:`Current head`,value:o._tag===`pull-request`?o.headRevision.slice(0,12):`Unavailable`}],conversation:c,selection:s};if(r._tag===`idle`||r._tag===`loading`)return{...t,status:`loading`};if(r._tag===`failed`)return{...t,description:`Control Center could not load this durable PR thread.`,status:`error`};let a=St(r);return!e||r.provider===null||r.review._tag===`unavailable`?{...t,description:e?`No available PR-review agent profile is configured.`:`A workspace owner session is required to continue this PR thread.`,status:`unavailable`}:{...t,continuePullRequestConversation:e=>{let t=ct(c);if(r.action===`starting`||r.review._tag===`pending`)return new ut({product:`control-center`,reason:`conversation-busy`,thread:t});let n=a.find(({providerId:t})=>String(t)===String(e.selection.modelId)&&String(t)===String(e.selection.profileId));return n===void 0?new ut({product:`control-center`,reason:`selection-unavailable`,thread:t}):Ct({conversation:c,providerId:n.providerId,request:e,startReview:i})},messages:xt(r),status:`ready`}},[e,c,o,n.source.vendorImmutableId,r,s,i]);return g(l),null},Et=new Intl.DateTimeFormat(`en-GB`,{dateStyle:`medium`,timeStyle:`short`,timeZone:`UTC`}),Dt=e=>e.split(/[_\-\s]+/u).filter(Boolean).map(e=>`${e.charAt(0).toLocaleUpperCase(`en-US`)}${e.slice(1).toLocaleLowerCase(`en-US`)}`).join(` `),Ot=e=>{let t=Math.floor(e/60),n=e%60;return t===0?`${String(n)}m`:n===0?`${String(t)}h`:`${String(t)}h ${String(n)}m`},kt=e=>e==null?`Not synchronized`:Et.format(be(e)),At=e=>e==null?null:{dateTime:ye(e),label:Et.format(be(e))},jt=e=>e.lifecycle._tag!==`missing`&&e.lifecycle._tag!==`rejected`&&e.lifecycle._tag!==`superseded`,Mt=(e,t)=>{let n=new Set(t.graph.nodes.flatMap(({nodeId:e,resolution:n})=>n._tag===`resolved`&&n.target._tag===`entity`&&n.target.entityId===t.entity.projection.entityId?[e]:[])),r=new Map;for(let{nodeId:e,resolution:n}of t.graph.nodes)n._tag===`resolved`&&n.target._tag===`entity`&&n.target.entityKind===`issue`&&r.set(e,n.target.entityId);let i=new Map;for(let{projection:e}of t.graph.relatedEntityProjections)e.entityState===`present`&&e.entityType===`issue`&&i.set(e.entityId,e);let a=new Map;for(let e of t.graph.relationships){if(e.kind!==`tracks-time-for`||!n.has(e.sourceNodeId)||!jt(e))continue;let t=r.get(e.targetNodeId),o=t===void 0?void 0:i.get(t);if(t===void 0||o===void 0)continue;let s=e.lifecycle._tag===`inferred`||e.confidence._tag===`inferred`,c=a.get(t);if(c===void 0){a.set(t,{evidenceClaimIds:new Set(e.evidenceClaimIds),issue:o,state:s?`inferred`:`linked`});continue}for(let t of e.evidenceClaimIds)c.evidenceClaimIds.add(t);s||(c.state=`linked`)}return[...a.entries()].map(([t,{evidenceClaimIds:n,issue:r,state:i}])=>({evidenceLabel:`${String(n.size)} evidence claim${n.size===1?``:`s`}`,href:Ze(e,t),key:r.displayKey,state:i,title:r.title}))},Nt=(e,t,n)=>{let r=Mt(e,n),i=r.filter(({state:e})=>e===`inferred`).length,a=n.entity.owners.filter(({roles:e})=>e.some(e=>e.includes(`approver`))).map(({displayName:e})=>e),o=t.userId===void 0?void 0:n.entity.owners.find(({sourceIdentities:e})=>e?.some(({providerId:e,vendorPersonId:n})=>e===`clockify`&&n===t.userId)??!1);return{approvalDecidedAt:At(n.clockifyApproval?.decidedAt),approvalDetail:n.clockifyApproval===null?`No Control Center decision is recorded for this exact Clockify revision.`:n.clockifyApproval.rationale,approvalLabel:n.clockifyApproval===null?`Pending`:Dt(n.clockifyApproval.decision),approvers:a,associationDetail:r.length===0?`No current Jira relationship explains where this time belongs. The entry remains visible.`:i===0?`${String(r.length)} current Jira link${r.length===1?``:`s`}`:`${String(i)} inferred Jira link${i===1?``:`s`} — verify before reporting`,associationLabel:r.length===0?`Unattributed`:`Attributed`,billableLabel:t.billable?`Billable`:`Non-billable`,contributorLabel:o?.displayName??t.userId??`Contributor not synchronized`,description:t.description??n.entity.projection.title,durationLabel:Ot(t.durationMinutes),endedAt:kt(t.endedAt),jiraAssociations:r,lockLabel:t.locked===void 0?`Lock state not synchronized`:t.locked?`Locked`:`Unlocked`,projectLabel:t.projectId??`No Clockify project`,rollupLabel:`1 visible entry · ${String(t.durationMinutes)} exact minute${t.durationMinutes===1?``:`s`}`,sourceRevision:n.source.revision,startedAt:kt(t.startedAt),timerLabel:t.startedAt===void 0||t.endedAt===void 0?`Timer state not synchronized`:t.endedAt===null?`Timer running`:`Completed`,totalMinutes:t.durationMinutes}},Pt=new Intl.DateTimeFormat(`en-GB`,{dateStyle:`medium`,timeStyle:`short`,timeZone:`UTC`}),Ft=e=>e.split(`-`).map(e=>`${e.charAt(0).toLocaleUpperCase(`en-US`)}${e.slice(1)}`).join(` `),It=e=>e===null?null:re(ze(e),{onNone:()=>e,onSome:e=>Pt.format(be(e))}),Lt=e=>e.name??e.sourceId??`Not set`,Rt=e=>e===void 0||e.length===0?`Not set`:e.join(` · `),zt=e=>({id:e,name:`Unknown collaborator`,role:`Jira collaborator`}),Bt=e=>new Map((e.collaborators??[]).map(e=>{let t=e.roles.map(Ft);return[e.sourcePersonId,{id:e.sourcePersonId,name:e.displayName,role:t.length===0?`Jira collaborator`:t.join(` · `),...e.avatarUrl!==null&&{avatarSrc:e.avatarUrl}}]})),Vt=(e,t)=>({href:(()=>{if(t===null||e.key===null)return null;let n=/^(.*\/browse\/)[^/]+$/u.exec(t.pathname)?.[1];return n===void 0?null:`${t.origin}${n}${encodeURIComponent(e.key)}`})(),key:e.key??e.sourceId??`Unknown issue`,status:e.status===null?`Status unknown`:Lt(e.status),summary:e.summary??`Summary unavailable`}),Ht=e=>{let t=e.project,n=(e.fixVersions??[]).map(Lt),r=(e.components??[]).map(Lt);return[{label:`Type`,value:e.issueType===null||e.issueType===void 0?`Not set`:Lt(e.issueType)},{label:`Project`,value:t==null?`Not set`:[t.key,t.name].filter(e=>e!==null).join(` · `)||`Not set`},{label:`Resolution`,value:e.resolution===null||e.resolution===void 0?`Unresolved`:Lt(e.resolution)},{label:`Labels`,value:Rt(e.labels)},{label:`Components`,value:Rt(r)},{label:`Fix versions`,value:Rt(n)},{label:`Created`,value:It(e.createdAt??null)??`Not available`},{label:`Updated`,value:It(e.updatedAt??null)??`Not available`},{label:`Due`,value:It(e.dueDate??null)??`Not set`}]},Ut=(e,t)=>`${e??`Empty`} → ${t??`Empty`}`,Wt=(e,t)=>{let n=Bt(e),r=e=>e===null?zt(`unknown-person`):n.get(e)??zt(e),i=new Set(e.truncatedFields??[]),a=(e.comments??[]).map(e=>({author:r(e.authorSourcePersonId),body:e.body,id:e.sourceId,time:It(e.updatedAt??e.createdAt)})),o=(e.history??[]).map(e=>({actor:r(e.authorSourcePersonId),changes:e.changes.map(e=>({field:e.field,transition:Ut(e.from,e.to)})),id:e.sourceId,time:It(e.createdAt)})),s=e.commentTotal??a.length,c=e.historyTotal??o.length,l=(e.commentsTruncated??!1)||s>a.length,u=(e.historyTruncated??!1)||c>o.length,d=[...i].filter(e=>e!==`comments`&&(e!==`history`||!u));return{acceptanceCriteria:e.acceptanceCriteria??null,collaborators:[...n.values()],commentCount:s,comments:a,commentBodiesTruncated:e.commentBodiesTruncated??(i.has(`comments`)&&!l),commentsTruncated:l,description:e.description??null,environment:e.environment??null,history:o,historyCount:c,historyTruncated:u,metadata:Ht(e),parent:e.parent===null||e.parent===void 0?null:Vt(e.parent,t),subtasks:(e.subtasks??[]).map(e=>Vt(e,t)),truncationMessage:d.length===0?null:`Jira shortened ${d.map(Ft).join(`, `)} to keep this synchronized view bounded.`}},Gt=new Intl.DateTimeFormat(`en-GB`,{dateStyle:`medium`,timeStyle:`short`,timeZone:`UTC`}),Kt=e=>e.split(/[._\-\s]+/u).filter(e=>e.length>0).map(e=>`${e.charAt(0).toLocaleUpperCase(`en-US`)}${e.slice(1)}`).join(` `),qt=e=>Kt(e.split(`/`).filter(e=>e.length>0).at(-1)??e)||`AWS identity`,Jt=e=>e==null?null:{id:e,name:qt(e),role:`Pull request author`},Yt=e=>e==null?null:re(ze(e),{onNone:()=>null,onSome:e=>({dateTime:ye(e),label:Gt.format(be(e))})}),Xt=e=>{switch(e){case`approved`:return`Approved by people`;case`changes-requested`:return`Changes requested`;case`merged`:return`Merged`;case`requested`:return`Human review requested`;case`not-requested`:return`No human approval synchronized`}},Zt=e=>{let t=new Map(e.graph.nodes.flatMap(({nodeId:e,resolution:t})=>t._tag===`resolved`&&t.target._tag===`entity`?[[e,t.target.entityId]]:[])),n=new Set(e.graph.nodes.flatMap(({nodeId:t,resolution:n})=>n._tag===`resolved`&&n.target._tag===`entity`&&n.target.entityId===e.entity.projection.entityId?[t]:[]));return new Set(e.graph.relationships.flatMap(e=>{if(e.lifecycle._tag===`missing`||e.lifecycle._tag===`rejected`||e.lifecycle._tag===`superseded`)return[];let r=n.has(e.sourceNodeId)?e.targetNodeId:n.has(e.targetNodeId)?e.sourceNodeId:null,i=r===null?null:t.get(r);return i==null?[]:[i]}))},Qt=(e,t,n)=>{let r=Zt(n),i=e=>n.graph.relatedEntityProjections.filter(({projection:t})=>t.entityState===`present`&&t.entityType===e&&r.has(t.entityId)).length,a=n.entity.releaseIds.length,o=i(`issue`),s=i(`pipeline-execution`),c=e=>`${String(e)}${n.graph.truncated?`+`:``}`;return{author:Jt(e.authorReference),baseRevision:e.baseRevision??null,createdAt:Yt(e.createdAt),description:e.description?.trim()||null,diffScope:{pluginConnectionId:t.pluginConnectionId,vendorImmutableId:t.vendorImmutableId,revision:t.revision},filesHref:t.sourceUrl?.href??null,headRevision:e.headRevision,issueCount:o,issueCountLabel:c(o),mergeBaseRevision:e.mergeBaseRevision??null,pipelineCount:s,pipelineCountLabel:c(s),releaseCount:a,releaseCountLabel:`${String(a)}${n.entity.releaseMembershipsTruncated?`+`:``}`,reviewLabel:Xt(e.reviewState),sourceBranch:e.sourceBranch,targetBranch:e.targetBranch,updatedAt:Yt(e.updatedAt)}},$t=new Intl.DateTimeFormat(`en-GB`,{dateStyle:`medium`,timeStyle:`short`,timeZone:`UTC`}),en=e=>e.split(`-`).map(e=>`${e.charAt(0).toLocaleUpperCase(`en-US`)}${e.slice(1)}`).join(` `),tn={clockify:`Clockify`,codecommit:`CodeCommit`,codepipeline:`CodePipeline`,confluence:`Confluence`,jira:`Jira`},nn={deployment:`Deployment`,issue:`Issue`,page:`Page`,"pipeline-execution":`Pipeline execution`,"pull-request":`Pull request`,"time-entry":`Time entry`},rn=e=>$t.format(be(e)),an=e=>{if(e.sourceUrl===null)return null;let t=new URL(e.sourceUrl.href);return e.providerId===`confluence`&&t.pathname.startsWith(`/spaces/`)&&(t.pathname=`/wiki${t.pathname}`),t.href},on=(e,t)=>`/w/${encodeURIComponent(e)}/releases/${encodeURIComponent(t)}`,sn=e=>e.slice(-8),cn=e=>{switch(e._tag){case`issue`:return[{label:`Priority`,value:e.priority??`Not set`},{label:`Estimate`,value:e.estimatePoints===null?`Not estimated`:`${e.estimatePoints} points`}];case`pull-request`:return[{label:`Repository`,value:e.repository},...e.lifecycle===null||e.lifecycle===void 0?[]:[{label:`State`,value:en(e.lifecycle)}],{label:`Branches`,value:`${e.sourceBranch} → ${e.targetBranch}`},{label:`Head revision`,value:e.headRevision}];case`page`:return[{label:`Space`,value:e.spaceKey},{label:`Revision`,value:e.revision}];case`pipeline-execution`:return[{label:`Pipeline`,value:e.pipelineName},{label:`Execution`,value:e.executionId},{label:`Trigger revision`,value:e.triggerRevision}];case`deployment`:return[{label:`Environment`,value:sn(e.environmentId)},{label:`Revision`,value:e.revision}];case`time-entry`:return[{label:`Duration`,value:`${e.durationMinutes} min`},{label:`Billable`,value:e.billable?`Yes`:`No`}]}},ln=e=>en(e),un=e=>({avatarFallback:e.avatarFallback,id:e.personId,name:e.displayName,role:[...new Set(e.roles.map(ln))].join(` · `)}),dn=e=>e.some(e=>e.includes(`approver`))?`approvers`:e.some(e=>e===`reviewer`||e===`watcher`)?`reviewers`:e.includes(`operator`)?`operators`:e.some(e=>e===`author`||e===`contributor`)?`authors`:`owners`,fn=e=>{let t=[`authors`,`owners`,`reviewers`,`operators`,`approvers`],n=()=>[],r={approvers:n(),authors:n(),operators:n(),owners:n(),reviewers:n()};for(let t of e)r[dn(t.roles)].push(un(t));let i=t.filter(e=>r[e].length>0);return{...r,emptyLabel:`No collaborator is assigned to this object.`,expandedCategories:i}},pn=(e,t)=>{if(t===null)return e;let n=[...e.owners],r=[...e.authors],i=new Set([...e.approvers,...e.authors,...e.operators,...e.owners,...e.reviewers].map(e=>e.name.toLocaleLowerCase(`en-US`))),a=new Set;for(let e of t.collaborators){if(a.has(e.id))continue;a.add(e.id);let t=e.name.toLocaleLowerCase(`en-US`);i.has(t)||(e.role.includes(`Assignee`)?n.push(e):r.push(e))}let o=[];r.length>0&&o.push(`authors`),n.length>0&&o.push(`owners`);for(let t of e.expandedCategories)o.push(t);return{...e,authors:r,emptyLabel:`No collaborator was synchronized or assigned to this object.`,expandedCategories:[...new Set(o)],owners:n}},mn=(e,t,n)=>{if(t===null)return e;let r={approvers:[...e.approvers],authors:[...e.authors],operators:[...e.operators],owners:[...e.owners],reviewers:[...e.reviewers]},i=new Set(Object.values(r).flat().map(({id:e})=>e)),a=new Set(n.flatMap(e=>(e.sourceIdentities??[]).filter(({providerId:e})=>e===`confluence`).map(({vendorPersonId:e})=>e)));for(let e of t.contributors)i.has(e.id)||a.has(e.id)||(i.add(e.id),e.role.includes(`Owner`)?r.owners.push(e):e.role.includes(`Watcher`)?r.reviewers.push(e):r.authors.push(e));let o=[`authors`,`owners`,`reviewers`,`operators`,`approvers`];return{...r,emptyLabel:`No collaborator was synchronized or assigned to this document.`,expandedCategories:o.filter(e=>r[e].length>0)}},hn=e=>{let t=e.freshness;return t===null?e.isSourceCurrent?`current`:`cached`:t._tag===`current`?e.isSourceCurrent&&t.provenance._tag===`provider`?`current`:`cached`:t._tag},gn=e=>{let t=e.freshness;return t===null?e.entity.recordedAt:t.sourceObservedAt??t.synchronizedAt??t.pluginHealth.checkedAt},_n=(e,t,n,r)=>{if(e===void 0)return{state:`missing`,label:`Unknown graph endpoint`,reason:`The endpoint is outside this graph response.`};if(e.resolution._tag===`missing`)return{state:`missing`,label:e.resolution.missingKey,reason:`${en(e.endpointKind)} is not connected.`};let i=e.resolution.target;if(i._tag===`entity`){let e=t.get(i.entityId);return e===void 0?{state:`missing`,label:`${nn[i.entityKind]} ${sn(i.entityId)}`,reason:`The related object is outside this bounded response.`,service:it(i.entityKind)}:e.entityState===`deleted`?{state:`missing`,label:`${e.title} · Deleted`,reason:`The related object was deleted.`,service:it(e.entityType)}:{state:`present`,href:Ze(r,e.entityId),id:e.entityId,reference:e.displayKey,service:it(e.entityType),title:e.title}}return i._tag===`release`?{state:`present`,href:on(r,i.releaseId),id:i.releaseId,reference:`Control Center release · ${sn(i.releaseId)}`,service:n,title:`Delivery release`}:{state:`present`,id:i.environmentId,reference:`Control Center environment · ${sn(i.environmentId)}`,service:n,title:`Delivery environment`}},vn=e=>{let t=e.evidenceClaimIds.length,n=e.confidence._tag===`inferred`?`${Math.round(e.confidence.score*100)}% inferred`:en(e.confidence._tag);return`${t} evidence claim${t===1?``:`s`} · ${n}`},yn=(e,t,n)=>{let r=new Map(e.graph.nodes.map(e=>[e.nodeId,e])),i=[e.entity,...e.graph.relatedEntityProjections].map(({projection:e})=>e),a=new Map(i.map(e=>[e.entityId,e])),o=new Map(e.entity.owners.map(e=>[e.personId,e]));return e.graph.relationships.map(e=>{let i=e.recordedBy._tag===`human`?o.get(e.recordedBy.personId):void 0;return{...i!==void 0&&{actor:un(i)},direction:`forward`,evidence:vn(e),id:e.relationshipId,kind:en(e.kind),lifecycle:e.lifecycle._tag,source:_n(r.get(e.sourceNodeId),a,n,t),target:_n(r.get(e.targetNodeId),a,n,t)}})},bn=e=>e.activity.events.map(e=>({actor:e.actor.label,actorKind:e.actor.kind,dateTime:ye(e.occurredAt),detail:en(e.sourceKind),...e.href!==null&&{href:e.href},id:e.eventKey,...e.service!==null&&{service:e.service},time:rn(e.occurredAt),title:e.title})),xn=(e,t,n)=>{let r=an(e.source);if(r!==null)return{external:!0,href:r,label:e.source.providerId===`confluence`?`View in Confluence`:`Open in ${n}`};let i=e.entity.canonicalReleaseId;return i===null?{external:!1,href:null,label:`Source link unavailable`}:{external:!1,href:on(t,i),label:`Open delivery release`}},Sn=e=>[...e.entity.ownersTruncated?[`More collaborators exist than this bounded view can show.`]:[],...e.entity.releaseMembershipsTruncated?[`More release memberships exist than this bounded delivery path can show.`]:[],...e.graph.truncated?[`The relationship graph is partial; additional delivery links exist.`]:[],...e.activity.truncated?[`The activity list is partial; older events are not shown.`]:[]],Cn=({displayKey:e,issue:t,releaseCount:n,serviceName:r,title:i})=>t===null?`${e} · ${i} · ${r}`:`${e} · ${i} · ${r} issue · ${String(n)} release${n===1?``:`s`} · ${String(t.commentCount)} synchronized comment${t.commentCount===1?``:`s`}`,wn=(e,t)=>{let n=t.entity.projection,r=it(n.entityType),i=tn[r],a=at(n.details),o=n.details._tag===`issue`?Wt(n.details,t.source.sourceUrl):null,s=n.details._tag===`pull-request`?Qt(n.details,t.source,t):null,c=n.details._tag===`pipeline-execution`?pt(n.details,t):null,l=n.details._tag===`page`?Ye(n.details,t):null,u=n.details._tag===`time-entry`?Nt(e,n.details,t):null,d=gn(t),f=t.entity.releaseIds.length;return{activity:bn(t),activityEmptyLabel:`No attributable activity has been recorded for this object.`,agentContext:Cn({displayKey:n.displayKey,issue:o,releaseCount:f,serviceName:i,title:n.title}),collaborators:mn(pn(fn(t.entity.owners),o),l,t.entity.owners),clockifyTimeEntry:u,confluencePage:l,contentSummary:`${nn[n.entityType]} ${n.displayKey} is tracked in ${i}. ${f===0?`It is not linked to a release yet.`:`It belongs to ${f}${t.entity.releaseMembershipsTruncated?`+`:``} release${f===1?``:`s`}.`}`,displayKey:n.displayKey,evidence:{claimCount:t.graph.evidenceClaims.length,freshness:hn(t),freshnessDateTime:ye(d),freshnessTime:rn(d),itemCount:t.graph.evidenceItems.length,reference:`${n.displayKey} · source revision ${t.source.revision}`},facts:[{label:`Object`,value:nn[n.entityType]},{label:`Service`,value:i},...cn(n.details)],freshness:hn(t),freshnessDateTime:ye(d),freshnessTime:rn(d),kindLabel:nn[n.entityType],issue:o,pipelineExecution:c,pullRequest:s,partialMessages:Sn(t),primaryAction:xn(t,e,i),relationships:yn(t,e,r),relationshipEmptyLabel:`No delivery relationships have been recorded for this object.`,releases:t.entity.releaseIds.map(t=>({href:on(e,t),id:t,label:`Release ${sn(t)}`})),service:r,serviceName:i,title:n.title,tone:rt(n.entityType,a).tone,verdict:a}},P={state:`_state_13ab1_1`,loading:`_loading_13ab1_12`,loadingColumns:`_loadingColumns_13ab1_13`,content:`_content_13ab1_14`,entityActions:`_entityActions_13ab1_15`,deliveryPath:`_deliveryPath_13ab1_16`,facts:`_facts_13ab1_17`,evidence:`_evidence_13ab1_18`,activity:`_activity_13ab1_19`,sectionHeading:`_sectionHeading_13ab1_20`,back:`_back_13ab1_34`,principalAction:`_principalAction_13ab1_35`,releasePath:`_releasePath_13ab1_36`,pageSynchronization:`_pageSynchronization_13ab1_67`,secondaryAction:`_secondaryAction_13ab1_76`,pathRail:`_pathRail_13ab1_112`,pathNode:`_pathNode_13ab1_121`,pathEmpty:`_pathEmpty_13ab1_122`,workingCircle:`_workingCircle_13ab1_190`,shell:`_shell_13ab1_212`,timeline:`_timeline_13ab1_236`},Tn={document:`_document_1mruv_1`,ledger:`_ledger_1mruv_2`,ledgerBody:`_ledgerBody_1mruv_3`,primaryFacts:`_primaryFacts_1mruv_5`,section:`_section_1mruv_7`,sectionHeading:`_sectionHeading_1mruv_8`,entry:`_entry_1mruv_9`,attribution:`_attribution_1mruv_12`,people:`_people_1mruv_17`,readOnly:`_readOnly_1mruv_19`,total:`_total_1mruv_36`},En=({children:e,heading:t,meta:n})=>(0,N.jsxs)(`section`,{className:Tn.section,children:[(0,N.jsxs)(`header`,{className:Tn.sectionHeading,children:[(0,N.jsx)(O,{as:`h2`,variant:`section-title`,children:t}),(0,N.jsx)(O,{tone:`secondary`,variant:`meta`,children:n})]}),e]}),Dn=({canApprove:e=!1,canCorrect:t=!1,onSubmit:n,submission:r={_tag:`idle`},timeEntry:i})=>{let[a,o]=(0,M.useState)(``),[s,c]=(0,M.useState)(``),l=(0,M.useRef)(`approved`),u=!t||n===void 0||r._tag===`submitting`,d=!e||n===void 0||r._tag===`submitting`;return(0,N.jsxs)(`article`,{className:Tn.document,"data-workspace-clockify-time-entry-detail":!0,children:[(0,N.jsxs)(`section`,{"aria-label":`Clockify time ledger`,className:Tn.ledger,children:[(0,N.jsxs)(`div`,{className:Tn.total,children:[(0,N.jsx)(`span`,{children:`Total tracked`}),(0,N.jsx)(`strong`,{children:i.durationLabel}),(0,N.jsx)(`small`,{children:i.rollupLabel})]}),(0,N.jsxs)(`div`,{className:Tn.ledgerBody,children:[(0,N.jsxs)(`header`,{children:[(0,N.jsx)(`span`,{children:`Time ledger`}),(0,N.jsx)(f,{label:i.associationLabel,tone:i.jiraAssociations.length===0?`caution`:`positive`})]}),(0,N.jsx)(`p`,{children:i.description}),(0,N.jsxs)(`dl`,{className:Tn.primaryFacts,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Project`}),(0,N.jsx)(`dd`,{children:i.projectLabel})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Billing`}),(0,N.jsx)(`dd`,{children:i.billableLabel})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Contributor`}),(0,N.jsx)(`dd`,{children:i.contributorLabel})]})]})]})]}),(0,N.jsx)(En,{heading:`Entry`,meta:`The exact source record included in the total`,children:(0,N.jsxs)(`div`,{className:Tn.entry,children:[(0,N.jsx)(`strong`,{children:i.durationLabel}),(0,N.jsxs)(`dl`,{children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Started`}),(0,N.jsx)(`dd`,{children:i.startedAt})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Ended`}),(0,N.jsx)(`dd`,{children:i.endedAt})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`State`}),(0,N.jsx)(`dd`,{children:i.timerLabel})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Provider lock`}),(0,N.jsx)(`dd`,{children:i.lockLabel})]})]})]})}),(0,N.jsx)(En,{heading:`Jira attribution`,meta:`Current delivery-ledger relationships`,children:(0,N.jsxs)(`div`,{className:Tn.attribution,"data-state":i.jiraAssociations.length===0?`missing`:`linked`,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`strong`,{children:i.associationLabel}),(0,N.jsx)(`p`,{children:i.associationDetail})]}),i.jiraAssociations.length===0?null:(0,N.jsx)(`ul`,{children:i.jiraAssociations.map(e=>(0,N.jsx)(`li`,{children:(0,N.jsxs)(_,{to:e.href,children:[(0,N.jsx)(`span`,{children:e.key}),(0,N.jsx)(`strong`,{children:e.title}),(0,N.jsxs)(`small`,{children:[e.state===`inferred`?`Inferred`:`Linked`,` · `,e.evidenceLabel]})]})},e.href))})]})}),(0,N.jsx)(En,{heading:`People`,meta:`Provider contributor and assigned approvers`,children:(0,N.jsxs)(`dl`,{className:Tn.people,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Contributor`}),(0,N.jsx)(`dd`,{children:i.contributorLabel})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Approvers`}),(0,N.jsx)(`dd`,{children:i.approvers.join(` · `)||`No approval recorded`})]})]})}),(0,N.jsxs)(`aside`,{className:Tn.readOnly,"data-clockify-approval":!0,children:[(0,N.jsxs)(`strong`,{children:[`Control Center approval: `,i.approvalLabel]}),(0,N.jsx)(`span`,{children:i.approvalDetail}),i.approvalDecidedAt===null?null:(0,N.jsxs)(`time`,{dateTime:i.approvalDecidedAt.dateTime,children:[`Recorded `,i.approvalDecidedAt.label]})]}),(0,N.jsxs)(`section`,{"aria-label":`Governed Clockify actions`,"data-clockify-governed-actions":!0,children:[(0,N.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),u||n({_tag:`correct-association`,expectedRevision:i.sourceRevision,jiraIssueKey:a})},children:[(0,N.jsxs)(`label`,{children:[`Jira issue key`,(0,N.jsx)(`input`,{disabled:u,maxLength:100,onChange:e=>o(e.currentTarget.value),pattern:`[A-Z][A-Z0-9]*-[1-9][0-9]*`,required:!0,value:a})]}),(0,N.jsx)(`button`,{disabled:u,type:`submit`,children:`Correct association`})]}),(0,N.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),!d&&s.trim().length>0&&(n({_tag:`record-approval`,expectedRevision:i.sourceRevision,decision:l.current,rationale:s.trim()}),l.current=`approved`)},children:[(0,N.jsxs)(`label`,{children:[`Approval rationale`,(0,N.jsx)(`input`,{disabled:d,maxLength:1e3,onChange:e=>c(e.currentTarget.value),required:!0,value:s})]}),(0,N.jsx)(`button`,{disabled:d||s.trim().length===0,onClick:()=>{l.current=`approved`},type:`submit`,children:`Approve revision`}),(0,N.jsx)(`button`,{disabled:d||s.trim().length===0,onClick:()=>{l.current=`rejected`},type:`submit`,children:`Reject revision`})]}),r._tag===`failed`?(0,N.jsx)(`p`,{role:`alert`,children:`The governed action could not be submitted.`}):null,r._tag===`succeeded`?(0,N.jsxs)(`p`,{children:[`Action recorded: `,r.result.state]}):null]})]})},On={submit:(e,t,n)=>A(Ie(function*(){let n=yield*ot;return t._tag,yield*n.deliveryGraph.submitClockifyAction({params:{entityId:e},payload:t})}).pipe(ge(Ke)),{signal:n})},kn=(e,t,n,r,i=On)=>{let[a,o]=(0,M.useState)({_tag:`idle`}),s=(0,M.useRef)(null);return(0,M.useEffect)(()=>(s.current?.abort(),s.current=null,o({_tag:`idle`}),()=>{s.current?.abort(),s.current=null}),[e,t]),{state:a,submit:(0,M.useCallback)(a=>{if(t===null||s.current!==null)return;let c=new AbortController;s.current=c,o({_tag:`submitting`}),i.submit(e,a,c.signal).then(e=>{s.current===c&&(s.current=null,o({_tag:`succeeded`,result:e}),r())},e=>{s.current===c&&(s.current=null,ce(`UnauthorizedApiError`)(e)&&n(t),c.signal.aborted||o({_tag:`failed`}))})},[e,n,r,t,i])}},An=`15 seconds`,jn=15e3,Mn=1e3,Nn=9e5,Pn={synchronize:(e,t)=>{let n=_t.synchronize;return n===void 0?Promise.reject(Error(`Confluence synchronization is unavailable`)):n(e,t)}},Fn=ue({ownerKey:le,recordedAt:k,sessionExpired:Ue,state:fe([`syncing`,`synchronized`,`failed`])}),In=new Map,Ln=new WeakMap,Rn=new Map,zn=Ie(function*(){return yield*(yield*We).randomUUIDv4}).pipe(ge(Ge)),Bn=e=>{let t=Rn.get(e);if(t!==void 0)return t;let n=de(zn);return Rn.set(e,n),n},Vn=e=>`control-center:confluence-sync:${e}`,Hn=e=>{try{let t=localStorage.getItem(e);return t===null?null:Be(oe(he(Fn))(t))}catch{return null}},Un=(e,t)=>{try{localStorage.setItem(e,xe(he(Fn))(t))}catch{}},Wn=(e,t)=>{let n=Hn(e);if(n?.state===`syncing`&&n.ownerKey===t.ownerKey&&n.recordedAt===t.recordedAt)try{localStorage.removeItem(e)}catch{}},Gn=async(e,t)=>{let n=!1;return await Promise.all(Array.from(e.participants.values(),async e=>{if(!e.lifetime.aborted){if(t.sessionExpired&&t.ownerKey!==e.ownerKey){n=!0;return}if(t.state!==`synchronized`){e.setState(t.state),t.sessionExpired&&e.onSessionExpired();return}e.setState(`syncing`);try{let t=await e.verifySynchronized(e.lifetime);if(e.lifetime.aborted)return;e.setState(t?`synchronized`:`idle`),t&&e.onSynchronized()}catch(t){if(e.lifetime.aborted)return;ce(`UnauthorizedApiError`)(t)&&e.onSessionExpired(),e.setState(`failed`)}}})),n},Kn=(e,t,n=!1)=>{if(t.active!==null)return t.active.completion;let r=new AbortController,i=A(j),a=Vn(e),o=!1,s=async()=>{let s=await i,c=await A(j),l=t.participants.values().next().value;if(l===void 0||r.signal.aborted)return;let u=Hn(a),d=u===null?null:c-u.recordedAt;if(u!==null&&d!==null&&u.recordedAt<=c+Mn&&(!u.sessionExpired||u.ownerKey===l.ownerKey)&&(u.state===`syncing`?d<Nn:!n&&(u.recordedAt>=s||d<jn))){u.state!==`syncing`&&(o=await Gn(t,u));return}let f={ownerKey:l.ownerKey,recordedAt:c,sessionExpired:!1,state:`syncing`};Un(a,f),o=await Gn(t,f);let p=()=>Wn(a,f);r.signal.addEventListener(`abort`,p,{once:!0});try{let n=await l.transport.synchronize(e,r.signal);if(r.signal.aborted)return p();let i={ownerKey:l.ownerKey,recordedAt:await A(j),sessionExpired:!1,state:n.result===`synchronized`?`synchronized`:`failed`};Un(a,i),o=await Gn(t,i)}catch(e){if(r.signal.aborted)return p();let n={ownerKey:l.ownerKey,recordedAt:await A(j),sessionExpired:ce(`UnauthorizedApiError`)(e),state:`failed`};Un(a,n),o=await Gn(t,n)}finally{r.signal.removeEventListener(`abort`,p)}},c=`locks`in navigator?navigator.locks:null,l=(c===null?s():c.request(`control-center:confluence-sync:${e}`,{signal:r.signal},()=>s())).catch(async e=>{let n=t.participants.values().next().value;!r.signal.aborted&&n!==void 0&&(o=await Gn(t,{ownerKey:n.ownerKey,recordedAt:0,sessionExpired:ce(`UnauthorizedApiError`)(e),state:`failed`}))}).finally(()=>{t.active?.abort===r&&(t.active=null),o&&document.visibilityState===`visible`&&Kn(e,t,!0)});return t.active={abort:r,completion:l},l},qn=(e,t)=>{let n=null,r=0,i=!1,a=e=>{if(i||e!==r)return;let a=new AbortController;n=a,A(Ne(An),{signal:a.signal}).then(()=>o(),e=>{if(!a.signal.aborted)for(let e of t.participants.values())e.setState(`failed`)})},o=()=>{r+=1;let i=r;n?.abort(),n=null,(document.visibilityState===`visible`?Kn(e,t):Promise.resolve()).finally(()=>a(i))},s=()=>{if(document.visibilityState===`visible`){r+=1;let i=r;n?.abort(),n=null,Kn(e,t,!0).finally(()=>a(i))}},c=n=>{if(n.key!==Vn(e)||n.newValue===null)return;let r=Be(oe(he(Fn))(n.newValue));r!==null&&Gn(t,r).then(n=>{n&&document.visibilityState===`visible`&&Kn(e,t,!0)})};return document.addEventListener(`visibilitychange`,s),window.addEventListener(`storage`,c),o(),()=>{i=!0,r+=1,n?.abort(),n=null,t.active?.abort.abort(),t.active=null,document.removeEventListener(`visibilitychange`,s),window.removeEventListener(`storage`,c)}},Jn=(e,t)=>{let n=Symbol(),r=In.get(e),i=r??{active:null,participants:new Map};return i.participants.set(n,t),r===void 0&&(In.set(e,i),Ln.set(i,qn(e,i))),()=>{i.participants.delete(n),i.participants.size===0&&(Ln.get(i)?.(),Ln.delete(i),In.get(e)===i&&In.delete(e))}},Yn=async e=>{let t=Hn(e);if(t?.state!==`syncing`)return null;let n=await A(j);if(t.recordedAt>n+Mn)return null;let r=t.recordedAt+Nn-n;return r<=0?null:{remainingMillis:r,synchronization:t}},Xn=async(e,t)=>{let n=Vn(e);for(;;){if(t.aborted)return;let e=await Yn(n);if(e===null)return;let r=new AbortController;await new Promise(i=>{let a=!1,o=()=>{a||(a=!0,r.abort(),window.removeEventListener(`storage`,s),t.removeEventListener(`abort`,o),i())},s=e=>{e.key===n&&o()};window.addEventListener(`storage`,s),t.addEventListener(`abort`,o,{once:!0}),t.aborted&&o();let c=Hn(n);(c?.state!==`syncing`||c.ownerKey!==e.synchronization.ownerKey||c.recordedAt!==e.synchronization.recordedAt)&&o(),A(Ne(e.remainingMillis),{signal:r.signal}).then(o,e=>{r.signal.aborted||o()})})}},Zn=({enabled:e,onSessionExpired:t,onSynchronized:n,pluginConnectionId:r,readSynchronizationRevision:i,sessionKey:a,synchronizationRevision:o,transport:s=Pn})=>{let[c,l]=(0,M.useState)(`idle`),u=(0,M.useRef)(null),d=(0,M.useRef)(t),f=(0,M.useRef)(n),p=(0,M.useRef)(i),m=(0,M.useRef)({pluginConnectionId:r,sessionKey:a,value:o});d.current=t,f.current=n,p.current=i,m.current.pluginConnectionId!==r||m.current.sessionKey!==a?m.current={pluginConnectionId:r,sessionKey:a,value:o}:o!==null&&(m.current.value===null||o>m.current.value)&&(m.current.value=o);let h=(0,M.useCallback)(async e=>{let t=await p.current(e),n=m.current.value;return t===null||n===null||t<=n?!1:(m.current.value=t,!0)},[]),g=(0,M.useCallback)(()=>{if(!e||r===null||a===null)return Promise.resolve();let t=In.get(r);return t===void 0?Promise.resolve():Kn(r,t,!0)},[e,r,a]),_=(0,M.useCallback)(()=>{let e=u.current?.signal;if(e===void 0||e.aborted)return;let t=r===null?void 0:In.get(r)?.active?.completion??Xn(r,e);t===void 0?g():t.then(()=>{e.aborted||g()})},[r,g]);return(0,M.useEffect)(()=>{if(l(`idle`),!e||r===null||a===null)return;let t=new AbortController;u.current=t;let n=Jn(r,{lifetime:t.signal,onSessionExpired:()=>d.current(a),onSynchronized:()=>f.current(),ownerKey:Bn(a),sessionKey:a,setState:l,transport:s,verifySynchronized:h});return()=>{t.abort(),u.current===t&&(u.current=null),n()}},[e,r,a,s,h]),{state:c,synchronizeAfterMutation:_,synchronizeNow:_}},F={document:`_document_1dvhb_1`,folio:`_folio_1dvhb_2`,revision:`_revision_1dvhb_3`,folioMeta:`_folioMeta_1dvhb_4`,section:`_section_1dvhb_7`,sectionHeading:`_sectionHeading_1dvhb_8`,collections:`_collections_1dvhb_9`,versions:`_versions_1dvhb_10`,attachments:`_attachments_1dvhb_12`,contentState:`_contentState_1dvhb_14`,documentRead:`_documentRead_1dvhb_15`,editorEntry:`_editorEntry_1dvhb_16`,visualEditor:`_visualEditor_1dvhb_17`,editorHeading:`_editorHeading_1dvhb_18`,editorActions:`_editorActions_1dvhb_19`,editorToolbar:`_editorToolbar_1dvhb_20`,releaseTasks:`_releaseTasks_1dvhb_21`,releaseTaskHeading:`_releaseTaskHeading_1dvhb_22`,releaseTaskList:`_releaseTaskList_1dvhb_23`,evidenceCount:`_evidenceCount_1dvhb_25`,richText:`_richText_1dvhb_97`,editorCanvas:`_editorCanvas_1dvhb_250`};function Qn(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var $n=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,er=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tr={};function nr(e,t){return((t||tr).jsx?er:$n).test(e)}var rr=/[ \t\n\f\r]/g;function ir(e){return typeof e==`object`?e.type===`text`&&ar(e.value):ar(e)}function ar(e){return e.replace(rr,``)===``}var or=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};or.prototype.normal={},or.prototype.property={},or.prototype.space=void 0;function sr(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new or(n,r,t)}function cr(e){return e.toLowerCase()}var I=class{constructor(e,t){this.attribute=t,this.property=e}};I.prototype.attribute=``,I.prototype.booleanish=!1,I.prototype.boolean=!1,I.prototype.commaOrSpaceSeparated=!1,I.prototype.commaSeparated=!1,I.prototype.defined=!1,I.prototype.mustUseProperty=!1,I.prototype.number=!1,I.prototype.overloadedBoolean=!1,I.prototype.property=``,I.prototype.spaceSeparated=!1,I.prototype.space=void 0;var lr=e({boolean:()=>L,booleanish:()=>R,commaOrSpaceSeparated:()=>V,commaSeparated:()=>fr,number:()=>z,overloadedBoolean:()=>dr,spaceSeparated:()=>B}),ur=0,L=pr(),R=pr(),dr=pr(),z=pr(),B=pr(),fr=pr(),V=pr();function pr(){return 2**++ur}var mr=Object.keys(lr),hr=class extends I{constructor(e,t,n,r){let i=-1;if(super(e,t),gr(this,`space`,r),typeof n==`number`)for(;++i<mr.length;){let e=mr[i];gr(this,mr[i],(n&lr[e])===lr[e])}}};hr.prototype.defined=!0;function gr(e,t,n){n&&(e[t]=n)}function _r(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new hr(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[cr(r)]=r,n[cr(a.attribute)]=r}return new or(t,n,e.space)}var vr=_r({properties:{ariaActiveDescendant:null,ariaAtomic:R,ariaAutoComplete:null,ariaBusy:R,ariaChecked:R,ariaColCount:z,ariaColIndex:z,ariaColSpan:z,ariaControls:B,ariaCurrent:null,ariaDescribedBy:B,ariaDetails:null,ariaDisabled:R,ariaDropEffect:B,ariaErrorMessage:null,ariaExpanded:R,ariaFlowTo:B,ariaGrabbed:R,ariaHasPopup:null,ariaHidden:R,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:B,ariaLevel:z,ariaLive:null,ariaModal:R,ariaMultiLine:R,ariaMultiSelectable:R,ariaOrientation:null,ariaOwns:B,ariaPlaceholder:null,ariaPosInSet:z,ariaPressed:R,ariaReadOnly:R,ariaRelevant:null,ariaRequired:R,ariaRoleDescription:B,ariaRowCount:z,ariaRowIndex:z,ariaRowSpan:z,ariaSelected:R,ariaSetSize:z,ariaSort:null,ariaValueMax:z,ariaValueMin:z,ariaValueNow:z,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function yr(e,t){return t in e?e[t]:t}function br(e,t){return yr(e,t.toLowerCase())}var xr=_r({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:fr,acceptCharset:B,accessKey:B,action:null,allow:null,allowFullScreen:L,allowPaymentRequest:L,allowUserMedia:L,alpha:L,alt:null,as:null,async:L,autoCapitalize:null,autoComplete:B,autoFocus:L,autoPlay:L,blocking:B,capture:null,charSet:null,checked:L,cite:null,className:B,closedBy:null,colorSpace:null,cols:z,colSpan:z,command:null,commandFor:null,content:null,contentEditable:R,controls:L,controlsList:B,coords:z|fr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:L,defer:L,dir:null,dirName:null,disabled:L,download:dr,draggable:R,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:L,formTarget:null,headers:B,height:z,hidden:dr,high:z,href:null,hrefLang:null,htmlFor:B,httpEquiv:B,id:null,imageSizes:null,imageSrcSet:null,inert:L,inputMode:null,integrity:null,is:null,isMap:L,itemId:null,itemProp:B,itemRef:B,itemScope:L,itemType:B,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:L,low:z,manifest:null,max:null,maxLength:z,media:null,method:null,min:null,minLength:z,multiple:L,muted:L,name:null,nonce:null,noModule:L,noValidate:L,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:L,optimum:z,pattern:null,ping:B,placeholder:null,playsInline:L,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:L,referrerPolicy:null,rel:B,required:L,reversed:L,rows:z,rowSpan:z,sandbox:B,scope:null,scoped:L,seamless:L,selected:L,shadowRootClonable:L,shadowRootCustomElementRegistry:L,shadowRootDelegatesFocus:L,shadowRootMode:null,shadowRootSerializable:L,shape:null,size:z,sizes:null,slot:null,span:z,spellCheck:R,src:null,srcDoc:null,srcLang:null,srcSet:null,start:z,step:null,style:null,tabIndex:z,target:null,title:null,translate:null,type:null,typeMustMatch:L,useMap:null,value:R,width:z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:B,axis:null,background:null,bgColor:null,border:z,borderColor:null,bottomMargin:z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:L,declare:L,event:null,face:null,frame:null,frameBorder:null,hSpace:z,leftMargin:z,link:null,longDesc:null,lowSrc:null,marginHeight:z,marginWidth:z,noResize:L,noHref:L,noShade:L,noWrap:L,object:null,profile:null,prompt:null,rev:null,rightMargin:z,rules:null,scheme:null,scrolling:R,standby:null,summary:null,text:null,topMargin:z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:z,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:L,disablePictureInPicture:L,disableRemotePlayback:L,exportParts:fr,part:B,prefix:null,property:null,results:z,security:null,unselectable:null},space:`html`,transform:br}),Sr=_r({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:V,accentHeight:z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:z,amplitude:z,arabicForm:null,ascent:z,attributeName:null,attributeType:null,azimuth:z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:z,by:null,calcMode:null,capHeight:z,className:B,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:z,diffuseConstant:z,direction:null,display:null,dur:null,divisor:z,dominantBaseline:null,download:L,dx:null,dy:null,edgeMode:null,editable:null,elevation:z,enableBackground:null,end:null,event:null,exponent:z,externalResourcesRequired:null,fill:null,fillOpacity:z,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:fr,g2:fr,glyphName:fr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:z,horizOriginX:z,horizOriginY:z,id:null,ideographic:z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:z,k:z,k1:z,k2:z,k3:z,k4:z,kernelMatrix:V,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:z,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:z,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:z,overlineThickness:z,paintOrder:null,panose1:null,path:null,pathLength:z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:B,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:z,pointsAtY:z,pointsAtZ:z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:V,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:V,rev:V,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:V,requiredFeatures:V,requiredFonts:V,requiredFormats:V,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:z,specularExponent:z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:z,strikethroughThickness:z,string:null,stroke:null,strokeDashArray:V,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:z,strokeOpacity:z,strokeWidth:null,style:null,surfaceScale:z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:V,tabIndex:z,tableValues:null,target:null,targetX:z,targetY:z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:V,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:z,underlineThickness:z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:z,values:null,vAlphabetic:z,vMathematical:z,vectorEffect:null,vHanging:z,vIdeographic:z,version:null,vertAdvY:z,vertOriginX:z,vertOriginY:z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:yr}),Cr=_r({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),wr=_r({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:br}),Tr=_r({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Er={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},Dr=/[A-Z]/g,Or=/-[a-z]/g,kr=/^data[-\w.:]+$/i;function Ar(e,t){let n=cr(t),r=t,i=I;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&kr.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Or,Mr);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Or.test(e)){let n=e.replace(Dr,jr);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=hr}return new i(r,t)}function jr(e){return`-`+e.toLowerCase()}function Mr(e){return e.charAt(1).toUpperCase()}var Nr=sr([vr,xr,Cr,wr,Tr],`html`),Pr=sr([vr,Sr,Cr,wr,Tr],`svg`);function Fr(e){return e.join(` `).trim()}var Ir=n(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pullRequestReviewThreadReplay-D-FuOlQ0.js","assets/agent-api-0YXZd1ag.js","assets/client-C9AVNoed.js","assets/Domain-DH_T_LJ8.js","assets/authenticatedMutationClient-DHk0N1_5.js","assets/WorkspacePullRequestDetails-SexYOZUB.js","assets/rolldown-runtime-hePW80VL.js","assets/react-Cvdyeg_0.js","assets/loader-circle-CUNkyj3b.js","assets/Dialog-_t9OodCK-CzkLh9VB.js","assets/PortalProvider-CN_81Fy3-Cu7FMqdg.js","assets/jsx-runtime-NZYk81nU.js","assets/index-DlDEYM2e.js","assets/hooks-CGvBGjhq.js","assets/index-vGJLpF-N.css","assets/patterns-CJ4c7F5A.js","assets/primitives-Dj-qYrUZ-BIf5RLs4.js","assets/WorkspacePullRequestDetails-vqdWeSQV.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{n as e,r as t,t as n}from"./rolldown-runtime-hePW80VL.js";import{t as r}from"./react-Cvdyeg_0.js";import{m as i,p as a,s as o,u as s}from"./hooks-CGvBGjhq.js";import{a as c,d as l,i as u,r as d,v as f}from"./Dialog-_t9OodCK-CzkLh9VB.js";import{t as p}from"./jsx-runtime-NZYk81nU.js";import{O as m,b as h,c as g,w as _,x as v,y}from"./index-DlDEYM2e.js";import{c as b,f as x,h as S,l as C,n as w,o as T,p as E,s as ee,u as D,v as te,y as ne}from"./patterns-CJ4c7F5A.js";import{t as O}from"./primitives-Dj-qYrUZ-BIf5RLs4.js";import{Aa as re,An as k,Bt as ie,Ei as A,Ga as ae,Gi as j,Jn as oe,Jr as se,Ka as ce,Mn as le,Nn as ue,Oi as de,On as fe,Pi as pe,Pt as me,Qn as he,Si as ge,Ti as _e,Ua as ve,Wr as ye,Xr as be,Yn as xe,Zr as Se,aa as Ce,bn as we,ci as Te,cr as Ee,da as De,fr as Oe,ga as ke,gi as Ae,ha as je,hi as Me,ki as Ne,kn as Pe,lr as Fe,mi as Ie,n as Le,or as Re,qr as ze,ua as Be,ui as Ve,ur as He,xn as Ue}from"./agent-api-0YXZd1ag.js";import{n as We,t as Ge}from"./BrowserCrypto-BBWJ9Dbb.js";import{a as Ke}from"./client-C9AVNoed.js";import{a as qe,i as Je,o as Ye,r as Xe}from"./releaseAgentTransport-BOsjuWAi.js";import{n as Ze,t as Qe}from"./workspaceEntityPaths-xAl2jRFm.js";import{a as $e,i as et,o as tt,t as nt}from"./workspaceEntityRoutes-Cc_RtLvy.js";import{i as rt,n as it,r as at}from"./presentWorkspaceItems-Cd0qEwW1.js";import{t as ot}from"./authenticatedMutationClient-DHk0N1_5.js";import{c as st,h as ct,i as lt,l as ut,n as dt,r as ft}from"./controlCenterRelayDock-Bq4z8Xad.js";import{i as pt,n as mt,t as ht}from"./confluenceTasks-DElhwVeZ.js";import{t as gt}from"./WorkspaceEntityLink-BqUurz8P.js";import{t as _t}from"./connectionTestTransport-DtTYdbuO.js";var M=t(r(),1),N=p(),vt=e=>({id:String(e.providerId),name:e.displayName??String(e.providerId),kind:`review`,provider:String(e.providerId),harness:e.reviewProfile.sandbox,model:String(e.model),skillIds:[]}),yt=e=>({namespace:`control-center`,subjectId:String(e.entityId),revisionId:e.sessionKey,baseRevision:e.baseRevision,headRevision:e.headRevision}),bt=e=>{switch(e._tag){case`operator-message`:return{id:String(e.eventSequence),role:`operator`,text:e.prompt};case`progress`:return{id:String(e.eventSequence),role:`relay`,text:e.text};case`review-report`:return{id:String(e.eventSequence),role:`relay`,text:`${String(e.report.suggestions.length)} suggestions · ${String(e.report.notes.length)} notes`};case`run-failed`:return{id:String(e.eventSequence),role:`system`,text:`Review failed at ${e.stage}.`};case`run-completed`:return{id:String(e.eventSequence),role:`system`,text:`Review completed · ${e.outcome}`};case`run-interrupted`:return{id:String(e.eventSequence),role:`system`,text:`Review interrupted by a restart.`};case`cancellation-requested`:return{id:String(e.eventSequence),role:`system`,text:`Cancellation requested.`};case`run-queued`:case`run-started`:case`suggestion-published`:case`suggestion-revised`:case`usage`:return null}},xt=e=>e._tag===`ready`&&e.thread!==void 0?e.thread.events.flatMap(e=>{let t=bt(e);return t===null?[]:[t]}):[],St=e=>e._tag===`ready`?e.providerPresets??(e.provider===null?[]:[e.provider]):[],Ct=({conversation:e,providerId:t,request:n,startReview:r})=>{let i=ct(e),a=oe(Le)(n.message);return De(a)?Te(new st({product:`control-center`,thread:i})):pe({try:()=>r(a.success,t),catch:()=>new st({product:`control-center`,thread:i})})},wt=e=>{let t=St(e),n=e._tag===`ready`?e.provider:null;return t.length===0||n===null?dt:lt({modelId:n.providerId,models:t.map(({model:e,providerId:t})=>({id:t,label:`${t} · ${e}`})),profileId:n.providerId,profiles:t.map(({providerId:e,reviewProfile:t})=>({id:e,label:t.label}))})},Tt=({canEnqueue:e,entityId:t,inspection:n,reviewState:r,startReview:i,workspaceId:a})=>{let o=n.entity.projection.details,s=(0,M.useMemo)(()=>wt(r),[r]),c=(0,M.useMemo)(()=>ft({_tag:`control-center`,route:{entityId:t,href:Ze(a,t)},selection:s,thread:{pluginConnectionId:n.source.pluginConnectionId,pullRequestId:n.source.vendorImmutableId,repositoryName:o._tag===`pull-request`?o.repository:`unavailable`,workspaceId:a}}),[o,t,n.source.pluginConnectionId,n.source.vendorImmutableId,s,a]),l=(0,M.useMemo)(()=>{let t={context:[{id:`repository`,label:`Repository`,value:o._tag===`pull-request`?o.repository:`Unavailable`},{id:`pull-request`,label:`Pull request`,value:`#${n.source.vendorImmutableId}`},{id:`head`,label:`Current head`,value:o._tag===`pull-request`?o.headRevision.slice(0,12):`Unavailable`}],conversation:c,selection:s};if(r._tag===`idle`||r._tag===`loading`)return{...t,status:`loading`};if(r._tag===`failed`)return{...t,description:`Control Center could not load this durable PR thread.`,status:`error`};let a=St(r);return!e||r.provider===null||r.review._tag===`unavailable`?{...t,description:e?`No available PR-review agent profile is configured.`:`A workspace owner session is required to continue this PR thread.`,status:`unavailable`}:{...t,continuePullRequestConversation:e=>{let t=ct(c);if(r.action===`starting`||r.review._tag===`pending`)return new ut({product:`control-center`,reason:`conversation-busy`,thread:t});let n=a.find(({providerId:t})=>String(t)===String(e.selection.modelId)&&String(t)===String(e.selection.profileId));return n===void 0?new ut({product:`control-center`,reason:`selection-unavailable`,thread:t}):Ct({conversation:c,providerId:n.providerId,request:e,startReview:i})},messages:xt(r),status:`ready`}},[e,c,o,n.source.vendorImmutableId,r,s,i]);return g(l),null},Et=new Intl.DateTimeFormat(`en-GB`,{dateStyle:`medium`,timeStyle:`short`,timeZone:`UTC`}),Dt=e=>e.split(/[_\-\s]+/u).filter(Boolean).map(e=>`${e.charAt(0).toLocaleUpperCase(`en-US`)}${e.slice(1).toLocaleLowerCase(`en-US`)}`).join(` `),Ot=e=>{let t=Math.floor(e/60),n=e%60;return t===0?`${String(n)}m`:n===0?`${String(t)}h`:`${String(t)}h ${String(n)}m`},kt=e=>e==null?`Not synchronized`:Et.format(be(e)),At=e=>e==null?null:{dateTime:ye(e),label:Et.format(be(e))},jt=e=>e.lifecycle._tag!==`missing`&&e.lifecycle._tag!==`rejected`&&e.lifecycle._tag!==`superseded`,Mt=(e,t)=>{let n=new Set(t.graph.nodes.flatMap(({nodeId:e,resolution:n})=>n._tag===`resolved`&&n.target._tag===`entity`&&n.target.entityId===t.entity.projection.entityId?[e]:[])),r=new Map;for(let{nodeId:e,resolution:n}of t.graph.nodes)n._tag===`resolved`&&n.target._tag===`entity`&&n.target.entityKind===`issue`&&r.set(e,n.target.entityId);let i=new Map;for(let{projection:e}of t.graph.relatedEntityProjections)e.entityState===`present`&&e.entityType===`issue`&&i.set(e.entityId,e);let a=new Map;for(let e of t.graph.relationships){if(e.kind!==`tracks-time-for`||!n.has(e.sourceNodeId)||!jt(e))continue;let t=r.get(e.targetNodeId),o=t===void 0?void 0:i.get(t);if(t===void 0||o===void 0)continue;let s=e.lifecycle._tag===`inferred`||e.confidence._tag===`inferred`,c=a.get(t);if(c===void 0){a.set(t,{evidenceClaimIds:new Set(e.evidenceClaimIds),issue:o,state:s?`inferred`:`linked`});continue}for(let t of e.evidenceClaimIds)c.evidenceClaimIds.add(t);s||(c.state=`linked`)}return[...a.entries()].map(([t,{evidenceClaimIds:n,issue:r,state:i}])=>({evidenceLabel:`${String(n.size)} evidence claim${n.size===1?``:`s`}`,href:Ze(e,t),key:r.displayKey,state:i,title:r.title}))},Nt=(e,t,n)=>{let r=Mt(e,n),i=r.filter(({state:e})=>e===`inferred`).length,a=n.entity.owners.filter(({roles:e})=>e.some(e=>e.includes(`approver`))).map(({displayName:e})=>e),o=t.userId===void 0?void 0:n.entity.owners.find(({sourceIdentities:e})=>e?.some(({providerId:e,vendorPersonId:n})=>e===`clockify`&&n===t.userId)??!1);return{approvalDecidedAt:At(n.clockifyApproval?.decidedAt),approvalDetail:n.clockifyApproval===null?`No Control Center decision is recorded for this exact Clockify revision.`:n.clockifyApproval.rationale,approvalLabel:n.clockifyApproval===null?`Pending`:Dt(n.clockifyApproval.decision),approvers:a,associationDetail:r.length===0?`No current Jira relationship explains where this time belongs. The entry remains visible.`:i===0?`${String(r.length)} current Jira link${r.length===1?``:`s`}`:`${String(i)} inferred Jira link${i===1?``:`s`} — verify before reporting`,associationLabel:r.length===0?`Unattributed`:`Attributed`,billableLabel:t.billable?`Billable`:`Non-billable`,contributorLabel:o?.displayName??t.userId??`Contributor not synchronized`,description:t.description??n.entity.projection.title,durationLabel:Ot(t.durationMinutes),endedAt:kt(t.endedAt),jiraAssociations:r,lockLabel:t.locked===void 0?`Lock state not synchronized`:t.locked?`Locked`:`Unlocked`,projectLabel:t.projectId??`No Clockify project`,rollupLabel:`1 visible entry · ${String(t.durationMinutes)} exact minute${t.durationMinutes===1?``:`s`}`,sourceRevision:n.source.revision,startedAt:kt(t.startedAt),timerLabel:t.startedAt===void 0||t.endedAt===void 0?`Timer state not synchronized`:t.endedAt===null?`Timer running`:`Completed`,totalMinutes:t.durationMinutes}},Pt=new Intl.DateTimeFormat(`en-GB`,{dateStyle:`medium`,timeStyle:`short`,timeZone:`UTC`}),Ft=e=>e.split(`-`).map(e=>`${e.charAt(0).toLocaleUpperCase(`en-US`)}${e.slice(1)}`).join(` `),It=e=>e===null?null:re(ze(e),{onNone:()=>e,onSome:e=>Pt.format(be(e))}),Lt=e=>e.name??e.sourceId??`Not set`,Rt=e=>e===void 0||e.length===0?`Not set`:e.join(` · `),zt=e=>({id:e,name:`Unknown collaborator`,role:`Jira collaborator`}),Bt=e=>new Map((e.collaborators??[]).map(e=>{let t=e.roles.map(Ft);return[e.sourcePersonId,{id:e.sourcePersonId,name:e.displayName,role:t.length===0?`Jira collaborator`:t.join(` · `),...e.avatarUrl!==null&&{avatarSrc:e.avatarUrl}}]})),Vt=(e,t)=>({href:(()=>{if(t===null||e.key===null)return null;let n=/^(.*\/browse\/)[^/]+$/u.exec(t.pathname)?.[1];return n===void 0?null:`${t.origin}${n}${encodeURIComponent(e.key)}`})(),key:e.key??e.sourceId??`Unknown issue`,status:e.status===null?`Status unknown`:Lt(e.status),summary:e.summary??`Summary unavailable`}),Ht=e=>{let t=e.project,n=(e.fixVersions??[]).map(Lt),r=(e.components??[]).map(Lt);return[{label:`Type`,value:e.issueType===null||e.issueType===void 0?`Not set`:Lt(e.issueType)},{label:`Project`,value:t==null?`Not set`:[t.key,t.name].filter(e=>e!==null).join(` · `)||`Not set`},{label:`Resolution`,value:e.resolution===null||e.resolution===void 0?`Unresolved`:Lt(e.resolution)},{label:`Labels`,value:Rt(e.labels)},{label:`Components`,value:Rt(r)},{label:`Fix versions`,value:Rt(n)},{label:`Created`,value:It(e.createdAt??null)??`Not available`},{label:`Updated`,value:It(e.updatedAt??null)??`Not available`},{label:`Due`,value:It(e.dueDate??null)??`Not set`}]},Ut=(e,t)=>`${e??`Empty`} → ${t??`Empty`}`,Wt=(e,t)=>{let n=Bt(e),r=e=>e===null?zt(`unknown-person`):n.get(e)??zt(e),i=new Set(e.truncatedFields??[]),a=(e.comments??[]).map(e=>({author:r(e.authorSourcePersonId),body:e.body,id:e.sourceId,time:It(e.updatedAt??e.createdAt)})),o=(e.history??[]).map(e=>({actor:r(e.authorSourcePersonId),changes:e.changes.map(e=>({field:e.field,transition:Ut(e.from,e.to)})),id:e.sourceId,time:It(e.createdAt)})),s=e.commentTotal??a.length,c=e.historyTotal??o.length,l=(e.commentsTruncated??!1)||s>a.length,u=(e.historyTruncated??!1)||c>o.length,d=[...i].filter(e=>e!==`comments`&&(e!==`history`||!u));return{acceptanceCriteria:e.acceptanceCriteria??null,collaborators:[...n.values()],commentCount:s,comments:a,commentBodiesTruncated:e.commentBodiesTruncated??(i.has(`comments`)&&!l),commentsTruncated:l,description:e.description??null,environment:e.environment??null,history:o,historyCount:c,historyTruncated:u,metadata:Ht(e),parent:e.parent===null||e.parent===void 0?null:Vt(e.parent,t),subtasks:(e.subtasks??[]).map(e=>Vt(e,t)),truncationMessage:d.length===0?null:`Jira shortened ${d.map(Ft).join(`, `)} to keep this synchronized view bounded.`}},Gt=new Intl.DateTimeFormat(`en-GB`,{dateStyle:`medium`,timeStyle:`short`,timeZone:`UTC`}),Kt=e=>e.split(/[._\-\s]+/u).filter(e=>e.length>0).map(e=>`${e.charAt(0).toLocaleUpperCase(`en-US`)}${e.slice(1)}`).join(` `),qt=e=>Kt(e.split(`/`).filter(e=>e.length>0).at(-1)??e)||`AWS identity`,Jt=e=>e==null?null:{id:e,name:qt(e),role:`Pull request author`},Yt=e=>e==null?null:re(ze(e),{onNone:()=>null,onSome:e=>({dateTime:ye(e),label:Gt.format(be(e))})}),Xt=e=>{switch(e){case`approved`:return`Approved by people`;case`changes-requested`:return`Changes requested`;case`merged`:return`Merged`;case`requested`:return`Human review requested`;case`not-requested`:return`No human approval synchronized`}},Zt=e=>{let t=new Map(e.graph.nodes.flatMap(({nodeId:e,resolution:t})=>t._tag===`resolved`&&t.target._tag===`entity`?[[e,t.target.entityId]]:[])),n=new Set(e.graph.nodes.flatMap(({nodeId:t,resolution:n})=>n._tag===`resolved`&&n.target._tag===`entity`&&n.target.entityId===e.entity.projection.entityId?[t]:[]));return new Set(e.graph.relationships.flatMap(e=>{if(e.lifecycle._tag===`missing`||e.lifecycle._tag===`rejected`||e.lifecycle._tag===`superseded`)return[];let r=n.has(e.sourceNodeId)?e.targetNodeId:n.has(e.targetNodeId)?e.sourceNodeId:null,i=r===null?null:t.get(r);return i==null?[]:[i]}))},Qt=(e,t,n)=>{let r=Zt(n),i=e=>n.graph.relatedEntityProjections.filter(({projection:t})=>t.entityState===`present`&&t.entityType===e&&r.has(t.entityId)).length,a=n.entity.releaseIds.length,o=i(`issue`),s=i(`pipeline-execution`),c=e=>`${String(e)}${n.graph.truncated?`+`:``}`;return{author:Jt(e.authorReference),baseRevision:e.baseRevision??null,createdAt:Yt(e.createdAt),description:e.description?.trim()||null,diffScope:{pluginConnectionId:t.pluginConnectionId,vendorImmutableId:t.vendorImmutableId,revision:t.revision},filesHref:t.sourceUrl?.href??null,headRevision:e.headRevision,issueCount:o,issueCountLabel:c(o),mergeBaseRevision:e.mergeBaseRevision??null,pipelineCount:s,pipelineCountLabel:c(s),releaseCount:a,releaseCountLabel:`${String(a)}${n.entity.releaseMembershipsTruncated?`+`:``}`,reviewLabel:Xt(e.reviewState),sourceBranch:e.sourceBranch,targetBranch:e.targetBranch,updatedAt:Yt(e.updatedAt)}},$t=new Intl.DateTimeFormat(`en-GB`,{dateStyle:`medium`,timeStyle:`short`,timeZone:`UTC`}),en=e=>e.split(`-`).map(e=>`${e.charAt(0).toLocaleUpperCase(`en-US`)}${e.slice(1)}`).join(` `),tn={clockify:`Clockify`,codecommit:`CodeCommit`,codepipeline:`CodePipeline`,confluence:`Confluence`,jira:`Jira`},nn={deployment:`Deployment`,issue:`Issue`,page:`Page`,"pipeline-execution":`Pipeline execution`,"pull-request":`Pull request`,"time-entry":`Time entry`},rn=e=>$t.format(be(e)),an=e=>{if(e.sourceUrl===null)return null;let t=new URL(e.sourceUrl.href);return e.providerId===`confluence`&&t.pathname.startsWith(`/spaces/`)&&(t.pathname=`/wiki${t.pathname}`),t.href},on=(e,t)=>`/w/${encodeURIComponent(e)}/releases/${encodeURIComponent(t)}`,sn=e=>e.slice(-8),cn=e=>{switch(e._tag){case`issue`:return[{label:`Priority`,value:e.priority??`Not set`},{label:`Estimate`,value:e.estimatePoints===null?`Not estimated`:`${e.estimatePoints} points`}];case`pull-request`:return[{label:`Repository`,value:e.repository},...e.lifecycle===null||e.lifecycle===void 0?[]:[{label:`State`,value:en(e.lifecycle)}],{label:`Branches`,value:`${e.sourceBranch} → ${e.targetBranch}`},{label:`Head revision`,value:e.headRevision}];case`page`:return[{label:`Space`,value:e.spaceKey},{label:`Revision`,value:e.revision}];case`pipeline-execution`:return[{label:`Pipeline`,value:e.pipelineName},{label:`Execution`,value:e.executionId},{label:`Trigger revision`,value:e.triggerRevision}];case`deployment`:return[{label:`Environment`,value:sn(e.environmentId)},{label:`Revision`,value:e.revision}];case`time-entry`:return[{label:`Duration`,value:`${e.durationMinutes} min`},{label:`Billable`,value:e.billable?`Yes`:`No`}]}},ln=e=>en(e),un=e=>({avatarFallback:e.avatarFallback,id:e.personId,name:e.displayName,role:[...new Set(e.roles.map(ln))].join(` · `)}),dn=e=>e.some(e=>e.includes(`approver`))?`approvers`:e.some(e=>e===`reviewer`||e===`watcher`)?`reviewers`:e.includes(`operator`)?`operators`:e.some(e=>e===`author`||e===`contributor`)?`authors`:`owners`,fn=e=>{let t=[`authors`,`owners`,`reviewers`,`operators`,`approvers`],n=()=>[],r={approvers:n(),authors:n(),operators:n(),owners:n(),reviewers:n()};for(let t of e)r[dn(t.roles)].push(un(t));let i=t.filter(e=>r[e].length>0);return{...r,emptyLabel:`No collaborator is assigned to this object.`,expandedCategories:i}},pn=(e,t)=>{if(t===null)return e;let n=[...e.owners],r=[...e.authors],i=new Set([...e.approvers,...e.authors,...e.operators,...e.owners,...e.reviewers].map(e=>e.name.toLocaleLowerCase(`en-US`))),a=new Set;for(let e of t.collaborators){if(a.has(e.id))continue;a.add(e.id);let t=e.name.toLocaleLowerCase(`en-US`);i.has(t)||(e.role.includes(`Assignee`)?n.push(e):r.push(e))}let o=[];r.length>0&&o.push(`authors`),n.length>0&&o.push(`owners`);for(let t of e.expandedCategories)o.push(t);return{...e,authors:r,emptyLabel:`No collaborator was synchronized or assigned to this object.`,expandedCategories:[...new Set(o)],owners:n}},mn=(e,t,n)=>{if(t===null)return e;let r={approvers:[...e.approvers],authors:[...e.authors],operators:[...e.operators],owners:[...e.owners],reviewers:[...e.reviewers]},i=new Set(Object.values(r).flat().map(({id:e})=>e)),a=new Set(n.flatMap(e=>(e.sourceIdentities??[]).filter(({providerId:e})=>e===`confluence`).map(({vendorPersonId:e})=>e)));for(let e of t.contributors)i.has(e.id)||a.has(e.id)||(i.add(e.id),e.role.includes(`Owner`)?r.owners.push(e):e.role.includes(`Watcher`)?r.reviewers.push(e):r.authors.push(e));let o=[`authors`,`owners`,`reviewers`,`operators`,`approvers`];return{...r,emptyLabel:`No collaborator was synchronized or assigned to this document.`,expandedCategories:o.filter(e=>r[e].length>0)}},hn=e=>{let t=e.freshness;return t===null?e.isSourceCurrent?`current`:`cached`:t._tag===`current`?e.isSourceCurrent&&t.provenance._tag===`provider`?`current`:`cached`:t._tag},gn=e=>{let t=e.freshness;return t===null?e.entity.recordedAt:t.sourceObservedAt??t.synchronizedAt??t.pluginHealth.checkedAt},_n=(e,t,n,r)=>{if(e===void 0)return{state:`missing`,label:`Unknown graph endpoint`,reason:`The endpoint is outside this graph response.`};if(e.resolution._tag===`missing`)return{state:`missing`,label:e.resolution.missingKey,reason:`${en(e.endpointKind)} is not connected.`};let i=e.resolution.target;if(i._tag===`entity`){let e=t.get(i.entityId);return e===void 0?{state:`missing`,label:`${nn[i.entityKind]} ${sn(i.entityId)}`,reason:`The related object is outside this bounded response.`,service:it(i.entityKind)}:e.entityState===`deleted`?{state:`missing`,label:`${e.title} · Deleted`,reason:`The related object was deleted.`,service:it(e.entityType)}:{state:`present`,href:Ze(r,e.entityId),id:e.entityId,reference:e.displayKey,service:it(e.entityType),title:e.title}}return i._tag===`release`?{state:`present`,href:on(r,i.releaseId),id:i.releaseId,reference:`Control Center release · ${sn(i.releaseId)}`,service:n,title:`Delivery release`}:{state:`present`,id:i.environmentId,reference:`Control Center environment · ${sn(i.environmentId)}`,service:n,title:`Delivery environment`}},vn=e=>{let t=e.evidenceClaimIds.length,n=e.confidence._tag===`inferred`?`${Math.round(e.confidence.score*100)}% inferred`:en(e.confidence._tag);return`${t} evidence claim${t===1?``:`s`} · ${n}`},yn=(e,t,n)=>{let r=new Map(e.graph.nodes.map(e=>[e.nodeId,e])),i=[e.entity,...e.graph.relatedEntityProjections].map(({projection:e})=>e),a=new Map(i.map(e=>[e.entityId,e])),o=new Map(e.entity.owners.map(e=>[e.personId,e]));return e.graph.relationships.map(e=>{let i=e.recordedBy._tag===`human`?o.get(e.recordedBy.personId):void 0;return{...i!==void 0&&{actor:un(i)},direction:`forward`,evidence:vn(e),id:e.relationshipId,kind:en(e.kind),lifecycle:e.lifecycle._tag,source:_n(r.get(e.sourceNodeId),a,n,t),target:_n(r.get(e.targetNodeId),a,n,t)}})},bn=e=>e.activity.events.map(e=>({actor:e.actor.label,actorKind:e.actor.kind,dateTime:ye(e.occurredAt),detail:en(e.sourceKind),...e.href!==null&&{href:e.href},id:e.eventKey,...e.service!==null&&{service:e.service},time:rn(e.occurredAt),title:e.title})),xn=(e,t,n)=>{let r=an(e.source);if(r!==null)return{external:!0,href:r,label:e.source.providerId===`confluence`?`View in Confluence`:`Open in ${n}`};let i=e.entity.canonicalReleaseId;return i===null?{external:!1,href:null,label:`Source link unavailable`}:{external:!1,href:on(t,i),label:`Open delivery release`}},Sn=e=>[...e.entity.ownersTruncated?[`More collaborators exist than this bounded view can show.`]:[],...e.entity.releaseMembershipsTruncated?[`More release memberships exist than this bounded delivery path can show.`]:[],...e.graph.truncated?[`The relationship graph is partial; additional delivery links exist.`]:[],...e.activity.truncated?[`The activity list is partial; older events are not shown.`]:[]],Cn=({displayKey:e,issue:t,releaseCount:n,serviceName:r,title:i})=>t===null?`${e} · ${i} · ${r}`:`${e} · ${i} · ${r} issue · ${String(n)} release${n===1?``:`s`} · ${String(t.commentCount)} synchronized comment${t.commentCount===1?``:`s`}`,wn=(e,t)=>{let n=t.entity.projection,r=it(n.entityType),i=tn[r],a=at(n.details),o=n.details._tag===`issue`?Wt(n.details,t.source.sourceUrl):null,s=n.details._tag===`pull-request`?Qt(n.details,t.source,t):null,c=n.details._tag===`pipeline-execution`?pt(n.details,t):null,l=n.details._tag===`page`?Ye(n.details,t):null,u=n.details._tag===`time-entry`?Nt(e,n.details,t):null,d=gn(t),f=t.entity.releaseIds.length;return{activity:bn(t),activityEmptyLabel:`No attributable activity has been recorded for this object.`,agentContext:Cn({displayKey:n.displayKey,issue:o,releaseCount:f,serviceName:i,title:n.title}),collaborators:mn(pn(fn(t.entity.owners),o),l,t.entity.owners),clockifyTimeEntry:u,confluencePage:l,contentSummary:`${nn[n.entityType]} ${n.displayKey} is tracked in ${i}. ${f===0?`It is not linked to a release yet.`:`It belongs to ${f}${t.entity.releaseMembershipsTruncated?`+`:``} release${f===1?``:`s`}.`}`,displayKey:n.displayKey,evidence:{claimCount:t.graph.evidenceClaims.length,freshness:hn(t),freshnessDateTime:ye(d),freshnessTime:rn(d),itemCount:t.graph.evidenceItems.length,reference:`${n.displayKey} · source revision ${t.source.revision}`},facts:[{label:`Object`,value:nn[n.entityType]},{label:`Service`,value:i},...cn(n.details)],freshness:hn(t),freshnessDateTime:ye(d),freshnessTime:rn(d),kindLabel:nn[n.entityType],issue:o,pipelineExecution:c,pullRequest:s,partialMessages:Sn(t),primaryAction:xn(t,e,i),relationships:yn(t,e,r),relationshipEmptyLabel:`No delivery relationships have been recorded for this object.`,releases:t.entity.releaseIds.map(t=>({href:on(e,t),id:t,label:`Release ${sn(t)}`})),service:r,serviceName:i,title:n.title,tone:rt(n.entityType,a).tone,verdict:a}},P={state:`_state_13ab1_1`,loading:`_loading_13ab1_12`,loadingColumns:`_loadingColumns_13ab1_13`,content:`_content_13ab1_14`,entityActions:`_entityActions_13ab1_15`,deliveryPath:`_deliveryPath_13ab1_16`,facts:`_facts_13ab1_17`,evidence:`_evidence_13ab1_18`,activity:`_activity_13ab1_19`,sectionHeading:`_sectionHeading_13ab1_20`,back:`_back_13ab1_34`,principalAction:`_principalAction_13ab1_35`,releasePath:`_releasePath_13ab1_36`,pageSynchronization:`_pageSynchronization_13ab1_67`,secondaryAction:`_secondaryAction_13ab1_76`,pathRail:`_pathRail_13ab1_112`,pathNode:`_pathNode_13ab1_121`,pathEmpty:`_pathEmpty_13ab1_122`,workingCircle:`_workingCircle_13ab1_190`,shell:`_shell_13ab1_212`,timeline:`_timeline_13ab1_236`},Tn={document:`_document_1mruv_1`,ledger:`_ledger_1mruv_2`,ledgerBody:`_ledgerBody_1mruv_3`,primaryFacts:`_primaryFacts_1mruv_5`,section:`_section_1mruv_7`,sectionHeading:`_sectionHeading_1mruv_8`,entry:`_entry_1mruv_9`,attribution:`_attribution_1mruv_12`,people:`_people_1mruv_17`,readOnly:`_readOnly_1mruv_19`,total:`_total_1mruv_36`},En=({children:e,heading:t,meta:n})=>(0,N.jsxs)(`section`,{className:Tn.section,children:[(0,N.jsxs)(`header`,{className:Tn.sectionHeading,children:[(0,N.jsx)(O,{as:`h2`,variant:`section-title`,children:t}),(0,N.jsx)(O,{tone:`secondary`,variant:`meta`,children:n})]}),e]}),Dn=({canApprove:e=!1,canCorrect:t=!1,onSubmit:n,submission:r={_tag:`idle`},timeEntry:i})=>{let[a,o]=(0,M.useState)(``),[s,c]=(0,M.useState)(``),l=(0,M.useRef)(`approved`),u=!t||n===void 0||r._tag===`submitting`,d=!e||n===void 0||r._tag===`submitting`;return(0,N.jsxs)(`article`,{className:Tn.document,"data-workspace-clockify-time-entry-detail":!0,children:[(0,N.jsxs)(`section`,{"aria-label":`Clockify time ledger`,className:Tn.ledger,children:[(0,N.jsxs)(`div`,{className:Tn.total,children:[(0,N.jsx)(`span`,{children:`Total tracked`}),(0,N.jsx)(`strong`,{children:i.durationLabel}),(0,N.jsx)(`small`,{children:i.rollupLabel})]}),(0,N.jsxs)(`div`,{className:Tn.ledgerBody,children:[(0,N.jsxs)(`header`,{children:[(0,N.jsx)(`span`,{children:`Time ledger`}),(0,N.jsx)(f,{label:i.associationLabel,tone:i.jiraAssociations.length===0?`caution`:`positive`})]}),(0,N.jsx)(`p`,{children:i.description}),(0,N.jsxs)(`dl`,{className:Tn.primaryFacts,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Project`}),(0,N.jsx)(`dd`,{children:i.projectLabel})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Billing`}),(0,N.jsx)(`dd`,{children:i.billableLabel})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Contributor`}),(0,N.jsx)(`dd`,{children:i.contributorLabel})]})]})]})]}),(0,N.jsx)(En,{heading:`Entry`,meta:`The exact source record included in the total`,children:(0,N.jsxs)(`div`,{className:Tn.entry,children:[(0,N.jsx)(`strong`,{children:i.durationLabel}),(0,N.jsxs)(`dl`,{children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Started`}),(0,N.jsx)(`dd`,{children:i.startedAt})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Ended`}),(0,N.jsx)(`dd`,{children:i.endedAt})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`State`}),(0,N.jsx)(`dd`,{children:i.timerLabel})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Provider lock`}),(0,N.jsx)(`dd`,{children:i.lockLabel})]})]})]})}),(0,N.jsx)(En,{heading:`Jira attribution`,meta:`Current delivery-ledger relationships`,children:(0,N.jsxs)(`div`,{className:Tn.attribution,"data-state":i.jiraAssociations.length===0?`missing`:`linked`,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`strong`,{children:i.associationLabel}),(0,N.jsx)(`p`,{children:i.associationDetail})]}),i.jiraAssociations.length===0?null:(0,N.jsx)(`ul`,{children:i.jiraAssociations.map(e=>(0,N.jsx)(`li`,{children:(0,N.jsxs)(_,{to:e.href,children:[(0,N.jsx)(`span`,{children:e.key}),(0,N.jsx)(`strong`,{children:e.title}),(0,N.jsxs)(`small`,{children:[e.state===`inferred`?`Inferred`:`Linked`,` · `,e.evidenceLabel]})]})},e.href))})]})}),(0,N.jsx)(En,{heading:`People`,meta:`Provider contributor and assigned approvers`,children:(0,N.jsxs)(`dl`,{className:Tn.people,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Contributor`}),(0,N.jsx)(`dd`,{children:i.contributorLabel})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Approvers`}),(0,N.jsx)(`dd`,{children:i.approvers.join(` · `)||`No approval recorded`})]})]})}),(0,N.jsxs)(`aside`,{className:Tn.readOnly,"data-clockify-approval":!0,children:[(0,N.jsxs)(`strong`,{children:[`Control Center approval: `,i.approvalLabel]}),(0,N.jsx)(`span`,{children:i.approvalDetail}),i.approvalDecidedAt===null?null:(0,N.jsxs)(`time`,{dateTime:i.approvalDecidedAt.dateTime,children:[`Recorded `,i.approvalDecidedAt.label]})]}),(0,N.jsxs)(`section`,{"aria-label":`Governed Clockify actions`,"data-clockify-governed-actions":!0,children:[(0,N.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),u||n({_tag:`correct-association`,expectedRevision:i.sourceRevision,jiraIssueKey:a})},children:[(0,N.jsxs)(`label`,{children:[`Jira issue key`,(0,N.jsx)(`input`,{disabled:u,maxLength:100,onChange:e=>o(e.currentTarget.value),pattern:`[A-Z][A-Z0-9]*-[1-9][0-9]*`,required:!0,value:a})]}),(0,N.jsx)(`button`,{disabled:u,type:`submit`,children:`Correct association`})]}),(0,N.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),!d&&s.trim().length>0&&(n({_tag:`record-approval`,expectedRevision:i.sourceRevision,decision:l.current,rationale:s.trim()}),l.current=`approved`)},children:[(0,N.jsxs)(`label`,{children:[`Approval rationale`,(0,N.jsx)(`input`,{disabled:d,maxLength:1e3,onChange:e=>c(e.currentTarget.value),required:!0,value:s})]}),(0,N.jsx)(`button`,{disabled:d||s.trim().length===0,onClick:()=>{l.current=`approved`},type:`submit`,children:`Approve revision`}),(0,N.jsx)(`button`,{disabled:d||s.trim().length===0,onClick:()=>{l.current=`rejected`},type:`submit`,children:`Reject revision`})]}),r._tag===`failed`?(0,N.jsx)(`p`,{role:`alert`,children:`The governed action could not be submitted.`}):null,r._tag===`succeeded`?(0,N.jsxs)(`p`,{children:[`Action recorded: `,r.result.state]}):null]})]})},On={submit:(e,t,n)=>A(Ie(function*(){let n=yield*ot;return t._tag,yield*n.deliveryGraph.submitClockifyAction({params:{entityId:e},payload:t})}).pipe(ge(Ke)),{signal:n})},kn=(e,t,n,r,i=On)=>{let[a,o]=(0,M.useState)({_tag:`idle`}),s=(0,M.useRef)(null);return(0,M.useEffect)(()=>(s.current?.abort(),s.current=null,o({_tag:`idle`}),()=>{s.current?.abort(),s.current=null}),[e,t]),{state:a,submit:(0,M.useCallback)(a=>{if(t===null||s.current!==null)return;let c=new AbortController;s.current=c,o({_tag:`submitting`}),i.submit(e,a,c.signal).then(e=>{s.current===c&&(s.current=null,o({_tag:`succeeded`,result:e}),r())},e=>{s.current===c&&(s.current=null,ce(`UnauthorizedApiError`)(e)&&n(t),c.signal.aborted||o({_tag:`failed`}))})},[e,n,r,t,i])}},An=`15 seconds`,jn=15e3,Mn=1e3,Nn=9e5,Pn={synchronize:(e,t)=>{let n=_t.synchronize;return n===void 0?Promise.reject(Error(`Confluence synchronization is unavailable`)):n(e,t)}},Fn=ue({ownerKey:le,recordedAt:k,sessionExpired:Ue,state:fe([`syncing`,`synchronized`,`failed`])}),In=new Map,Ln=new WeakMap,Rn=new Map,zn=Ie(function*(){return yield*(yield*We).randomUUIDv4}).pipe(ge(Ge)),Bn=e=>{let t=Rn.get(e);if(t!==void 0)return t;let n=de(zn);return Rn.set(e,n),n},Vn=e=>`control-center:confluence-sync:${e}`,Hn=e=>{try{let t=localStorage.getItem(e);return t===null?null:Be(oe(he(Fn))(t))}catch{return null}},Un=(e,t)=>{try{localStorage.setItem(e,xe(he(Fn))(t))}catch{}},Wn=(e,t)=>{let n=Hn(e);if(n?.state===`syncing`&&n.ownerKey===t.ownerKey&&n.recordedAt===t.recordedAt)try{localStorage.removeItem(e)}catch{}},Gn=async(e,t)=>{let n=!1;return await Promise.all(Array.from(e.participants.values(),async e=>{if(!e.lifetime.aborted){if(t.sessionExpired&&t.ownerKey!==e.ownerKey){n=!0;return}if(t.state!==`synchronized`){e.setState(t.state),t.sessionExpired&&e.onSessionExpired();return}e.setState(`syncing`);try{let t=await e.verifySynchronized(e.lifetime);if(e.lifetime.aborted)return;e.setState(t?`synchronized`:`idle`),t&&e.onSynchronized()}catch(t){if(e.lifetime.aborted)return;ce(`UnauthorizedApiError`)(t)&&e.onSessionExpired(),e.setState(`failed`)}}})),n},Kn=(e,t,n=!1)=>{if(t.active!==null)return t.active.completion;let r=new AbortController,i=A(j),a=Vn(e),o=!1,s=async()=>{let s=await i,c=await A(j),l=t.participants.values().next().value;if(l===void 0||r.signal.aborted)return;let u=Hn(a),d=u===null?null:c-u.recordedAt;if(u!==null&&d!==null&&u.recordedAt<=c+Mn&&(!u.sessionExpired||u.ownerKey===l.ownerKey)&&(u.state===`syncing`?d<Nn:!n&&(u.recordedAt>=s||d<jn))){u.state!==`syncing`&&(o=await Gn(t,u));return}let f={ownerKey:l.ownerKey,recordedAt:c,sessionExpired:!1,state:`syncing`};Un(a,f),o=await Gn(t,f);let p=()=>Wn(a,f);r.signal.addEventListener(`abort`,p,{once:!0});try{let n=await l.transport.synchronize(e,r.signal);if(r.signal.aborted)return p();let i={ownerKey:l.ownerKey,recordedAt:await A(j),sessionExpired:!1,state:n.result===`synchronized`?`synchronized`:`failed`};Un(a,i),o=await Gn(t,i)}catch(e){if(r.signal.aborted)return p();let n={ownerKey:l.ownerKey,recordedAt:await A(j),sessionExpired:ce(`UnauthorizedApiError`)(e),state:`failed`};Un(a,n),o=await Gn(t,n)}finally{r.signal.removeEventListener(`abort`,p)}},c=`locks`in navigator?navigator.locks:null,l=(c===null?s():c.request(`control-center:confluence-sync:${e}`,{signal:r.signal},()=>s())).catch(async e=>{let n=t.participants.values().next().value;!r.signal.aborted&&n!==void 0&&(o=await Gn(t,{ownerKey:n.ownerKey,recordedAt:0,sessionExpired:ce(`UnauthorizedApiError`)(e),state:`failed`}))}).finally(()=>{t.active?.abort===r&&(t.active=null),o&&document.visibilityState===`visible`&&Kn(e,t,!0)});return t.active={abort:r,completion:l},l},qn=(e,t)=>{let n=null,r=0,i=!1,a=e=>{if(i||e!==r)return;let a=new AbortController;n=a,A(Ne(An),{signal:a.signal}).then(()=>o(),e=>{if(!a.signal.aborted)for(let e of t.participants.values())e.setState(`failed`)})},o=()=>{r+=1;let i=r;n?.abort(),n=null,(document.visibilityState===`visible`?Kn(e,t):Promise.resolve()).finally(()=>a(i))},s=()=>{if(document.visibilityState===`visible`){r+=1;let i=r;n?.abort(),n=null,Kn(e,t,!0).finally(()=>a(i))}},c=n=>{if(n.key!==Vn(e)||n.newValue===null)return;let r=Be(oe(he(Fn))(n.newValue));r!==null&&Gn(t,r).then(n=>{n&&document.visibilityState===`visible`&&Kn(e,t,!0)})};return document.addEventListener(`visibilitychange`,s),window.addEventListener(`storage`,c),o(),()=>{i=!0,r+=1,n?.abort(),n=null,t.active?.abort.abort(),t.active=null,document.removeEventListener(`visibilitychange`,s),window.removeEventListener(`storage`,c)}},Jn=(e,t)=>{let n=Symbol(),r=In.get(e),i=r??{active:null,participants:new Map};return i.participants.set(n,t),r===void 0&&(In.set(e,i),Ln.set(i,qn(e,i))),()=>{i.participants.delete(n),i.participants.size===0&&(Ln.get(i)?.(),Ln.delete(i),In.get(e)===i&&In.delete(e))}},Yn=async e=>{let t=Hn(e);if(t?.state!==`syncing`)return null;let n=await A(j);if(t.recordedAt>n+Mn)return null;let r=t.recordedAt+Nn-n;return r<=0?null:{remainingMillis:r,synchronization:t}},Xn=async(e,t)=>{let n=Vn(e);for(;;){if(t.aborted)return;let e=await Yn(n);if(e===null)return;let r=new AbortController;await new Promise(i=>{let a=!1,o=()=>{a||(a=!0,r.abort(),window.removeEventListener(`storage`,s),t.removeEventListener(`abort`,o),i())},s=e=>{e.key===n&&o()};window.addEventListener(`storage`,s),t.addEventListener(`abort`,o,{once:!0}),t.aborted&&o();let c=Hn(n);(c?.state!==`syncing`||c.ownerKey!==e.synchronization.ownerKey||c.recordedAt!==e.synchronization.recordedAt)&&o(),A(Ne(e.remainingMillis),{signal:r.signal}).then(o,e=>{r.signal.aborted||o()})})}},Zn=({enabled:e,onSessionExpired:t,onSynchronized:n,pluginConnectionId:r,readSynchronizationRevision:i,sessionKey:a,synchronizationRevision:o,transport:s=Pn})=>{let[c,l]=(0,M.useState)(`idle`),u=(0,M.useRef)(null),d=(0,M.useRef)(t),f=(0,M.useRef)(n),p=(0,M.useRef)(i),m=(0,M.useRef)({pluginConnectionId:r,sessionKey:a,value:o});d.current=t,f.current=n,p.current=i,m.current.pluginConnectionId!==r||m.current.sessionKey!==a?m.current={pluginConnectionId:r,sessionKey:a,value:o}:o!==null&&(m.current.value===null||o>m.current.value)&&(m.current.value=o);let h=(0,M.useCallback)(async e=>{let t=await p.current(e),n=m.current.value;return t===null||n===null||t<=n?!1:(m.current.value=t,!0)},[]),g=(0,M.useCallback)(()=>{if(!e||r===null||a===null)return Promise.resolve();let t=In.get(r);return t===void 0?Promise.resolve():Kn(r,t,!0)},[e,r,a]),_=(0,M.useCallback)(()=>{let e=u.current?.signal;if(e===void 0||e.aborted)return;let t=r===null?void 0:In.get(r)?.active?.completion??Xn(r,e);t===void 0?g():t.then(()=>{e.aborted||g()})},[r,g]);return(0,M.useEffect)(()=>{if(l(`idle`),!e||r===null||a===null)return;let t=new AbortController;u.current=t;let n=Jn(r,{lifetime:t.signal,onSessionExpired:()=>d.current(a),onSynchronized:()=>f.current(),ownerKey:Bn(a),sessionKey:a,setState:l,transport:s,verifySynchronized:h});return()=>{t.abort(),u.current===t&&(u.current=null),n()}},[e,r,a,s,h]),{state:c,synchronizeAfterMutation:_,synchronizeNow:_}},F={document:`_document_1dvhb_1`,folio:`_folio_1dvhb_2`,revision:`_revision_1dvhb_3`,folioMeta:`_folioMeta_1dvhb_4`,section:`_section_1dvhb_7`,sectionHeading:`_sectionHeading_1dvhb_8`,collections:`_collections_1dvhb_9`,versions:`_versions_1dvhb_10`,attachments:`_attachments_1dvhb_12`,contentState:`_contentState_1dvhb_14`,documentRead:`_documentRead_1dvhb_15`,editorEntry:`_editorEntry_1dvhb_16`,visualEditor:`_visualEditor_1dvhb_17`,editorHeading:`_editorHeading_1dvhb_18`,editorActions:`_editorActions_1dvhb_19`,editorToolbar:`_editorToolbar_1dvhb_20`,releaseTasks:`_releaseTasks_1dvhb_21`,releaseTaskHeading:`_releaseTaskHeading_1dvhb_22`,releaseTaskList:`_releaseTaskList_1dvhb_23`,evidenceCount:`_evidenceCount_1dvhb_25`,richText:`_richText_1dvhb_97`,editorCanvas:`_editorCanvas_1dvhb_250`};function Qn(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var $n=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,er=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tr={};function nr(e,t){return((t||tr).jsx?er:$n).test(e)}var rr=/[ \t\n\f\r]/g;function ir(e){return typeof e==`object`?e.type===`text`&&ar(e.value):ar(e)}function ar(e){return e.replace(rr,``)===``}var or=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};or.prototype.normal={},or.prototype.property={},or.prototype.space=void 0;function sr(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new or(n,r,t)}function cr(e){return e.toLowerCase()}var I=class{constructor(e,t){this.attribute=t,this.property=e}};I.prototype.attribute=``,I.prototype.booleanish=!1,I.prototype.boolean=!1,I.prototype.commaOrSpaceSeparated=!1,I.prototype.commaSeparated=!1,I.prototype.defined=!1,I.prototype.mustUseProperty=!1,I.prototype.number=!1,I.prototype.overloadedBoolean=!1,I.prototype.property=``,I.prototype.spaceSeparated=!1,I.prototype.space=void 0;var lr=e({boolean:()=>L,booleanish:()=>R,commaOrSpaceSeparated:()=>V,commaSeparated:()=>fr,number:()=>z,overloadedBoolean:()=>dr,spaceSeparated:()=>B}),ur=0,L=pr(),R=pr(),dr=pr(),z=pr(),B=pr(),fr=pr(),V=pr();function pr(){return 2**++ur}var mr=Object.keys(lr),hr=class extends I{constructor(e,t,n,r){let i=-1;if(super(e,t),gr(this,`space`,r),typeof n==`number`)for(;++i<mr.length;){let e=mr[i];gr(this,mr[i],(n&lr[e])===lr[e])}}};hr.prototype.defined=!0;function gr(e,t,n){n&&(e[t]=n)}function _r(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new hr(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[cr(r)]=r,n[cr(a.attribute)]=r}return new or(t,n,e.space)}var vr=_r({properties:{ariaActiveDescendant:null,ariaAtomic:R,ariaAutoComplete:null,ariaBusy:R,ariaChecked:R,ariaColCount:z,ariaColIndex:z,ariaColSpan:z,ariaControls:B,ariaCurrent:null,ariaDescribedBy:B,ariaDetails:null,ariaDisabled:R,ariaDropEffect:B,ariaErrorMessage:null,ariaExpanded:R,ariaFlowTo:B,ariaGrabbed:R,ariaHasPopup:null,ariaHidden:R,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:B,ariaLevel:z,ariaLive:null,ariaModal:R,ariaMultiLine:R,ariaMultiSelectable:R,ariaOrientation:null,ariaOwns:B,ariaPlaceholder:null,ariaPosInSet:z,ariaPressed:R,ariaReadOnly:R,ariaRelevant:null,ariaRequired:R,ariaRoleDescription:B,ariaRowCount:z,ariaRowIndex:z,ariaRowSpan:z,ariaSelected:R,ariaSetSize:z,ariaSort:null,ariaValueMax:z,ariaValueMin:z,ariaValueNow:z,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function yr(e,t){return t in e?e[t]:t}function br(e,t){return yr(e,t.toLowerCase())}var xr=_r({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:fr,acceptCharset:B,accessKey:B,action:null,allow:null,allowFullScreen:L,allowPaymentRequest:L,allowUserMedia:L,alpha:L,alt:null,as:null,async:L,autoCapitalize:null,autoComplete:B,autoFocus:L,autoPlay:L,blocking:B,capture:null,charSet:null,checked:L,cite:null,className:B,closedBy:null,colorSpace:null,cols:z,colSpan:z,command:null,commandFor:null,content:null,contentEditable:R,controls:L,controlsList:B,coords:z|fr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:L,defer:L,dir:null,dirName:null,disabled:L,download:dr,draggable:R,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:L,formTarget:null,headers:B,height:z,hidden:dr,high:z,href:null,hrefLang:null,htmlFor:B,httpEquiv:B,id:null,imageSizes:null,imageSrcSet:null,inert:L,inputMode:null,integrity:null,is:null,isMap:L,itemId:null,itemProp:B,itemRef:B,itemScope:L,itemType:B,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:L,low:z,manifest:null,max:null,maxLength:z,media:null,method:null,min:null,minLength:z,multiple:L,muted:L,name:null,nonce:null,noModule:L,noValidate:L,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:L,optimum:z,pattern:null,ping:B,placeholder:null,playsInline:L,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:L,referrerPolicy:null,rel:B,required:L,reversed:L,rows:z,rowSpan:z,sandbox:B,scope:null,scoped:L,seamless:L,selected:L,shadowRootClonable:L,shadowRootCustomElementRegistry:L,shadowRootDelegatesFocus:L,shadowRootMode:null,shadowRootSerializable:L,shape:null,size:z,sizes:null,slot:null,span:z,spellCheck:R,src:null,srcDoc:null,srcLang:null,srcSet:null,start:z,step:null,style:null,tabIndex:z,target:null,title:null,translate:null,type:null,typeMustMatch:L,useMap:null,value:R,width:z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:B,axis:null,background:null,bgColor:null,border:z,borderColor:null,bottomMargin:z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:L,declare:L,event:null,face:null,frame:null,frameBorder:null,hSpace:z,leftMargin:z,link:null,longDesc:null,lowSrc:null,marginHeight:z,marginWidth:z,noResize:L,noHref:L,noShade:L,noWrap:L,object:null,profile:null,prompt:null,rev:null,rightMargin:z,rules:null,scheme:null,scrolling:R,standby:null,summary:null,text:null,topMargin:z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:z,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:L,disablePictureInPicture:L,disableRemotePlayback:L,exportParts:fr,part:B,prefix:null,property:null,results:z,security:null,unselectable:null},space:`html`,transform:br}),Sr=_r({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:V,accentHeight:z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:z,amplitude:z,arabicForm:null,ascent:z,attributeName:null,attributeType:null,azimuth:z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:z,by:null,calcMode:null,capHeight:z,className:B,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:z,diffuseConstant:z,direction:null,display:null,dur:null,divisor:z,dominantBaseline:null,download:L,dx:null,dy:null,edgeMode:null,editable:null,elevation:z,enableBackground:null,end:null,event:null,exponent:z,externalResourcesRequired:null,fill:null,fillOpacity:z,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:fr,g2:fr,glyphName:fr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:z,horizOriginX:z,horizOriginY:z,id:null,ideographic:z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:z,k:z,k1:z,k2:z,k3:z,k4:z,kernelMatrix:V,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:z,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:z,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:z,overlineThickness:z,paintOrder:null,panose1:null,path:null,pathLength:z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:B,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:z,pointsAtY:z,pointsAtZ:z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:V,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:V,rev:V,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:V,requiredFeatures:V,requiredFonts:V,requiredFormats:V,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:z,specularExponent:z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:z,strikethroughThickness:z,string:null,stroke:null,strokeDashArray:V,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:z,strokeOpacity:z,strokeWidth:null,style:null,surfaceScale:z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:V,tabIndex:z,tableValues:null,target:null,targetX:z,targetY:z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:V,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:z,underlineThickness:z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:z,values:null,vAlphabetic:z,vMathematical:z,vectorEffect:null,vHanging:z,vIdeographic:z,version:null,vertAdvY:z,vertOriginX:z,vertOriginY:z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:yr}),Cr=_r({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),wr=_r({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:br}),Tr=_r({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Er={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},Dr=/[A-Z]/g,Or=/-[a-z]/g,kr=/^data[-\w.:]+$/i;function Ar(e,t){let n=cr(t),r=t,i=I;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&kr.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Or,Mr);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Or.test(e)){let n=e.replace(Dr,jr);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=hr}return new i(r,t)}function jr(e){return`-`+e.toLowerCase()}function Mr(e){return e.charAt(1).toUpperCase()}var Nr=sr([vr,xr,Cr,wr,Tr],`html`),Pr=sr([vr,Sr,Cr,wr,Tr],`svg`);function Fr(e){return e.join(` `).trim()}var Ir=n(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
3
3
|
`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),Lr=n((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(Ir());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),Rr=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),zr=n(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Lr()),r=Rr();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),Br=Hr(`end`),Vr=Hr(`start`);function Hr(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Ur(e){let t=Vr(e),n=Br(e);if(t&&n)return{start:t,end:n}}function Wr(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Kr(e.position):`start`in e||`end`in e?Kr(e):`line`in e||`column`in e?Gr(e):``}function Gr(e){return qr(e&&e.line)+`:`+qr(e&&e.column)}function Kr(e){return Gr(e&&e.start)+`-`+Gr(e&&e.end)}function qr(e){return e&&typeof e==`number`?e:1}var H=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=Wr(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};H.prototype.file=``,H.prototype.name=``,H.prototype.reason=``,H.prototype.message=``,H.prototype.stack=``,H.prototype.column=void 0,H.prototype.line=void 0,H.prototype.ancestors=void 0,H.prototype.cause=void 0,H.prototype.fatal=void 0,H.prototype.place=void 0,H.prototype.ruleId=void 0,H.prototype.source=void 0;var Jr=t(zr(),1),Yr={}.hasOwnProperty,Xr=new Map,Zr=/[A-Z]/g,Qr=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),$r=new Set([`td`,`th`]),ei=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function ti(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=fi(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=di(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?Pr:Nr,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=ni(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function ni(e,t,n){if(t.type===`element`)return ri(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return ii(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return oi(e,t,n);if(t.type===`mdxjsEsm`)return ai(e,t);if(t.type===`root`)return si(e,t,n);if(t.type===`text`)return ci(e,t)}function ri(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=Pr,e.schema=i),e.ancestors.push(t);let a=vi(e,t.tagName,!1),o=pi(e,t),s=hi(e,t);return Qr.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!ir(e)})),li(e,o,a,t),ui(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function ii(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}yi(e,t.position)}function ai(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);yi(e,t.position)}function oi(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=Pr,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:vi(e,t.name,!0),o=mi(e,t),s=hi(e,t);return li(e,o,a,t),ui(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function si(e,t,n){let r={};return ui(r,hi(e,t)),e.create(t,e.Fragment,r,n)}function ci(e,t){return t.value}function li(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ui(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function di(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function fi(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=Vr(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function pi(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Yr.call(t.properties,i)){let a=gi(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&$r.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function mi(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else yi(e,t.position)}else{let i=r.name,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else yi(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function hi(e,t){let n=[],r=-1,i=e.passKeys?new Map:Xr;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=ni(e,a,o);s!==void 0&&n.push(s)}return n}function gi(e,t,n){let r=Ar(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Qn(n):Fr(n)),r.property===`style`){let t=typeof n==`object`?n:_i(e,String(n));return e.stylePropertyNameCase===`css`&&(t=bi(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?Er[r.property]||r.property:r.attribute,n]}}function _i(e,t){try{return(0,Jr.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new H("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=ei+`#cannot-parse-style-attribute`,r}}function vi(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=nr(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=nr(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Yr.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);yi(e)}function yi(e,t){let n=new H("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=ei+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function bi(e){let t={},n;for(n in e)Yr.call(e,n)&&(t[xi(n)]=e[n]);return t}function xi(e){let t=e.replace(Zr,Si);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function Si(e){return`-`+e.toLowerCase()}var Ci={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},wi={};function Ti(e,t){let n=t||wi;return Ei(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function Ei(e,t,n){if(Oi(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return Di(e.children,t,n)}return Array.isArray(e)?Di(e,t,n):``}function Di(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=Ei(e[i],t,n);return r.join(``)}function Oi(e){return!!(e&&typeof e==`object`)}var ki=document.createElement(`i`);function Ai(e){let t=`&`+e+`;`;ki.innerHTML=t;let n=ki.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function U(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function ji(e,t){return e.length>0?(U(e,e.length,0,t),e):t}var Mi={}.hasOwnProperty;function Ni(e){let t={},n=-1;for(;++n<e.length;)Pi(t,e[n]);return t}function Pi(e,t){let n;for(n in t){let r=(Mi.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){Mi.call(r,a)||(r[a]=[]);let e=i[a];Fi(r[a],Array.isArray(e)?e:e?[e]:[])}}}function Fi(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);U(e,0,0,r)}function Ii(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function Li(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var W=Gi(/[A-Za-z]/),G=Gi(/[\dA-Za-z]/),Ri=Gi(/[#-'*+\--9=?A-Z^-~]/);function zi(e){return e!==null&&(e<32||e===127)}var Bi=Gi(/\d/),Vi=Gi(/[\dA-Fa-f]/),Hi=Gi(/[!-/:-@[-`{-~]/);function K(e){return e!==null&&e<-2}function q(e){return e!==null&&(e<0||e===32)}function J(e){return e===-2||e===-1||e===32}var Ui=Gi(/\p{P}|\p{S}/u),Wi=Gi(/\s/);function Gi(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Ki(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&G(e.charCodeAt(n+1))&&G(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function Y(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return J(r)?(e.enter(n),s(r)):t(r)}function s(r){return J(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var qi={tokenize:Ji};function Ji(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Y(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return K(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var Yi={tokenize:Zi},Xi={tokenize:Qi};function Zi(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return U(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Xi,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(Xi,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return K(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;U(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Qi(e,t,n){return Y(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function $i(e){if(e===null||q(e)||Wi(e))return 1;if(Ui(e))return 2}function ea(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var ta={name:`attention`,resolveAll:na,tokenize:ra};function na(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};ia(d,-c),ia(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=ji(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=ji(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=ji(l,ea(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=ji(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=ji(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,U(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function ra(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=$i(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=$i(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function ia(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var aa={name:`autolink`,tokenize:oa};function oa(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return W(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||G(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||G(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||zi(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):Ri(t)?(e.consume(t),l):n(t)}function u(e){return G(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||G(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var sa={partial:!0,tokenize:ca};function ca(e,t,n){return r;function r(t){return J(t)?Y(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||K(e)?t(e):n(e)}}var la={continuation:{tokenize:da},exit:fa,name:`blockQuote`,tokenize:ua};function ua(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return J(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function da(e,t,n){let r=this;return i;function i(t){return J(t)?Y(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(la,t,n)(r)}}function fa(e){e.exit(`blockQuote`)}var pa={name:`characterEscape`,tokenize:ma};function ma(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return Hi(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var ha={name:`characterReference`,tokenize:ga};function ga(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=G,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=Vi,u):(e.enter(`characterReferenceValue`),a=7,o=Bi,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===G&&!Ai(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var _a={partial:!0,tokenize:ba},va={concrete:!0,name:`codeFenced`,tokenize:ya};function ya(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),J(t)?Y(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||K(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(_a,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||K(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):J(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),Y(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||K(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||K(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&J(t)?Y(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||K(t)?e.check(_a,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||K(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),J(t)?Y(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),J(t)?Y(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||K(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function ba(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var xa={name:`codeIndented`,tokenize:Ca},Sa={partial:!0,tokenize:wa};function Ca(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),Y(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):K(t)?e.attempt(Sa,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||K(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function wa(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):K(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):Y(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):K(e)?i(e):n(e)}}var Ta={name:`codeText`,previous:Da,resolve:Ea,tokenize:Oa};function Ea(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Da(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function Oa(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):K(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||K(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var ka=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&Aa(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),Aa(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Aa(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);Aa(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);Aa(this.left,t.reverse())}}}};function Aa(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ja(e){let t={},n=-1,r,i,a,o,s,c,l,u=new ka(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,Ma(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return U(e,0,1/0,u.slice(0)),!l}function Ma(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var Na={resolve:Fa,tokenize:Ia},Pa={partial:!0,tokenize:La};function Fa(e){return ja(e),e}function Ia(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):K(t)?e.check(Pa,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function La(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Y(e,a,`linePrefix`)}function a(i){if(i===null||K(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function Ra(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||zi(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||K(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||q(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||zi(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function za(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):K(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||K(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!J(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function Ba(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):K(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Y(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||K(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function Va(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return J(r)?(e.enter(n),s(r)):t(r)}function s(r){return J(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function Ha(e,t){let n;return r;function r(i){return K(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):J(i)?Va(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var Ua={name:`definition`,tokenize:Ga},Wa={partial:!0,tokenize:Ka};function Ga(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return za.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=Li(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return q(t)?Ha(e,l)(t):l(t)}function l(t){return Ra(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Wa,d,d)(t)}function d(t){return J(t)?Y(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||K(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Ka(e,t,n){return r;function r(t){return q(t)?Ha(e,i)(t):n(t)}function i(t){return Ba(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return J(t)?Y(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||K(e)?t(e):n(e)}}var qa={name:`hardBreakEscape`,tokenize:Ja};function Ja(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return K(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Ya={name:`headingAtx`,resolve:Xa,tokenize:Za};function Xa(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},U(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Za(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||q(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||K(n)?(e.exit(`atxHeading`),t(n)):J(n)?Y(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||q(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Qa=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),$a=[`pre`,`script`,`style`,`textarea`],eo={concrete:!0,name:`htmlFlow`,resolveTo:ro,tokenize:io},to={partial:!0,tokenize:oo},no={partial:!0,tokenize:ao};function ro(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function io(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:ae):W(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):W(a)?(e.consume(a),i=4,r.interrupt?t:ae):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ae):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:D:m):n(i)}function h(t){return W(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||q(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&$a.includes(l)?(i=1,r.interrupt?t(s):D(s)):Qa.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):D(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||G(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:D):n(i)}function v(t){return J(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||W(t)?(e.consume(t),b):J(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||G(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):J(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):J(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||K(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||q(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||J(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),ee):n(t)}function ee(t){return t===null||K(t)?D(t):J(t)?(e.consume(t),ee):n(t)}function D(t){return t===45&&i===2?(e.consume(t),re):t===60&&i===1?(e.consume(t),k):t===62&&i===4?(e.consume(t),j):t===63&&i===3?(e.consume(t),ae):t===93&&i===5?(e.consume(t),A):K(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(to,oe,te)(t)):t===null||K(t)?(e.exit(`htmlFlowData`),te(t)):(e.consume(t),D)}function te(t){return e.check(no,ne,oe)(t)}function ne(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),O}function O(t){return t===null||K(t)?te(t):(e.enter(`htmlFlowData`),D(t))}function re(t){return t===45?(e.consume(t),ae):D(t)}function k(t){return t===47?(e.consume(t),o=``,ie):D(t)}function ie(t){if(t===62){let n=o.toLowerCase();return $a.includes(n)?(e.consume(t),j):D(t)}return W(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),ie):D(t)}function A(t){return t===93?(e.consume(t),ae):D(t)}function ae(t){return t===62?(e.consume(t),j):t===45&&i===2?(e.consume(t),ae):D(t)}function j(t){return t===null||K(t)?(e.exit(`htmlFlowData`),oe(t)):(e.consume(t),j)}function oe(n){return e.exit(`htmlFlow`),t(n)}}function ao(e,t,n){let r=this;return i;function i(t){return K(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function oo(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(sa,t,n)}}var so={name:`htmlText`,tokenize:co};function co(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):W(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):W(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):K(t)?(o=d,k(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?re(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):K(t)?(o=h,k(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?re(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?re(t):K(t)?(o=v,k(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):K(t)?(o=y,k(t)):(e.consume(t),y)}function b(e){return e===62?re(e):y(e)}function x(t){return W(t)?(e.consume(t),S):n(t)}function S(t){return t===45||G(t)?(e.consume(t),S):C(t)}function C(t){return K(t)?(o=C,k(t)):J(t)?(e.consume(t),C):re(t)}function w(t){return t===45||G(t)?(e.consume(t),w):t===47||t===62||q(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),re):t===58||t===95||W(t)?(e.consume(t),E):K(t)?(o=T,k(t)):J(t)?(e.consume(t),T):re(t)}function E(t){return t===45||t===46||t===58||t===95||G(t)?(e.consume(t),E):ee(t)}function ee(t){return t===61?(e.consume(t),D):K(t)?(o=ee,k(t)):J(t)?(e.consume(t),ee):T(t)}function D(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,te):K(t)?(o=D,k(t)):J(t)?(e.consume(t),D):(e.consume(t),ne)}function te(t){return t===i?(e.consume(t),i=void 0,O):t===null?n(t):K(t)?(o=te,k(t)):(e.consume(t),te)}function ne(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||q(t)?T(t):(e.consume(t),ne)}function O(e){return e===47||e===62||q(e)?T(e):n(e)}function re(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function k(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),ie}function ie(t){return J(t)?Y(e,A,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):A(t)}function A(t){return e.enter(`htmlTextData`),o(t)}}var lo={name:`labelEnd`,resolveAll:mo,resolveTo:ho,tokenize:go},uo={tokenize:_o},fo={tokenize:vo},po={tokenize:yo};function mo(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&U(e,0,e.length,n),e}function ho(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=ji(s,e.slice(a+1,a+r+3)),s=ji(s,[[`enter`,u,t]]),s=ji(s,ea(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=ji(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=ji(s,e.slice(o+1)),s=ji(s,[[`exit`,c,t]]),U(e,a,e.length,s),e}function go(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(Li(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(uo,u,o?u:d)(t):t===91?e.attempt(fo,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(po,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function _o(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return q(t)?Ha(e,a)(t):a(t)}function a(t){return t===41?u(t):Ra(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return q(t)?Ha(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?Ba(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return q(t)?Ha(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function vo(e,t,n){let r=this;return i;function i(t){return za.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(Li(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function yo(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var bo={name:`labelStartImage`,resolveAll:lo.resolveAll,tokenize:xo};function xo(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var So={name:`labelStartLink`,resolveAll:lo.resolveAll,tokenize:Co};function Co(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var wo={name:`lineEnding`,tokenize:To};function To(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Y(e,t,`linePrefix`)}}var Eo={name:`thematicBreak`,tokenize:Do};function Do(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||K(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),J(t)?Y(e,s,`whitespace`)(t):s(t))}}var X={continuation:{tokenize:jo},exit:No,name:`list`,tokenize:Ao},Oo={partial:!0,tokenize:Po},ko={partial:!0,tokenize:Mo};function Ao(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:Bi(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(Eo,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return Bi(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(sa,r.interrupt?n:u,e.attempt(Oo,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return J(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function jo(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(sa,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Y(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!J(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ko,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Y(e,e.attempt(X,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function Mo(e,t,n){let r=this;return Y(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function No(e){e.exit(this.containerState.type)}function Po(e,t,n){let r=this;return Y(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!J(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var Fo={name:`setextUnderline`,resolveTo:Io,tokenize:Lo};function Io(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function Lo(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),J(t)?Y(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||K(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var Ro={tokenize:zo};function zo(e){let t=this,n=e.attempt(sa,r,e.attempt(this.parser.constructs.flowInitial,i,Y(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Na,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var Bo={resolveAll:Wo()},Vo=Uo(`string`),Ho=Uo(`text`);function Uo(e){return{resolveAll:Wo(e===`text`?Go:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function Wo(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function Go(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var Ko=e({attentionMarkers:()=>es,contentInitial:()=>Jo,disable:()=>ts,document:()=>qo,flow:()=>Xo,flowInitial:()=>Yo,insideSpan:()=>$o,string:()=>Zo,text:()=>Qo}),qo={42:X,43:X,45:X,48:X,49:X,50:X,51:X,52:X,53:X,54:X,55:X,56:X,57:X,62:la},Jo={91:Ua},Yo={[-2]:xa,[-1]:xa,32:xa},Xo={35:Ya,42:Eo,45:[Fo,Eo],60:eo,61:Fo,95:Eo,96:va,126:va},Zo={38:ha,92:pa},Qo={[-5]:wo,[-4]:wo,[-3]:wo,33:bo,38:ha,42:ta,60:[aa,so],91:So,92:[qa,pa],93:lo,95:ta,96:Ta},$o={null:[ta,Bo]},es={null:[42,95]},ts={null:[]};function ns(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=ji(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=ea(a,l.events,l),l.events):[]}function f(e,t){return is(p(e),t)}function p(e){return rs(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){K(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&U(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function rs(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function is(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
4
4
|
`;break;case-3:o=`\r
|
|
5
5
|
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function as(e){let t={constructs:Ni([Ko,...(e||{}).extensions||[]]),content:n(qi),defined:[],document:n(Yi),flow:n(Ro),lazy:{},string:n(Vo),text:n(Ho)};return t;function n(e){return n;function n(n){return ns(t,e,n)}}}function os(e){for(;!ja(e););return e}var ss=/[\0\t\n\r]/g;function cs(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(ss.lastIndex=u,c=ss.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var ls=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function us(e){return e.replace(ls,ds)}function ds(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return Ii(n.slice(t?2:1),t?16:10)}return Ai(n)||e}var fs={}.hasOwnProperty;function ps(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),ms(n)(os(as(n).document().write(cs()(e,t,!0))))}function ms(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(Ce),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(ye),blockQuote:a(me),characterEscape:T,characterReference:T,codeFenced:a(he),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(he,o),codeText:a(ge,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(_e),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(ve),hardBreakEscape:a(be),hardBreakTrailing:a(be),htmlFlow:a(xe,o),htmlFlowData:T,htmlText:a(xe,o),htmlTextData:T,image:a(Se),label:o,link:a(Ce),listItem:a(Te),listItemValue:f,listOrdered:a(we,d),listUnordered:a(we),paragraph:a(Ee),reference:se,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ye),strong:a(De),thematicBreak:a(ke)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:pe,autolinkProtocol:fe,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:le,characterReferenceMarkerNumeric:le,characterReferenceValue:ue,characterReference:de,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(O),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(D),hardBreakTrailing:c(D),htmlFlow:c(te),htmlFlowData:E,htmlText:c(ne),htmlTextData:E,image:c(k),label:A,labelText:ie,lineEnding:ee,link:c(re),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:ce,resourceDestinationString:ae,resourceTitleString:j,resource:oe,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};gs(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];fs.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||vs).call(a,void 0,e[0])}for(r.position={start:hs(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:hs(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:hs(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||vs).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+Wr({start:e.start,end:e.end})+`): it’s not open`);n.position.end=hs(e.end)}function u(){return Ti(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Li(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=Oe(),n.position={start:hs(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=hs(e.end)}function ee(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=hs(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function D(){this.data.atHardBreak=!0}function te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ne(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function O(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function re(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function k(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function ie(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=us(t),n.identifier=Li(t).toLowerCase()}function A(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function ae(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function oe(){this.data.inReference=void 0}function se(){this.data.referenceType=`collapsed`}function ce(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Li(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function le(e){this.data.characterReferenceType=e.type}function ue(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=Ii(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=Ai(t);let i=this.stack[this.stack.length-1];i.value+=r}function de(e){let t=this.stack.pop();t.position.end=hs(e.end)}function fe(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function pe(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function me(){return{type:`blockquote`,children:[]}}function he(){return{type:`code`,lang:null,meta:null,value:``}}function ge(){return{type:`inlineCode`,value:``}}function _e(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function ve(){return{type:`emphasis`,children:[]}}function ye(){return{type:`heading`,depth:0,children:[]}}function be(){return{type:`break`}}function xe(){return{type:`html`,value:``}}function Se(){return{type:`image`,title:null,url:``,alt:null}}function Ce(){return{type:`link`,title:null,url:``,children:[]}}function we(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function Te(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function Ee(){return{type:`paragraph`,children:[]}}function De(){return{type:`strong`,children:[]}}function Oe(){return{type:`text`,value:``}}function ke(){return{type:`thematicBreak`}}}function hs(e){return{line:e.line,column:e.column,offset:e.offset}}function gs(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?gs(e,r):_s(e,r)}}function _s(e,t){let n;for(n in t)if(fs.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function vs(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+Wr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Wr({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+Wr({start:t.start,end:t.end})+`) is still open`)}function ys(e){let t=this;t.parser=n;function n(n){return ps(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function bs(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function xs(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
@@ -38,5 +38,5 @@ import{n as e,r as t,t as n}from"./rolldown-runtime-hePW80VL.js";import{t as r}f
|
|
|
38
38
|
|
|
39
39
|
`).replace(/\n{3,}/gu,`
|
|
40
40
|
|
|
41
|
-
`).trim(),zf=(e,t)=>{document.execCommand(e,!1,t)},Bf=e=>{let t=URL.parse(e);return t!==null&&(t.protocol===`http:`||t.protocol===`https:`)?t.href:null},Vf=e=>e===`succeeded`,Hf=(0,M.memo)(({markdown:e})=>(0,N.jsx)(jf,{value:e}),()=>!0),Uf=({canEdit:e,entityId:t,onAskAgent:n,onSaved:r,page:i,releaseId:a,submitPublication:o=Xe,title:s})=>{let[c,f]=(0,M.useState)({_tag:`idle`}),[p,m]=(0,M.useState)(null),[h,g]=(0,M.useState)(!1),[_,v]=(0,M.useState)(s),y=(0,M.useRef)(null),b=c._tag!==`idle`&&c._tag!==`saved`,x=c._tag===`saving`,S=ht(i.content??``);(0,M.useEffect)(()=>{v(s),f({_tag:`idle`}),m(null),g(!1)},[i.revision,s]);let C=(n,c)=>{if(!e||!i.taskUpdatesSafe||a===null||i.content===null||p!==null)return;let l=mt(i.content,n,c);l!==null&&(m(n),g(!1),o({releaseId:a,provider:`confluence`,title:s,markdown:l,targetEntityId:t,targetRevision:ie.make(i.revision),signal:AbortSignal.timeout(3e4)}).then(e=>{Vf(e.state)?r():g(!0)},()=>g(!0)).finally(()=>m(null)))};return b?(0,N.jsxs)(`div`,{className:F.visualEditor,"data-confluence-visual-editor":!0,children:[(0,N.jsxs)(`div`,{className:F.editorHeading,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsxs)(O,{as:`strong`,children:[`Editing revision `,i.revision]}),(0,N.jsx)(O,{tone:`secondary`,variant:`meta`,children:`Save creates the next Confluence revision after an explicit owner confirmation.`})]}),(0,N.jsxs)(`div`,{className:F.editorActions,children:[(0,N.jsx)(l,{disabled:x,onClick:n,variant:`secondary`,children:`Ask Relay`}),(0,N.jsx)(l,{disabled:x,onClick:()=>f({_tag:`idle`}),variant:`secondary`,children:`Cancel`}),(0,N.jsx)(l,{disabled:x,loading:x,onClick:()=>{let e=y.current;if(e===null||a===null||x)return;let n=Rf(e),s=_.trim();if(s.length===0||n.length===0){f({_tag:`failed`});return}f({_tag:`saving`}),o({releaseId:a,provider:`confluence`,title:s,markdown:n,targetEntityId:t,targetRevision:ie.make(i.revision),signal:AbortSignal.timeout(3e4)}).then(e=>{Vf(e.state)?(f({_tag:`saved`}),r()):f({_tag:`failed`})},()=>f({_tag:`failed`}))},children:`Save to Confluence`})]})]}),i.contentState!==`loaded`||i.content===null?(0,N.jsx)(d,{description:`The existing body is not synchronized. Saving this draft replaces the complete Confluence page body at the displayed revision.`,title:`Complete replacement`,tone:`caution`}):null,(0,N.jsx)(u,{label:`Page title`,children:e=>(0,N.jsx)(`input`,{...e,disabled:x,maxLength:500,onChange:e=>v(e.target.value),value:_})}),(0,N.jsxs)(`div`,{"aria-label":`Document formatting`,className:F.editorToolbar,onMouseDown:e=>e.preventDefault(),role:`toolbar`,children:[(0,N.jsx)(`button`,{onClick:()=>zf(`formatBlock`,`p`),type:`button`,children:`Paragraph`}),(0,N.jsx)(`button`,{onClick:()=>zf(`formatBlock`,`h2`),type:`button`,children:`Heading 2`}),(0,N.jsx)(`button`,{onClick:()=>zf(`formatBlock`,`h3`),type:`button`,children:`Heading 3`}),(0,N.jsx)(`button`,{"aria-label":`Bold`,onClick:()=>zf(`bold`),type:`button`,children:(0,N.jsx)(`strong`,{children:`B`})}),(0,N.jsx)(`button`,{"aria-label":`Italic`,onClick:()=>zf(`italic`),type:`button`,children:(0,N.jsx)(`em`,{children:`I`})}),(0,N.jsx)(`button`,{onClick:()=>zf(`insertUnorderedList`),type:`button`,children:`Bullets`}),(0,N.jsx)(`button`,{onClick:()=>zf(`insertOrderedList`),type:`button`,children:`Numbered`}),(0,N.jsx)(`button`,{onClick:()=>{let e=window.prompt(`Link address`),t=e===null?null:Bf(e);t!==null&&zf(`createLink`,t)},type:`button`,children:`Link`})]}),(0,N.jsx)(`div`,{"aria-label":`Confluence page body`,"aria-multiline":`true`,className:`${F.editorCanvas} ${F.richText}`,contentEditable:!x,ref:y,role:`textbox`,suppressContentEditableWarning:!0,children:(0,N.jsx)(Hf,{markdown:i.content??``})}),c._tag===`failed`?(0,N.jsx)(d,{description:`Keep a non-empty title and document body, refresh the latest revision, then try again.`,title:`The page was not saved`,tone:`critical`}):null]}):(0,N.jsxs)(`div`,{className:F.documentRead,children:[i.contentState===`loaded`&&i.content!==null?(0,N.jsx)(jf,{className:F.richText,value:i.content}):(0,N.jsxs)(`div`,{className:F.contentState,"data-content-state":i.contentState,children:[(0,N.jsx)(`strong`,{children:i.contentState===`lazy`?`Content has not been loaded`:`No readable body was returned`}),(0,N.jsx)(O,{tone:`secondary`,children:`Open the authenticated Confluence source to read it now, or synchronize the connection before editing so Relay never replaces an unseen document.`})]}),S.total===0?null:(0,N.jsxs)(`section`,{"aria-labelledby":`confluence-release-tasks`,className:F.releaseTasks,children:[(0,N.jsxs)(`div`,{className:F.releaseTaskHeading,children:[(0,N.jsx)(O,{as:`h3`,id:`confluence-release-tasks`,variant:`card-title`,children:`Release tasks`}),(0,N.jsxs)(O,{tone:`secondary`,variant:`meta`,children:[S.completed,` of `,S.total,` complete`]})]}),(0,N.jsx)(`ul`,{className:F.releaseTaskList,children:S.tasks.map(t=>(0,N.jsxs)(`li`,{children:[(0,N.jsxs)(`label`,{children:[(0,N.jsx)(`input`,{checked:t.checked,disabled:!e||!i.taskUpdatesSafe||a===null||p!==null,onChange:e=>C(t.lineIndex,e.target.checked),type:`checkbox`}),(0,N.jsx)(`span`,{children:t.label})]}),p===t.lineIndex?(0,N.jsx)(O,{variant:`meta`,children:`Saving…`}):null]},`${String(t.lineIndex)}-${t.label}`))}),S.outstanding===0?(0,N.jsx)(O,{children:`All Confluence tasks are complete.`}):(0,N.jsxs)(O,{tone:`secondary`,children:[S.outstanding,` task`,S.outstanding===1?``:`s`,` block release publication.`]}),i.taskUpdatesSafe?null:(0,N.jsx)(O,{tone:`secondary`,children:`Task-only updates are unavailable because this safe page projection cannot prove a lossless ADF round trip. Review a complete replacement before changing these tasks.`}),h?(0,N.jsx)(d,{description:`Refresh the latest Confluence revision, then tick the task again.`,title:`The task was not updated`,tone:`critical`}):null]}),(0,N.jsxs)(`div`,{className:F.editorEntry,children:[(0,N.jsx)(l,{disabled:!e||a===null,onClick:()=>f({_tag:`editing`}),children:i.contentState===`loaded`&&i.content!==null?`Edit on this page`:`Write a complete replacement`}),(0,N.jsx)(l,{onClick:n,variant:`secondary`,children:`Ask Relay to edit`}),c._tag===`saved`?(0,N.jsx)(O,{children:`Saved to Confluence.`}):null,e?null:(0,N.jsx)(O,{tone:`secondary`,children:`Current source data and workspace-owner access are required to edit.`}),e&&a===null?(0,N.jsx)(O,{tone:`secondary`,children:`Link this page to a release before editing it in Relay.`}):null]})]})},Wf=({children:e,heading:t,meta:n})=>(0,N.jsxs)(`section`,{className:F.section,children:[(0,N.jsxs)(`header`,{className:F.sectionHeading,children:[(0,N.jsx)(O,{as:`h2`,variant:`section-title`,children:t}),(0,N.jsx)(O,{tone:`secondary`,variant:`meta`,children:n})]}),e]}),Gf=({editor:e,page:t})=>{let[n,r]=(0,M.useState)(!1);return(0,N.jsxs)(`article`,{className:F.document,"data-workspace-confluence-page-detail":!0,children:[(0,N.jsxs)(`section`,{"aria-label":`Document identity`,className:F.folio,children:[(0,N.jsxs)(`div`,{className:F.revision,children:[(0,N.jsx)(`span`,{children:`Revision`}),(0,N.jsx)(`strong`,{children:t.revision})]}),(0,N.jsxs)(`div`,{className:F.folioMeta,children:[(0,N.jsx)(f,{label:t.status,tone:t.status===`Superseded`?`caution`:t.status===`Current`?`positive`:`neutral`}),(0,N.jsxs)(`dl`,{children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Space`}),(0,N.jsx)(`dd`,{children:t.sourceSpaceId})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Updated`}),(0,N.jsx)(`dd`,{children:t.updatedAt===null?`Not synchronized`:(0,N.jsx)(`time`,{dateTime:t.updatedAt.dateTime,children:t.updatedAt.label})})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Created`}),(0,N.jsx)(`dd`,{children:t.createdAt===null?`Not synchronized`:(0,N.jsx)(`time`,{dateTime:t.createdAt.dateTime,children:t.createdAt.label})})]})]})]})]}),(0,N.jsx)(Wf,{heading:`Document`,meta:`Safely converted text; raw provider markup and media stay outside this view`,children:(0,N.jsx)(Uf,{...e,page:t})}),(0,N.jsx)(Wf,{heading:`People`,meta:t.watcherInventoryLabel,children:t.contributors.length===0?(0,N.jsx)(O,{tone:`secondary`,children:`No owner, contributor, or watcher identity was synchronized.`}):(0,N.jsx)(x,{"aria-label":`Page collaborators`,expanded:n,limit:4,onExpandedChange:r,people:t.contributors})}),(0,N.jsxs)(`div`,{className:F.collections,children:[(0,N.jsx)(Wf,{heading:`Revision history`,meta:t.historyInventoryLabel,children:t.versions.length===0?(0,N.jsx)(O,{tone:`secondary`,children:`No revision history was synchronized.`}):(0,N.jsx)(`ol`,{className:F.versions,children:t.versions.map(e=>(0,N.jsxs)(`li`,{children:[(0,N.jsxs)(`strong`,{children:[`v`,e.number]}),(0,N.jsx)(`span`,{children:e.message}),(0,N.jsxs)(`small`,{children:[e.author,` · `,(0,N.jsx)(`time`,{dateTime:e.createdAt.dateTime,children:e.createdAt.label}),e.minorEdit?` · Minor edit`:``]})]},`${String(e.number)}-${e.createdAt.dateTime}`))})}),(0,N.jsx)(Wf,{heading:`Attachments`,meta:t.attachmentInventoryLabel,children:t.attachments.length===0?(0,N.jsx)(O,{tone:`secondary`,children:`No attachment metadata was synchronized.`}):(0,N.jsx)(`ul`,{className:F.attachments,children:t.attachments.map(e=>(0,N.jsxs)(`li`,{children:[(0,N.jsx)(`strong`,{children:e.title}),(0,N.jsxs)(`span`,{children:[e.mediaType,` · `,e.fileSize,` · `,e.version]}),(0,N.jsx)(`small`,{children:`Metadata only · authenticated proxy required`})]},e.id))})})]}),(0,N.jsx)(Wf,{heading:`Runbook evidence`,meta:`Immutable delivery evidence around this page`,children:(0,N.jsxs)(`div`,{className:F.evidenceCount,children:[(0,N.jsx)(`strong`,{children:t.runbookEvidenceCount}),(0,N.jsxs)(`span`,{children:[`evidence item`,t.runbookEvidenceCount===1?``:`s`,` in the current bounded graph`]})]})})]})},Z={document:`_document_1cny9_1`,section:`_section_1cny9_2`,sectionHeading:`_sectionHeading_1cny9_3`,people:`_people_1cny9_4`,conversation:`_conversation_1cny9_5`,history:`_history_1cny9_6`,related:`_related_1cny9_7`,metadata:`_metadata_1cny9_8`,attribution:`_attribution_1cny9_9`,richText:`_richText_1cny9_28`,commentBody:`_commentBody_1cny9_29`,criteria:`_criteria_1cny9_70`,boundaryNotice:`_boundaryNotice_1cny9_75`,collectionNotice:`_collectionNotice_1cny9_76`},Kf=({children:e,heading:t,meta:n})=>(0,N.jsxs)(`section`,{className:Z.section,children:[(0,N.jsxs)(`header`,{className:Z.sectionHeading,children:[(0,N.jsx)(O,{as:`h2`,variant:`section-title`,children:t}),n===void 0?null:(0,N.jsx)(O,{tone:`secondary`,variant:`meta`,children:n})]}),e]}),qf=({empty:e,value:t})=>t===null?(0,N.jsx)(O,{tone:`secondary`,children:e}):(0,N.jsx)(jf,{className:Z.richText,value:t}),Jf=({issue:e})=>(0,N.jsxs)(`article`,{className:Z.document,"data-workspace-issue-detail":!0,children:[e.truncationMessage===null?null:(0,N.jsx)(O,{className:Z.boundaryNotice,tone:`secondary`,children:e.truncationMessage}),(0,N.jsx)(Kf,{heading:`Description`,meta:`What changes and why`,children:(0,N.jsx)(qf,{empty:`No description was synchronized from Jira.`,value:e.description})}),(0,N.jsx)(Kf,{heading:`Acceptance criteria`,meta:`The finish line`,children:(0,N.jsx)(`div`,{className:Z.criteria,children:(0,N.jsx)(qf,{empty:`No acceptance criteria were synchronized.`,value:e.acceptanceCriteria})})}),e.environment===null?null:(0,N.jsx)(Kf,{heading:`Environment`,meta:`Where this applies`,children:(0,N.jsx)(qf,{empty:`No environment was synchronized.`,value:e.environment})}),(0,N.jsx)(Kf,{heading:`People`,meta:`${String(e.collaborators.length)} collaborators`,children:e.collaborators.length===0?(0,N.jsx)(O,{tone:`secondary`,children:`No Jira collaborator was synchronized for this issue.`}):(0,N.jsx)(`ul`,{className:Z.people,children:e.collaborators.map(e=>(0,N.jsx)(`li`,{children:(0,N.jsx)(w,{person:e})},e.id))})}),(0,N.jsx)(Kf,{heading:`Issue details`,meta:`Synchronized fields`,children:(0,N.jsx)(`dl`,{className:Z.metadata,children:e.metadata.map(e=>(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:e.label}),(0,N.jsx)(`dd`,{children:e.value})]},e.label))})}),e.parent===null&&e.subtasks.length===0?null:(0,N.jsx)(Kf,{heading:`Related Jira work`,meta:`Source hierarchy`,children:(0,N.jsxs)(`div`,{className:Z.related,children:[e.parent===null?null:(0,N.jsxs)(`div`,{children:[(0,N.jsx)(O,{tone:`secondary`,variant:`meta`,children:`Parent`}),e.parent.href===null?(0,N.jsx)(`strong`,{children:e.parent.key}):(0,N.jsx)(`a`,{href:e.parent.href,rel:`noreferrer`,target:`_blank`,children:e.parent.key}),(0,N.jsx)(`span`,{children:e.parent.summary}),(0,N.jsx)(`small`,{children:e.parent.status})]}),e.subtasks.map(e=>(0,N.jsxs)(`div`,{children:[(0,N.jsx)(O,{tone:`secondary`,variant:`meta`,children:`Subtask`}),e.href===null?(0,N.jsx)(`strong`,{children:e.key}):(0,N.jsx)(`a`,{href:e.href,rel:`noreferrer`,target:`_blank`,children:e.key}),(0,N.jsx)(`span`,{children:e.summary}),(0,N.jsx)(`small`,{children:e.status})]},e.key))]})}),(0,N.jsxs)(Kf,{heading:`Comments`,meta:`${String(e.commentCount)} comments`,children:[e.commentBodiesTruncated?(0,N.jsx)(O,{className:Z.collectionNotice,tone:`secondary`,children:`Jira shortened comment bodies to keep this synchronized view bounded.`}):null,e.commentsTruncated?(0,N.jsx)(O,{className:Z.collectionNotice,tone:`secondary`,children:`Only the newest synchronized comments are shown.`}):null,e.comments.length===0?(0,N.jsx)(O,{tone:`secondary`,children:`No comment was synchronized for this issue.`}):(0,N.jsx)(`ol`,{className:Z.conversation,children:e.comments.map(e=>(0,N.jsxs)(`li`,{children:[(0,N.jsxs)(`div`,{className:Z.attribution,children:[(0,N.jsx)(w,{person:e.author,size:`compact`}),e.time===null?null:(0,N.jsx)(`time`,{children:e.time})]}),(0,N.jsx)(jf,{className:Z.commentBody,value:e.body??`Comment body unavailable.`})]},e.id))})]}),(0,N.jsxs)(Kf,{heading:`History`,meta:`${String(e.historyCount)} changes`,children:[e.historyTruncated?(0,N.jsx)(O,{className:Z.collectionNotice,tone:`secondary`,children:`Only the newest synchronized history is shown.`}):null,e.history.length===0?(0,N.jsx)(O,{tone:`secondary`,children:`No field history was synchronized for this issue.`}):(0,N.jsx)(`ol`,{className:Z.history,children:e.history.map(e=>(0,N.jsxs)(`li`,{children:[(0,N.jsxs)(`div`,{className:Z.attribution,children:[(0,N.jsx)(w,{person:e.actor,size:`compact`}),e.time===null?null:(0,N.jsx)(`time`,{children:e.time})]}),(0,N.jsx)(`dl`,{children:e.changes.map((e,t)=>(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:e.field}),(0,N.jsx)(`dd`,{children:e.transition})]},`${e.field}:${String(t)}`))})]},e.id))})]})]}),Q={document:`_document_173oo_1`,hero:`_hero_173oo_2`,heroHeading:`_heroHeading_173oo_3`,heroFacts:`_heroFacts_173oo_4`,executionMeta:`_executionMeta_173oo_6`,section:`_section_173oo_7`,sectionHeading:`_sectionHeading_173oo_8`,peopleLanes:`_peopleLanes_173oo_9`,actions:`_actions_173oo_11`,artifacts:`_artifacts_173oo_17`,sourceArtifacts:`_sourceArtifacts_173oo_18`,deliveryCounts:`_deliveryCounts_173oo_21`,summary:`_summary_173oo_64`,stageRail:`_stageRail_173oo_116`,partial:`_partial_173oo_142`,error:`_error_173oo_193`},Yf=({children:e,heading:t,meta:n})=>(0,N.jsxs)(`section`,{className:Q.section,children:[(0,N.jsxs)(`header`,{className:Q.sectionHeading,children:[(0,N.jsx)(O,{as:`h2`,variant:`section-title`,children:t}),(0,N.jsx)(O,{tone:`secondary`,variant:`meta`,children:n})]}),e]}),Xf=({value:e})=>e===null?(0,N.jsx)(N.Fragment,{children:`Not synchronized`}):(0,N.jsx)(`time`,{dateTime:e.dateTime,children:e.label}),Zf=({pipeline:e})=>(0,N.jsxs)(`article`,{className:Q.document,"data-workspace-pipeline-execution-detail":!0,children:[(0,N.jsxs)(`section`,{"aria-label":`Execution identity`,className:Q.hero,children:[(0,N.jsxs)(`div`,{className:Q.heroHeading,children:[(0,N.jsx)(`span`,{children:`Execution`}),(0,N.jsx)(`strong`,{children:e.executionId}),(0,N.jsx)(f,{label:e.status,tone:e.status===`Succeeded`?`positive`:e.status===`Failed`?`critical`:e.status===`Running`?`progress`:e.status===`Stopped`?`caution`:`neutral`})]}),e.statusSummary===null?null:(0,N.jsx)(`p`,{className:Q.summary,children:e.statusSummary}),(0,N.jsxs)(`dl`,{className:Q.heroFacts,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Why`}),(0,N.jsxs)(`dd`,{children:[e.triggerType,(0,N.jsx)(`small`,{children:e.triggerDetail})]})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Revision`}),(0,N.jsx)(`dd`,{children:(0,N.jsx)(`code`,{children:e.triggerRevision})})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Where`}),(0,N.jsx)(`dd`,{children:e.targetEnvironment})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Duration`}),(0,N.jsx)(`dd`,{children:e.duration})]})]}),(0,N.jsxs)(`dl`,{className:Q.executionMeta,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Pipeline`}),(0,N.jsxs)(`dd`,{children:[e.pipelineName,` · `,e.pipelineVersion]})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Started`}),(0,N.jsx)(`dd`,{children:(0,N.jsx)(Xf,{value:e.startedAt})})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Updated`}),(0,N.jsx)(`dd`,{children:(0,N.jsx)(Xf,{value:e.updatedAt})})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Mode`}),(0,N.jsx)(`dd`,{children:e.executionMode})]})]})]}),(0,N.jsx)(te,{className:Q.stageRail,emptyLabel:`No stage detail was synchronized for this execution.`,heading:`Execution path`,stages:e.stages}),(0,N.jsx)(Yf,{heading:`People`,meta:`Provider identities that operated or approved this run`,children:(0,N.jsxs)(`div`,{className:Q.peopleLanes,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`small`,{children:`Operators`}),(0,N.jsx)(`strong`,{children:e.operators.join(` · `)||`Not synchronized`})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`small`,{children:`Approvers`}),(0,N.jsx)(`strong`,{children:e.approvers.join(` · `)||`No approval recorded`})]})]})}),(0,N.jsxs)(Yf,{heading:`Actions`,meta:`${e.actionCountLabel} actions · ${String(e.pagesRead)} bounded pages read`,children:[e.actionsTruncated?(0,N.jsx)(`p`,{className:Q.partial,children:`This is a bounded view. Additional action detail exists in CodePipeline.`}):null,e.actions.length===0?(0,N.jsx)(O,{tone:`secondary`,children:`No action detail was synchronized for this execution.`}):(0,N.jsx)(`ol`,{className:Q.actions,children:e.actions.map(e=>(0,N.jsxs)(`li`,{"data-tone":e.tone,children:[(0,N.jsxs)(`header`,{children:[(0,N.jsxs)(`span`,{children:[(0,N.jsx)(`small`,{children:e.stageName}),(0,N.jsx)(`strong`,{children:e.name})]}),(0,N.jsx)(f,{label:e.status,tone:e.tone})]}),(0,N.jsxs)(`dl`,{children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Provider`}),(0,N.jsx)(`dd`,{children:e.provider})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Duration`}),(0,N.jsx)(`dd`,{children:e.duration})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Actor`}),(0,N.jsx)(`dd`,{children:e.actor??`Not synchronized`})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Region`}),(0,N.jsx)(`dd`,{children:e.region??`Not synchronized`})]})]}),e.summary===null?null:(0,N.jsx)(`p`,{children:e.summary}),e.error===null?null:(0,N.jsx)(`p`,{className:Q.error,children:e.error}),e.artifacts.length===0?null:(0,N.jsx)(`ul`,{className:Q.artifacts,children:e.artifacts.map((e,t)=>(0,N.jsxs)(`li`,{children:[(0,N.jsx)(`span`,{children:e.direction}),(0,N.jsx)(`strong`,{children:e.name}),(0,N.jsx)(`small`,{children:e.accessLabel})]},`${e.direction}-${e.name}-${String(t)}`))})]},e.id))})]}),(0,N.jsx)(Yf,{heading:`Source artifacts`,meta:`Metadata only; content stays behind the authenticated proxy`,children:e.sourceArtifacts.length===0?(0,N.jsx)(O,{tone:`secondary`,children:`No source artifact metadata was synchronized.`}):(0,N.jsx)(`ul`,{className:Q.sourceArtifacts,children:e.sourceArtifacts.map(e=>(0,N.jsxs)(`li`,{children:[(0,N.jsxs)(`span`,{children:[(0,N.jsx)(`strong`,{children:e.name}),(0,N.jsx)(`code`,{children:e.revision})]}),(0,N.jsxs)(`span`,{children:[e.summary??`No summary`,(0,N.jsx)(`small`,{children:e.accessLabel})]})]},`${e.name}-${e.revision}`))})}),(0,N.jsxs)(Yf,{heading:`Delivery evidence`,meta:`Current accepted relationships around this exact run`,children:[(0,N.jsxs)(`dl`,{className:Q.deliveryCounts,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Releases`}),(0,N.jsx)(`dd`,{children:e.releaseCountLabel})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Pull requests`}),(0,N.jsx)(`dd`,{children:e.pullRequestCountLabel})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Runbooks`}),(0,N.jsx)(`dd`,{children:e.runbookCountLabel})]})]}),(0,N.jsx)(O,{tone:`secondary`,children:`Use the delivery relationships below to open each connected object and inspect its evidence.`})]})]}),Qf=e=>le.check(He(),Ee(),Re(e),Fe(/^[A-Za-z0-9][A-Za-z0-9._:/-]*$/u)),$f=fe([`review`,`security`,`tests`,`explain`]);ue({id:Qf(128),name:le.check(He(),Ee(),Re(200)),kind:$f,provider:Qf(128),harness:Qf(128),model:le.check(He(),Ee(),Re(200)),skillIds:we(Qf(256)).check(Re(24),Oe())}),ue({namespace:Qf(128),subjectId:le.check(He(),Ee(),Re(1024)),revisionId:le.check(He(),Ee(),Re(1024)),baseRevision:Pe(le.check(He(),Ee(),Re(1024))),headRevision:le.check(He(),Ee(),Re(1024))});var ep=e=>JSON.stringify([e.namespace,e.subjectId,e.revisionId,e.baseRevision,e.headRevision]),tp=(e,t)=>ep(e)===ep(t),np=e=>ce(e,`RequestTimedOutApiError`)||ce(e,`RateLimitedApiError`)||ce(e,`ServiceUnavailableApiError`)||me(e)&&e.reason._tag===`TransportError`,rp=e=>ce(e,`UnauthorizedApiError`),ip=m(()=>import(`./pullRequestReviewThreadReplay-Dhslqjta.js`),__vite__mapDeps([0,1,2,3,4])),ap=ip.then(({generatedClientPullRequestReviewTransport:e})=>e),op=e=>ce(e,`RateLimitedApiError`),sp=e=>{if(!op(e))return Ne(ke(1));let t=e.retryAt;return t===null?Ne(ke(2)):Ve(se,e=>Ne(je(Math.max(0,Se(t)-Se(e)))))},cp=class extends Ce(`PullRequestReviewRequestAborted`){},lp=e=>{let t=[];for(let n of e.providers){let e=n.models[0];n.health===`available`&&n.capabilities.includes(`pr-review`)&&n.reviewProfile!==void 0&&e!==void 0&&t.push({providerId:n.providerId,model:e,reviewProfile:n.reviewProfile,...n.displayName!==void 0&&{displayName:n.displayName}})}return t},up={enqueue:(...e)=>ap.then(t=>t.enqueue(...e)),cancel:(...e)=>ap.then(t=>t.cancel(...e)),extendBudget:(...e)=>ap.then(t=>t.extendBudget(...e)),load:(...e)=>ap.then(t=>t.load(...e)),loadThread:(...e)=>ap.then(t=>t.loadThread(...e)),previewPublication:(...e)=>ap.then(t=>t.previewPublication(...e)),providers:(...e)=>ap.then(t=>t.providers(...e)),publishSuggestion:(...e)=>ap.then(t=>t.publishSuggestion(...e)),targetSuggestion:(...e)=>ap.then(t=>t.targetSuggestion(...e))},$=(e,t)=>tp(yt(e),yt(t)),dp=(e,t,n,r,i)=>{e.catch(e=>{!t.aborted&&r.current!==null&&$(r.current,n)&&(_e(Me(`Pull-request review history boundary failed`,e)),i(e=>e._tag===`ready`&&$(e,n)?{...e,historyAction:`failed`}:e))})},fp=(e,t,n,r,i,a)=>{!t.aborted&&r.current!==null&&$(r.current,n)&&a(t=>t._tag===`ready`&&$(t,n)?{...t,thread:i.current??e}:t)},pp=(e,t)=>e._tag===`unavailable`||e.subject.baseRevision===t.baseRevision&&e.subject.headRevision===t.headRevision,mp=(e,t,n,r,i,a,o=up)=>{let[s,c]=(0,M.useState)(0),[l,u]=(0,M.useState)({_tag:`idle`}),[d,f]=(0,M.useState)({_tag:`idle`}),p=(0,M.useRef)(null),m=(0,M.useRef)(null),h=(0,M.useRef)(null),g=(0,M.useRef)(null),_=(0,M.useRef)(null),v=(0,M.useRef)(null),y=(0,M.useMemo)(()=>r===null||n===null?null:{baseRevision:t,entityId:e,headRevision:n,sessionKey:r},[t,e,n,r]);(0,M.useLayoutEffect)(()=>{_.current=y},[y]),(0,M.useLayoutEffect)(()=>{v.current=null},[e,r]),(0,M.useEffect)(()=>{if(r===null||n===null){u({_tag:`idle`});return}let s={baseRevision:t,entityId:e,headRevision:n,sessionKey:r},l=v.current??void 0,d=new AbortController,f=(e,t)=>g.current!==null&&$(g.current,s)?!1:(g.current=s,_e(Ae(e,t)),A(sp(t),{signal:d.signal}).then(()=>{d.signal.aborted||c(e=>e+1)},e=>{d.signal.aborted||u({_tag:`failed`,...s})}),!0);return u(e=>e._tag===`ready`&&$(e,s)?e:{_tag:`loading`,...s}),ip.then(({loadPullRequestReviewSnapshot:t})=>t(o,e,i,d.signal,l,v)).then(({catalog:e,catalogNeedsRetry:t,review:n,thread:r})=>{if(!d.signal.aborted){t||(g.current=null);let i=lp(e);u(pp(n,s)?{_tag:`ready`,...s,action:`idle`,historyAction:`idle`,provider:i[0]??null,providerPresets:i,review:n,thread:r}:{_tag:`failed`,...s}),t&&f(`Pull-request review provider catalog unavailable; retrying once`)}},e=>{if(!d.signal.aborted){if(rp(e)){a(r),u({_tag:`failed`,...s});return}np(e)&&f(`Pull-request review snapshot load failed; retrying once`,e)||u({_tag:`failed`,...s})}}),()=>d.abort()},[t,i,e,n,a,s,r,o]),(0,M.useEffect)(()=>{if(l._tag!==`ready`||l.review._tag!==`pending`)return;let e=new AbortController;return A(Ne(`2 seconds`),{signal:e.signal}).then(()=>{e.signal.aborted||c(e=>e+1)},t=>{e.signal.aborted||u({_tag:`failed`,baseRevision:l.baseRevision,entityId:l.entityId,headRevision:l.headRevision,sessionKey:l.sessionKey})}),()=>e.abort()},[l]),(0,M.useEffect)(()=>()=>{p.current?.abort(),m.current?.abort(),h.current?.abort()},[]),(0,M.useEffect)(()=>{p.current?.abort(),p.current=null,m.current?.abort(),m.current=null,h.current?.abort(),h.current=null,f({_tag:`idle`})},[e,r]),(0,M.useLayoutEffect)(()=>{m.current?.abort(),m.current=null,f(e=>e._tag===`publishing`?e:{_tag:`idle`})},[t,n]);let b=(0,M.useCallback)((e,t)=>{let n=v.current??void 0;ip.then(({refreshPullRequestReviewThread:r})=>r(o,e.entityId,t,n,v)).then(n=>{fp(n,t,e,_,v,u)},()=>void 0)},[o]),x=(0,M.useCallback)(()=>{if(l._tag!==`ready`||l.historyAction===`loading`||l.thread===void 0||!l.thread.hasEarlier)return;let e=l,t=l.thread;p.current?.abort();let n=new AbortController;p.current=n,u({...e,historyAction:`loading`}),dp(ip.then(({loadEarlierPullRequestReviewThreadIntoState:r})=>r(o,e,t,n.signal,_,v,a,u)),n.signal,e,_,u)},[a,l,o]),S=(0,M.useCallback)((t,n)=>{if(l._tag!==`ready`||l.review._tag===`unavailable`)return Promise.resolve();let r=n===void 0?l.provider:l.providerPresets?.find(e=>e.providerId===n)??null;if(r===null)return Promise.resolve();let i=l;m.current?.abort();let s=new AbortController;return m.current=s,u({...i,action:`starting`}),o.enqueue(e,r,t,s.signal).then(e=>{if(s.signal.aborted)return Promise.reject(new cp);u(t=>t._tag===`ready`&&$(t,i)&&pp(e,i)?{...t,action:`idle`,review:e}:t._tag===`ready`&&$(t,i)?{_tag:`failed`,baseRevision:i.baseRevision,entityId:i.entityId,headRevision:i.headRevision,sessionKey:i.sessionKey}:t)},e=>s.signal.aborted?Promise.reject(new cp):(rp(e)&&a(i.sessionKey),u(e=>e._tag===`ready`&&$(e,i)?{...e,action:`failed`}:e),Promise.reject(e)))},[e,a,l,o]),C=(0,M.useCallback)((e,t)=>{S(e,t).catch(e=>{ce(e,`PullRequestReviewRequestAborted`)||_e(Me(`Pull-request review enqueue failed`,e))})},[S]),w=(0,M.useCallback)(e=>{if(l._tag!==`ready`)return;let t=l.review;if(t._tag!==`pending`)return;let n=l;m.current?.abort();let r=new AbortController;m.current=r,e(t.jobId,r.signal).then(e=>{r.signal.aborted||u(t=>t._tag===`ready`&&$(t,n)&&pp(e,n)?{...t,review:e}:t)},e=>{r.signal.aborted||rp(e)&&a(n.sessionKey)})},[a,l]),T=(0,M.useCallback)(t=>{if(l._tag!==`ready`||l.review._tag!==`completed`||l.review.jobId!==t.jobId||!l.review.report.suggestions.some(({suggestionId:e})=>e===t.suggestionId))return;let n=l;m.current?.abort();let r=new AbortController;m.current=r,f({_tag:`previewing`,selection:t}),o.previewPublication(e,t,r.signal).then(e=>{r.signal.aborted||f(e.subject.headRevision===n.headRevision?{_tag:`preview`,preview:e}:{_tag:`failed`,preview:null,selection:t})},e=>{r.signal.aborted||(rp(e)&&a(n.sessionKey),f({_tag:`failed`,preview:null,selection:t}))})},[e,a,l,o]),E=(0,M.useCallback)(t=>{if(l._tag!==`ready`)return;let n=d._tag===`preview`||d._tag===`failed`?d.preview:null;if(n===null)return;let r=l,i={jobId:n.jobId,suggestionId:n.suggestionId,revisionId:n.revisionId};h.current?.abort();let s=new AbortController;h.current=s,f({_tag:`publishing`,preview:n}),o.publishSuggestion(e,i,t,n.authorityBinding,s.signal).then(e=>{if(s.signal.aborted)return;let t=e.suggestionRevision.reviewedHead===n.suggestionRevision.reviewedHead;t&&u(t=>t._tag===`ready`&&t.review._tag===`completed`&&t.review.jobId===e.jobId?{...t,review:{...t.review,report:{...t.review.report,suggestions:t.review.report.suggestions.map(t=>t.suggestionId===e.suggestionId?{...t,state:`published`}:t)}}}:t),f(t?{_tag:`published`,headSuperseded:_.current===null||e.subject.baseRevision!==_.current.baseRevision||e.subject.headRevision!==_.current.headRevision,preview:n,publication:e}:{_tag:`receipt-conflict`,preview:n,publication:e});let i=_.current;i!==null&&i.entityId===r.entityId&&i.sessionKey===r.sessionKey&&b(i,s.signal)},e=>{s.signal.aborted||(rp(e)&&a(r.sessionKey),f({_tag:`failed`,preview:n,selection:i}))})},[e,a,d,b,l,o]),ee=(0,M.useCallback)(t=>{if(l._tag!==`ready`||l.review._tag!==`completed`||l.review.jobId!==t.jobId||l.provider===null||!l.review.report.suggestions.some(({suggestionId:e})=>e===t.suggestionId)||o.targetSuggestion===void 0)return;let n=l;m.current?.abort();let r=new AbortController;m.current=r,u({...n,action:`starting`}),o.targetSuggestion(e,t,l.provider,r.signal).then(e=>{r.signal.aborted||u(t=>t._tag===`ready`&&$(t,n)&&pp(e,n)?{...t,action:`idle`,review:e}:t)},e=>{r.signal.aborted||(rp(e)&&a(n.sessionKey),u(e=>e._tag===`ready`&&$(e,n)?{...e,action:`failed`}:e))})},[e,a,l,o]),D=y===null?{_tag:`idle`}:l._tag!==`idle`&&$(l,y)?l:{_tag:`loading`,...y};return{cancel:(0,M.useCallback)(()=>{o.cancel!==void 0&&w((t,n)=>o.cancel(e,t,n))},[e,w,o]),cancelPublication:(0,M.useCallback)(()=>{m.current?.abort(),m.current=null,h.current?.abort(),h.current=null,f({_tag:`idle`})},[]),extendBudget:(0,M.useCallback)(()=>{o.extendBudget!==void 0&&w((t,n)=>o.extendBudget(e,t,n))},[e,w,o]),loadEarlier:x,previewPublication:T,publication:d,publishSuggestion:E,targetSuggestion:ee,retry:(0,M.useCallback)(()=>{g.current=null,c(e=>e+1)},[]),start:C,startAwaitable:S,state:D}},hp=e({WorkspaceEntityRoute:()=>Fp,WorkspaceEntityView:()=>Np,confluenceEditHref:()=>xp}),gp=(0,M.lazy)(()=>m(()=>import(`./WorkspacePullRequestDetails-Z3MfihsH.js`).then(e=>({default:e.WorkspacePullRequestDetails})),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14,15,16,1,2,3,17]))),_p=(e,t)=>{let n=e.split(/[?#]/u,1)[0]??``;return n===Qe(t)?`Back to items`:n.includes(`/releases/`)?`Back to release`:n.endsWith(`/work`)?`Back to active work`:n.endsWith(`/timeline`)?`Back to timeline`:`Back to workspace`},vp=({action:e,description:t,title:n,tone:r=`neutral`})=>{let i=(0,M.useRef)(null);return(0,M.useEffect)(()=>i.current?.focus(),[]),(0,N.jsx)(`section`,{className:P.state,"data-workspace-entity-state":r,ref:i,tabIndex:-1,children:(0,N.jsx)(d,{action:e,description:t,title:n,tone:r})})},yp=()=>(0,N.jsxs)(`section`,{"aria-label":`Loading canonical entity`,className:P.loading,children:[(0,N.jsx)(c,{decorative:!1,height:`12rem`,label:`Loading canonical entity`,variant:`block`}),(0,N.jsxs)(`div`,{className:P.loadingColumns,children:[(0,N.jsx)(c,{height:`20rem`,variant:`block`}),(0,N.jsx)(c,{height:`20rem`,variant:`block`})]})]}),bp=({action:e})=>e.href===null?(0,N.jsx)(l,{disabled:!0,size:`principal`,stretch:!0,variant:`primary`,children:e.label}):e.external?(0,N.jsx)(`a`,{className:P.principalAction,href:e.href,rel:`noreferrer`,target:`_blank`,children:e.label}):(0,N.jsx)(_,{className:P.principalAction,to:e.href,children:e.label}),xp=(e,t)=>{if(e===null)return null;let n=URL.parse(e);if(n===null||n.protocol!==`https:`)return null;let r=/^\/wiki\/spaces\/([^/]+)\/pages\/([^/]+)(?:\/|$)/u.exec(n.pathname);return r?.[1]===void 0||r[2]!==encodeURIComponent(t)?null:(n.pathname=`/wiki/spaces/${r[1]}/pages/edit-v2/${encodeURIComponent(t)}`,n.search=``,n.hash=``,n.href)},Sp=({onConfluenceSynchronize:e,presentation:t,synchronizationState:n})=>{let r=t.confluencePage===null?null:xp(t.primaryAction.href,t.displayKey);return(0,N.jsxs)(`div`,{className:P.entityActions,children:[(0,N.jsx)(bp,{action:t.primaryAction}),r===null?null:(0,N.jsx)(`a`,{className:P.secondaryAction,href:r,rel:`noreferrer`,target:`_blank`,children:`Edit in Confluence`}),t.confluencePage===null||n===null?null:(0,N.jsxs)(`div`,{className:P.pageSynchronization,children:[(0,N.jsx)(l,{disabled:n===`syncing`,loading:n===`syncing`,onClick:e,variant:`secondary`,children:`Sync now`}),(0,N.jsx)(O,{tone:`secondary`,variant:`meta`,children:n===`failed`?`Sync failed. Try again.`:n===`synchronized`?`Up to date · live sync every 15 seconds while visible`:`Live sync every 15 seconds while visible`})]})]})},Cp=({presentation:e})=>(0,N.jsxs)(`section`,{"aria-labelledby":`workspace-entity-path`,className:P.deliveryPath,children:[(0,N.jsxs)(`div`,{className:P.sectionHeading,children:[(0,N.jsx)(O,{as:`h2`,id:`workspace-entity-path`,variant:`section-title`,children:`Delivery path`}),(0,N.jsx)(O,{tone:`secondary`,variant:`meta`,children:`Where this work lives`})]}),(0,N.jsxs)(`div`,{className:P.pathRail,children:[(0,N.jsxs)(`div`,{className:P.pathNode,children:[(0,N.jsx)(ee,{service:e.service,size:`compact`}),(0,N.jsxs)(`span`,{children:[(0,N.jsx)(`strong`,{children:e.serviceName}),(0,N.jsx)(`code`,{children:e.displayKey})]})]}),e.releases.length===0?(0,N.jsx)(`div`,{className:P.pathEmpty,children:`No release membership yet`}):(0,N.jsx)(`ol`,{className:P.releasePath,children:e.releases.map(e=>(0,N.jsx)(`li`,{children:(0,N.jsx)(_,{to:e.href,children:e.label})},e.id))})]}),(0,N.jsx)(O,{tone:`secondary`,children:e.contentSummary})]}),wp=({presentation:e})=>(0,N.jsxs)(`section`,{"aria-labelledby":`workspace-entity-facts`,className:P.facts,children:[(0,N.jsx)(O,{as:`h2`,id:`workspace-entity-facts`,variant:`card-title`,children:`At a glance`}),(0,N.jsx)(`dl`,{children:e.facts.map(e=>(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:e.label}),(0,N.jsx)(`dd`,{children:e.value})]},e.label))})]}),Tp=({presentation:e})=>(0,N.jsxs)(`section`,{"aria-labelledby":`workspace-entity-evidence`,className:P.evidence,children:[(0,N.jsx)(O,{as:`h2`,id:`workspace-entity-evidence`,variant:`card-title`,children:`Provenance`}),(0,N.jsx)(T,{freshness:e.evidence.freshness,freshnessDateTime:e.evidence.freshnessDateTime,freshnessTime:e.evidence.freshnessTime,reference:e.evidence.reference,service:e.service}),(0,N.jsxs)(O,{tone:`secondary`,variant:`meta`,children:[e.evidence.itemCount,` evidence item`,e.evidence.itemCount===1?``:`s`,` ·`,` `,e.evidence.claimCount,` claim`,e.evidence.claimCount===1?``:`s`]})]}),Ep=({presentation:e})=>{let[t,n]=(0,M.useState)(e.collaborators.expandedCategories);return(0,N.jsx)(`div`,{className:P.workingCircle,children:(0,N.jsx)(S,{approvers:e.collaborators.approvers,authors:e.collaborators.authors,emptyLabel:e.collaborators.emptyLabel,expandedCategories:t,heading:`Working circle`,limit:3,onCategoryExpandedChange:(e,t)=>{n(n=>t?[...new Set([...n,e])]:n.filter(t=>t!==e))},operators:e.collaborators.operators,owners:e.collaborators.owners,reviewers:e.collaborators.reviewers,size:`compact`})})},Dp=({presentation:e})=>e.relationships.length<=4?(0,N.jsx)(D,{emptyLabel:e.relationshipEmptyLabel,heading:`Delivery relationships`,relationships:e.relationships}):(0,N.jsx)(b,{emptyLabel:e.relationshipEmptyLabel,heading:`Delivery relationships`,relationships:e.relationships}),Op=({presentation:e})=>(0,N.jsxs)(`section`,{"aria-labelledby":`workspace-entity-activity`,className:P.activity,children:[(0,N.jsxs)(`div`,{className:P.sectionHeading,children:[(0,N.jsx)(O,{as:`h2`,id:`workspace-entity-activity`,variant:`section-title`,children:`Activity`}),(0,N.jsx)(O,{tone:`secondary`,variant:`meta`,children:`Quiet, attributable history`})]}),e.activity.length===0?(0,N.jsx)(O,{tone:`secondary`,children:e.activityEmptyLabel}):(0,N.jsx)(`ol`,{className:P.timeline,children:e.activity.map((t,n)=>(0,N.jsx)(ne,{continued:n<e.activity.length-1,event:t},t.id))})]}),kp=e=>{switch(e.reason){case`refreshing`:return`Refreshing from the connected service. The last complete inspection remains visible.`;case`refresh-failed`:return`The latest refresh failed. The last complete inspection remains visible and may be out of date.`;case`source-stale`:return`The connected service reported stale source data. Confirm current state before acting.`}},Ap=({clockifyActionCanApprove:e,clockifyActionCanCorrect:t,clockifyActionState:n,clockifyActionSubmit:r,confluenceEditor:i,onSessionExpired:a,presentation:o,retry:s,reviewCanEnqueue:u,reviewCancel:f,reviewExtendBudget:p,reviewLoadEarlier:m,reviewPublication:h,reviewPublicationCancel:g,reviewPublicationPreview:_,reviewRetry:v,reviewStart:y,reviewState:b,reviewSuggestionPublish:x,reviewSuggestionRevisionTransport:S,reviewTargetSuggestion:C,sessionKey:w,stale:T})=>(0,N.jsxs)(`div`,{className:P.content,children:[T===null?null:(0,N.jsx)(d,{action:T.reason===`refreshing`?void 0:(0,N.jsx)(l,{onClick:s,children:`Retry refresh`}),announce:T.reason===`refresh-failed`?`polite`:`off`,description:kp(T),title:T.reason===`refreshing`?`Refreshing source`:`Showing retained source data`,tone:`caution`}),o.partialMessages.map(e=>(0,N.jsx)(d,{description:e,title:`Partial canonical view`,tone:`caution`},e)),o.clockifyTimeEntry===null?null:(0,N.jsx)(Dn,{canApprove:e,canCorrect:t,onSubmit:r,submission:n,timeEntry:o.clockifyTimeEntry}),o.issue===null?null:(0,N.jsx)(Jf,{issue:o.issue}),o.confluencePage===null?null:(0,N.jsx)(Gf,{editor:i,page:o.confluencePage}),o.pipelineExecution===null?null:(0,N.jsx)(Zf,{pipeline:o.pipelineExecution}),o.pullRequest===null?null:(0,N.jsx)(M.Suspense,{fallback:(0,N.jsx)(c,{decorative:!1,height:`20rem`,label:`Loading pull request`,variant:`block`}),children:(0,N.jsx)(gp,{approvers:o.collaborators.approvers,onSessionExpired:a,onReviewCancel:f,onReviewExtendBudget:p,onReviewLoadEarlier:m,onReviewPublicationCancel:g,onReviewPublicationPreview:_,onReviewRetry:v,onReviewSuggestionPublish:x,onReviewTargetSuggestion:C,onReviewStart:y,pullRequest:o.pullRequest,reviewCanEnqueue:u,reviewPublication:h,...S===void 0?{}:{reviewSuggestionRevisionTransport:S},reviewState:b,reviewers:o.collaborators.reviewers,sessionKey:w})}),(0,N.jsx)(Cp,{presentation:o})]}),jp=e=>void 0,Mp=()=>void 0,Np=({clockifyActionCanApprove:e=!1,clockifyActionCanCorrect:t=!1,clockifyActionState:n={_tag:`idle`},clockifyActionSubmit:r=Mp,confluenceCanEdit:i=!1,confluenceSynchronizationState:a=null,onAskAgent:o,onConfluenceSaved:s,onConfluenceSynchronize:c=Mp,onSessionExpired:u=jp,originHref:d,originLabel:f,originState:p,retry:m,reviewCanEnqueue:h=!1,reviewCancel:g=Mp,reviewExtendBudget:y=Mp,reviewLoadEarlier:b=Mp,reviewPublication:x={_tag:`idle`},reviewPublicationCancel:S=Mp,reviewPublicationPreview:w=Mp,reviewRetry:T=Mp,reviewStart:ee=Mp,reviewState:D={_tag:`idle`},reviewSuggestionPublish:te=Mp,reviewSuggestionRevisionTransport:ne,reviewTargetSuggestion:O=Mp,sessionKey:re=null,state:k,workspaceId:ie})=>{let A=(0,M.useRef)(null),ae=k._tag===`ready`||k._tag===`stale`?k.inspection.entity.projection.entityId:k._tag;if((0,M.useEffect)(()=>A.current?.focus(),[ae]),k._tag===`idle`)return(0,N.jsx)(vp,{action:(0,N.jsx)(_,{state:p,to:d,children:f}),description:`A readable workspace session is required before this object can be loaded.`,title:`Entity unavailable`});if(k._tag===`loading`)return(0,N.jsx)(yp,{});if(k._tag===`not-found`)return(0,N.jsx)(vp,{action:(0,N.jsx)(_,{state:p,to:d,children:f}),description:`This object is not in this workspace. It may have been deleted, disconnected, or the address may be wrong.`,title:`Object not found`});if(k._tag===`failed`)return(0,N.jsx)(vp,{action:(0,N.jsx)(l,{onClick:m,children:`Retry entity`}),description:`The canonical object could not be loaded. Your current workspace location is preserved.`,title:`Could not load object`,tone:`critical`});let j=wn(ie,k.inspection),oe=k._tag===`ready`&&k.inspection.isSourceCurrent&&k.inspection.sourceActionsAvailable,se=s??m;return(0,N.jsx)(v,{component:gt,children:(0,N.jsx)(E,{actions:(0,N.jsx)(Sp,{onConfluenceSynchronize:c,presentation:j,synchronizationState:a}),activity:(0,N.jsx)(Op,{presentation:j}),agentEntry:(0,N.jsx)(C,{actionLabel:j.confluencePage===null?`Ask about this object`:`Draft with Relay`,agentName:`Relay`,context:j.agentContext,onClick:o}),collaborators:(0,N.jsx)(Ep,{presentation:j},k.inspection.entity.projection.entityId),className:P.shell,content:(0,N.jsx)(Ap,{clockifyActionCanApprove:oe&&e,clockifyActionCanCorrect:oe&&t,clockifyActionState:n,clockifyActionSubmit:r,confluenceEditor:{canEdit:i&&k._tag===`ready`&&k.inspection.isSourceCurrent&&k.inspection.sourceActionsAvailable,entityId:k.inspection.entity.projection.entityId,onAskAgent:o,onSaved:se,releaseId:k.inspection.entity.canonicalReleaseId,title:j.title},onSessionExpired:u,presentation:j,reviewCanEnqueue:h,reviewCancel:g,reviewExtendBudget:y,reviewPublication:x,reviewPublicationCancel:S,reviewLoadEarlier:b,reviewPublicationPreview:w,reviewRetry:T,...ne===void 0?{}:{reviewSuggestionRevisionTransport:ne},reviewSuggestionPublish:te,reviewTargetSuggestion:O,reviewStart:ee,reviewState:D,retry:m,sessionKey:re,stale:k._tag===`stale`?k:null}),"data-service":j.service,"data-workspace-entity-id":k.inspection.entity.projection.entityId,evidence:(0,N.jsx)(Tp,{presentation:j}),facts:(0,N.jsx)(wp,{presentation:j}),freshness:j.freshness,freshnessDateTime:j.freshnessDateTime,freshnessTime:j.freshnessTime,navigation:(0,N.jsx)(_,{className:P.back,state:p,to:d,children:f}),reason:`${j.displayKey} is ${j.verdict.toLocaleLowerCase(`en-US`)} in ${j.serviceName}.`,ref:A,relationships:(0,N.jsx)(Dp,{presentation:j}),service:j.service,tabIndex:-1,title:j.title,tone:j.tone,verdict:j.verdict})})},Pp=({entityId:e,workspaceId:t})=>{let n=a(),r=h(),i=o(),c=s(),l=n.controller.state._tag===`ready`?n.controller.state.portfolio.generatedAt:`pending`,u=y(r.state),d=qe(t,e,l,u,r.invalidateSession),f=(d.state._tag===`ready`||d.state._tag===`stale`)&&d.state.inspection.entity.projection.details._tag===`page`?d.state.inspection.source.pluginConnectionId:null,p=f!==null&&(d.state._tag===`ready`||d.state._tag===`stale`)&&d.state.inspection.sourceSynchronizationAvailable&&r.state._tag===`authenticated`&&r.state.session.permission===`workspace-owner`,m=f!==null&&(d.state._tag===`ready`||d.state._tag===`stale`)?Se(d.state.inspection.source.synchronizedAt):null,g=(0,M.useCallback)(async t=>{if(f===null)return null;let n=await Je.load(e,t);return n.entity.projection.entityId===e&&n.source.pluginConnectionId===f?Se(n.source.synchronizedAt):null},[f,e]),_=Zn({enabled:p,onSessionExpired:r.invalidateSession,onSynchronized:d.retry,pluginConnectionId:f,readSynchronizationRevision:g,sessionKey:u,synchronizationRevision:m}),v=kn(e,u,r.invalidateSession,d.retry),b=r.state._tag===`authenticated`&&r.state.session.permission===`workspace-owner`,x=(d.state._tag===`ready`||d.state._tag===`stale`)&&d.state.inspection.entity.projection.details._tag===`pull-request`?{baseRevision:d.state.inspection.entity.projection.details.baseRevision??null,headRevision:d.state.inspection.entity.projection.details.headRevision}:null,S=mp(e,x?.baseRevision??null,x?.headRevision??null,u,b,r.invalidateSession),C=et(i.state,t,e),w=tt(C.origin),T=d.state._tag===`ready`||d.state._tag===`stale`?d.state.inspection.entity:{canonicalReleaseId:null,releaseIds:[],releaseMembershipsTruncated:!1},E=new Set(n.controller.state._tag===`ready`?n.controller.state.portfolio.releases.map(({id:e})=>e):[]),ee=$e(C.origin,t,i,T,E);return(0,N.jsxs)(N.Fragment,{children:[(d.state._tag===`ready`||d.state._tag===`stale`)&&d.state.inspection.entity.projection.details._tag===`pull-request`?(0,N.jsx)(Tt,{canEnqueue:b,entityId:e,inspection:d.state.inspection,reviewState:S.state,startReview:S.startAwaitable,workspaceId:t}):null,(0,N.jsx)(Np,{clockifyActionCanApprove:r.state._tag===`authenticated`&&(r.state.session.permission===`workspace-owner`||r.state.session.permission===`workspace-approver`),clockifyActionCanCorrect:r.state._tag===`authenticated`&&r.state.session.permission===`workspace-owner`,clockifyActionState:v.state,clockifyActionSubmit:v.submit,confluenceCanEdit:r.state._tag===`authenticated`&&r.state.session.permission===`workspace-owner`,confluenceSynchronizationState:p?_.state:null,onAskAgent:()=>c(ee,{state:i.state}),onConfluenceSaved:_.synchronizeAfterMutation,onConfluenceSynchronize:_.synchronizeNow,onSessionExpired:r.invalidateSession,originHref:w,originLabel:_p(w,t),originState:C.origin.state,retry:d.retry,reviewCanEnqueue:b,reviewCancel:S.cancel,reviewExtendBudget:S.extendBudget,reviewPublication:S.publication,reviewPublicationCancel:S.cancelPublication,reviewLoadEarlier:S.loadEarlier,reviewPublicationPreview:S.previewPublication,reviewRetry:S.retry,reviewSuggestionPublish:S.publishSuggestion,reviewTargetSuggestion:S.targetSuggestion,reviewStart:S.start,reviewState:S.state,state:d.state,sessionKey:u,workspaceId:t})]})},Fp=()=>{let e=a(),t=i(),n=nt(t.entityId);return n===null?(0,N.jsx)(vp,{action:(0,N.jsx)(_,{to:Qe(e.workspaceId),children:`Back to items`}),description:`The object address is not a canonical entity identifier.`,title:`Object not found`}):(0,N.jsx)(Pp,{entityId:n,workspaceId:e.workspaceId})};export{Fp as WorkspaceEntityRoute,Np as WorkspaceEntityView,vt as a,xp as confluenceEditHref,jf as i,np as n,rp as r,hp as t};
|
|
42
|
-
//# sourceMappingURL=WorkspaceEntityRoute-
|
|
41
|
+
`).trim(),zf=(e,t)=>{document.execCommand(e,!1,t)},Bf=e=>{let t=URL.parse(e);return t!==null&&(t.protocol===`http:`||t.protocol===`https:`)?t.href:null},Vf=e=>e===`succeeded`,Hf=(0,M.memo)(({markdown:e})=>(0,N.jsx)(jf,{value:e}),()=>!0),Uf=({canEdit:e,entityId:t,onAskAgent:n,onSaved:r,page:i,releaseId:a,submitPublication:o=Xe,title:s})=>{let[c,f]=(0,M.useState)({_tag:`idle`}),[p,m]=(0,M.useState)(null),[h,g]=(0,M.useState)(!1),[_,v]=(0,M.useState)(s),y=(0,M.useRef)(null),b=c._tag!==`idle`&&c._tag!==`saved`,x=c._tag===`saving`,S=ht(i.content??``);(0,M.useEffect)(()=>{v(s),f({_tag:`idle`}),m(null),g(!1)},[i.revision,s]);let C=(n,c)=>{if(!e||!i.taskUpdatesSafe||a===null||i.content===null||p!==null)return;let l=mt(i.content,n,c);l!==null&&(m(n),g(!1),o({releaseId:a,provider:`confluence`,title:s,markdown:l,targetEntityId:t,targetRevision:ie.make(i.revision),signal:AbortSignal.timeout(3e4)}).then(e=>{Vf(e.state)?r():g(!0)},()=>g(!0)).finally(()=>m(null)))};return b?(0,N.jsxs)(`div`,{className:F.visualEditor,"data-confluence-visual-editor":!0,children:[(0,N.jsxs)(`div`,{className:F.editorHeading,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsxs)(O,{as:`strong`,children:[`Editing revision `,i.revision]}),(0,N.jsx)(O,{tone:`secondary`,variant:`meta`,children:`Save creates the next Confluence revision after an explicit owner confirmation.`})]}),(0,N.jsxs)(`div`,{className:F.editorActions,children:[(0,N.jsx)(l,{disabled:x,onClick:n,variant:`secondary`,children:`Ask Relay`}),(0,N.jsx)(l,{disabled:x,onClick:()=>f({_tag:`idle`}),variant:`secondary`,children:`Cancel`}),(0,N.jsx)(l,{disabled:x,loading:x,onClick:()=>{let e=y.current;if(e===null||a===null||x)return;let n=Rf(e),s=_.trim();if(s.length===0||n.length===0){f({_tag:`failed`});return}f({_tag:`saving`}),o({releaseId:a,provider:`confluence`,title:s,markdown:n,targetEntityId:t,targetRevision:ie.make(i.revision),signal:AbortSignal.timeout(3e4)}).then(e=>{Vf(e.state)?(f({_tag:`saved`}),r()):f({_tag:`failed`})},()=>f({_tag:`failed`}))},children:`Save to Confluence`})]})]}),i.contentState!==`loaded`||i.content===null?(0,N.jsx)(d,{description:`The existing body is not synchronized. Saving this draft replaces the complete Confluence page body at the displayed revision.`,title:`Complete replacement`,tone:`caution`}):null,(0,N.jsx)(u,{label:`Page title`,children:e=>(0,N.jsx)(`input`,{...e,disabled:x,maxLength:500,onChange:e=>v(e.target.value),value:_})}),(0,N.jsxs)(`div`,{"aria-label":`Document formatting`,className:F.editorToolbar,onMouseDown:e=>e.preventDefault(),role:`toolbar`,children:[(0,N.jsx)(`button`,{onClick:()=>zf(`formatBlock`,`p`),type:`button`,children:`Paragraph`}),(0,N.jsx)(`button`,{onClick:()=>zf(`formatBlock`,`h2`),type:`button`,children:`Heading 2`}),(0,N.jsx)(`button`,{onClick:()=>zf(`formatBlock`,`h3`),type:`button`,children:`Heading 3`}),(0,N.jsx)(`button`,{"aria-label":`Bold`,onClick:()=>zf(`bold`),type:`button`,children:(0,N.jsx)(`strong`,{children:`B`})}),(0,N.jsx)(`button`,{"aria-label":`Italic`,onClick:()=>zf(`italic`),type:`button`,children:(0,N.jsx)(`em`,{children:`I`})}),(0,N.jsx)(`button`,{onClick:()=>zf(`insertUnorderedList`),type:`button`,children:`Bullets`}),(0,N.jsx)(`button`,{onClick:()=>zf(`insertOrderedList`),type:`button`,children:`Numbered`}),(0,N.jsx)(`button`,{onClick:()=>{let e=window.prompt(`Link address`),t=e===null?null:Bf(e);t!==null&&zf(`createLink`,t)},type:`button`,children:`Link`})]}),(0,N.jsx)(`div`,{"aria-label":`Confluence page body`,"aria-multiline":`true`,className:`${F.editorCanvas} ${F.richText}`,contentEditable:!x,ref:y,role:`textbox`,suppressContentEditableWarning:!0,children:(0,N.jsx)(Hf,{markdown:i.content??``})}),c._tag===`failed`?(0,N.jsx)(d,{description:`Keep a non-empty title and document body, refresh the latest revision, then try again.`,title:`The page was not saved`,tone:`critical`}):null]}):(0,N.jsxs)(`div`,{className:F.documentRead,children:[i.contentState===`loaded`&&i.content!==null?(0,N.jsx)(jf,{className:F.richText,value:i.content}):(0,N.jsxs)(`div`,{className:F.contentState,"data-content-state":i.contentState,children:[(0,N.jsx)(`strong`,{children:i.contentState===`lazy`?`Content has not been loaded`:`No readable body was returned`}),(0,N.jsx)(O,{tone:`secondary`,children:`Open the authenticated Confluence source to read it now, or synchronize the connection before editing so Relay never replaces an unseen document.`})]}),S.total===0?null:(0,N.jsxs)(`section`,{"aria-labelledby":`confluence-release-tasks`,className:F.releaseTasks,children:[(0,N.jsxs)(`div`,{className:F.releaseTaskHeading,children:[(0,N.jsx)(O,{as:`h3`,id:`confluence-release-tasks`,variant:`card-title`,children:`Release tasks`}),(0,N.jsxs)(O,{tone:`secondary`,variant:`meta`,children:[S.completed,` of `,S.total,` complete`]})]}),(0,N.jsx)(`ul`,{className:F.releaseTaskList,children:S.tasks.map(t=>(0,N.jsxs)(`li`,{children:[(0,N.jsxs)(`label`,{children:[(0,N.jsx)(`input`,{checked:t.checked,disabled:!e||!i.taskUpdatesSafe||a===null||p!==null,onChange:e=>C(t.lineIndex,e.target.checked),type:`checkbox`}),(0,N.jsx)(`span`,{children:t.label})]}),p===t.lineIndex?(0,N.jsx)(O,{variant:`meta`,children:`Saving…`}):null]},`${String(t.lineIndex)}-${t.label}`))}),S.outstanding===0?(0,N.jsx)(O,{children:`All Confluence tasks are complete.`}):(0,N.jsxs)(O,{tone:`secondary`,children:[S.outstanding,` task`,S.outstanding===1?``:`s`,` block release publication.`]}),i.taskUpdatesSafe?null:(0,N.jsx)(O,{tone:`secondary`,children:`Task-only updates are unavailable because this safe page projection cannot prove a lossless ADF round trip. Review a complete replacement before changing these tasks.`}),h?(0,N.jsx)(d,{description:`Refresh the latest Confluence revision, then tick the task again.`,title:`The task was not updated`,tone:`critical`}):null]}),(0,N.jsxs)(`div`,{className:F.editorEntry,children:[(0,N.jsx)(l,{disabled:!e||a===null,onClick:()=>f({_tag:`editing`}),children:i.contentState===`loaded`&&i.content!==null?`Edit on this page`:`Write a complete replacement`}),(0,N.jsx)(l,{onClick:n,variant:`secondary`,children:`Ask Relay to edit`}),c._tag===`saved`?(0,N.jsx)(O,{children:`Saved to Confluence.`}):null,e?null:(0,N.jsx)(O,{tone:`secondary`,children:`Current source data and workspace-owner access are required to edit.`}),e&&a===null?(0,N.jsx)(O,{tone:`secondary`,children:`Link this page to a release before editing it in Relay.`}):null]})]})},Wf=({children:e,heading:t,meta:n})=>(0,N.jsxs)(`section`,{className:F.section,children:[(0,N.jsxs)(`header`,{className:F.sectionHeading,children:[(0,N.jsx)(O,{as:`h2`,variant:`section-title`,children:t}),(0,N.jsx)(O,{tone:`secondary`,variant:`meta`,children:n})]}),e]}),Gf=({editor:e,page:t})=>{let[n,r]=(0,M.useState)(!1);return(0,N.jsxs)(`article`,{className:F.document,"data-workspace-confluence-page-detail":!0,children:[(0,N.jsxs)(`section`,{"aria-label":`Document identity`,className:F.folio,children:[(0,N.jsxs)(`div`,{className:F.revision,children:[(0,N.jsx)(`span`,{children:`Revision`}),(0,N.jsx)(`strong`,{children:t.revision})]}),(0,N.jsxs)(`div`,{className:F.folioMeta,children:[(0,N.jsx)(f,{label:t.status,tone:t.status===`Superseded`?`caution`:t.status===`Current`?`positive`:`neutral`}),(0,N.jsxs)(`dl`,{children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Space`}),(0,N.jsx)(`dd`,{children:t.sourceSpaceId})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Updated`}),(0,N.jsx)(`dd`,{children:t.updatedAt===null?`Not synchronized`:(0,N.jsx)(`time`,{dateTime:t.updatedAt.dateTime,children:t.updatedAt.label})})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Created`}),(0,N.jsx)(`dd`,{children:t.createdAt===null?`Not synchronized`:(0,N.jsx)(`time`,{dateTime:t.createdAt.dateTime,children:t.createdAt.label})})]})]})]})]}),(0,N.jsx)(Wf,{heading:`Document`,meta:`Safely converted text; raw provider markup and media stay outside this view`,children:(0,N.jsx)(Uf,{...e,page:t})}),(0,N.jsx)(Wf,{heading:`People`,meta:t.watcherInventoryLabel,children:t.contributors.length===0?(0,N.jsx)(O,{tone:`secondary`,children:`No owner, contributor, or watcher identity was synchronized.`}):(0,N.jsx)(w,{"aria-label":`Page collaborators`,expanded:n,limit:4,onExpandedChange:r,people:t.contributors})}),(0,N.jsxs)(`div`,{className:F.collections,children:[(0,N.jsx)(Wf,{heading:`Revision history`,meta:t.historyInventoryLabel,children:t.versions.length===0?(0,N.jsx)(O,{tone:`secondary`,children:`No revision history was synchronized.`}):(0,N.jsx)(`ol`,{className:F.versions,children:t.versions.map(e=>(0,N.jsxs)(`li`,{children:[(0,N.jsxs)(`strong`,{children:[`v`,e.number]}),(0,N.jsx)(`span`,{children:e.message}),(0,N.jsxs)(`small`,{children:[e.author,` · `,(0,N.jsx)(`time`,{dateTime:e.createdAt.dateTime,children:e.createdAt.label}),e.minorEdit?` · Minor edit`:``]})]},`${String(e.number)}-${e.createdAt.dateTime}`))})}),(0,N.jsx)(Wf,{heading:`Attachments`,meta:t.attachmentInventoryLabel,children:t.attachments.length===0?(0,N.jsx)(O,{tone:`secondary`,children:`No attachment metadata was synchronized.`}):(0,N.jsx)(`ul`,{className:F.attachments,children:t.attachments.map(e=>(0,N.jsxs)(`li`,{children:[(0,N.jsx)(`strong`,{children:e.title}),(0,N.jsxs)(`span`,{children:[e.mediaType,` · `,e.fileSize,` · `,e.version]}),(0,N.jsx)(`small`,{children:`Metadata only · authenticated proxy required`})]},e.id))})})]}),(0,N.jsx)(Wf,{heading:`Runbook evidence`,meta:`Immutable delivery evidence around this page`,children:(0,N.jsxs)(`div`,{className:F.evidenceCount,children:[(0,N.jsx)(`strong`,{children:t.runbookEvidenceCount}),(0,N.jsxs)(`span`,{children:[`evidence item`,t.runbookEvidenceCount===1?``:`s`,` in the current bounded graph`]})]})})]})},Z={document:`_document_1cny9_1`,section:`_section_1cny9_2`,sectionHeading:`_sectionHeading_1cny9_3`,people:`_people_1cny9_4`,conversation:`_conversation_1cny9_5`,history:`_history_1cny9_6`,related:`_related_1cny9_7`,metadata:`_metadata_1cny9_8`,attribution:`_attribution_1cny9_9`,richText:`_richText_1cny9_28`,commentBody:`_commentBody_1cny9_29`,criteria:`_criteria_1cny9_70`,boundaryNotice:`_boundaryNotice_1cny9_75`,collectionNotice:`_collectionNotice_1cny9_76`},Kf=({children:e,heading:t,meta:n})=>(0,N.jsxs)(`section`,{className:Z.section,children:[(0,N.jsxs)(`header`,{className:Z.sectionHeading,children:[(0,N.jsx)(O,{as:`h2`,variant:`section-title`,children:t}),n===void 0?null:(0,N.jsx)(O,{tone:`secondary`,variant:`meta`,children:n})]}),e]}),qf=({empty:e,value:t})=>t===null?(0,N.jsx)(O,{tone:`secondary`,children:e}):(0,N.jsx)(jf,{className:Z.richText,value:t}),Jf=({issue:e})=>(0,N.jsxs)(`article`,{className:Z.document,"data-workspace-issue-detail":!0,children:[e.truncationMessage===null?null:(0,N.jsx)(O,{className:Z.boundaryNotice,tone:`secondary`,children:e.truncationMessage}),(0,N.jsx)(Kf,{heading:`Description`,meta:`What changes and why`,children:(0,N.jsx)(qf,{empty:`No description was synchronized from Jira.`,value:e.description})}),(0,N.jsx)(Kf,{heading:`Acceptance criteria`,meta:`The finish line`,children:(0,N.jsx)(`div`,{className:Z.criteria,children:(0,N.jsx)(qf,{empty:`No acceptance criteria were synchronized.`,value:e.acceptanceCriteria})})}),e.environment===null?null:(0,N.jsx)(Kf,{heading:`Environment`,meta:`Where this applies`,children:(0,N.jsx)(qf,{empty:`No environment was synchronized.`,value:e.environment})}),(0,N.jsx)(Kf,{heading:`People`,meta:`${String(e.collaborators.length)} collaborators`,children:e.collaborators.length===0?(0,N.jsx)(O,{tone:`secondary`,children:`No Jira collaborator was synchronized for this issue.`}):(0,N.jsx)(`ul`,{className:Z.people,children:e.collaborators.map(e=>(0,N.jsx)(`li`,{children:(0,N.jsx)(ee,{person:e})},e.id))})}),(0,N.jsx)(Kf,{heading:`Issue details`,meta:`Synchronized fields`,children:(0,N.jsx)(`dl`,{className:Z.metadata,children:e.metadata.map(e=>(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:e.label}),(0,N.jsx)(`dd`,{children:e.value})]},e.label))})}),e.parent===null&&e.subtasks.length===0?null:(0,N.jsx)(Kf,{heading:`Related Jira work`,meta:`Source hierarchy`,children:(0,N.jsxs)(`div`,{className:Z.related,children:[e.parent===null?null:(0,N.jsxs)(`div`,{children:[(0,N.jsx)(O,{tone:`secondary`,variant:`meta`,children:`Parent`}),e.parent.href===null?(0,N.jsx)(`strong`,{children:e.parent.key}):(0,N.jsx)(`a`,{href:e.parent.href,rel:`noreferrer`,target:`_blank`,children:e.parent.key}),(0,N.jsx)(`span`,{children:e.parent.summary}),(0,N.jsx)(`small`,{children:e.parent.status})]}),e.subtasks.map(e=>(0,N.jsxs)(`div`,{children:[(0,N.jsx)(O,{tone:`secondary`,variant:`meta`,children:`Subtask`}),e.href===null?(0,N.jsx)(`strong`,{children:e.key}):(0,N.jsx)(`a`,{href:e.href,rel:`noreferrer`,target:`_blank`,children:e.key}),(0,N.jsx)(`span`,{children:e.summary}),(0,N.jsx)(`small`,{children:e.status})]},e.key))]})}),(0,N.jsxs)(Kf,{heading:`Comments`,meta:`${String(e.commentCount)} comments`,children:[e.commentBodiesTruncated?(0,N.jsx)(O,{className:Z.collectionNotice,tone:`secondary`,children:`Jira shortened comment bodies to keep this synchronized view bounded.`}):null,e.commentsTruncated?(0,N.jsx)(O,{className:Z.collectionNotice,tone:`secondary`,children:`Only the newest synchronized comments are shown.`}):null,e.comments.length===0?(0,N.jsx)(O,{tone:`secondary`,children:`No comment was synchronized for this issue.`}):(0,N.jsx)(`ol`,{className:Z.conversation,children:e.comments.map(e=>(0,N.jsxs)(`li`,{children:[(0,N.jsxs)(`div`,{className:Z.attribution,children:[(0,N.jsx)(ee,{person:e.author,size:`compact`}),e.time===null?null:(0,N.jsx)(`time`,{children:e.time})]}),(0,N.jsx)(jf,{className:Z.commentBody,value:e.body??`Comment body unavailable.`})]},e.id))})]}),(0,N.jsxs)(Kf,{heading:`History`,meta:`${String(e.historyCount)} changes`,children:[e.historyTruncated?(0,N.jsx)(O,{className:Z.collectionNotice,tone:`secondary`,children:`Only the newest synchronized history is shown.`}):null,e.history.length===0?(0,N.jsx)(O,{tone:`secondary`,children:`No field history was synchronized for this issue.`}):(0,N.jsx)(`ol`,{className:Z.history,children:e.history.map(e=>(0,N.jsxs)(`li`,{children:[(0,N.jsxs)(`div`,{className:Z.attribution,children:[(0,N.jsx)(ee,{person:e.actor,size:`compact`}),e.time===null?null:(0,N.jsx)(`time`,{children:e.time})]}),(0,N.jsx)(`dl`,{children:e.changes.map((e,t)=>(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:e.field}),(0,N.jsx)(`dd`,{children:e.transition})]},`${e.field}:${String(t)}`))})]},e.id))})]})]}),Q={document:`_document_173oo_1`,hero:`_hero_173oo_2`,heroHeading:`_heroHeading_173oo_3`,heroFacts:`_heroFacts_173oo_4`,executionMeta:`_executionMeta_173oo_6`,section:`_section_173oo_7`,sectionHeading:`_sectionHeading_173oo_8`,peopleLanes:`_peopleLanes_173oo_9`,actions:`_actions_173oo_11`,artifacts:`_artifacts_173oo_17`,sourceArtifacts:`_sourceArtifacts_173oo_18`,deliveryCounts:`_deliveryCounts_173oo_21`,summary:`_summary_173oo_64`,stageRail:`_stageRail_173oo_116`,partial:`_partial_173oo_142`,error:`_error_173oo_193`},Yf=({children:e,heading:t,meta:n})=>(0,N.jsxs)(`section`,{className:Q.section,children:[(0,N.jsxs)(`header`,{className:Q.sectionHeading,children:[(0,N.jsx)(O,{as:`h2`,variant:`section-title`,children:t}),(0,N.jsx)(O,{tone:`secondary`,variant:`meta`,children:n})]}),e]}),Xf=({value:e})=>e===null?(0,N.jsx)(N.Fragment,{children:`Not synchronized`}):(0,N.jsx)(`time`,{dateTime:e.dateTime,children:e.label}),Zf=({pipeline:e})=>(0,N.jsxs)(`article`,{className:Q.document,"data-workspace-pipeline-execution-detail":!0,children:[(0,N.jsxs)(`section`,{"aria-label":`Execution identity`,className:Q.hero,children:[(0,N.jsxs)(`div`,{className:Q.heroHeading,children:[(0,N.jsx)(`span`,{children:`Execution`}),(0,N.jsx)(`strong`,{children:e.executionId}),(0,N.jsx)(f,{label:e.status,tone:e.status===`Succeeded`?`positive`:e.status===`Failed`?`critical`:e.status===`Running`?`progress`:e.status===`Stopped`?`caution`:`neutral`})]}),e.statusSummary===null?null:(0,N.jsx)(`p`,{className:Q.summary,children:e.statusSummary}),(0,N.jsxs)(`dl`,{className:Q.heroFacts,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Why`}),(0,N.jsxs)(`dd`,{children:[e.triggerType,(0,N.jsx)(`small`,{children:e.triggerDetail})]})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Revision`}),(0,N.jsx)(`dd`,{children:(0,N.jsx)(`code`,{children:e.triggerRevision})})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Where`}),(0,N.jsx)(`dd`,{children:e.targetEnvironment})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Duration`}),(0,N.jsx)(`dd`,{children:e.duration})]})]}),(0,N.jsxs)(`dl`,{className:Q.executionMeta,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Pipeline`}),(0,N.jsxs)(`dd`,{children:[e.pipelineName,` · `,e.pipelineVersion]})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Started`}),(0,N.jsx)(`dd`,{children:(0,N.jsx)(Xf,{value:e.startedAt})})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Updated`}),(0,N.jsx)(`dd`,{children:(0,N.jsx)(Xf,{value:e.updatedAt})})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Mode`}),(0,N.jsx)(`dd`,{children:e.executionMode})]})]})]}),(0,N.jsx)(E,{className:Q.stageRail,emptyLabel:`No stage detail was synchronized for this execution.`,heading:`Execution path`,stages:e.stages}),(0,N.jsx)(Yf,{heading:`People`,meta:`Provider identities that operated or approved this run`,children:(0,N.jsxs)(`div`,{className:Q.peopleLanes,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`small`,{children:`Operators`}),(0,N.jsx)(`strong`,{children:e.operators.join(` · `)||`Not synchronized`})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`small`,{children:`Approvers`}),(0,N.jsx)(`strong`,{children:e.approvers.join(` · `)||`No approval recorded`})]})]})}),(0,N.jsxs)(Yf,{heading:`Actions`,meta:`${e.actionCountLabel} actions · ${String(e.pagesRead)} bounded pages read`,children:[e.actionsTruncated?(0,N.jsx)(`p`,{className:Q.partial,children:`This is a bounded view. Additional action detail exists in CodePipeline.`}):null,e.actions.length===0?(0,N.jsx)(O,{tone:`secondary`,children:`No action detail was synchronized for this execution.`}):(0,N.jsx)(`ol`,{className:Q.actions,children:e.actions.map(e=>(0,N.jsxs)(`li`,{"data-tone":e.tone,children:[(0,N.jsxs)(`header`,{children:[(0,N.jsxs)(`span`,{children:[(0,N.jsx)(`small`,{children:e.stageName}),(0,N.jsx)(`strong`,{children:e.name})]}),(0,N.jsx)(f,{label:e.status,tone:e.tone})]}),(0,N.jsxs)(`dl`,{children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Provider`}),(0,N.jsx)(`dd`,{children:e.provider})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Duration`}),(0,N.jsx)(`dd`,{children:e.duration})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Actor`}),(0,N.jsx)(`dd`,{children:e.actor??`Not synchronized`})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Region`}),(0,N.jsx)(`dd`,{children:e.region??`Not synchronized`})]})]}),e.summary===null?null:(0,N.jsx)(`p`,{children:e.summary}),e.error===null?null:(0,N.jsx)(`p`,{className:Q.error,children:e.error}),e.artifacts.length===0?null:(0,N.jsx)(`ul`,{className:Q.artifacts,children:e.artifacts.map((e,t)=>(0,N.jsxs)(`li`,{children:[(0,N.jsx)(`span`,{children:e.direction}),(0,N.jsx)(`strong`,{children:e.name}),(0,N.jsx)(`small`,{children:e.accessLabel})]},`${e.direction}-${e.name}-${String(t)}`))})]},e.id))})]}),(0,N.jsx)(Yf,{heading:`Source artifacts`,meta:`Metadata only; content stays behind the authenticated proxy`,children:e.sourceArtifacts.length===0?(0,N.jsx)(O,{tone:`secondary`,children:`No source artifact metadata was synchronized.`}):(0,N.jsx)(`ul`,{className:Q.sourceArtifacts,children:e.sourceArtifacts.map(e=>(0,N.jsxs)(`li`,{children:[(0,N.jsxs)(`span`,{children:[(0,N.jsx)(`strong`,{children:e.name}),(0,N.jsx)(`code`,{children:e.revision})]}),(0,N.jsxs)(`span`,{children:[e.summary??`No summary`,(0,N.jsx)(`small`,{children:e.accessLabel})]})]},`${e.name}-${e.revision}`))})}),(0,N.jsxs)(Yf,{heading:`Delivery evidence`,meta:`Current accepted relationships around this exact run`,children:[(0,N.jsxs)(`dl`,{className:Q.deliveryCounts,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Releases`}),(0,N.jsx)(`dd`,{children:e.releaseCountLabel})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Pull requests`}),(0,N.jsx)(`dd`,{children:e.pullRequestCountLabel})]}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:`Runbooks`}),(0,N.jsx)(`dd`,{children:e.runbookCountLabel})]})]}),(0,N.jsx)(O,{tone:`secondary`,children:`Use the delivery relationships below to open each connected object and inspect its evidence.`})]})]}),Qf=e=>le.check(He(),Ee(),Re(e),Fe(/^[A-Za-z0-9][A-Za-z0-9._:/-]*$/u)),$f=fe([`review`,`security`,`tests`,`explain`]);ue({id:Qf(128),name:le.check(He(),Ee(),Re(200)),kind:$f,provider:Qf(128),harness:Qf(128),model:le.check(He(),Ee(),Re(200)),skillIds:we(Qf(256)).check(Re(24),Oe())}),ue({namespace:Qf(128),subjectId:le.check(He(),Ee(),Re(1024)),revisionId:le.check(He(),Ee(),Re(1024)),baseRevision:Pe(le.check(He(),Ee(),Re(1024))),headRevision:le.check(He(),Ee(),Re(1024))});var ep=e=>JSON.stringify([e.namespace,e.subjectId,e.revisionId,e.baseRevision,e.headRevision]),tp=(e,t)=>ep(e)===ep(t),np=e=>ce(e,`RequestTimedOutApiError`)||ce(e,`RateLimitedApiError`)||ce(e,`ServiceUnavailableApiError`)||me(e)&&e.reason._tag===`TransportError`,rp=e=>ce(e,`UnauthorizedApiError`),ip=m(()=>import(`./pullRequestReviewThreadReplay-D-FuOlQ0.js`),__vite__mapDeps([0,1,2,3,4])),ap=ip.then(({generatedClientPullRequestReviewTransport:e})=>e),op=e=>ce(e,`RateLimitedApiError`),sp=e=>{if(!op(e))return Ne(ke(1));let t=e.retryAt;return t===null?Ne(ke(2)):Ve(se,e=>Ne(je(Math.max(0,Se(t)-Se(e)))))},cp=class extends Ce(`PullRequestReviewRequestAborted`){},lp=e=>{let t=[];for(let n of e.providers){let e=n.models[0];n.health===`available`&&n.capabilities.includes(`pr-review`)&&n.reviewProfile!==void 0&&e!==void 0&&t.push({providerId:n.providerId,model:e,reviewProfile:n.reviewProfile,...n.displayName!==void 0&&{displayName:n.displayName}})}return t},up={enqueue:(...e)=>ap.then(t=>t.enqueue(...e)),cancel:(...e)=>ap.then(t=>t.cancel(...e)),extendBudget:(...e)=>ap.then(t=>t.extendBudget(...e)),load:(...e)=>ap.then(t=>t.load(...e)),loadThread:(...e)=>ap.then(t=>t.loadThread(...e)),previewPublication:(...e)=>ap.then(t=>t.previewPublication(...e)),providers:(...e)=>ap.then(t=>t.providers(...e)),publishSuggestion:(...e)=>ap.then(t=>t.publishSuggestion(...e)),targetSuggestion:(...e)=>ap.then(t=>t.targetSuggestion(...e))},$=(e,t)=>tp(yt(e),yt(t)),dp=(e,t,n,r,i)=>{e.catch(e=>{!t.aborted&&r.current!==null&&$(r.current,n)&&(_e(Me(`Pull-request review history boundary failed`,e)),i(e=>e._tag===`ready`&&$(e,n)?{...e,historyAction:`failed`}:e))})},fp=(e,t,n,r,i,a)=>{!t.aborted&&r.current!==null&&$(r.current,n)&&a(t=>t._tag===`ready`&&$(t,n)?{...t,thread:i.current??e}:t)},pp=(e,t)=>e._tag===`unavailable`||e.subject.baseRevision===t.baseRevision&&e.subject.headRevision===t.headRevision,mp=(e,t,n,r,i,a,o=up)=>{let[s,c]=(0,M.useState)(0),[l,u]=(0,M.useState)({_tag:`idle`}),[d,f]=(0,M.useState)({_tag:`idle`}),p=(0,M.useRef)(null),m=(0,M.useRef)(null),h=(0,M.useRef)(null),g=(0,M.useRef)(null),_=(0,M.useRef)(null),v=(0,M.useRef)(null),y=(0,M.useMemo)(()=>r===null||n===null?null:{baseRevision:t,entityId:e,headRevision:n,sessionKey:r},[t,e,n,r]);(0,M.useLayoutEffect)(()=>{_.current=y},[y]),(0,M.useLayoutEffect)(()=>{v.current=null},[e,r]),(0,M.useEffect)(()=>{if(r===null||n===null){u({_tag:`idle`});return}let s={baseRevision:t,entityId:e,headRevision:n,sessionKey:r},l=v.current??void 0,d=new AbortController,f=(e,t)=>g.current!==null&&$(g.current,s)?!1:(g.current=s,_e(Ae(e,t)),A(sp(t),{signal:d.signal}).then(()=>{d.signal.aborted||c(e=>e+1)},e=>{d.signal.aborted||u({_tag:`failed`,...s})}),!0);return u(e=>e._tag===`ready`&&$(e,s)?e:{_tag:`loading`,...s}),ip.then(({loadPullRequestReviewSnapshot:t})=>t(o,e,i,d.signal,l,v)).then(({catalog:e,catalogNeedsRetry:t,review:n,thread:r})=>{if(!d.signal.aborted){t||(g.current=null);let i=lp(e);u(pp(n,s)?{_tag:`ready`,...s,action:`idle`,historyAction:`idle`,provider:i[0]??null,providerPresets:i,review:n,thread:r}:{_tag:`failed`,...s}),t&&f(`Pull-request review provider catalog unavailable; retrying once`)}},e=>{if(!d.signal.aborted){if(rp(e)){a(r),u({_tag:`failed`,...s});return}np(e)&&f(`Pull-request review snapshot load failed; retrying once`,e)||u({_tag:`failed`,...s})}}),()=>d.abort()},[t,i,e,n,a,s,r,o]),(0,M.useEffect)(()=>{if(l._tag!==`ready`||l.review._tag!==`pending`)return;let e=new AbortController;return A(Ne(`2 seconds`),{signal:e.signal}).then(()=>{e.signal.aborted||c(e=>e+1)},t=>{e.signal.aborted||u({_tag:`failed`,baseRevision:l.baseRevision,entityId:l.entityId,headRevision:l.headRevision,sessionKey:l.sessionKey})}),()=>e.abort()},[l]),(0,M.useEffect)(()=>()=>{p.current?.abort(),m.current?.abort(),h.current?.abort()},[]),(0,M.useEffect)(()=>{p.current?.abort(),p.current=null,m.current?.abort(),m.current=null,h.current?.abort(),h.current=null,f({_tag:`idle`})},[e,r]),(0,M.useLayoutEffect)(()=>{m.current?.abort(),m.current=null,f(e=>e._tag===`publishing`?e:{_tag:`idle`})},[t,n]);let b=(0,M.useCallback)((e,t)=>{let n=v.current??void 0;ip.then(({refreshPullRequestReviewThread:r})=>r(o,e.entityId,t,n,v)).then(n=>{fp(n,t,e,_,v,u)},()=>void 0)},[o]),x=(0,M.useCallback)(()=>{if(l._tag!==`ready`||l.historyAction===`loading`||l.thread===void 0||!l.thread.hasEarlier)return;let e=l,t=l.thread;p.current?.abort();let n=new AbortController;p.current=n,u({...e,historyAction:`loading`}),dp(ip.then(({loadEarlierPullRequestReviewThreadIntoState:r})=>r(o,e,t,n.signal,_,v,a,u)),n.signal,e,_,u)},[a,l,o]),S=(0,M.useCallback)((t,n)=>{if(l._tag!==`ready`||l.review._tag===`unavailable`)return Promise.resolve();let r=n===void 0?l.provider:l.providerPresets?.find(e=>e.providerId===n)??null;if(r===null)return Promise.resolve();let i=l;m.current?.abort();let s=new AbortController;return m.current=s,u({...i,action:`starting`}),o.enqueue(e,r,t,s.signal).then(e=>{if(s.signal.aborted)return Promise.reject(new cp);u(t=>t._tag===`ready`&&$(t,i)&&pp(e,i)?{...t,action:`idle`,review:e}:t._tag===`ready`&&$(t,i)?{_tag:`failed`,baseRevision:i.baseRevision,entityId:i.entityId,headRevision:i.headRevision,sessionKey:i.sessionKey}:t)},e=>s.signal.aborted?Promise.reject(new cp):(rp(e)&&a(i.sessionKey),u(e=>e._tag===`ready`&&$(e,i)?{...e,action:`failed`}:e),Promise.reject(e)))},[e,a,l,o]),C=(0,M.useCallback)((e,t)=>{S(e,t).catch(e=>{ce(e,`PullRequestReviewRequestAborted`)||_e(Me(`Pull-request review enqueue failed`,e))})},[S]),w=(0,M.useCallback)(e=>{if(l._tag!==`ready`)return;let t=l.review;if(t._tag!==`pending`)return;let n=l;m.current?.abort();let r=new AbortController;m.current=r,e(t.jobId,r.signal).then(e=>{r.signal.aborted||u(t=>t._tag===`ready`&&$(t,n)&&pp(e,n)?{...t,review:e}:t)},e=>{r.signal.aborted||rp(e)&&a(n.sessionKey)})},[a,l]),T=(0,M.useCallback)(t=>{if(l._tag!==`ready`||l.review._tag!==`completed`||l.review.jobId!==t.jobId||!l.review.report.suggestions.some(({suggestionId:e})=>e===t.suggestionId))return;let n=l;m.current?.abort();let r=new AbortController;m.current=r,f({_tag:`previewing`,selection:t}),o.previewPublication(e,t,r.signal).then(e=>{r.signal.aborted||f(e.subject.headRevision===n.headRevision?{_tag:`preview`,preview:e}:{_tag:`failed`,preview:null,selection:t})},e=>{r.signal.aborted||(rp(e)&&a(n.sessionKey),f({_tag:`failed`,preview:null,selection:t}))})},[e,a,l,o]),E=(0,M.useCallback)(t=>{if(l._tag!==`ready`)return;let n=d._tag===`preview`||d._tag===`failed`?d.preview:null;if(n===null)return;let r=l,i={jobId:n.jobId,suggestionId:n.suggestionId,revisionId:n.revisionId};h.current?.abort();let s=new AbortController;h.current=s,f({_tag:`publishing`,preview:n}),o.publishSuggestion(e,i,t,n.authorityBinding,s.signal).then(e=>{if(s.signal.aborted)return;let t=e.suggestionRevision.reviewedHead===n.suggestionRevision.reviewedHead;t&&u(t=>t._tag===`ready`&&t.review._tag===`completed`&&t.review.jobId===e.jobId?{...t,review:{...t.review,report:{...t.review.report,suggestions:t.review.report.suggestions.map(t=>t.suggestionId===e.suggestionId?{...t,state:`published`}:t)}}}:t),f(t?{_tag:`published`,headSuperseded:_.current===null||e.subject.baseRevision!==_.current.baseRevision||e.subject.headRevision!==_.current.headRevision,preview:n,publication:e}:{_tag:`receipt-conflict`,preview:n,publication:e});let i=_.current;i!==null&&i.entityId===r.entityId&&i.sessionKey===r.sessionKey&&b(i,s.signal)},e=>{s.signal.aborted||(rp(e)&&a(r.sessionKey),f({_tag:`failed`,preview:n,selection:i}))})},[e,a,d,b,l,o]),ee=(0,M.useCallback)(t=>{if(l._tag!==`ready`||l.review._tag!==`completed`||l.review.jobId!==t.jobId||l.provider===null||!l.review.report.suggestions.some(({suggestionId:e})=>e===t.suggestionId)||o.targetSuggestion===void 0)return;let n=l;m.current?.abort();let r=new AbortController;m.current=r,u({...n,action:`starting`}),o.targetSuggestion(e,t,l.provider,r.signal).then(e=>{r.signal.aborted||u(t=>t._tag===`ready`&&$(t,n)&&pp(e,n)?{...t,action:`idle`,review:e}:t)},e=>{r.signal.aborted||(rp(e)&&a(n.sessionKey),u(e=>e._tag===`ready`&&$(e,n)?{...e,action:`failed`}:e))})},[e,a,l,o]),D=y===null?{_tag:`idle`}:l._tag!==`idle`&&$(l,y)?l:{_tag:`loading`,...y};return{cancel:(0,M.useCallback)(()=>{o.cancel!==void 0&&w((t,n)=>o.cancel(e,t,n))},[e,w,o]),cancelPublication:(0,M.useCallback)(()=>{m.current?.abort(),m.current=null,h.current?.abort(),h.current=null,f({_tag:`idle`})},[]),extendBudget:(0,M.useCallback)(()=>{o.extendBudget!==void 0&&w((t,n)=>o.extendBudget(e,t,n))},[e,w,o]),loadEarlier:x,previewPublication:T,publication:d,publishSuggestion:E,targetSuggestion:ee,retry:(0,M.useCallback)(()=>{g.current=null,c(e=>e+1)},[]),start:C,startAwaitable:S,state:D}},hp=e({WorkspaceEntityRoute:()=>Fp,WorkspaceEntityView:()=>Np,confluenceEditHref:()=>xp}),gp=(0,M.lazy)(()=>m(()=>import(`./WorkspacePullRequestDetails-SexYOZUB.js`).then(e=>({default:e.WorkspacePullRequestDetails})),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14,15,16,1,2,3,17]))),_p=(e,t)=>{let n=e.split(/[?#]/u,1)[0]??``;return n===Qe(t)?`Back to items`:n.includes(`/releases/`)?`Back to release`:n.endsWith(`/work`)?`Back to active work`:n.endsWith(`/timeline`)?`Back to timeline`:`Back to workspace`},vp=({action:e,description:t,title:n,tone:r=`neutral`})=>{let i=(0,M.useRef)(null);return(0,M.useEffect)(()=>i.current?.focus(),[]),(0,N.jsx)(`section`,{className:P.state,"data-workspace-entity-state":r,ref:i,tabIndex:-1,children:(0,N.jsx)(d,{action:e,description:t,title:n,tone:r})})},yp=()=>(0,N.jsxs)(`section`,{"aria-label":`Loading canonical entity`,className:P.loading,children:[(0,N.jsx)(c,{decorative:!1,height:`12rem`,label:`Loading canonical entity`,variant:`block`}),(0,N.jsxs)(`div`,{className:P.loadingColumns,children:[(0,N.jsx)(c,{height:`20rem`,variant:`block`}),(0,N.jsx)(c,{height:`20rem`,variant:`block`})]})]}),bp=({action:e})=>e.href===null?(0,N.jsx)(l,{disabled:!0,size:`principal`,stretch:!0,variant:`primary`,children:e.label}):e.external?(0,N.jsx)(`a`,{className:P.principalAction,href:e.href,rel:`noreferrer`,target:`_blank`,children:e.label}):(0,N.jsx)(_,{className:P.principalAction,to:e.href,children:e.label}),xp=(e,t)=>{if(e===null)return null;let n=URL.parse(e);if(n===null||n.protocol!==`https:`)return null;let r=/^\/wiki\/spaces\/([^/]+)\/pages\/([^/]+)(?:\/|$)/u.exec(n.pathname);return r?.[1]===void 0||r[2]!==encodeURIComponent(t)?null:(n.pathname=`/wiki/spaces/${r[1]}/pages/edit-v2/${encodeURIComponent(t)}`,n.search=``,n.hash=``,n.href)},Sp=({onConfluenceSynchronize:e,presentation:t,synchronizationState:n})=>{let r=t.confluencePage===null?null:xp(t.primaryAction.href,t.displayKey);return(0,N.jsxs)(`div`,{className:P.entityActions,children:[(0,N.jsx)(bp,{action:t.primaryAction}),r===null?null:(0,N.jsx)(`a`,{className:P.secondaryAction,href:r,rel:`noreferrer`,target:`_blank`,children:`Edit in Confluence`}),t.confluencePage===null||n===null?null:(0,N.jsxs)(`div`,{className:P.pageSynchronization,children:[(0,N.jsx)(l,{disabled:n===`syncing`,loading:n===`syncing`,onClick:e,variant:`secondary`,children:`Sync now`}),(0,N.jsx)(O,{tone:`secondary`,variant:`meta`,children:n===`failed`?`Sync failed. Try again.`:n===`synchronized`?`Up to date · live sync every 15 seconds while visible`:`Live sync every 15 seconds while visible`})]})]})},Cp=({presentation:e})=>(0,N.jsxs)(`section`,{"aria-labelledby":`workspace-entity-path`,className:P.deliveryPath,children:[(0,N.jsxs)(`div`,{className:P.sectionHeading,children:[(0,N.jsx)(O,{as:`h2`,id:`workspace-entity-path`,variant:`section-title`,children:`Delivery path`}),(0,N.jsx)(O,{tone:`secondary`,variant:`meta`,children:`Where this work lives`})]}),(0,N.jsxs)(`div`,{className:P.pathRail,children:[(0,N.jsxs)(`div`,{className:P.pathNode,children:[(0,N.jsx)(ne,{service:e.service,size:`compact`}),(0,N.jsxs)(`span`,{children:[(0,N.jsx)(`strong`,{children:e.serviceName}),(0,N.jsx)(`code`,{children:e.displayKey})]})]}),e.releases.length===0?(0,N.jsx)(`div`,{className:P.pathEmpty,children:`No release membership yet`}):(0,N.jsx)(`ol`,{className:P.releasePath,children:e.releases.map(e=>(0,N.jsx)(`li`,{children:(0,N.jsx)(_,{to:e.href,children:e.label})},e.id))})]}),(0,N.jsx)(O,{tone:`secondary`,children:e.contentSummary})]}),wp=({presentation:e})=>(0,N.jsxs)(`section`,{"aria-labelledby":`workspace-entity-facts`,className:P.facts,children:[(0,N.jsx)(O,{as:`h2`,id:`workspace-entity-facts`,variant:`card-title`,children:`At a glance`}),(0,N.jsx)(`dl`,{children:e.facts.map(e=>(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`dt`,{children:e.label}),(0,N.jsx)(`dd`,{children:e.value})]},e.label))})]}),Tp=({presentation:e})=>(0,N.jsxs)(`section`,{"aria-labelledby":`workspace-entity-evidence`,className:P.evidence,children:[(0,N.jsx)(O,{as:`h2`,id:`workspace-entity-evidence`,variant:`card-title`,children:`Provenance`}),(0,N.jsx)(T,{freshness:e.evidence.freshness,freshnessDateTime:e.evidence.freshnessDateTime,freshnessTime:e.evidence.freshnessTime,reference:e.evidence.reference,service:e.service}),(0,N.jsxs)(O,{tone:`secondary`,variant:`meta`,children:[e.evidence.itemCount,` evidence item`,e.evidence.itemCount===1?``:`s`,` ·`,` `,e.evidence.claimCount,` claim`,e.evidence.claimCount===1?``:`s`]})]}),Ep=({presentation:e})=>{let[t,n]=(0,M.useState)(e.collaborators.expandedCategories);return(0,N.jsx)(`div`,{className:P.workingCircle,children:(0,N.jsx)(b,{approvers:e.collaborators.approvers,authors:e.collaborators.authors,emptyLabel:e.collaborators.emptyLabel,expandedCategories:t,heading:`Working circle`,limit:3,onCategoryExpandedChange:(e,t)=>{n(n=>t?[...new Set([...n,e])]:n.filter(t=>t!==e))},operators:e.collaborators.operators,owners:e.collaborators.owners,reviewers:e.collaborators.reviewers,size:`compact`})})},Dp=({presentation:e})=>e.relationships.length<=4?(0,N.jsx)(C,{emptyLabel:e.relationshipEmptyLabel,heading:`Delivery relationships`,relationships:e.relationships}):(0,N.jsx)(x,{emptyLabel:e.relationshipEmptyLabel,heading:`Delivery relationships`,relationships:e.relationships}),Op=({presentation:e})=>(0,N.jsxs)(`section`,{"aria-labelledby":`workspace-entity-activity`,className:P.activity,children:[(0,N.jsxs)(`div`,{className:P.sectionHeading,children:[(0,N.jsx)(O,{as:`h2`,id:`workspace-entity-activity`,variant:`section-title`,children:`Activity`}),(0,N.jsx)(O,{tone:`secondary`,variant:`meta`,children:`Quiet, attributable history`})]}),e.activity.length===0?(0,N.jsx)(O,{tone:`secondary`,children:e.activityEmptyLabel}):(0,N.jsx)(`ol`,{className:P.timeline,children:e.activity.map((t,n)=>(0,N.jsx)(te,{continued:n<e.activity.length-1,event:t},t.id))})]}),kp=e=>{switch(e.reason){case`refreshing`:return`Refreshing from the connected service. The last complete inspection remains visible.`;case`refresh-failed`:return`The latest refresh failed. The last complete inspection remains visible and may be out of date.`;case`source-stale`:return`The connected service reported stale source data. Confirm current state before acting.`}},Ap=({clockifyActionCanApprove:e,clockifyActionCanCorrect:t,clockifyActionState:n,clockifyActionSubmit:r,confluenceEditor:i,onSessionExpired:a,presentation:o,retry:s,reviewCanEnqueue:u,reviewCancel:f,reviewExtendBudget:p,reviewLoadEarlier:m,reviewPublication:h,reviewPublicationCancel:g,reviewPublicationPreview:_,reviewRetry:v,reviewStart:y,reviewState:b,reviewSuggestionPublish:x,reviewSuggestionRevisionTransport:S,reviewTargetSuggestion:C,sessionKey:w,stale:T})=>(0,N.jsxs)(`div`,{className:P.content,children:[T===null?null:(0,N.jsx)(d,{action:T.reason===`refreshing`?void 0:(0,N.jsx)(l,{onClick:s,children:`Retry refresh`}),announce:T.reason===`refresh-failed`?`polite`:`off`,description:kp(T),title:T.reason===`refreshing`?`Refreshing source`:`Showing retained source data`,tone:`caution`}),o.partialMessages.map(e=>(0,N.jsx)(d,{description:e,title:`Partial canonical view`,tone:`caution`},e)),o.clockifyTimeEntry===null?null:(0,N.jsx)(Dn,{canApprove:e,canCorrect:t,onSubmit:r,submission:n,timeEntry:o.clockifyTimeEntry}),o.issue===null?null:(0,N.jsx)(Jf,{issue:o.issue}),o.confluencePage===null?null:(0,N.jsx)(Gf,{editor:i,page:o.confluencePage}),o.pipelineExecution===null?null:(0,N.jsx)(Zf,{pipeline:o.pipelineExecution}),o.pullRequest===null?null:(0,N.jsx)(M.Suspense,{fallback:(0,N.jsx)(c,{decorative:!1,height:`20rem`,label:`Loading pull request`,variant:`block`}),children:(0,N.jsx)(gp,{approvers:o.collaborators.approvers,onSessionExpired:a,onReviewCancel:f,onReviewExtendBudget:p,onReviewLoadEarlier:m,onReviewPublicationCancel:g,onReviewPublicationPreview:_,onReviewRetry:v,onReviewSuggestionPublish:x,onReviewTargetSuggestion:C,onReviewStart:y,pullRequest:o.pullRequest,reviewCanEnqueue:u,reviewPublication:h,...S===void 0?{}:{reviewSuggestionRevisionTransport:S},reviewState:b,reviewers:o.collaborators.reviewers,sessionKey:w})}),(0,N.jsx)(Cp,{presentation:o})]}),jp=e=>void 0,Mp=()=>void 0,Np=({clockifyActionCanApprove:e=!1,clockifyActionCanCorrect:t=!1,clockifyActionState:n={_tag:`idle`},clockifyActionSubmit:r=Mp,confluenceCanEdit:i=!1,confluenceSynchronizationState:a=null,onAskAgent:o,onConfluenceSaved:s,onConfluenceSynchronize:c=Mp,onSessionExpired:u=jp,originHref:d,originLabel:f,originState:p,retry:m,reviewCanEnqueue:h=!1,reviewCancel:g=Mp,reviewExtendBudget:y=Mp,reviewLoadEarlier:b=Mp,reviewPublication:x={_tag:`idle`},reviewPublicationCancel:C=Mp,reviewPublicationPreview:w=Mp,reviewRetry:T=Mp,reviewStart:E=Mp,reviewState:ee={_tag:`idle`},reviewSuggestionPublish:te=Mp,reviewSuggestionRevisionTransport:ne,reviewTargetSuggestion:O=Mp,sessionKey:re=null,state:k,workspaceId:ie})=>{let A=(0,M.useRef)(null),ae=k._tag===`ready`||k._tag===`stale`?k.inspection.entity.projection.entityId:k._tag;if((0,M.useEffect)(()=>A.current?.focus(),[ae]),k._tag===`idle`)return(0,N.jsx)(vp,{action:(0,N.jsx)(_,{state:p,to:d,children:f}),description:`A readable workspace session is required before this object can be loaded.`,title:`Entity unavailable`});if(k._tag===`loading`)return(0,N.jsx)(yp,{});if(k._tag===`not-found`)return(0,N.jsx)(vp,{action:(0,N.jsx)(_,{state:p,to:d,children:f}),description:`This object is not in this workspace. It may have been deleted, disconnected, or the address may be wrong.`,title:`Object not found`});if(k._tag===`failed`)return(0,N.jsx)(vp,{action:(0,N.jsx)(l,{onClick:m,children:`Retry entity`}),description:`The canonical object could not be loaded. Your current workspace location is preserved.`,title:`Could not load object`,tone:`critical`});let j=wn(ie,k.inspection),oe=k._tag===`ready`&&k.inspection.isSourceCurrent&&k.inspection.sourceActionsAvailable,se=s??m;return(0,N.jsx)(v,{component:gt,children:(0,N.jsx)(D,{actions:(0,N.jsx)(Sp,{onConfluenceSynchronize:c,presentation:j,synchronizationState:a}),activity:(0,N.jsx)(Op,{presentation:j}),agentEntry:(0,N.jsx)(S,{actionLabel:j.confluencePage===null?`Ask about this object`:`Draft with Relay`,agentName:`Relay`,context:j.agentContext,onClick:o}),collaborators:(0,N.jsx)(Ep,{presentation:j},k.inspection.entity.projection.entityId),className:P.shell,content:(0,N.jsx)(Ap,{clockifyActionCanApprove:oe&&e,clockifyActionCanCorrect:oe&&t,clockifyActionState:n,clockifyActionSubmit:r,confluenceEditor:{canEdit:i&&k._tag===`ready`&&k.inspection.isSourceCurrent&&k.inspection.sourceActionsAvailable,entityId:k.inspection.entity.projection.entityId,onAskAgent:o,onSaved:se,releaseId:k.inspection.entity.canonicalReleaseId,title:j.title},onSessionExpired:u,presentation:j,reviewCanEnqueue:h,reviewCancel:g,reviewExtendBudget:y,reviewPublication:x,reviewPublicationCancel:C,reviewLoadEarlier:b,reviewPublicationPreview:w,reviewRetry:T,...ne===void 0?{}:{reviewSuggestionRevisionTransport:ne},reviewSuggestionPublish:te,reviewTargetSuggestion:O,reviewStart:E,reviewState:ee,retry:m,sessionKey:re,stale:k._tag===`stale`?k:null}),"data-service":j.service,"data-workspace-entity-id":k.inspection.entity.projection.entityId,evidence:(0,N.jsx)(Tp,{presentation:j}),facts:(0,N.jsx)(wp,{presentation:j}),freshness:j.freshness,freshnessDateTime:j.freshnessDateTime,freshnessTime:j.freshnessTime,navigation:(0,N.jsx)(_,{className:P.back,state:p,to:d,children:f}),reason:`${j.displayKey} is ${j.verdict.toLocaleLowerCase(`en-US`)} in ${j.serviceName}.`,ref:A,relationships:(0,N.jsx)(Dp,{presentation:j}),service:j.service,tabIndex:-1,title:j.title,tone:j.tone,verdict:j.verdict})})},Pp=({entityId:e,workspaceId:t})=>{let n=a(),r=h(),i=o(),c=s(),l=n.controller.state._tag===`ready`?n.controller.state.portfolio.generatedAt:`pending`,u=y(r.state),d=qe(t,e,l,u,r.invalidateSession),f=(d.state._tag===`ready`||d.state._tag===`stale`)&&d.state.inspection.entity.projection.details._tag===`page`?d.state.inspection.source.pluginConnectionId:null,p=f!==null&&(d.state._tag===`ready`||d.state._tag===`stale`)&&d.state.inspection.sourceSynchronizationAvailable&&r.state._tag===`authenticated`&&r.state.session.permission===`workspace-owner`,m=f!==null&&(d.state._tag===`ready`||d.state._tag===`stale`)?Se(d.state.inspection.source.synchronizedAt):null,g=(0,M.useCallback)(async t=>{if(f===null)return null;let n=await Je.load(e,t);return n.entity.projection.entityId===e&&n.source.pluginConnectionId===f?Se(n.source.synchronizedAt):null},[f,e]),_=Zn({enabled:p,onSessionExpired:r.invalidateSession,onSynchronized:d.retry,pluginConnectionId:f,readSynchronizationRevision:g,sessionKey:u,synchronizationRevision:m}),v=kn(e,u,r.invalidateSession,d.retry),b=r.state._tag===`authenticated`&&r.state.session.permission===`workspace-owner`,x=(d.state._tag===`ready`||d.state._tag===`stale`)&&d.state.inspection.entity.projection.details._tag===`pull-request`?{baseRevision:d.state.inspection.entity.projection.details.baseRevision??null,headRevision:d.state.inspection.entity.projection.details.headRevision}:null,S=mp(e,x?.baseRevision??null,x?.headRevision??null,u,b,r.invalidateSession),C=et(i.state,t,e),w=tt(C.origin),T=d.state._tag===`ready`||d.state._tag===`stale`?d.state.inspection.entity:{canonicalReleaseId:null,releaseIds:[],releaseMembershipsTruncated:!1},E=new Set(n.controller.state._tag===`ready`?n.controller.state.portfolio.releases.map(({id:e})=>e):[]),ee=$e(C.origin,t,i,T,E);return(0,N.jsxs)(N.Fragment,{children:[(d.state._tag===`ready`||d.state._tag===`stale`)&&d.state.inspection.entity.projection.details._tag===`pull-request`?(0,N.jsx)(Tt,{canEnqueue:b,entityId:e,inspection:d.state.inspection,reviewState:S.state,startReview:S.startAwaitable,workspaceId:t}):null,(0,N.jsx)(Np,{clockifyActionCanApprove:r.state._tag===`authenticated`&&(r.state.session.permission===`workspace-owner`||r.state.session.permission===`workspace-approver`),clockifyActionCanCorrect:r.state._tag===`authenticated`&&r.state.session.permission===`workspace-owner`,clockifyActionState:v.state,clockifyActionSubmit:v.submit,confluenceCanEdit:r.state._tag===`authenticated`&&r.state.session.permission===`workspace-owner`,confluenceSynchronizationState:p?_.state:null,onAskAgent:()=>c(ee,{state:i.state}),onConfluenceSaved:_.synchronizeAfterMutation,onConfluenceSynchronize:_.synchronizeNow,onSessionExpired:r.invalidateSession,originHref:w,originLabel:_p(w,t),originState:C.origin.state,retry:d.retry,reviewCanEnqueue:b,reviewCancel:S.cancel,reviewExtendBudget:S.extendBudget,reviewPublication:S.publication,reviewPublicationCancel:S.cancelPublication,reviewLoadEarlier:S.loadEarlier,reviewPublicationPreview:S.previewPublication,reviewRetry:S.retry,reviewSuggestionPublish:S.publishSuggestion,reviewTargetSuggestion:S.targetSuggestion,reviewStart:S.start,reviewState:S.state,state:d.state,sessionKey:u,workspaceId:t})]})},Fp=()=>{let e=a(),t=i(),n=nt(t.entityId);return n===null?(0,N.jsx)(vp,{action:(0,N.jsx)(_,{to:Qe(e.workspaceId),children:`Back to items`}),description:`The object address is not a canonical entity identifier.`,title:`Object not found`}):(0,N.jsx)(Pp,{entityId:n,workspaceId:e.workspaceId})};export{Fp as WorkspaceEntityRoute,Np as WorkspaceEntityView,vt as a,xp as confluenceEditHref,jf as i,np as n,rp as r,hp as t};
|
|
42
|
+
//# sourceMappingURL=WorkspaceEntityRoute-CfupCFGN.js.map
|