@futdevpro/ccap 1.1.3549 → 1.1.3559
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/cli/build/_collections/npm-global/npm-global-paths.interface.d.ts +28 -0
- package/cli/build/_collections/npm-global/npm-global-paths.interface.d.ts.map +1 -0
- package/cli/build/_collections/npm-global/npm-global-paths.interface.js +3 -0
- package/cli/build/_collections/npm-global/npm-global-paths.interface.js.map +1 -0
- package/cli/build/_collections/npm-global/npm-global-paths.util.d.ts +30 -0
- package/cli/build/_collections/npm-global/npm-global-paths.util.d.ts.map +1 -0
- package/cli/build/_collections/npm-global/npm-global-paths.util.js +124 -0
- package/cli/build/_collections/npm-global/npm-global-paths.util.js.map +1 -0
- package/cli/build/_collections/npm-global/npm-global-paths.util.spec.d.ts +8 -0
- package/cli/build/_collections/npm-global/npm-global-paths.util.spec.d.ts.map +1 -0
- package/cli/build/_collections/npm-global/npm-global-paths.util.spec.js +107 -0
- package/cli/build/_collections/npm-global/npm-global-paths.util.spec.js.map +1 -0
- package/cli/build/_collections/staging/staging-cleanup.util.d.ts +5 -2
- package/cli/build/_collections/staging/staging-cleanup.util.d.ts.map +1 -1
- package/cli/build/_collections/staging/staging-cleanup.util.js +10 -18
- package/cli/build/_collections/staging/staging-cleanup.util.js.map +1 -1
- package/cli/build/_collections/update/update-verify-install.util.d.ts +13 -17
- package/cli/build/_collections/update/update-verify-install.util.d.ts.map +1 -1
- package/cli/build/_collections/update/update-verify-install.util.js +55 -83
- package/cli/build/_collections/update/update-verify-install.util.js.map +1 -1
- package/cli/build/_collections/update/update-verify-install.util.spec.d.ts +3 -0
- package/cli/build/_collections/update/update-verify-install.util.spec.d.ts.map +1 -1
- package/cli/build/_collections/update/update-verify-install.util.spec.js +82 -22
- package/cli/build/_collections/update/update-verify-install.util.spec.js.map +1 -1
- package/cli/build/_collections/update/update-version-check.util.d.ts +6 -4
- package/cli/build/_collections/update/update-version-check.util.d.ts.map +1 -1
- package/cli/build/_collections/update/update-version-check.util.js +10 -20
- package/cli/build/_collections/update/update-version-check.util.js.map +1 -1
- package/client-dist/{agent-instances.module-DWR2F2SX.js → agent-instances.module-4E43DESK.js} +2 -2
- package/client-dist/{ca.module-SHO3XHJY.js → ca.module-WDWUASEL.js} +2 -2
- package/client-dist/{cc-usage-dashboard.component-K6ZYT3E5.js → cc-usage-dashboard.component-5DTKDKKU.js} +2 -2
- package/client-dist/{cc.module-MXID2Q2C.js → cc.module-AEH4WTXM.js} +2 -2
- package/client-dist/{chunk-JXPPQJAC.js → chunk-2I4T7CSV.js} +2 -2
- package/client-dist/{chunk-ZCG3AKDF.js → chunk-2Y5C3JIA.js} +2 -2
- package/client-dist/{chunk-ZDAW457Z.js → chunk-336CEF7R.js} +2 -2
- package/client-dist/{chunk-2MMVFGZV.js → chunk-34Z64SWV.js} +2 -2
- package/client-dist/{chunk-JOREJJVW.js → chunk-4J5TIRRI.js} +2 -2
- package/client-dist/{chunk-BJOPT3GE.js → chunk-5ELMVFNX.js} +2 -2
- package/client-dist/{chunk-4N5O2KUM.js → chunk-6D3QWRFP.js} +2 -2
- package/client-dist/{chunk-FRQKNRI2.js → chunk-6KVBLG4X.js} +2 -2
- package/client-dist/{chunk-CVBKWPQV.js → chunk-7D5EZFAC.js} +2 -2
- package/client-dist/{chunk-UOGFFZKL.js → chunk-7QMHXBHZ.js} +2 -2
- package/client-dist/{chunk-7Z6ITKVN.js → chunk-7QZI4BAF.js} +2 -2
- package/client-dist/{chunk-7Z6ITKVN.js.map → chunk-7QZI4BAF.js.map} +1 -1
- package/client-dist/{chunk-HCAALFTE.js → chunk-AM6555Z6.js} +2 -2
- package/client-dist/{chunk-BASFCAFS.js → chunk-BG72Q3G7.js} +2 -2
- package/client-dist/{chunk-E472WLLR.js → chunk-BHHACAVA.js} +2 -2
- package/client-dist/{chunk-NDIG65MB.js → chunk-DKHDZZGG.js} +2 -2
- package/client-dist/{chunk-XLXWUHKZ.js → chunk-DVBEU2JO.js} +2 -2
- package/client-dist/{chunk-WSH7NBCG.js → chunk-DW7ER3WM.js} +2 -2
- package/client-dist/{chunk-ETSJMBGY.js → chunk-E2RLHTDB.js} +2 -2
- package/client-dist/{chunk-VCNC5IA2.js → chunk-E4ZMUP7Q.js} +2 -2
- package/client-dist/{chunk-QHWX453Q.js → chunk-EGHMAEA4.js} +2 -2
- package/client-dist/{chunk-STLSPPII.js → chunk-F4BODVLI.js} +2 -2
- package/client-dist/{chunk-BG3WIGFL.js → chunk-F4UUXOQ5.js} +2 -2
- package/client-dist/chunk-FTVVYL3E.js +73 -0
- package/client-dist/chunk-FTVVYL3E.js.map +1 -0
- package/client-dist/{chunk-L6P3RBO6.js → chunk-GA3OCDMZ.js} +2 -2
- package/client-dist/{chunk-C3CWZ3ET.js → chunk-GMUM7KOR.js} +2 -2
- package/client-dist/{chunk-SFXGSRSX.js → chunk-GN6TW6L6.js} +2 -2
- package/client-dist/{chunk-PR7IKYCO.js → chunk-GTWI2CYL.js} +2 -2
- package/client-dist/{chunk-EZWBZ7ZX.js → chunk-GWIJGQVP.js} +2 -2
- package/client-dist/{chunk-K6OTKJ3M.js → chunk-HL4BUFUG.js} +2 -2
- package/client-dist/{chunk-HEG437UD.js → chunk-HOJDFEAR.js} +2 -2
- package/client-dist/{chunk-GN7NCHYV.js → chunk-IXIZ3S6C.js} +2 -2
- package/client-dist/{chunk-A4R2BIZ7.js → chunk-LK2VWFED.js} +2 -2
- package/client-dist/{chunk-AXJ7Z7SO.js → chunk-N2OBEUFB.js} +2 -2
- package/client-dist/{chunk-DHLEX5YE.js → chunk-NAQ7IUO2.js} +2 -2
- package/client-dist/{chunk-4BXQQ6NA.js → chunk-O3APUQM3.js} +2 -2
- package/client-dist/{chunk-7KBLHYTF.js → chunk-OIGUQ6GP.js} +2 -2
- package/client-dist/{chunk-EJCBQGKR.js → chunk-OUHESR6G.js} +2 -2
- package/client-dist/{chunk-274CFFZL.js → chunk-PP3NTBZB.js} +2 -2
- package/client-dist/{chunk-YBBIR62C.js → chunk-PWKBPUVS.js} +2 -2
- package/client-dist/{chunk-KATO6ESP.js → chunk-QE6YWEWV.js} +2 -2
- package/client-dist/{chunk-2AWEOJRY.js → chunk-QQV5KQ55.js} +2 -2
- package/client-dist/{chunk-DJS45ECM.js → chunk-RG2GFMRP.js} +2 -2
- package/client-dist/{chunk-IRODWFVY.js → chunk-S722EEQG.js} +2 -2
- package/client-dist/{chunk-7NTV4TP4.js → chunk-SNV4ASIX.js} +2 -2
- package/client-dist/{chunk-56PZOPA6.js → chunk-SYGNSXIF.js} +2 -2
- package/client-dist/{chunk-2G3K2OS3.js → chunk-UAOMYFV6.js} +2 -2
- package/client-dist/{chunk-VHMXOPKN.js → chunk-UPF3ASSA.js} +2 -2
- package/client-dist/{chunk-XDNBCTHN.js → chunk-UVX6ENPG.js} +2 -2
- package/client-dist/{chunk-5PJXCLKA.js → chunk-VWNDIR3A.js} +2 -2
- package/client-dist/{chunk-TCYNH7IT.js → chunk-W6MDJZQP.js} +2 -2
- package/client-dist/{chunk-STFHGBA6.js → chunk-WAIL47QS.js} +2 -2
- package/client-dist/{chunk-D4UUQLG6.js → chunk-WM66SXLY.js} +2 -2
- package/client-dist/{chunk-AYMRJ7AZ.js → chunk-WMHLBVBK.js} +2 -2
- package/client-dist/{chunk-GQDZYTG3.js → chunk-WSHSVAW6.js} +2 -2
- package/client-dist/{chunk-W2NSBTZM.js → chunk-YUXZ7HNQ.js} +2 -2
- package/client-dist/{chunk-7JOPB46E.js → chunk-ZMTECVST.js} +2 -2
- package/client-dist/{chunk-C2XOGAVB.js → chunk-ZSOM7HJU.js} +2 -2
- package/client-dist/{consultant.module-6AZVLCHA.js → consultant.module-X7WZCEYO.js} +2 -2
- package/client-dist/{crd.module-MECHHWEK.js → crd.module-WOHMVAA3.js} +2 -2
- package/client-dist/{dashboard.module-KWAFBB3L.js → dashboard.module-NNPCINK6.js} +2 -2
- package/client-dist/{do.module-RHPM7CJC.js → do.module-3SLIIGH5.js} +2 -2
- package/client-dist/{document-library.module-5VQ5OTIN.js → document-library.module-FEW5ZVV7.js} +2 -2
- package/client-dist/{embedding-eval.module-6BDLT5MR.js → embedding-eval.module-FE3SCZW6.js} +2 -2
- package/client-dist/{embedding-registry.module-DBMU7AGE.js → embedding-registry.module-UBSKWJVJ.js} +2 -2
- package/client-dist/{err.module-6WD7OXQ6.js → err.module-ALGRK7JM.js} +2 -2
- package/client-dist/{feedback.module-WWWVQKGE.js → feedback.module-V7PBZBXQ.js} +2 -2
- package/client-dist/{host-runtime-mcp.module-4OMEFIRP.js → host-runtime-mcp.module-UXVF3IR5.js} +2 -2
- package/client-dist/index.html +1 -1
- package/client-dist/{live-dev-pipeline.module-D4MWJOX6.js → live-dev-pipeline.module-YWF5GLBE.js} +2 -2
- package/client-dist/{logs.module-GRTNFGBS.js → logs.module-NAEIYPCM.js} +2 -2
- package/client-dist/main-62XKVZUG.js +7 -0
- package/client-dist/main-62XKVZUG.js.map +7 -0
- package/client-dist/{master-control-remote-poc.module-6JD5MFJB.js → master-control-remote-poc.module-K3AGE4XH.js} +2 -2
- package/client-dist/{mobile-app.module-EP2FMCTK.js → mobile-app.module-ODPM72X5.js} +2 -2
- package/client-dist/{model-registry.module-LFR7PLTA.js → model-registry.module-RWB3R6J5.js} +2 -2
- package/client-dist/{oc.module-U7EC3N7I.js → oc.module-PFJYQWFH.js} +2 -2
- package/client-dist/{orc.module-TGRJ4TDD.js → orc.module-BFMDEMBE.js} +2 -2
- package/client-dist/{project-management.module-YRRWULFG.js → project-management.module-JB63YIQ3.js} +2 -2
- package/client-dist/project-source-routed.module-GII6Y4AO.js +2 -0
- package/client-dist/{scheduler.module-4IVEMSGR.js → scheduler.module-73WPBUP2.js} +2 -2
- package/client-dist/{session.module-4K5QTFYU.js → session.module-6SESCFVW.js} +2 -2
- package/client-dist/{set.module-BGRQCUIL.js → set.module-E7WZ77NU.js} +2 -2
- package/client-dist/{setup.module-ZUCKDANS.js → setup.module-2XQXTKUG.js} +2 -2
- package/client-dist/{terminals.module-CIDUTLMD.js → terminals.module-IED7TXIF.js} +2 -2
- package/client-dist/{voice-notes-poc.module-77G4MPPJ.js → voice-notes-poc.module-ZBEJCKYD.js} +2 -2
- package/client-dist/{wfs.module-7FHSY34D.js → wfs.module-L3Q5LWL3.js} +2 -2
- package/package.json +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/integrations/_modules/voice/_collections/utils/elevenlabs-tts.util.d.ts.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/integrations/_modules/voice/_collections/utils/elevenlabs-tts.util.js +17 -0
- package/server/build/src/_modules/ccap-agent/_modules/integrations/_modules/voice/_collections/utils/elevenlabs-tts.util.js.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/code-search/_collections/consts/code-search-tool-schema.const.d.ts.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/code-search/_collections/consts/code-search-tool-schema.const.js +3 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/code-search/_collections/consts/code-search-tool-schema.const.js.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/environment-readiness/_collections/consts/environment-readiness-tool-definition.const.d.ts.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/environment-readiness/_collections/consts/environment-readiness-tool-definition.const.js +3 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/environment-readiness/_collections/consts/environment-readiness-tool-definition.const.js.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-explore/_collections/consts/ffe-explore-tool-usage-rules.const.d.ts.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-explore/_collections/consts/ffe-explore-tool-usage-rules.const.js +6 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-explore/_collections/consts/ffe-explore-tool-usage-rules.const.js.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-search/_collections/consts/fs-search-tool-usage-rules.const.d.ts.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-search/_collections/consts/fs-search-tool-usage-rules.const.js +6 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-search/_collections/consts/fs-search-tool-usage-rules.const.js.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/received-files/_collections/consts/save-received-files-tool-definition.const.d.ts.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/received-files/_collections/consts/save-received-files-tool-definition.const.js +3 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/received-files/_collections/consts/save-received-files-tool-definition.const.js.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/self/_collections/consts/self-tool-definition.const.d.ts.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/self/_collections/consts/self-tool-definition.const.js +14 -12
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/self/_collections/consts/self-tool-definition.const.js.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/self/_collections/consts/self-tool-definition.const.spec.js +19 -15
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/self/_collections/consts/self-tool-definition.const.spec.js.map +1 -1
- package/server/build/src/_modules/external-sessions/_modules/ext-message/_collections/utils/cc-assembly.util.d.ts.map +1 -1
- package/server/build/src/_modules/external-sessions/_modules/ext-message/_collections/utils/cc-assembly.util.js +20 -1
- package/server/build/src/_modules/external-sessions/_modules/ext-message/_collections/utils/cc-assembly.util.js.map +1 -1
- package/server/build/src/_modules/external-sessions/_modules/ext-message/_collections/utils/cc-assembly.util.spec.js +89 -0
- package/server/build/src/_modules/external-sessions/_modules/ext-message/_collections/utils/cc-assembly.util.spec.js.map +1 -1
- package/client-dist/chunk-5EK2KVKJ.js +0 -73
- package/client-dist/chunk-5EK2KVKJ.js.map +0 -1
- package/client-dist/main-FMFXEH3I.js +0 -7
- package/client-dist/main-FMFXEH3I.js.map +0 -7
- package/client-dist/project-source-routed.module-HXRS5MTX.js +0 -2
- /package/client-dist/{agent-instances.module-DWR2F2SX.js.map → agent-instances.module-4E43DESK.js.map} +0 -0
- /package/client-dist/{ca.module-SHO3XHJY.js.map → ca.module-WDWUASEL.js.map} +0 -0
- /package/client-dist/{cc-usage-dashboard.component-K6ZYT3E5.js.map → cc-usage-dashboard.component-5DTKDKKU.js.map} +0 -0
- /package/client-dist/{cc.module-MXID2Q2C.js.map → cc.module-AEH4WTXM.js.map} +0 -0
- /package/client-dist/{chunk-JXPPQJAC.js.map → chunk-2I4T7CSV.js.map} +0 -0
- /package/client-dist/{chunk-ZCG3AKDF.js.map → chunk-2Y5C3JIA.js.map} +0 -0
- /package/client-dist/{chunk-ZDAW457Z.js.map → chunk-336CEF7R.js.map} +0 -0
- /package/client-dist/{chunk-2MMVFGZV.js.map → chunk-34Z64SWV.js.map} +0 -0
- /package/client-dist/{chunk-JOREJJVW.js.map → chunk-4J5TIRRI.js.map} +0 -0
- /package/client-dist/{chunk-BJOPT3GE.js.map → chunk-5ELMVFNX.js.map} +0 -0
- /package/client-dist/{chunk-4N5O2KUM.js.map → chunk-6D3QWRFP.js.map} +0 -0
- /package/client-dist/{chunk-FRQKNRI2.js.map → chunk-6KVBLG4X.js.map} +0 -0
- /package/client-dist/{chunk-CVBKWPQV.js.map → chunk-7D5EZFAC.js.map} +0 -0
- /package/client-dist/{chunk-UOGFFZKL.js.map → chunk-7QMHXBHZ.js.map} +0 -0
- /package/client-dist/{chunk-HCAALFTE.js.map → chunk-AM6555Z6.js.map} +0 -0
- /package/client-dist/{chunk-BASFCAFS.js.map → chunk-BG72Q3G7.js.map} +0 -0
- /package/client-dist/{chunk-E472WLLR.js.map → chunk-BHHACAVA.js.map} +0 -0
- /package/client-dist/{chunk-NDIG65MB.js.map → chunk-DKHDZZGG.js.map} +0 -0
- /package/client-dist/{chunk-XLXWUHKZ.js.map → chunk-DVBEU2JO.js.map} +0 -0
- /package/client-dist/{chunk-WSH7NBCG.js.map → chunk-DW7ER3WM.js.map} +0 -0
- /package/client-dist/{chunk-ETSJMBGY.js.map → chunk-E2RLHTDB.js.map} +0 -0
- /package/client-dist/{chunk-VCNC5IA2.js.map → chunk-E4ZMUP7Q.js.map} +0 -0
- /package/client-dist/{chunk-QHWX453Q.js.map → chunk-EGHMAEA4.js.map} +0 -0
- /package/client-dist/{chunk-STLSPPII.js.map → chunk-F4BODVLI.js.map} +0 -0
- /package/client-dist/{chunk-BG3WIGFL.js.map → chunk-F4UUXOQ5.js.map} +0 -0
- /package/client-dist/{chunk-L6P3RBO6.js.map → chunk-GA3OCDMZ.js.map} +0 -0
- /package/client-dist/{chunk-C3CWZ3ET.js.map → chunk-GMUM7KOR.js.map} +0 -0
- /package/client-dist/{chunk-SFXGSRSX.js.map → chunk-GN6TW6L6.js.map} +0 -0
- /package/client-dist/{chunk-PR7IKYCO.js.map → chunk-GTWI2CYL.js.map} +0 -0
- /package/client-dist/{chunk-EZWBZ7ZX.js.map → chunk-GWIJGQVP.js.map} +0 -0
- /package/client-dist/{chunk-K6OTKJ3M.js.map → chunk-HL4BUFUG.js.map} +0 -0
- /package/client-dist/{chunk-HEG437UD.js.map → chunk-HOJDFEAR.js.map} +0 -0
- /package/client-dist/{chunk-GN7NCHYV.js.map → chunk-IXIZ3S6C.js.map} +0 -0
- /package/client-dist/{chunk-A4R2BIZ7.js.map → chunk-LK2VWFED.js.map} +0 -0
- /package/client-dist/{chunk-AXJ7Z7SO.js.map → chunk-N2OBEUFB.js.map} +0 -0
- /package/client-dist/{chunk-DHLEX5YE.js.map → chunk-NAQ7IUO2.js.map} +0 -0
- /package/client-dist/{chunk-4BXQQ6NA.js.map → chunk-O3APUQM3.js.map} +0 -0
- /package/client-dist/{chunk-7KBLHYTF.js.map → chunk-OIGUQ6GP.js.map} +0 -0
- /package/client-dist/{chunk-EJCBQGKR.js.map → chunk-OUHESR6G.js.map} +0 -0
- /package/client-dist/{chunk-274CFFZL.js.map → chunk-PP3NTBZB.js.map} +0 -0
- /package/client-dist/{chunk-YBBIR62C.js.map → chunk-PWKBPUVS.js.map} +0 -0
- /package/client-dist/{chunk-KATO6ESP.js.map → chunk-QE6YWEWV.js.map} +0 -0
- /package/client-dist/{chunk-2AWEOJRY.js.map → chunk-QQV5KQ55.js.map} +0 -0
- /package/client-dist/{chunk-DJS45ECM.js.map → chunk-RG2GFMRP.js.map} +0 -0
- /package/client-dist/{chunk-IRODWFVY.js.map → chunk-S722EEQG.js.map} +0 -0
- /package/client-dist/{chunk-7NTV4TP4.js.map → chunk-SNV4ASIX.js.map} +0 -0
- /package/client-dist/{chunk-56PZOPA6.js.map → chunk-SYGNSXIF.js.map} +0 -0
- /package/client-dist/{chunk-2G3K2OS3.js.map → chunk-UAOMYFV6.js.map} +0 -0
- /package/client-dist/{chunk-VHMXOPKN.js.map → chunk-UPF3ASSA.js.map} +0 -0
- /package/client-dist/{chunk-XDNBCTHN.js.map → chunk-UVX6ENPG.js.map} +0 -0
- /package/client-dist/{chunk-5PJXCLKA.js.map → chunk-VWNDIR3A.js.map} +0 -0
- /package/client-dist/{chunk-TCYNH7IT.js.map → chunk-W6MDJZQP.js.map} +0 -0
- /package/client-dist/{chunk-STFHGBA6.js.map → chunk-WAIL47QS.js.map} +0 -0
- /package/client-dist/{chunk-D4UUQLG6.js.map → chunk-WM66SXLY.js.map} +0 -0
- /package/client-dist/{chunk-AYMRJ7AZ.js.map → chunk-WMHLBVBK.js.map} +0 -0
- /package/client-dist/{chunk-GQDZYTG3.js.map → chunk-WSHSVAW6.js.map} +0 -0
- /package/client-dist/{chunk-W2NSBTZM.js.map → chunk-YUXZ7HNQ.js.map} +0 -0
- /package/client-dist/{chunk-7JOPB46E.js.map → chunk-ZMTECVST.js.map} +0 -0
- /package/client-dist/{chunk-C2XOGAVB.js.map → chunk-ZSOM7HJU.js.map} +0 -0
- /package/client-dist/{consultant.module-6AZVLCHA.js.map → consultant.module-X7WZCEYO.js.map} +0 -0
- /package/client-dist/{crd.module-MECHHWEK.js.map → crd.module-WOHMVAA3.js.map} +0 -0
- /package/client-dist/{dashboard.module-KWAFBB3L.js.map → dashboard.module-NNPCINK6.js.map} +0 -0
- /package/client-dist/{do.module-RHPM7CJC.js.map → do.module-3SLIIGH5.js.map} +0 -0
- /package/client-dist/{document-library.module-5VQ5OTIN.js.map → document-library.module-FEW5ZVV7.js.map} +0 -0
- /package/client-dist/{embedding-eval.module-6BDLT5MR.js.map → embedding-eval.module-FE3SCZW6.js.map} +0 -0
- /package/client-dist/{embedding-registry.module-DBMU7AGE.js.map → embedding-registry.module-UBSKWJVJ.js.map} +0 -0
- /package/client-dist/{err.module-6WD7OXQ6.js.map → err.module-ALGRK7JM.js.map} +0 -0
- /package/client-dist/{feedback.module-WWWVQKGE.js.map → feedback.module-V7PBZBXQ.js.map} +0 -0
- /package/client-dist/{host-runtime-mcp.module-4OMEFIRP.js.map → host-runtime-mcp.module-UXVF3IR5.js.map} +0 -0
- /package/client-dist/{live-dev-pipeline.module-D4MWJOX6.js.map → live-dev-pipeline.module-YWF5GLBE.js.map} +0 -0
- /package/client-dist/{logs.module-GRTNFGBS.js.map → logs.module-NAEIYPCM.js.map} +0 -0
- /package/client-dist/{master-control-remote-poc.module-6JD5MFJB.js.map → master-control-remote-poc.module-K3AGE4XH.js.map} +0 -0
- /package/client-dist/{mobile-app.module-EP2FMCTK.js.map → mobile-app.module-ODPM72X5.js.map} +0 -0
- /package/client-dist/{model-registry.module-LFR7PLTA.js.map → model-registry.module-RWB3R6J5.js.map} +0 -0
- /package/client-dist/{oc.module-U7EC3N7I.js.map → oc.module-PFJYQWFH.js.map} +0 -0
- /package/client-dist/{orc.module-TGRJ4TDD.js.map → orc.module-BFMDEMBE.js.map} +0 -0
- /package/client-dist/{project-management.module-YRRWULFG.js.map → project-management.module-JB63YIQ3.js.map} +0 -0
- /package/client-dist/{project-source-routed.module-HXRS5MTX.js.map → project-source-routed.module-GII6Y4AO.js.map} +0 -0
- /package/client-dist/{scheduler.module-4IVEMSGR.js.map → scheduler.module-73WPBUP2.js.map} +0 -0
- /package/client-dist/{session.module-4K5QTFYU.js.map → session.module-6SESCFVW.js.map} +0 -0
- /package/client-dist/{set.module-BGRQCUIL.js.map → set.module-E7WZ77NU.js.map} +0 -0
- /package/client-dist/{setup.module-ZUCKDANS.js.map → setup.module-2XQXTKUG.js.map} +0 -0
- /package/client-dist/{terminals.module-CIDUTLMD.js.map → terminals.module-IED7TXIF.js.map} +0 -0
- /package/client-dist/{voice-notes-poc.module-77G4MPPJ.js.map → voice-notes-poc.module-ZBEJCKYD.js.map} +0 -0
- /package/client-dist/{wfs.module-7FHSY34D.js.map → wfs.module-L3Q5LWL3.js.map} +0 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import{b as mi,c as hi,d as Re}from"./chunk-HL4BUFUG.js";import{c as vt}from"./chunk-IXIZ3S6C.js";import{a as fi}from"./chunk-WSHSVAW6.js";import{a as pi}from"./chunk-O3APUQM3.js";import{a as gi}from"./chunk-N2OBEUFB.js";import{f as si,i as ai,n as li,o as ci,p as di,v as ui}from"./chunk-EO4DNTT4.js";import{a as sn}from"./chunk-5UPNU54P.js";import{j as Tt}from"./chunk-QE6YWEWV.js";import{p as rn}from"./chunk-7QZI4BAF.js";import{$a as X,C as le,Cb as Et,D as qe,Fa as g,G as ei,Ga as v,Ha as tn,Hb as oi,Ia as nn,J as O,K as z,Kb as ri,L as ce,M as nt,T as it,Ta as Ke,U as ge,Ua as on,W as kt,X as wt,Z as p,_ as ti,a as ae,aa as W,ab as ee,b as je,da as A,fa as Pe,ga as $,h as en,hb as S,ja as K,jb as ii,k as B,la as y,na as St,oa as $e,pa as Me,qa as c,ra as d,sa as E,ua as U,ub as Je,va as N,wa as _,xa as ni,y as We,ya as ot}from"./chunk-TBMJSIBB.js";var{entries:Ei,setPrototypeOf:_i,isFrozen:go,getPrototypeOf:_o,getOwnPropertyDescriptor:bo}=Object,{freeze:ie,seal:ue,create:Mt}=Object,{apply:mn,construct:hn}=typeof Reflect<"u"&&Reflect;ie||(ie=function(n){return n});ue||(ue=function(n){return n});mn||(mn=function(n,e){for(var i=arguments.length,o=new Array(i>2?i-2:0),r=2;r<i;r++)o[r-2]=arguments[r];return n.apply(e,o)});hn||(hn=function(n){for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];return new n(...i)});var At=oe(Array.prototype.forEach),xo=oe(Array.prototype.lastIndexOf),bi=oe(Array.prototype.pop),rt=oe(Array.prototype.push),Co=oe(Array.prototype.splice),Rt=oe(String.prototype.toLowerCase),an=oe(String.prototype.toString),ln=oe(String.prototype.match),st=oe(String.prototype.replace),yo=oe(String.prototype.indexOf),ko=oe(String.prototype.trim),de=oe(Object.prototype.hasOwnProperty),ne=oe(RegExp.prototype.test),at=wo(TypeError);function oe(t){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];return mn(t,n,i)}}function wo(t){return function(){for(var n=arguments.length,e=new Array(n),i=0;i<n;i++)e[i]=arguments[i];return hn(t,e)}}function T(t,n){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Rt;_i&&_i(t,null);let i=n.length;for(;i--;){let o=n[i];if(typeof o=="string"){let r=e(o);r!==o&&(go(n)||(n[i]=r),o=r)}t[o]=!0}return t}function So(t){for(let n=0;n<t.length;n++)de(t,n)||(t[n]=null);return t}function _e(t){let n=Mt(null);for(let[e,i]of Ei(t))de(t,e)&&(Array.isArray(i)?n[e]=So(i):i&&typeof i=="object"&&i.constructor===Object?n[e]=_e(i):n[e]=i);return n}function lt(t,n){for(;t!==null;){let i=bo(t,n);if(i){if(i.get)return oe(i.get);if(typeof i.value=="function")return oe(i.value)}t=_o(t)}function e(){return null}return e}var xi=ie(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),cn=ie(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),dn=ie(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Eo=ie(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),un=ie(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),To=ie(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ci=ie(["#text"]),yi=ie(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),pn=ie(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ki=ie(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),$t=ie(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),vo=ue(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ao=ue(/<%[\w\W]*|[\w\W]*%>/gm),$o=ue(/\$\{[\w\W]*/gm),Mo=ue(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ro=ue(/^aria-[\-\w]+$/),Ti=ue(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Lo=ue(/^(?:\w+script|data):/i),Io=ue(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),vi=ue(/^html$/i),Po=ue(/^[a-z][.\w]*(-[.\w]+)+$/i),wi=Object.freeze({__proto__:null,ARIA_ATTR:Ro,ATTR_WHITESPACE:Io,CUSTOM_ELEMENT:Po,DATA_ATTR:Mo,DOCTYPE_NAME:vi,ERB_EXPR:Ao,IS_ALLOWED_URI:Ti,IS_SCRIPT_OR_DATA:Lo,MUSTACHE_EXPR:vo,TMPLIT_EXPR:$o}),ct={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Do=function(){return typeof window>"u"?null:window},Bo=function(n,e){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let i=null,o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(i=e.getAttribute(o));let r="dompurify"+(i?"#"+i:"");try{return n.createPolicy(r,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},Si=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ai(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Do(),n=x=>Ai(x);if(n.version="3.3.3",n.removed=[],!t||!t.document||t.document.nodeType!==ct.document||!t.Element)return n.isSupported=!1,n;let{document:e}=t,i=e,o=i.currentScript,{DocumentFragment:r,HTMLTemplateElement:s,Node:u,Element:l,NodeFilter:h,NamedNodeMap:m=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:C,DOMParser:w,trustedTypes:P}=t,R=l.prototype,H=lt(R,"cloneNode"),Ee=lt(R,"remove"),Te=lt(R,"nextSibling"),ve=lt(R,"childNodes"),ze=lt(R,"parentNode");if(typeof s=="function"){let x=e.createElement("template");x.content&&x.content.ownerDocument&&(e=x.content.ownerDocument)}let J,Ce="",{implementation:ye,createNodeIterator:Xi,createDocumentFragment:eo,getElementsByTagName:to}=e,{importNode:no}=i,te=Si();n.isSupported=typeof Ei=="function"&&typeof ze=="function"&&ye&&ye.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Ft,ERB_EXPR:Ut,TMPLIT_EXPR:Ht,DATA_ATTR:io,ARIA_ATTR:oo,IS_SCRIPT_OR_DATA:ro,ATTR_WHITESPACE:Mn,CUSTOM_ELEMENT:so}=wi,{IS_ALLOWED_URI:Rn}=wi,q=null,Ln=T({},[...xi,...cn,...dn,...un,...Ci]),Z=null,In=T({},[...yi,...pn,...ki,...$t]),V=Object.seal(Mt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Xe=null,ht=null,Ae=Object.seal(Mt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Pn=!0,Vt=!0,Dn=!1,Bn=!0,Ne=!1,ft=!0,Le=!1,Gt=!1,jt=!1,Fe=!1,gt=!1,_t=!1,On=!0,zn=!1,ao="user-content-",Wt=!0,et=!1,Ue={},he=null,qt=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Nn=null,Fn=T({},["audio","video","img","source","image","track"]),Kt=null,Un=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),bt="http://www.w3.org/1998/Math/MathML",xt="http://www.w3.org/2000/svg",ke="http://www.w3.org/1999/xhtml",He=ke,Jt=!1,Zt=null,lo=T({},[bt,xt,ke],an),Ct=T({},["mi","mo","mn","ms","mtext"]),yt=T({},["annotation-xml"]),co=T({},["title","style","font","a","script"]),tt=null,uo=["application/xhtml+xml","text/html"],po="text/html",j=null,Ve=null,mo=e.createElement("form"),Hn=function(a){return a instanceof RegExp||a instanceof Function},Yt=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ve&&Ve===a)){if((!a||typeof a!="object")&&(a={}),a=_e(a),tt=uo.indexOf(a.PARSER_MEDIA_TYPE)===-1?po:a.PARSER_MEDIA_TYPE,j=tt==="application/xhtml+xml"?an:Rt,q=de(a,"ALLOWED_TAGS")?T({},a.ALLOWED_TAGS,j):Ln,Z=de(a,"ALLOWED_ATTR")?T({},a.ALLOWED_ATTR,j):In,Zt=de(a,"ALLOWED_NAMESPACES")?T({},a.ALLOWED_NAMESPACES,an):lo,Kt=de(a,"ADD_URI_SAFE_ATTR")?T(_e(Un),a.ADD_URI_SAFE_ATTR,j):Un,Nn=de(a,"ADD_DATA_URI_TAGS")?T(_e(Fn),a.ADD_DATA_URI_TAGS,j):Fn,he=de(a,"FORBID_CONTENTS")?T({},a.FORBID_CONTENTS,j):qt,Xe=de(a,"FORBID_TAGS")?T({},a.FORBID_TAGS,j):_e({}),ht=de(a,"FORBID_ATTR")?T({},a.FORBID_ATTR,j):_e({}),Ue=de(a,"USE_PROFILES")?a.USE_PROFILES:!1,Pn=a.ALLOW_ARIA_ATTR!==!1,Vt=a.ALLOW_DATA_ATTR!==!1,Dn=a.ALLOW_UNKNOWN_PROTOCOLS||!1,Bn=a.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ne=a.SAFE_FOR_TEMPLATES||!1,ft=a.SAFE_FOR_XML!==!1,Le=a.WHOLE_DOCUMENT||!1,Fe=a.RETURN_DOM||!1,gt=a.RETURN_DOM_FRAGMENT||!1,_t=a.RETURN_TRUSTED_TYPE||!1,jt=a.FORCE_BODY||!1,On=a.SANITIZE_DOM!==!1,zn=a.SANITIZE_NAMED_PROPS||!1,Wt=a.KEEP_CONTENT!==!1,et=a.IN_PLACE||!1,Rn=a.ALLOWED_URI_REGEXP||Ti,He=a.NAMESPACE||ke,Ct=a.MATHML_TEXT_INTEGRATION_POINTS||Ct,yt=a.HTML_INTEGRATION_POINTS||yt,V=a.CUSTOM_ELEMENT_HANDLING||{},a.CUSTOM_ELEMENT_HANDLING&&Hn(a.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=a.CUSTOM_ELEMENT_HANDLING.tagNameCheck),a.CUSTOM_ELEMENT_HANDLING&&Hn(a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),a.CUSTOM_ELEMENT_HANDLING&&typeof a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(V.allowCustomizedBuiltInElements=a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ne&&(Vt=!1),gt&&(Fe=!0),Ue&&(q=T({},Ci),Z=Mt(null),Ue.html===!0&&(T(q,xi),T(Z,yi)),Ue.svg===!0&&(T(q,cn),T(Z,pn),T(Z,$t)),Ue.svgFilters===!0&&(T(q,dn),T(Z,pn),T(Z,$t)),Ue.mathMl===!0&&(T(q,un),T(Z,ki),T(Z,$t))),de(a,"ADD_TAGS")||(Ae.tagCheck=null),de(a,"ADD_ATTR")||(Ae.attributeCheck=null),a.ADD_TAGS&&(typeof a.ADD_TAGS=="function"?Ae.tagCheck=a.ADD_TAGS:(q===Ln&&(q=_e(q)),T(q,a.ADD_TAGS,j))),a.ADD_ATTR&&(typeof a.ADD_ATTR=="function"?Ae.attributeCheck=a.ADD_ATTR:(Z===In&&(Z=_e(Z)),T(Z,a.ADD_ATTR,j))),a.ADD_URI_SAFE_ATTR&&T(Kt,a.ADD_URI_SAFE_ATTR,j),a.FORBID_CONTENTS&&(he===qt&&(he=_e(he)),T(he,a.FORBID_CONTENTS,j)),a.ADD_FORBID_CONTENTS&&(he===qt&&(he=_e(he)),T(he,a.ADD_FORBID_CONTENTS,j)),Wt&&(q["#text"]=!0),Le&&T(q,["html","head","body"]),q.table&&(T(q,["tbody"]),delete Xe.tbody),a.TRUSTED_TYPES_POLICY){if(typeof a.TRUSTED_TYPES_POLICY.createHTML!="function")throw at('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof a.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw at('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');J=a.TRUSTED_TYPES_POLICY,Ce=J.createHTML("")}else J===void 0&&(J=Bo(P,o)),J!==null&&typeof Ce=="string"&&(Ce=J.createHTML(""));ie&&ie(a),Ve=a}},Vn=T({},[...cn,...dn,...Eo]),Gn=T({},[...un,...To]),ho=function(a){let f=ze(a);(!f||!f.tagName)&&(f={namespaceURI:He,tagName:"template"});let b=Rt(a.tagName),D=Rt(f.tagName);return Zt[a.namespaceURI]?a.namespaceURI===xt?f.namespaceURI===ke?b==="svg":f.namespaceURI===bt?b==="svg"&&(D==="annotation-xml"||Ct[D]):!!Vn[b]:a.namespaceURI===bt?f.namespaceURI===ke?b==="math":f.namespaceURI===xt?b==="math"&&yt[D]:!!Gn[b]:a.namespaceURI===ke?f.namespaceURI===xt&&!yt[D]||f.namespaceURI===bt&&!Ct[D]?!1:!Gn[b]&&(co[b]||!Vn[b]):!!(tt==="application/xhtml+xml"&&Zt[a.namespaceURI]):!1},fe=function(a){rt(n.removed,{element:a});try{ze(a).removeChild(a)}catch{Ee(a)}},Ie=function(a,f){try{rt(n.removed,{attribute:f.getAttributeNode(a),from:f})}catch{rt(n.removed,{attribute:null,from:f})}if(f.removeAttribute(a),a==="is")if(Fe||gt)try{fe(f)}catch{}else try{f.setAttribute(a,"")}catch{}},jn=function(a){let f=null,b=null;if(jt)a="<remove></remove>"+a;else{let G=ln(a,/^[\r\n\t ]+/);b=G&&G[0]}tt==="application/xhtml+xml"&&He===ke&&(a='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+a+"</body></html>");let D=J?J.createHTML(a):a;if(He===ke)try{f=new w().parseFromString(D,tt)}catch{}if(!f||!f.documentElement){f=ye.createDocument(He,"template",null);try{f.documentElement.innerHTML=Jt?Ce:D}catch{}}let Q=f.body||f.documentElement;return a&&b&&Q.insertBefore(e.createTextNode(b),Q.childNodes[0]||null),He===ke?to.call(f,Le?"html":"body")[0]:Le?f.documentElement:Q},Wn=function(a){return Xi.call(a.ownerDocument||a,a,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Qt=function(a){return a instanceof C&&(typeof a.nodeName!="string"||typeof a.textContent!="string"||typeof a.removeChild!="function"||!(a.attributes instanceof m)||typeof a.removeAttribute!="function"||typeof a.setAttribute!="function"||typeof a.namespaceURI!="string"||typeof a.insertBefore!="function"||typeof a.hasChildNodes!="function")},qn=function(a){return typeof u=="function"&&a instanceof u};function we(x,a,f){At(x,b=>{b.call(n,a,f,Ve)})}let Kn=function(a){let f=null;if(we(te.beforeSanitizeElements,a,null),Qt(a))return fe(a),!0;let b=j(a.nodeName);if(we(te.uponSanitizeElement,a,{tagName:b,allowedTags:q}),ft&&a.hasChildNodes()&&!qn(a.firstElementChild)&&ne(/<[/\w!]/g,a.innerHTML)&&ne(/<[/\w!]/g,a.textContent)||a.nodeType===ct.progressingInstruction||ft&&a.nodeType===ct.comment&&ne(/<[/\w]/g,a.data))return fe(a),!0;if(!(Ae.tagCheck instanceof Function&&Ae.tagCheck(b))&&(!q[b]||Xe[b])){if(!Xe[b]&&Zn(b)&&(V.tagNameCheck instanceof RegExp&&ne(V.tagNameCheck,b)||V.tagNameCheck instanceof Function&&V.tagNameCheck(b)))return!1;if(Wt&&!he[b]){let D=ze(a)||a.parentNode,Q=ve(a)||a.childNodes;if(Q&&D){let G=Q.length;for(let se=G-1;se>=0;--se){let Se=H(Q[se],!0);Se.__removalCount=(a.__removalCount||0)+1,D.insertBefore(Se,Te(a))}}}return fe(a),!0}return a instanceof l&&!ho(a)||(b==="noscript"||b==="noembed"||b==="noframes")&&ne(/<\/no(script|embed|frames)/i,a.innerHTML)?(fe(a),!0):(Ne&&a.nodeType===ct.text&&(f=a.textContent,At([Ft,Ut,Ht],D=>{f=st(f,D," ")}),a.textContent!==f&&(rt(n.removed,{element:a.cloneNode()}),a.textContent=f)),we(te.afterSanitizeElements,a,null),!1)},Jn=function(a,f,b){if(ht[f]||On&&(f==="id"||f==="name")&&(b in e||b in mo))return!1;if(!(Vt&&!ht[f]&&ne(io,f))){if(!(Pn&&ne(oo,f))){if(!(Ae.attributeCheck instanceof Function&&Ae.attributeCheck(f,a))){if(!Z[f]||ht[f]){if(!(Zn(a)&&(V.tagNameCheck instanceof RegExp&&ne(V.tagNameCheck,a)||V.tagNameCheck instanceof Function&&V.tagNameCheck(a))&&(V.attributeNameCheck instanceof RegExp&&ne(V.attributeNameCheck,f)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(f,a))||f==="is"&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&ne(V.tagNameCheck,b)||V.tagNameCheck instanceof Function&&V.tagNameCheck(b))))return!1}else if(!Kt[f]){if(!ne(Rn,st(b,Mn,""))){if(!((f==="src"||f==="xlink:href"||f==="href")&&a!=="script"&&yo(b,"data:")===0&&Nn[a])){if(!(Dn&&!ne(ro,st(b,Mn,"")))){if(b)return!1}}}}}}}return!0},Zn=function(a){return a!=="annotation-xml"&&ln(a,so)},Yn=function(a){we(te.beforeSanitizeAttributes,a,null);let{attributes:f}=a;if(!f||Qt(a))return;let b={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Z,forceKeepAttr:void 0},D=f.length;for(;D--;){let Q=f[D],{name:G,namespaceURI:se,value:Se}=Q,Ge=j(G),Xt=Se,Y=G==="value"?Xt:ko(Xt);if(b.attrName=Ge,b.attrValue=Y,b.keepAttr=!0,b.forceKeepAttr=void 0,we(te.uponSanitizeAttribute,a,b),Y=b.attrValue,zn&&(Ge==="id"||Ge==="name")&&(Ie(G,a),Y=ao+Y),ft&&ne(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Y)){Ie(G,a);continue}if(Ge==="attributename"&&ln(Y,"href")){Ie(G,a);continue}if(b.forceKeepAttr)continue;if(!b.keepAttr){Ie(G,a);continue}if(!Bn&&ne(/\/>/i,Y)){Ie(G,a);continue}Ne&&At([Ft,Ut,Ht],Xn=>{Y=st(Y,Xn," ")});let Qn=j(a.nodeName);if(!Jn(Qn,Ge,Y)){Ie(G,a);continue}if(J&&typeof P=="object"&&typeof P.getAttributeType=="function"&&!se)switch(P.getAttributeType(Qn,Ge)){case"TrustedHTML":{Y=J.createHTML(Y);break}case"TrustedScriptURL":{Y=J.createScriptURL(Y);break}}if(Y!==Xt)try{se?a.setAttributeNS(se,G,Y):a.setAttribute(G,Y),Qt(a)?fe(a):bi(n.removed)}catch{Ie(G,a)}}we(te.afterSanitizeAttributes,a,null)},fo=function x(a){let f=null,b=Wn(a);for(we(te.beforeSanitizeShadowDOM,a,null);f=b.nextNode();)we(te.uponSanitizeShadowNode,f,null),Kn(f),Yn(f),f.content instanceof r&&x(f.content);we(te.afterSanitizeShadowDOM,a,null)};return n.sanitize=function(x){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=null,b=null,D=null,Q=null;if(Jt=!x,Jt&&(x="<!-->"),typeof x!="string"&&!qn(x))if(typeof x.toString=="function"){if(x=x.toString(),typeof x!="string")throw at("dirty is not a string, aborting")}else throw at("toString is not a function");if(!n.isSupported)return x;if(Gt||Yt(a),n.removed=[],typeof x=="string"&&(et=!1),et){if(x.nodeName){let Se=j(x.nodeName);if(!q[Se]||Xe[Se])throw at("root node is forbidden and cannot be sanitized in-place")}}else if(x instanceof u)f=jn("<!---->"),b=f.ownerDocument.importNode(x,!0),b.nodeType===ct.element&&b.nodeName==="BODY"||b.nodeName==="HTML"?f=b:f.appendChild(b);else{if(!Fe&&!Ne&&!Le&&x.indexOf("<")===-1)return J&&_t?J.createHTML(x):x;if(f=jn(x),!f)return Fe?null:_t?Ce:""}f&&jt&&fe(f.firstChild);let G=Wn(et?x:f);for(;D=G.nextNode();)Kn(D),Yn(D),D.content instanceof r&&fo(D.content);if(et)return x;if(Fe){if(gt)for(Q=eo.call(f.ownerDocument);f.firstChild;)Q.appendChild(f.firstChild);else Q=f;return(Z.shadowroot||Z.shadowrootmode)&&(Q=no.call(i,Q,!0)),Q}let se=Le?f.outerHTML:f.innerHTML;return Le&&q["!doctype"]&&f.ownerDocument&&f.ownerDocument.doctype&&f.ownerDocument.doctype.name&&ne(vi,f.ownerDocument.doctype.name)&&(se="<!DOCTYPE "+f.ownerDocument.doctype.name+`>
|
|
2
|
+
`+se),Ne&&At([Ft,Ut,Ht],Se=>{se=st(se,Se," ")}),J&&_t?J.createHTML(se):se},n.setConfig=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Yt(x),Gt=!0},n.clearConfig=function(){Ve=null,Gt=!1},n.isValidAttribute=function(x,a,f){Ve||Yt({});let b=j(x),D=j(a);return Jn(b,D,f)},n.addHook=function(x,a){typeof a=="function"&&rt(te[x],a)},n.removeHook=function(x,a){if(a!==void 0){let f=xo(te[x],a);return f===-1?void 0:Co(te[x],f,1)[0]}return bi(te[x])},n.removeHooks=function(x){te[x]=[]},n.removeAllHooks=function(){te=Si()},n}var $i=Ai();function bn(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Oe=bn();function Bi(t){Oe=t}var De={exec:()=>null};function M(t,n=""){let e=typeof t=="string"?t:t.source,i={replace:(o,r)=>{let s=typeof r=="string"?r:r.source;return s=s.replace(re.caret,"$1"),e=e.replace(o,s),i},getRegex:()=>new RegExp(e,n)};return i}var Oo=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),re={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},zo=/^(?:[ \t]*(?:\n|$))+/,No=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Fo=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,mt=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Uo=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,xn=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Oi=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,zi=M(Oi).replace(/bull/g,xn).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ho=M(Oi).replace(/bull/g,xn).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Cn=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Vo=/^[^\n]+/,yn=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Go=M(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",yn).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),jo=M(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,xn).getRegex(),Bt="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",kn=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Wo=M("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",kn).replace("tag",Bt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ni=M(Cn).replace("hr",mt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Bt).getRegex(),qo=M(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ni).getRegex(),wn={blockquote:qo,code:No,def:Go,fences:Fo,heading:Uo,hr:mt,html:Wo,lheading:zi,list:jo,newline:zo,paragraph:Ni,table:De,text:Vo},Mi=M("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",mt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Bt).getRegex(),Ko=je(ae({},wn),{lheading:Ho,table:Mi,paragraph:M(Cn).replace("hr",mt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Mi).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Bt).getRegex()}),Jo=je(ae({},wn),{html:M(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",kn).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:De,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:M(Cn).replace("hr",mt).replace("heading",` *#{1,6} *[^
|
|
3
|
+
]`).replace("lheading",zi).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),Zo=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Yo=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Fi=/^( {2,}|\\)\n(?!\s*$)/,Qo=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ze=/[\p{P}\p{S}]/u,Ot=/[\s\p{P}\p{S}]/u,Sn=/[^\s\p{P}\p{S}]/u,Xo=M(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ot).getRegex(),Ui=/(?!~)[\p{P}\p{S}]/u,er=/(?!~)[\s\p{P}\p{S}]/u,tr=/(?:[^\s\p{P}\p{S}]|~)/u,nr=M(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Oo?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Hi=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,ir=M(Hi,"u").replace(/punct/g,Ze).getRegex(),or=M(Hi,"u").replace(/punct/g,Ui).getRegex(),Vi="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",rr=M(Vi,"gu").replace(/notPunctSpace/g,Sn).replace(/punctSpace/g,Ot).replace(/punct/g,Ze).getRegex(),sr=M(Vi,"gu").replace(/notPunctSpace/g,tr).replace(/punctSpace/g,er).replace(/punct/g,Ui).getRegex(),ar=M("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Sn).replace(/punctSpace/g,Ot).replace(/punct/g,Ze).getRegex(),lr=M(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Ze).getRegex(),cr="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",dr=M(cr,"gu").replace(/notPunctSpace/g,Sn).replace(/punctSpace/g,Ot).replace(/punct/g,Ze).getRegex(),ur=M(/\\(punct)/,"gu").replace(/punct/g,Ze).getRegex(),pr=M(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),mr=M(kn).replace("(?:-->|$)","-->").getRegex(),hr=M("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",mr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),It=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,fr=M(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",It).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Gi=M(/^!?\[(label)\]\[(ref)\]/).replace("label",It).replace("ref",yn).getRegex(),ji=M(/^!?\[(ref)\](?:\[\])?/).replace("ref",yn).getRegex(),gr=M("reflink|nolink(?!\\()","g").replace("reflink",Gi).replace("nolink",ji).getRegex(),Ri=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,En={_backpedal:De,anyPunctuation:ur,autolink:pr,blockSkip:nr,br:Fi,code:Yo,del:De,delLDelim:De,delRDelim:De,emStrongLDelim:ir,emStrongRDelimAst:rr,emStrongRDelimUnd:ar,escape:Zo,link:fr,nolink:ji,punctuation:Xo,reflink:Gi,reflinkSearch:gr,tag:hr,text:Qo,url:De},_r=je(ae({},En),{link:M(/^!?\[(label)\]\((.*?)\)/).replace("label",It).getRegex(),reflink:M(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",It).getRegex()}),fn=je(ae({},En),{emStrongRDelimAst:sr,emStrongLDelim:or,delLDelim:lr,delRDelim:dr,url:M(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ri).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:M(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Ri).getRegex()}),br=je(ae({},fn),{br:M(Fi).replace("{2,}","*").getRegex(),text:M(fn.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),Lt={normal:wn,gfm:Ko,pedantic:Jo},dt={normal:En,gfm:fn,breaks:br,pedantic:_r},xr={"&":"&","<":"<",">":">",'"':""","'":"'"},Li=t=>xr[t];function be(t,n){if(n){if(re.escapeTest.test(t))return t.replace(re.escapeReplace,Li)}else if(re.escapeTestNoEncode.test(t))return t.replace(re.escapeReplaceNoEncode,Li);return t}function Ii(t){try{t=encodeURI(t).replace(re.percentDecode,"%")}catch{return null}return t}function Pi(t,n){let e=t.replace(re.findPipe,(r,s,u)=>{let l=!1,h=s;for(;--h>=0&&u[h]==="\\";)l=!l;return l?"|":" |"}),i=e.split(re.splitPipe),o=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),n)if(i.length>n)i.splice(n);else for(;i.length<n;)i.push("");for(;o<i.length;o++)i[o]=i[o].trim().replace(re.slashPipe,"|");return i}function ut(t,n,e){let i=t.length;if(i===0)return"";let o=0;for(;o<i;){let r=t.charAt(i-o-1);if(r===n&&!e)o++;else if(r!==n&&e)o++;else break}return t.slice(0,i-o)}function Cr(t,n){if(t.indexOf(n[1])===-1)return-1;let e=0;for(let i=0;i<t.length;i++)if(t[i]==="\\")i++;else if(t[i]===n[0])e++;else if(t[i]===n[1]&&(e--,e<0))return i;return e>0?-2:-1}function yr(t,n=0){let e=n,i="";for(let o of t)if(o===" "){let r=4-e%4;i+=" ".repeat(r),e+=r}else i+=o,e++;return i}function Di(t,n,e,i,o){let r=n.href,s=n.title||null,u=t[1].replace(o.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:t[0].charAt(0)==="!"?"image":"link",raw:e,href:r,title:s,text:u,tokens:i.inlineTokens(u)};return i.state.inLink=!1,l}function kr(t,n,e){let i=t.match(e.other.indentCodeCompensation);if(i===null)return n;let o=i[1];return n.split(`
|
|
4
|
+
`).map(r=>{let s=r.match(e.other.beginningSpace);if(s===null)return r;let[u]=s;return u.length>=o.length?r.slice(o.length):r}).join(`
|
|
5
|
+
`)}var Pt=class{options;rules;lexer;constructor(t){this.options=t||Oe}space(t){let n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){let n=this.rules.block.code.exec(t);if(n){let e=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?e:ut(e,`
|
|
6
|
+
`)}}}fences(t){let n=this.rules.block.fences.exec(t);if(n){let e=n[0],i=kr(e,n[3]||"",this.rules);return{type:"code",raw:e,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:i}}}heading(t){let n=this.rules.block.heading.exec(t);if(n){let e=n[2].trim();if(this.rules.other.endingHash.test(e)){let i=ut(e,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(e=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(t){let n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:ut(n[0],`
|
|
7
|
+
`)}}blockquote(t){let n=this.rules.block.blockquote.exec(t);if(n){let e=ut(n[0],`
|
|
8
|
+
`).split(`
|
|
9
|
+
`),i="",o="",r=[];for(;e.length>0;){let s=!1,u=[],l;for(l=0;l<e.length;l++)if(this.rules.other.blockquoteStart.test(e[l]))u.push(e[l]),s=!0;else if(!s)u.push(e[l]);else break;e=e.slice(l);let h=u.join(`
|
|
10
|
+
`),m=h.replace(this.rules.other.blockquoteSetextReplace,`
|
|
11
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
|
|
12
|
+
${h}`:h,o=o?`${o}
|
|
13
|
+
${m}`:m;let C=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(m,r,!0),this.lexer.state.top=C,e.length===0)break;let w=r.at(-1);if(w?.type==="code")break;if(w?.type==="blockquote"){let P=w,R=P.raw+`
|
|
14
|
+
`+e.join(`
|
|
15
|
+
`),H=this.blockquote(R);r[r.length-1]=H,i=i.substring(0,i.length-P.raw.length)+H.raw,o=o.substring(0,o.length-P.text.length)+H.text;break}else if(w?.type==="list"){let P=w,R=P.raw+`
|
|
16
|
+
`+e.join(`
|
|
17
|
+
`),H=this.list(R);r[r.length-1]=H,i=i.substring(0,i.length-w.raw.length)+H.raw,o=o.substring(0,o.length-P.raw.length)+H.raw,e=R.substring(r.at(-1).raw.length).split(`
|
|
18
|
+
`);continue}}return{type:"blockquote",raw:i,tokens:r,text:o}}}list(t){let n=this.rules.block.list.exec(t);if(n){let e=n[1].trim(),i=e.length>1,o={type:"list",raw:"",ordered:i,start:i?+e.slice(0,-1):"",loose:!1,items:[]};e=i?`\\d{1,9}\\${e.slice(-1)}`:`\\${e}`,this.options.pedantic&&(e=i?e:"[*+-]");let r=this.rules.other.listItemRegex(e),s=!1;for(;t;){let l=!1,h="",m="";if(!(n=r.exec(t))||this.rules.block.hr.test(t))break;h=n[0],t=t.substring(h.length);let C=yr(n[2].split(`
|
|
19
|
+
`,1)[0],n[1].length),w=t.split(`
|
|
20
|
+
`,1)[0],P=!C.trim(),R=0;if(this.options.pedantic?(R=2,m=C.trimStart()):P?R=n[1].length+1:(R=C.search(this.rules.other.nonSpaceChar),R=R>4?1:R,m=C.slice(R),R+=n[1].length),P&&this.rules.other.blankLine.test(w)&&(h+=w+`
|
|
21
|
+
`,t=t.substring(w.length+1),l=!0),!l){let H=this.rules.other.nextBulletRegex(R),Ee=this.rules.other.hrRegex(R),Te=this.rules.other.fencesBeginRegex(R),ve=this.rules.other.headingBeginRegex(R),ze=this.rules.other.htmlBeginRegex(R),J=this.rules.other.blockquoteBeginRegex(R);for(;t;){let Ce=t.split(`
|
|
22
|
+
`,1)[0],ye;if(w=Ce,this.options.pedantic?(w=w.replace(this.rules.other.listReplaceNesting," "),ye=w):ye=w.replace(this.rules.other.tabCharGlobal," "),Te.test(w)||ve.test(w)||ze.test(w)||J.test(w)||H.test(w)||Ee.test(w))break;if(ye.search(this.rules.other.nonSpaceChar)>=R||!w.trim())m+=`
|
|
23
|
+
`+ye.slice(R);else{if(P||C.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||Te.test(C)||ve.test(C)||Ee.test(C))break;m+=`
|
|
24
|
+
`+w}P=!w.trim(),h+=Ce+`
|
|
25
|
+
`,t=t.substring(Ce.length+1),C=ye.slice(R)}}o.loose||(s?o.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(s=!0)),o.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(m),loose:!1,text:m,tokens:[]}),o.raw+=h}let u=o.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let l of o.items){if(this.lexer.state.top=!1,l.tokens=this.lexer.blockTokens(l.text,[]),l.task){if(l.text=l.text.replace(this.rules.other.listReplaceTask,""),l.tokens[0]?.type==="text"||l.tokens[0]?.type==="paragraph"){l.tokens[0].raw=l.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),l.tokens[0].text=l.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let m=this.lexer.inlineQueue.length-1;m>=0;m--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[m].src)){this.lexer.inlineQueue[m].src=this.lexer.inlineQueue[m].src.replace(this.rules.other.listReplaceTask,"");break}}let h=this.rules.other.listTaskCheckbox.exec(l.raw);if(h){let m={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};l.checked=m.checked,o.loose?l.tokens[0]&&["paragraph","text"].includes(l.tokens[0].type)&&"tokens"in l.tokens[0]&&l.tokens[0].tokens?(l.tokens[0].raw=m.raw+l.tokens[0].raw,l.tokens[0].text=m.raw+l.tokens[0].text,l.tokens[0].tokens.unshift(m)):l.tokens.unshift({type:"paragraph",raw:m.raw,text:m.raw,tokens:[m]}):l.tokens.unshift(m)}}if(!o.loose){let h=l.tokens.filter(C=>C.type==="space"),m=h.length>0&&h.some(C=>this.rules.other.anyLine.test(C.raw));o.loose=m}}if(o.loose)for(let l of o.items){l.loose=!0;for(let h of l.tokens)h.type==="text"&&(h.type="paragraph")}return o}}html(t){let n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){let n=this.rules.block.def.exec(t);if(n){let e=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:e,raw:n[0],href:i,title:o}}}table(t){let n=this.rules.block.table.exec(t);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let e=Pi(n[1]),i=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=n[3]?.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
26
|
+
`):[],r={type:"table",raw:n[0],header:[],align:[],rows:[]};if(e.length===i.length){for(let s of i)this.rules.other.tableAlignRight.test(s)?r.align.push("right"):this.rules.other.tableAlignCenter.test(s)?r.align.push("center"):this.rules.other.tableAlignLeft.test(s)?r.align.push("left"):r.align.push(null);for(let s=0;s<e.length;s++)r.header.push({text:e[s],tokens:this.lexer.inline(e[s]),header:!0,align:r.align[s]});for(let s of o)r.rows.push(Pi(s,r.header.length).map((u,l)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:r.align[l]})));return r}}lheading(t){let n=this.rules.block.lheading.exec(t);if(n){let e=n[1].trim();return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(t){let n=this.rules.block.paragraph.exec(t);if(n){let e=n[1].charAt(n[1].length-1)===`
|
|
27
|
+
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:e,tokens:this.lexer.inline(e)}}}text(t){let n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){let n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(t){let n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){let n=this.rules.inline.link.exec(t);if(n){let e=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let r=ut(e.slice(0,-1),"\\");if((e.length-r.length)%2===0)return}else{let r=Cr(n[2],"()");if(r===-2)return;if(r>-1){let s=(n[0].indexOf("!")===0?5:4)+n[1].length+r;n[2]=n[2].substring(0,r),n[0]=n[0].substring(0,s).trim(),n[3]=""}}let i=n[2],o="";if(this.options.pedantic){let r=this.rules.other.pedanticHrefTitle.exec(i);r&&(i=r[1],o=r[3])}else o=n[3]?n[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?i=i.slice(1):i=i.slice(1,-1)),Di(n,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(t,n){let e;if((e=this.rules.inline.reflink.exec(t))||(e=this.rules.inline.nolink.exec(t))){let i=(e[2]||e[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=n[i.toLowerCase()];if(!o){let r=e[0].charAt(0);return{type:"text",raw:r,text:r}}return Di(e,o,e[0],this.lexer,this.rules)}}emStrong(t,n,e=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!(!i||!i[1]&&!i[2]&&!i[3]&&!i[4]||i[4]&&e.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[3])||!e||this.rules.inline.punctuation.exec(e))){let o=[...i[0]].length-1,r,s,u=o,l=0,h=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,n=n.slice(-1*t.length+o);(i=h.exec(n))!==null;){if(r=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!r)continue;if(s=[...r].length,i[3]||i[4]){u+=s;continue}else if((i[5]||i[6])&&o%3&&!((o+s)%3)){l+=s;continue}if(u-=s,u>0)continue;s=Math.min(s,s+u+l);let m=[...i[0]][0].length,C=t.slice(0,o+i.index+m+s);if(Math.min(o,s)%2){let P=C.slice(1,-1);return{type:"em",raw:C,text:P,tokens:this.lexer.inlineTokens(P)}}let w=C.slice(2,-2);return{type:"strong",raw:C,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(t){let n=this.rules.inline.code.exec(t);if(n){let e=n[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(e),o=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return i&&o&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:n[0],text:e}}}br(t){let n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t,n,e=""){let i=this.rules.inline.delLDelim.exec(t);if(i&&(!i[1]||!e||this.rules.inline.punctuation.exec(e))){let o=[...i[0]].length-1,r,s,u=o,l=this.rules.inline.delRDelim;for(l.lastIndex=0,n=n.slice(-1*t.length+o);(i=l.exec(n))!==null;){if(r=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!r||(s=[...r].length,s!==o))continue;if(i[3]||i[4]){u+=s;continue}if(u-=s,u>0)continue;s=Math.min(s,s+u);let h=[...i[0]][0].length,m=t.slice(0,o+i.index+h+s),C=m.slice(o,-o);return{type:"del",raw:m,text:C,tokens:this.lexer.inlineTokens(C)}}}}autolink(t){let n=this.rules.inline.autolink.exec(t);if(n){let e,i;return n[2]==="@"?(e=n[1],i="mailto:"+e):(e=n[1],i=e),{type:"link",raw:n[0],text:e,href:i,tokens:[{type:"text",raw:e,text:e}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let e,i;if(n[2]==="@")e=n[0],i="mailto:"+e;else{let o;do o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(o!==n[0]);e=n[0],n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:e,href:i,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(t){let n=this.rules.inline.text.exec(t);if(n){let e=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:e}}}},pe=class gn{tokens;options;state;inlineQueue;tokenizer;constructor(n){this.tokens=[],this.tokens.links=Object.create(null),this.options=n||Oe,this.options.tokenizer=this.options.tokenizer||new Pt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let e={other:re,block:Lt.normal,inline:dt.normal};this.options.pedantic?(e.block=Lt.pedantic,e.inline=dt.pedantic):this.options.gfm&&(e.block=Lt.gfm,this.options.breaks?e.inline=dt.breaks:e.inline=dt.gfm),this.tokenizer.rules=e}static get rules(){return{block:Lt,inline:dt}}static lex(n,e){return new gn(e).lex(n)}static lexInline(n,e){return new gn(e).inlineTokens(n)}lex(n){n=n.replace(re.carriageReturn,`
|
|
28
|
+
`),this.blockTokens(n,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let i=this.inlineQueue[e];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(n,e=[],i=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(n=n.replace(re.tabCharGlobal," ").replace(re.spaceLine,""));n;){let o;if(this.options.extensions?.block?.some(s=>(o=s.call({lexer:this},n,e))?(n=n.substring(o.raw.length),e.push(o),!0):!1))continue;if(o=this.tokenizer.space(n)){n=n.substring(o.raw.length);let s=e.at(-1);o.raw.length===1&&s!==void 0?s.raw+=`
|
|
29
|
+
`:e.push(o);continue}if(o=this.tokenizer.code(n)){n=n.substring(o.raw.length);let s=e.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
30
|
+
`)?"":`
|
|
31
|
+
`)+o.raw,s.text+=`
|
|
32
|
+
`+o.text,this.inlineQueue.at(-1).src=s.text):e.push(o);continue}if(o=this.tokenizer.fences(n)){n=n.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.heading(n)){n=n.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.hr(n)){n=n.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.blockquote(n)){n=n.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.list(n)){n=n.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.html(n)){n=n.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.def(n)){n=n.substring(o.raw.length);let s=e.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
33
|
+
`)?"":`
|
|
34
|
+
`)+o.raw,s.text+=`
|
|
35
|
+
`+o.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},e.push(o));continue}if(o=this.tokenizer.table(n)){n=n.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.lheading(n)){n=n.substring(o.raw.length),e.push(o);continue}let r=n;if(this.options.extensions?.startBlock){let s=1/0,u=n.slice(1),l;this.options.extensions.startBlock.forEach(h=>{l=h.call({lexer:this},u),typeof l=="number"&&l>=0&&(s=Math.min(s,l))}),s<1/0&&s>=0&&(r=n.substring(0,s+1))}if(this.state.top&&(o=this.tokenizer.paragraph(r))){let s=e.at(-1);i&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
|
|
36
|
+
`)?"":`
|
|
37
|
+
`)+o.raw,s.text+=`
|
|
38
|
+
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):e.push(o),i=r.length!==n.length,n=n.substring(o.raw.length);continue}if(o=this.tokenizer.text(n)){n=n.substring(o.raw.length);let s=e.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
39
|
+
`)?"":`
|
|
40
|
+
`)+o.raw,s.text+=`
|
|
41
|
+
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):e.push(o);continue}if(n){let s="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,e}inline(n,e=[]){return this.inlineQueue.push({src:n,tokens:e}),e}inlineTokens(n,e=[]){this.tokenizer.lexer=this;let i=n,o=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(i))!==null;)l.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(i))!==null;)i=i.slice(0,o.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let r;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(i))!==null;)r=o[2]?o[2].length:0,i=i.slice(0,o.index+r)+"["+"a".repeat(o[0].length-r-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let s=!1,u="";for(;n;){s||(u=""),s=!1;let l;if(this.options.extensions?.inline?.some(m=>(l=m.call({lexer:this},n,e))?(n=n.substring(l.raw.length),e.push(l),!0):!1))continue;if(l=this.tokenizer.escape(n)){n=n.substring(l.raw.length),e.push(l);continue}if(l=this.tokenizer.tag(n)){n=n.substring(l.raw.length),e.push(l);continue}if(l=this.tokenizer.link(n)){n=n.substring(l.raw.length),e.push(l);continue}if(l=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(l.raw.length);let m=e.at(-1);l.type==="text"&&m?.type==="text"?(m.raw+=l.raw,m.text+=l.text):e.push(l);continue}if(l=this.tokenizer.emStrong(n,i,u)){n=n.substring(l.raw.length),e.push(l);continue}if(l=this.tokenizer.codespan(n)){n=n.substring(l.raw.length),e.push(l);continue}if(l=this.tokenizer.br(n)){n=n.substring(l.raw.length),e.push(l);continue}if(l=this.tokenizer.del(n,i,u)){n=n.substring(l.raw.length),e.push(l);continue}if(l=this.tokenizer.autolink(n)){n=n.substring(l.raw.length),e.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(n))){n=n.substring(l.raw.length),e.push(l);continue}let h=n;if(this.options.extensions?.startInline){let m=1/0,C=n.slice(1),w;this.options.extensions.startInline.forEach(P=>{w=P.call({lexer:this},C),typeof w=="number"&&w>=0&&(m=Math.min(m,w))}),m<1/0&&m>=0&&(h=n.substring(0,m+1))}if(l=this.tokenizer.inlineText(h)){n=n.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(u=l.raw.slice(-1)),s=!0;let m=e.at(-1);m?.type==="text"?(m.raw+=l.raw,m.text+=l.text):e.push(l);continue}if(n){let m="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return e}},Dt=class{options;parser;constructor(t){this.options=t||Oe}space(t){return""}code({text:t,lang:n,escaped:e}){let i=(n||"").match(re.notSpaceStart)?.[0],o=t.replace(re.endingNewline,"")+`
|
|
42
|
+
`;return i?'<pre><code class="language-'+be(i)+'">'+(e?o:be(o,!0))+`</code></pre>
|
|
43
|
+
`:"<pre><code>"+(e?o:be(o,!0))+`</code></pre>
|
|
44
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
45
|
+
${this.parser.parse(t)}</blockquote>
|
|
46
|
+
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
|
|
47
|
+
`}hr(t){return`<hr>
|
|
48
|
+
`}list(t){let n=t.ordered,e=t.start,i="";for(let s=0;s<t.items.length;s++){let u=t.items[s];i+=this.listitem(u)}let o=n?"ol":"ul",r=n&&e!==1?' start="'+e+'"':"";return"<"+o+r+`>
|
|
49
|
+
`+i+"</"+o+`>
|
|
50
|
+
`}listitem(t){return`<li>${this.parser.parse(t.tokens)}</li>
|
|
51
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
52
|
+
`}table(t){let n="",e="";for(let o=0;o<t.header.length;o++)e+=this.tablecell(t.header[o]);n+=this.tablerow({text:e});let i="";for(let o=0;o<t.rows.length;o++){let r=t.rows[o];e="";for(let s=0;s<r.length;s++)e+=this.tablecell(r[s]);i+=this.tablerow({text:e})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
|
|
53
|
+
<thead>
|
|
54
|
+
`+n+`</thead>
|
|
55
|
+
`+i+`</table>
|
|
56
|
+
`}tablerow({text:t}){return`<tr>
|
|
57
|
+
${t}</tr>
|
|
58
|
+
`}tablecell(t){let n=this.parser.parseInline(t.tokens),e=t.header?"th":"td";return(t.align?`<${e} align="${t.align}">`:`<${e}>`)+n+`</${e}>
|
|
59
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${be(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:e}){let i=this.parser.parseInline(e),o=Ii(t);if(o===null)return i;t=o;let r='<a href="'+t+'"';return n&&(r+=' title="'+be(n)+'"'),r+=">"+i+"</a>",r}image({href:t,title:n,text:e,tokens:i}){i&&(e=this.parser.parseInline(i,this.parser.textRenderer));let o=Ii(t);if(o===null)return be(e);t=o;let r=`<img src="${t}" alt="${be(e)}"`;return n&&(r+=` title="${be(n)}"`),r+=">",r}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:be(t.text)}},Tn=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},me=class _n{options;renderer;textRenderer;constructor(n){this.options=n||Oe,this.options.renderer=this.options.renderer||new Dt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Tn}static parse(n,e){return new _n(e).parse(n)}static parseInline(n,e){return new _n(e).parseInline(n)}parse(n){this.renderer.parser=this;let e="";for(let i=0;i<n.length;i++){let o=n[i];if(this.options.extensions?.renderers?.[o.type]){let s=o,u=this.options.extensions.renderers[s.type].call({parser:this},s);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){e+=u||"";continue}}let r=o;switch(r.type){case"space":{e+=this.renderer.space(r);break}case"hr":{e+=this.renderer.hr(r);break}case"heading":{e+=this.renderer.heading(r);break}case"code":{e+=this.renderer.code(r);break}case"table":{e+=this.renderer.table(r);break}case"blockquote":{e+=this.renderer.blockquote(r);break}case"list":{e+=this.renderer.list(r);break}case"checkbox":{e+=this.renderer.checkbox(r);break}case"html":{e+=this.renderer.html(r);break}case"def":{e+=this.renderer.def(r);break}case"paragraph":{e+=this.renderer.paragraph(r);break}case"text":{e+=this.renderer.text(r);break}default:{let s='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return e}parseInline(n,e=this.renderer){this.renderer.parser=this;let i="";for(let o=0;o<n.length;o++){let r=n[o];if(this.options.extensions?.renderers?.[r.type]){let u=this.options.extensions.renderers[r.type].call({parser:this},r);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){i+=u||"";continue}}let s=r;switch(s.type){case"escape":{i+=e.text(s);break}case"html":{i+=e.html(s);break}case"link":{i+=e.link(s);break}case"image":{i+=e.image(s);break}case"checkbox":{i+=e.checkbox(s);break}case"strong":{i+=e.strong(s);break}case"em":{i+=e.em(s);break}case"codespan":{i+=e.codespan(s);break}case"br":{i+=e.br(s);break}case"del":{i+=e.del(s);break}case"text":{i+=e.text(s);break}default:{let u='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return i}},pt=class{options;block;constructor(t){this.options=t||Oe}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(t=this.block){return t?pe.lex:pe.lexInline}provideParser(t=this.block){return t?me.parse:me.parseInline}},wr=class{defaults=bn();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=me;Renderer=Dt;TextRenderer=Tn;Lexer=pe;Tokenizer=Pt;Hooks=pt;constructor(...t){this.use(...t)}walkTokens(t,n){let e=[];for(let i of t)switch(e=e.concat(n.call(this,i)),i.type){case"table":{let o=i;for(let r of o.header)e=e.concat(this.walkTokens(r.tokens,n));for(let r of o.rows)for(let s of r)e=e.concat(this.walkTokens(s.tokens,n));break}case"list":{let o=i;e=e.concat(this.walkTokens(o.items,n));break}default:{let o=i;this.defaults.extensions?.childTokens?.[o.type]?this.defaults.extensions.childTokens[o.type].forEach(r=>{let s=o[r].flat(1/0);e=e.concat(this.walkTokens(s,n))}):o.tokens&&(e=e.concat(this.walkTokens(o.tokens,n)))}}return e}use(...t){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(e=>{let i=ae({},e);if(i.async=this.defaults.async||i.async||!1,e.extensions&&(e.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let r=n.renderers[o.name];r?n.renderers[o.name]=function(...s){let u=o.renderer.apply(this,s);return u===!1&&(u=r.apply(this,s)),u}:n.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let r=n[o.level];r?r.unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&(o.level==="block"?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:o.level==="inline"&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),i.extensions=n),e.renderer){let o=this.defaults.renderer||new Dt(this.defaults);for(let r in e.renderer){if(!(r in o))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let s=r,u=e.renderer[s],l=o[s];o[s]=(...h)=>{let m=u.apply(o,h);return m===!1&&(m=l.apply(o,h)),m||""}}i.renderer=o}if(e.tokenizer){let o=this.defaults.tokenizer||new Pt(this.defaults);for(let r in e.tokenizer){if(!(r in o))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let s=r,u=e.tokenizer[s],l=o[s];o[s]=(...h)=>{let m=u.apply(o,h);return m===!1&&(m=l.apply(o,h)),m}}i.tokenizer=o}if(e.hooks){let o=this.defaults.hooks||new pt;for(let r in e.hooks){if(!(r in o))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let s=r,u=e.hooks[s],l=o[s];pt.passThroughHooks.has(r)?o[s]=h=>{if(this.defaults.async&&pt.passThroughHooksRespectAsync.has(r))return B(this,null,function*(){let C=yield u.call(o,h);return l.call(o,C)});let m=u.call(o,h);return l.call(o,m)}:o[s]=(...h)=>{if(this.defaults.async)return B(this,null,function*(){let C=yield u.apply(o,h);return C===!1&&(C=yield l.apply(o,h)),C});let m=u.apply(o,h);return m===!1&&(m=l.apply(o,h)),m}}i.hooks=o}if(e.walkTokens){let o=this.defaults.walkTokens,r=e.walkTokens;i.walkTokens=function(s){let u=[];return u.push(r.call(this,s)),o&&(u=u.concat(o.call(this,s))),u}}this.defaults=ae(ae({},this.defaults),i)}),this}setOptions(t){return this.defaults=ae(ae({},this.defaults),t),this}lexer(t,n){return pe.lex(t,n??this.defaults)}parser(t,n){return me.parse(t,n??this.defaults)}parseMarkdown(t){return(n,e)=>{let i=ae({},e),o=ae(ae({},this.defaults),i),r=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&i.async===!1)return r(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return r(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return r(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=t),o.async)return B(this,null,function*(){let s=o.hooks?yield o.hooks.preprocess(n):n,u=yield(o.hooks?yield o.hooks.provideLexer(t):t?pe.lex:pe.lexInline)(s,o),l=o.hooks?yield o.hooks.processAllTokens(u):u;o.walkTokens&&(yield Promise.all(this.walkTokens(l,o.walkTokens)));let h=yield(o.hooks?yield o.hooks.provideParser(t):t?me.parse:me.parseInline)(l,o);return o.hooks?yield o.hooks.postprocess(h):h}).catch(r);try{o.hooks&&(n=o.hooks.preprocess(n));let s=(o.hooks?o.hooks.provideLexer(t):t?pe.lex:pe.lexInline)(n,o);o.hooks&&(s=o.hooks.processAllTokens(s)),o.walkTokens&&this.walkTokens(s,o.walkTokens);let u=(o.hooks?o.hooks.provideParser(t):t?me.parse:me.parseInline)(s,o);return o.hooks&&(u=o.hooks.postprocess(u)),u}catch(s){return r(s)}}}onError(t,n){return e=>{if(e.message+=`
|
|
60
|
+
Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+be(e.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(e);throw e}}},Be=new wr;function L(t,n){return Be.parse(t,n)}L.options=L.setOptions=function(t){return Be.setOptions(t),L.defaults=Be.defaults,Bi(L.defaults),L};L.getDefaults=bn;L.defaults=Oe;L.use=function(...t){return Be.use(...t),L.defaults=Be.defaults,Bi(L.defaults),L};L.walkTokens=function(t,n){return Be.walkTokens(t,n)};L.parseInline=Be.parseInline;L.Parser=me;L.parser=me.parse;L.Renderer=Dt;L.TextRenderer=Tn;L.Lexer=pe;L.lexer=pe.lex;L.Tokenizer=Pt;L.Hooks=pt;L.parse=L;var Zs=L.options,Ys=L.setOptions,Qs=L.use,Xs=L.walkTokens,ea=L.parseInline;var ta=me.parse,na=pe.lex;var vn=(()=>{class t{static isMarkedOptionsApplied=!1;static toSanitizedHtml(e){if(t.applyMarkedOptionsOnce(),!(typeof e=="string"?e.trim():"").length)return"";let o=t.normalizeListSeparation(e),r=L.parse(o,{async:!1});if(typeof r!="string")return"";let s=t.wrapPreWithCopyButton(r);return $i.sanitize(s,{ADD_ATTR:["target"]})}static wrapPreWithCopyButton(e){let i='<svg class="ccap-md-copy-btn-icon ccap-md-copy-btn-icon--default" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"></path></svg>',o='<svg class="ccap-md-copy-btn-icon ccap-md-copy-btn-icon--copied" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"></polyline></svg>',r='<svg class="ccap-md-copy-btn-icon ccap-md-copy-btn-icon--failed" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>';return e.replace(/<pre>([\s\S]*?)<\/pre>/g,(s,u)=>`<div class="ccap-md-code-block"><pre>${u}</pre><button type="button" class="ccap-md-copy-btn" aria-label="Copy code block">`+i+o+r+"</button></div>")}static handleCodeCopyClick(e,i){return B(this,null,function*(){let o=e.target;if(!(o instanceof Element))return;let r=o.closest(".ccap-md-copy-btn");if(!(r instanceof HTMLButtonElement))return;e.preventDefault();let s=r.closest(".ccap-md-code-block");if(!(s instanceof HTMLElement))return;let u=s.querySelector("pre");if(!u)return;let l=u.textContent??"";r.disabled=!0;let h=yield i(l);r.classList.remove("is-copied","is-failed"),r.classList.add(h.ok?"is-copied":"is-failed"),r.setAttribute("aria-label",h.ok?"Copied":"Copy failed"),setTimeout(()=>{r.classList.remove("is-copied","is-failed"),r.setAttribute("aria-label","Copy code block"),r.disabled=!1},1200)})}static normalizeListSeparation(e){let i=e.split(`
|
|
61
|
+
`),o=[],r=/^[ ]{0,3}(\d+[.)]|[*\-+])\s+\S/;for(let s=0;s<i.length;s++){let u=i[s];if(s>0&&r.test(u)){let l=i[s-1];l.trim().length>0&&!r.test(l)&&o.push("")}o.push(u)}return o.join(`
|
|
62
|
+
`)}static applyMarkedOptionsOnce(){t.isMarkedOptionsApplied||(L.setOptions({gfm:!0,breaks:!1}),t.isMarkedOptionsApplied=!0)}}return t})();var k=function(t){return t.userPrompt="user-prompt",t.assistant="assistant",t.tool="tool",t.toolResult="tool-result",t.status="status",t.error="error",t.info="info",t.toolGroup="tool-group",t.subAgentGroup="sub-agent-group",t.thinking="thinking",t.runIntent="run-intent",t.iteration="iteration",t.statusUpdate="status-update",t.raw="raw",t.result="result",t}(k||{});var I=en(rn());var An=(()=>{class t{static cachedSummary=null;static isAndroid(){return t.getSummary().isAndroid}static isWebView(){return t.getSummary().isWebView}static isPwaStandalone(){return t.getSummary().isPwaStandalone}static isMobileUa(){return t.getSummary().isMobileUa}static getSummary(){return t.cachedSummary!==null||(t.cachedSummary=t.computeSummary()),t.cachedSummary}static resetCacheForTesting(){t.cachedSummary=null}static computeSummary(){let e=typeof navigator<"u"&&navigator.userAgent?navigator.userAgent:"",i=e.indexOf("Android")!==-1,o=e.indexOf("; wv)")!==-1,r=t.hasGlobalBridge("Capacitor"),s=t.hasGlobalBridge("cordova"),u=o||r||s,l=t.detectPwaStandalone(),h=i||e.indexOf("Mobile")!==-1;return{isAndroid:i,isWebView:u,isPwaStandalone:l,isMobileUa:h,userAgentSnippet:e.slice(0,200)}}static detectPwaStandalone(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(display-mode: standalone)").matches}static hasGlobalBridge(e){return typeof window>"u"?!1:window[e]!=null}}return t})();var F=function(t){return t.idle="idle",t.loading="loading",t.playing="playing",t.paused="paused",t.error="error",t}(F||{});var zt=en(rn());var xe=function(t){return t.uninitialized="uninitialized",t.unavailable="unavailable",t.suspended="suspended",t.running="running",t.closed="closed",t}(xe||{});var Wi=(()=>{class t{state_$=W(xe.uninitialized);audioContext=null;ensureRunning(){return B(this,null,function*(){if(!this.tryCreateAudioContext())return!1;yield this.maybeResumeIfSuspended();let e=this.readNativeState();return this.state_$.set(this.mapNativeState(e)),e==="running"})}readNativeState(){return this.audioContext===null?"closed":this.audioContext.state}maybeResumeIfSuspended(){return B(this,null,function*(){if(this.audioContext!==null&&this.audioContext.state==="suspended")try{yield this.audioContext.resume()}catch(e){zt.DyFM_Log.warn("[CCAP_AudioContextManager] AudioContext.resume() rejected (likely no user gesture yet):",e)}})}getAudioContext(){return this.audioContext}resetForTesting(){this.audioContext!==null&&this.audioContext.close().catch(()=>{}),this.audioContext=null,this.state_$.set(xe.uninitialized)}tryCreateAudioContext(){if(this.audioContext!==null)return!0;if(typeof AudioContext>"u")return zt.DyFM_Log.warn("[CCAP_AudioContextManager] AudioContext is not available in this browser; TTS playback may not work on Android WebView."),this.state_$.set(xe.unavailable),!1;try{return this.audioContext=new AudioContext,this.state_$.set(this.mapNativeState(this.audioContext.state)),this.audioContext.onstatechange=()=>{let e=this.audioContext;e!==null&&this.state_$.set(this.mapNativeState(e.state))},!0}catch(e){return zt.DyFM_Log.warn("[CCAP_AudioContextManager] AudioContext construction failed:",e),this.state_$.set(xe.unavailable),!1}}mapNativeState(e){switch(e){case"running":return xe.running;case"suspended":return xe.suspended;case"closed":return xe.closed;default:return xe.uninitialized}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var qi=(()=>{class t{voiceSttQaUi_DS=le(vt);audioContextManager_CS=le(Wi);globalError_CS=le(Tt);currentMessageKey_$=W(null);state_$=W(F.idle);error_$=W(null);volume_$=W(1);isUserGestureObserved=!1;currentAudio=null;currentBlobUrl=null;isActive(e){return S(()=>{if(this.currentMessageKey_$()!==e)return!1;let i=this.state_$();return i!==F.idle&&i!==F.error})}isLoading(e){return S(()=>this.currentMessageKey_$()===e&&this.state_$()===F.loading)}playMessage(e){return B(this,null,function*(){if(I.DyFM_Log.info(`[CCAP_VoiceTtsSession] playMessage START \u2014 messageKey=${e.messageKey} sessionId=${e.sessionId} role=${e.role} contentLen=${e.content.length} isUserGesture=${e.isUserGesture} prevState=${this.state_$()} prevMessageKey=${this.currentMessageKey_$()}`),e.isUserGesture&&(this.isUserGestureObserved=!0),this.currentMessageKey_$()===e.messageKey){let s=this.state_$();if(s===F.playing||s===F.paused)return I.DyFM_Log.info("[CCAP_VoiceTtsSession] playMessage: toggle-stop on same key"),this.stop(),!1;if(s===F.loading)return I.DyFM_Log.info("[CCAP_VoiceTtsSession] playMessage: ignored (already loading same key)"),!1}this.cleanupAudio(),this.currentMessageKey_$.set(e.messageKey),this.state_$.set(F.loading),this.error_$.set(null),I.DyFM_Log.info("[CCAP_VoiceTtsSession] step 1: ensureRunning() AudioContext");let i=yield this.audioContextManager_CS.ensureRunning();I.DyFM_Log.info(`[CCAP_VoiceTtsSession] step 1 done \u2014 audioContextRunning=${i}`),i||I.DyFM_Log.warn("[CCAP_VoiceTtsSession] AudioContext not running before playback \u2014 attempting <audio>.play() anyway (may work on desktop / browser tab)"),I.DyFM_Log.info("[CCAP_VoiceTtsSession] step 2: getOrCreateTtsMessageAudio() fetch START");let o=Date.now(),r;try{r=yield this.voiceSttQaUi_DS.getOrCreateTtsMessageAudio({sessionId:e.sessionId,role:e.role,content:e.content,timestamp:e.timestampIso}),I.DyFM_Log.info(`[CCAP_VoiceTtsSession] step 2 done \u2014 fetch elapsed=${Date.now()-o}ms blobSize=${r.size} blobType=${r.type}`)}catch(s){let u=t.serializeError(s);return I.DyFM_Log.warn(`[CCAP_VoiceTtsSession] step 2 FAILED after ${Date.now()-o}ms \u2014 name=${u.name} message=${u.message}`),yield this.handlePlaybackFailure({req:e,blob:void 0,audio:null,playError:s,mediaError:null,usedFallback:!1,attemptedPath:"blob-only"}),!1}return I.DyFM_Log.info("[CCAP_VoiceTtsSession] step 3: attemptPlayback()"),this.attemptPlayback({req:e,blob:r})})}pause(){this.state_$()===F.playing&&this.currentAudio!==null&&(this.currentAudio.pause(),this.state_$.set(F.paused))}resume(){return B(this,null,function*(){if(this.state_$()===F.paused&&this.currentAudio!==null)try{yield this.currentAudio.play(),this.state_$.set(F.playing)}catch(e){I.DyFM_Log.warn("[CCAP_VoiceTtsSession] resume() play() rejected:",e),this.state_$.set(F.error);let i=this.currentMessageKey_$();i!==null&&this.error_$.set({messageKey:i,message:"Felolvas\xE1s folytat\xE1sa nem siker\xFClt.",hint:e instanceof Error?e.message:String(e)})}})}stop(){this.cleanupAudio(),this.currentMessageKey_$.set(null),this.state_$.set(F.idle)}setVolume(e){let i=Math.max(0,Math.min(1,e));this.volume_$.set(i),this.currentAudio!==null&&(this.currentAudio.volume=i)}clearError(){this.error_$.set(null)}resetForTesting(){this.cleanupAudio(),this.currentMessageKey_$.set(null),this.state_$.set(F.idle),this.error_$.set(null),this.volume_$.set(1),this.isUserGestureObserved=!1}createAudio(e){return new Audio(e)}static serializeError(e){if(e===null)return{name:"null",message:"null",extra:{}};if(e===void 0)return{name:"undefined",message:"undefined",extra:{}};if(typeof e=="object"&&e!==null&&"code"in e&&"MEDIA_ERR_ABORTED"in e){let i=e,o=t.mediaErrorCodeName(i.code);return{name:"MediaError",message:i.message||`MediaError code=${i.code} (${o})`,code:i.code,codeText:o,extra:{mediaErrorRawMessage:i.message}}}if(e instanceof DOMException)return{name:e.name||"DOMException",message:e.message||"(empty DOMException message)",code:e.code,stack:e.stack,extra:{domExceptionConstructor:e.constructor.name}};if(e instanceof Error){let i={};for(let o of Object.getOwnPropertyNames(e))o!=="name"&&o!=="message"&&o!=="stack"&&(i[o]=e[o]);return{name:e.name,message:e.message,stack:e.stack,extra:i}}if(typeof e=="object"){let i;try{i=JSON.stringify(e)}catch{i="(unserializable object)"}return{name:"object",message:i.length<500?i:i.slice(0,500)+"...",extra:{jsTypeOf:typeof e,jsonRepresentation:i}}}return{name:typeof e,message:String(e),extra:{jsTypeOf:typeof e}}}static mediaErrorCodeName(e){switch(e){case 1:return"MEDIA_ERR_ABORTED";case 2:return"MEDIA_ERR_NETWORK";case 3:return"MEDIA_ERR_DECODE";case 4:return"MEDIA_ERR_SRC_NOT_SUPPORTED";default:return`unknown(${e})`}}static diagnoseAudioBlobMagic(e){return B(this,null,function*(){if(e==null||e.size<4)return null;try{let o=yield e.slice(0,16).arrayBuffer(),r=new Uint8Array(o),s=Array.from(r).map(ve=>ve.toString(16).padStart(2,"0").toUpperCase()).join(" "),u=r[0],l=r[1],h=r[2],m=u===255&&(l===251||l===243||l===242||l===250||l===244),C=u===73&&l===68&&h===51,w=Math.max(0,e.size-128),R=yield e.slice(w,w+16).arrayBuffer(),H=new Uint8Array(R),Ee=Array.from(H).map(ve=>ve.toString(16).padStart(2,"0").toUpperCase()).join(" "),Te=e.size>=128&&H[0]===84&&H[1]===65&&H[2]===71;return{magicHex:s,tailHex:Ee,isMp3Magic:m||C,hasId3v1Footer:Te,blobSize:e.size}}catch{return null}})}attemptPlayback(e){return B(this,null,function*(){let i=URL.createObjectURL(e.blob);this.currentBlobUrl=i,I.DyFM_Log.info(`[CCAP_VoiceTtsSession] attemptPlayback (a) blob path \u2014 blobUrl=${i} blobSize=${e.blob.size} blobType=${e.blob.type}`);let o=this.createAudio(i);o.volume=this.volume_$(),this.currentAudio=o,this.attachLifecycleHandlers(o);let r=yield this.tryPlayWithAutoplayPolicy({audio:o,isUserGesture:e.req.isUserGesture});if(r.ok)return this.state_$.set(F.playing),!0;let s=r.playError,u=o.error,l=this.voiceSttQaUi_DS.getTtsMessageAudioUrl(e.req.messageKey);if(l.length===0)return I.DyFM_Log.warn("[CCAP_VoiceTtsSession] no direct URL fallback available \u2014 failing with blob error"),yield this.handlePlaybackFailure({req:e.req,blob:e.blob,audio:o,playError:s,mediaError:u,usedFallback:!1,attemptedPath:"blob-only"}),!1;I.DyFM_Log.info(`[CCAP_VoiceTtsSession] attemptPlayback (b) direct URL fallback \u2014 directUrl=${l} (blob path failed: ${t.serializeError(s).message})`),URL.revokeObjectURL(i),this.currentBlobUrl=null;let h=this.createAudio(l);h.volume=this.volume_$(),this.currentAudio=h,this.attachLifecycleHandlers(h);let m=yield this.tryPlayWithAutoplayPolicy({audio:h,isUserGesture:e.req.isUserGesture});return m.ok?(this.state_$.set(F.playing),!0):(yield this.handlePlaybackFailure({req:e.req,blob:e.blob,audio:h,playError:m.playError,mediaError:h.error,blobPathPlayError:s,blobPathMediaError:u,usedFallback:!0,attemptedPath:"blob+direct"}),!1)})}tryPlayWithAutoplayPolicy(e){return B(this,null,function*(){let i=!e.isUserGesture&&!this.isUserGestureObserved&&An.isMobileUa();i?e.audio.muted=!0:e.audio.muted=!1,I.DyFM_Log.info(`[CCAP_VoiceTtsSession] play() attempt \u2014 isUserGesture=${e.isUserGesture} isUserGestureObserved=${this.isUserGestureObserved} requiresMutedAutoplay=${i} muted=${e.audio.muted} volume=${e.audio.volume} src=${e.audio.src.slice(0,60)}`);try{return yield e.audio.play(),i&&(e.audio.muted=!1),I.DyFM_Log.info(`[CCAP_VoiceTtsSession] play() resolved \u2014 readyState=${e.audio.readyState} networkState=${e.audio.networkState} paused=${e.audio.paused} duration=${e.audio.duration}`),{ok:!0}}catch(o){let r=t.serializeError(o);I.DyFM_Log.warn(`[CCAP_VoiceTtsSession] play() rejected (requiresMutedAutoplay=${i}) \u2014 name=${r.name} message=${r.message} audio.readyState=${e.audio.readyState} networkState=${e.audio.networkState} audio.error.code=${e.audio.error?.code} audio.error.message=${e.audio.error?.message??""}`);let s=o instanceof DOMException&&o.name==="NotAllowedError",u=this.currentMessageKey_$();return s&&u!==null&&(this.error_$.set({messageKey:u,message:"A b\xF6ng\xE9sz\u0151 az automatikus hanglej\xE1tsz\xE1st blokkolta. Koppints a felolvas\xE1s gombra a folytat\xE1shoz.",hint:"Autoplay policy \u2014 user gesture required"}),this.state_$.set(F.error)),{ok:!1,playError:o}}})}attachLifecycleHandlers(e){e.onended=()=>{I.DyFM_Log.info("[CCAP_VoiceTtsSession] audio onended \u2014 playback complete"),this.cleanupAudio(),this.currentMessageKey_$.set(null),this.state_$.set(F.idle)},e.onerror=i=>{let o=t.serializeError(e.error);I.DyFM_Log.warn("[CCAP_VoiceTtsSession] audio.onerror fired",{eventType:typeof i=="string"?i:i.type,mediaError:o,readyState:e.readyState,networkState:e.networkState,currentSrc:e.currentSrc})},e.onloadstart=()=>{I.DyFM_Log.info("[CCAP_VoiceTtsSession] audio onloadstart")},e.onloadedmetadata=()=>{I.DyFM_Log.info(`[CCAP_VoiceTtsSession] audio onloadedmetadata \u2014 duration=${e.duration}s readyState=${e.readyState}`)},e.oncanplay=()=>{I.DyFM_Log.info("[CCAP_VoiceTtsSession] audio oncanplay \u2014 has enough data to start")},e.onstalled=()=>{I.DyFM_Log.warn("[CCAP_VoiceTtsSession] audio onstalled \u2014 fetch is taking too long")},e.onabort=()=>{I.DyFM_Log.warn("[CCAP_VoiceTtsSession] audio onabort")}}handlePlaybackFailure(e){return B(this,null,function*(){if(this.error_$()?.hint?.indexOf("Autoplay policy")===0){I.DyFM_Log.info("[CCAP_VoiceTtsSession] handlePlaybackFailure \u2014 autoplay-block early-return"),this.state_$.set(F.error),this.cleanupAudio();return}let i=yield t.diagnoseAudioBlobMagic(e.blob),r=(e.mediaError?.code??e.audio?.error?.code)===4,s=r&&i!==null&&!i.isMp3Magic&&(e.blob?.type==="audio/mpeg"||e.blob?.type===""),u=i!==null&&i.isMp3Magic&&i.magicHex.startsWith("49 44 33 04"),l=r&&u,h=t.serializeError(e.playError),m=e.mediaError!=null?t.serializeError(e.mediaError):null,C=e.blobPathPlayError!=null?t.serializeError(e.blobPathPlayError):null,w=e.blobPathMediaError!=null?t.serializeError(e.blobPathMediaError):null,P={messageKey:e.req.messageKey,sessionId:e.req.sessionId,role:e.req.role,contentLength:e.req.content.length,timestampIso:e.req.timestampIso,isUserGesture:e.req.isUserGesture,attemptedPath:e.attemptedPath,usedDirectUrlFallback:e.usedFallback,audioReadyState:e.audio?.readyState,audioNetworkState:e.audio?.networkState,audioCurrentSrc:e.audio?.currentSrc,audioDuration:e.audio?.duration,audioPaused:e.audio?.paused,audioMuted:e.audio?.muted,audioVolume:e.audio?.volume,playError:h,mediaError:m,blobPathPlayError:C,blobPathMediaError:w,blobSize:e.blob?.size,blobType:e.blob?.type,payloadMagicHex:i?.magicHex,payloadTailHex:i?.tailHex,isMp3Magic:i?.isMp3Magic,hasId3v1Footer:i?.hasId3v1Footer,isId3v2DotFour:u,isBrowserCodecRejectId3v24:l,isPayloadCorruptionLikely:s,deviceSummary:An.getSummary(),diagnosticHint:l?"REQ-TTS-ID3-COMPAT-001: browser codec rejected an ID3v2.4-tagged MP3 (valid magic 49 44 33 04). Server-side ID3-strip needed; client cannot work around without MediaSource Extensions.":s?"TTS provider returned non-MP3 payload despite audio/mpeg MIME \u2014 first bytes do not match MP3 magic. Provider/server-side audio generation likely corrupted.":r?`MEDIA_ERR_SRC_NOT_SUPPORTED \u2014 browser refused to decode (audioErrorCode=4, magic=${i?.magicHex}, tail=${i?.tailHex}, hasId3v1Footer=${i?.hasId3v1Footer}). Try alternative ElevenLabs output format (e.g. mp3_44100_64 or pcm_16000) or server-side re-encode.`:"TTS playback failed without MEDIA_ERR_SRC_NOT_SUPPORTED \u2014 see playError + mediaError for details."};I.DyFM_Log.warn("[CCAP_VoiceTtsSession] handlePlaybackFailure DETAILED:",P);let R=l?`TTS playback failed (browser codec rejected ID3v2.4 MP3, magic=${i?.magicHex})`:s?`TTS playback failed (payload corruption \u2014 magic=${i?.magicHex})`:r?`TTS playback failed (MEDIA_ERR_SRC_NOT_SUPPORTED, magic=${i?.magicHex})`:"TTS playback failed",H=[m!==null?`mediaError=${m.name}/${m.codeText??m.code??""}: ${m.message}`:null,h.name!=="undefined"&&h.name!=="null"?`playError=${h.name}: ${h.message}`:null].filter(Te=>Te!==null).join(" | "),Ee=Object.assign(new Error(`${R}${H.length>0?" \u2014 "+H:""}`),{errorCode:l?"CCAP-TTS-ID3V24-REJECT":"CCAP-TTS-PLAY-FAIL",additionalContent:P});this.globalError_CS.showError(Ee,"ccap-voice-tts-session"),this.error_$.set({messageKey:e.req.messageKey,message:l?"A b\xF6ng\xE9sz\u0151 nem t\xE1mogatja az ID3v2.4 fejl\xE9ces MP3-at (server-side fix sz\xFCks\xE9ges).":r?`A b\xF6ng\xE9sz\u0151 nem tudta dek\xF3dolni a TTS audi\xF3t (${m?.codeText??"codec"}).`:"A felolvas\xE1s nem siker\xFClt.",hint:l?`ID3v2.4 codec-reject \u2014 magic ${i?.magicHex}`:s?`Payload corruption: ${i?.magicHex}`:H.length>0?H:"Unknown failure (no error details captured)"}),this.state_$.set(F.error),this.cleanupAudio()})}cleanupAudio(){if(this.currentAudio!==null){try{this.currentAudio.pause()}catch(e){I.DyFM_Log.warn("[CCAP_VoiceTtsSession] cleanupAudio pause() failed (likely already paused):",e)}this.currentAudio.onended=null,this.currentAudio.src="",this.currentAudio=null}this.currentBlobUrl!==null&&(URL.revokeObjectURL(this.currentBlobUrl),this.currentBlobUrl=null)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Qe=class t{static hasBubbleRawSources(n){let e=t.recordHasKeys(n.rawData),i=t.recordHasKeys(n.pairedResult?.rawData);return e||i}static ccItemHasAnyRaw(n){let e=t.recordHasKeys(n.rawData),i=t.recordHasKeys(n.pairedResult?.rawData);return e||i}static buildForBubbleView(n){return t.buildBundle({primary:n.rawData,paired:n.pairedResult?.rawData})}static buildForCcConsoleItem(n){return t.buildBundle({primary:n.rawData,paired:n.pairedResult?.rawData})}static recordHasKeys(n){return n!==void 0&&Object.keys(n).length>0}static buildBundle(n){let e=n.primary,i=n.paired,o=t.streamPartsFromRaw(e),r=o.length>1,s={};t.recordHasKeys(e)&&(s.primaryMessageOrToolCall=e),t.recordHasKeys(i)&&(s.pairedToolResult=i);let u="{}",l=Object.keys(s);l.length===1&&s.primaryMessageOrToolCall!==void 0?u=JSON.stringify(s.primaryMessageOrToolCall,null,2):l.length>0&&(u=JSON.stringify(s,null,2));let h=r&&t.recordHasKeys(e)?t.primaryWithoutChunkSnapshots(e):e;return{copyJsonString:u,primaryJson:t.stringifyRecord(h),pairedJson:t.stringifyRecord(i),streamParts:o,showStreamBreakdown:r}}static primaryWithoutChunkSnapshots(n){let e={};for(let i of Object.keys(n))i!=="chunkSnapshots"&&(e[i]=n[i]);return e}static stringifyRecord(n){return t.recordHasKeys(n)?JSON.stringify(n,null,2):null}static streamPartsFromRaw(n){if(!n||n.streamMerged!==!0)return[];let e=n.chunkSnapshots;if(!Array.isArray(e))return[];let i=[];for(let o=0;o<e.length;o+=1){let r=e[o],s;try{s=JSON.stringify(r,null,2)}catch{s=String(r)}i.push({trackKey:`stream-chunk-${String(o)}`,index:o,json:s})}return i}};var Ki="ccap-autoReadAssistantTts",Nt=class t{static saveEnabledSince(n,e){sn.writeString(`${Ki}:${n}`,e)}static loadEnabledSince(n){return sn.readString(`${Ki}:${n}`)??""}static isEnabled(n){return t.loadEnabledSince(n).length>0}static toggle(n){return t.isEnabled(n)?(t.saveEnabledSince(n,""),!1):(t.saveEnabledSince(n,new Date().toISOString()),!0)}static shouldAutoPlay(n,e){let i=t.loadEnabledSince(n);return!i||!e?!1:e>=i}};var Ji=(()=>{class t{sanitizer;constructor(e){this.sanitizer=e}transform(e){if(!e)return this.sanitizer.bypassSecurityTrustHtml("");let i,o;try{let m=JSON.parse(e);if(typeof m.old=="string"&&typeof m.new=="string")i=m.old,o=m.new;else return this.sanitizer.bypassSecurityTrustHtml(this.escapeHtml(e))}catch{return this.sanitizer.bypassSecurityTrustHtml(this.escapeHtml(e))}let r=i.split(`
|
|
63
|
+
`),s=o.split(`
|
|
64
|
+
`),u=this.computeLineDiff(r,s),h=this.enrichWithCharDiff(u).map(m=>this.renderDiffLine(m)).join(`
|
|
65
|
+
`);return this.sanitizer.bypassSecurityTrustHtml(h)}computeLineDiff(e,i){let o=e.length,r=i.length,s=[];for(let m=0;m<=o;m++)s[m]=new Array(r+1).fill(0);for(let m=1;m<=o;m++)for(let C=1;C<=r;C++)e[m-1]===i[C-1]?s[m][C]=s[m-1][C-1]+1:s[m][C]=s[m-1][C]>s[m][C-1]?s[m-1][C]:s[m][C-1];let u=[],l=o,h=r;for(;l>0||h>0;)l>0&&h>0&&e[l-1]===i[h-1]?(u.unshift({type:"unchanged",text:e[l-1]}),l--,h--):h>0&&(l===0||s[l][h-1]>=s[l-1][h])?(u.unshift({type:"added",text:i[h-1]}),h--):(u.unshift({type:"removed",text:e[l-1]}),l--);return u}enrichWithCharDiff(e){let i=[],o=0;for(;o<e.length;){if(e[o].type!=="removed"){i.push(e[o]),o++;continue}let r=[];for(;o<e.length&&e[o].type==="removed";)r.push(e[o]),o++;let s=[];for(;o<e.length&&e[o].type==="added";)s.push(e[o]),o++;let u=Math.min(r.length,s.length);for(let l=0;l<u;l++){let h=this.computeCharDiff(r[l].text,s[l].text);r[l].segments=h.oldSegs,s[l].segments=h.newSegs}i.push(...r,...s)}return i}computeCharDiff(e,i){let o=Math.min(e.length,i.length),r=0;for(;r<o&&e[r]===i[r];)r++;let s=0;for(;s<o-r&&e[e.length-1-s]===i[i.length-1-s];)s++;let u=e.substring(0,r),l=s>0?e.substring(e.length-s):"",h=e.substring(r,e.length-s),m=i.substring(r,i.length-s),C=[],w=[];return u&&(C.push({text:u,isChanged:!1}),w.push({text:u,isChanged:!1})),h&&C.push({text:h,isChanged:!0}),m&&w.push({text:m,isChanged:!0}),l&&(C.push({text:l,isChanged:!1}),w.push({text:l,isChanged:!1})),{oldSegs:C,newSegs:w}}renderDiffLine(e){return e.type==="unchanged"?`<span class="text-neutral-500"> ${this.escapeHtml(e.text)}</span>`:e.type==="removed"?`<span class="text-red-400/70">\u2212 ${e.segments?e.segments.map(r=>r.isChanged?`<span class="bg-red-500/25 text-red-300 rounded-sm">${this.escapeHtml(r.text)}</span>`:this.escapeHtml(r.text)).join(""):this.escapeHtml(e.text)}</span>`:`<span class="text-green-400/80">+ ${e.segments?e.segments.map(o=>o.isChanged?`<span class="bg-green-500/25 text-green-300 rounded-sm">${this.escapeHtml(o.text)}</span>`:this.escapeHtml(o.text)).join(""):this.escapeHtml(e.text)}</span>`}escapeHtml(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}static \u0275fac=function(i){return new(i||t)(ti(Et,16))};static \u0275pipe=ei({name:"sEditDiff",type:t,pure:!0,standalone:!0})}return t})();var Zi=(t,n)=>n.listKey,Sr=(t,n)=>n.trackKey,Yi=()=>[];function Er(t,n){t&1&&E(0,"span",9)}function Tr(t,n){t&1&&(c(0,"span",16),g(1,"+ error"),d())}function vr(t,n){t&1&&(c(0,"span",17),g(1,"+ result"),d())}function Ar(t,n){if(t&1&&A(0,Tr,2,0,"span",16)(1,vr,2,0,"span",17),t&2){let e,i=_(2);y(((e=i.view().pairedResult)==null?null:e.isError)===!0?0:1)}}function $r(t,n){if(t&1){let e=U();c(0,"button",18),N("click",function(o){O(e);let r=_(2);return o.stopPropagation(),z(r.handleToggleRawInfo())}),ce(),c(1,"svg",19),E(2,"circle",20)(3,"path",21)(4,"path",22),d()()}if(t&2){let e=_(2);K(e.bubbleActionButtonClass),p(),Pe("class",e.bubbleActionIconClass)}}function Mr(t,n){if(t&1&&E(0,"app-s-copy-button",15),t&2){let e=_(2);$("content",e.copyContent_$())}}function Rr(t,n){if(t&1&&(c(0,"div",23)(1,"div",25),g(2,"Input"),d(),c(3,"pre",26),g(4),d()()),t&2){let e=_(3);p(4),v(e.toolInputFormatted_$())}}function Lr(t,n){t&1&&(c(0,"div",24)(1,"div",25),g(2,"Result"),d(),E(3,"div",27),d()),t&2&&(p(3),$("innerHTML",n,kt))}function Ir(t,n){if(t&1&&(c(0,"div",24)(1,"div",25),g(2,"Result"),d(),E(3,"div",28),X(4,"sEditDiff"),c(5,"div",29),E(6,"app-s-copy-button",30),d()()),t&2){let e,i,o=_(3);p(3),$("innerHTML",ee(4,2,(e=o.view().expandableContent)!==null&&e!==void 0?e:""),kt),p(3),$("content",(i=o.view().expandableContent)!==null&&i!==void 0?i:"")}}function Pr(t,n){if(t&1&&(c(0,"div",24)(1,"div",25),g(2,"Result"),d(),c(3,"pre",31),g(4),d(),c(5,"div",29),E(6,"app-s-copy-button",30),d()()),t&2){let e,i=_(3);p(4),v(i.formattedExpandable_$()),p(2),$("content",(e=i.view().expandableContent)!==null&&e!==void 0?e:"")}}function Dr(t,n){if(t&1&&(c(0,"div",32)(1,"div",25),g(2,"Error"),d(),c(3,"pre",33),g(4),d()()),t&2){let e=_();p(4),v(e.expandableContent||e.text)}}function Br(t,n){if(t&1&&(c(0,"div",24)(1,"div",25),g(2,"Result"),d(),c(3,"pre",31),g(4),d()()),t&2){let e=_();p(4),v(e.expandableContent||e.text)}}function Or(t,n){t&1&&A(0,Dr,5,1,"div",32)(1,Br,5,1,"div",24),t&2&&y(n.isError===!0?0:1)}function zr(t,n){if(t&1&&A(0,Or,2,1),t&2){let e,i=_(3);y((e=i.view().pairedResult)?0:-1,e)}}function Nr(t,n){if(t&1&&A(0,Rr,5,1,"div",23)(1,Lr,4,1,"div",24)(2,Ir,7,4,"div",24)(3,Pr,7,2,"div",24)(4,zr,1,1),t&2){let e,i=_(2);y(i.toolInputFormatted_$()?0:-1),p(),y((e=i.safeExpandableHtml_$())?1:i.view().expandableContent&&i.useEditDiffForExpandable_$()?2:i.view().expandableContent?3:i.view().pairedResult?4:-1,e)}}function Fr(t,n){if(t&1){let e=U();c(0,"div",7)(1,"div",8),N("click",function(){O(e);let o=_();return z(o.handleToggleExpand())}),A(2,Er,1,0,"span",9),c(3,"span",10),g(4),d(),c(5,"span",11),X(6,"sAbsoluteTime"),g(7),X(8,"sTimeAgo"),d(),A(9,Ar,2,1),E(10,"div",12),c(11,"span",13),g(12),d(),A(13,$r,5,3,"button",14)(14,Mr,1,1,"app-s-copy-button",15),d(),A(15,Nr,5,2),d()}if(t&2){let e,i=_();K(i.bubbleClass_$()),p(2),y(i.view().headerStatusDot==="error"?2:-1),p(2),v(i.toolName_$()),p(),$("title",ee(6,11,i.timestampDisplay_$())),p(2),v(ee(8,13,i.timestampDisplay_$())),p(2),y(i.view().expandableContent||(e=i.view().pairedResult)!=null&&e.expandableContent||(e=i.view().pairedResult)!=null&&e.text?9:-1),p(3),v(i.isExpanded_$()?"\u25BC":"\u25B6"),p(),y(i.showRawInfo_$()?13:-1),p(),y(i.showCopy_$()?14:-1),p(),y(i.isExpanded_$()?15:-1)}}function Ur(t,n){if(t&1){let e=U();c(0,"button",18),N("click",function(){O(e);let o=_(2);return z(o.handleToggleRawInfo())}),ce(),c(1,"svg",19),E(2,"circle",20)(3,"path",21)(4,"path",22),d()()}if(t&2){let e=_(2);K(e.bubbleActionButtonClass),p(),Pe("class",e.bubbleActionIconClass)}}function Hr(t,n){if(t&1&&E(0,"app-s-copy-button",38),t&2){let e=_(2);$("content",e.copyContent_$())}}function Vr(t,n){t&1&&E(0,"span",44)}function Gr(t,n){t&1&&(ce(),c(0,"svg",45),E(1,"polygon",46)(2,"path",47),d())}function jr(t,n){if(t&1){let e=U();c(0,"button",43),N("click",function(){O(e);let o=_(2);return z(o.handleTtsPlayClick())}),A(1,Vr,1,0,"span",44)(2,Gr,3,0,":svg:svg",45),d()}if(t&2){let e=_(2);K(e.bubbleActionButtonClass),$("disabled",e.ttsLoading_$()),p(),y(e.ttsLoading_$()?1:2)}}function Wr(t,n){if(t&1){let e=U();c(0,"img",49),N("click",function(){let o=O(e).$implicit,r=_(3);return z(r.handleImageClick(o))}),d()}if(t&2){let e=n.$implicit;$("src",e,wt)}}function qr(t,n){if(t&1&&(c(0,"div",40),$e(1,Wr,1,1,"img",48,St),d()),t&2){let e=_(2);p(),Me(e.view().imageDataUrls)}}function Kr(t,n){t&1&&E(0,"audio",42),t&2&&$("src",n,wt)}function Jr(t,n){if(t&1&&(c(0,"div",34)(1,"div",35)(2,"span",36),g(3,"User"),d(),c(4,"span",11),X(5,"sAbsoluteTime"),g(6),X(7,"sTimeAgo"),d(),E(8,"div",12),c(9,"div",37),A(10,Ur,5,3,"button",14)(11,Hr,1,1,"app-s-copy-button",38)(12,jr,3,4,"button",39),d()(),A(13,qr,3,0,"div",40),c(14,"div",41),g(15),d(),A(16,Kr,1,1,"audio",42),d()),t&2){let e,i,o=_();K(o.bubbleClass_$()),p(4),$("title",ee(5,10,o.timestampDisplay_$())),p(2),v(ee(7,12,o.timestampDisplay_$())),p(4),y(o.showRawInfo_$()?10:-1),p(),y(o.showCopy_$()?11:-1),p(),y(o.showTtsButton_$()?12:-1),p(),y((e=o.view().imageDataUrls)!=null&&e.length?13:-1),p(2),v(o.view().bodyText),p(),y((i=o.ttsAudioUrl_$())?16:-1,i)}}function Zr(t,n){if(t&1){let e=U();c(0,"button",18),N("click",function(){O(e);let o=_(2);return z(o.handleToggleRawInfo())}),ce(),c(1,"svg",19),E(2,"circle",20)(3,"path",21)(4,"path",22),d()()}if(t&2){let e=_(2);K(e.bubbleActionButtonClass),p(),Pe("class",e.bubbleActionIconClass)}}function Yr(t,n){if(t&1&&E(0,"app-s-copy-button",51),t&2){let e=_(2);$("content",e.copyContent_$())}}function Qr(t,n){t&1&&E(0,"span",54)}function Xr(t,n){t&1&&(ce(),c(0,"svg",45),E(1,"polygon",46)(2,"path",47),d())}function es(t,n){if(t&1){let e=U();c(0,"button",43),N("click",function(){O(e);let o=_(2);return z(o.handleTtsPlayClick())}),A(1,Qr,1,0,"span",54)(2,Xr,3,0,":svg:svg",45),d()}if(t&2){let e=_(2);K(e.bubbleActionButtonClass),$("disabled",e.ttsLoading_$()),p(),y(e.ttsLoading_$()?1:2)}}function ts(t,n){if(t&1&&(c(0,"pre",52),g(1),d()),t&2){let e=_(2);p(),v(e.displayBody_$())}}function ns(t,n){if(t&1&&(c(0,"div",41),g(1),d()),t&2){let e=_(3);p(),v(e.displayBody_$())}}function is(t,n){if(t&1){let e=U();c(0,"div",56),N("click",function(o){O(e);let r=_(4);return z(r.handleAssistantMdClick(o))}),d()}t&2&&$("innerHTML",n,kt)}function os(t,n){if(t&1&&(c(0,"div",41),g(1),d()),t&2){let e=_(4);p(),v(e.displayBody_$())}}function rs(t,n){if(t&1&&A(0,is,1,1,"div",55)(1,os,2,1,"div",41),t&2){let e,i=_(3);y((e=i.assistantMarkdownSafeHtml_$())?0:1,e)}}function ss(t,n){if(t&1&&A(0,ns,2,1,"div",41)(1,rs,2,1),t&2){let e=_(2);y(e.isTruncatable_$()&&!e.isAssistantBodyExpanded_$()?0:1)}}function as(t,n){t&1&&E(0,"audio",42),t&2&&$("src",n,wt)}function ls(t,n){if(t&1){let e=U();c(0,"button",57),N("click",function(){O(e);let o=_(2);return z(o.handleToggleAssistantBodyExpand())}),g(1),d()}if(t&2){let e=_(2);p(),tn(" ",e.isAssistantBodyExpanded_$()?"Less":e.contentLineCount_$()+" lines \u2014 show full"," ")}}function cs(t,n){if(t&1&&(c(0,"div",34)(1,"div",35)(2,"span",50),g(3,"Assistant"),d(),c(4,"span",11),X(5,"sAbsoluteTime"),g(6),X(7,"sTimeAgo"),d(),E(8,"div",12),c(9,"div",37),A(10,Zr,5,3,"button",14)(11,Yr,1,1,"app-s-copy-button",51)(12,es,3,4,"button",39),d()(),A(13,ts,2,1,"pre",52)(14,ss,2,1)(15,as,1,1,"audio",42)(16,ls,2,1,"button",53),d()),t&2){let e,i=_();K(i.bubbleClass_$()),p(4),$("title",ee(5,10,i.timestampDisplay_$())),p(2),v(ee(7,12,i.timestampDisplay_$())),p(4),y(i.showRawInfo_$()?10:-1),p(),y(i.showCopy_$()?11:-1),p(),y(i.showTtsButton_$()?12:-1),p(),y(i.isJson_$()?13:14),p(2),y((e=i.ttsAudioUrl_$())?15:-1,e),p(),y(i.isTruncatable_$()?16:-1)}}function ds(t,n){if(t&1&&(c(0,"span",62),g(1),d()),t&2){let e=_(2);p(),v(e.view().subtype)}}function us(t,n){if(t&1){let e=U();c(0,"button",64),N("click",function(){O(e);let o=_(2);return z(o.handleToggleRawInfo())}),c(1,"span",65),g(2,"i"),d()()}}function ps(t,n){if(t&1&&(c(0,"div",2)(1,"div",58),ce(),c(2,"svg",59),E(3,"path",60),d(),nt(),c(4,"span",61),g(5),d(),A(6,ds,2,1,"span",62)(7,us,3,0,"button",63),d()()),t&2){let e=_();p(5),v(e.view().bodyText),p(),y(e.view().subtype?6:-1),p(),y(e.showRawInfo_$()?7:-1)}}function ms(t,n){if(t&1){let e=U();c(0,"button",18),N("click",function(){O(e);let o=_(2);return z(o.handleToggleRawInfo())}),ce(),c(1,"svg",19),E(2,"circle",20)(3,"path",21)(4,"path",22),d()()}if(t&2){let e=_(2);K(e.bubbleActionButtonClass),p(),Pe("class",e.bubbleActionIconClass)}}function hs(t,n){if(t&1&&E(0,"app-s-copy-button",70),t&2){let e=_(2);$("content",e.copyContent_$())}}function fs(t,n){if(t&1&&(c(0,"div",66)(1,"div",67),E(2,"span",68),c(3,"span",69),g(4,"Error"),d(),c(5,"span",11),X(6,"sAbsoluteTime"),g(7),X(8,"sTimeAgo"),d(),E(9,"div",12),A(10,ms,5,3,"button",14)(11,hs,1,1,"app-s-copy-button",70),d(),c(12,"div",71),g(13),d()()),t&2){let e=_();K(e.bubbleClass_$()),p(5),$("title",ee(6,7,e.timestampDisplay_$())),p(2),v(ee(8,9,e.timestampDisplay_$())),p(3),y(e.showRawInfo_$()?10:-1),p(),y(e.showCopy_$()?11:-1),p(2),v(e.view().bodyText)}}function gs(t,n){if(t&1){let e=U();c(0,"button",18),N("click",function(o){O(e);let r=_(2);return o.stopPropagation(),z(r.handleToggleRawInfo())}),ce(),c(1,"svg",19),E(2,"circle",20)(3,"path",21)(4,"path",22),d()()}if(t&2){let e=_(2);K(e.bubbleActionButtonClass),p(),Pe("class",e.bubbleActionIconClass)}}function _s(t,n){if(t&1&&E(0,"app-s-copy-button",30),t&2){let e=_(2);$("content",e.copyContent_$())}}function bs(t,n){if(t&1&&(c(0,"pre",73),g(1),d()),t&2){let e=_(2);p(),v(e.displayBody_$())}}function xs(t,n){if(t&1){let e=U();c(0,"div",7)(1,"div",8),N("click",function(){O(e);let o=_();return z(o.handleToggleExpand())}),c(2,"span",72),g(3,"Tool Result"),d(),c(4,"span",11),X(5,"sAbsoluteTime"),g(6),X(7,"sTimeAgo"),d(),E(8,"div",12),c(9,"span",13),g(10),d(),A(11,gs,5,3,"button",14)(12,_s,1,1,"app-s-copy-button",30),d(),A(13,bs,2,1,"pre",73),d()}if(t&2){let e=_();K(e.bubbleClass_$()),p(4),$("title",ee(5,8,e.timestampDisplay_$())),p(2),v(ee(7,10,e.timestampDisplay_$())),p(4),v(e.isExpanded_$()?"\u25BC":"\u25B6"),p(),y(e.showRawInfo_$()?11:-1),p(),y(e.showCopy_$()?12:-1),p(),y(e.isExpanded_$()?13:-1)}}function Cs(t,n){if(t&1){let e=U();c(0,"app-s-agent-console-message-bubble",80),N("ttsCached",function(o){O(e);let r=_(2);return z(r.ttsCached.emit(o))}),d()}if(t&2){let e=n.$implicit;$("view",e)}}function ys(t,n){if(t&1&&(c(0,"details",4)(1,"summary",74)(2,"span",75),g(3),d(),E(4,"span",12),ce(),c(5,"svg",76),E(6,"path",77),d()(),nt(),c(7,"div",78),$e(8,Cs,1,1,"app-s-agent-console-message-bubble",79,Zi),d()()),t&2){let e,i=_();p(3),v(i.view().bodyText),p(5),Me((e=i.view().groupItems)!==null&&e!==void 0?e:on(1,Yi))}}function ks(t,n){if(t&1){let e=U();c(0,"app-s-agent-console-message-bubble",80),N("ttsCached",function(o){O(e);let r=_(3);return z(r.ttsCached.emit(o))}),d()}if(t&2){let e=_().$implicit;$("view",e)}}function ws(t,n){if(t&1&&A(0,ks,1,1,"app-s-agent-console-message-bubble",79),t&2){let e=n.$index;y(e>0?0:-1)}}function Ss(t,n){if(t&1&&(c(0,"details",5)(1,"summary",81),ce(),c(2,"svg",82),E(3,"rect",83)(4,"circle",84)(5,"circle",85)(6,"path",86)(7,"path",87),d(),nt(),c(8,"span",88),g(9,"Sub-agent"),d(),c(10,"span",89),g(11),d(),c(12,"span",90),g(13),d(),E(14,"span",12),ce(),c(15,"svg",91),E(16,"path",77),d()(),nt(),c(17,"div",92),$e(18,ws,1,1,null,null,Zi),d()()),t&2){let e,i,o=_();p(11),v(o.view().bodyText),p(2),v(((e=(e=o.view().groupItems)==null?null:e.length)!==null&&e!==void 0?e:0)>1?o.view().groupItems.length-1:0),p(5),Me((i=o.view().groupItems)!==null&&i!==void 0?i:on(2,Yi))}}function Es(t,n){if(t&1&&(c(0,"span",94),g(1),d()),t&2){let e=_(2);p(),tn("(",e.view().subtype,")")}}function Ts(t,n){if(t&1){let e=U();c(0,"button",18),N("click",function(o){O(e);let r=_(2);return o.stopPropagation(),z(r.handleToggleRawInfo())}),ce(),c(1,"svg",19),E(2,"circle",20)(3,"path",21)(4,"path",22),d()()}if(t&2){let e=_(2);K(e.bubbleActionButtonClass),p(),Pe("class",e.bubbleActionIconClass)}}function vs(t,n){if(t&1&&E(0,"app-s-copy-button",95),t&2){let e=_(2);$("content",e.copyContent_$())}}function As(t,n){if(t&1&&(c(0,"pre",98),g(1),d()),t&2){let e=_(3);K(e.textClass_$()),p(),v(e.displayBody_$())}}function $s(t,n){if(t&1&&(c(0,"div",99),g(1),d()),t&2){let e=_(3);K(e.textClass_$()),p(),v(e.displayBody_$())}}function Ms(t,n){if(t&1&&A(0,As,2,3,"pre",96)(1,$s,2,3,"div",97),t&2){let e=_(2);y(e.isJson_$()?0:1)}}function Rs(t,n){if(t&1){let e=U();c(0,"div",7)(1,"div",8),N("click",function(){O(e);let o=_();return z(o.handleToggleExpand())}),c(2,"span",93),g(3),d(),A(4,Es,2,1,"span",94),c(5,"span",11),X(6,"sAbsoluteTime"),g(7),X(8,"sTimeAgo"),d(),E(9,"div",12),c(10,"span",13),g(11),d(),A(12,Ts,5,3,"button",14)(13,vs,1,1,"app-s-copy-button",95),d(),A(14,Ms,2,1),d()}if(t&2){let e=_();K(e.bubbleClass_$()),p(2),K(e.textClass_$()),p(),v(e.typeLabel_$()),p(),y(e.view().subtype?4:-1),p(),$("title",ee(6,12,e.timestampDisplay_$())),p(2),v(ee(8,14,e.timestampDisplay_$())),p(4),v(e.isExpanded_$()?"\u25BC":"\u25B6"),p(),y(e.showRawInfo_$()?12:-1),p(),y(e.showCopy_$()?13:-1),p(),y(e.isExpanded_$()?14:-1)}}function Ls(t,n){if(t&1&&(c(0,"section")(1,"div",108),g(2," Primary (message / tool call) "),d(),c(3,"pre",109),g(4),d()()),t&2){let e=_();p(4),v(e.primaryJson)}}function Is(t,n){if(t&1&&(c(0,"div",110)(1,"div",111),g(2),d(),c(3,"pre",109),g(4),d()()),t&2){let e=n.$implicit,i=_(2);p(2),nn(" Part ",e.index+1," / ",i.streamParts.length," "),p(2),v(e.json)}}function Ps(t,n){if(t&1&&(c(0,"section")(1,"div",108),g(2," Stream mirror payloads (each chunk) "),d(),$e(3,Is,5,3,"div",110,Sr),d()),t&2){let e=_();p(3),Me(e.streamParts)}}function Ds(t,n){if(t&1&&(c(0,"section")(1,"div",108),g(2," Paired tool result "),d(),c(3,"pre",109),g(4),d()()),t&2){let e=_();p(4),v(e.pairedJson)}}function Bs(t,n){if(t&1){let e=U();c(0,"div",100),N("click",function(){O(e);let o=_();return z(o.handleToggleRawInfo())}),c(1,"div",101),N("click",function(o){return O(e),z(o.stopPropagation())}),c(2,"div",102)(3,"span",103),g(4,"Raw data"),d(),c(5,"span",104),X(6,"sAbsoluteTime"),g(7),X(8,"sTimeAgo"),d(),E(9,"div",12)(10,"app-s-copy-button",105),c(11,"button",106),N("click",function(){O(e);let o=_();return z(o.handleToggleRawInfo())}),g(12,"\xD7"),d()(),c(13,"div",107),A(14,Ls,5,1,"section")(15,Ps,5,0,"section")(16,Ds,5,1,"section"),d()()()}if(t&2){let e=n,i=_();p(5),$("title",ee(6,7,i.timestampDisplay_$())),p(2),nn("",i.typeLabel_$()," \u2014 ",ee(8,9,i.timestampDisplay_$()),""),p(3),$("content",i.rawDataFormatted_$()),p(4),y(e.primaryJson?14:-1),p(),y(e.showStreamBreakdown?15:-1),p(),y(e.pairedJson?16:-1)}}var el=(()=>{class t{sanitizer=le(Et);voiceSttQaUi_DS=le(vt);globalError_CS=le(Tt);voiceTts_CS=le(qi);view=ge.required();bubbleActionButtonClass="p-1.5 gt-xs:p-2 min-h-[32px] min-w-[32px] gt-xs:min-h-[36px] gt-xs:min-w-[36px] flex items-center justify-center rounded text-neutral-400 hover:text-neutral-200 hover:bg-neutral-700 transition-colors shrink-0 disabled:opacity-50";bubbleActionIconClass="w-3.5 h-3.5 shrink-0";ttsCached=it();isAutoPlayFired=!1;isExpanded_$=W(!1);isAssistantBodyExpanded_$=W(!0);isRawInfoOpen_$=W(!1);safeExpandableHtml_$=S(()=>{let e=this.view().expandableContentTrustedHtml;return e?this.sanitizer.bypassSecurityTrustHtml(e):null});showCopy_$=S(()=>this.view().flags?.showCopy!==!1);useEditDiffForExpandable_$=S(()=>this.view().flags?.useEditDiffForExpandable===!0);showRawInfo_$=S(()=>this.view().flags?.showRawInfo===!1?!1:Qe.hasBubbleRawSources(this.view()));rawOverlayBundle_$=S(()=>{let e=this.view();return Qe.hasBubbleRawSources(e)?Qe.buildForBubbleView(e):null});timestampDisplay_$=S(()=>{let e=this.view().timestampIso;return e||""});bodyForJsonCheck_$=S(()=>this.view().bodyText);isJson_$=S(()=>Re.looksLikeJson(this.bodyForJsonCheck_$()));formattedBody_$=S(()=>{let e=this.bodyForJsonCheck_$();return this.isJson_$()?Re.formatJson(e):e});contentLineCount_$=S(()=>Re.lineCount(this.formattedBody_$()));isTruncatable_$=S(()=>{let e=this.isJson_$()?8:20;return this.contentLineCount_$()>e});displayBody_$=S(()=>{let i=this.view().kind===k.assistant?this.isAssistantBodyExpanded_$():this.isExpanded_$();if(!this.isTruncatable_$()||i)return this.formattedBody_$();let o=this.isJson_$()?8:20;return this.formattedBody_$().split(`
|
|
66
|
+
`).slice(0,o).join(`
|
|
67
|
+
`)+`
|
|
68
|
+
\u2026`});assistantMarkdownSafeHtml_$=S(()=>{if(this.view().kind!==k.assistant||this.isJson_$()||this.isTruncatable_$()&&!this.isAssistantBodyExpanded_$())return null;let e=this.formattedBody_$(),i=vn.toSanitizedHtml(e);return this.sanitizer.bypassSecurityTrustHtml(i)});formattedExpandable_$=S(()=>{let e=this.view().expandableContent??"";return Re.looksLikeJson(e)?Re.formatJson(e):e});copyContent_$=S(()=>this.view().bodyText);rawDataFormatted_$=S(()=>{let e=this.rawOverlayBundle_$();return e!==null?e.copyJsonString:"{}"});bubbleClass_$=S(()=>{switch(this.view().kind){case k.userPrompt:return"border-neonGreen bg-neutral-800";case k.assistant:return"border-neonCyan bg-neutral-800";case k.tool:return"border-orange-500/30 bg-orange-500/5";case k.toolResult:return"border-orange-400/20 bg-orange-400/5";case k.error:return"border-red-500/30 bg-red-500/5";case k.info:case k.thinking:case k.raw:case k.result:return"border-neutral-700/50 bg-neutral-800/30";case k.status:case k.statusUpdate:case k.runIntent:case k.iteration:return"border-purple-500/30 bg-purple-500/5";case k.toolGroup:case k.subAgentGroup:return"border-orange-500/25 bg-orange-500/5";default:return"border-neutral-700 bg-neutral-800/30"}});textClass_$=S(()=>{switch(this.view().kind){case k.userPrompt:return"text-blue-300";case k.assistant:return"text-neutral-200";case k.tool:return"text-orange-400";case k.toolResult:return"text-orange-300/80";case k.error:return"text-red-400";case k.info:case k.thinking:case k.raw:case k.result:return"text-neutral-500";case k.status:case k.statusUpdate:case k.runIntent:case k.iteration:return"text-purple-400";default:return"text-neutral-400"}});toolName_$=S(()=>{let e=this.view();return e.toolName?e.toolName:e.kind!==k.tool?"":(e.bodyText.split(`
|
|
69
|
+
`)[0]??"").trim()});toolInputFormatted_$=S(()=>{let e=this.view();if(e.kind!==k.tool)return"";let o=e.bodyText.split(`
|
|
70
|
+
`).slice(1).join(`
|
|
71
|
+
`).trim();return Re.looksLikeJson(o)?Re.formatJson(o):o});typeLabel_$=S(()=>{switch(this.view().kind){case k.userPrompt:return"User";case k.assistant:return"Assistant";case k.tool:return"Tool Call";case k.toolResult:return"Tool Result";case k.error:return"Error";case k.info:return"Info";case k.status:return"Status";case k.thinking:return"Thinking";case k.runIntent:return"Run intent";case k.iteration:return"Iteration";case k.statusUpdate:return"Status update";case k.raw:return"Raw";case k.result:return"Result";case k.toolGroup:return"Tool group";case k.subAgentGroup:return"Sub-agent";default:return String(this.view().kind)}});kindEnum=k;tts_$=S(()=>this.view().tts??null);ttsLoading_$=W(!1);showTtsButton_$=S(()=>{let e=this.tts_$();return e!==null&&!e.hasTtsAudio&&e.content.trim().length>0});autoReadEffect=ii(()=>{if(this.isAutoPlayFired||this.view().kind!==k.assistant)return;let e=this.tts_$();!e||e.hasTtsAudio||e.content.trim().length===0||this.ttsLoading_$()||Nt.shouldAutoPlay(e.sessionId,e.timestampIso)&&(this.isAutoPlayFired=!0,this.handleTtsPlayClick())});ttsAudioUrl_$=S(()=>{let e=this.tts_$();if(!e||!e.hasTtsAudio)return null;let i=this.voiceSttQaUi_DS.getTtsMessageAudioUrl(e.messageKey);return i.length>0?i:null});handleTtsPlayClick(){return B(this,null,function*(){let e=this.tts_$();if(!(!e||this.ttsLoading_$())){this.ttsLoading_$.set(!0);try{(yield this.voiceTts_CS.playMessage({messageKey:e.messageKey,sessionId:e.sessionId,role:e.role,content:e.content,timestampIso:e.timestampIso,isUserGesture:!0}))&&this.ttsCached.emit(e.messageKey)}finally{this.ttsLoading_$.set(!1)}}})}handleToggleExpand(){this.isExpanded_$.update(e=>!e)}handleToggleAssistantBodyExpand(){this.isAssistantBodyExpanded_$.update(e=>!e)}handleToggleRawInfo(){this.isRawInfoOpen_$.update(e=>!e)}handleImageClick(e){window.open(e,"_blank")}handleAssistantMdClick(e){return B(this,null,function*(){yield vn.handleCodeCopyClick(e,i=>this.globalError_CS.copyToClipboard(i))})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=qe({type:t,selectors:[["app-s-agent-console-message-bubble"]],inputs:{view:[1,"view"]},outputs:{ttsCached:"ttsCached"},standalone:!0,features:[Ke],decls:10,vars:2,consts:[[1,"rounded","border","px-2.5","py-1","text-xs","overflow-hidden",3,"class"],[1,"group/msg","rounded-lg","border","px-2","py-1","text-xs","sm:px-3","sm:py-1.5","sm:text-sm","overflow-hidden",3,"class"],[1,"flex","justify-center","mb-1","group/msg"],[1,"rounded","border","px-2.5","py-1.5","text-xs","overflow-hidden",3,"class"],[1,"bg-orange-500/5","border","border-orange-500/15","rounded-lg","overflow-hidden"],[1,"border","border-indigo-500/20","rounded-lg","overflow-hidden","bg-indigo-500/3"],[1,"fixed","inset-0","z-50","flex","items-center","justify-center","bg-black/70","p-4"],[1,"rounded","border","px-2.5","py-1","text-xs","overflow-hidden"],[1,"flex","items-center","gap-2","cursor-pointer","select-none",3,"click"],["title","Tool call failed",1,"w-1.5","h-1.5","rounded-full","bg-red-500","shrink-0"],[1,"text-orange-400","font-semibold","text-[11px]"],[1,"text-[10px]","text-neutral-400","select-none",3,"title"],[1,"flex-1"],[1,"text-neutral-600","text-[10px]"],["type","button","title","Raw details",3,"class"],["buttonTitle","Copy tool call","size","sm",3,"content"],[1,"text-[10px]","text-red-500/60","font-medium"],[1,"text-[10px]","text-green-500/60","font-medium"],["type","button","title","Raw details",3,"click"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true"],["cx","12","cy","12","r","10"],["d","M12 16v-4"],["d","M12 8h.01"],[1,"mt-1.5","border-t","border-orange-500/10","pt-1.5"],[1,"mt-1.5","border-t","border-green-500/10","pt-1.5"],[1,"text-[9px]","text-neutral-600","uppercase","tracking-wider","mb-0.5"],[1,"text-[11px]","leading-relaxed","overflow-x-auto","whitespace-pre-wrap","break-words","font-mono","text-orange-300/80","max-h-[300px]","overflow-y-auto"],[1,"text-[11px]","leading-relaxed","font-mono","text-green-400/80","max-h-[300px]","overflow-y-auto","overflow-x-auto","break-words",3,"innerHTML"],[1,"text-[11px]","leading-relaxed","font-mono","text-green-400/80","max-h-[300px]","overflow-y-auto","whitespace-pre-wrap","break-words",3,"innerHTML"],[1,"mt-1","flex","justify-end"],["buttonTitle","Copy result","size","sm",3,"content"],[1,"text-[11px]","leading-relaxed","overflow-x-auto","whitespace-pre-wrap","break-words","font-mono","text-green-400/80","max-h-[300px]","overflow-y-auto"],[1,"mt-1.5","border-t","border-red-500/15","pt-1.5"],[1,"text-[11px]","leading-relaxed","overflow-x-auto","whitespace-pre-wrap","break-words","font-mono","text-red-400/90","max-h-[300px]","overflow-y-auto"],[1,"group/msg","rounded-lg","border","px-2","py-1","text-xs","sm:px-3","sm:py-1.5","sm:text-sm","overflow-hidden"],[1,"flex","items-center","gap-1","mb-px"],[1,"font-bold","text-[10px]","text-neonGreen/60","uppercase"],[1,"flex","items-center","gap-0.5"],["buttonTitle","Copy prompt","size","sm",3,"content"],["type","button","title","Felolvas\xE1s (TTS)",3,"disabled","class"],[1,"flex","flex-wrap","gap-2","mb-1.5"],[1,"leading-snug","sm:leading-normal","whitespace-pre-wrap","break-words","text-neutral-100"],["controls","","aria-label","\xDCzenet felolvas\xE1sa",1,"max-w-full","h-8","min-w-[200px]","mt-1.5",3,"src"],["type","button","title","Felolvas\xE1s (TTS)",3,"click","disabled"],[1,"inline-block","w-3.5","h-3.5","shrink-0","animate-spin","rounded-full","border-2","border-blue-400/40","border-t-blue-400"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true",1,"w-3.5","h-3.5","shrink-0"],["points","11 5 6 9 2 9 2 15 6 15 11 19 11 5"],["d","M15.54 8.46a5 5 0 0 1 0 7.07"],["alt","Attached image",1,"max-w-[200px]","max-h-[200px]","rounded","border","border-neonDefault/30","object-contain","cursor-pointer",3,"src"],["alt","Attached image",1,"max-w-[200px]","max-h-[200px]","rounded","border","border-neonDefault/30","object-contain","cursor-pointer",3,"click","src"],[1,"font-bold","text-[10px]","text-neonCyan/60","uppercase"],["buttonTitle","Copy message","size","sm",3,"content"],[1,"text-xs","leading-snug","sm:leading-normal","overflow-x-auto","whitespace-pre-wrap","break-words","font-mono","text-neutral-100"],["type","button",1,"mt-1","text-[10px]","text-ccapAccent","hover:text-ccapAccent/80","transition-colors"],[1,"inline-block","w-3.5","h-3.5","shrink-0","animate-spin","rounded-full","border-2","border-neutral-400/40","border-t-neutral-300"],[1,"ccap-assistant-md","leading-snug","sm:leading-normal","break-words","text-neutral-100","min-w-0",3,"innerHTML"],[1,"ccap-assistant-md","leading-snug","sm:leading-normal","break-words","text-neutral-100","min-w-0",3,"click","innerHTML"],["type","button",1,"mt-1","text-[10px]","text-ccapAccent","hover:text-ccapAccent/80","transition-colors",3,"click"],[1,"inline-flex","items-center","gap-1.5","bg-teal-500/6","border","border-teal-500/15","rounded-full","px-3","py-0.5","max-w-[85%]","min-w-0"],["viewBox","0 0 16 16","fill","none","stroke","currentColor","stroke-width","2",1,"w-3","h-3","text-teal-400/70","shrink-0","animate-spin"],["d","M8 2a6 6 0 0 1 6 6","stroke-linecap","round"],[1,"text-[10px]","text-teal-300/70","truncate","min-w-0"],[1,"text-[8px]","text-teal-400/40","shrink-0"],["type","button",1,"shrink-0","w-3.5","h-3.5","rounded-full","bg-teal-500/15","flex","items-center","justify-center","cursor-pointer","hover:bg-teal-500/30"],["type","button",1,"shrink-0","w-3.5","h-3.5","rounded-full","bg-teal-500/15","flex","items-center","justify-center","cursor-pointer","hover:bg-teal-500/30",3,"click"],[1,"text-[7px]","text-teal-300/60","font-bold","leading-none"],[1,"rounded","border","px-2.5","py-1.5","text-xs","overflow-hidden"],[1,"flex","items-center","gap-1.5","mb-0.5"],["title","Error",1,"w-1.5","h-1.5","rounded-full","bg-red-500","shrink-0"],[1,"font-semibold","text-[10px]","text-red-400","uppercase","tracking-wider"],["buttonTitle","Copy error","size","sm",3,"content"],[1,"leading-relaxed","whitespace-pre-wrap","break-words","text-red-400"],[1,"font-semibold","text-[10px]","text-orange-300/70","uppercase","tracking-wider"],[1,"mt-1","text-[11px]","leading-relaxed","overflow-x-auto","whitespace-pre-wrap","break-words","font-mono","text-orange-300/70","max-h-[300px]","overflow-y-auto"],[1,"flex","items-center","gap-1.5","px-2.5","py-1","cursor-pointer","select-none","hover:bg-orange-500/8","transition-colors","list-none","[&::-webkit-details-marker]:hidden"],[1,"text-[11px]","text-orange-300/90","font-medium"],["viewBox","0 0 12 12","fill","none",1,"w-3","h-3","text-orange-400/50","transition-transform","[[open]>&]:rotate-90"],["d","M4.5 2.5l4 3.5-4 3.5","stroke","currentColor","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"px-2","pb-1.5","pt-0.5","space-y-0.5"],[3,"view"],[3,"ttsCached","view"],[1,"flex","items-center","gap-1.5","px-2.5","py-1.5","cursor-pointer","select-none","hover:bg-indigo-500/8","transition-colors","list-none","[&::-webkit-details-marker]:hidden"],["viewBox","0 0 16 16","fill","none","stroke","currentColor","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round",1,"w-3.5","h-3.5","text-indigo-400","shrink-0"],["x","3","y","5","width","10","height","8","rx","2"],["cx","6","cy","9","r","1"],["cx","10","cy","9","r","1"],["d","M8 2v3"],["d","M6 2h4"],[1,"text-[10px]","text-indigo-400/60","font-medium","uppercase","tracking-wider","shrink-0"],[1,"text-[11px]","text-indigo-300/90","font-medium","truncate"],[1,"text-[9px]","text-indigo-400/40","shrink-0"],["viewBox","0 0 12 12","fill","none",1,"w-3","h-3","text-indigo-400/40","shrink-0","transition-transform","[[open]>&]:rotate-90"],[1,"px-2","pb-2","pt-1","space-y-0.5","border-t","border-indigo-500/10"],[1,"font-semibold","text-[10px]","uppercase","tracking-wider"],[1,"text-[9px]","text-neutral-500"],["buttonTitle","Copy","size","sm",3,"content"],[1,"mt-1","text-[11px]","leading-relaxed","overflow-x-auto","whitespace-pre-wrap","break-words","font-mono",3,"class"],[1,"mt-1","leading-relaxed","whitespace-pre-wrap","break-words",3,"class"],[1,"mt-1","text-[11px]","leading-relaxed","overflow-x-auto","whitespace-pre-wrap","break-words","font-mono"],[1,"mt-1","leading-relaxed","whitespace-pre-wrap","break-words"],[1,"fixed","inset-0","z-50","flex","items-center","justify-center","bg-black/70","p-4",3,"click"],[1,"bg-neutral-900","border","border-neutral-700","rounded-lg","shadow-2xl","w-full","max-w-2xl","max-h-[80vh]","flex","flex-col",2,"max-height","80dvh",3,"click"],[1,"flex","items-center","gap-2","px-4","py-2","border-b","border-neutral-700","shrink-0"],[1,"text-xs","font-semibold","text-neutral-300"],[1,"text-[10px]","text-neutral-400",3,"title"],["buttonTitle","Copy raw JSON","size","sm",3,"content"],["type","button",1,"text-neutral-500","hover:text-neutral-300","text-sm","transition-colors","px-1",3,"click"],[1,"flex-1","overflow-auto","p-4","space-y-4"],[1,"text-[9px]","text-neutral-500","uppercase","tracking-wide","mb-1"],[1,"text-[11px]","leading-relaxed","whitespace-pre-wrap","break-words","overflow-x-auto","font-mono","text-neutral-300"],[1,"mb-3","last:mb-0"],[1,"text-[8px]","text-neutral-600","mb-0.5"]],template:function(i,o){if(i&1&&A(0,Fr,16,15,"div",0)(1,Jr,17,14,"div",1)(2,cs,17,14,"div",1)(3,ps,8,3,"div",2)(4,fs,14,11,"div",3)(5,xs,14,12,"div",0)(6,ys,10,2,"details",4)(7,Ss,20,3,"details",5)(8,Rs,15,16,"div",0)(9,Bs,17,11,"div",6),i&2){let r,s;y((r=o.view().kind)===o.kindEnum.tool?0:r===o.kindEnum.userPrompt?1:r===o.kindEnum.assistant?2:r===o.kindEnum.statusUpdate?3:r===o.kindEnum.error?4:r===o.kindEnum.toolResult?5:r===o.kindEnum.toolGroup?6:r===o.kindEnum.subAgentGroup?7:8),p(9),y((s=o.isRawInfoOpen_$()&&o.rawOverlayBundle_$())?9:-1,s)}},dependencies:()=>[t,Je,mi,Ji,hi,fi],styles:[`@charset "UTF-8";
|
|
72
|
+
/*# sourceMappingURL=s-agent-console-message-bubble.component-QJSDQEWX.css.map */`]})}return t})();var Os=[[["","sChatColumnHeader",""]],[["","sChatColumnScroll",""]],[["","sChatColumnOverlay",""]],[["","sChatColumnComposer",""]]],zs=["[sChatColumnHeader]","[sChatColumnScroll]","[sChatColumnOverlay]","[sChatColumnComposer]"],ol=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=qe({type:t,selectors:[["app-s-session-chat-column-layout"]],hostAttrs:[1,"flex","flex-col","flex-1","min-h-0","overflow-hidden","w-full","min-w-0"],standalone:!0,features:[Ke],ngContentSelectors:zs,decls:8,vars:0,consts:[[1,"min-w-0","shrink-0"],[1,"relative","min-h-0","min-w-0","flex-1","flex","flex-col"],[1,"min-h-0","min-w-0","flex-1","overflow-y-auto","overflow-x-hidden"]],template:function(i,o){i&1&&(ni(Os),c(0,"div",0),ot(1),d(),c(2,"div",1)(3,"div",2),ot(4,1),d(),ot(5,2),d(),c(6,"div",0),ot(7,3),d())},dependencies:[Je],encapsulation:2})}return t})();var $n=en(rn());var Qi=(()=>{class t{mrg_AS=le(pi);erg_AS=le(gi);llmEntries_$=W([]);llmLoading_$=W(!1);llmLoadError_$=W(null);isLlmLoaded=!1;llmLoadPromise=null;embeddingEntries_$=W([]);embeddingLoading_$=W(!1);embeddingLoadError_$=W(null);isEmbeddingLoaded=!1;embeddingLoadPromise=null;enabledLlmModels_$=S(()=>this.llmEntries_$().filter(e=>e.enabled));enabledLlmProviders_$=S(()=>{let e=new Map;for(let i of this.enabledLlmModels_$())e.has(i.provider)||e.set(i.provider,t.llmProviderLabel(i.provider));return[...e.entries()].map(([i,o])=>({value:i,label:o}))});isLlmEmpty_$=S(()=>this.isLlmLoaded&&!this.llmLoading_$()&&this.enabledLlmModels_$().length===0);enabledEmbeddingModels_$=S(()=>this.embeddingEntries_$().filter(e=>e.enabled===!0));enabledEmbeddingProviders_$=S(()=>{let e=new Map;for(let i of this.enabledEmbeddingModels_$()){let o=i.embeddingBackend??"";o&&!e.has(o)&&e.set(o,t.embeddingBackendLabel(o))}return[...e.entries()].map(([i,o])=>({value:i,label:o}))});isEmbeddingEmpty_$=S(()=>this.isEmbeddingLoaded&&!this.embeddingLoading_$()&&this.enabledEmbeddingModels_$().length===0);ensureLoaded(e){return B(this,null,function*(){if(e==="llm"){if(this.isLlmLoaded&&!this.llmLoading_$())return;if(this.llmLoadPromise)return this.llmLoadPromise;this.llmLoadPromise=this.fetchLlm();try{yield this.llmLoadPromise}finally{this.llmLoadPromise=null}return}if(!(this.isEmbeddingLoaded&&!this.embeddingLoading_$())){if(this.embeddingLoadPromise)return this.embeddingLoadPromise;this.embeddingLoadPromise=this.fetchEmbedding();try{yield this.embeddingLoadPromise}finally{this.embeddingLoadPromise=null}}})}refresh(e){return B(this,null,function*(){e==="llm"?(this.isLlmLoaded=!1,yield this.fetchLlm()):(this.isEmbeddingLoaded=!1,yield this.fetchEmbedding())})}invalidate(e){e==="llm"?this.isLlmLoaded=!1:this.isEmbeddingLoaded=!1}getModelsForProvider(e,i){return e==="llm"?this.enabledLlmModels_$().filter(o=>o.provider===i).map(o=>o.modelName):this.enabledEmbeddingModels_$().filter(o=>o.embeddingBackend===i).map(o=>o.modelId??"")}fetchLlm(){return B(this,null,function*(){this.llmLoading_$.set(!0),this.llmLoadError_$.set(null);try{let e=yield this.mrg_AS.getList({enabled:!0});this.llmEntries_$.set(e.list),this.isLlmLoaded=!0}catch(e){this.llmLoadError_$.set(e),$n.DyFM_Error.logSimple("AIS_RegistrySsot_ControlService | fetchLlm failed",e)}finally{this.llmLoading_$.set(!1)}})}fetchEmbedding(){return B(this,null,function*(){this.embeddingLoading_$.set(!0),this.embeddingLoadError_$.set(null);try{let e=yield this.erg_AS.getList({enabled:!0});this.embeddingEntries_$.set(e.list),this.isEmbeddingLoaded=!0}catch(e){this.embeddingLoadError_$.set(e),$n.DyFM_Error.logSimple("AIS_RegistrySsot_ControlService | fetchEmbedding failed",e)}finally{this.embeddingLoading_$.set(!1)}})}static llmProviderLabel(e){return{"open-ai":"OpenAI",anthropic:"Anthropic",google:"Google",deepseek:"DeepSeek","fdp-ai":"FDPAI"}[e]??e}static embeddingBackendLabel(e){return{ollama:"Ollama","open-ai-compatible":"OpenAI-kompatibilis","open-ai-official":"OpenAI hivatalos","custom-http":"Custom HTTP"}[e]??e}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ns=(t,n)=>n.value;function Fs(t,n){t&1&&(c(0,"div",0),E(1,"span",3),c(2,"span"),g(3,"Registry bet\xF6lt\xE9se\u2026"),d()())}function Us(t,n){if(t&1&&(c(0,"p",4),g(1,"Nincs enged\xE9lyezett modell a registry-ben."),d(),c(2,"p"),g(3," Menj a "),c(4,"a",5),g(5,"Model Registry"),d(),g(6," oldalra, futtass "),c(7,"strong"),g(8,"Sync"),d(),g(9,"-et, majd az "),c(10,"code",6),g(11,"enabled"),d(),g(12," kapcsol\xF3val enged\xE9lyezz legal\xE1bb egy modellt. "),d()),t&2){let e=_(2);p(4),$("routerLink",e.registryRoute_$())}}function Hs(t,n){if(t&1&&(c(0,"p",4),g(1,"Nincs enged\xE9lyezett embedding modell."),d(),c(2,"p"),g(3," Menj az "),c(4,"a",5),g(5,"Embedding Registry"),d(),g(6," oldalra, futtass "),c(7,"strong"),g(8,"Sync"),d(),g(9,"-et, majd az "),c(10,"code",6),g(11,"enabled"),d(),g(12," kapcsol\xF3val enged\xE9lyezz legal\xE1bb egy modellt. "),d()),t&2){let e=_(2);p(4),$("routerLink",e.registryRoute_$())}}function Vs(t,n){if(t&1&&(c(0,"div",1),A(1,Us,13,1)(2,Hs,13,1),d()),t&2){let e=_();p(),y(e.registryKind()==="llm"?1:2)}}function Gs(t,n){if(t&1&&(c(0,"option",11),g(1),d()),t&2){let e=n.$implicit;$("value",e.value),p(),v(e.label)}}function js(t,n){if(t&1){let e=U();c(0,"div",7)(1,"label",8),g(2),d(),c(3,"select",9),N("ngModelChange",function(o){O(e);let r=_(2);return z(r.handleProviderChange(o))}),c(4,"option",10),g(5,"\u2014 V\xE1lassz \u2014"),d(),$e(6,Gs,2,2,"option",11,Ns),d()()}if(t&2){let e=_(2);p(2),v(e.providerLabel()),p(),$("ngModel",e.selectedProvider())("disabled",e.disabled()),p(3),Me(e.providerOptions_$())}}function Ws(t,n){if(t&1&&(c(0,"option",11),g(1),d()),t&2){let e=n.$implicit;$("value",e),p(),v(e)}}function qs(t,n){t&1&&(c(0,"span",12),g(1,"A kiv\xE1lasztott providernek nincs enged\xE9lyezett modellje."),d())}function Ks(t,n){if(t&1){let e=U();c(0,"div",2),A(1,js,8,3,"div",7),c(2,"div",7)(3,"label",8),g(4),d(),c(5,"select",9),N("ngModelChange",function(o){O(e);let r=_();return z(r.handleModelChange(o))}),c(6,"option",10),g(7,"\u2014 V\xE1lassz modellt \u2014"),d(),$e(8,Ws,2,2,"option",11,St),d(),A(10,qs,2,0,"span",12),d()()}if(t&2){let e=_();p(),y(e.showProviderSelect_$()?1:-1),p(3),v(e.modelLabel()),p(),$("ngModel",e.selectedModel())("disabled",e.disabled()||e.modelOptions_$().length===0),p(3),Me(e.modelOptions_$()),p(2),y(e.modelOptions_$().length===0&&(e.selectedProvider()||e.providerFilter())?10:-1)}}var Cl=(()=>{class t{registrySsot_CS=le(Qi);registryKind=ge.required();selectedProvider=ge("");selectedModel=ge("");providerLabel=ge("Provider");modelLabel=ge("Modell");disabled=ge(!1);providerFilter=ge(void 0);providerChange=it();modelChange=it();isEmpty_$=S(()=>this.registryKind()==="llm"?this.registrySsot_CS.isLlmEmpty_$():this.registrySsot_CS.isEmbeddingEmpty_$());isLoading_$=S(()=>this.registryKind()==="llm"?this.registrySsot_CS.llmLoading_$():this.registrySsot_CS.embeddingLoading_$());providerOptions_$=S(()=>this.registryKind()==="llm"?this.registrySsot_CS.enabledLlmProviders_$():this.registrySsot_CS.enabledEmbeddingProviders_$());modelOptions_$=S(()=>{let e=this.providerFilter()??this.selectedProvider();return e?this.registrySsot_CS.getModelsForProvider(this.registryKind(),e):[]});registryRoute_$=S(()=>this.registryKind()==="llm"?"/model-registry":"/embedding-registry");showProviderSelect_$=S(()=>this.providerFilter()===void 0);ngOnInit(){this.registrySsot_CS.ensureLoaded(this.registryKind())}handleProviderChange(e){this.providerChange.emit(e)}handleModelChange(e){this.modelChange.emit(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=qe({type:t,selectors:[["app-s-registry-provider-model-select"]],inputs:{registryKind:[1,"registryKind"],selectedProvider:[1,"selectedProvider"],selectedModel:[1,"selectedModel"],providerLabel:[1,"providerLabel"],modelLabel:[1,"modelLabel"],disabled:[1,"disabled"],providerFilter:[1,"providerFilter"]},outputs:{providerChange:"providerChange",modelChange:"modelChange"},standalone:!0,features:[Ke],decls:3,vars:3,consts:[[1,"flex","items-center","gap-2","text-sm","text-zinc-400","py-1"],[1,"bg-red-900/30","border","border-red-600","rounded","px-3","py-2","text-sm","text-red-300","space-y-1"],[1,"flex","flex-col","gap-2"],[1,"animate-spin","inline-block","w-4","h-4","border-2","border-zinc-500","border-t-transparent","rounded-full"],[1,"font-semibold"],[1,"underline","text-blue-400","hover:text-blue-300",3,"routerLink"],[1,"text-xs","bg-zinc-800","px-1","rounded"],[1,"flex","flex-col","gap-1"],[1,"text-xs","text-zinc-400","uppercase","tracking-wide"],[1,"bg-zinc-800","border","border-zinc-600","rounded","px-2","py-1","text-sm","text-zinc-100",3,"ngModelChange","ngModel","disabled"],["value",""],[3,"value"],[1,"text-xs","text-zinc-500"]],template:function(i,o){i&1&&A(0,Fs,4,0,"div",0)(1,Vs,3,1,"div",1)(2,Ks,11,5,"div",2),i&2&&(y(o.isLoading_$()?0:-1),p(),y(o.isEmpty_$()&&!o.isLoading_$()?1:-1),p(),y(!o.isEmpty_$()&&!o.isLoading_$()?2:-1))},dependencies:[Je,ui,ci,di,li,si,ai,ri,oi],encapsulation:2})}return t})();export{vn as a,k as b,Qe as c,Nt as d,Ji as e,el as f,ol as g,Qi as h,Cl as i};
|
|
73
|
+
//# sourceMappingURL=chunk-FTVVYL3E.js.map
|