@futdevpro/ccap 1.1.3503 → 1.1.3513
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/client-dist/{agent-instances.module-UYD2XYZE.js → agent-instances.module-T6EFJFPE.js} +2 -2
- package/client-dist/{ca.module-3CDQXCAY.js → ca.module-NCBI74FP.js} +2 -2
- package/client-dist/cc-usage-dashboard.component-Q3FBUIIR.js +2 -0
- package/client-dist/cc-usage-dashboard.component-Q3FBUIIR.js.map +7 -0
- package/client-dist/{cc.module-BFN6BZIN.js → cc.module-CIY6QMB5.js} +4 -4
- package/client-dist/{cc.module-BFN6BZIN.js.map → cc.module-CIY6QMB5.js.map} +3 -3
- package/client-dist/{chunk-EFNJA3BL.js → chunk-2DR4NRFY.js} +2 -2
- package/client-dist/{chunk-NOL3YONA.js → chunk-2ZI26XMZ.js} +2 -2
- package/client-dist/{chunk-IZEUWGJK.js → chunk-3N2JTN7N.js} +2 -2
- package/client-dist/{chunk-KRHX46JK.js → chunk-4UKDXJIX.js} +2 -2
- package/client-dist/{chunk-YMTP6F2C.js → chunk-5BYRCQ4G.js} +2 -2
- package/client-dist/{chunk-JU3RXVDX.js → chunk-66FQLE3Y.js} +2 -2
- package/client-dist/{chunk-E65UDGDD.js → chunk-6HZB6QSW.js} +2 -2
- package/client-dist/{chunk-5QAKXYWT.js → chunk-6RYNRTDZ.js} +2 -2
- package/client-dist/{chunk-Z3Y2VOXP.js → chunk-6UQHXR3E.js} +2 -2
- package/client-dist/{chunk-GIL5OROM.js → chunk-7IUV4ACY.js} +2 -2
- package/client-dist/{chunk-QAT6LVRB.js → chunk-A37XCJWY.js} +2 -2
- package/client-dist/{chunk-ZFOQPLZY.js → chunk-ASAT75IU.js} +2 -2
- package/client-dist/{chunk-4J5DWAPO.js → chunk-AWIEYMZV.js} +2 -2
- package/client-dist/{chunk-SPUD4EJ3.js → chunk-BR7XXFVN.js} +2 -2
- package/client-dist/{chunk-VFQYSWYJ.js → chunk-BWH3JLHB.js} +2 -2
- package/client-dist/{chunk-CZTIPDFA.js → chunk-DZFGKIFO.js} +2 -2
- package/client-dist/{chunk-XQESPKDR.js → chunk-E5QVIO4C.js} +2 -2
- package/client-dist/{chunk-C2XSLL34.js → chunk-EUEEHSUR.js} +2 -2
- package/client-dist/{chunk-MZ3YYQWQ.js → chunk-EVV5L3LF.js} +2 -2
- package/client-dist/{chunk-GIOHSC4G.js → chunk-F4BNEQYE.js} +2 -2
- package/client-dist/{chunk-7MDPIWHS.js → chunk-F4DZS3GH.js} +2 -2
- package/client-dist/{chunk-7QLE2HOD.js → chunk-FWVYBWXT.js} +2 -2
- package/client-dist/{chunk-EUOPIQ5M.js → chunk-FYMVJNXZ.js} +2 -2
- package/client-dist/{chunk-6D27TSZV.js → chunk-GDAWHJEQ.js} +2 -2
- package/client-dist/chunk-GTMPSTDI.js +3 -0
- package/client-dist/chunk-GTMPSTDI.js.map +7 -0
- package/client-dist/{chunk-FJ4AQ7DJ.js → chunk-H3QXSZIS.js} +2 -2
- package/client-dist/{chunk-27RTDRPJ.js → chunk-HZSNYOA4.js} +2 -2
- package/client-dist/{chunk-45RYB36M.js → chunk-I7TF6JIJ.js} +2 -2
- package/client-dist/{chunk-55LHNHV7.js → chunk-IFF2675Y.js} +2 -2
- package/client-dist/{chunk-RW5UDPYM.js → chunk-M6EVLEFQ.js} +2 -2
- package/client-dist/{chunk-WZGZ4B4R.js → chunk-MLGDSF43.js} +2 -2
- package/client-dist/{chunk-JZMWWTFG.js → chunk-MS2KQ2G4.js} +2 -2
- package/client-dist/{chunk-VRW33XBA.js → chunk-N4KTLLCR.js} +2 -2
- package/client-dist/{chunk-MFTEXAIX.js → chunk-N72DAUY2.js} +2 -2
- package/client-dist/{chunk-VNUSAOT6.js → chunk-NEYB4VGZ.js} +2 -2
- package/client-dist/{chunk-32WW5HVW.js → chunk-NIEBWTUO.js} +2 -2
- package/client-dist/{chunk-G67NI7SB.js → chunk-NQ33IXIS.js} +2 -2
- package/client-dist/{chunk-JV5HX5WS.js → chunk-OKZUEJZL.js} +2 -2
- package/client-dist/{chunk-ORUMPAIH.js → chunk-P5OOFVBC.js} +2 -2
- package/client-dist/{chunk-FTD33PGM.js → chunk-PR5JV6XX.js} +2 -2
- package/client-dist/{chunk-QP4ANIRB.js → chunk-PY7ZXKHG.js} +2 -2
- package/client-dist/{chunk-4VX4P4Q3.js → chunk-Q7ORWYDO.js} +2 -2
- package/client-dist/{chunk-TEX5KB4S.js → chunk-QIXXTQJJ.js} +2 -2
- package/client-dist/{chunk-JJGA6W5B.js → chunk-QKA6WOBV.js} +2 -2
- package/client-dist/{chunk-KOC4SVZ5.js → chunk-QP53M3ES.js} +2 -2
- package/client-dist/{chunk-BGZFNZ2C.js → chunk-QQ2C4ATW.js} +2 -2
- package/client-dist/{chunk-32QSFPDR.js → chunk-QXQWNRPL.js} +2 -2
- package/client-dist/{chunk-FIEFWNJ6.js → chunk-SNRZOR27.js} +2 -2
- package/client-dist/{chunk-QKJHPKSW.js → chunk-SXZ6SL34.js} +2 -2
- package/client-dist/{chunk-2UN7HPVU.js → chunk-UKVDEDDM.js} +2 -2
- package/client-dist/{chunk-OMWHFGY6.js → chunk-VTB3IOVV.js} +2 -2
- package/client-dist/{chunk-5APAM7YJ.js → chunk-WR6NSOQ2.js} +2 -2
- package/client-dist/{chunk-5APAM7YJ.js.map → chunk-WR6NSOQ2.js.map} +1 -1
- package/client-dist/{chunk-N7EJNOHR.js → chunk-WTIUHUMN.js} +2 -2
- package/client-dist/{chunk-7NW27ZEP.js → chunk-YWLPTL5I.js} +2 -2
- package/client-dist/{chunk-ADKAF2LM.js → chunk-YXBF6EUR.js} +2 -2
- package/client-dist/{chunk-OZ3TFPBG.js → chunk-YYUKX4AF.js} +2 -2
- package/client-dist/{chunk-QRLOYIIN.js → chunk-YZ27TRGU.js} +2 -2
- package/client-dist/{consultant.module-MXCBA6UI.js → consultant.module-RMGDKO7R.js} +2 -2
- package/client-dist/{crd.module-PGOP7A3H.js → crd.module-7WOWOPYH.js} +2 -2
- package/client-dist/{dashboard.module-YAWOK3X4.js → dashboard.module-UH6C2XJC.js} +2 -2
- package/client-dist/{do.module-YPKXT2VE.js → do.module-DITA42VY.js} +2 -2
- package/client-dist/{document-library.module-47UIYBBS.js → document-library.module-NDPVJJ3N.js} +2 -2
- package/client-dist/{embedding-eval.module-ZFEAXH6R.js → embedding-eval.module-JROZZ6QM.js} +2 -2
- package/client-dist/{embedding-registry.module-CX6ONIEM.js → embedding-registry.module-OYU7CQPU.js} +2 -2
- package/client-dist/{err.module-2WOMSH46.js → err.module-M7L4RF46.js} +2 -2
- package/client-dist/{feedback.module-KVOQQYW7.js → feedback.module-ZG272S6E.js} +2 -2
- package/client-dist/{host-runtime-mcp.module-76HVPG4X.js → host-runtime-mcp.module-PVVACC4N.js} +2 -2
- package/client-dist/index.html +1 -1
- package/client-dist/{live-dev-pipeline.module-ZNMPF3BA.js → live-dev-pipeline.module-FKNKOKZ4.js} +2 -2
- package/client-dist/{logs.module-N37FMRF3.js → logs.module-MN6SDRMH.js} +2 -2
- package/client-dist/{main-CCBBKAON.js → main-NHPLEEM5.js} +3 -3
- package/client-dist/{master-control-remote-poc.module-N65RQBOH.js → master-control-remote-poc.module-A3XO6MIC.js} +2 -2
- package/client-dist/{mobile-app.module-SFHXH642.js → mobile-app.module-QADWA6MM.js} +2 -2
- package/client-dist/{model-registry.module-QHKLMBXO.js → model-registry.module-IRG2HWJO.js} +2 -2
- package/client-dist/{oc.module-JGV3IDGY.js → oc.module-52TKAH2Q.js} +2 -2
- package/client-dist/{orc.module-VZ5XW5KW.js → orc.module-HSTBXIQM.js} +2 -2
- package/client-dist/{project-management.module-DL4TUNDP.js → project-management.module-FL2RWRKY.js} +2 -2
- package/client-dist/project-source-routed.module-N76TUCOI.js +2 -0
- package/client-dist/{scheduler.module-Q3SJSC4T.js → scheduler.module-XYY22JMT.js} +2 -2
- package/client-dist/{session.module-U2IP5J2B.js → session.module-N2DJOIHD.js} +2 -2
- package/client-dist/{set.module-GTMFMOEB.js → set.module-XW5X3ZLY.js} +2 -2
- package/client-dist/{setup.module-4TXUKI27.js → setup.module-B4QMBFKV.js} +2 -2
- package/client-dist/{terminals.module-W3ZC3EEB.js → terminals.module-24K6SSFO.js} +2 -2
- package/client-dist/{voice-notes-poc.module-WV4DMW3S.js → voice-notes-poc.module-IW7VPFDD.js} +2 -2
- package/client-dist/{wfs.module-GIXOJHRJ.js → wfs.module-S2SMAT5Z.js} +2 -2
- package/package.json +1 -1
- package/client-dist/cc-usage-dashboard.component-MGVQCZUN.js +0 -2
- package/client-dist/cc-usage-dashboard.component-MGVQCZUN.js.map +0 -7
- package/client-dist/chunk-GWK7XTQP.js +0 -2
- package/client-dist/chunk-GWK7XTQP.js.map +0 -7
- package/client-dist/project-source-routed.module-G3PDOXVT.js +0 -2
- /package/client-dist/{agent-instances.module-UYD2XYZE.js.map → agent-instances.module-T6EFJFPE.js.map} +0 -0
- /package/client-dist/{ca.module-3CDQXCAY.js.map → ca.module-NCBI74FP.js.map} +0 -0
- /package/client-dist/{chunk-EFNJA3BL.js.map → chunk-2DR4NRFY.js.map} +0 -0
- /package/client-dist/{chunk-NOL3YONA.js.map → chunk-2ZI26XMZ.js.map} +0 -0
- /package/client-dist/{chunk-IZEUWGJK.js.map → chunk-3N2JTN7N.js.map} +0 -0
- /package/client-dist/{chunk-KRHX46JK.js.map → chunk-4UKDXJIX.js.map} +0 -0
- /package/client-dist/{chunk-YMTP6F2C.js.map → chunk-5BYRCQ4G.js.map} +0 -0
- /package/client-dist/{chunk-JU3RXVDX.js.map → chunk-66FQLE3Y.js.map} +0 -0
- /package/client-dist/{chunk-E65UDGDD.js.map → chunk-6HZB6QSW.js.map} +0 -0
- /package/client-dist/{chunk-5QAKXYWT.js.map → chunk-6RYNRTDZ.js.map} +0 -0
- /package/client-dist/{chunk-Z3Y2VOXP.js.map → chunk-6UQHXR3E.js.map} +0 -0
- /package/client-dist/{chunk-GIL5OROM.js.map → chunk-7IUV4ACY.js.map} +0 -0
- /package/client-dist/{chunk-QAT6LVRB.js.map → chunk-A37XCJWY.js.map} +0 -0
- /package/client-dist/{chunk-ZFOQPLZY.js.map → chunk-ASAT75IU.js.map} +0 -0
- /package/client-dist/{chunk-4J5DWAPO.js.map → chunk-AWIEYMZV.js.map} +0 -0
- /package/client-dist/{chunk-SPUD4EJ3.js.map → chunk-BR7XXFVN.js.map} +0 -0
- /package/client-dist/{chunk-VFQYSWYJ.js.map → chunk-BWH3JLHB.js.map} +0 -0
- /package/client-dist/{chunk-CZTIPDFA.js.map → chunk-DZFGKIFO.js.map} +0 -0
- /package/client-dist/{chunk-XQESPKDR.js.map → chunk-E5QVIO4C.js.map} +0 -0
- /package/client-dist/{chunk-C2XSLL34.js.map → chunk-EUEEHSUR.js.map} +0 -0
- /package/client-dist/{chunk-MZ3YYQWQ.js.map → chunk-EVV5L3LF.js.map} +0 -0
- /package/client-dist/{chunk-GIOHSC4G.js.map → chunk-F4BNEQYE.js.map} +0 -0
- /package/client-dist/{chunk-7MDPIWHS.js.map → chunk-F4DZS3GH.js.map} +0 -0
- /package/client-dist/{chunk-7QLE2HOD.js.map → chunk-FWVYBWXT.js.map} +0 -0
- /package/client-dist/{chunk-EUOPIQ5M.js.map → chunk-FYMVJNXZ.js.map} +0 -0
- /package/client-dist/{chunk-6D27TSZV.js.map → chunk-GDAWHJEQ.js.map} +0 -0
- /package/client-dist/{chunk-FJ4AQ7DJ.js.map → chunk-H3QXSZIS.js.map} +0 -0
- /package/client-dist/{chunk-27RTDRPJ.js.map → chunk-HZSNYOA4.js.map} +0 -0
- /package/client-dist/{chunk-45RYB36M.js.map → chunk-I7TF6JIJ.js.map} +0 -0
- /package/client-dist/{chunk-55LHNHV7.js.map → chunk-IFF2675Y.js.map} +0 -0
- /package/client-dist/{chunk-RW5UDPYM.js.map → chunk-M6EVLEFQ.js.map} +0 -0
- /package/client-dist/{chunk-WZGZ4B4R.js.map → chunk-MLGDSF43.js.map} +0 -0
- /package/client-dist/{chunk-JZMWWTFG.js.map → chunk-MS2KQ2G4.js.map} +0 -0
- /package/client-dist/{chunk-VRW33XBA.js.map → chunk-N4KTLLCR.js.map} +0 -0
- /package/client-dist/{chunk-MFTEXAIX.js.map → chunk-N72DAUY2.js.map} +0 -0
- /package/client-dist/{chunk-VNUSAOT6.js.map → chunk-NEYB4VGZ.js.map} +0 -0
- /package/client-dist/{chunk-32WW5HVW.js.map → chunk-NIEBWTUO.js.map} +0 -0
- /package/client-dist/{chunk-G67NI7SB.js.map → chunk-NQ33IXIS.js.map} +0 -0
- /package/client-dist/{chunk-JV5HX5WS.js.map → chunk-OKZUEJZL.js.map} +0 -0
- /package/client-dist/{chunk-ORUMPAIH.js.map → chunk-P5OOFVBC.js.map} +0 -0
- /package/client-dist/{chunk-FTD33PGM.js.map → chunk-PR5JV6XX.js.map} +0 -0
- /package/client-dist/{chunk-QP4ANIRB.js.map → chunk-PY7ZXKHG.js.map} +0 -0
- /package/client-dist/{chunk-4VX4P4Q3.js.map → chunk-Q7ORWYDO.js.map} +0 -0
- /package/client-dist/{chunk-TEX5KB4S.js.map → chunk-QIXXTQJJ.js.map} +0 -0
- /package/client-dist/{chunk-JJGA6W5B.js.map → chunk-QKA6WOBV.js.map} +0 -0
- /package/client-dist/{chunk-KOC4SVZ5.js.map → chunk-QP53M3ES.js.map} +0 -0
- /package/client-dist/{chunk-BGZFNZ2C.js.map → chunk-QQ2C4ATW.js.map} +0 -0
- /package/client-dist/{chunk-32QSFPDR.js.map → chunk-QXQWNRPL.js.map} +0 -0
- /package/client-dist/{chunk-FIEFWNJ6.js.map → chunk-SNRZOR27.js.map} +0 -0
- /package/client-dist/{chunk-QKJHPKSW.js.map → chunk-SXZ6SL34.js.map} +0 -0
- /package/client-dist/{chunk-2UN7HPVU.js.map → chunk-UKVDEDDM.js.map} +0 -0
- /package/client-dist/{chunk-OMWHFGY6.js.map → chunk-VTB3IOVV.js.map} +0 -0
- /package/client-dist/{chunk-N7EJNOHR.js.map → chunk-WTIUHUMN.js.map} +0 -0
- /package/client-dist/{chunk-7NW27ZEP.js.map → chunk-YWLPTL5I.js.map} +0 -0
- /package/client-dist/{chunk-ADKAF2LM.js.map → chunk-YXBF6EUR.js.map} +0 -0
- /package/client-dist/{chunk-OZ3TFPBG.js.map → chunk-YYUKX4AF.js.map} +0 -0
- /package/client-dist/{chunk-QRLOYIIN.js.map → chunk-YZ27TRGU.js.map} +0 -0
- /package/client-dist/{consultant.module-MXCBA6UI.js.map → consultant.module-RMGDKO7R.js.map} +0 -0
- /package/client-dist/{crd.module-PGOP7A3H.js.map → crd.module-7WOWOPYH.js.map} +0 -0
- /package/client-dist/{dashboard.module-YAWOK3X4.js.map → dashboard.module-UH6C2XJC.js.map} +0 -0
- /package/client-dist/{do.module-YPKXT2VE.js.map → do.module-DITA42VY.js.map} +0 -0
- /package/client-dist/{document-library.module-47UIYBBS.js.map → document-library.module-NDPVJJ3N.js.map} +0 -0
- /package/client-dist/{embedding-eval.module-ZFEAXH6R.js.map → embedding-eval.module-JROZZ6QM.js.map} +0 -0
- /package/client-dist/{embedding-registry.module-CX6ONIEM.js.map → embedding-registry.module-OYU7CQPU.js.map} +0 -0
- /package/client-dist/{err.module-2WOMSH46.js.map → err.module-M7L4RF46.js.map} +0 -0
- /package/client-dist/{feedback.module-KVOQQYW7.js.map → feedback.module-ZG272S6E.js.map} +0 -0
- /package/client-dist/{host-runtime-mcp.module-76HVPG4X.js.map → host-runtime-mcp.module-PVVACC4N.js.map} +0 -0
- /package/client-dist/{live-dev-pipeline.module-ZNMPF3BA.js.map → live-dev-pipeline.module-FKNKOKZ4.js.map} +0 -0
- /package/client-dist/{logs.module-N37FMRF3.js.map → logs.module-MN6SDRMH.js.map} +0 -0
- /package/client-dist/{main-CCBBKAON.js.map → main-NHPLEEM5.js.map} +0 -0
- /package/client-dist/{master-control-remote-poc.module-N65RQBOH.js.map → master-control-remote-poc.module-A3XO6MIC.js.map} +0 -0
- /package/client-dist/{mobile-app.module-SFHXH642.js.map → mobile-app.module-QADWA6MM.js.map} +0 -0
- /package/client-dist/{model-registry.module-QHKLMBXO.js.map → model-registry.module-IRG2HWJO.js.map} +0 -0
- /package/client-dist/{oc.module-JGV3IDGY.js.map → oc.module-52TKAH2Q.js.map} +0 -0
- /package/client-dist/{orc.module-VZ5XW5KW.js.map → orc.module-HSTBXIQM.js.map} +0 -0
- /package/client-dist/{project-management.module-DL4TUNDP.js.map → project-management.module-FL2RWRKY.js.map} +0 -0
- /package/client-dist/{project-source-routed.module-G3PDOXVT.js.map → project-source-routed.module-N76TUCOI.js.map} +0 -0
- /package/client-dist/{scheduler.module-Q3SJSC4T.js.map → scheduler.module-XYY22JMT.js.map} +0 -0
- /package/client-dist/{session.module-U2IP5J2B.js.map → session.module-N2DJOIHD.js.map} +0 -0
- /package/client-dist/{set.module-GTMFMOEB.js.map → set.module-XW5X3ZLY.js.map} +0 -0
- /package/client-dist/{setup.module-4TXUKI27.js.map → setup.module-B4QMBFKV.js.map} +0 -0
- /package/client-dist/{terminals.module-W3ZC3EEB.js.map → terminals.module-24K6SSFO.js.map} +0 -0
- /package/client-dist/{voice-notes-poc.module-WV4DMW3S.js.map → voice-notes-poc.module-IW7VPFDD.js.map} +0 -0
- /package/client-dist/{wfs.module-GIXOJHRJ.js.map → wfs.module-S2SMAT5Z.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as mi,c as hi,d as Te}from"./chunk-45RYB36M.js";import{c as Tt}from"./chunk-ZFOQPLZY.js";import{a as fi}from"./chunk-RW5UDPYM.js";import{a as di}from"./chunk-VNUSAOT6.js";import{a as gi}from"./chunk-QAT6LVRB.js";import{f as si,i as ai,n as li,o as ci,p as pi,v as ui}from"./chunk-EO4DNTT4.js";import{a as sn}from"./chunk-5UPNU54P.js";import{j as Et}from"./chunk-JZMWWTFG.js";import{p as on}from"./chunk-5APAM7YJ.js";import{$a as Y,C as se,Cb as vt,D as Ve,Fa as g,G as ei,Ga as T,Ha as tn,Hb as ri,Ia as nn,J as P,K as O,Kb as oi,L as ae,M as Qe,T as Xe,Ta as Ge,U as fe,Ua as rn,W as yt,X as wt,Z as d,_ as ti,a as oe,aa as G,ab as Q,b as Ue,da as A,fa as Re,ga as M,h as en,hb as w,ja as W,jb as ii,k as D,la as k,na as St,oa as ve,pa as Ee,qa as c,ra as p,sa as v,ua as F,ub as je,va as z,wa as _,xa as ni,y as He,ya as et}from"./chunk-TBMJSIBB.js";var{entries:vi,setPrototypeOf:_i,isFrozen:fr,getPrototypeOf:gr,getOwnPropertyDescriptor:_r}=Object,{freeze:te,seal:ce,create:Rt}=Object,{apply:mn,construct:hn}=typeof Reflect<"u"&&Reflect;te||(te=function(n){return n});ce||(ce=function(n){return n});mn||(mn=function(n,e){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return n.apply(e,i)});hn||(hn=function(n){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new n(...r)});var At=ne(Array.prototype.forEach),xr=ne(Array.prototype.lastIndexOf),xi=ne(Array.prototype.pop),tt=ne(Array.prototype.push),br=ne(Array.prototype.splice),$t=ne(String.prototype.toLowerCase),an=ne(String.prototype.toString),ln=ne(String.prototype.match),nt=ne(String.prototype.replace),Cr=ne(String.prototype.indexOf),kr=ne(String.prototype.trim),le=ne(Object.prototype.hasOwnProperty),ee=ne(RegExp.prototype.test),it=yr(TypeError);function ne(t){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return mn(t,n,r)}}function yr(t){return function(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];return hn(t,e)}}function E(t,n){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$t;_i&&_i(t,null);let r=n.length;for(;r--;){let i=n[r];if(typeof i=="string"){let o=e(i);o!==i&&(fr(n)||(n[r]=o),i=o)}t[i]=!0}return t}function wr(t){for(let n=0;n<t.length;n++)le(t,n)||(t[n]=null);return t}function ge(t){let n=Rt(null);for(let[e,r]of vi(t))le(t,e)&&(Array.isArray(r)?n[e]=wr(r):r&&typeof r=="object"&&r.constructor===Object?n[e]=ge(r):n[e]=r);return n}function rt(t,n){for(;t!==null;){let r=_r(t,n);if(r){if(r.get)return ne(r.get);if(typeof r.value=="function")return ne(r.value)}t=gr(t)}function e(){return null}return e}var bi=te(["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=te(["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"]),pn=te(["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"]),Sr=te(["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=te(["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"]),vr=te(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ci=te(["#text"]),ki=te(["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"]),dn=te(["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"]),yi=te(["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"]),Mt=te(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Er=ce(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Tr=ce(/<%[\w\W]*|[\w\W]*%>/gm),Ar=ce(/\$\{[\w\W]*/gm),Mr=ce(/^data-[\-\w.\u00B7-\uFFFF]+$/),Rr=ce(/^aria-[\-\w]+$/),Ei=ce(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$r=ce(/^(?:\w+script|data):/i),Lr=ce(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ti=ce(/^html$/i),Ir=ce(/^[a-z][.\w]*(-[.\w]+)+$/i),wi=Object.freeze({__proto__:null,ARIA_ATTR:Rr,ATTR_WHITESPACE:Lr,CUSTOM_ELEMENT:Ir,DATA_ATTR:Mr,DOCTYPE_NAME:Ti,ERB_EXPR:Tr,IS_ALLOWED_URI:Ei,IS_SCRIPT_OR_DATA:$r,MUSTACHE_EXPR:Er,TMPLIT_EXPR:Ar}),ot={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Br=function(){return typeof window>"u"?null:window},Dr=function(n,e){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null,i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(r=e.getAttribute(i));let o="dompurify"+(r?"#"+r:"");try{return n.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" 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]:Br(),n=b=>Ai(b);if(n.version="3.3.3",n.removed=[],!t||!t.document||t.document.nodeType!==ot.document||!t.Element)return n.isSupported=!1,n;let{document:e}=t,r=e,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:u,Element:l,NodeFilter:h,NamedNodeMap:m=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:C,DOMParser:S,trustedTypes:I}=t,L=l.prototype,pe=rt(L,"cloneNode"),ut=rt(L,"remove"),dt=rt(L,"nextSibling"),mt=rt(L,"childNodes"),Be=rt(L,"parentNode");if(typeof s=="function"){let b=e.createElement("template");b.content&&b.content.ownerDocument&&(e=b.content.ownerDocument)}let q,be="",{implementation:Ce,createNodeIterator:Xi,createDocumentFragment:er,getElementsByTagName:tr}=e,{importNode:nr}=r,X=Si();n.isSupported=typeof vi=="function"&&typeof Be=="function"&&Ce&&Ce.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Ft,ERB_EXPR:Ut,TMPLIT_EXPR:Ht,DATA_ATTR:ir,ARIA_ATTR:rr,IS_SCRIPT_OR_DATA:or,ATTR_WHITESPACE:Rn,CUSTOM_ELEMENT:sr}=wi,{IS_ALLOWED_URI:$n}=wi,j=null,Ln=E({},[...bi,...cn,...pn,...un,...Ci]),K=null,In=E({},[...ki,...dn,...yi,...Mt]),U=Object.seal(Rt(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}})),Je=null,ht=null,Se=Object.seal(Rt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Bn=!0,Vt=!0,Dn=!1,Pn=!0,De=!1,ft=!0,Ae=!1,Gt=!1,jt=!1,Pe=!1,gt=!1,_t=!1,On=!0,zn=!1,ar="user-content-",Wt=!0,Ze=!1,Oe={},me=null,qt=E({},["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=E({},["audio","video","img","source","image","track"]),Kt=null,Un=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),xt="http://www.w3.org/1998/Math/MathML",bt="http://www.w3.org/2000/svg",ke="http://www.w3.org/1999/xhtml",ze=ke,Jt=!1,Zt=null,lr=E({},[xt,bt,ke],an),Ct=E({},["mi","mo","mn","ms","mtext"]),kt=E({},["annotation-xml"]),cr=E({},["title","style","font","a","script"]),Ye=null,pr=["application/xhtml+xml","text/html"],ur="text/html",V=null,Ne=null,dr=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(!(Ne&&Ne===a)){if((!a||typeof a!="object")&&(a={}),a=ge(a),Ye=pr.indexOf(a.PARSER_MEDIA_TYPE)===-1?ur:a.PARSER_MEDIA_TYPE,V=Ye==="application/xhtml+xml"?an:$t,j=le(a,"ALLOWED_TAGS")?E({},a.ALLOWED_TAGS,V):Ln,K=le(a,"ALLOWED_ATTR")?E({},a.ALLOWED_ATTR,V):In,Zt=le(a,"ALLOWED_NAMESPACES")?E({},a.ALLOWED_NAMESPACES,an):lr,Kt=le(a,"ADD_URI_SAFE_ATTR")?E(ge(Un),a.ADD_URI_SAFE_ATTR,V):Un,Nn=le(a,"ADD_DATA_URI_TAGS")?E(ge(Fn),a.ADD_DATA_URI_TAGS,V):Fn,me=le(a,"FORBID_CONTENTS")?E({},a.FORBID_CONTENTS,V):qt,Je=le(a,"FORBID_TAGS")?E({},a.FORBID_TAGS,V):ge({}),ht=le(a,"FORBID_ATTR")?E({},a.FORBID_ATTR,V):ge({}),Oe=le(a,"USE_PROFILES")?a.USE_PROFILES:!1,Bn=a.ALLOW_ARIA_ATTR!==!1,Vt=a.ALLOW_DATA_ATTR!==!1,Dn=a.ALLOW_UNKNOWN_PROTOCOLS||!1,Pn=a.ALLOW_SELF_CLOSE_IN_ATTR!==!1,De=a.SAFE_FOR_TEMPLATES||!1,ft=a.SAFE_FOR_XML!==!1,Ae=a.WHOLE_DOCUMENT||!1,Pe=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,Ze=a.IN_PLACE||!1,$n=a.ALLOWED_URI_REGEXP||Ei,ze=a.NAMESPACE||ke,Ct=a.MATHML_TEXT_INTEGRATION_POINTS||Ct,kt=a.HTML_INTEGRATION_POINTS||kt,U=a.CUSTOM_ELEMENT_HANDLING||{},a.CUSTOM_ELEMENT_HANDLING&&Hn(a.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(U.tagNameCheck=a.CUSTOM_ELEMENT_HANDLING.tagNameCheck),a.CUSTOM_ELEMENT_HANDLING&&Hn(a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(U.attributeNameCheck=a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),a.CUSTOM_ELEMENT_HANDLING&&typeof a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(U.allowCustomizedBuiltInElements=a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(Vt=!1),gt&&(Pe=!0),Oe&&(j=E({},Ci),K=Rt(null),Oe.html===!0&&(E(j,bi),E(K,ki)),Oe.svg===!0&&(E(j,cn),E(K,dn),E(K,Mt)),Oe.svgFilters===!0&&(E(j,pn),E(K,dn),E(K,Mt)),Oe.mathMl===!0&&(E(j,un),E(K,yi),E(K,Mt))),le(a,"ADD_TAGS")||(Se.tagCheck=null),le(a,"ADD_ATTR")||(Se.attributeCheck=null),a.ADD_TAGS&&(typeof a.ADD_TAGS=="function"?Se.tagCheck=a.ADD_TAGS:(j===Ln&&(j=ge(j)),E(j,a.ADD_TAGS,V))),a.ADD_ATTR&&(typeof a.ADD_ATTR=="function"?Se.attributeCheck=a.ADD_ATTR:(K===In&&(K=ge(K)),E(K,a.ADD_ATTR,V))),a.ADD_URI_SAFE_ATTR&&E(Kt,a.ADD_URI_SAFE_ATTR,V),a.FORBID_CONTENTS&&(me===qt&&(me=ge(me)),E(me,a.FORBID_CONTENTS,V)),a.ADD_FORBID_CONTENTS&&(me===qt&&(me=ge(me)),E(me,a.ADD_FORBID_CONTENTS,V)),Wt&&(j["#text"]=!0),Ae&&E(j,["html","head","body"]),j.table&&(E(j,["tbody"]),delete Je.tbody),a.TRUSTED_TYPES_POLICY){if(typeof a.TRUSTED_TYPES_POLICY.createHTML!="function")throw it('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof a.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw it('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');q=a.TRUSTED_TYPES_POLICY,be=q.createHTML("")}else q===void 0&&(q=Dr(I,i)),q!==null&&typeof be=="string"&&(be=q.createHTML(""));te&&te(a),Ne=a}},Vn=E({},[...cn,...pn,...Sr]),Gn=E({},[...un,...vr]),mr=function(a){let f=Be(a);(!f||!f.tagName)&&(f={namespaceURI:ze,tagName:"template"});let x=$t(a.tagName),B=$t(f.tagName);return Zt[a.namespaceURI]?a.namespaceURI===bt?f.namespaceURI===ke?x==="svg":f.namespaceURI===xt?x==="svg"&&(B==="annotation-xml"||Ct[B]):!!Vn[x]:a.namespaceURI===xt?f.namespaceURI===ke?x==="math":f.namespaceURI===bt?x==="math"&&kt[B]:!!Gn[x]:a.namespaceURI===ke?f.namespaceURI===bt&&!kt[B]||f.namespaceURI===xt&&!Ct[B]?!1:!Gn[x]&&(cr[x]||!Vn[x]):!!(Ye==="application/xhtml+xml"&&Zt[a.namespaceURI]):!1},he=function(a){tt(n.removed,{element:a});try{Be(a).removeChild(a)}catch{ut(a)}},Me=function(a,f){try{tt(n.removed,{attribute:f.getAttributeNode(a),from:f})}catch{tt(n.removed,{attribute:null,from:f})}if(f.removeAttribute(a),a==="is")if(Pe||gt)try{he(f)}catch{}else try{f.setAttribute(a,"")}catch{}},jn=function(a){let f=null,x=null;if(jt)a="<remove></remove>"+a;else{let H=ln(a,/^[\r\n\t ]+/);x=H&&H[0]}Ye==="application/xhtml+xml"&&ze===ke&&(a='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+a+"</body></html>");let B=q?q.createHTML(a):a;if(ze===ke)try{f=new S().parseFromString(B,Ye)}catch{}if(!f||!f.documentElement){f=Ce.createDocument(ze,"template",null);try{f.documentElement.innerHTML=Jt?be:B}catch{}}let Z=f.body||f.documentElement;return a&&x&&Z.insertBefore(e.createTextNode(x),Z.childNodes[0]||null),ze===ke?tr.call(f,Ae?"html":"body")[0]:Ae?f.documentElement:Z},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 ye(b,a,f){At(b,x=>{x.call(n,a,f,Ne)})}let Kn=function(a){let f=null;if(ye(X.beforeSanitizeElements,a,null),Qt(a))return he(a),!0;let x=V(a.nodeName);if(ye(X.uponSanitizeElement,a,{tagName:x,allowedTags:j}),ft&&a.hasChildNodes()&&!qn(a.firstElementChild)&&ee(/<[/\w!]/g,a.innerHTML)&&ee(/<[/\w!]/g,a.textContent)||a.nodeType===ot.progressingInstruction||ft&&a.nodeType===ot.comment&&ee(/<[/\w]/g,a.data))return he(a),!0;if(!(Se.tagCheck instanceof Function&&Se.tagCheck(x))&&(!j[x]||Je[x])){if(!Je[x]&&Zn(x)&&(U.tagNameCheck instanceof RegExp&&ee(U.tagNameCheck,x)||U.tagNameCheck instanceof Function&&U.tagNameCheck(x)))return!1;if(Wt&&!me[x]){let B=Be(a)||a.parentNode,Z=mt(a)||a.childNodes;if(Z&&B){let H=Z.length;for(let re=H-1;re>=0;--re){let we=pe(Z[re],!0);we.__removalCount=(a.__removalCount||0)+1,B.insertBefore(we,dt(a))}}}return he(a),!0}return a instanceof l&&!mr(a)||(x==="noscript"||x==="noembed"||x==="noframes")&&ee(/<\/no(script|embed|frames)/i,a.innerHTML)?(he(a),!0):(De&&a.nodeType===ot.text&&(f=a.textContent,At([Ft,Ut,Ht],B=>{f=nt(f,B," ")}),a.textContent!==f&&(tt(n.removed,{element:a.cloneNode()}),a.textContent=f)),ye(X.afterSanitizeElements,a,null),!1)},Jn=function(a,f,x){if(ht[f]||On&&(f==="id"||f==="name")&&(x in e||x in dr))return!1;if(!(Vt&&!ht[f]&&ee(ir,f))){if(!(Bn&&ee(rr,f))){if(!(Se.attributeCheck instanceof Function&&Se.attributeCheck(f,a))){if(!K[f]||ht[f]){if(!(Zn(a)&&(U.tagNameCheck instanceof RegExp&&ee(U.tagNameCheck,a)||U.tagNameCheck instanceof Function&&U.tagNameCheck(a))&&(U.attributeNameCheck instanceof RegExp&&ee(U.attributeNameCheck,f)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck(f,a))||f==="is"&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&ee(U.tagNameCheck,x)||U.tagNameCheck instanceof Function&&U.tagNameCheck(x))))return!1}else if(!Kt[f]){if(!ee($n,nt(x,Rn,""))){if(!((f==="src"||f==="xlink:href"||f==="href")&&a!=="script"&&Cr(x,"data:")===0&&Nn[a])){if(!(Dn&&!ee(or,nt(x,Rn,"")))){if(x)return!1}}}}}}}return!0},Zn=function(a){return a!=="annotation-xml"&&ln(a,sr)},Yn=function(a){ye(X.beforeSanitizeAttributes,a,null);let{attributes:f}=a;if(!f||Qt(a))return;let x={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K,forceKeepAttr:void 0},B=f.length;for(;B--;){let Z=f[B],{name:H,namespaceURI:re,value:we}=Z,Fe=V(H),Xt=we,J=H==="value"?Xt:kr(Xt);if(x.attrName=Fe,x.attrValue=J,x.keepAttr=!0,x.forceKeepAttr=void 0,ye(X.uponSanitizeAttribute,a,x),J=x.attrValue,zn&&(Fe==="id"||Fe==="name")&&(Me(H,a),J=ar+J),ft&&ee(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,J)){Me(H,a);continue}if(Fe==="attributename"&&ln(J,"href")){Me(H,a);continue}if(x.forceKeepAttr)continue;if(!x.keepAttr){Me(H,a);continue}if(!Pn&&ee(/\/>/i,J)){Me(H,a);continue}De&&At([Ft,Ut,Ht],Xn=>{J=nt(J,Xn," ")});let Qn=V(a.nodeName);if(!Jn(Qn,Fe,J)){Me(H,a);continue}if(q&&typeof I=="object"&&typeof I.getAttributeType=="function"&&!re)switch(I.getAttributeType(Qn,Fe)){case"TrustedHTML":{J=q.createHTML(J);break}case"TrustedScriptURL":{J=q.createScriptURL(J);break}}if(J!==Xt)try{re?a.setAttributeNS(re,H,J):a.setAttribute(H,J),Qt(a)?he(a):xi(n.removed)}catch{Me(H,a)}}ye(X.afterSanitizeAttributes,a,null)},hr=function b(a){let f=null,x=Wn(a);for(ye(X.beforeSanitizeShadowDOM,a,null);f=x.nextNode();)ye(X.uponSanitizeShadowNode,f,null),Kn(f),Yn(f),f.content instanceof o&&b(f.content);ye(X.afterSanitizeShadowDOM,a,null)};return n.sanitize=function(b){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=null,x=null,B=null,Z=null;if(Jt=!b,Jt&&(b="<!-->"),typeof b!="string"&&!qn(b))if(typeof b.toString=="function"){if(b=b.toString(),typeof b!="string")throw it("dirty is not a string, aborting")}else throw it("toString is not a function");if(!n.isSupported)return b;if(Gt||Yt(a),n.removed=[],typeof b=="string"&&(Ze=!1),Ze){if(b.nodeName){let we=V(b.nodeName);if(!j[we]||Je[we])throw it("root node is forbidden and cannot be sanitized in-place")}}else if(b instanceof u)f=jn("<!---->"),x=f.ownerDocument.importNode(b,!0),x.nodeType===ot.element&&x.nodeName==="BODY"||x.nodeName==="HTML"?f=x:f.appendChild(x);else{if(!Pe&&!De&&!Ae&&b.indexOf("<")===-1)return q&&_t?q.createHTML(b):b;if(f=jn(b),!f)return Pe?null:_t?be:""}f&&jt&&he(f.firstChild);let H=Wn(Ze?b:f);for(;B=H.nextNode();)Kn(B),Yn(B),B.content instanceof o&&hr(B.content);if(Ze)return b;if(Pe){if(gt)for(Z=er.call(f.ownerDocument);f.firstChild;)Z.appendChild(f.firstChild);else Z=f;return(K.shadowroot||K.shadowrootmode)&&(Z=nr.call(r,Z,!0)),Z}let re=Ae?f.outerHTML:f.innerHTML;return Ae&&j["!doctype"]&&f.ownerDocument&&f.ownerDocument.doctype&&f.ownerDocument.doctype.name&&ee(Ti,f.ownerDocument.doctype.name)&&(re="<!DOCTYPE "+f.ownerDocument.doctype.name+`>
|
|
1
|
+
import{b as mi,c as hi,d as Te}from"./chunk-I7TF6JIJ.js";import{c as Tt}from"./chunk-ASAT75IU.js";import{a as fi}from"./chunk-M6EVLEFQ.js";import{a as di}from"./chunk-NEYB4VGZ.js";import{a as gi}from"./chunk-A37XCJWY.js";import{f as si,i as ai,n as li,o as ci,p as pi,v as ui}from"./chunk-EO4DNTT4.js";import{a as sn}from"./chunk-5UPNU54P.js";import{j as Et}from"./chunk-MS2KQ2G4.js";import{p as on}from"./chunk-WR6NSOQ2.js";import{$a as Y,C as se,Cb as vt,D as Ve,Fa as g,G as ei,Ga as T,Ha as tn,Hb as ri,Ia as nn,J as P,K as O,Kb as oi,L as ae,M as Qe,T as Xe,Ta as Ge,U as fe,Ua as rn,W as yt,X as wt,Z as d,_ as ti,a as oe,aa as G,ab as Q,b as Ue,da as A,fa as Re,ga as M,h as en,hb as w,ja as W,jb as ii,k as D,la as k,na as St,oa as ve,pa as Ee,qa as c,ra as p,sa as v,ua as F,ub as je,va as z,wa as _,xa as ni,y as He,ya as et}from"./chunk-TBMJSIBB.js";var{entries:vi,setPrototypeOf:_i,isFrozen:fr,getPrototypeOf:gr,getOwnPropertyDescriptor:_r}=Object,{freeze:te,seal:ce,create:Rt}=Object,{apply:mn,construct:hn}=typeof Reflect<"u"&&Reflect;te||(te=function(n){return n});ce||(ce=function(n){return n});mn||(mn=function(n,e){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return n.apply(e,i)});hn||(hn=function(n){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new n(...r)});var At=ne(Array.prototype.forEach),xr=ne(Array.prototype.lastIndexOf),xi=ne(Array.prototype.pop),tt=ne(Array.prototype.push),br=ne(Array.prototype.splice),$t=ne(String.prototype.toLowerCase),an=ne(String.prototype.toString),ln=ne(String.prototype.match),nt=ne(String.prototype.replace),Cr=ne(String.prototype.indexOf),kr=ne(String.prototype.trim),le=ne(Object.prototype.hasOwnProperty),ee=ne(RegExp.prototype.test),it=yr(TypeError);function ne(t){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return mn(t,n,r)}}function yr(t){return function(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];return hn(t,e)}}function E(t,n){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$t;_i&&_i(t,null);let r=n.length;for(;r--;){let i=n[r];if(typeof i=="string"){let o=e(i);o!==i&&(fr(n)||(n[r]=o),i=o)}t[i]=!0}return t}function wr(t){for(let n=0;n<t.length;n++)le(t,n)||(t[n]=null);return t}function ge(t){let n=Rt(null);for(let[e,r]of vi(t))le(t,e)&&(Array.isArray(r)?n[e]=wr(r):r&&typeof r=="object"&&r.constructor===Object?n[e]=ge(r):n[e]=r);return n}function rt(t,n){for(;t!==null;){let r=_r(t,n);if(r){if(r.get)return ne(r.get);if(typeof r.value=="function")return ne(r.value)}t=gr(t)}function e(){return null}return e}var bi=te(["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=te(["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"]),pn=te(["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"]),Sr=te(["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=te(["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"]),vr=te(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ci=te(["#text"]),ki=te(["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"]),dn=te(["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"]),yi=te(["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"]),Mt=te(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Er=ce(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Tr=ce(/<%[\w\W]*|[\w\W]*%>/gm),Ar=ce(/\$\{[\w\W]*/gm),Mr=ce(/^data-[\-\w.\u00B7-\uFFFF]+$/),Rr=ce(/^aria-[\-\w]+$/),Ei=ce(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$r=ce(/^(?:\w+script|data):/i),Lr=ce(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ti=ce(/^html$/i),Ir=ce(/^[a-z][.\w]*(-[.\w]+)+$/i),wi=Object.freeze({__proto__:null,ARIA_ATTR:Rr,ATTR_WHITESPACE:Lr,CUSTOM_ELEMENT:Ir,DATA_ATTR:Mr,DOCTYPE_NAME:Ti,ERB_EXPR:Tr,IS_ALLOWED_URI:Ei,IS_SCRIPT_OR_DATA:$r,MUSTACHE_EXPR:Er,TMPLIT_EXPR:Ar}),ot={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Br=function(){return typeof window>"u"?null:window},Dr=function(n,e){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null,i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(r=e.getAttribute(i));let o="dompurify"+(r?"#"+r:"");try{return n.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" 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]:Br(),n=b=>Ai(b);if(n.version="3.3.3",n.removed=[],!t||!t.document||t.document.nodeType!==ot.document||!t.Element)return n.isSupported=!1,n;let{document:e}=t,r=e,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:u,Element:l,NodeFilter:h,NamedNodeMap:m=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:C,DOMParser:S,trustedTypes:I}=t,L=l.prototype,pe=rt(L,"cloneNode"),ut=rt(L,"remove"),dt=rt(L,"nextSibling"),mt=rt(L,"childNodes"),Be=rt(L,"parentNode");if(typeof s=="function"){let b=e.createElement("template");b.content&&b.content.ownerDocument&&(e=b.content.ownerDocument)}let q,be="",{implementation:Ce,createNodeIterator:Xi,createDocumentFragment:er,getElementsByTagName:tr}=e,{importNode:nr}=r,X=Si();n.isSupported=typeof vi=="function"&&typeof Be=="function"&&Ce&&Ce.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Ft,ERB_EXPR:Ut,TMPLIT_EXPR:Ht,DATA_ATTR:ir,ARIA_ATTR:rr,IS_SCRIPT_OR_DATA:or,ATTR_WHITESPACE:Rn,CUSTOM_ELEMENT:sr}=wi,{IS_ALLOWED_URI:$n}=wi,j=null,Ln=E({},[...bi,...cn,...pn,...un,...Ci]),K=null,In=E({},[...ki,...dn,...yi,...Mt]),U=Object.seal(Rt(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}})),Je=null,ht=null,Se=Object.seal(Rt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Bn=!0,Vt=!0,Dn=!1,Pn=!0,De=!1,ft=!0,Ae=!1,Gt=!1,jt=!1,Pe=!1,gt=!1,_t=!1,On=!0,zn=!1,ar="user-content-",Wt=!0,Ze=!1,Oe={},me=null,qt=E({},["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=E({},["audio","video","img","source","image","track"]),Kt=null,Un=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),xt="http://www.w3.org/1998/Math/MathML",bt="http://www.w3.org/2000/svg",ke="http://www.w3.org/1999/xhtml",ze=ke,Jt=!1,Zt=null,lr=E({},[xt,bt,ke],an),Ct=E({},["mi","mo","mn","ms","mtext"]),kt=E({},["annotation-xml"]),cr=E({},["title","style","font","a","script"]),Ye=null,pr=["application/xhtml+xml","text/html"],ur="text/html",V=null,Ne=null,dr=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(!(Ne&&Ne===a)){if((!a||typeof a!="object")&&(a={}),a=ge(a),Ye=pr.indexOf(a.PARSER_MEDIA_TYPE)===-1?ur:a.PARSER_MEDIA_TYPE,V=Ye==="application/xhtml+xml"?an:$t,j=le(a,"ALLOWED_TAGS")?E({},a.ALLOWED_TAGS,V):Ln,K=le(a,"ALLOWED_ATTR")?E({},a.ALLOWED_ATTR,V):In,Zt=le(a,"ALLOWED_NAMESPACES")?E({},a.ALLOWED_NAMESPACES,an):lr,Kt=le(a,"ADD_URI_SAFE_ATTR")?E(ge(Un),a.ADD_URI_SAFE_ATTR,V):Un,Nn=le(a,"ADD_DATA_URI_TAGS")?E(ge(Fn),a.ADD_DATA_URI_TAGS,V):Fn,me=le(a,"FORBID_CONTENTS")?E({},a.FORBID_CONTENTS,V):qt,Je=le(a,"FORBID_TAGS")?E({},a.FORBID_TAGS,V):ge({}),ht=le(a,"FORBID_ATTR")?E({},a.FORBID_ATTR,V):ge({}),Oe=le(a,"USE_PROFILES")?a.USE_PROFILES:!1,Bn=a.ALLOW_ARIA_ATTR!==!1,Vt=a.ALLOW_DATA_ATTR!==!1,Dn=a.ALLOW_UNKNOWN_PROTOCOLS||!1,Pn=a.ALLOW_SELF_CLOSE_IN_ATTR!==!1,De=a.SAFE_FOR_TEMPLATES||!1,ft=a.SAFE_FOR_XML!==!1,Ae=a.WHOLE_DOCUMENT||!1,Pe=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,Ze=a.IN_PLACE||!1,$n=a.ALLOWED_URI_REGEXP||Ei,ze=a.NAMESPACE||ke,Ct=a.MATHML_TEXT_INTEGRATION_POINTS||Ct,kt=a.HTML_INTEGRATION_POINTS||kt,U=a.CUSTOM_ELEMENT_HANDLING||{},a.CUSTOM_ELEMENT_HANDLING&&Hn(a.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(U.tagNameCheck=a.CUSTOM_ELEMENT_HANDLING.tagNameCheck),a.CUSTOM_ELEMENT_HANDLING&&Hn(a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(U.attributeNameCheck=a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),a.CUSTOM_ELEMENT_HANDLING&&typeof a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(U.allowCustomizedBuiltInElements=a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(Vt=!1),gt&&(Pe=!0),Oe&&(j=E({},Ci),K=Rt(null),Oe.html===!0&&(E(j,bi),E(K,ki)),Oe.svg===!0&&(E(j,cn),E(K,dn),E(K,Mt)),Oe.svgFilters===!0&&(E(j,pn),E(K,dn),E(K,Mt)),Oe.mathMl===!0&&(E(j,un),E(K,yi),E(K,Mt))),le(a,"ADD_TAGS")||(Se.tagCheck=null),le(a,"ADD_ATTR")||(Se.attributeCheck=null),a.ADD_TAGS&&(typeof a.ADD_TAGS=="function"?Se.tagCheck=a.ADD_TAGS:(j===Ln&&(j=ge(j)),E(j,a.ADD_TAGS,V))),a.ADD_ATTR&&(typeof a.ADD_ATTR=="function"?Se.attributeCheck=a.ADD_ATTR:(K===In&&(K=ge(K)),E(K,a.ADD_ATTR,V))),a.ADD_URI_SAFE_ATTR&&E(Kt,a.ADD_URI_SAFE_ATTR,V),a.FORBID_CONTENTS&&(me===qt&&(me=ge(me)),E(me,a.FORBID_CONTENTS,V)),a.ADD_FORBID_CONTENTS&&(me===qt&&(me=ge(me)),E(me,a.ADD_FORBID_CONTENTS,V)),Wt&&(j["#text"]=!0),Ae&&E(j,["html","head","body"]),j.table&&(E(j,["tbody"]),delete Je.tbody),a.TRUSTED_TYPES_POLICY){if(typeof a.TRUSTED_TYPES_POLICY.createHTML!="function")throw it('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof a.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw it('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');q=a.TRUSTED_TYPES_POLICY,be=q.createHTML("")}else q===void 0&&(q=Dr(I,i)),q!==null&&typeof be=="string"&&(be=q.createHTML(""));te&&te(a),Ne=a}},Vn=E({},[...cn,...pn,...Sr]),Gn=E({},[...un,...vr]),mr=function(a){let f=Be(a);(!f||!f.tagName)&&(f={namespaceURI:ze,tagName:"template"});let x=$t(a.tagName),B=$t(f.tagName);return Zt[a.namespaceURI]?a.namespaceURI===bt?f.namespaceURI===ke?x==="svg":f.namespaceURI===xt?x==="svg"&&(B==="annotation-xml"||Ct[B]):!!Vn[x]:a.namespaceURI===xt?f.namespaceURI===ke?x==="math":f.namespaceURI===bt?x==="math"&&kt[B]:!!Gn[x]:a.namespaceURI===ke?f.namespaceURI===bt&&!kt[B]||f.namespaceURI===xt&&!Ct[B]?!1:!Gn[x]&&(cr[x]||!Vn[x]):!!(Ye==="application/xhtml+xml"&&Zt[a.namespaceURI]):!1},he=function(a){tt(n.removed,{element:a});try{Be(a).removeChild(a)}catch{ut(a)}},Me=function(a,f){try{tt(n.removed,{attribute:f.getAttributeNode(a),from:f})}catch{tt(n.removed,{attribute:null,from:f})}if(f.removeAttribute(a),a==="is")if(Pe||gt)try{he(f)}catch{}else try{f.setAttribute(a,"")}catch{}},jn=function(a){let f=null,x=null;if(jt)a="<remove></remove>"+a;else{let H=ln(a,/^[\r\n\t ]+/);x=H&&H[0]}Ye==="application/xhtml+xml"&&ze===ke&&(a='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+a+"</body></html>");let B=q?q.createHTML(a):a;if(ze===ke)try{f=new S().parseFromString(B,Ye)}catch{}if(!f||!f.documentElement){f=Ce.createDocument(ze,"template",null);try{f.documentElement.innerHTML=Jt?be:B}catch{}}let Z=f.body||f.documentElement;return a&&x&&Z.insertBefore(e.createTextNode(x),Z.childNodes[0]||null),ze===ke?tr.call(f,Ae?"html":"body")[0]:Ae?f.documentElement:Z},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 ye(b,a,f){At(b,x=>{x.call(n,a,f,Ne)})}let Kn=function(a){let f=null;if(ye(X.beforeSanitizeElements,a,null),Qt(a))return he(a),!0;let x=V(a.nodeName);if(ye(X.uponSanitizeElement,a,{tagName:x,allowedTags:j}),ft&&a.hasChildNodes()&&!qn(a.firstElementChild)&&ee(/<[/\w!]/g,a.innerHTML)&&ee(/<[/\w!]/g,a.textContent)||a.nodeType===ot.progressingInstruction||ft&&a.nodeType===ot.comment&&ee(/<[/\w]/g,a.data))return he(a),!0;if(!(Se.tagCheck instanceof Function&&Se.tagCheck(x))&&(!j[x]||Je[x])){if(!Je[x]&&Zn(x)&&(U.tagNameCheck instanceof RegExp&&ee(U.tagNameCheck,x)||U.tagNameCheck instanceof Function&&U.tagNameCheck(x)))return!1;if(Wt&&!me[x]){let B=Be(a)||a.parentNode,Z=mt(a)||a.childNodes;if(Z&&B){let H=Z.length;for(let re=H-1;re>=0;--re){let we=pe(Z[re],!0);we.__removalCount=(a.__removalCount||0)+1,B.insertBefore(we,dt(a))}}}return he(a),!0}return a instanceof l&&!mr(a)||(x==="noscript"||x==="noembed"||x==="noframes")&&ee(/<\/no(script|embed|frames)/i,a.innerHTML)?(he(a),!0):(De&&a.nodeType===ot.text&&(f=a.textContent,At([Ft,Ut,Ht],B=>{f=nt(f,B," ")}),a.textContent!==f&&(tt(n.removed,{element:a.cloneNode()}),a.textContent=f)),ye(X.afterSanitizeElements,a,null),!1)},Jn=function(a,f,x){if(ht[f]||On&&(f==="id"||f==="name")&&(x in e||x in dr))return!1;if(!(Vt&&!ht[f]&&ee(ir,f))){if(!(Bn&&ee(rr,f))){if(!(Se.attributeCheck instanceof Function&&Se.attributeCheck(f,a))){if(!K[f]||ht[f]){if(!(Zn(a)&&(U.tagNameCheck instanceof RegExp&&ee(U.tagNameCheck,a)||U.tagNameCheck instanceof Function&&U.tagNameCheck(a))&&(U.attributeNameCheck instanceof RegExp&&ee(U.attributeNameCheck,f)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck(f,a))||f==="is"&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&ee(U.tagNameCheck,x)||U.tagNameCheck instanceof Function&&U.tagNameCheck(x))))return!1}else if(!Kt[f]){if(!ee($n,nt(x,Rn,""))){if(!((f==="src"||f==="xlink:href"||f==="href")&&a!=="script"&&Cr(x,"data:")===0&&Nn[a])){if(!(Dn&&!ee(or,nt(x,Rn,"")))){if(x)return!1}}}}}}}return!0},Zn=function(a){return a!=="annotation-xml"&&ln(a,sr)},Yn=function(a){ye(X.beforeSanitizeAttributes,a,null);let{attributes:f}=a;if(!f||Qt(a))return;let x={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K,forceKeepAttr:void 0},B=f.length;for(;B--;){let Z=f[B],{name:H,namespaceURI:re,value:we}=Z,Fe=V(H),Xt=we,J=H==="value"?Xt:kr(Xt);if(x.attrName=Fe,x.attrValue=J,x.keepAttr=!0,x.forceKeepAttr=void 0,ye(X.uponSanitizeAttribute,a,x),J=x.attrValue,zn&&(Fe==="id"||Fe==="name")&&(Me(H,a),J=ar+J),ft&&ee(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,J)){Me(H,a);continue}if(Fe==="attributename"&&ln(J,"href")){Me(H,a);continue}if(x.forceKeepAttr)continue;if(!x.keepAttr){Me(H,a);continue}if(!Pn&&ee(/\/>/i,J)){Me(H,a);continue}De&&At([Ft,Ut,Ht],Xn=>{J=nt(J,Xn," ")});let Qn=V(a.nodeName);if(!Jn(Qn,Fe,J)){Me(H,a);continue}if(q&&typeof I=="object"&&typeof I.getAttributeType=="function"&&!re)switch(I.getAttributeType(Qn,Fe)){case"TrustedHTML":{J=q.createHTML(J);break}case"TrustedScriptURL":{J=q.createScriptURL(J);break}}if(J!==Xt)try{re?a.setAttributeNS(re,H,J):a.setAttribute(H,J),Qt(a)?he(a):xi(n.removed)}catch{Me(H,a)}}ye(X.afterSanitizeAttributes,a,null)},hr=function b(a){let f=null,x=Wn(a);for(ye(X.beforeSanitizeShadowDOM,a,null);f=x.nextNode();)ye(X.uponSanitizeShadowNode,f,null),Kn(f),Yn(f),f.content instanceof o&&b(f.content);ye(X.afterSanitizeShadowDOM,a,null)};return n.sanitize=function(b){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=null,x=null,B=null,Z=null;if(Jt=!b,Jt&&(b="<!-->"),typeof b!="string"&&!qn(b))if(typeof b.toString=="function"){if(b=b.toString(),typeof b!="string")throw it("dirty is not a string, aborting")}else throw it("toString is not a function");if(!n.isSupported)return b;if(Gt||Yt(a),n.removed=[],typeof b=="string"&&(Ze=!1),Ze){if(b.nodeName){let we=V(b.nodeName);if(!j[we]||Je[we])throw it("root node is forbidden and cannot be sanitized in-place")}}else if(b instanceof u)f=jn("<!---->"),x=f.ownerDocument.importNode(b,!0),x.nodeType===ot.element&&x.nodeName==="BODY"||x.nodeName==="HTML"?f=x:f.appendChild(x);else{if(!Pe&&!De&&!Ae&&b.indexOf("<")===-1)return q&&_t?q.createHTML(b):b;if(f=jn(b),!f)return Pe?null:_t?be:""}f&&jt&&he(f.firstChild);let H=Wn(Ze?b:f);for(;B=H.nextNode();)Kn(B),Yn(B),B.content instanceof o&&hr(B.content);if(Ze)return b;if(Pe){if(gt)for(Z=er.call(f.ownerDocument);f.firstChild;)Z.appendChild(f.firstChild);else Z=f;return(K.shadowroot||K.shadowrootmode)&&(Z=nr.call(r,Z,!0)),Z}let re=Ae?f.outerHTML:f.innerHTML;return Ae&&j["!doctype"]&&f.ownerDocument&&f.ownerDocument.doctype&&f.ownerDocument.doctype.name&&ee(Ti,f.ownerDocument.doctype.name)&&(re="<!DOCTYPE "+f.ownerDocument.doctype.name+`>
|
|
2
2
|
`+re),De&&At([Ft,Ut,Ht],we=>{re=nt(re,we," ")}),q&&_t?q.createHTML(re):re},n.setConfig=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Yt(b),Gt=!0},n.clearConfig=function(){Ne=null,Gt=!1},n.isValidAttribute=function(b,a,f){Ne||Yt({});let x=V(b),B=V(a);return Jn(x,B,f)},n.addHook=function(b,a){typeof a=="function"&&tt(X[b],a)},n.removeHook=function(b,a){if(a!==void 0){let f=xr(X[b],a);return f===-1?void 0:br(X[b],f,1)[0]}return xi(X[b])},n.removeHooks=function(b){X[b]=[]},n.removeAllHooks=function(){X=Si()},n}var Mi=Ai();function xn(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ie=xn();function Pi(t){Ie=t}var $e={exec:()=>null};function R(t,n=""){let e=typeof t=="string"?t:t.source,r={replace:(i,o)=>{let s=typeof o=="string"?o:o.source;return s=s.replace(ie.caret,"$1"),e=e.replace(i,s),r},getRegex:()=>new RegExp(e,n)};return r}var Pr=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),ie={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)}}>`)},Or=/^(?:[ \t]*(?:\n|$))+/,zr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Nr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ct=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Fr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,bn=/ {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=R(Oi).replace(/bull/g,bn).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(),Ur=R(Oi).replace(/bull/g,bn).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]+)*)/,Hr=/^[^\n]+/,kn=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Vr=R(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",kn).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Gr=R(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,bn).getRegex(),Pt="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",yn=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,jr=R("^ {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",yn).replace("tag",Pt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ni=R(Cn).replace("hr",ct).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",Pt).getRegex(),Wr=R(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ni).getRegex(),wn={blockquote:Wr,code:zr,def:Vr,fences:Nr,heading:Fr,hr:ct,html:jr,lheading:zi,list:Gr,newline:Or,paragraph:Ni,table:$e,text:Hr},Ri=R("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ct).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",Pt).getRegex(),qr=Ue(oe({},wn),{lheading:Ur,table:Ri,paragraph:R(Cn).replace("hr",ct).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ri).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",Pt).getRegex()}),Kr=Ue(oe({},wn),{html:R(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",yn).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:$e,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:R(Cn).replace("hr",ct).replace("heading",` *#{1,6} *[^
|
|
3
3
|
]`).replace("lheading",zi).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),Jr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Zr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Fi=/^( {2,}|\\)\n(?!\s*$)/,Yr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,We=/[\p{P}\p{S}]/u,Ot=/[\s\p{P}\p{S}]/u,Sn=/[^\s\p{P}\p{S}]/u,Qr=R(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ot).getRegex(),Ui=/(?!~)[\p{P}\p{S}]/u,Xr=/(?!~)[\s\p{P}\p{S}]/u,eo=/(?:[^\s\p{P}\p{S}]|~)/u,to=R(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Pr?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Hi=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,no=R(Hi,"u").replace(/punct/g,We).getRegex(),io=R(Hi,"u").replace(/punct/g,Ui).getRegex(),Vi="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ro=R(Vi,"gu").replace(/notPunctSpace/g,Sn).replace(/punctSpace/g,Ot).replace(/punct/g,We).getRegex(),oo=R(Vi,"gu").replace(/notPunctSpace/g,eo).replace(/punctSpace/g,Xr).replace(/punct/g,Ui).getRegex(),so=R("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Sn).replace(/punctSpace/g,Ot).replace(/punct/g,We).getRegex(),ao=R(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,We).getRegex(),lo="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",co=R(lo,"gu").replace(/notPunctSpace/g,Sn).replace(/punctSpace/g,Ot).replace(/punct/g,We).getRegex(),po=R(/\\(punct)/,"gu").replace(/punct/g,We).getRegex(),uo=R(/^<(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(),mo=R(yn).replace("(?:-->|$)","-->").getRegex(),ho=R("^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",mo).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),It=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,fo=R(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",It).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Gi=R(/^!?\[(label)\]\[(ref)\]/).replace("label",It).replace("ref",kn).getRegex(),ji=R(/^!?\[(ref)\](?:\[\])?/).replace("ref",kn).getRegex(),go=R("reflink|nolink(?!\\()","g").replace("reflink",Gi).replace("nolink",ji).getRegex(),$i=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,vn={_backpedal:$e,anyPunctuation:po,autolink:uo,blockSkip:to,br:Fi,code:Zr,del:$e,delLDelim:$e,delRDelim:$e,emStrongLDelim:no,emStrongRDelimAst:ro,emStrongRDelimUnd:so,escape:Jr,link:fo,nolink:ji,punctuation:Qr,reflink:Gi,reflinkSearch:go,tag:ho,text:Yr,url:$e},_o=Ue(oe({},vn),{link:R(/^!?\[(label)\]\((.*?)\)/).replace("label",It).getRegex(),reflink:R(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",It).getRegex()}),fn=Ue(oe({},vn),{emStrongRDelimAst:oo,emStrongLDelim:io,delLDelim:ao,delRDelim:co,url:R(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",$i).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:R(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",$i).getRegex()}),xo=Ue(oe({},fn),{br:R(Fi).replace("{2,}","*").getRegex(),text:R(fn.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),Lt={normal:wn,gfm:qr,pedantic:Kr},st={normal:vn,gfm:fn,breaks:xo,pedantic:_o},bo={"&":"&","<":"<",">":">",'"':""","'":"'"},Li=t=>bo[t];function _e(t,n){if(n){if(ie.escapeTest.test(t))return t.replace(ie.escapeReplace,Li)}else if(ie.escapeTestNoEncode.test(t))return t.replace(ie.escapeReplaceNoEncode,Li);return t}function Ii(t){try{t=encodeURI(t).replace(ie.percentDecode,"%")}catch{return null}return t}function Bi(t,n){let e=t.replace(ie.findPipe,(o,s,u)=>{let l=!1,h=s;for(;--h>=0&&u[h]==="\\";)l=!l;return l?"|":" |"}),r=e.split(ie.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),n)if(r.length>n)r.splice(n);else for(;r.length<n;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(ie.slashPipe,"|");return r}function at(t,n,e){let r=t.length;if(r===0)return"";let i=0;for(;i<r;){let o=t.charAt(r-i-1);if(o===n&&!e)i++;else if(o!==n&&e)i++;else break}return t.slice(0,r-i)}function Co(t,n){if(t.indexOf(n[1])===-1)return-1;let e=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===n[0])e++;else if(t[r]===n[1]&&(e--,e<0))return r;return e>0?-2:-1}function ko(t,n=0){let e=n,r="";for(let i of t)if(i===" "){let o=4-e%4;r+=" ".repeat(o),e+=o}else r+=i,e++;return r}function Di(t,n,e,r,i){let o=n.href,s=n.title||null,u=t[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:t[0].charAt(0)==="!"?"image":"link",raw:e,href:o,title:s,text:u,tokens:r.inlineTokens(u)};return r.state.inLink=!1,l}function yo(t,n,e){let r=t.match(e.other.indentCodeCompensation);if(r===null)return n;let i=r[1];return n.split(`
|
|
4
4
|
`).map(o=>{let s=o.match(e.other.beginningSpace);if(s===null)return o;let[u]=s;return u.length>=i.length?o.slice(i.length):o}).join(`
|
|
@@ -70,4 +70,4 @@ Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error
|
|
|
70
70
|
`).slice(1).join(`
|
|
71
71
|
`).trim();return Te.looksLikeJson(i)?Te.formatJson(i):i});typeLabel_$=w(()=>{switch(this.view().kind){case y.userPrompt:return"User";case y.assistant:return"Assistant";case y.tool:return"Tool Call";case y.toolResult:return"Tool Result";case y.error:return"Error";case y.info:return"Info";case y.status:return"Status";case y.thinking:return"Thinking";case y.runIntent:return"Run intent";case y.iteration:return"Iteration";case y.statusUpdate:return"Status update";case y.raw:return"Raw";case y.result:return"Result";case y.toolGroup:return"Tool group";case y.subAgentGroup:return"Sub-agent";default:return String(this.view().kind)}});kindEnum=y;tts_$=w(()=>this.view().tts??null);ttsLoading_$=G(!1);showTtsButton_$=w(()=>{let e=this.tts_$();return e!==null&&!e.hasTtsAudio&&e.content.trim().length>0});autoReadEffect=ii(()=>{if(this.isAutoPlayFired||this.view().kind!==y.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_$=w(()=>{let e=this.tts_$();if(!e||!e.hasTtsAudio)return null;let r=this.voiceSttQaUi_DS.getTtsMessageAudioUrl(e.messageKey);return r.length>0?r:null});handleTtsPlayClick(){return D(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 D(this,null,function*(){yield Tn.handleCodeCopyClick(e,r=>this.globalError_CS.copyToClipboard(r))})}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Ve({type:t,selectors:[["app-s-agent-console-message-bubble"]],inputs:{view:[1,"view"]},outputs:{ttsCached:"ttsCached"},standalone:!0,features:[Ge],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(r,i){if(r&1&&A(0,Fo,16,15,"div",0)(1,Jo,17,14,"div",1)(2,cs,17,14,"div",1)(3,ds,8,3,"div",2)(4,fs,14,11,"div",3)(5,bs,14,12,"div",0)(6,ks,10,2,"details",4)(7,Ss,20,3,"details",5)(8,$s,15,16,"div",0)(9,Ps,17,11,"div",6),r&2){let o,s;k((o=i.view().kind)===i.kindEnum.tool?0:o===i.kindEnum.userPrompt?1:o===i.kindEnum.assistant?2:o===i.kindEnum.statusUpdate?3:o===i.kindEnum.error?4:o===i.kindEnum.toolResult?5:o===i.kindEnum.toolGroup?6:o===i.kindEnum.subAgentGroup?7:8),d(9),k((s=i.isRawInfoOpen_$()&&i.rawOverlayBundle_$())?9:-1,s)}},dependencies:()=>[t,je,mi,Ji,hi,fi],styles:[`@charset "UTF-8";
|
|
72
72
|
/*# sourceMappingURL=s-agent-console-message-bubble.component-QJSDQEWX.css.map */`]})}return t})();var Os=[[["","sChatColumnHeader",""]],[["","sChatColumnScroll",""]],[["","sChatColumnOverlay",""]],[["","sChatColumnComposer",""]]],zs=["[sChatColumnHeader]","[sChatColumnScroll]","[sChatColumnOverlay]","[sChatColumnComposer]"],rl=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Ve({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:[Ge],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(r,i){r&1&&(ni(Os),c(0,"div",0),et(1),p(),c(2,"div",1)(3,"div",2),et(4,1),p(),et(5,2),p(),c(6,"div",0),et(7,3),p())},dependencies:[je],encapsulation:2})}return t})();var Mn=en(on());var Qi=(()=>{class t{mrg_AS=se(di);erg_AS=se(gi);llmEntries_$=G([]);llmLoading_$=G(!1);llmLoadError_$=G(null);isLlmLoaded=!1;llmLoadPromise=null;embeddingEntries_$=G([]);embeddingLoading_$=G(!1);embeddingLoadError_$=G(null);isEmbeddingLoaded=!1;embeddingLoadPromise=null;enabledLlmModels_$=w(()=>this.llmEntries_$().filter(e=>e.enabled));enabledLlmProviders_$=w(()=>{let e=new Map;for(let r of this.enabledLlmModels_$())e.has(r.provider)||e.set(r.provider,t.llmProviderLabel(r.provider));return[...e.entries()].map(([r,i])=>({value:r,label:i}))});isLlmEmpty_$=w(()=>this.isLlmLoaded&&!this.llmLoading_$()&&this.enabledLlmModels_$().length===0);enabledEmbeddingModels_$=w(()=>this.embeddingEntries_$().filter(e=>e.enabled===!0));enabledEmbeddingProviders_$=w(()=>{let e=new Map;for(let r of this.enabledEmbeddingModels_$()){let i=r.embeddingBackend??"";i&&!e.has(i)&&e.set(i,t.embeddingBackendLabel(i))}return[...e.entries()].map(([r,i])=>({value:r,label:i}))});isEmbeddingEmpty_$=w(()=>this.isEmbeddingLoaded&&!this.embeddingLoading_$()&&this.enabledEmbeddingModels_$().length===0);ensureLoaded(e){return D(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 D(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,r){return e==="llm"?this.enabledLlmModels_$().filter(i=>i.provider===r).map(i=>i.modelName):this.enabledEmbeddingModels_$().filter(i=>i.embeddingBackend===r).map(i=>i.modelId??"")}fetchLlm(){return D(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),Mn.DyFM_Error.logSimple("AIS_RegistrySsot_ControlService | fetchLlm failed",e)}finally{this.llmLoading_$.set(!1)}})}fetchEmbedding(){return D(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),Mn.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(r){return new(r||t)};static \u0275prov=He({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),v(1,"span",3),c(2,"span"),g(3,"Registry bet\xF6lt\xE9se\u2026"),p()())}function Us(t,n){if(t&1&&(c(0,"p",4),g(1,"Nincs enged\xE9lyezett modell a registry-ben."),p(),c(2,"p"),g(3," Menj a "),c(4,"a",5),g(5,"Model Registry"),p(),g(6," oldalra, futtass "),c(7,"strong"),g(8,"Sync"),p(),g(9,"-et, majd az "),c(10,"code",6),g(11,"enabled"),p(),g(12," kapcsol\xF3val enged\xE9lyezz legal\xE1bb egy modellt. "),p()),t&2){let e=_(2);d(4),M("routerLink",e.registryRoute_$())}}function Hs(t,n){if(t&1&&(c(0,"p",4),g(1,"Nincs enged\xE9lyezett embedding modell."),p(),c(2,"p"),g(3," Menj az "),c(4,"a",5),g(5,"Embedding Registry"),p(),g(6," oldalra, futtass "),c(7,"strong"),g(8,"Sync"),p(),g(9,"-et, majd az "),c(10,"code",6),g(11,"enabled"),p(),g(12," kapcsol\xF3val enged\xE9lyezz legal\xE1bb egy modellt. "),p()),t&2){let e=_(2);d(4),M("routerLink",e.registryRoute_$())}}function Vs(t,n){if(t&1&&(c(0,"div",1),A(1,Us,13,1)(2,Hs,13,1),p()),t&2){let e=_();d(),k(e.registryKind()==="llm"?1:2)}}function Gs(t,n){if(t&1&&(c(0,"option",11),g(1),p()),t&2){let e=n.$implicit;M("value",e.value),d(),T(e.label)}}function js(t,n){if(t&1){let e=F();c(0,"div",7)(1,"label",8),g(2),p(),c(3,"select",9),z("ngModelChange",function(i){P(e);let o=_(2);return O(o.handleProviderChange(i))}),c(4,"option",10),g(5,"\u2014 V\xE1lassz \u2014"),p(),ve(6,Gs,2,2,"option",11,Ns),p()()}if(t&2){let e=_(2);d(2),T(e.providerLabel()),d(),M("ngModel",e.selectedProvider())("disabled",e.disabled()),d(3),Ee(e.providerOptions_$())}}function Ws(t,n){if(t&1&&(c(0,"option",11),g(1),p()),t&2){let e=n.$implicit;M("value",e),d(),T(e)}}function qs(t,n){t&1&&(c(0,"span",12),g(1,"A kiv\xE1lasztott providernek nincs enged\xE9lyezett modellje."),p())}function Ks(t,n){if(t&1){let e=F();c(0,"div",2),A(1,js,8,3,"div",7),c(2,"div",7)(3,"label",8),g(4),p(),c(5,"select",9),z("ngModelChange",function(i){P(e);let o=_();return O(o.handleModelChange(i))}),c(6,"option",10),g(7,"\u2014 V\xE1lassz modellt \u2014"),p(),ve(8,Ws,2,2,"option",11,St),p(),A(10,qs,2,0,"span",12),p()()}if(t&2){let e=_();d(),k(e.showProviderSelect_$()?1:-1),d(3),T(e.modelLabel()),d(),M("ngModel",e.selectedModel())("disabled",e.disabled()||e.modelOptions_$().length===0),d(3),Ee(e.modelOptions_$()),d(2),k(e.modelOptions_$().length===0&&(e.selectedProvider()||e.providerFilter())?10:-1)}}var Cl=(()=>{class t{registrySsot_CS=se(Qi);registryKind=fe.required();selectedProvider=fe("");selectedModel=fe("");providerLabel=fe("Provider");modelLabel=fe("Modell");disabled=fe(!1);providerFilter=fe(void 0);providerChange=Xe();modelChange=Xe();isEmpty_$=w(()=>this.registryKind()==="llm"?this.registrySsot_CS.isLlmEmpty_$():this.registrySsot_CS.isEmbeddingEmpty_$());isLoading_$=w(()=>this.registryKind()==="llm"?this.registrySsot_CS.llmLoading_$():this.registrySsot_CS.embeddingLoading_$());providerOptions_$=w(()=>this.registryKind()==="llm"?this.registrySsot_CS.enabledLlmProviders_$():this.registrySsot_CS.enabledEmbeddingProviders_$());modelOptions_$=w(()=>{let e=this.providerFilter()??this.selectedProvider();return e?this.registrySsot_CS.getModelsForProvider(this.registryKind(),e):[]});registryRoute_$=w(()=>this.registryKind()==="llm"?"/model-registry":"/embedding-registry");showProviderSelect_$=w(()=>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(r){return new(r||t)};static \u0275cmp=Ve({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:[Ge],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(r,i){r&1&&A(0,Fs,4,0,"div",0)(1,Vs,3,1,"div",1)(2,Ks,11,5,"div",2),r&2&&(k(i.isLoading_$()?0:-1),d(),k(i.isEmpty_$()&&!i.isLoading_$()?1:-1),d(),k(!i.isEmpty_$()&&!i.isLoading_$()?2:-1))},dependencies:[je,ui,ci,pi,li,si,ai,oi,ri],encapsulation:2})}return t})();export{Tn as a,y as b,Ke as c,Nt as d,Ji as e,el as f,rl as g,Qi as h,Cl as i};
|
|
73
|
-
//# sourceMappingURL=chunk-
|
|
73
|
+
//# sourceMappingURL=chunk-F4DZS3GH.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{p as o}from"./chunk-WR6NSOQ2.js";import{h as r}from"./chunk-TBMJSIBB.js";var a=function(t){return t.created="created",t.alreadyLinked="already-linked",t.userMarked="user-marked",t.errorNotFound="error-not-found",t}(a||{});var m=function(t){return t.confirm="confirm",t.optionSelect="option-select",t.question="question",t}(m||{});var e=r(o());var d=new e.DyFM_DataModel_Params({dataName:"ccap_setting",properties:{ccapId:{type:"string"},sectionId:{type:"string",required:!0,index:!0},sectionProtectionFlag:{type:"string",required:!0,unique:!0},payload:{type:"object",required:!0}}});var p=r(o());var S=new p.DyFM_DataModel_Params({dataName:"pm_project",properties:{ccapId:{type:"string",index:!0},name:{type:"string",required:!0,index:!0},githubRepoUrl:{type:"string"},description:{type:"string"},localPath:{type:"string"},isActive:{type:"boolean"},preferredBugsMdRelativePath:{type:"string"},gitBranch:{type:"string"},gitStatus:{type:"string"},gitAheadBehind:{type:"string"},gitLastCommitDate:{type:"string"},gitLastCommitMessage:{type:"string"},gitLastCommitAuthor:{type:"string"},gitRemoteUrl:{type:"string"},gitInfo:{type:"object"},packageVersion:{type:"string"},packageScripts:{type:"array"},packageDependencyCount:{type:"number"},packageDevDependencyCount:{type:"number"},packageInfo:{type:"object"},artifacts:{type:"object"},lastSyncAt:{type:"string"},lastSyncStatus:{type:"string"},lastSyncSummary:{type:"string"},lastSyncDurationMs:{type:"number"},lastSyncErrors:{type:"array"},githubOwner:{type:"string"},githubRepo:{type:"string"},githubIssueSyncEnabled:{type:"boolean"},githubIssueSyncAt:{type:"string"},githubIssueSyncStatus:{type:"string"},githubIssueSyncSummary:{type:"string"},githubIssueSyncConfig:{type:"object"},githubPrSyncEnabled:{type:"boolean"},githubPrSyncAt:{type:"string"}}});var n=r(o());var P=new n.DyFM_DataModel_Params({dataName:"pm_user_request",properties:{projectId:{type:"string",required:!0,index:!0},content:{type:"string",required:!0},title:{type:"string"},type:{type:"string"},code:{type:"string"},priority:{type:"string"},area:{type:"string"},phase:{type:"string"},status:{type:"string"},specStatus:{type:"string"},implStatus:{type:"string"},testStatus:{type:"string"},completeStatus:{type:"string"},githubIssueNumber:{type:"number",index:!0},githubIssueUrl:{type:"string"},githubIssueId:{type:"number"},githubSyncedAt:{type:"string"},githubSyncDirection:{type:"string"}}});var s=r(o());var k=new s.DyFM_DataModel_Params({dataName:"ccap_quick_input",properties:{projectId:{type:"string",required:!0,index:!0},rawContent:{type:"string",required:!0},title:{type:"string"},status:{type:"string",required:!0,index:!0},promotedUserRequestId:{type:"string"},promotedBugCode:{type:"string"},predictedProjectId:{type:"string",index:!0},predictedType:{type:"string"},predictedCleanDescription:{type:"string"},taskDifficulty:{type:"string"},priority:{type:"string"},area:{type:"string"},createdAtVersion:{type:"string"}}});var x=r(o());var q=new x.DyFM_DataModel_Params({dataName:"pm_project_group",properties:{ccapId:{type:"string",index:!0},name:{type:"string",required:!0,index:!0},scanPath:{type:"string",required:!0},description:{type:"string"}}});var i=r(o());var A=new i.DyFM_DataModel_Params({dataName:"pm_project_group_file",properties:{groupId:{type:"string",required:!0,index:!0},ccapId:{type:"string",index:!0},relativePath:{type:"string",required:!0},sizeBytes:{type:"number"},lastModifiedAt:{type:"string"},fileHash:{type:"string"},isDirectory:{type:"boolean"}}});export{a,m as b};
|
|
2
|
+
//# sourceMappingURL=chunk-FWVYBWXT.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as he}from"./chunk-FTD33PGM.js";import{a as ge,b as Ce}from"./chunk-E65UDGDD.js";import{a as me,b as _e}from"./chunk-IZEUWGJK.js";import{a as Se,b as Y}from"./chunk-L44637OO.js";import{a as ue}from"./chunk-EFNJA3BL.js";import{b as pe}from"./chunk-6D27TSZV.js";import{d as fe}from"./chunk-QRLOYIIN.js";import{d as U,h as xe}from"./chunk-7MDPIWHS.js";import{a as ce}from"./chunk-FLAJXIYW.js";import{f as oe,i as ae,n as re,o as se,p as le,v as de}from"./chunk-EO4DNTT4.js";import{p as Te}from"./chunk-5APAM7YJ.js";import{$a as z,C as y,D as b,Fa as s,Ga as I,Ha as S,Ia as te,J as C,K as v,L as E,M as Q,Q as Z,T as q,Ta as w,U as A,Ua as O,Va as ne,Z as r,aa as $,ab as ie,bb as B,da as _,fa as R,ga as p,h as $e,hb as h,ia as M,k as H,la as u,mb as K,na as ee,oa as F,pa as V,pb as J,qa as a,ra as o,sa as x,ua as k,ub as N,va as f,wa as c,y as X}from"./chunk-TBMJSIBB.js";var ye=$e(Te());var W=(()=>{class t{static SESSION_LIMIT_TYPE="five_hour";static WEEKLY_LIMIT_TYPE="seven_day";static formatResetText(e){if(!e?.resetsAt)return"";let n=new Date(e.resetsAt*1e3),i=new Date,l=n.getTime()-i.getTime();if(l<=0)return"expired";let m=Math.floor(l/6e4),T=Math.floor(m/60),j=m%60;return T>0?`${T}h ${j}m`:`${j}m`}static formatResetTextPrecise(e){if(!e?.resetsAt)return"";let n=new Date(e.resetsAt*1e3),i=new Date,l=Math.floor((n.getTime()-i.getTime())/1e3);if(l<=0)return"expired";let m=Math.floor(l/86400),T=Math.floor(l%86400/3600),j=Math.floor(l%3600/60),g=l%60,D=[];return m&&D.push(`${m}d`),(m||T)&&D.push(`${T}h`),(m||T||j)&&D.push(`${j}m`),D.push(`${g}s`),D.join(" ")}static computeUtilizationPercent(e){if(!e)return 0;let n=typeof e.utilization=="number"?e.utilization:0,i=Math.max(0,Math.min(1,n));return Math.round(i*100)}static computeThresholdPercent(e){if(!e)return 0;let n=typeof e.surpassedThreshold=="number"?e.surpassedThreshold:0,i=Math.max(0,Math.min(1,n));return Math.round(i*100)}static isOverThreshold(e){if(!e)return!1;let n=typeof e.utilization=="number"?e.utilization:0,i=typeof e.surpassedThreshold=="number"?e.surpassedThreshold:1;return n>=i&&i>0}static formatLimitScopeLabel(e){return e?.rateLimitType?e.rateLimitType===t.SESSION_LIMIT_TYPE?"Session":e.rateLimitType===t.WEEKLY_LIMIT_TYPE?"Weekly":e.rateLimitType:""}}return t})();function Me(t,d){if(t&1&&(a(0,"div",0)(1,"span",1),s(2," Rate limit "),o(),a(3,"span",2),s(4,"Scope"),o(),a(5,"span",3),s(6),o(),a(7,"span",2),s(8,"St\xE1tusz"),o(),a(9,"span",3),s(10),o(),a(11,"span",2),s(12,"Utilization"),o(),a(13,"span",4),s(14),o(),a(15,"span",2),s(16,"Reset"),o(),a(17,"span",4),s(18),o(),a(19,"span",2),s(20,"Utols\xF3 \xE9szlel\xE9s"),o(),a(21,"span",5),s(22),z(23,"date"),o()()),t&2){let e=d,n=c();r(6),I(n.limitScopeLabel_$()||"\u2014"),r(3),M("text-neonRed",e.status==="limited")("text-yellow-400",e.status==="allowed_warning")("text-neutral-300",e.status==="allowed"),r(),S(" ",e.status||"\u2014"," "),r(4),S("",n.utilizationPercent_$(),"%"),r(4),I(n.resetText_$()||"\u2014"),r(4),S(" ",B(23,11,e.receivedAt,"yyyy-MM-dd HH:mm:ss")||"\u2014"," ")}}var be=(()=>{class t{claudeCode_AS=y(me);_ccapId="";set ccapId(e){this._ccapId=e?.trim()??"",this.refreshRateLimitState()}get ccapId(){return this._ccapId}rateLimitInfo_$=$(null);utilizationPercent_$=h(()=>W.computeUtilizationPercent(this.rateLimitInfo_$()));resetText_$=h(()=>W.formatResetText(this.rateLimitInfo_$()));limitScopeLabel_$=h(()=>W.formatLimitScopeLabel(this.rateLimitInfo_$()));refreshRateLimitState(){if(!this._ccapId){this.rateLimitInfo_$.set(null);return}this.claudeCode_AS.getRateLimitState({ccapId:this._ccapId}).then(e=>{let n=_e.mapServerItemsToClientInfo(e.items);this.rateLimitInfo_$.set(n)}).catch(e=>{ye.DyFM_Log.warn(`s-cc-rate-limit-info | rate-limit fetch failed | ccapId: ${this._ccapId} | err: ${String(e)}`),this.rateLimitInfo_$.set(null)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=b({type:t,selectors:[["app-s-cc-rate-limit-info"]],inputs:{ccapId:"ccapId"},standalone:!0,features:[w],decls:1,vars:1,consts:[[1,"grid","grid-cols-[minmax(8rem,auto)_1fr]","gap-x-3","gap-y-2","text-xs","text-neutral-200"],[1,"col-span-2","text-[11px]","uppercase","tracking-wider","text-neutral-500"],[1,"text-neutral-500","shrink-0"],[1,"whitespace-nowrap"],[1,"whitespace-nowrap","font-mono"],[1,"font-mono","text-[11px]","whitespace-nowrap"]],template:function(n,i){if(n&1&&_(0,Me,24,14,"div",0),n&2){let l;u((l=i.rateLimitInfo_$())?0:-1,l)}},dependencies:[N,J],encapsulation:2})}return t})();function Oe(t,d){if(t&1&&(a(0,"span",1),s(1,"Instance presence"),o(),a(2,"span",4),x(3,"app-s-instance-presence-badge",8),o()),t&2){let e=d;r(3),p("presence",e.presence)("lastHeartbeatAt",e.lastHeartbeatAt)("wsConnected",e.wsConnected)}}function De(t,d){if(t&1&&(a(0,"span",9),s(1,"Run / tev\xE9kenys\xE9g"),o(),a(2,"span",10)(3,"span",11),s(4),o(),a(5,"span",12),s(6),o()(),a(7,"span",1),s(8,"Utols\xF3 aktivit\xE1s"),o(),a(9,"span",13),s(10),z(11,"date"),o(),a(12,"span",1),s(13,"Utols\xF3 \xFCzenet"),o(),a(14,"span",14),s(15),o()),t&2){let e=d;r(4),I(e.activeRunPhase||"\u2014"),r(2),I(e.activitySummary||"\u2014"),r(4),S(" ",B(11,4,e.lastActivityAt,"yyyy-MM-dd HH:mm:ss")||"\u2014"," "),r(5),I(e.lastMessage||"\u2014")}}var we=(()=>{class t{row;presence=void 0;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=b({type:t,selectors:[["app-s-instance-detail-view"]],inputs:{row:"row",presence:"presence"},standalone:!0,features:[w],decls:43,vars:18,consts:[[1,"grid","grid-cols-[minmax(8rem,auto)_1fr]","gap-x-3","gap-y-2","text-xs","text-neutral-200"],[1,"text-neutral-500","shrink-0"],[1,"font-mono","break-all"],[1,"break-all"],[1,"whitespace-nowrap"],[1,"font-mono","whitespace-nowrap"],[1,"mt-2","pt-2","border-t","border-neutral-800"],[3,"ccapId"],[3,"presence","lastHeartbeatAt","wsConnected"],[1,"text-neutral-500","shrink-0","self-start","pt-0.5"],[1,"break-words"],[1,"font-mono","text-[11px]","text-neutral-400","block"],[1,"text-neutral-300"],[1,"font-mono","text-[11px]","whitespace-nowrap"],[1,"break-words","text-neutral-300"]],template:function(n,i){if(n&1&&(a(0,"div",0)(1,"span",1),s(2,"instanceKey"),o(),a(3,"span",2),s(4),o(),a(5,"span",1),s(6,"N\xE9v"),o(),a(7,"span",3),s(8),o(),a(9,"span",1),s(10,"St\xE1tusz"),o(),a(11,"span",4),s(12),o(),_(13,Oe,4,3),a(14,"span",1),s(15,"Session presence"),o(),a(16,"span",4),s(17),o(),_(18,De,16,7),a(19,"span",1),s(20,"MAC"),o(),a(21,"span",2),s(22),o(),a(23,"span",1),s(24,"Install path"),o(),a(25,"span",2),s(26),o(),a(27,"span",1),s(28,"hostName"),o(),a(29,"span",3),s(30),o(),a(31,"span",1),s(32,"registry __created"),o(),a(33,"span",5),s(34),z(35,"date"),o(),a(36,"span",1),s(37,"registry __updated"),o(),a(38,"span",5),s(39),z(40,"date"),o()(),a(41,"div",6),x(42,"app-s-cc-rate-limit-info",7),o()),n&2){let l,m;r(4),I(i.row.registry.instanceKey||"\u2014"),r(4),I((i.row.instanceData==null||i.row.instanceData.name==null?null:i.row.instanceData.name.trim())||"\u2014"),r(4),I((i.row.instanceData==null?null:i.row.instanceData.status)||"\u2014"),r(),u((l=i.presence)?13:-1,l),r(4),S(" ",(i.row.instanceData==null||i.row.instanceData.sessionStatuses==null||i.row.instanceData.sessionStatuses[0]==null?null:i.row.instanceData.sessionStatuses[0].presence)||"\u2014"," "),r(),u((m=i.row.instanceData==null||i.row.instanceData.sessionStatuses==null?null:i.row.instanceData.sessionStatuses[0])?18:-1,m),r(4),I(i.row.registry.primaryMacAddress||"\u2014"),r(4),I(i.row.registry.installLocationPath||"\u2014"),r(4),I(i.row.registry.hostName||"\u2014"),r(4),S(" ",B(35,12,i.row.registry.__created,"yyyy-MM-dd HH:mm:ss")||"\u2014"," "),r(5),S(" ",B(40,15,i.row.registry.__updated,"yyyy-MM-dd HH:mm:ss")||"\u2014"," "),r(3),p("ccapId",i.row.registry.instanceKey||"")}},dependencies:[N,J,be,Y],encapsulation:2})}return t})();var Ae=(t,d)=>d.instanceKey,Re=t=>({"bg-ccapAccent/10":t});function Fe(t,d){if(t&1&&x(0,"app-s-instance-presence-badge",5),t&2){let e=d;p("presence",e.presence)("lastHeartbeatAt",e.lastHeartbeatAt)("wsConnected",e.wsConnected)("showLabel",!1)}}function Ve(t,d){t&1&&(a(0,"span",6),s(1,"(local)"),o())}function ze(t,d){t&1&&x(0,"span",7)}function Le(t,d){if(t&1){let e=k();a(0,"div",2)(1,"button",4),f("click",function(){let i,l=C(e).$implicit,m=c();return v(m.handleSelectInstance((i=l.instanceKey)!==null&&i!==void 0?i:""))}),_(2,Fe,1,4,"app-s-instance-presence-badge",5),s(3),_(4,Ve,2,0,"span",6)(5,ze,1,0,"span",7),o(),a(6,"button",8),f("click",function(){let i,l=C(e).$implicit,m=c();return v(m.handleInfoClick((i=l.instanceKey)!==null&&i!==void 0?i:""))}),s(7," i "),o()()}if(t&2){let e,n=d.$implicit,i=c();r(),M("border-ccapAccent",i.isSelected(n))("text-ccapAccent",i.isSelected(n))("border-neonDefault",!i.isSelected(n))("text-neutral-400",!i.isSelected(n))("hover:text-neutral-200",!i.isSelected(n))("hover:border-neutral-500",!i.isSelected(n)),p("ngClass",ne(17,Re,i.isSelected(n))),r(),u((e=i.getPresenceForRow(n))?2:-1,e),r(),S(" ",i.getDisplayLabel(n)," "),r(),u(i.isLocal(n)?4:-1),r(),u(i.getActiveSessionForRow(n)?5:-1)}}function Pe(t,d){t&1&&(a(0,"span",3),s(1,"loading..."),o())}var Ee=(()=>{class t{peiContext_DS=y(ue);presenceMap=new Map;activeSessionMap=new Map;infoRequested=new Z;instances_$=h(()=>this.peiContext_DS.instanceList_$());selectedCcapId_$=h(()=>this.peiContext_DS.activeCcapId_$());localKey_$=h(()=>this.peiContext_DS.localInstanceKey_$());ngOnInit(){this.peiContext_DS.initialize()}handleSelectInstance(e){this.peiContext_DS.selectInstance(e)}handleInfoClick(e){this.infoRequested.emit({instanceKey:e})}getDisplayLabel(e){let n=e.hostName??"",i=(e.instanceKey??"").slice(-6);return n?`${n} (${i})`:i||"?"}isSelected(e){return(e.instanceKey??"")===this.selectedCcapId_$()}isLocal(e){return(e.instanceKey??"")===this.localKey_$()}getPresenceForRow(e){let n=e.instanceKey??"";return n?this.presenceMap.get(n)??null:null}getActiveSessionForRow(e){let n=e.instanceKey??"";return n?this.activeSessionMap.get(n)===!0:!1}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=b({type:t,selectors:[["app-s-instance-selector"]],hostAttrs:[1,"block"],inputs:{presenceMap:"presenceMap",activeSessionMap:"activeSessionMap"},outputs:{infoRequested:"infoRequested"},standalone:!0,features:[w],decls:6,vars:1,consts:[[1,"flex","gap-1","flex-wrap","items-center"],[1,"text-[10px]","text-neutral-500","mr-1","uppercase","tracking-wider"],[1,"flex","items-center","gap-0.5","group"],[1,"text-[10px]","text-neutral-600","italic"],[1,"px-2","py-0.5","text-[11px]","rounded-full","border","transition-colors","flex","items-center","gap-1",3,"click","ngClass"],[3,"presence","lastHeartbeatAt","wsConnected","showLabel"],[1,"ml-0.5","text-[9px]","text-neutral-500"],["title","Akt\xEDv session fut ezen az instance-en","aria-label","Akt\xEDv session fut ezen az instance-en","data-testid","s-instance-active-session-dot",1,"inline-block","w-1.5","h-1.5","rounded-full","bg-yellow-400","animate-pulse","shrink-0"],["type","button","title","Instance details","aria-label","Show instance details","data-testid","s-instance-selector-info-btn",1,"text-[11px]","leading-none","w-4","h-4","rounded-full","border","border-neutral-700","text-neutral-500","hover:text-ccapAccent","hover:border-ccapAccent","transition-colors","flex","items-center","justify-center",3,"click"]],template:function(n,i){n&1&&(a(0,"div",0)(1,"span",1),s(2,"Instance:"),o(),F(3,Le,8,19,"div",2,Ae),_(5,Pe,2,0,"span",3),o()),n&2&&(r(3),V(i.instances_$()),r(2),u(i.instances_$().length?-1:5))},dependencies:[N,K,Y],encapsulation:2})}return t})();function je(t,d){if(t&1&&x(0,"app-s-instance-detail-view",3),t&2){let e=c(2);p("row",d)("presence",e.getPresenceForSelectedRow())}}function Be(t,d){if(t&1){let e=k();a(0,"app-s-modal",2),f("closed",function(){C(e);let i=c();return v(i.handleModalClosed())}),_(1,je,1,2,"app-s-instance-detail-view",3),o()}if(t&2){let e,n=c();p("isOpen",!0)("title",n.modalTitle_$())("maxWidth","lg"),r(),u((e=n.selectedRow_$())?1:-1,e)}}var en=(()=>{class t{instanceRegistry_DS=y(pe);runtimeInstances_DS=y(fe);presenceMap=new Map;activeSessionMap=new Map;selectedInstanceKey_$=$(null);viewRows_$=h(()=>Se.buildViewRows(this.instanceRegistry_DS.list_$(),this.runtimeInstances_DS.ccapInstanceList_$()));selectedRow_$=h(()=>{let e=this.selectedInstanceKey_$();return e?this.viewRows_$().find(n=>(n.registry.instanceKey??"")===e)??null:null});isModalOpen_$=h(()=>this.selectedRow_$()!==null);modalTitle_$=h(()=>{let e=this.selectedRow_$();if(!e)return"";let n=e.registry.hostName??"",i=e.registry.instanceKey??"";return n?`Instance \u2014 ${n}`:`Instance \u2014 ${i.slice(-6)||"?"}`});handleInfoRequested(e){this.selectedInstanceKey_$.set(e.instanceKey)}getPresenceForSelectedRow(){let e=this.selectedRow_$();if(!e)return;let n=e.registry.instanceKey??"";if(n)return this.presenceMap.get(n)}handleModalClosed(){this.selectedInstanceKey_$.set(null)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=b({type:t,selectors:[["app-s-instance-chip-row-with-info"]],hostAttrs:[1,"block"],inputs:{presenceMap:"presenceMap",activeSessionMap:"activeSessionMap"},standalone:!0,features:[w],decls:2,vars:3,consts:[[3,"infoRequested","presenceMap","activeSessionMap"],[3,"isOpen","title","maxWidth"],[3,"closed","isOpen","title","maxWidth"],[3,"row","presence"]],template:function(n,i){n&1&&(a(0,"app-s-instance-selector",0),f("infoRequested",function(m){return i.handleInfoRequested(m)}),o(),_(1,Be,2,4,"app-s-modal",1)),n&2&&(p("presenceMap",i.presenceMap)("activeSessionMap",i.activeSessionMap),r(),u(i.isModalOpen_$()?1:-1))},dependencies:[N,Ee,ce,we],encapsulation:2})}return t})();var G=(()=>{class t{currentlyOpenId_$=$(null);isOpen(e){return h(()=>this.currentlyOpenId_$()===e)}setOpen(e){this.currentlyOpenId_$.set(e)}toggle(e){this.currentlyOpenId_$()===e?this.currentlyOpenId_$.set(null):this.currentlyOpenId_$.set(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var P=function(t){return t.schedule="schedule",t.quickcast="quickcast",t.coordinator="coordinator",t.quickSettings="quick-settings",t}(P||{});var ke=(t,d)=>d._id,Ke=()=>["border-neonAmber/60","text-neonAmber","shadow-neon-glow-orange","hover:border-neonAmber","hover:bg-neonAmber/10"],Ne=()=>["border-neutral-700","text-neutral-600"];function Ge(t,d){if(t&1&&(a(0,"span",4),s(1),o()),t&2){let e=c();r(),S(" ",e.sessionJobs_$().length>9?"9+":e.sessionJobs_$().length," ")}}function He(t,d){t&1&&(E(),a(0,"svg",15),x(1,"path",22),o())}function Je(t,d){t&1&&(E(),a(0,"svg",15),x(1,"rect",23)(2,"rect",24),o())}function Qe(t,d){t&1&&(a(0,"span",18),s(1," \u23F8 paused "),o())}function qe(t,d){if(t&1&&(a(0,"span",20),s(1),z(2,"date"),o()),t&2){let e=c().$implicit;r(),S(" ",B(2,1,e.nextDueAt,"yyyy-MM-dd HH:mm")," ")}}function Ye(t,d){t&1&&(a(0,"span",21),s(1,"\u2014"),o())}function We(t,d){if(t&1&&(a(0,"span",27),s(1),o()),t&2){let e=d.$implicit,n=c(5);p("ngClass",n.getExecutionBadgeClass(e.status))("title",n.buildExecutionBadgeTooltip(e)),r(),S(" ",n.getExecutionBadgeLabel(e.status)," ")}}function Ue(t,d){if(t&1&&(a(0,"div",25)(1,"span",26),s(2,"Trigger-ek:"),o(),F(3,We,2,3,"span",27,ke),o()),t&2){let e=c();r(3),V(e)}}function Xe(t,d){t&1&&_(0,Ue,5,0,"div",25),t&2&&u(d.length>0?0:-1)}function Ze(t,d){if(t&1){let e=k();a(0,"div",9)(1,"div",6)(2,"div",10)(3,"span",11),s(4),o(),a(5,"span",12),s(6),z(7,"schSchedulePresetLabel"),o()(),a(8,"div",13)(9,"button",14),f("click",function(){let i=C(e).$implicit,l=c(2);return v(l.handleTogglePaused(i))}),_(10,He,2,0,":svg:svg",15)(11,Je,3,0,":svg:svg",15),o(),a(12,"button",16),f("click",function(){let i=C(e).$implicit,l=c(2);return v(l.handleTriggerNow(i))}),E(),a(13,"svg",15),x(14,"path",17),o()()()(),_(15,Qe,2,0,"span",18),Q(),a(16,"div",19)(17,"span"),s(18,"K\xF6vetkez\u0151:"),o(),_(19,qe,3,4,"span",20)(20,Ye,2,0,"span",21),o(),_(21,Xe,1,1),o()}if(t&2){let e,n,i,l,m,T,j,g=d.$implicit,D=c(2);r(3),p("title",(e=g.name)!==null&&e!==void 0?e:""),r(),S(" ",((n=g.name)!==null&&n!==void 0?n:"").trim()||"Unnamed schedule"," "),r(2),S(" ",ie(7,28,g.schedule)," "),r(3),M("border-neonCyan",g.paused)("text-neonCyan",g.paused)("hover:bg-neonCyan",g.paused)("hover:bg-opacity-10",g.paused)("border-neutral-500",!g.paused)("text-neutral-400",!g.paused)("hover:border-neutral-300",!g.paused)("hover:text-neutral-200",!g.paused),p("disabled",D.busyJobIds_$().has((i=g._id)!==null&&i!==void 0?i:""))("title",D.busyJobIds_$().has((l=g._id)!==null&&l!==void 0?l:"")?"Folyamatban\u2026":g.paused?"Folytat\xE1s (Resume)":"Sz\xFCneteltet\xE9s (Pause)"),R("aria-label",g.paused?"Resume schedule":"Pause schedule"),r(),u(g.paused?10:11),r(2),p("disabled",D.busyJobIds_$().has((m=g._id)!==null&&m!==void 0?m:""))("title",D.busyJobIds_$().has((T=g._id)!==null&&T!==void 0?T:"")?"Ind\xEDt\xE1s folyamatban\u2026":"Most futtatni (Trigger Now)"),r(3),u(g.paused?15:-1),r(4),u(g.nextDueAt?19:20),r(2),u((j=D.getRecentExecutions(g))?21:-1,j)}}function et(t,d){if(t&1){let e=k();a(0,"div",5)(1,"div",6)(2,"span",7),s(3),o(),a(4,"button",8),f("click",function(){C(e);let i=c();return v(i.handleToggle())}),s(5," \xD7 "),o()(),F(6,Ze,22,30,"div",9,ke),o()}if(t&2){let e=c();r(3),S(" Schedule (",e.sessionJobs_$().length,") "),r(3),V(e.sessionJobs_$())}}var _n=(()=>{class t{sessionId=A.required();scheduledJobs_DS=y(ge);overlayCoordinator_CS=y(G);OVERLAY_ID=P.schedule;isOpen_$=this.overlayCoordinator_CS.isOpen(this.OVERLAY_ID);busyJobIds_$=$(new Set);sessionJobs_$=h(()=>{let e=(this.sessionId()??"").trim();return e?this.scheduledJobs_DS.jobs_$().filter(i=>i.enabled===!1?!1:(i.target?.payload?.sessionId??"").trim()===e):[]});hasSchedule_$=h(()=>this.sessionJobs_$().length>0);ngOnInit(){this.scheduledJobs_DS.jobs_$().length===0&&this.scheduledJobs_DS.loadAll()}handleToggle(){this.overlayCoordinator_CS.toggle(this.OVERLAY_ID)}handleTriggerNow(e){return H(this,null,function*(){let n=(e._id??"").trim();if(n&&!this.busyJobIds_$().has(n)){this.busyJobIds_$.update(i=>{let l=new Set(i);return l.add(n),l});try{yield this.scheduledJobs_DS.triggerNow({jobId:n,reason:"session-overlay-manual"})}finally{this.busyJobIds_$.update(i=>{let l=new Set(i);return l.delete(n),l})}}})}handleTogglePaused(e){return H(this,null,function*(){let n=(e._id??"").trim();if(!n||this.busyJobIds_$().has(n))return;let i=!e.paused;this.busyJobIds_$.update(l=>{let m=new Set(l);return m.add(n),m});try{yield this.scheduledJobs_DS.togglePaused(n,i)}finally{this.busyJobIds_$.update(l=>{let m=new Set(l);return m.delete(n),m})}})}getRecentExecutions(e){let n=e._id??"";return n?this.scheduledJobs_DS.recentExecutions_$().get(n)??[]:[]}getExecutionBadgeClass(e){switch(e){case"triggered":return"bg-emerald-500/20 text-emerald-400";case"completed":return"bg-sky-500/20 text-sky-400";case"skipped":return"bg-neutral-600/30 text-neutral-400";case"failed":return"bg-red-500/20 text-red-400";case"cancelled":return"bg-amber-500/20 text-amber-400";case"dry-run":return"bg-purple-500/20 text-purple-400";default:return"bg-neutral-700/40 text-neutral-500"}}getExecutionBadgeLabel(e){switch(e){case"triggered":return"OK";case"completed":return"Done";case"skipped":return"Skip";case"failed":return"Fail";case"cancelled":return"Cancel";case"dry-run":return"Dry";default:return"?"}}buildExecutionBadgeTooltip(e){let n=[];return e.scheduledAt&&(n.push(new Date(e.scheduledAt).toISOString().slice(0,16).replace("T"," ")),n.push(" \u2014 ")),n.push(e.status??"?"),e.skipReason&&n.push(` (${e.skipReason})`),e.status==="failed"&&e.errorDetails?.message&&n.push(`: ${e.errorDetails.message}`),n.join("")}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=b({type:t,selectors:[["app-s-session-schedule-overlay"]],hostAttrs:[1,"absolute","bottom-4","left-0","z-30","pointer-events-none"],inputs:{sessionId:[1,"sessionId"]},standalone:!0,features:[w],decls:6,vars:12,consts:[[1,"flex","items-end","gap-2","pointer-events-auto"],["type","button","aria-label","Schedule",1,"relative","flex","items-center","justify-center","h-8","w-7","bg-neutral-900","border-2","border-l-0","rounded-r-lg","transition-all","duration-200","ease-out","disabled:cursor-not-allowed",3,"click","disabled","title","ngClass"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-4","h-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d",`M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5
|
|
1
|
+
import{a as he}from"./chunk-PR5JV6XX.js";import{a as ge,b as Ce}from"./chunk-6HZB6QSW.js";import{a as me,b as _e}from"./chunk-3N2JTN7N.js";import{a as Se,b as Y}from"./chunk-L44637OO.js";import{a as ue}from"./chunk-2DR4NRFY.js";import{b as pe}from"./chunk-GDAWHJEQ.js";import{d as fe}from"./chunk-YZ27TRGU.js";import{d as U,h as xe}from"./chunk-F4DZS3GH.js";import{a as ce}from"./chunk-FLAJXIYW.js";import{f as oe,i as ae,n as re,o as se,p as le,v as de}from"./chunk-EO4DNTT4.js";import{p as Te}from"./chunk-WR6NSOQ2.js";import{$a as z,C as y,D as b,Fa as s,Ga as I,Ha as S,Ia as te,J as C,K as v,L as E,M as Q,Q as Z,T as q,Ta as w,U as A,Ua as O,Va as ne,Z as r,aa as $,ab as ie,bb as B,da as _,fa as R,ga as p,h as $e,hb as h,ia as M,k as H,la as u,mb as K,na as ee,oa as F,pa as V,pb as J,qa as a,ra as o,sa as x,ua as k,ub as N,va as f,wa as c,y as X}from"./chunk-TBMJSIBB.js";var ye=$e(Te());var W=(()=>{class t{static SESSION_LIMIT_TYPE="five_hour";static WEEKLY_LIMIT_TYPE="seven_day";static formatResetText(e){if(!e?.resetsAt)return"";let n=new Date(e.resetsAt*1e3),i=new Date,l=n.getTime()-i.getTime();if(l<=0)return"expired";let m=Math.floor(l/6e4),T=Math.floor(m/60),j=m%60;return T>0?`${T}h ${j}m`:`${j}m`}static formatResetTextPrecise(e){if(!e?.resetsAt)return"";let n=new Date(e.resetsAt*1e3),i=new Date,l=Math.floor((n.getTime()-i.getTime())/1e3);if(l<=0)return"expired";let m=Math.floor(l/86400),T=Math.floor(l%86400/3600),j=Math.floor(l%3600/60),g=l%60,D=[];return m&&D.push(`${m}d`),(m||T)&&D.push(`${T}h`),(m||T||j)&&D.push(`${j}m`),D.push(`${g}s`),D.join(" ")}static computeUtilizationPercent(e){if(!e)return 0;let n=typeof e.utilization=="number"?e.utilization:0,i=Math.max(0,Math.min(1,n));return Math.round(i*100)}static computeThresholdPercent(e){if(!e)return 0;let n=typeof e.surpassedThreshold=="number"?e.surpassedThreshold:0,i=Math.max(0,Math.min(1,n));return Math.round(i*100)}static isOverThreshold(e){if(!e)return!1;let n=typeof e.utilization=="number"?e.utilization:0,i=typeof e.surpassedThreshold=="number"?e.surpassedThreshold:1;return n>=i&&i>0}static formatLimitScopeLabel(e){return e?.rateLimitType?e.rateLimitType===t.SESSION_LIMIT_TYPE?"Session":e.rateLimitType===t.WEEKLY_LIMIT_TYPE?"Weekly":e.rateLimitType:""}}return t})();function Me(t,d){if(t&1&&(a(0,"div",0)(1,"span",1),s(2," Rate limit "),o(),a(3,"span",2),s(4,"Scope"),o(),a(5,"span",3),s(6),o(),a(7,"span",2),s(8,"St\xE1tusz"),o(),a(9,"span",3),s(10),o(),a(11,"span",2),s(12,"Utilization"),o(),a(13,"span",4),s(14),o(),a(15,"span",2),s(16,"Reset"),o(),a(17,"span",4),s(18),o(),a(19,"span",2),s(20,"Utols\xF3 \xE9szlel\xE9s"),o(),a(21,"span",5),s(22),z(23,"date"),o()()),t&2){let e=d,n=c();r(6),I(n.limitScopeLabel_$()||"\u2014"),r(3),M("text-neonRed",e.status==="limited")("text-yellow-400",e.status==="allowed_warning")("text-neutral-300",e.status==="allowed"),r(),S(" ",e.status||"\u2014"," "),r(4),S("",n.utilizationPercent_$(),"%"),r(4),I(n.resetText_$()||"\u2014"),r(4),S(" ",B(23,11,e.receivedAt,"yyyy-MM-dd HH:mm:ss")||"\u2014"," ")}}var be=(()=>{class t{claudeCode_AS=y(me);_ccapId="";set ccapId(e){this._ccapId=e?.trim()??"",this.refreshRateLimitState()}get ccapId(){return this._ccapId}rateLimitInfo_$=$(null);utilizationPercent_$=h(()=>W.computeUtilizationPercent(this.rateLimitInfo_$()));resetText_$=h(()=>W.formatResetText(this.rateLimitInfo_$()));limitScopeLabel_$=h(()=>W.formatLimitScopeLabel(this.rateLimitInfo_$()));refreshRateLimitState(){if(!this._ccapId){this.rateLimitInfo_$.set(null);return}this.claudeCode_AS.getRateLimitState({ccapId:this._ccapId}).then(e=>{let n=_e.mapServerItemsToClientInfo(e.items);this.rateLimitInfo_$.set(n)}).catch(e=>{ye.DyFM_Log.warn(`s-cc-rate-limit-info | rate-limit fetch failed | ccapId: ${this._ccapId} | err: ${String(e)}`),this.rateLimitInfo_$.set(null)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=b({type:t,selectors:[["app-s-cc-rate-limit-info"]],inputs:{ccapId:"ccapId"},standalone:!0,features:[w],decls:1,vars:1,consts:[[1,"grid","grid-cols-[minmax(8rem,auto)_1fr]","gap-x-3","gap-y-2","text-xs","text-neutral-200"],[1,"col-span-2","text-[11px]","uppercase","tracking-wider","text-neutral-500"],[1,"text-neutral-500","shrink-0"],[1,"whitespace-nowrap"],[1,"whitespace-nowrap","font-mono"],[1,"font-mono","text-[11px]","whitespace-nowrap"]],template:function(n,i){if(n&1&&_(0,Me,24,14,"div",0),n&2){let l;u((l=i.rateLimitInfo_$())?0:-1,l)}},dependencies:[N,J],encapsulation:2})}return t})();function Oe(t,d){if(t&1&&(a(0,"span",1),s(1,"Instance presence"),o(),a(2,"span",4),x(3,"app-s-instance-presence-badge",8),o()),t&2){let e=d;r(3),p("presence",e.presence)("lastHeartbeatAt",e.lastHeartbeatAt)("wsConnected",e.wsConnected)}}function De(t,d){if(t&1&&(a(0,"span",9),s(1,"Run / tev\xE9kenys\xE9g"),o(),a(2,"span",10)(3,"span",11),s(4),o(),a(5,"span",12),s(6),o()(),a(7,"span",1),s(8,"Utols\xF3 aktivit\xE1s"),o(),a(9,"span",13),s(10),z(11,"date"),o(),a(12,"span",1),s(13,"Utols\xF3 \xFCzenet"),o(),a(14,"span",14),s(15),o()),t&2){let e=d;r(4),I(e.activeRunPhase||"\u2014"),r(2),I(e.activitySummary||"\u2014"),r(4),S(" ",B(11,4,e.lastActivityAt,"yyyy-MM-dd HH:mm:ss")||"\u2014"," "),r(5),I(e.lastMessage||"\u2014")}}var we=(()=>{class t{row;presence=void 0;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=b({type:t,selectors:[["app-s-instance-detail-view"]],inputs:{row:"row",presence:"presence"},standalone:!0,features:[w],decls:43,vars:18,consts:[[1,"grid","grid-cols-[minmax(8rem,auto)_1fr]","gap-x-3","gap-y-2","text-xs","text-neutral-200"],[1,"text-neutral-500","shrink-0"],[1,"font-mono","break-all"],[1,"break-all"],[1,"whitespace-nowrap"],[1,"font-mono","whitespace-nowrap"],[1,"mt-2","pt-2","border-t","border-neutral-800"],[3,"ccapId"],[3,"presence","lastHeartbeatAt","wsConnected"],[1,"text-neutral-500","shrink-0","self-start","pt-0.5"],[1,"break-words"],[1,"font-mono","text-[11px]","text-neutral-400","block"],[1,"text-neutral-300"],[1,"font-mono","text-[11px]","whitespace-nowrap"],[1,"break-words","text-neutral-300"]],template:function(n,i){if(n&1&&(a(0,"div",0)(1,"span",1),s(2,"instanceKey"),o(),a(3,"span",2),s(4),o(),a(5,"span",1),s(6,"N\xE9v"),o(),a(7,"span",3),s(8),o(),a(9,"span",1),s(10,"St\xE1tusz"),o(),a(11,"span",4),s(12),o(),_(13,Oe,4,3),a(14,"span",1),s(15,"Session presence"),o(),a(16,"span",4),s(17),o(),_(18,De,16,7),a(19,"span",1),s(20,"MAC"),o(),a(21,"span",2),s(22),o(),a(23,"span",1),s(24,"Install path"),o(),a(25,"span",2),s(26),o(),a(27,"span",1),s(28,"hostName"),o(),a(29,"span",3),s(30),o(),a(31,"span",1),s(32,"registry __created"),o(),a(33,"span",5),s(34),z(35,"date"),o(),a(36,"span",1),s(37,"registry __updated"),o(),a(38,"span",5),s(39),z(40,"date"),o()(),a(41,"div",6),x(42,"app-s-cc-rate-limit-info",7),o()),n&2){let l,m;r(4),I(i.row.registry.instanceKey||"\u2014"),r(4),I((i.row.instanceData==null||i.row.instanceData.name==null?null:i.row.instanceData.name.trim())||"\u2014"),r(4),I((i.row.instanceData==null?null:i.row.instanceData.status)||"\u2014"),r(),u((l=i.presence)?13:-1,l),r(4),S(" ",(i.row.instanceData==null||i.row.instanceData.sessionStatuses==null||i.row.instanceData.sessionStatuses[0]==null?null:i.row.instanceData.sessionStatuses[0].presence)||"\u2014"," "),r(),u((m=i.row.instanceData==null||i.row.instanceData.sessionStatuses==null?null:i.row.instanceData.sessionStatuses[0])?18:-1,m),r(4),I(i.row.registry.primaryMacAddress||"\u2014"),r(4),I(i.row.registry.installLocationPath||"\u2014"),r(4),I(i.row.registry.hostName||"\u2014"),r(4),S(" ",B(35,12,i.row.registry.__created,"yyyy-MM-dd HH:mm:ss")||"\u2014"," "),r(5),S(" ",B(40,15,i.row.registry.__updated,"yyyy-MM-dd HH:mm:ss")||"\u2014"," "),r(3),p("ccapId",i.row.registry.instanceKey||"")}},dependencies:[N,J,be,Y],encapsulation:2})}return t})();var Ae=(t,d)=>d.instanceKey,Re=t=>({"bg-ccapAccent/10":t});function Fe(t,d){if(t&1&&x(0,"app-s-instance-presence-badge",5),t&2){let e=d;p("presence",e.presence)("lastHeartbeatAt",e.lastHeartbeatAt)("wsConnected",e.wsConnected)("showLabel",!1)}}function Ve(t,d){t&1&&(a(0,"span",6),s(1,"(local)"),o())}function ze(t,d){t&1&&x(0,"span",7)}function Le(t,d){if(t&1){let e=k();a(0,"div",2)(1,"button",4),f("click",function(){let i,l=C(e).$implicit,m=c();return v(m.handleSelectInstance((i=l.instanceKey)!==null&&i!==void 0?i:""))}),_(2,Fe,1,4,"app-s-instance-presence-badge",5),s(3),_(4,Ve,2,0,"span",6)(5,ze,1,0,"span",7),o(),a(6,"button",8),f("click",function(){let i,l=C(e).$implicit,m=c();return v(m.handleInfoClick((i=l.instanceKey)!==null&&i!==void 0?i:""))}),s(7," i "),o()()}if(t&2){let e,n=d.$implicit,i=c();r(),M("border-ccapAccent",i.isSelected(n))("text-ccapAccent",i.isSelected(n))("border-neonDefault",!i.isSelected(n))("text-neutral-400",!i.isSelected(n))("hover:text-neutral-200",!i.isSelected(n))("hover:border-neutral-500",!i.isSelected(n)),p("ngClass",ne(17,Re,i.isSelected(n))),r(),u((e=i.getPresenceForRow(n))?2:-1,e),r(),S(" ",i.getDisplayLabel(n)," "),r(),u(i.isLocal(n)?4:-1),r(),u(i.getActiveSessionForRow(n)?5:-1)}}function Pe(t,d){t&1&&(a(0,"span",3),s(1,"loading..."),o())}var Ee=(()=>{class t{peiContext_DS=y(ue);presenceMap=new Map;activeSessionMap=new Map;infoRequested=new Z;instances_$=h(()=>this.peiContext_DS.instanceList_$());selectedCcapId_$=h(()=>this.peiContext_DS.activeCcapId_$());localKey_$=h(()=>this.peiContext_DS.localInstanceKey_$());ngOnInit(){this.peiContext_DS.initialize()}handleSelectInstance(e){this.peiContext_DS.selectInstance(e)}handleInfoClick(e){this.infoRequested.emit({instanceKey:e})}getDisplayLabel(e){let n=e.hostName??"",i=(e.instanceKey??"").slice(-6);return n?`${n} (${i})`:i||"?"}isSelected(e){return(e.instanceKey??"")===this.selectedCcapId_$()}isLocal(e){return(e.instanceKey??"")===this.localKey_$()}getPresenceForRow(e){let n=e.instanceKey??"";return n?this.presenceMap.get(n)??null:null}getActiveSessionForRow(e){let n=e.instanceKey??"";return n?this.activeSessionMap.get(n)===!0:!1}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=b({type:t,selectors:[["app-s-instance-selector"]],hostAttrs:[1,"block"],inputs:{presenceMap:"presenceMap",activeSessionMap:"activeSessionMap"},outputs:{infoRequested:"infoRequested"},standalone:!0,features:[w],decls:6,vars:1,consts:[[1,"flex","gap-1","flex-wrap","items-center"],[1,"text-[10px]","text-neutral-500","mr-1","uppercase","tracking-wider"],[1,"flex","items-center","gap-0.5","group"],[1,"text-[10px]","text-neutral-600","italic"],[1,"px-2","py-0.5","text-[11px]","rounded-full","border","transition-colors","flex","items-center","gap-1",3,"click","ngClass"],[3,"presence","lastHeartbeatAt","wsConnected","showLabel"],[1,"ml-0.5","text-[9px]","text-neutral-500"],["title","Akt\xEDv session fut ezen az instance-en","aria-label","Akt\xEDv session fut ezen az instance-en","data-testid","s-instance-active-session-dot",1,"inline-block","w-1.5","h-1.5","rounded-full","bg-yellow-400","animate-pulse","shrink-0"],["type","button","title","Instance details","aria-label","Show instance details","data-testid","s-instance-selector-info-btn",1,"text-[11px]","leading-none","w-4","h-4","rounded-full","border","border-neutral-700","text-neutral-500","hover:text-ccapAccent","hover:border-ccapAccent","transition-colors","flex","items-center","justify-center",3,"click"]],template:function(n,i){n&1&&(a(0,"div",0)(1,"span",1),s(2,"Instance:"),o(),F(3,Le,8,19,"div",2,Ae),_(5,Pe,2,0,"span",3),o()),n&2&&(r(3),V(i.instances_$()),r(2),u(i.instances_$().length?-1:5))},dependencies:[N,K,Y],encapsulation:2})}return t})();function je(t,d){if(t&1&&x(0,"app-s-instance-detail-view",3),t&2){let e=c(2);p("row",d)("presence",e.getPresenceForSelectedRow())}}function Be(t,d){if(t&1){let e=k();a(0,"app-s-modal",2),f("closed",function(){C(e);let i=c();return v(i.handleModalClosed())}),_(1,je,1,2,"app-s-instance-detail-view",3),o()}if(t&2){let e,n=c();p("isOpen",!0)("title",n.modalTitle_$())("maxWidth","lg"),r(),u((e=n.selectedRow_$())?1:-1,e)}}var en=(()=>{class t{instanceRegistry_DS=y(pe);runtimeInstances_DS=y(fe);presenceMap=new Map;activeSessionMap=new Map;selectedInstanceKey_$=$(null);viewRows_$=h(()=>Se.buildViewRows(this.instanceRegistry_DS.list_$(),this.runtimeInstances_DS.ccapInstanceList_$()));selectedRow_$=h(()=>{let e=this.selectedInstanceKey_$();return e?this.viewRows_$().find(n=>(n.registry.instanceKey??"")===e)??null:null});isModalOpen_$=h(()=>this.selectedRow_$()!==null);modalTitle_$=h(()=>{let e=this.selectedRow_$();if(!e)return"";let n=e.registry.hostName??"",i=e.registry.instanceKey??"";return n?`Instance \u2014 ${n}`:`Instance \u2014 ${i.slice(-6)||"?"}`});handleInfoRequested(e){this.selectedInstanceKey_$.set(e.instanceKey)}getPresenceForSelectedRow(){let e=this.selectedRow_$();if(!e)return;let n=e.registry.instanceKey??"";if(n)return this.presenceMap.get(n)}handleModalClosed(){this.selectedInstanceKey_$.set(null)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=b({type:t,selectors:[["app-s-instance-chip-row-with-info"]],hostAttrs:[1,"block"],inputs:{presenceMap:"presenceMap",activeSessionMap:"activeSessionMap"},standalone:!0,features:[w],decls:2,vars:3,consts:[[3,"infoRequested","presenceMap","activeSessionMap"],[3,"isOpen","title","maxWidth"],[3,"closed","isOpen","title","maxWidth"],[3,"row","presence"]],template:function(n,i){n&1&&(a(0,"app-s-instance-selector",0),f("infoRequested",function(m){return i.handleInfoRequested(m)}),o(),_(1,Be,2,4,"app-s-modal",1)),n&2&&(p("presenceMap",i.presenceMap)("activeSessionMap",i.activeSessionMap),r(),u(i.isModalOpen_$()?1:-1))},dependencies:[N,Ee,ce,we],encapsulation:2})}return t})();var G=(()=>{class t{currentlyOpenId_$=$(null);isOpen(e){return h(()=>this.currentlyOpenId_$()===e)}setOpen(e){this.currentlyOpenId_$.set(e)}toggle(e){this.currentlyOpenId_$()===e?this.currentlyOpenId_$.set(null):this.currentlyOpenId_$.set(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var P=function(t){return t.schedule="schedule",t.quickcast="quickcast",t.coordinator="coordinator",t.quickSettings="quick-settings",t}(P||{});var ke=(t,d)=>d._id,Ke=()=>["border-neonAmber/60","text-neonAmber","shadow-neon-glow-orange","hover:border-neonAmber","hover:bg-neonAmber/10"],Ne=()=>["border-neutral-700","text-neutral-600"];function Ge(t,d){if(t&1&&(a(0,"span",4),s(1),o()),t&2){let e=c();r(),S(" ",e.sessionJobs_$().length>9?"9+":e.sessionJobs_$().length," ")}}function He(t,d){t&1&&(E(),a(0,"svg",15),x(1,"path",22),o())}function Je(t,d){t&1&&(E(),a(0,"svg",15),x(1,"rect",23)(2,"rect",24),o())}function Qe(t,d){t&1&&(a(0,"span",18),s(1," \u23F8 paused "),o())}function qe(t,d){if(t&1&&(a(0,"span",20),s(1),z(2,"date"),o()),t&2){let e=c().$implicit;r(),S(" ",B(2,1,e.nextDueAt,"yyyy-MM-dd HH:mm")," ")}}function Ye(t,d){t&1&&(a(0,"span",21),s(1,"\u2014"),o())}function We(t,d){if(t&1&&(a(0,"span",27),s(1),o()),t&2){let e=d.$implicit,n=c(5);p("ngClass",n.getExecutionBadgeClass(e.status))("title",n.buildExecutionBadgeTooltip(e)),r(),S(" ",n.getExecutionBadgeLabel(e.status)," ")}}function Ue(t,d){if(t&1&&(a(0,"div",25)(1,"span",26),s(2,"Trigger-ek:"),o(),F(3,We,2,3,"span",27,ke),o()),t&2){let e=c();r(3),V(e)}}function Xe(t,d){t&1&&_(0,Ue,5,0,"div",25),t&2&&u(d.length>0?0:-1)}function Ze(t,d){if(t&1){let e=k();a(0,"div",9)(1,"div",6)(2,"div",10)(3,"span",11),s(4),o(),a(5,"span",12),s(6),z(7,"schSchedulePresetLabel"),o()(),a(8,"div",13)(9,"button",14),f("click",function(){let i=C(e).$implicit,l=c(2);return v(l.handleTogglePaused(i))}),_(10,He,2,0,":svg:svg",15)(11,Je,3,0,":svg:svg",15),o(),a(12,"button",16),f("click",function(){let i=C(e).$implicit,l=c(2);return v(l.handleTriggerNow(i))}),E(),a(13,"svg",15),x(14,"path",17),o()()()(),_(15,Qe,2,0,"span",18),Q(),a(16,"div",19)(17,"span"),s(18,"K\xF6vetkez\u0151:"),o(),_(19,qe,3,4,"span",20)(20,Ye,2,0,"span",21),o(),_(21,Xe,1,1),o()}if(t&2){let e,n,i,l,m,T,j,g=d.$implicit,D=c(2);r(3),p("title",(e=g.name)!==null&&e!==void 0?e:""),r(),S(" ",((n=g.name)!==null&&n!==void 0?n:"").trim()||"Unnamed schedule"," "),r(2),S(" ",ie(7,28,g.schedule)," "),r(3),M("border-neonCyan",g.paused)("text-neonCyan",g.paused)("hover:bg-neonCyan",g.paused)("hover:bg-opacity-10",g.paused)("border-neutral-500",!g.paused)("text-neutral-400",!g.paused)("hover:border-neutral-300",!g.paused)("hover:text-neutral-200",!g.paused),p("disabled",D.busyJobIds_$().has((i=g._id)!==null&&i!==void 0?i:""))("title",D.busyJobIds_$().has((l=g._id)!==null&&l!==void 0?l:"")?"Folyamatban\u2026":g.paused?"Folytat\xE1s (Resume)":"Sz\xFCneteltet\xE9s (Pause)"),R("aria-label",g.paused?"Resume schedule":"Pause schedule"),r(),u(g.paused?10:11),r(2),p("disabled",D.busyJobIds_$().has((m=g._id)!==null&&m!==void 0?m:""))("title",D.busyJobIds_$().has((T=g._id)!==null&&T!==void 0?T:"")?"Ind\xEDt\xE1s folyamatban\u2026":"Most futtatni (Trigger Now)"),r(3),u(g.paused?15:-1),r(4),u(g.nextDueAt?19:20),r(2),u((j=D.getRecentExecutions(g))?21:-1,j)}}function et(t,d){if(t&1){let e=k();a(0,"div",5)(1,"div",6)(2,"span",7),s(3),o(),a(4,"button",8),f("click",function(){C(e);let i=c();return v(i.handleToggle())}),s(5," \xD7 "),o()(),F(6,Ze,22,30,"div",9,ke),o()}if(t&2){let e=c();r(3),S(" Schedule (",e.sessionJobs_$().length,") "),r(3),V(e.sessionJobs_$())}}var _n=(()=>{class t{sessionId=A.required();scheduledJobs_DS=y(ge);overlayCoordinator_CS=y(G);OVERLAY_ID=P.schedule;isOpen_$=this.overlayCoordinator_CS.isOpen(this.OVERLAY_ID);busyJobIds_$=$(new Set);sessionJobs_$=h(()=>{let e=(this.sessionId()??"").trim();return e?this.scheduledJobs_DS.jobs_$().filter(i=>i.enabled===!1?!1:(i.target?.payload?.sessionId??"").trim()===e):[]});hasSchedule_$=h(()=>this.sessionJobs_$().length>0);ngOnInit(){this.scheduledJobs_DS.jobs_$().length===0&&this.scheduledJobs_DS.loadAll()}handleToggle(){this.overlayCoordinator_CS.toggle(this.OVERLAY_ID)}handleTriggerNow(e){return H(this,null,function*(){let n=(e._id??"").trim();if(n&&!this.busyJobIds_$().has(n)){this.busyJobIds_$.update(i=>{let l=new Set(i);return l.add(n),l});try{yield this.scheduledJobs_DS.triggerNow({jobId:n,reason:"session-overlay-manual"})}finally{this.busyJobIds_$.update(i=>{let l=new Set(i);return l.delete(n),l})}}})}handleTogglePaused(e){return H(this,null,function*(){let n=(e._id??"").trim();if(!n||this.busyJobIds_$().has(n))return;let i=!e.paused;this.busyJobIds_$.update(l=>{let m=new Set(l);return m.add(n),m});try{yield this.scheduledJobs_DS.togglePaused(n,i)}finally{this.busyJobIds_$.update(l=>{let m=new Set(l);return m.delete(n),m})}})}getRecentExecutions(e){let n=e._id??"";return n?this.scheduledJobs_DS.recentExecutions_$().get(n)??[]:[]}getExecutionBadgeClass(e){switch(e){case"triggered":return"bg-emerald-500/20 text-emerald-400";case"completed":return"bg-sky-500/20 text-sky-400";case"skipped":return"bg-neutral-600/30 text-neutral-400";case"failed":return"bg-red-500/20 text-red-400";case"cancelled":return"bg-amber-500/20 text-amber-400";case"dry-run":return"bg-purple-500/20 text-purple-400";default:return"bg-neutral-700/40 text-neutral-500"}}getExecutionBadgeLabel(e){switch(e){case"triggered":return"OK";case"completed":return"Done";case"skipped":return"Skip";case"failed":return"Fail";case"cancelled":return"Cancel";case"dry-run":return"Dry";default:return"?"}}buildExecutionBadgeTooltip(e){let n=[];return e.scheduledAt&&(n.push(new Date(e.scheduledAt).toISOString().slice(0,16).replace("T"," ")),n.push(" \u2014 ")),n.push(e.status??"?"),e.skipReason&&n.push(` (${e.skipReason})`),e.status==="failed"&&e.errorDetails?.message&&n.push(`: ${e.errorDetails.message}`),n.join("")}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=b({type:t,selectors:[["app-s-session-schedule-overlay"]],hostAttrs:[1,"absolute","bottom-4","left-0","z-30","pointer-events-none"],inputs:{sessionId:[1,"sessionId"]},standalone:!0,features:[w],decls:6,vars:12,consts:[[1,"flex","items-end","gap-2","pointer-events-auto"],["type","button","aria-label","Schedule",1,"relative","flex","items-center","justify-center","h-8","w-7","bg-neutral-900","border-2","border-l-0","rounded-r-lg","transition-all","duration-200","ease-out","disabled:cursor-not-allowed",3,"click","disabled","title","ngClass"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-4","h-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d",`M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5
|
|
2
2
|
a2 2 0 00-2 2v12a2 2 0 002 2z`],["aria-hidden","true",1,"absolute","-top-1","-right-1","min-w-[14px]","h-[14px]","px-[2px]","bg-neonCyan","text-neutral-900","rounded-full","text-[9px]","font-mono","font-bold","leading-[14px]","text-center","shadow-neon-glow-cyan"],[1,"bg-neutral-900","border-2","border-neonAmber/60","rounded-lg","p-3","flex","flex-col","gap-2","min-w-[16rem]","max-w-xs","shadow-neon-glow-orange"],[1,"flex","items-center","justify-between","gap-2"],[1,"text-[10px]","uppercase","tracking-wider","text-neonAmber","font-mono"],["type","button","title","Bez\xE1r\xE1s","aria-label","Schedule panel bez\xE1r\xE1sa",1,"text-neutral-400","hover:text-neonAmber","leading-none","px-1","transition-colors",3,"click"],[1,"flex","flex-col","gap-1","border-t","border-neutral-800","pt-2","first:border-t-0","first:pt-0"],[1,"flex","flex-col","min-w-0"],[1,"text-sm","text-neutral-100","truncate",3,"title"],[1,"text-[10px]","text-neutral-500","font-mono"],[1,"flex","items-center","gap-1.5","shrink-0"],["type","button",1,"flex","items-center","justify-center","w-7","h-7","rounded-full","bg-neutral-900","border-2","transition-all","disabled:opacity-40","disabled:cursor-not-allowed",3,"click","disabled","title"],["fill","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-3.5","h-3.5"],["type","button","aria-label","Trigger now",1,"flex","items-center","justify-center","w-7","h-7","rounded-full","bg-neutral-900","border-2","border-neonAmber/60","text-neonAmber","hover:border-neonAmber","hover:bg-neonAmber/10","hover:shadow-neon-glow-orange","disabled:opacity-40","disabled:cursor-not-allowed","transition-all",3,"click","disabled","title"],["d","M8 5v14l11-7z"],[1,"inline-flex","items-center","gap-1","self-start","text-[9px]","uppercase","tracking-wider","px-1.5","py-0.5","rounded","border","border-neonCyan/50","bg-neonCyan/10","text-neonCyan","font-mono"],["title","K\xF6vetkez\u0151 \xFCtemezett fut\xE1s id\u0151pontja",1,"text-[10px]","text-neutral-500","flex","items-center","gap-1"],[1,"text-emerald-400","font-medium"],[1,"text-neutral-300"],["d","M5 5v14h2V5H5zm5 0v14l11-7z"],["x","6","y","5","width","4","height","14"],["x","14","y","5","width","4","height","14"],[1,"flex","items-center","gap-1","flex-wrap"],[1,"text-[10px]","text-neutral-500"],[1,"inline-flex","items-center","px-1.5","py-0.5","text-[10px]","rounded",3,"ngClass","title"]],template:function(n,i){n&1&&(a(0,"div",0)(1,"button",1),f("click",function(){return i.handleToggle()}),E(),a(2,"svg",2),x(3,"path",3),o(),_(4,Ge,2,1,"span",4),o(),_(5,et,8,1,"div",5),o()),n&2&&(r(),M("-translate-x-2",!i.isOpen_$())("translate-x-2",i.isOpen_$()),p("disabled",!i.hasSchedule_$())("title",i.hasSchedule_$()?i.isOpen_$()?"Schedule panel bez\xE1r\xE1sa":"Schedule megjelen\xEDt\xE9se ("+i.sessionJobs_$().length+" job)":"Nincs schedule ehhez a sessionh\xF6z")("ngClass",i.hasSchedule_$()?O(10,Ke):O(11,Ne)),R("aria-expanded",i.isOpen_$()),r(3),u(i.hasSchedule_$()&&i.sessionJobs_$().length>1?4:-1),r(),u(i.isOpen_$()?5:-1))},dependencies:[K,J,Ce],encapsulation:2})}return t})();function tt(t,d){if(t&1){let e=k();a(0,"button",10),f("click",function(){let i=C(e).$implicit,l=c(2);return v(l.handleAction(i))}),s(1),o()}if(t&2){let e=d.$implicit,n=c(2);p("disabled",n.pendingAction_$()===e),r(),S(" ",n.pendingAction_$()===e?"Sending\u2026":e," ")}}function nt(t,d){if(t&1){let e=k();a(0,"div",4)(1,"div",5)(2,"span",6),s(3," QuickCast "),o(),a(4,"button",7),f("click",function(){C(e);let i=c();return v(i.handleToggle())}),s(5," \xD7 "),o()(),a(6,"div",8),F(7,tt,2,2,"button",9,ee),o()()}if(t&2){let e=c();r(7),V(e.actions())}}var vn=(()=>{class t{actions=A(["Go","Continue","OK","Proceed","implement","Review Very Very Carefully","Ensure Documentations","tervezd meg nagyon alaposan \xE9s fejleszd le","Hogy \xE1llunk most?","itt vagy?"]);actionSelected=q();overlayCoordinator_CS=y(G);OVERLAY_ID=P.quickcast;isOpen_$=this.overlayCoordinator_CS.isOpen(this.OVERLAY_ID);pendingAction_$=$(null);handleToggle(){this.overlayCoordinator_CS.toggle(this.OVERLAY_ID)}handleAction(e){this.pendingAction_$()===null&&(this.pendingAction_$.set(e),this.actionSelected.emit(e),setTimeout(()=>{this.pendingAction_$()===e&&this.pendingAction_$.set(null)},800))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=b({type:t,selectors:[["app-s-session-quickcast-overlay"]],hostAttrs:[1,"absolute","bottom-16","left-0","z-30","pointer-events-none"],inputs:{actions:[1,"actions"]},outputs:{actionSelected:"actionSelected"},standalone:!0,features:[w],decls:5,vars:7,consts:[[1,"flex","items-end","gap-2","pointer-events-auto"],["type","button","aria-label","QuickCast",1,"flex","items-center","justify-center","h-8","w-7","bg-neutral-900","border-2","border-l-0","border-neonCyan/60","rounded-r-lg","text-neonCyan","shadow-neon-glow-cyan","hover:border-neonCyan","hover:bg-neonCyan/10","transition-all","duration-200","ease-out",3,"click","title"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-4","h-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13 10V3L4 14h7v7l9-11h-7z"],[1,"bg-neutral-900","border-2","border-neonCyan/60","rounded-md","p-1.5","flex","flex-col","gap-1","min-w-[8rem]","max-w-[13rem]","shadow-neon-glow-cyan"],[1,"flex","items-center","justify-between","gap-1"],[1,"text-[10px]","uppercase","tracking-wider","text-neonCyan","font-mono","leading-none"],["type","button","title","Bez\xE1r\xE1s","aria-label","QuickCast panel bez\xE1r\xE1sa",1,"text-neutral-400","hover:text-neonCyan","leading-none","text-xs","px-1","transition-colors",3,"click"],[1,"flex","flex-col","gap-1"],["type","button",1,"px-1.5","py-0.5","rounded","border-2","border-neonCyan/60","text-neonCyan","text-[11px]","font-medium","hover:border-neonCyan","hover:bg-neonCyan/10","hover:shadow-neon-glow-cyan","disabled:opacity-40","disabled:cursor-not-allowed","transition-all","leading-tight",3,"disabled"],["type","button",1,"px-1.5","py-0.5","rounded","border-2","border-neonCyan/60","text-neonCyan","text-[11px]","font-medium","hover:border-neonCyan","hover:bg-neonCyan/10","hover:shadow-neon-glow-cyan","disabled:opacity-40","disabled:cursor-not-allowed","transition-all","leading-tight",3,"click","disabled"]],template:function(n,i){n&1&&(a(0,"div",0)(1,"button",1),f("click",function(){return i.handleToggle()}),E(),a(2,"svg",2),x(3,"path",3),o()(),_(4,nt,9,0,"div",4),o()),n&2&&(r(),M("-translate-x-2",!i.isOpen_$())("translate-x-2",i.isOpen_$()),p("title",i.isOpen_$()?"QuickCast bez\xE1r\xE1sa":"QuickCast megnyit\xE1sa"),R("aria-expanded",i.isOpen_$()),r(3),u(i.isOpen_$()?4:-1))},encapsulation:2})}return t})();var it=(t,d)=>d.provider+":::"+d.modelName,ot=()=>["border-neonPurple/60","text-neonPurple","shadow-[0_0_10px_rgba(168,85,247,0.4)]","hover:border-neonPurple","hover:bg-neonPurple/10"],at=()=>["border-neutral-700","text-neutral-500","hover:border-neutral-500","hover:bg-neutral-800/50"],rt=()=>["border-neonPurple/60","shadow-[0_0_10px_rgba(168,85,247,0.4)]"],st=()=>["border-neutral-700"],lt=()=>["text-neonPurple"],dt=()=>["text-neutral-400"];function ct(t,d){if(t&1&&(a(0,"div",10)(1,"span",11),s(2,"provider"),o(),a(3,"span",14),s(4),o()()),t&2){let e=c();r(3),p("title",e.providerName),r(),S(" ",e.providerName," ")}}function pt(t,d){if(t&1&&(a(0,"div",10)(1,"span",11),s(2,"model"),o(),a(3,"span",14),s(4),o()()),t&2){let e=c();r(3),p("title",e.model),r(),I(e.model)}}function ut(t,d){if(t&1&&(a(0,"div",10)(1,"span",11),s(2,"workflow"),o(),a(3,"span",14),s(4),o()()),t&2){let e=c();r(3),p("title",e.workflowId),r(),S(" ",e.workflowId," ")}}function mt(t,d){if(t&1){let e=k();a(0,"div",9)(1,"div",10)(2,"span",11),s(3,"status"),o(),a(4,"span",12),s(5),o()(),_(6,ct,5,2,"div",10)(7,pt,5,2,"div",10)(8,ut,5,2,"div",10),o(),a(9,"button",13),f("click",function(){C(e);let i=c(2);return v(i.handleStop())}),s(10),o()}if(t&2){let e=d,n=c(2);r(5),I(e.status),r(),u(e.providerName?6:-1),r(),u(e.model?7:-1),r(),u(e.workflowId?8:-1),r(),p("disabled",n.isBusy_$()),r(),S(" ",n.isBusy_$()?"Stopping\u2026":"Stop"," ")}}function _t(t,d){if(t&1&&(a(0,"option",18),s(1),o()),t&2){let e=d.$implicit;p("value",e.provider+":::"+e.modelName),r(),te(" ",e.provider," / ",e.modelName," ")}}function ft(t,d){if(t&1){let e=k();a(0,"span",15),s(1," Nincs assigned coordinator \u2014 v\xE1lassz modellt \xE9s kattints az Assign-ra. "),o(),a(2,"select",16),f("ngModelChange",function(i){C(e);let l=c(2);return v(l.selectedModelKey_$.set(i))}),a(3,"option",17),s(4,"\u2014 v\xE1lassz modellt \u2014"),o(),F(5,_t,2,3,"option",18,it),o(),a(7,"button",13),f("click",function(){C(e);let i=c(2);return v(i.handleAssign())}),s(8),o()}if(t&2){let e=c(2);r(2),p("ngModel",e.selectedModelKey_$()),r(3),V(e.modelOptions_$()),r(2),p("disabled",!e.selectedModelKey_$()||e.isBusy_$()),r(),S(" ",e.isBusy_$()?"Assigning\u2026":"Assign"," ")}}function xt(t,d){if(t&1){let e=k();a(0,"div",5)(1,"div",6)(2,"span",7),s(3," Coordinator "),o(),a(4,"button",8),f("click",function(){C(e);let i=c();return v(i.handleToggle())}),s(5," \xD7 "),o()(),_(6,mt,11,6)(7,ft,9,3),o()}if(t&2){let e,n=c();p("ngClass",n.isAssigned_$()?O(3,rt):O(4,st)),r(2),p("ngClass",n.isAssigned_$()?O(5,lt):O(6,dt)),r(4),u((e=n.assignedCoordinator_$())?6:7,e)}}var Dn=(()=>{class t{sessionId=A.required();coordinator_DS=y(he);registrySsot_CS=y(xe);overlayCoordinator_CS=y(G);OVERLAY_ID=P.coordinator;isOpen_$=this.overlayCoordinator_CS.isOpen(this.OVERLAY_ID);isBusy_$=$(!1);selectedModelKey_$=$("");modelOptions_$=h(()=>this.registrySsot_CS.enabledLlmModels_$());assignedCoordinator_$=h(()=>{let e=(this.sessionId()??"").trim();return!e||!this.coordinator_DS.coordinatedSessionIds_$().has(e)?null:this.coordinator_DS.globalCoordinatorsList_$().find(l=>{let m=(l.sessionId??"").trim(),T=(l.status??"").trim().toLowerCase();return m===e&&T!=="stopped"&&T!=="completed"})??null});isAssigned_$=h(()=>this.assignedCoordinator_$()!==null);ngOnInit(){this.coordinator_DS.globalCoordinatorsList_$().length===0&&this.coordinator_DS.loadAllCoordinatorsForManagementPage(),this.registrySsot_CS.ensureLoaded("llm")}handleToggle(){this.overlayCoordinator_CS.toggle(this.OVERLAY_ID)}handleAssign(){return H(this,null,function*(){let e=(this.sessionId()??"").trim(),n=this.selectedModelKey_$().trim();if(!e||!n||this.isBusy_$())return;let i=n.split(":::");if(i.length!==2)return;let l=i[0],m=i[1];if(!(!l||!m)){this.isBusy_$.set(!0);try{yield this.coordinator_DS.startCoordinator({sessionId:e,providerName:l,model:m}),this.coordinator_DS.loadAllCoordinatorsForManagementPage()}finally{this.isBusy_$.set(!1)}}})}handleStop(){return H(this,null,function*(){let e=(this.sessionId()??"").trim();if(!(!e||this.isBusy_$())){this.isBusy_$.set(!0);try{yield this.coordinator_DS.stopCoordinator(e),this.coordinator_DS.loadAllCoordinatorsForManagementPage()}finally{this.isBusy_$.set(!1)}}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=b({type:t,selectors:[["app-s-session-coordinator-overlay"]],hostAttrs:[1,"absolute","bottom-28","left-0","z-30","pointer-events-none"],inputs:{sessionId:[1,"sessionId"]},standalone:!0,features:[w],decls:6,vars:10,consts:[[1,"flex","items-end","gap-2","pointer-events-auto"],["type","button","aria-label","Coordinator",1,"relative","flex","items-center","justify-center","h-8","w-7","bg-neutral-900","border-2","border-l-0","rounded-r-lg","transition-all","duration-200","ease-out",3,"click","title","ngClass"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true",1,"w-4","h-4"],["cx","12","cy","12","r","10"],["points","16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"],[1,"bg-neutral-900","border-2","rounded-lg","p-3","flex","flex-col","gap-2","min-w-[16rem]","max-w-xs",3,"ngClass"],[1,"flex","items-center","justify-between","gap-2"],[1,"text-[10px]","uppercase","tracking-wider","font-mono",3,"ngClass"],["type","button","title","Bez\xE1r\xE1s","aria-label","Coordinator panel bez\xE1r\xE1sa",1,"text-neutral-400","hover:text-neonPurple","leading-none","px-1","transition-colors",3,"click"],[1,"flex","flex-col","gap-1","text-xs"],[1,"flex","justify-between","gap-2"],[1,"text-neutral-500","font-mono","text-[10px]"],[1,"text-neutral-100"],["type","button",1,"self-end","px-2","py-1","rounded","border-2","border-neonPurple/60","text-neonPurple","text-xs","font-medium","hover:bg-neonPurple/10","hover:shadow-[0_0_10px_rgba(168,85,247,0.4)]","disabled:opacity-40","disabled:cursor-not-allowed","transition-all",3,"click","disabled"],[1,"text-neutral-100","truncate",3,"title"],[1,"text-[11px]","text-neutral-400"],[1,"bg-neutral-900","border","border-neutral-700","rounded","px-2","py-1","text-xs","text-neutral-100","focus:outline-none","focus:border-neonPurple/60",3,"ngModelChange","ngModel"],["value","","disabled",""],[3,"value"]],template:function(n,i){if(n&1&&(a(0,"div",0)(1,"button",1),f("click",function(){return i.handleToggle()}),E(),a(2,"svg",2),x(3,"circle",3)(4,"polygon",4),o()(),_(5,xt,8,7,"div",5),o()),n&2){let l;r(),M("-translate-x-2",!i.isOpen_$())("translate-x-2",i.isOpen_$()),p("title",i.isAssigned_$()?i.isOpen_$()?"Coordinator panel bez\xE1r\xE1sa":"Coordinator: "+((l=(l=i.assignedCoordinator_$())==null?null:l.status)!==null&&l!==void 0?l:""):i.isOpen_$()?"Coordinator panel bez\xE1r\xE1sa":"Nincs coordinator \u2014 assign-ol\xE1shoz kattints")("ngClass",i.isAssigned_$()?O(8,ot):O(9,at)),R("aria-expanded",i.isOpen_$()),r(4),u(i.isOpen_$()?5:-1)}},dependencies:[K,de,se,le,re,oe,ae],encapsulation:2})}return t})();var St=()=>["border-neonCyan/60","text-neonCyan","shadow-neon-glow-cyan","hover:border-neonCyan","hover:bg-neonCyan/10"],gt=()=>["border-neutral-700","text-neutral-500","hover:border-neutral-500","hover:text-neutral-300"];function ht(t,d){t&1&&(E(),a(0,"svg",1),x(1,"polygon",2)(2,"path",3)(3,"path",4),o())}function Ct(t,d){t&1&&(E(),a(0,"svg",1),x(1,"polygon",2)(2,"line",5)(3,"line",6),o())}var Ie=(()=>{class t{sessionId=A.required();isEnabled_$=$(!1);ngOnInit(){this.refreshEnabledFromStorage()}refreshEnabledFromStorage(){this.isEnabled_$.set(U.isEnabled(this.sessionId()))}handleToggle(){U.toggle(this.sessionId()),this.refreshEnabledFromStorage()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=b({type:t,selectors:[["app-s-auto-read-tts-toggle"]],inputs:{sessionId:[1,"sessionId"]},standalone:!0,features:[w],decls:3,vars:6,consts:[["type","button",1,"relative","flex","items-center","justify-center","h-8","w-8","bg-neutral-900","border-2","rounded-md","transition-all","duration-200","ease-out",3,"click","title","ngClass"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true",1,"w-4","h-4"],["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"],["d","M19.07 4.93a10 10 0 0 1 0 14.14"],["x1","23","y1","9","x2","17","y2","15"],["x1","17","y1","9","x2","23","y2","15"]],template:function(n,i){n&1&&(a(0,"button",0),f("click",function(){return i.handleToggle()}),_(1,ht,4,0,":svg:svg",1)(2,Ct,4,0,":svg:svg",1),o()),n&2&&(p("title",i.isEnabled_$()?"Auto-read assistant: ON (\xFAj asszisztens \xFCzenetek automatikusan felolvas\xE1sra ker\xFClnek). Klikk: kikapcsol\xE1s.":"Auto-read assistant: OFF. Klikk: bekapcsol\xE1s (csak az ezut\xE1n \xE9rkez\u0151 \xFCzenetek olvas\xF3dnak fel).")("ngClass",i.isEnabled_$()?O(4,St):O(5,gt)),R("aria-pressed",i.isEnabled_$()),r(),u(i.isEnabled_$()?1:2))},dependencies:[K],encapsulation:2})}return t})();function vt(t,d){if(t&1){let e=k();a(0,"button",26),f("click",function(){C(e);let i=c(2);return v(i.handleRestartRunnerClick())}),a(1,"span",13),E(),a(2,"svg",14),x(3,"path",27)(4,"path",28)(5,"path",29)(6,"path",30),o(),s(7," Restart Terminal Runner "),o()()}}function yt(t,d){if(t&1){let e=k();a(0,"div",5)(1,"div",6)(2,"span",7),s(3," Quick Settings "),o(),a(4,"button",8),f("click",function(){C(e);let i=c();return v(i.handleToggle())}),s(5," \xD7 "),o()(),a(6,"p",9),s(7," Plan-state v1 \u2014 minden funkci\xF3 "),a(8,"span",10),s(9,"disabled"),o(),s(10,"; bek\xF6t\xE9s Plans Feature Set keret\xE9ben k\xF6vetkezik (`2026-05-06-session-quick-settings-feature-set-plan.md`). "),o(),_(11,vt,8,0,"button",11),a(12,"div",12)(13,"span",13),E(),a(14,"svg",14),x(15,"path",15)(16,"path",16)(17,"path",17),o(),s(18," Auto-Read Assistant TTS "),o(),Q(),x(19,"app-s-auto-read-tts-toggle",18),o(),a(20,"button",19)(21,"span",13),E(),a(22,"svg",20),x(23,"rect",21)(24,"path",22)(25,"path",23)(26,"path",24),o(),s(27," Always-On Intelligent Voice Input "),o(),Q(),a(28,"span",25),s(29,"soon"),o()()()}if(t&2){let e=c();r(11),u(e.showRestartRunner()?11:-1),r(8),p("sessionId",e.sessionId())}}var Hn=(()=>{class t{sessionId=A.required();showRestartRunner=A(!1);restartRunnerClicked=q();overlayCoordinator_CS=y(G);OVERLAY_ID=P.quickSettings;isOpen_$=this.overlayCoordinator_CS.isOpen(this.OVERLAY_ID);handleToggle(){this.overlayCoordinator_CS.toggle(this.OVERLAY_ID)}handleRestartRunnerClick(){this.restartRunnerClicked.emit(),this.overlayCoordinator_CS.setOpen(null)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=b({type:t,selectors:[["app-s-session-quick-settings-overlay"]],hostAttrs:[1,"absolute","bottom-40","left-0","z-30","pointer-events-none"],inputs:{sessionId:[1,"sessionId"],showRestartRunner:[1,"showRestartRunner"]},outputs:{restartRunnerClicked:"restartRunnerClicked"},standalone:!0,features:[w],decls:6,vars:7,consts:[[1,"flex","items-end","gap-2","pointer-events-auto"],["type","button","aria-label","Session Quick Settings",1,"relative","flex","items-center","justify-center","h-8","w-7","bg-neutral-900","border-2","border-l-0","border-neonGreen/60","rounded-r-lg","text-neonGreen","shadow-[0_0_10px_rgba(0,255,136,0.35)]","hover:border-neonGreen","hover:bg-neonGreen/10","transition-all","duration-200","ease-out",3,"click","title"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true",1,"w-4","h-4"],["cx","12","cy","12","r","3"],["d",`M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0
|
|
3
3
|
l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2
|
|
4
4
|
2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06
|
|
@@ -15,4 +15,4 @@ auto-send egyetlen \xFCzenetk\xE9nt, opcion\xE1lis chime hangjelz\xE9s a trigger
|
|
|
15
15
|
Spec: __specifications/poc/voice-input-continuous-and-mobile.md (REQ-VIM-CONT-002,
|
|
16
16
|
REQ-VIM-SEND-001). Hi\xE1nyz\xF3 r\xE9szek: per-segment \u2192 cycle-akkumul\xE1ci\xF3, silence-detect
|
|
17
17
|
\u2192 auto-send, cseng\u0151 hang. Nagyobb implement\xE1ci\xF3s csomag \u2014 Plan dokumentum r\xE9szletez.`,1,"flex","items-center","justify-between","gap-2","px-2","py-1.5","rounded","border-2","border-neutral-700","text-neutral-500","text-xs","bg-neutral-900/50","cursor-not-allowed","transition-colors"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true",1,"w-4","h-4","shrink-0"],["x","9","y","3","width","6","height","12","rx","3"],["d","M19 11a7 7 0 0 1-14 0"],["d","M12 18v3"],["d","M8 21h8"],[1,"text-[9px]","uppercase","tracking-wider","text-neutral-600","font-mono"],["type","button","title","Aktu\xE1lis CC session terminal runner kill + respawn. \xDAj termin\xE1l ablak ny\xEDlik a friss npm-build-tel; runner version-mismatch vagy no-ACK-fire hib\xE1k gyors fixje a session-b\u0151l, dashboard-ra navig\xE1l\xE1s n\xE9lk\xFCl.",1,"flex","items-center","justify-between","gap-2","px-2","py-1.5","rounded","border-2","border-neonGreen/40","text-neutral-300","text-xs","bg-neutral-900/50","hover:bg-neonGreen/10","hover:border-neonGreen","cursor-pointer","transition-colors",3,"click"],["d","M3 12a9 9 0 0 1 15.5-6.3L21 8"],["d","M21 3v5h-5"],["d","M21 12a9 9 0 0 1-15.5 6.3L3 16"],["d","M3 21v-5h5"]],template:function(n,i){n&1&&(a(0,"div",0)(1,"button",1),f("click",function(){return i.handleToggle()}),E(),a(2,"svg",2),x(3,"circle",3)(4,"path",4),o()(),_(5,yt,30,2,"div",5),o()),n&2&&(r(),M("-translate-x-2",!i.isOpen_$())("translate-x-2",i.isOpen_$()),p("title",i.isOpen_$()?"Session Quick Settings panel bez\xE1r\xE1sa":"Session Quick Settings \u2014 hamarosan: Restart Runner, Auto-Read TTS, Intelligent Voice Input. Plan dokumentum k\xE9szen, implement\xE1ci\xF3 folyamatban."),R("aria-expanded",i.isOpen_$()),r(4),u(i.isOpen_$()?5:-1))},dependencies:[Ie],encapsulation:2})}return t})();export{W as a,en as b,_n as c,vn as d,Dn as e,Hn as f};
|
|
18
|
-
//# sourceMappingURL=chunk-
|
|
18
|
+
//# sourceMappingURL=chunk-FYMVJNXZ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{I as y,p as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{I as y,p as g}from"./chunk-WR6NSOQ2.js";import{C as c,aa as i,h as m,k as n,p as a,xb as h,y as o}from"./chunk-TBMJSIBB.js";var l=m(g());var p=(()=>{class r{baseUrl=`${y.api.baseUrl}/instance-registry`;http=c(h);getList(){return a(this.http.get(`${this.baseUrl}/list`))}getCurrent(){return a(this.http.get(`${this.baseUrl}/current`))}getListUnified(){return a(this.http.get(`${this.baseUrl}/list-unified`))}getPresence(){return a(this.http.get(`${this.baseUrl}/presence`))}updateDisplayName(t){return a(this.http.patch(`${this.baseUrl}/${encodeURIComponent(t.instanceKey)}/display-name`,{displayName:t.displayName}))}static \u0275fac=function(e){return new(e||r)};static \u0275prov=o({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var A=(()=>{class r{list_$=i([]);listLoading_$=i(!1);listError_$=i(null);current_$=i(null);currentLoading_$=i(!1);currentError_$=i(null);unifiedList_$=i([]);unifiedListLoading_$=i(!1);unifiedListError_$=i(null);instanceRegistry_AS=c(p);loadList(){return n(this,null,function*(){this.listLoading_$.set(!0),this.listError_$.set(null);try{let e=(yield this.instanceRegistry_AS.getList()).list??[];return this.list_$.set(e),e}catch(t){return l.DyFM_Error.logSimple("CCAP_InstanceRegistryDS | loadList failed",t),this.listError_$.set(t),[]}finally{this.listLoading_$.set(!1)}})}loadCurrent(){return n(this,null,function*(){this.currentLoading_$.set(!0),this.currentError_$.set(null);try{let e=(yield this.instanceRegistry_AS.getCurrent()).current??null;return this.current_$.set(e),e}catch(t){return l.DyFM_Error.logSimple("CCAP_InstanceRegistryDS | loadCurrent failed",t),this.currentError_$.set(t),this.current_$.set(null),null}finally{this.currentLoading_$.set(!1)}})}loadAll(){return n(this,null,function*(){yield Promise.all([this.loadList(),this.loadCurrent()])})}loadUnifiedList(){return n(this,null,function*(){this.unifiedListLoading_$.set(!0),this.unifiedListError_$.set(null);try{let e=(yield this.instanceRegistry_AS.getListUnified()).list??[];return this.unifiedList_$.set(e),e}catch(t){return l.DyFM_Error.logSimple("CCAP_InstanceRegistryDS | loadUnifiedList failed",t),this.unifiedListError_$.set(t),[]}finally{this.unifiedListLoading_$.set(!1)}})}renameInstance(t){return n(this,null,function*(){try{let e=yield this.instanceRegistry_AS.updateDisplayName(t),u=this.list_$().map(f=>f.instanceKey===t.instanceKey?e:f);this.list_$.set(u);let d=this.current_$();return d!==null&&d.instanceKey===t.instanceKey&&this.current_$.set(e),e}catch(e){return l.DyFM_Error.logSimple("CCAP_InstanceRegistryDS | renameInstance failed",e),null}})}resolveDisplayName(t){if(typeof t!="string"||t==="")return"\u2014";let e=this.list_$().find(u=>u.instanceKey===t);if(e!==void 0&&typeof e.displayName=="string"&&e.displayName!=="")return e.displayName;let s=this.current_$();return s!==null&&s.instanceKey===t&&typeof s.displayName=="string"&&s.displayName!==""?s.displayName:t.slice(0,8)}isCurrentRow(t){let e=this.current_$()?.instanceKey?.trim(),s=t.instanceKey?.trim();return!e||!s?!1:e===s}formatMetadataDate(t){if(t==null)return"\u2014";if(t instanceof Date)return Number.isNaN(t.getTime())?"\u2014":t.toISOString();let e=new Date(t);return Number.isNaN(e.getTime())?String(t):e.toISOString()}static \u0275fac=function(e){return new(e||r)};static \u0275prov=o({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{p as a,A as b};
|
|
2
|
+
//# sourceMappingURL=chunk-GDAWHJEQ.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{e as ct}from"./chunk-6UQHXR3E.js";import{j as rt}from"./chunk-MS2KQ2G4.js";import{I as st}from"./chunk-WR6NSOQ2.js";import{$a as K,C as w,D as Z,Fa as u,Ga as G,Ha as S,J as V,K as L,L as E,M as q,Pa as B,Qa as W,R as J,Ra as U,Ta as tt,Ua as et,Z as o,aa as C,bb as N,da as y,fa as v,ga as O,ha as R,hb as nt,ia as A,ja as T,jb as j,k as p,la as g,na as Q,oa as k,p as f,pa as D,pb as it,qa as s,ra as a,sa as $,ua as P,ub as ot,va as F,wa as d,xb as at,y as H}from"./chunk-TBMJSIBB.js";var ut=(()=>{class n{baseUrl=`${st.api.baseUrl}/cc-account`;http=w(at);listAccounts(){return f(this.http.get(`${this.baseUrl}/list`))}listAccountsByIdentity(){return f(this.http.get(`${this.baseUrl}/list-by-identity`))}backfillIdentity(){return f(this.http.post(`${this.baseUrl}/backfill-identity`,{}))}auditIdentityDuplicates(){return f(this.http.get(`${this.baseUrl}/identity-audit`))}refreshLocalAccounts(){return f(this.http.post(`${this.baseUrl}/refresh`,{}))}getInstanceMapping(){return f(this.http.get(`${this.baseUrl}/instance-mapping`))}getAccount(t){return f(this.http.get(`${this.baseUrl}/${t}`))}getAccountUsage(t){return f(this.http.get(`${this.baseUrl}/${t}/usage`))}getAccountUsageHistory(t){let e=[];t.windowType!=null&&t.windowType!==""&&e.push(`windowType=${encodeURIComponent(t.windowType)}`),t.fromMs!=null&&e.push(`fromMs=${t.fromMs}`),t.toMs!=null&&e.push(`toMs=${t.toMs}`);let i=e.length>0?`?${e.join("&")}`:"";return f(this.http.get(`${this.baseUrl}/${t.accountKey}/usage-history${i}`))}refreshAccountUsage(t){return f(this.http.post(`${this.baseUrl}/${t}/refresh-usage`,{}))}renameAccount(t){let e={};return t.displayName!==void 0&&(e.displayName=t.displayName),t.email!==void 0&&(e.email=t.email),f(this.http.patch(`${this.baseUrl}/${t.accountKey}`,e))}static \u0275fac=function(e){return new(e||n)};static \u0275prov=H({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var _t="cc:account-usage-update",ht="cc:account-list-update",dt=(()=>{class n{account_AS=w(ut);socket_CS=w(ct);globalError_CS=w(rt);ngZone=w(J);socketSubscription=null;accounts_$=C([]);accountUsageMap_$=C(new Map);instanceMapping_$=C(null);usageHistoryMap_$=C(new Map);identityGroups_$=C([]);isLoading_$=C(!1);loadError_$=C(null);loadDashboardBootstrap(){return p(this,null,function*(){this.isLoading_$.set(!0),this.loadError_$.set(null);let t=!1;try{let[e,i,r]=yield Promise.all([this.account_AS.listAccounts(),this.account_AS.getInstanceMapping(),this.account_AS.listAccountsByIdentity()]);this.accounts_$.set(e.items),this.instanceMapping_$.set(i),this.identityGroups_$.set(r.groups);let _=new Map(this.accountUsageMap_$());for(let x of r.groups)_.set(x.primary.accountKey,x.mergedUsage);this.accountUsageMap_$.set(_)}catch(e){t=!0,this.loadError_$.set(this.errorMessageOf(e)),this.globalError_CS.showError(e,"cc-account-dashboard-bootstrap")}finally{this.isLoading_$.set(!1)}})}loadIdentityGroups(){return p(this,null,function*(){try{let t=yield this.account_AS.listAccountsByIdentity();this.identityGroups_$.set(t.groups);let e=new Map(this.accountUsageMap_$());for(let i of t.groups)e.set(i.primary.accountKey,i.mergedUsage);this.accountUsageMap_$.set(e)}catch(t){this.loadError_$.set(this.errorMessageOf(t)),this.globalError_CS.showError(t,"cc-account-load-identity-groups")}})}loadAccounts(){return p(this,null,function*(){try{let t=yield this.account_AS.listAccounts();this.accounts_$.set(t.items)}catch(t){this.loadError_$.set(this.errorMessageOf(t)),this.globalError_CS.showError(t,"cc-account-load-accounts")}})}loadAccountUsage(t){return p(this,null,function*(){try{let e=yield this.account_AS.getAccountUsage(t),i=new Map(this.accountUsageMap_$());i.set(t,e.items),this.accountUsageMap_$.set(i)}catch(e){this.loadError_$.set(this.errorMessageOf(e)),this.globalError_CS.showError(e,`cc-account-load-usage[${t}]`)}})}loadAccountUsageHistory(t){return p(this,null,function*(){try{let e=yield this.account_AS.getAccountUsageHistory(t),i=new Map(this.usageHistoryMap_$());i.set(t.accountKey,e.items),this.usageHistoryMap_$.set(i)}catch(e){this.loadError_$.set(this.errorMessageOf(e)),this.globalError_CS.showError(e,`cc-account-load-history[${t.accountKey}]`)}})}loadInstanceMapping(){return p(this,null,function*(){try{let t=yield this.account_AS.getInstanceMapping();this.instanceMapping_$.set(t)}catch(t){this.loadError_$.set(this.errorMessageOf(t)),this.globalError_CS.showError(t,"cc-account-load-instance-mapping")}})}refreshAccounts(){return p(this,null,function*(){this.isLoading_$.set(!0),this.loadError_$.set(null);try{let t=yield this.account_AS.refreshLocalAccounts();return yield this.loadAccounts(),yield this.loadIdentityGroups(),t}catch(t){return this.loadError_$.set(this.errorMessageOf(t)),this.globalError_CS.showError(t,"cc-account-refresh-accounts"),{refreshedKeys:[],scannedPaths:0}}finally{this.isLoading_$.set(!1)}})}refreshAccountUsage(t){return p(this,null,function*(){try{let e=yield this.account_AS.refreshAccountUsage(t);return e.status!=="ok"&&this.surfacePullError({source:"cc-account-pull",accountKey:t,status:e.status,httpStatus:e.httpStatus,bodyHead:e.bodyHead,attemptedUrl:e.attemptedUrl,networkMessage:e.networkMessage}),yield this.loadAccountUsage(t),yield this.loadAccounts(),yield this.loadIdentityGroups(),e}catch(e){return this.loadError_$.set(this.errorMessageOf(e)),this.globalError_CS.showError(e,`cc-account-pull[${t}]`),{status:"error",windowsUpserted:0,email:null}}})}surfacePullError(t){let e=[];e.push(`CC Account pull failed (status=${t.status})`),e.push(`accountKey: ${t.accountKey}`),t.httpStatus!=null&&e.push(`httpStatus: ${t.httpStatus}`),t.attemptedUrl!=null&&t.attemptedUrl!==""&&e.push(`attemptedUrl: ${t.attemptedUrl}`),t.networkMessage!=null&&t.networkMessage!==""&&e.push(`networkMessage: ${t.networkMessage}`),t.bodyHead!=null&&t.bodyHead!==""&&e.push(`responseBodyHead: ${t.bodyHead}`);let i=e.join(`
|
|
2
|
+
`),r=new Error(i);r.errorDetails={message:i,errorCode:`CCAP-CC-ACCOUNT-PULL-${t.status.toUpperCase()}`,additionalContent:t},this.loadError_$.set(i),this.globalError_CS.showError(r,t.source)}renameAccount(t){return p(this,null,function*(){try{let e=yield this.account_AS.renameAccount(t),i=this.accounts_$().map(r=>r.accountKey===t.accountKey?e:r);this.accounts_$.set(i),yield this.loadIdentityGroups()}catch(e){this.loadError_$.set(this.errorMessageOf(e)),this.globalError_CS.showError(e,`cc-account-rename[${t.accountKey}]`)}})}startLiveUpdates(){this.socketSubscription==null&&(this.socketSubscription=this.socket_CS.event$.subscribe(t=>{this.ngZone.run(()=>{t.event===_t?this.handleAccountUsageUpdate(t.payload):t.event===ht&&this.handleAccountListUpdate(t.payload)})}))}stopLiveUpdates(){this.socketSubscription!=null&&(this.socketSubscription.unsubscribe(),this.socketSubscription=null)}ngOnDestroy(){this.stopLiveUpdates()}handleAccountUsageUpdate(t){let e=t.accountKey,i=t.windowType;if(typeof e!="string"||e===""||typeof i!="string")return;let r={accountKey:e,windowType:i,utilization:typeof t.utilization=="number"?t.utilization:void 0,resetsAtMs:typeof t.resetsAtMs=="number"?t.resetsAtMs:void 0,lastObservedStatus:typeof t.lastObservedStatus=="string"?t.lastObservedStatus:void 0,observedAt:typeof t.observedAt=="string"?t.observedAt:void 0,lastObservedByCcapId:typeof t.lastObservedByCcapId=="string"?t.lastObservedByCcapId:void 0,lastObservedBySessionId:typeof t.lastObservedBySessionId=="string"?t.lastObservedBySessionId:void 0},_=new Map(this.accountUsageMap_$()),l=(_.get(e)??[]).filter(m=>m.windowType!==i);l.push(r),_.set(e,l),this.accountUsageMap_$.set(_)}handleAccountListUpdate(t){this.loadAccounts(),this.loadIdentityGroups()}errorMessageOf(t){if(t instanceof Error)return t.message;if(typeof t=="object"&&t!==null){let e=t;if(typeof e.message=="string")return e.message}return String(t)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=H({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var M=(()=>{class n{static CHART_WIDTH=100;static CHART_HEIGHT=40;static COLOR_MAP={five_hour:"#10b981",seven_day:"#06b6d4",seven_day_opus:"#a855f7",seven_day_sonnet:"#f59e0b",extra_usage:"#f43f5e"};static WINDOW_LABEL_MAP={five_hour:"5h",seven_day:"Weekly",seven_day_opus:"Opus",seven_day_sonnet:"Sonnet",extra_usage:"Extra"};static WINDOW_ORDER=["five_hour","seven_day","seven_day_opus","seven_day_sonnet","extra_usage"];static buildChart(t){let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY,r=0;for(let l of t){if(typeof l.observedAt!="string"||l.observedAt===""||typeof l.utilization!="number"||!isFinite(l.utilization))continue;let m=Date.parse(l.observedAt);isFinite(m)&&(m<e&&(e=m),m>i&&(i=m),r++)}if(r===0)return{lines:n.WINDOW_ORDER.map(l=>({windowType:l,label:n.WINDOW_LABEL_MAP[l]??l,colorHex:n.COLOR_MAP[l]??"#9ca3af",pathPoints:"",hasData:!1,pointCount:0,lastX:0,lastY:0})),hasAnyData:!1,minTimeMs:0,maxTimeMs:0};i-e<1&&(i=e+36e5);let _=i-e,x=n.WINDOW_ORDER.map(l=>{let m=[];for(let h of t){if(h.windowType!==l||typeof h.observedAt!="string"||h.observedAt===""||typeof h.utilization!="number"||!isFinite(h.utilization))continue;let b=Date.parse(h.observedAt);isFinite(b)&&m.push({t:b,u:Math.max(0,Math.min(1,h.utilization))})}m.sort((h,b)=>h.t-b.t);let I=[],z=0,Y=0;for(let h of m){let b=(h.t-e)/_*n.CHART_WIDTH,X=n.CHART_HEIGHT-h.u*n.CHART_HEIGHT;I.push(`${b.toFixed(2)},${X.toFixed(2)}`),z=b,Y=X}return{windowType:l,label:n.WINDOW_LABEL_MAP[l]??l,colorHex:n.COLOR_MAP[l]??"#9ca3af",pathPoints:I.join(" "),hasData:I.length>0,pointCount:I.length,lastX:z,lastY:Y}});return{lines:x,hasAnyData:x.some(l=>l.hasData),minTimeMs:e,maxTimeMs:i}}}return n})();var pt=(n,c)=>c.windowType,ft=()=>["five_hour","seven_day","seven_day_opus","seven_day_sonnet","extra_usage"];function mt(n,c){if(n&1&&$(0,"div"),n&2){d();let t=U(0),e=d();T("h-full transition-all "+e.utilizationBarColorClass(t.utilization)),R("width",e.utilizationPercent(t.utilization),"%")}}function gt(n,c){if(n&1&&(B(0),s(1,"div")(2,"div",4),u(3),a(),s(4,"div",5)(5,"div"),y(6,mt,1,4,"div",6),a(),s(7,"span",7),u(8),a()(),s(9,"div",8),u(10),a()()),n&2){let t,e=c.$implicit,i=d(),r=W(i.usageItemOfWindow(e));o(),T(i.compact?"grid grid-cols-[90px_1fr_56px] items-center gap-2 text-[10px]":"grid grid-cols-[110px_1fr_64px] items-center gap-2 text-[11px]"),A("opacity-50",!r),o(),O("title",e),o(),S(" ",i.windowLabelOf(e)," "),o(2),T(i.compact?"flex-1 h-1.5 bg-neutral-800 rounded-full overflow-hidden":"flex-1 h-2 bg-neutral-800 rounded-full overflow-hidden"),o(),g(r?6:-1),o(),T(i.compact?"w-8 text-[10px]":"w-9"),o(),S(" ",i.formatUtilization((t=r==null?null:r.utilization)!==null&&t!==void 0?t:null)," "),o(),O("title","Resets in "+i.formatResetCountdown(r==null?null:r.resetsAtMs)),o(),S(" ",i.formatResetCountdown(r==null?null:r.resetsAtMs)," ")}}function Ct(n,c){n&1&&(s(0,"div",2),u(1," No data yet \u2014 click "),s(2,"strong",9),u(3,"Pull"),a(),u(4," or wait for the next rate-limit event. "),a())}function yt(n,c){n&1&&(s(0,"div",14),u(1," No graph data yet \u2014 pull usage or wait for a CC session rate-limit event. "),a())}function xt(n,c){if(n&1&&(E(),$(0,"circle",25)),n&2){let t=d(2).$implicit;v("cx",t.lastX)("cy",t.lastY)("fill",t.colorHex)}}function wt(n,c){if(n&1&&(E(),$(0,"polyline",26)(1,"circle",27)),n&2){let t=d(2).$implicit;v("points",t.pathPoints)("stroke",t.colorHex),o(),v("cx",t.lastX)("cy",t.lastY)("fill",t.colorHex)}}function vt(n,c){if(n&1&&y(0,xt,1,3,":svg:circle",25)(1,wt,2,5),n&2){let t=d().$implicit;g(t.pointCount===1?0:1)}}function bt(n,c){if(n&1&&y(0,vt,2,1),n&2){let t=c.$implicit;g(t.hasData?0:-1)}}function At(n,c){if(n&1&&(s(0,"span",31),u(1,"\xB7"),a(),s(2,"span",32),u(3),a()),n&2){let t=d().$implicit,e=d(4);o(3),S(" ",((e.chartH-t.lastY)/e.chartH*100).toFixed(0),"% ")}}function $t(n,c){if(n&1&&(s(0,"div",28),$(1,"span",29),s(2,"span",30),u(3),a(),y(4,At,4,1),a()),n&2){let t=c.$implicit;A("opacity-40",!t.hasData),o(),R("background-color",t.colorHex),o(2),G(t.label),o(),g(t.hasData?4:-1)}}function Mt(n,c){if(n&1&&(s(0,"span"),u(1),K(2,"date"),a()),n&2){d(2);let t=U(0);o(),G(N(2,1,t.minTimeMs,"yyyy-MM-dd HH:mm"))}}function St(n,c){n&1&&(s(0,"span"),u(1,"\u2014"),a())}function Et(n,c){if(n&1&&(s(0,"span"),u(1),K(2,"date"),a()),n&2){d(2);let t=U(0);o(),G(N(2,1,t.maxTimeMs,"yyyy-MM-dd HH:mm"))}}function Tt(n,c){n&1&&(s(0,"span"),u(1,"\u2014"),a())}function Ut(n,c){if(n&1){let t=P();s(0,"div",15),E(),s(1,"svg",16),$(2,"line",17)(3,"line",18)(4,"line",19),k(5,bt,1,1,null,null,pt),a(),q(),s(7,"div",20)(8,"span"),u(9,"100%"),a(),s(10,"span"),u(11,"50%"),a(),s(12,"span"),u(13,"0%"),a()()(),s(14,"div",21),k(15,$t,5,6,"div",22,pt),a(),s(17,"div",23),y(18,Mt,3,4,"span")(19,St,2,0,"span"),s(20,"button",24),F("click",function(){V(t);let i=d(3);return L(i.handleRefreshGraph())}),u(21," \u21BB Refresh "),a(),y(22,Et,3,4,"span")(23,Tt,2,0,"span"),a()}if(n&2){d();let t=U(0),e=d(2);o(),A("h-24",e.compact)("h-32",!e.compact),v("viewBox",e.chartViewBox),o(),v("y1",e.chartH)("x2",e.chartW)("y2",e.chartH),o(),v("y1",e.chartMidY)("x2",e.chartW)("y2",e.chartMidY),o(),v("x2",e.chartW),o(),D(t.lines),o(10),D(t.lines),o(3),g(t.minTimeMs?18:19),o(4),g(t.maxTimeMs?22:23)}}function It(n,c){if(n&1&&(B(0),s(1,"div",13),y(2,yt,2,0,"div",14)(3,Ut,24,14),a()),n&2){let t=W(d(2).chart_$());o(2),g(t.hasAnyData?3:2)}}function Ht(n,c){if(n&1){let t=P();s(0,"div",3)(1,"button",10),F("click",function(){V(t);let i=d();return L(i.handleToggleGraph())}),E(),s(2,"svg",11),$(3,"path",12),a(),u(4),a(),y(5,It,4,2,"div",13),a()}if(n&2){let t=d();o(),O("title",t.isGraphOpen_$()?"Hide usage graph":"Show usage graph (utilization over time per window)"),o(),A("rotate-90",t.isGraphOpen_$()),o(2),S(" \u{1F4C8} ",t.isGraphOpen_$()?"Hide":"Show"," graph "),o(),g(t.isGraphOpen_$()?5:-1)}}var te=(()=>{class n{account_DS=w(dt);accountKey="";compact=!1;showGraphToggle=!0;initiallyOpenGraph=!1;isGraphOpen_$=C(!1);chart_$=nt(()=>M.buildChart(this.account_DS.usageHistoryMap_$().get(this.accountKey)??[]));chartViewBox=`0 0 ${M.CHART_WIDTH} ${M.CHART_HEIGHT}`;chartW=M.CHART_WIDTH;chartH=M.CHART_HEIGHT;chartMidY=M.CHART_HEIGHT/2;usageEffect=j(()=>{let t=this.accountKey;t&&(this.account_DS.accountUsageMap_$().has(t)||this.account_DS.loadAccountUsage(t))});initialOpenEffect=j(()=>{this.initiallyOpenGraph&&this.isGraphOpen_$.set(!0)});handleToggleGraph(){return p(this,null,function*(){let t=!this.isGraphOpen_$();this.isGraphOpen_$.set(t),t&&!this.account_DS.usageHistoryMap_$().has(this.accountKey)&&(yield this.account_DS.loadAccountUsageHistory({accountKey:this.accountKey}))})}handleRefreshGraph(){return p(this,null,function*(){yield this.account_DS.loadAccountUsageHistory({accountKey:this.accountKey})})}usageItemOfWindow(t){let e=this.account_DS.accountUsageMap_$().get(this.accountKey)??[];for(let i of e)if(i.windowType===t)return i;return null}hasAnyUsageData(){return(this.account_DS.accountUsageMap_$().get(this.accountKey)??[]).length>0}windowLabelOf(t){switch(t){case"five_hour":return"5-hour session";case"seven_day":return"Weekly";case"seven_day_opus":return"Weekly \xB7 Opus";case"seven_day_sonnet":return"Weekly \xB7 Sonnet";case"extra_usage":return"Extra (pay-as-you-go)";default:return t}}utilizationPercent(t){return t==null||!isFinite(t)?0:Math.max(0,Math.min(100,Math.round(t*100)))}formatUtilization(t){return t==null?"\u2014":`${Math.round(t*100)}%`}utilizationBarColorClass(t){return t==null||!isFinite(t)?"bg-neutral-600":t>=.85?"bg-red-500":t>=.5?"bg-amber-500":"bg-emerald-500"}formatResetCountdown(t){if(t==null||!isFinite(t)||t<=0)return"\u2014";let e=t-Date.now();if(e<=0)return"expired";let i=Math.floor(e/6e4),r=Math.floor(i/(60*24)),_=Math.floor(i%(60*24)/60),x=i%60;return r>0?`${r}d ${_}h`:_>0?`${_}h ${x}m`:`${x}m`}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=Z({type:n,selectors:[["app-cc-account-usage-view"]],inputs:{accountKey:"accountKey",compact:"compact",showGraphToggle:"showGraphToggle",initiallyOpenGraph:"initiallyOpenGraph"},standalone:!0,features:[tt],decls:6,vars:11,consts:[[1,"flex","flex-col"],[3,"class","opacity-50"],[1,"text-[10px]","text-neutral-500","italic","pt-1","border-t","border-neutral-800/40"],[1,"border-t","border-neutral-800/40","pt-2"],[1,"text-neutral-300","font-medium","truncate",3,"title"],[1,"flex","items-center","gap-2","min-w-0"],[3,"class","width"],[1,"font-mono","text-neutral-200","text-right","shrink-0"],[1,"font-mono","text-neutral-500","text-right","text-[10px]","truncate",3,"title"],[1,"text-neutral-400"],["type","button",1,"text-[11px]","text-neutral-400","hover:text-neonCyan","flex","items-center","gap-1","transition-colors",3,"click","title"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","aria-hidden","true",1,"w-3","h-3","transition-transform"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 5l7 7-7 7"],[1,"mt-2","rounded-md","border","border-neutral-800","bg-neutral-950/40","p-2"],[1,"text-[11px]","text-neutral-500","italic","px-2","py-3","text-center"],[1,"relative","w-full"],["preserveAspectRatio","none",1,"w-full","block"],["x1","0","stroke","#3f3f46","stroke-width","0.3"],["x1","0","stroke","#3f3f46","stroke-width","0.2","stroke-dasharray","1,1"],["x1","0","y1","0","y2","0","stroke","#3f3f46","stroke-width","0.2","stroke-dasharray","1,1"],[1,"absolute","inset-y-0","left-0","flex","flex-col","justify-between","text-[8px]","text-neutral-600","font-mono","pointer-events-none"],[1,"mt-2","flex","flex-wrap","items-center","gap-2","text-[10px]"],[1,"flex","items-center","gap-1",3,"opacity-40"],[1,"mt-1","flex","items-center","justify-between","text-[9px]","text-neutral-600"],["type","button","title","Re-fetch usage event history for this graph.",1,"text-[10px]","text-neutral-400","hover:text-neonCyan","border","border-neutral-700","hover:border-neonCyan","rounded","px-1.5","py-0.5","transition-colors",3,"click"],["r","0.8"],["fill","none","stroke-width","0.6","stroke-linecap","round","stroke-linejoin","round","vector-effect","non-scaling-stroke"],["r","0.6"],[1,"flex","items-center","gap-1"],[1,"inline-block","w-2","h-2","rounded-sm"],[1,"text-neutral-300"],[1,"text-neutral-500"],[1,"font-mono","text-neutral-400"]],template:function(e,i){e&1&&(s(0,"div",0)(1,"div"),k(2,gt,11,15,"div",1,Q),a(),y(4,Ct,5,0,"div",2)(5,Ht,6,5,"div",3),a()),e&2&&(A("gap-1",i.compact)("gap-2",!i.compact),o(),A("space-y-1",i.compact)("space-y-2",!i.compact),o(),D(et(10,ft)),o(2),g(i.hasAnyUsageData()?-1:4),o(),g(i.showGraphToggle?5:-1))},dependencies:[ot,it],encapsulation:2})}return n})();export{dt as a,te as b};
|
|
3
|
+
//# sourceMappingURL=chunk-GTMPSTDI.js.map
|