@futdevpro/ccap 1.1.2988 → 1.1.2995
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-EZ3HLJRW.js → agent-instances.module-Y2KBMNCK.js} +2 -2
- package/client-dist/{ca.module-2NK5JZOQ.js → ca.module-THNXAPI2.js} +2 -2
- package/client-dist/{cc-usage-dashboard.component-SLFNE2NX.js → cc-usage-dashboard.component-XQTSJYNO.js} +2 -2
- package/client-dist/{cc.module-F7LHWQ3A.js → cc.module-SBU4LUC2.js} +2 -2
- package/client-dist/{chunk-HK3NW3BA.js → chunk-2JZ3QUN7.js} +2 -2
- package/client-dist/{chunk-66YFYBOC.js → chunk-2L25BDDH.js} +2 -2
- package/client-dist/{chunk-L2E2MBF2.js → chunk-3BN32RX3.js} +2 -2
- package/client-dist/{chunk-4JZNUGDT.js → chunk-3F4AEMEH.js} +2 -2
- package/client-dist/{chunk-35HAXCRL.js → chunk-4EQNFMWU.js} +2 -2
- package/client-dist/{chunk-X3CIXD4W.js → chunk-4YCGUCIE.js} +2 -2
- package/client-dist/{chunk-SYXQFJNU.js → chunk-54JIUO7K.js} +2 -2
- package/client-dist/{chunk-I5LYGLY6.js → chunk-54KKC54L.js} +2 -2
- package/client-dist/{chunk-W66474CE.js → chunk-73ZQF6FQ.js} +2 -2
- package/client-dist/{chunk-OJPFXL3T.js → chunk-ACH3Z3TA.js} +2 -2
- package/client-dist/{chunk-CJXAN5QP.js → chunk-AJATGXNX.js} +2 -2
- package/client-dist/{chunk-XDP5GOHT.js → chunk-ASRYRN2I.js} +2 -2
- package/client-dist/{chunk-QYAK3VTE.js → chunk-BLA4WJEG.js} +2 -2
- package/client-dist/{chunk-6UTINZN6.js → chunk-BZVOKLVZ.js} +2 -2
- package/client-dist/{chunk-M53FIKSO.js → chunk-C7CAW6PK.js} +2 -2
- package/client-dist/{chunk-MIWIPUJL.js → chunk-CL5GKNF3.js} +2 -2
- package/client-dist/{chunk-ACLAVYA7.js → chunk-CSNFLERX.js} +2 -2
- package/client-dist/{chunk-WKXTPGKW.js → chunk-G5G7ZRTT.js} +2 -2
- package/client-dist/{chunk-I24ZZ4G3.js → chunk-GUJJP3HP.js} +2 -2
- package/client-dist/{chunk-QM4JVUVN.js → chunk-HB7GOR7P.js} +2 -2
- package/client-dist/{chunk-CPOWA47I.js → chunk-HL5RGNNL.js} +2 -2
- package/client-dist/{chunk-PUVXCR3N.js → chunk-IBAMIAIM.js} +2 -2
- package/client-dist/{chunk-LOUIZXXC.js → chunk-IDWKG7BQ.js} +2 -2
- package/client-dist/{chunk-LNDWBFCV.js → chunk-IES67WDC.js} +2 -2
- package/client-dist/{chunk-IMV4JDM4.js → chunk-JDJZC55L.js} +2 -2
- package/client-dist/{chunk-VUMU4S4O.js → chunk-KD7WNBCA.js} +2 -2
- package/client-dist/{chunk-XC26T3JJ.js → chunk-KJJKC27U.js} +2 -2
- package/client-dist/{chunk-ZJ3DCODZ.js → chunk-LGMUHF7N.js} +2 -2
- package/client-dist/{chunk-ZJ3DCODZ.js.map → chunk-LGMUHF7N.js.map} +1 -1
- package/client-dist/{chunk-RTAONMUA.js → chunk-LR3E2GDS.js} +2 -2
- package/client-dist/{chunk-SMBU53NX.js → chunk-MKV4EKJ3.js} +2 -2
- package/client-dist/{chunk-CK4L2E6A.js → chunk-OF2Q6Y2J.js} +2 -2
- package/client-dist/{chunk-TWUEQMEF.js → chunk-OPKRH2ZF.js} +2 -2
- package/client-dist/{chunk-7FDRE6FK.js → chunk-OTEHKHH6.js} +2 -2
- package/client-dist/{chunk-SUAZOLRE.js → chunk-P47C3DF2.js} +2 -2
- package/client-dist/{chunk-KOFPH2WQ.js → chunk-PXOCZHXA.js} +2 -2
- package/client-dist/{chunk-EZQXUBC4.js → chunk-Q6DP4BK2.js} +2 -2
- package/client-dist/{chunk-RQSPYGNE.js → chunk-SQFFII5G.js} +2 -2
- package/client-dist/{chunk-565H5Q7X.js → chunk-SSVNU5XX.js} +2 -2
- package/client-dist/chunk-TIFSV5V7.js +4 -0
- package/client-dist/{chunk-ZRLAS63L.js.map → chunk-TIFSV5V7.js.map} +3 -3
- package/client-dist/{chunk-2CZLQZAC.js → chunk-TUOCYFPY.js} +2 -2
- package/client-dist/{chunk-LP2E4KMW.js → chunk-UVND3MT4.js} +2 -2
- package/client-dist/{chunk-CROOTWQ4.js → chunk-UWRJP62D.js} +2 -2
- package/client-dist/{chunk-6IVNYSN4.js → chunk-VBPR247V.js} +2 -2
- package/client-dist/{chunk-XO6LJ5A6.js → chunk-VRLA24M4.js} +2 -2
- package/client-dist/{chunk-W4ICO22C.js → chunk-VS2SOEHH.js} +2 -2
- package/client-dist/{chunk-6CNO7CIR.js → chunk-VUVGA3PU.js} +2 -2
- package/client-dist/{chunk-CZK7PL4V.js → chunk-WFP5T7CK.js} +2 -2
- package/client-dist/{chunk-5GCMRTM2.js → chunk-WPK3COA5.js} +2 -2
- package/client-dist/{chunk-4ORBCWDZ.js → chunk-WS5IPV7J.js} +2 -2
- package/client-dist/{chunk-SIC2VUD2.js → chunk-X3XME6YM.js} +2 -2
- package/client-dist/{chunk-RJEB2CGY.js → chunk-XD65U2AA.js} +2 -2
- package/client-dist/{chunk-CZVHJQVK.js → chunk-Y5E6NMMF.js} +2 -2
- package/client-dist/{chunk-SAWE7K3L.js → chunk-YBDAZFC6.js} +2 -2
- package/client-dist/{chunk-ZI46JBHS.js → chunk-YFVC52RF.js} +2 -2
- package/client-dist/{chunk-HKO57F7B.js → chunk-YULSJ6Q7.js} +2 -2
- package/client-dist/{chunk-ALRGHRMX.js → chunk-Z2O72EKW.js} +2 -2
- package/client-dist/{consultant.module-ZRSJ2JPM.js → consultant.module-Z5HEVFX6.js} +2 -2
- package/client-dist/{crd.module-TDLM6M2Z.js → crd.module-V47NZMPB.js} +2 -2
- package/client-dist/{dashboard.module-VSWWQDEU.js → dashboard.module-CTYD32XL.js} +2 -2
- package/client-dist/{do.module-CCOHMJLG.js → do.module-CXAUW7J5.js} +2 -2
- package/client-dist/{document-library.module-QLZ4ZUUG.js → document-library.module-BWG5WRSR.js} +2 -2
- package/client-dist/{embedding-eval.module-6KORAJ7D.js → embedding-eval.module-UW3ATVS4.js} +2 -2
- package/client-dist/{embedding-registry.module-GJJ5G2Y7.js → embedding-registry.module-EUHSKBTW.js} +2 -2
- package/client-dist/{err.module-4GLVR2GJ.js → err.module-TVAU67PY.js} +2 -2
- package/client-dist/{feedback.module-U6CCHRVZ.js → feedback.module-QMTGBHSW.js} +2 -2
- package/client-dist/{host-runtime-mcp.module-EV5GZKTL.js → host-runtime-mcp.module-MGFIHPEU.js} +2 -2
- package/client-dist/index.html +1 -1
- package/client-dist/{live-dev-pipeline.module-MWG23KAS.js → live-dev-pipeline.module-234JPLHL.js} +2 -2
- package/client-dist/{logs.module-YNDMPESQ.js → logs.module-AJKP66C3.js} +2 -2
- package/client-dist/{main-OGUDQHPL.js → main-RCR3UPER.js} +3 -3
- package/client-dist/{master-control-remote-poc.module-37OSJYRO.js → master-control-remote-poc.module-MJHRVAJV.js} +2 -2
- package/client-dist/{mobile-app.module-2DXC7DFY.js → mobile-app.module-BGY5OBR4.js} +2 -2
- package/client-dist/{model-registry.module-Z64FRB5O.js → model-registry.module-7QY63GF2.js} +2 -2
- package/client-dist/{oc.module-6SHIJS3R.js → oc.module-DCGI6UB3.js} +2 -2
- package/client-dist/{orc.module-NBZZGOV3.js → orc.module-BGIHVCKN.js} +2 -2
- package/client-dist/{project-management.module-TR33UVCV.js → project-management.module-75PSVWLM.js} +2 -2
- package/client-dist/project-source-routed.module-UK5YELZX.js +2 -0
- package/client-dist/{scheduler.module-M3LHP2DW.js → scheduler.module-4CBGNYNZ.js} +2 -2
- package/client-dist/{session.module-FIZ5NYKK.js → session.module-BBRWFWYW.js} +2 -2
- package/client-dist/{set.module-4E6WAYIQ.js → set.module-JXC6IB4D.js} +2 -2
- package/client-dist/{setup.module-2AUXXLIR.js → setup.module-VWNDXFJR.js} +2 -2
- package/client-dist/{terminals.module-GCGUOFVO.js → terminals.module-SJJ5FS3B.js} +2 -2
- package/client-dist/{voice-notes-poc.module-6LVDT3MA.js → voice-notes-poc.module-H5JKVBK7.js} +2 -2
- package/client-dist/{wfs.module-XQGZNMEP.js → wfs.module-IR6D4R6Q.js} +2 -2
- package/package.json +1 -1
- package/client-dist/chunk-ZRLAS63L.js +0 -4
- package/client-dist/project-source-routed.module-ZZ7SNTUN.js +0 -2
- /package/client-dist/{agent-instances.module-EZ3HLJRW.js.map → agent-instances.module-Y2KBMNCK.js.map} +0 -0
- /package/client-dist/{ca.module-2NK5JZOQ.js.map → ca.module-THNXAPI2.js.map} +0 -0
- /package/client-dist/{cc-usage-dashboard.component-SLFNE2NX.js.map → cc-usage-dashboard.component-XQTSJYNO.js.map} +0 -0
- /package/client-dist/{cc.module-F7LHWQ3A.js.map → cc.module-SBU4LUC2.js.map} +0 -0
- /package/client-dist/{chunk-HK3NW3BA.js.map → chunk-2JZ3QUN7.js.map} +0 -0
- /package/client-dist/{chunk-66YFYBOC.js.map → chunk-2L25BDDH.js.map} +0 -0
- /package/client-dist/{chunk-L2E2MBF2.js.map → chunk-3BN32RX3.js.map} +0 -0
- /package/client-dist/{chunk-4JZNUGDT.js.map → chunk-3F4AEMEH.js.map} +0 -0
- /package/client-dist/{chunk-35HAXCRL.js.map → chunk-4EQNFMWU.js.map} +0 -0
- /package/client-dist/{chunk-X3CIXD4W.js.map → chunk-4YCGUCIE.js.map} +0 -0
- /package/client-dist/{chunk-SYXQFJNU.js.map → chunk-54JIUO7K.js.map} +0 -0
- /package/client-dist/{chunk-I5LYGLY6.js.map → chunk-54KKC54L.js.map} +0 -0
- /package/client-dist/{chunk-W66474CE.js.map → chunk-73ZQF6FQ.js.map} +0 -0
- /package/client-dist/{chunk-OJPFXL3T.js.map → chunk-ACH3Z3TA.js.map} +0 -0
- /package/client-dist/{chunk-CJXAN5QP.js.map → chunk-AJATGXNX.js.map} +0 -0
- /package/client-dist/{chunk-XDP5GOHT.js.map → chunk-ASRYRN2I.js.map} +0 -0
- /package/client-dist/{chunk-QYAK3VTE.js.map → chunk-BLA4WJEG.js.map} +0 -0
- /package/client-dist/{chunk-6UTINZN6.js.map → chunk-BZVOKLVZ.js.map} +0 -0
- /package/client-dist/{chunk-M53FIKSO.js.map → chunk-C7CAW6PK.js.map} +0 -0
- /package/client-dist/{chunk-MIWIPUJL.js.map → chunk-CL5GKNF3.js.map} +0 -0
- /package/client-dist/{chunk-ACLAVYA7.js.map → chunk-CSNFLERX.js.map} +0 -0
- /package/client-dist/{chunk-WKXTPGKW.js.map → chunk-G5G7ZRTT.js.map} +0 -0
- /package/client-dist/{chunk-I24ZZ4G3.js.map → chunk-GUJJP3HP.js.map} +0 -0
- /package/client-dist/{chunk-QM4JVUVN.js.map → chunk-HB7GOR7P.js.map} +0 -0
- /package/client-dist/{chunk-CPOWA47I.js.map → chunk-HL5RGNNL.js.map} +0 -0
- /package/client-dist/{chunk-PUVXCR3N.js.map → chunk-IBAMIAIM.js.map} +0 -0
- /package/client-dist/{chunk-LOUIZXXC.js.map → chunk-IDWKG7BQ.js.map} +0 -0
- /package/client-dist/{chunk-LNDWBFCV.js.map → chunk-IES67WDC.js.map} +0 -0
- /package/client-dist/{chunk-IMV4JDM4.js.map → chunk-JDJZC55L.js.map} +0 -0
- /package/client-dist/{chunk-VUMU4S4O.js.map → chunk-KD7WNBCA.js.map} +0 -0
- /package/client-dist/{chunk-XC26T3JJ.js.map → chunk-KJJKC27U.js.map} +0 -0
- /package/client-dist/{chunk-RTAONMUA.js.map → chunk-LR3E2GDS.js.map} +0 -0
- /package/client-dist/{chunk-SMBU53NX.js.map → chunk-MKV4EKJ3.js.map} +0 -0
- /package/client-dist/{chunk-CK4L2E6A.js.map → chunk-OF2Q6Y2J.js.map} +0 -0
- /package/client-dist/{chunk-TWUEQMEF.js.map → chunk-OPKRH2ZF.js.map} +0 -0
- /package/client-dist/{chunk-7FDRE6FK.js.map → chunk-OTEHKHH6.js.map} +0 -0
- /package/client-dist/{chunk-SUAZOLRE.js.map → chunk-P47C3DF2.js.map} +0 -0
- /package/client-dist/{chunk-KOFPH2WQ.js.map → chunk-PXOCZHXA.js.map} +0 -0
- /package/client-dist/{chunk-EZQXUBC4.js.map → chunk-Q6DP4BK2.js.map} +0 -0
- /package/client-dist/{chunk-RQSPYGNE.js.map → chunk-SQFFII5G.js.map} +0 -0
- /package/client-dist/{chunk-565H5Q7X.js.map → chunk-SSVNU5XX.js.map} +0 -0
- /package/client-dist/{chunk-2CZLQZAC.js.map → chunk-TUOCYFPY.js.map} +0 -0
- /package/client-dist/{chunk-LP2E4KMW.js.map → chunk-UVND3MT4.js.map} +0 -0
- /package/client-dist/{chunk-CROOTWQ4.js.map → chunk-UWRJP62D.js.map} +0 -0
- /package/client-dist/{chunk-6IVNYSN4.js.map → chunk-VBPR247V.js.map} +0 -0
- /package/client-dist/{chunk-XO6LJ5A6.js.map → chunk-VRLA24M4.js.map} +0 -0
- /package/client-dist/{chunk-W4ICO22C.js.map → chunk-VS2SOEHH.js.map} +0 -0
- /package/client-dist/{chunk-6CNO7CIR.js.map → chunk-VUVGA3PU.js.map} +0 -0
- /package/client-dist/{chunk-CZK7PL4V.js.map → chunk-WFP5T7CK.js.map} +0 -0
- /package/client-dist/{chunk-5GCMRTM2.js.map → chunk-WPK3COA5.js.map} +0 -0
- /package/client-dist/{chunk-4ORBCWDZ.js.map → chunk-WS5IPV7J.js.map} +0 -0
- /package/client-dist/{chunk-SIC2VUD2.js.map → chunk-X3XME6YM.js.map} +0 -0
- /package/client-dist/{chunk-RJEB2CGY.js.map → chunk-XD65U2AA.js.map} +0 -0
- /package/client-dist/{chunk-CZVHJQVK.js.map → chunk-Y5E6NMMF.js.map} +0 -0
- /package/client-dist/{chunk-SAWE7K3L.js.map → chunk-YBDAZFC6.js.map} +0 -0
- /package/client-dist/{chunk-ZI46JBHS.js.map → chunk-YFVC52RF.js.map} +0 -0
- /package/client-dist/{chunk-HKO57F7B.js.map → chunk-YULSJ6Q7.js.map} +0 -0
- /package/client-dist/{chunk-ALRGHRMX.js.map → chunk-Z2O72EKW.js.map} +0 -0
- /package/client-dist/{consultant.module-ZRSJ2JPM.js.map → consultant.module-Z5HEVFX6.js.map} +0 -0
- /package/client-dist/{crd.module-TDLM6M2Z.js.map → crd.module-V47NZMPB.js.map} +0 -0
- /package/client-dist/{dashboard.module-VSWWQDEU.js.map → dashboard.module-CTYD32XL.js.map} +0 -0
- /package/client-dist/{do.module-CCOHMJLG.js.map → do.module-CXAUW7J5.js.map} +0 -0
- /package/client-dist/{document-library.module-QLZ4ZUUG.js.map → document-library.module-BWG5WRSR.js.map} +0 -0
- /package/client-dist/{embedding-eval.module-6KORAJ7D.js.map → embedding-eval.module-UW3ATVS4.js.map} +0 -0
- /package/client-dist/{embedding-registry.module-GJJ5G2Y7.js.map → embedding-registry.module-EUHSKBTW.js.map} +0 -0
- /package/client-dist/{err.module-4GLVR2GJ.js.map → err.module-TVAU67PY.js.map} +0 -0
- /package/client-dist/{feedback.module-U6CCHRVZ.js.map → feedback.module-QMTGBHSW.js.map} +0 -0
- /package/client-dist/{host-runtime-mcp.module-EV5GZKTL.js.map → host-runtime-mcp.module-MGFIHPEU.js.map} +0 -0
- /package/client-dist/{live-dev-pipeline.module-MWG23KAS.js.map → live-dev-pipeline.module-234JPLHL.js.map} +0 -0
- /package/client-dist/{logs.module-YNDMPESQ.js.map → logs.module-AJKP66C3.js.map} +0 -0
- /package/client-dist/{main-OGUDQHPL.js.map → main-RCR3UPER.js.map} +0 -0
- /package/client-dist/{master-control-remote-poc.module-37OSJYRO.js.map → master-control-remote-poc.module-MJHRVAJV.js.map} +0 -0
- /package/client-dist/{mobile-app.module-2DXC7DFY.js.map → mobile-app.module-BGY5OBR4.js.map} +0 -0
- /package/client-dist/{model-registry.module-Z64FRB5O.js.map → model-registry.module-7QY63GF2.js.map} +0 -0
- /package/client-dist/{oc.module-6SHIJS3R.js.map → oc.module-DCGI6UB3.js.map} +0 -0
- /package/client-dist/{orc.module-NBZZGOV3.js.map → orc.module-BGIHVCKN.js.map} +0 -0
- /package/client-dist/{project-management.module-TR33UVCV.js.map → project-management.module-75PSVWLM.js.map} +0 -0
- /package/client-dist/{project-source-routed.module-ZZ7SNTUN.js.map → project-source-routed.module-UK5YELZX.js.map} +0 -0
- /package/client-dist/{scheduler.module-M3LHP2DW.js.map → scheduler.module-4CBGNYNZ.js.map} +0 -0
- /package/client-dist/{session.module-FIZ5NYKK.js.map → session.module-BBRWFWYW.js.map} +0 -0
- /package/client-dist/{set.module-4E6WAYIQ.js.map → set.module-JXC6IB4D.js.map} +0 -0
- /package/client-dist/{setup.module-2AUXXLIR.js.map → setup.module-VWNDXFJR.js.map} +0 -0
- /package/client-dist/{terminals.module-GCGUOFVO.js.map → terminals.module-SJJ5FS3B.js.map} +0 -0
- /package/client-dist/{voice-notes-poc.module-6LVDT3MA.js.map → voice-notes-poc.module-H5JKVBK7.js.map} +0 -0
- /package/client-dist/{wfs.module-XQGZNMEP.js.map → wfs.module-IR6D4R6Q.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as si,c as ai,d as Te}from"./chunk-XC26T3JJ.js";import{c as ri}from"./chunk-RQSPYGNE.js";import{a as li}from"./chunk-QYAK3VTE.js";import{a as oi}from"./chunk-X3CIXD4W.js";import{a as ci}from"./chunk-WKXTPGKW.js";import{f as Xn,i as Kn,n as Qn,o as ei,p as ti,v as ni}from"./chunk-EO4DNTT4.js";import{a as Yt}from"./chunk-5UPNU54P.js";import{j as ii}from"./chunk-66YFYBOC.js";import{p as ao}from"./chunk-ZJ3DCODZ.js";import{$a as J,C as ke,Cb as Ct,D as Fe,Fa as g,G as jn,Ga as E,Ha as qt,Hb as Zn,Ia as Jt,J as B,K as P,Kb as Yn,L as oe,M as Je,T as Ze,Ta as He,U as me,Ua as Zt,W as _t,X as xt,Z as u,_ as Wn,a as ie,aa as se,ab as Z,b as Ne,da as A,fa as Ae,ga as R,h as so,hb as T,ja as V,jb as Jn,k as X,la as k,na as bt,oa as Se,pa as ye,qa as c,ra as p,sa as y,ua as z,ub as Ue,va as O,wa as _,xa as qn,y as Gn,ya as Ye}from"./chunk-TBMJSIBB.js";var{entries:xi,setPrototypeOf:pi,isFrozen:lo,getPrototypeOf:co,getOwnPropertyDescriptor:po}=Object,{freeze:Q,seal:ae,create:St}=Object,{apply:on,construct:rn}=typeof Reflect<"u"&&Reflect;Q||(Q=function(n){return n});ae||(ae=function(n){return n});on||(on=function(n,e){for(var o=arguments.length,i=new Array(o>2?o-2:0),r=2;r<o;r++)i[r-2]=arguments[r];return n.apply(e,i)});rn||(rn=function(n){for(var e=arguments.length,o=new Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];return new n(...o)});var kt=ee(Array.prototype.forEach),uo=ee(Array.prototype.lastIndexOf),di=ee(Array.prototype.pop),Xe=ee(Array.prototype.push),mo=ee(Array.prototype.splice),yt=ee(String.prototype.toLowerCase),Xt=ee(String.prototype.toString),Kt=ee(String.prototype.match),Ke=ee(String.prototype.replace),ho=ee(String.prototype.indexOf),fo=ee(String.prototype.trim),re=ee(Object.prototype.hasOwnProperty),K=ee(RegExp.prototype.test),Qe=go(TypeError);function ee(t){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var e=arguments.length,o=new Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];return on(t,n,o)}}function go(t){return function(){for(var n=arguments.length,e=new Array(n),o=0;o<n;o++)e[o]=arguments[o];return rn(t,e)}}function v(t,n){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:yt;pi&&pi(t,null);let o=n.length;for(;o--;){let i=n[o];if(typeof i=="string"){let r=e(i);r!==i&&(lo(n)||(n[o]=r),i=r)}t[i]=!0}return t}function _o(t){for(let n=0;n<t.length;n++)re(t,n)||(t[n]=null);return t}function he(t){let n=St(null);for(let[e,o]of xi(t))re(t,e)&&(Array.isArray(o)?n[e]=_o(o):o&&typeof o=="object"&&o.constructor===Object?n[e]=he(o):n[e]=o);return n}function et(t,n){for(;t!==null;){let o=po(t,n);if(o){if(o.get)return ee(o.get);if(typeof o.value=="function")return ee(o.value)}t=co(t)}function e(){return null}return e}var ui=Q(["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"]),Qt=Q(["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"]),en=Q(["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"]),xo=Q(["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"]),tn=Q(["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"]),bo=Q(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mi=Q(["#text"]),hi=Q(["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"]),nn=Q(["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"]),fi=Q(["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"]),wt=Q(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Co=ae(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ko=ae(/<%[\w\W]*|[\w\W]*%>/gm),wo=ae(/\$\{[\w\W]*/gm),So=ae(/^data-[\-\w.\u00B7-\uFFFF]+$/),yo=ae(/^aria-[\-\w]+$/),bi=ae(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),To=ae(/^(?:\w+script|data):/i),vo=ae(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ci=ae(/^html$/i),Eo=ae(/^[a-z][.\w]*(-[.\w]+)+$/i),gi=Object.freeze({__proto__:null,ARIA_ATTR:yo,ATTR_WHITESPACE:vo,CUSTOM_ELEMENT:Eo,DATA_ATTR:So,DOCTYPE_NAME:Ci,ERB_EXPR:ko,IS_ALLOWED_URI:bi,IS_SCRIPT_OR_DATA:To,MUSTACHE_EXPR:Co,TMPLIT_EXPR:wo}),tt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ao=function(){return typeof window>"u"?null:window},Ro=function(n,e){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let o=null,i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(o=e.getAttribute(i));let r="dompurify"+(o?"#"+o:"");try{return n.createPolicy(r,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},_i=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ki(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ao(),n=b=>ki(b);if(n.version="3.3.3",n.removed=[],!t||!t.document||t.document.nodeType!==tt.document||!t.Element)return n.isSupported=!1,n;let{document:e}=t,o=e,i=o.currentScript,{DocumentFragment:r,HTMLTemplateElement:s,Node:d,Element:l,NodeFilter:h,NamedNodeMap:m=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:C,DOMParser:S,trustedTypes:I}=t,L=l.prototype,le=et(L,"cloneNode"),st=et(L,"remove"),at=et(L,"nextSibling"),lt=et(L,"childNodes"),Le=et(L,"parentNode");if(typeof s=="function"){let b=e.createElement("template");b.content&&b.content.ownerDocument&&(e=b.content.ownerDocument)}let G,ge="",{implementation:_e,createNodeIterator:Gi,createDocumentFragment:ji,getElementsByTagName:Wi}=e,{importNode:qi}=o,Y=_i();n.isSupported=typeof xi=="function"&&typeof Le=="function"&&_e&&_e.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:It,ERB_EXPR:Dt,TMPLIT_EXPR:Bt,DATA_ATTR:Ji,ARIA_ATTR:Zi,IS_SCRIPT_OR_DATA:Yi,ATTR_WHITESPACE:Cn,CUSTOM_ELEMENT:Xi}=gi,{IS_ALLOWED_URI:kn}=gi,U=null,wn=v({},[...ui,...Qt,...en,...tn,...mi]),j=null,Sn=v({},[...hi,...nn,...fi,...wt]),N=Object.seal(St(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,ct=null,we=Object.seal(St(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),yn=!0,Pt=!0,Tn=!1,vn=!0,Ie=!1,pt=!0,ve=!1,Ot=!1,zt=!1,De=!1,dt=!1,ut=!1,En=!0,An=!1,Ki="user-content-",Nt=!0,We=!1,Be={},de=null,Ft=v({},["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"]),Rn=null,Mn=v({},["audio","video","img","source","image","track"]),Ht=null,$n=v({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),mt="http://www.w3.org/1998/Math/MathML",ht="http://www.w3.org/2000/svg",xe="http://www.w3.org/1999/xhtml",Pe=xe,Ut=!1,Vt=null,Qi=v({},[mt,ht,xe],Xt),ft=v({},["mi","mo","mn","ms","mtext"]),gt=v({},["annotation-xml"]),eo=v({},["title","style","font","a","script"]),qe=null,to=["application/xhtml+xml","text/html"],no="text/html",H=null,Oe=null,io=e.createElement("form"),Ln=function(a){return a instanceof RegExp||a instanceof Function},Gt=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Oe&&Oe===a)){if((!a||typeof a!="object")&&(a={}),a=he(a),qe=to.indexOf(a.PARSER_MEDIA_TYPE)===-1?no:a.PARSER_MEDIA_TYPE,H=qe==="application/xhtml+xml"?Xt:yt,U=re(a,"ALLOWED_TAGS")?v({},a.ALLOWED_TAGS,H):wn,j=re(a,"ALLOWED_ATTR")?v({},a.ALLOWED_ATTR,H):Sn,Vt=re(a,"ALLOWED_NAMESPACES")?v({},a.ALLOWED_NAMESPACES,Xt):Qi,Ht=re(a,"ADD_URI_SAFE_ATTR")?v(he($n),a.ADD_URI_SAFE_ATTR,H):$n,Rn=re(a,"ADD_DATA_URI_TAGS")?v(he(Mn),a.ADD_DATA_URI_TAGS,H):Mn,de=re(a,"FORBID_CONTENTS")?v({},a.FORBID_CONTENTS,H):Ft,je=re(a,"FORBID_TAGS")?v({},a.FORBID_TAGS,H):he({}),ct=re(a,"FORBID_ATTR")?v({},a.FORBID_ATTR,H):he({}),Be=re(a,"USE_PROFILES")?a.USE_PROFILES:!1,yn=a.ALLOW_ARIA_ATTR!==!1,Pt=a.ALLOW_DATA_ATTR!==!1,Tn=a.ALLOW_UNKNOWN_PROTOCOLS||!1,vn=a.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ie=a.SAFE_FOR_TEMPLATES||!1,pt=a.SAFE_FOR_XML!==!1,ve=a.WHOLE_DOCUMENT||!1,De=a.RETURN_DOM||!1,dt=a.RETURN_DOM_FRAGMENT||!1,ut=a.RETURN_TRUSTED_TYPE||!1,zt=a.FORCE_BODY||!1,En=a.SANITIZE_DOM!==!1,An=a.SANITIZE_NAMED_PROPS||!1,Nt=a.KEEP_CONTENT!==!1,We=a.IN_PLACE||!1,kn=a.ALLOWED_URI_REGEXP||bi,Pe=a.NAMESPACE||xe,ft=a.MATHML_TEXT_INTEGRATION_POINTS||ft,gt=a.HTML_INTEGRATION_POINTS||gt,N=a.CUSTOM_ELEMENT_HANDLING||{},a.CUSTOM_ELEMENT_HANDLING&&Ln(a.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(N.tagNameCheck=a.CUSTOM_ELEMENT_HANDLING.tagNameCheck),a.CUSTOM_ELEMENT_HANDLING&&Ln(a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(N.attributeNameCheck=a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),a.CUSTOM_ELEMENT_HANDLING&&typeof a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(N.allowCustomizedBuiltInElements=a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ie&&(Pt=!1),dt&&(De=!0),Be&&(U=v({},mi),j=St(null),Be.html===!0&&(v(U,ui),v(j,hi)),Be.svg===!0&&(v(U,Qt),v(j,nn),v(j,wt)),Be.svgFilters===!0&&(v(U,en),v(j,nn),v(j,wt)),Be.mathMl===!0&&(v(U,tn),v(j,fi),v(j,wt))),re(a,"ADD_TAGS")||(we.tagCheck=null),re(a,"ADD_ATTR")||(we.attributeCheck=null),a.ADD_TAGS&&(typeof a.ADD_TAGS=="function"?we.tagCheck=a.ADD_TAGS:(U===wn&&(U=he(U)),v(U,a.ADD_TAGS,H))),a.ADD_ATTR&&(typeof a.ADD_ATTR=="function"?we.attributeCheck=a.ADD_ATTR:(j===Sn&&(j=he(j)),v(j,a.ADD_ATTR,H))),a.ADD_URI_SAFE_ATTR&&v(Ht,a.ADD_URI_SAFE_ATTR,H),a.FORBID_CONTENTS&&(de===Ft&&(de=he(de)),v(de,a.FORBID_CONTENTS,H)),a.ADD_FORBID_CONTENTS&&(de===Ft&&(de=he(de)),v(de,a.ADD_FORBID_CONTENTS,H)),Nt&&(U["#text"]=!0),ve&&v(U,["html","head","body"]),U.table&&(v(U,["tbody"]),delete je.tbody),a.TRUSTED_TYPES_POLICY){if(typeof a.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof a.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');G=a.TRUSTED_TYPES_POLICY,ge=G.createHTML("")}else G===void 0&&(G=Ro(I,i)),G!==null&&typeof ge=="string"&&(ge=G.createHTML(""));Q&&Q(a),Oe=a}},In=v({},[...Qt,...en,...xo]),Dn=v({},[...tn,...bo]),oo=function(a){let f=Le(a);(!f||!f.tagName)&&(f={namespaceURI:Pe,tagName:"template"});let x=yt(a.tagName),D=yt(f.tagName);return Vt[a.namespaceURI]?a.namespaceURI===ht?f.namespaceURI===xe?x==="svg":f.namespaceURI===mt?x==="svg"&&(D==="annotation-xml"||ft[D]):!!In[x]:a.namespaceURI===mt?f.namespaceURI===xe?x==="math":f.namespaceURI===ht?x==="math"&>[D]:!!Dn[x]:a.namespaceURI===xe?f.namespaceURI===ht&&!gt[D]||f.namespaceURI===mt&&!ft[D]?!1:!Dn[x]&&(eo[x]||!In[x]):!!(qe==="application/xhtml+xml"&&Vt[a.namespaceURI]):!1},ue=function(a){Xe(n.removed,{element:a});try{Le(a).removeChild(a)}catch{st(a)}},Ee=function(a,f){try{Xe(n.removed,{attribute:f.getAttributeNode(a),from:f})}catch{Xe(n.removed,{attribute:null,from:f})}if(f.removeAttribute(a),a==="is")if(De||dt)try{ue(f)}catch{}else try{f.setAttribute(a,"")}catch{}},Bn=function(a){let f=null,x=null;if(zt)a="<remove></remove>"+a;else{let F=Kt(a,/^[\r\n\t ]+/);x=F&&F[0]}qe==="application/xhtml+xml"&&Pe===xe&&(a='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+a+"</body></html>");let D=G?G.createHTML(a):a;if(Pe===xe)try{f=new S().parseFromString(D,qe)}catch{}if(!f||!f.documentElement){f=_e.createDocument(Pe,"template",null);try{f.documentElement.innerHTML=Ut?ge:D}catch{}}let q=f.body||f.documentElement;return a&&x&&q.insertBefore(e.createTextNode(x),q.childNodes[0]||null),Pe===xe?Wi.call(f,ve?"html":"body")[0]:ve?f.documentElement:q},Pn=function(a){return Gi.call(a.ownerDocument||a,a,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},jt=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")},On=function(a){return typeof d=="function"&&a instanceof d};function be(b,a,f){kt(b,x=>{x.call(n,a,f,Oe)})}let zn=function(a){let f=null;if(be(Y.beforeSanitizeElements,a,null),jt(a))return ue(a),!0;let x=H(a.nodeName);if(be(Y.uponSanitizeElement,a,{tagName:x,allowedTags:U}),pt&&a.hasChildNodes()&&!On(a.firstElementChild)&&K(/<[/\w!]/g,a.innerHTML)&&K(/<[/\w!]/g,a.textContent)||a.nodeType===tt.progressingInstruction||pt&&a.nodeType===tt.comment&&K(/<[/\w]/g,a.data))return ue(a),!0;if(!(we.tagCheck instanceof Function&&we.tagCheck(x))&&(!U[x]||je[x])){if(!je[x]&&Fn(x)&&(N.tagNameCheck instanceof RegExp&&K(N.tagNameCheck,x)||N.tagNameCheck instanceof Function&&N.tagNameCheck(x)))return!1;if(Nt&&!de[x]){let D=Le(a)||a.parentNode,q=lt(a)||a.childNodes;if(q&&D){let F=q.length;for(let ne=F-1;ne>=0;--ne){let Ce=le(q[ne],!0);Ce.__removalCount=(a.__removalCount||0)+1,D.insertBefore(Ce,at(a))}}}return ue(a),!0}return a instanceof l&&!oo(a)||(x==="noscript"||x==="noembed"||x==="noframes")&&K(/<\/no(script|embed|frames)/i,a.innerHTML)?(ue(a),!0):(Ie&&a.nodeType===tt.text&&(f=a.textContent,kt([It,Dt,Bt],D=>{f=Ke(f,D," ")}),a.textContent!==f&&(Xe(n.removed,{element:a.cloneNode()}),a.textContent=f)),be(Y.afterSanitizeElements,a,null),!1)},Nn=function(a,f,x){if(ct[f]||En&&(f==="id"||f==="name")&&(x in e||x in io))return!1;if(!(Pt&&!ct[f]&&K(Ji,f))){if(!(yn&&K(Zi,f))){if(!(we.attributeCheck instanceof Function&&we.attributeCheck(f,a))){if(!j[f]||ct[f]){if(!(Fn(a)&&(N.tagNameCheck instanceof RegExp&&K(N.tagNameCheck,a)||N.tagNameCheck instanceof Function&&N.tagNameCheck(a))&&(N.attributeNameCheck instanceof RegExp&&K(N.attributeNameCheck,f)||N.attributeNameCheck instanceof Function&&N.attributeNameCheck(f,a))||f==="is"&&N.allowCustomizedBuiltInElements&&(N.tagNameCheck instanceof RegExp&&K(N.tagNameCheck,x)||N.tagNameCheck instanceof Function&&N.tagNameCheck(x))))return!1}else if(!Ht[f]){if(!K(kn,Ke(x,Cn,""))){if(!((f==="src"||f==="xlink:href"||f==="href")&&a!=="script"&&ho(x,"data:")===0&&Rn[a])){if(!(Tn&&!K(Yi,Ke(x,Cn,"")))){if(x)return!1}}}}}}}return!0},Fn=function(a){return a!=="annotation-xml"&&Kt(a,Xi)},Hn=function(a){be(Y.beforeSanitizeAttributes,a,null);let{attributes:f}=a;if(!f||jt(a))return;let x={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0},D=f.length;for(;D--;){let q=f[D],{name:F,namespaceURI:ne,value:Ce}=q,ze=H(F),Wt=Ce,W=F==="value"?Wt:fo(Wt);if(x.attrName=ze,x.attrValue=W,x.keepAttr=!0,x.forceKeepAttr=void 0,be(Y.uponSanitizeAttribute,a,x),W=x.attrValue,An&&(ze==="id"||ze==="name")&&(Ee(F,a),W=Ki+W),pt&&K(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,W)){Ee(F,a);continue}if(ze==="attributename"&&Kt(W,"href")){Ee(F,a);continue}if(x.forceKeepAttr)continue;if(!x.keepAttr){Ee(F,a);continue}if(!vn&&K(/\/>/i,W)){Ee(F,a);continue}Ie&&kt([It,Dt,Bt],Vn=>{W=Ke(W,Vn," ")});let Un=H(a.nodeName);if(!Nn(Un,ze,W)){Ee(F,a);continue}if(G&&typeof I=="object"&&typeof I.getAttributeType=="function"&&!ne)switch(I.getAttributeType(Un,ze)){case"TrustedHTML":{W=G.createHTML(W);break}case"TrustedScriptURL":{W=G.createScriptURL(W);break}}if(W!==Wt)try{ne?a.setAttributeNS(ne,F,W):a.setAttribute(F,W),jt(a)?ue(a):di(n.removed)}catch{Ee(F,a)}}be(Y.afterSanitizeAttributes,a,null)},ro=function b(a){let f=null,x=Pn(a);for(be(Y.beforeSanitizeShadowDOM,a,null);f=x.nextNode();)be(Y.uponSanitizeShadowNode,f,null),zn(f),Hn(f),f.content instanceof r&&b(f.content);be(Y.afterSanitizeShadowDOM,a,null)};return n.sanitize=function(b){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=null,x=null,D=null,q=null;if(Ut=!b,Ut&&(b="<!-->"),typeof b!="string"&&!On(b))if(typeof b.toString=="function"){if(b=b.toString(),typeof b!="string")throw Qe("dirty is not a string, aborting")}else throw Qe("toString is not a function");if(!n.isSupported)return b;if(Ot||Gt(a),n.removed=[],typeof b=="string"&&(We=!1),We){if(b.nodeName){let Ce=H(b.nodeName);if(!U[Ce]||je[Ce])throw Qe("root node is forbidden and cannot be sanitized in-place")}}else if(b instanceof d)f=Bn("<!---->"),x=f.ownerDocument.importNode(b,!0),x.nodeType===tt.element&&x.nodeName==="BODY"||x.nodeName==="HTML"?f=x:f.appendChild(x);else{if(!De&&!Ie&&!ve&&b.indexOf("<")===-1)return G&&ut?G.createHTML(b):b;if(f=Bn(b),!f)return De?null:ut?ge:""}f&&zt&&ue(f.firstChild);let F=Pn(We?b:f);for(;D=F.nextNode();)zn(D),Hn(D),D.content instanceof r&&ro(D.content);if(We)return b;if(De){if(dt)for(q=ji.call(f.ownerDocument);f.firstChild;)q.appendChild(f.firstChild);else q=f;return(j.shadowroot||j.shadowrootmode)&&(q=qi.call(o,q,!0)),q}let ne=ve?f.outerHTML:f.innerHTML;return ve&&U["!doctype"]&&f.ownerDocument&&f.ownerDocument.doctype&&f.ownerDocument.doctype.name&&K(Ci,f.ownerDocument.doctype.name)&&(ne="<!DOCTYPE "+f.ownerDocument.doctype.name+`>
|
|
1
|
+
import{b as si,c as ai,d as Te}from"./chunk-KJJKC27U.js";import{c as ri}from"./chunk-SQFFII5G.js";import{a as li}from"./chunk-BLA4WJEG.js";import{a as oi}from"./chunk-4YCGUCIE.js";import{a as ci}from"./chunk-G5G7ZRTT.js";import{f as Xn,i as Kn,n as Qn,o as ei,p as ti,v as ni}from"./chunk-EO4DNTT4.js";import{a as Yt}from"./chunk-5UPNU54P.js";import{j as ii}from"./chunk-2L25BDDH.js";import{p as ao}from"./chunk-LGMUHF7N.js";import{$a as J,C as ke,Cb as Ct,D as Fe,Fa as g,G as jn,Ga as E,Ha as qt,Hb as Zn,Ia as Jt,J as B,K as P,Kb as Yn,L as oe,M as Je,T as Ze,Ta as He,U as me,Ua as Zt,W as _t,X as xt,Z as u,_ as Wn,a as ie,aa as se,ab as Z,b as Ne,da as A,fa as Ae,ga as R,h as so,hb as T,ja as V,jb as Jn,k as X,la as k,na as bt,oa as Se,pa as ye,qa as c,ra as p,sa as y,ua as z,ub as Ue,va as O,wa as _,xa as qn,y as Gn,ya as Ye}from"./chunk-TBMJSIBB.js";var{entries:xi,setPrototypeOf:pi,isFrozen:lo,getPrototypeOf:co,getOwnPropertyDescriptor:po}=Object,{freeze:Q,seal:ae,create:St}=Object,{apply:on,construct:rn}=typeof Reflect<"u"&&Reflect;Q||(Q=function(n){return n});ae||(ae=function(n){return n});on||(on=function(n,e){for(var o=arguments.length,i=new Array(o>2?o-2:0),r=2;r<o;r++)i[r-2]=arguments[r];return n.apply(e,i)});rn||(rn=function(n){for(var e=arguments.length,o=new Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];return new n(...o)});var kt=ee(Array.prototype.forEach),uo=ee(Array.prototype.lastIndexOf),di=ee(Array.prototype.pop),Xe=ee(Array.prototype.push),mo=ee(Array.prototype.splice),yt=ee(String.prototype.toLowerCase),Xt=ee(String.prototype.toString),Kt=ee(String.prototype.match),Ke=ee(String.prototype.replace),ho=ee(String.prototype.indexOf),fo=ee(String.prototype.trim),re=ee(Object.prototype.hasOwnProperty),K=ee(RegExp.prototype.test),Qe=go(TypeError);function ee(t){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var e=arguments.length,o=new Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];return on(t,n,o)}}function go(t){return function(){for(var n=arguments.length,e=new Array(n),o=0;o<n;o++)e[o]=arguments[o];return rn(t,e)}}function v(t,n){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:yt;pi&&pi(t,null);let o=n.length;for(;o--;){let i=n[o];if(typeof i=="string"){let r=e(i);r!==i&&(lo(n)||(n[o]=r),i=r)}t[i]=!0}return t}function _o(t){for(let n=0;n<t.length;n++)re(t,n)||(t[n]=null);return t}function he(t){let n=St(null);for(let[e,o]of xi(t))re(t,e)&&(Array.isArray(o)?n[e]=_o(o):o&&typeof o=="object"&&o.constructor===Object?n[e]=he(o):n[e]=o);return n}function et(t,n){for(;t!==null;){let o=po(t,n);if(o){if(o.get)return ee(o.get);if(typeof o.value=="function")return ee(o.value)}t=co(t)}function e(){return null}return e}var ui=Q(["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"]),Qt=Q(["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"]),en=Q(["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"]),xo=Q(["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"]),tn=Q(["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"]),bo=Q(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mi=Q(["#text"]),hi=Q(["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"]),nn=Q(["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"]),fi=Q(["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"]),wt=Q(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Co=ae(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ko=ae(/<%[\w\W]*|[\w\W]*%>/gm),wo=ae(/\$\{[\w\W]*/gm),So=ae(/^data-[\-\w.\u00B7-\uFFFF]+$/),yo=ae(/^aria-[\-\w]+$/),bi=ae(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),To=ae(/^(?:\w+script|data):/i),vo=ae(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ci=ae(/^html$/i),Eo=ae(/^[a-z][.\w]*(-[.\w]+)+$/i),gi=Object.freeze({__proto__:null,ARIA_ATTR:yo,ATTR_WHITESPACE:vo,CUSTOM_ELEMENT:Eo,DATA_ATTR:So,DOCTYPE_NAME:Ci,ERB_EXPR:ko,IS_ALLOWED_URI:bi,IS_SCRIPT_OR_DATA:To,MUSTACHE_EXPR:Co,TMPLIT_EXPR:wo}),tt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ao=function(){return typeof window>"u"?null:window},Ro=function(n,e){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let o=null,i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(o=e.getAttribute(i));let r="dompurify"+(o?"#"+o:"");try{return n.createPolicy(r,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},_i=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ki(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ao(),n=b=>ki(b);if(n.version="3.3.3",n.removed=[],!t||!t.document||t.document.nodeType!==tt.document||!t.Element)return n.isSupported=!1,n;let{document:e}=t,o=e,i=o.currentScript,{DocumentFragment:r,HTMLTemplateElement:s,Node:d,Element:l,NodeFilter:h,NamedNodeMap:m=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:C,DOMParser:S,trustedTypes:I}=t,L=l.prototype,le=et(L,"cloneNode"),st=et(L,"remove"),at=et(L,"nextSibling"),lt=et(L,"childNodes"),Le=et(L,"parentNode");if(typeof s=="function"){let b=e.createElement("template");b.content&&b.content.ownerDocument&&(e=b.content.ownerDocument)}let G,ge="",{implementation:_e,createNodeIterator:Gi,createDocumentFragment:ji,getElementsByTagName:Wi}=e,{importNode:qi}=o,Y=_i();n.isSupported=typeof xi=="function"&&typeof Le=="function"&&_e&&_e.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:It,ERB_EXPR:Dt,TMPLIT_EXPR:Bt,DATA_ATTR:Ji,ARIA_ATTR:Zi,IS_SCRIPT_OR_DATA:Yi,ATTR_WHITESPACE:Cn,CUSTOM_ELEMENT:Xi}=gi,{IS_ALLOWED_URI:kn}=gi,U=null,wn=v({},[...ui,...Qt,...en,...tn,...mi]),j=null,Sn=v({},[...hi,...nn,...fi,...wt]),N=Object.seal(St(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,ct=null,we=Object.seal(St(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),yn=!0,Pt=!0,Tn=!1,vn=!0,Ie=!1,pt=!0,ve=!1,Ot=!1,zt=!1,De=!1,dt=!1,ut=!1,En=!0,An=!1,Ki="user-content-",Nt=!0,We=!1,Be={},de=null,Ft=v({},["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"]),Rn=null,Mn=v({},["audio","video","img","source","image","track"]),Ht=null,$n=v({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),mt="http://www.w3.org/1998/Math/MathML",ht="http://www.w3.org/2000/svg",xe="http://www.w3.org/1999/xhtml",Pe=xe,Ut=!1,Vt=null,Qi=v({},[mt,ht,xe],Xt),ft=v({},["mi","mo","mn","ms","mtext"]),gt=v({},["annotation-xml"]),eo=v({},["title","style","font","a","script"]),qe=null,to=["application/xhtml+xml","text/html"],no="text/html",H=null,Oe=null,io=e.createElement("form"),Ln=function(a){return a instanceof RegExp||a instanceof Function},Gt=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Oe&&Oe===a)){if((!a||typeof a!="object")&&(a={}),a=he(a),qe=to.indexOf(a.PARSER_MEDIA_TYPE)===-1?no:a.PARSER_MEDIA_TYPE,H=qe==="application/xhtml+xml"?Xt:yt,U=re(a,"ALLOWED_TAGS")?v({},a.ALLOWED_TAGS,H):wn,j=re(a,"ALLOWED_ATTR")?v({},a.ALLOWED_ATTR,H):Sn,Vt=re(a,"ALLOWED_NAMESPACES")?v({},a.ALLOWED_NAMESPACES,Xt):Qi,Ht=re(a,"ADD_URI_SAFE_ATTR")?v(he($n),a.ADD_URI_SAFE_ATTR,H):$n,Rn=re(a,"ADD_DATA_URI_TAGS")?v(he(Mn),a.ADD_DATA_URI_TAGS,H):Mn,de=re(a,"FORBID_CONTENTS")?v({},a.FORBID_CONTENTS,H):Ft,je=re(a,"FORBID_TAGS")?v({},a.FORBID_TAGS,H):he({}),ct=re(a,"FORBID_ATTR")?v({},a.FORBID_ATTR,H):he({}),Be=re(a,"USE_PROFILES")?a.USE_PROFILES:!1,yn=a.ALLOW_ARIA_ATTR!==!1,Pt=a.ALLOW_DATA_ATTR!==!1,Tn=a.ALLOW_UNKNOWN_PROTOCOLS||!1,vn=a.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ie=a.SAFE_FOR_TEMPLATES||!1,pt=a.SAFE_FOR_XML!==!1,ve=a.WHOLE_DOCUMENT||!1,De=a.RETURN_DOM||!1,dt=a.RETURN_DOM_FRAGMENT||!1,ut=a.RETURN_TRUSTED_TYPE||!1,zt=a.FORCE_BODY||!1,En=a.SANITIZE_DOM!==!1,An=a.SANITIZE_NAMED_PROPS||!1,Nt=a.KEEP_CONTENT!==!1,We=a.IN_PLACE||!1,kn=a.ALLOWED_URI_REGEXP||bi,Pe=a.NAMESPACE||xe,ft=a.MATHML_TEXT_INTEGRATION_POINTS||ft,gt=a.HTML_INTEGRATION_POINTS||gt,N=a.CUSTOM_ELEMENT_HANDLING||{},a.CUSTOM_ELEMENT_HANDLING&&Ln(a.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(N.tagNameCheck=a.CUSTOM_ELEMENT_HANDLING.tagNameCheck),a.CUSTOM_ELEMENT_HANDLING&&Ln(a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(N.attributeNameCheck=a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),a.CUSTOM_ELEMENT_HANDLING&&typeof a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(N.allowCustomizedBuiltInElements=a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ie&&(Pt=!1),dt&&(De=!0),Be&&(U=v({},mi),j=St(null),Be.html===!0&&(v(U,ui),v(j,hi)),Be.svg===!0&&(v(U,Qt),v(j,nn),v(j,wt)),Be.svgFilters===!0&&(v(U,en),v(j,nn),v(j,wt)),Be.mathMl===!0&&(v(U,tn),v(j,fi),v(j,wt))),re(a,"ADD_TAGS")||(we.tagCheck=null),re(a,"ADD_ATTR")||(we.attributeCheck=null),a.ADD_TAGS&&(typeof a.ADD_TAGS=="function"?we.tagCheck=a.ADD_TAGS:(U===wn&&(U=he(U)),v(U,a.ADD_TAGS,H))),a.ADD_ATTR&&(typeof a.ADD_ATTR=="function"?we.attributeCheck=a.ADD_ATTR:(j===Sn&&(j=he(j)),v(j,a.ADD_ATTR,H))),a.ADD_URI_SAFE_ATTR&&v(Ht,a.ADD_URI_SAFE_ATTR,H),a.FORBID_CONTENTS&&(de===Ft&&(de=he(de)),v(de,a.FORBID_CONTENTS,H)),a.ADD_FORBID_CONTENTS&&(de===Ft&&(de=he(de)),v(de,a.ADD_FORBID_CONTENTS,H)),Nt&&(U["#text"]=!0),ve&&v(U,["html","head","body"]),U.table&&(v(U,["tbody"]),delete je.tbody),a.TRUSTED_TYPES_POLICY){if(typeof a.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof a.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');G=a.TRUSTED_TYPES_POLICY,ge=G.createHTML("")}else G===void 0&&(G=Ro(I,i)),G!==null&&typeof ge=="string"&&(ge=G.createHTML(""));Q&&Q(a),Oe=a}},In=v({},[...Qt,...en,...xo]),Dn=v({},[...tn,...bo]),oo=function(a){let f=Le(a);(!f||!f.tagName)&&(f={namespaceURI:Pe,tagName:"template"});let x=yt(a.tagName),D=yt(f.tagName);return Vt[a.namespaceURI]?a.namespaceURI===ht?f.namespaceURI===xe?x==="svg":f.namespaceURI===mt?x==="svg"&&(D==="annotation-xml"||ft[D]):!!In[x]:a.namespaceURI===mt?f.namespaceURI===xe?x==="math":f.namespaceURI===ht?x==="math"&>[D]:!!Dn[x]:a.namespaceURI===xe?f.namespaceURI===ht&&!gt[D]||f.namespaceURI===mt&&!ft[D]?!1:!Dn[x]&&(eo[x]||!In[x]):!!(qe==="application/xhtml+xml"&&Vt[a.namespaceURI]):!1},ue=function(a){Xe(n.removed,{element:a});try{Le(a).removeChild(a)}catch{st(a)}},Ee=function(a,f){try{Xe(n.removed,{attribute:f.getAttributeNode(a),from:f})}catch{Xe(n.removed,{attribute:null,from:f})}if(f.removeAttribute(a),a==="is")if(De||dt)try{ue(f)}catch{}else try{f.setAttribute(a,"")}catch{}},Bn=function(a){let f=null,x=null;if(zt)a="<remove></remove>"+a;else{let F=Kt(a,/^[\r\n\t ]+/);x=F&&F[0]}qe==="application/xhtml+xml"&&Pe===xe&&(a='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+a+"</body></html>");let D=G?G.createHTML(a):a;if(Pe===xe)try{f=new S().parseFromString(D,qe)}catch{}if(!f||!f.documentElement){f=_e.createDocument(Pe,"template",null);try{f.documentElement.innerHTML=Ut?ge:D}catch{}}let q=f.body||f.documentElement;return a&&x&&q.insertBefore(e.createTextNode(x),q.childNodes[0]||null),Pe===xe?Wi.call(f,ve?"html":"body")[0]:ve?f.documentElement:q},Pn=function(a){return Gi.call(a.ownerDocument||a,a,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},jt=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")},On=function(a){return typeof d=="function"&&a instanceof d};function be(b,a,f){kt(b,x=>{x.call(n,a,f,Oe)})}let zn=function(a){let f=null;if(be(Y.beforeSanitizeElements,a,null),jt(a))return ue(a),!0;let x=H(a.nodeName);if(be(Y.uponSanitizeElement,a,{tagName:x,allowedTags:U}),pt&&a.hasChildNodes()&&!On(a.firstElementChild)&&K(/<[/\w!]/g,a.innerHTML)&&K(/<[/\w!]/g,a.textContent)||a.nodeType===tt.progressingInstruction||pt&&a.nodeType===tt.comment&&K(/<[/\w]/g,a.data))return ue(a),!0;if(!(we.tagCheck instanceof Function&&we.tagCheck(x))&&(!U[x]||je[x])){if(!je[x]&&Fn(x)&&(N.tagNameCheck instanceof RegExp&&K(N.tagNameCheck,x)||N.tagNameCheck instanceof Function&&N.tagNameCheck(x)))return!1;if(Nt&&!de[x]){let D=Le(a)||a.parentNode,q=lt(a)||a.childNodes;if(q&&D){let F=q.length;for(let ne=F-1;ne>=0;--ne){let Ce=le(q[ne],!0);Ce.__removalCount=(a.__removalCount||0)+1,D.insertBefore(Ce,at(a))}}}return ue(a),!0}return a instanceof l&&!oo(a)||(x==="noscript"||x==="noembed"||x==="noframes")&&K(/<\/no(script|embed|frames)/i,a.innerHTML)?(ue(a),!0):(Ie&&a.nodeType===tt.text&&(f=a.textContent,kt([It,Dt,Bt],D=>{f=Ke(f,D," ")}),a.textContent!==f&&(Xe(n.removed,{element:a.cloneNode()}),a.textContent=f)),be(Y.afterSanitizeElements,a,null),!1)},Nn=function(a,f,x){if(ct[f]||En&&(f==="id"||f==="name")&&(x in e||x in io))return!1;if(!(Pt&&!ct[f]&&K(Ji,f))){if(!(yn&&K(Zi,f))){if(!(we.attributeCheck instanceof Function&&we.attributeCheck(f,a))){if(!j[f]||ct[f]){if(!(Fn(a)&&(N.tagNameCheck instanceof RegExp&&K(N.tagNameCheck,a)||N.tagNameCheck instanceof Function&&N.tagNameCheck(a))&&(N.attributeNameCheck instanceof RegExp&&K(N.attributeNameCheck,f)||N.attributeNameCheck instanceof Function&&N.attributeNameCheck(f,a))||f==="is"&&N.allowCustomizedBuiltInElements&&(N.tagNameCheck instanceof RegExp&&K(N.tagNameCheck,x)||N.tagNameCheck instanceof Function&&N.tagNameCheck(x))))return!1}else if(!Ht[f]){if(!K(kn,Ke(x,Cn,""))){if(!((f==="src"||f==="xlink:href"||f==="href")&&a!=="script"&&ho(x,"data:")===0&&Rn[a])){if(!(Tn&&!K(Yi,Ke(x,Cn,"")))){if(x)return!1}}}}}}}return!0},Fn=function(a){return a!=="annotation-xml"&&Kt(a,Xi)},Hn=function(a){be(Y.beforeSanitizeAttributes,a,null);let{attributes:f}=a;if(!f||jt(a))return;let x={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0},D=f.length;for(;D--;){let q=f[D],{name:F,namespaceURI:ne,value:Ce}=q,ze=H(F),Wt=Ce,W=F==="value"?Wt:fo(Wt);if(x.attrName=ze,x.attrValue=W,x.keepAttr=!0,x.forceKeepAttr=void 0,be(Y.uponSanitizeAttribute,a,x),W=x.attrValue,An&&(ze==="id"||ze==="name")&&(Ee(F,a),W=Ki+W),pt&&K(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,W)){Ee(F,a);continue}if(ze==="attributename"&&Kt(W,"href")){Ee(F,a);continue}if(x.forceKeepAttr)continue;if(!x.keepAttr){Ee(F,a);continue}if(!vn&&K(/\/>/i,W)){Ee(F,a);continue}Ie&&kt([It,Dt,Bt],Vn=>{W=Ke(W,Vn," ")});let Un=H(a.nodeName);if(!Nn(Un,ze,W)){Ee(F,a);continue}if(G&&typeof I=="object"&&typeof I.getAttributeType=="function"&&!ne)switch(I.getAttributeType(Un,ze)){case"TrustedHTML":{W=G.createHTML(W);break}case"TrustedScriptURL":{W=G.createScriptURL(W);break}}if(W!==Wt)try{ne?a.setAttributeNS(ne,F,W):a.setAttribute(F,W),jt(a)?ue(a):di(n.removed)}catch{Ee(F,a)}}be(Y.afterSanitizeAttributes,a,null)},ro=function b(a){let f=null,x=Pn(a);for(be(Y.beforeSanitizeShadowDOM,a,null);f=x.nextNode();)be(Y.uponSanitizeShadowNode,f,null),zn(f),Hn(f),f.content instanceof r&&b(f.content);be(Y.afterSanitizeShadowDOM,a,null)};return n.sanitize=function(b){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=null,x=null,D=null,q=null;if(Ut=!b,Ut&&(b="<!-->"),typeof b!="string"&&!On(b))if(typeof b.toString=="function"){if(b=b.toString(),typeof b!="string")throw Qe("dirty is not a string, aborting")}else throw Qe("toString is not a function");if(!n.isSupported)return b;if(Ot||Gt(a),n.removed=[],typeof b=="string"&&(We=!1),We){if(b.nodeName){let Ce=H(b.nodeName);if(!U[Ce]||je[Ce])throw Qe("root node is forbidden and cannot be sanitized in-place")}}else if(b instanceof d)f=Bn("<!---->"),x=f.ownerDocument.importNode(b,!0),x.nodeType===tt.element&&x.nodeName==="BODY"||x.nodeName==="HTML"?f=x:f.appendChild(x);else{if(!De&&!Ie&&!ve&&b.indexOf("<")===-1)return G&&ut?G.createHTML(b):b;if(f=Bn(b),!f)return De?null:ut?ge:""}f&&zt&&ue(f.firstChild);let F=Pn(We?b:f);for(;D=F.nextNode();)zn(D),Hn(D),D.content instanceof r&&ro(D.content);if(We)return b;if(De){if(dt)for(q=ji.call(f.ownerDocument);f.firstChild;)q.appendChild(f.firstChild);else q=f;return(j.shadowroot||j.shadowrootmode)&&(q=qi.call(o,q,!0)),q}let ne=ve?f.outerHTML:f.innerHTML;return ve&&U["!doctype"]&&f.ownerDocument&&f.ownerDocument.doctype&&f.ownerDocument.doctype.name&&K(Ci,f.ownerDocument.doctype.name)&&(ne="<!DOCTYPE "+f.ownerDocument.doctype.name+`>
|
|
2
2
|
`+ne),Ie&&kt([It,Dt,Bt],Ce=>{ne=Ke(ne,Ce," ")}),G&&ut?G.createHTML(ne):ne},n.setConfig=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Gt(b),Ot=!0},n.clearConfig=function(){Oe=null,Ot=!1},n.isValidAttribute=function(b,a,f){Oe||Gt({});let x=H(b),D=H(a);return Nn(x,D,f)},n.addHook=function(b,a){typeof a=="function"&&Xe(Y[b],a)},n.removeHook=function(b,a){if(a!==void 0){let f=uo(Y[b],a);return f===-1?void 0:mo(Y[b],f,1)[0]}return di(Y[b])},n.removeHooks=function(b){Y[b]=[]},n.removeAllHooks=function(){Y=_i()},n}var wi=ki();function cn(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var $e=cn();function Ri(t){$e=t}var Re={exec:()=>null};function M(t,n=""){let e=typeof t=="string"?t:t.source,o={replace:(i,r)=>{let s=typeof r=="string"?r:r.source;return s=s.replace(te.caret,"$1"),e=e.replace(i,s),o},getRegex:()=>new RegExp(e,n)};return o}var Mo=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),te={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)}}>`)},$o=/^(?:[ \t]*(?:\n|$))+/,Lo=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Io=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,rt=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Do=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,pn=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Mi=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,$i=M(Mi).replace(/bull/g,pn).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(),Bo=M(Mi).replace(/bull/g,pn).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(),dn=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Po=/^[^\n]+/,un=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Oo=M(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",un).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),zo=M(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,pn).getRegex(),Rt="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",mn=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,No=M("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",mn).replace("tag",Rt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Li=M(dn).replace("hr",rt).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",Rt).getRegex(),Fo=M(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Li).getRegex(),hn={blockquote:Fo,code:Lo,def:Oo,fences:Io,heading:Do,hr:rt,html:No,lheading:$i,list:zo,newline:$o,paragraph:Li,table:Re,text:Po},Si=M("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",rt).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",Rt).getRegex(),Ho=Ne(ie({},hn),{lheading:Bo,table:Si,paragraph:M(dn).replace("hr",rt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Si).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",Rt).getRegex()}),Uo=Ne(ie({},hn),{html:M(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",mn).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:Re,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:M(dn).replace("hr",rt).replace("heading",` *#{1,6} *[^
|
|
3
3
|
]`).replace("lheading",$i).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),Vo=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Go=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ii=/^( {2,}|\\)\n(?!\s*$)/,jo=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ve=/[\p{P}\p{S}]/u,Mt=/[\s\p{P}\p{S}]/u,fn=/[^\s\p{P}\p{S}]/u,Wo=M(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Mt).getRegex(),Di=/(?!~)[\p{P}\p{S}]/u,qo=/(?!~)[\s\p{P}\p{S}]/u,Jo=/(?:[^\s\p{P}\p{S}]|~)/u,Zo=M(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Mo?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Bi=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Yo=M(Bi,"u").replace(/punct/g,Ve).getRegex(),Xo=M(Bi,"u").replace(/punct/g,Di).getRegex(),Pi="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ko=M(Pi,"gu").replace(/notPunctSpace/g,fn).replace(/punctSpace/g,Mt).replace(/punct/g,Ve).getRegex(),Qo=M(Pi,"gu").replace(/notPunctSpace/g,Jo).replace(/punctSpace/g,qo).replace(/punct/g,Di).getRegex(),er=M("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,fn).replace(/punctSpace/g,Mt).replace(/punct/g,Ve).getRegex(),tr=M(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Ve).getRegex(),nr="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",ir=M(nr,"gu").replace(/notPunctSpace/g,fn).replace(/punctSpace/g,Mt).replace(/punct/g,Ve).getRegex(),or=M(/\\(punct)/,"gu").replace(/punct/g,Ve).getRegex(),rr=M(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),sr=M(mn).replace("(?:-->|$)","-->").getRegex(),ar=M("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",sr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),vt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,lr=M(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",vt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Oi=M(/^!?\[(label)\]\[(ref)\]/).replace("label",vt).replace("ref",un).getRegex(),zi=M(/^!?\[(ref)\](?:\[\])?/).replace("ref",un).getRegex(),cr=M("reflink|nolink(?!\\()","g").replace("reflink",Oi).replace("nolink",zi).getRegex(),yi=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,gn={_backpedal:Re,anyPunctuation:or,autolink:rr,blockSkip:Zo,br:Ii,code:Go,del:Re,delLDelim:Re,delRDelim:Re,emStrongLDelim:Yo,emStrongRDelimAst:Ko,emStrongRDelimUnd:er,escape:Vo,link:lr,nolink:zi,punctuation:Wo,reflink:Oi,reflinkSearch:cr,tag:ar,text:jo,url:Re},pr=Ne(ie({},gn),{link:M(/^!?\[(label)\]\((.*?)\)/).replace("label",vt).getRegex(),reflink:M(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",vt).getRegex()}),sn=Ne(ie({},gn),{emStrongRDelimAst:Qo,emStrongLDelim:Xo,delLDelim:tr,delRDelim:ir,url:M(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",yi).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:M(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",yi).getRegex()}),dr=Ne(ie({},sn),{br:M(Ii).replace("{2,}","*").getRegex(),text:M(sn.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),Tt={normal:hn,gfm:Ho,pedantic:Uo},nt={normal:gn,gfm:sn,breaks:dr,pedantic:pr},ur={"&":"&","<":"<",">":">",'"':""","'":"'"},Ti=t=>ur[t];function fe(t,n){if(n){if(te.escapeTest.test(t))return t.replace(te.escapeReplace,Ti)}else if(te.escapeTestNoEncode.test(t))return t.replace(te.escapeReplaceNoEncode,Ti);return t}function vi(t){try{t=encodeURI(t).replace(te.percentDecode,"%")}catch{return null}return t}function Ei(t,n){let e=t.replace(te.findPipe,(r,s,d)=>{let l=!1,h=s;for(;--h>=0&&d[h]==="\\";)l=!l;return l?"|":" |"}),o=e.split(te.splitPipe),i=0;if(o[0].trim()||o.shift(),o.length>0&&!o.at(-1)?.trim()&&o.pop(),n)if(o.length>n)o.splice(n);else for(;o.length<n;)o.push("");for(;i<o.length;i++)o[i]=o[i].trim().replace(te.slashPipe,"|");return o}function it(t,n,e){let o=t.length;if(o===0)return"";let i=0;for(;i<o;){let r=t.charAt(o-i-1);if(r===n&&!e)i++;else if(r!==n&&e)i++;else break}return t.slice(0,o-i)}function mr(t,n){if(t.indexOf(n[1])===-1)return-1;let e=0;for(let o=0;o<t.length;o++)if(t[o]==="\\")o++;else if(t[o]===n[0])e++;else if(t[o]===n[1]&&(e--,e<0))return o;return e>0?-2:-1}function hr(t,n=0){let e=n,o="";for(let i of t)if(i===" "){let r=4-e%4;o+=" ".repeat(r),e+=r}else o+=i,e++;return o}function Ai(t,n,e,o,i){let r=n.href,s=n.title||null,d=t[1].replace(i.other.outputLinkReplace,"$1");o.state.inLink=!0;let l={type:t[0].charAt(0)==="!"?"image":"link",raw:e,href:r,title:s,text:d,tokens:o.inlineTokens(d)};return o.state.inLink=!1,l}function fr(t,n,e){let o=t.match(e.other.indentCodeCompensation);if(o===null)return n;let i=o[1];return n.split(`
|
|
4
4
|
`).map(r=>{let s=r.match(e.other.beginningSpace);if(s===null)return r;let[d]=s;return d.length>=i.length?r.slice(i.length):r}).join(`
|
|
@@ -70,4 +70,4 @@ Please report this to https://github.com/markedjs/marked.`,t){let o="<p>An error
|
|
|
70
70
|
`).slice(1).join(`
|
|
71
71
|
`).trim();return Te.looksLikeJson(i)?Te.formatJson(i):i});typeLabel_$=T(()=>{switch(this.view().kind){case w.userPrompt:return"User";case w.assistant:return"Assistant";case w.tool:return"Tool Call";case w.toolResult:return"Tool Result";case w.error:return"Error";case w.info:return"Info";case w.status:return"Status";case w.thinking:return"Thinking";case w.runIntent:return"Run intent";case w.iteration:return"Iteration";case w.statusUpdate:return"Status update";case w.raw:return"Raw";case w.result:return"Result";case w.toolGroup:return"Tool group";case w.subAgentGroup:return"Sub-agent";default:return String(this.view().kind)}});kindEnum=w;tts_$=T(()=>this.view().tts??null);ttsLoading_$=se(!1);showTtsButton_$=T(()=>{let e=this.tts_$();return e!==null&&!e.hasTtsAudio&&e.content.trim().length>0});autoReadEffect=Jn(()=>{if(this.isAutoPlayFired||this.view().kind!==w.assistant)return;let e=this.tts_$();!e||e.hasTtsAudio||e.content.trim().length===0||this.ttsLoading_$()||$t.shouldAutoPlay(e.sessionId,e.timestampIso)&&(this.isAutoPlayFired=!0,this.handleTtsPlayClick())});ttsAudioUrl_$=T(()=>{let e=this.tts_$();if(!e||!e.hasTtsAudio)return null;let o=this.voiceSttQaUi_DS.getTtsMessageAudioUrl(e.messageKey);return o.length>0?o:null});handleTtsPlayClick(){return X(this,null,function*(){let e=this.tts_$();if(!e||this.ttsLoading_$())return;this.ttsLoading_$.set(!0);let o,i,r;try{o=yield this.voiceSttQaUi_DS.getOrCreateTtsMessageAudio({sessionId:e.sessionId,role:e.role,content:e.content,timestamp:e.timestampIso}),i=URL.createObjectURL(o);let s=i;r=new Audio(i);try{yield r.play()}catch(d){URL.revokeObjectURL(s);let l=this.voiceSttQaUi_DS.getTtsMessageAudioUrl(e.messageKey);if(l.length===0)throw d;r=new Audio(l),yield r.play(),this.ttsCached.emit(e.messageKey);return}r.onended=()=>{URL.revokeObjectURL(s)},this.ttsCached.emit(e.messageKey)}catch(s){i!=null&&URL.revokeObjectURL(i);let d=yield t.diagnoseAudioBlobMagic(o),l=r?.error?.code===4,h=l&&d!=null&&!d.isMp3Magic&&(o?.type==="audio/mpeg"||o?.type===""),m={messageKey:e.messageKey,sessionId:e.sessionId,role:e.role,contentLength:e.content.length,timestampIso:e.timestampIso,blobSize:o?.size,blobType:o?.type,blobUrlCreated:i!=null,audioReadyState:r?.readyState,audioNetworkState:r?.networkState,audioErrorCode:r?.error?.code,audioErrorMessage:r?.error?.message,originalErrorName:s instanceof Error?s.name:typeof s,originalErrorMessage:s instanceof Error?s.message:String(s),payloadMagicHex:d?.magicHex,isMp3Magic:d?.isMp3Magic,isPayloadCorruptionLikely:h,diagnosticHint:h?"TTS provider returned non-MP3 payload despite audio/mpeg MIME \u2014 first bytes do not match MP3 magic (FF FB / FF F3 / FF F2 / 49 44 33). Provider/server-side audio generation likely corrupted.":l?"MEDIA_ERR_SRC_NOT_SUPPORTED \u2014 browser refused to decode the audio source. May be Chromium URL-safety-check (cycle 22 fallback path), unsupported codec, or rare format variant.":void 0},C=Object.assign(new Error(h?`TTS audio playback failed (payload corruption likely \u2014 non-MP3 magic ${d?.magicHex}): ${s instanceof Error?s.message:String(s)}`:`TTS audio playback failed: ${s instanceof Error?s.message:String(s)}`),{errorCode:"CCAP-TTS-PLAY-FAIL",additionalContent:m});this.globalError_CS.showError(C,"s-agent-console-message-bubble")}finally{this.ttsLoading_$.set(!1)}})}static diagnoseAudioBlobMagic(e){return X(this,null,function*(){if(e==null||e.size<4)return null;try{let i=yield e.slice(0,16).arrayBuffer(),r=new Uint8Array(i),s=[];for(let I=0;I<r.length;I++)s.push(r[I].toString(16).padStart(2,"0").toUpperCase());let d=s.join(" "),l=r[0],h=r[1],m=r[2];return{magicHex:d,isMp3Magic:l===255&&(h===251||h===243||h===242||h===250||h===244)||l===73&&h===68&&m===51}}catch{return null}})}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 X(this,null,function*(){yield xn.handleCodeCopyClick(e,o=>this.globalError_CS.copyToClipboard(o))})}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=Fe({type:t,selectors:[["app-s-agent-console-message-bubble"]],inputs:{view:[1,"view"]},outputs:{ttsCached:"ttsCached"},standalone:!0,features:[He],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(o,i){if(o&1&&A(0,Ir,16,15,"div",0)(1,Ur,17,14,"div",1)(2,ns,17,14,"div",1)(3,rs,8,3,"div",2)(4,ls,14,11,"div",3)(5,us,14,12,"div",0)(6,hs,10,2,"details",4)(7,_s,20,3,"details",5)(8,ys,15,16,"div",0)(9,Rs,17,11,"div",6),o&2){let r,s;k((r=i.view().kind)===i.kindEnum.tool?0:r===i.kindEnum.userPrompt?1:r===i.kindEnum.assistant?2:r===i.kindEnum.statusUpdate?3:r===i.kindEnum.error?4:r===i.kindEnum.toolResult?5:r===i.kindEnum.toolGroup?6:r===i.kindEnum.subAgentGroup?7:8),u(9),k((s=i.isRawInfoOpen_$()&&i.rawOverlayBundle_$())?9:-1,s)}},dependencies:()=>[t,Ue,si,Fi,ai,li],styles:[`@charset "UTF-8";
|
|
72
72
|
/*# sourceMappingURL=s-agent-console-message-bubble.component-QJSDQEWX.css.map */`]})}return t})();var Ms=[[["","sChatColumnHeader",""]],[["","sChatColumnScroll",""]],[["","sChatColumnOverlay",""]],[["","sChatColumnComposer",""]]],$s=["[sChatColumnHeader]","[sChatColumnScroll]","[sChatColumnOverlay]","[sChatColumnComposer]"],Ia=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275cmp=Fe({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:[He],ngContentSelectors:$s,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(o,i){o&1&&(qn(Ms),c(0,"div",0),Ye(1),p(),c(2,"div",1)(3,"div",2),Ye(4,1),p(),Ye(5,2),p(),c(6,"div",0),Ye(7,3),p())},dependencies:[Ue],encapsulation:2})}return t})();var bn=so(ao());var Vi=(()=>{class t{mrg_AS=ke(oi);erg_AS=ke(ci);llmEntries_$=se([]);llmLoading_$=se(!1);llmLoadError_$=se(null);isLlmLoaded=!1;llmLoadPromise=null;embeddingEntries_$=se([]);embeddingLoading_$=se(!1);embeddingLoadError_$=se(null);isEmbeddingLoaded=!1;embeddingLoadPromise=null;enabledLlmModels_$=T(()=>this.llmEntries_$().filter(e=>e.enabled));enabledLlmProviders_$=T(()=>{let e=new Map;for(let o of this.enabledLlmModels_$())e.has(o.provider)||e.set(o.provider,t.llmProviderLabel(o.provider));return[...e.entries()].map(([o,i])=>({value:o,label:i}))});isLlmEmpty_$=T(()=>this.isLlmLoaded&&!this.llmLoading_$()&&this.enabledLlmModels_$().length===0);enabledEmbeddingModels_$=T(()=>this.embeddingEntries_$().filter(e=>e.enabled===!0));enabledEmbeddingProviders_$=T(()=>{let e=new Map;for(let o of this.enabledEmbeddingModels_$()){let i=o.embeddingBackend??"";i&&!e.has(i)&&e.set(i,t.embeddingBackendLabel(i))}return[...e.entries()].map(([o,i])=>({value:o,label:i}))});isEmbeddingEmpty_$=T(()=>this.isEmbeddingLoaded&&!this.embeddingLoading_$()&&this.enabledEmbeddingModels_$().length===0);ensureLoaded(e){return X(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 X(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,o){return e==="llm"?this.enabledLlmModels_$().filter(i=>i.provider===o).map(i=>i.modelName):this.enabledEmbeddingModels_$().filter(i=>i.embeddingBackend===o).map(i=>i.modelId??"")}fetchLlm(){return X(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),bn.DyFM_Error.logSimple("AIS_RegistrySsot_ControlService | fetchLlm failed",e)}finally{this.llmLoading_$.set(!1)}})}fetchEmbedding(){return X(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),bn.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(o){return new(o||t)};static \u0275prov=Gn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ls=(t,n)=>n.value;function Is(t,n){t&1&&(c(0,"div",0),y(1,"span",3),c(2,"span"),g(3,"Registry bet\xF6lt\xE9se\u2026"),p()())}function Ds(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);u(4),R("routerLink",e.registryRoute_$())}}function Bs(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);u(4),R("routerLink",e.registryRoute_$())}}function Ps(t,n){if(t&1&&(c(0,"div",1),A(1,Ds,13,1)(2,Bs,13,1),p()),t&2){let e=_();u(),k(e.registryKind()==="llm"?1:2)}}function Os(t,n){if(t&1&&(c(0,"option",11),g(1),p()),t&2){let e=n.$implicit;R("value",e.value),u(),E(e.label)}}function zs(t,n){if(t&1){let e=z();c(0,"div",7)(1,"label",8),g(2),p(),c(3,"select",9),O("ngModelChange",function(i){B(e);let r=_(2);return P(r.handleProviderChange(i))}),c(4,"option",10),g(5,"\u2014 V\xE1lassz \u2014"),p(),Se(6,Os,2,2,"option",11,Ls),p()()}if(t&2){let e=_(2);u(2),E(e.providerLabel()),u(),R("ngModel",e.selectedProvider())("disabled",e.disabled()),u(3),ye(e.providerOptions_$())}}function Ns(t,n){if(t&1&&(c(0,"option",11),g(1),p()),t&2){let e=n.$implicit;R("value",e),u(),E(e)}}function Fs(t,n){t&1&&(c(0,"span",12),g(1,"A kiv\xE1lasztott providernek nincs enged\xE9lyezett modellje."),p())}function Hs(t,n){if(t&1){let e=z();c(0,"div",2),A(1,zs,8,3,"div",7),c(2,"div",7)(3,"label",8),g(4),p(),c(5,"select",9),O("ngModelChange",function(i){B(e);let r=_();return P(r.handleModelChange(i))}),c(6,"option",10),g(7,"\u2014 V\xE1lassz modellt \u2014"),p(),Se(8,Ns,2,2,"option",11,bt),p(),A(10,Fs,2,0,"span",12),p()()}if(t&2){let e=_();u(),k(e.showProviderSelect_$()?1:-1),u(3),E(e.modelLabel()),u(),R("ngModel",e.selectedModel())("disabled",e.disabled()||e.modelOptions_$().length===0),u(3),ye(e.modelOptions_$()),u(2),k(e.modelOptions_$().length===0&&(e.selectedProvider()||e.providerFilter())?10:-1)}}var Za=(()=>{class t{registrySsot_CS=ke(Vi);registryKind=me.required();selectedProvider=me("");selectedModel=me("");providerLabel=me("Provider");modelLabel=me("Modell");disabled=me(!1);providerFilter=me(void 0);providerChange=Ze();modelChange=Ze();isEmpty_$=T(()=>this.registryKind()==="llm"?this.registrySsot_CS.isLlmEmpty_$():this.registrySsot_CS.isEmbeddingEmpty_$());isLoading_$=T(()=>this.registryKind()==="llm"?this.registrySsot_CS.llmLoading_$():this.registrySsot_CS.embeddingLoading_$());providerOptions_$=T(()=>this.registryKind()==="llm"?this.registrySsot_CS.enabledLlmProviders_$():this.registrySsot_CS.enabledEmbeddingProviders_$());modelOptions_$=T(()=>{let e=this.providerFilter()??this.selectedProvider();return e?this.registrySsot_CS.getModelsForProvider(this.registryKind(),e):[]});registryRoute_$=T(()=>this.registryKind()==="llm"?"/model-registry":"/embedding-registry");showProviderSelect_$=T(()=>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(o){return new(o||t)};static \u0275cmp=Fe({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:[He],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(o,i){o&1&&A(0,Is,4,0,"div",0)(1,Ps,3,1,"div",1)(2,Hs,11,5,"div",2),o&2&&(k(i.isLoading_$()?0:-1),u(),k(i.isEmpty_$()&&!i.isLoading_$()?1:-1),u(),k(!i.isEmpty_$()&&!i.isLoading_$()?2:-1))},dependencies:[Ue,ni,ei,ti,Qn,Xn,Kn,Yn,Zn],encapsulation:2})}return t})();export{xn as a,w as b,Ge as c,$t as d,Fi as e,Ra as f,Ia as g,Vi as h,Za as i};
|
|
73
|
-
//# sourceMappingURL=chunk-
|
|
73
|
+
//# sourceMappingURL=chunk-SSVNU5XX.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{a as K,b as J,c as X}from"./chunk-KJJKC27U.js";import{c as U,f as H,i as N,v as O}from"./chunk-EO4DNTT4.js";import{f as Q}from"./chunk-P47C3DF2.js";import{$a as F,C as E,D as x,Fa as m,Ha as y,J as $,K as v,L as b,T as g,Ta as A,U as d,Z as a,aa as r,ab as z,da as w,ga as f,ha as W,hb as L,ia as j,ja as D,k as n,la as h,mb as B,oa as G,pa as q,qa as c,ra as u,sa as P,ua as R,ub as V,va as S,wa as p,y as T}from"./chunk-TBMJSIBB.js";var I=class s{static normalizeNewlines(l){return l.replace(/\r\n/g,`
|
|
2
|
+
`).replace(/\r/g,`
|
|
3
|
+
`)}static sha256HexOfNormalized(l){return n(this,null,function*(){let e=s.normalizeNewlines(l),i=new TextEncoder().encode(e),o=yield crypto.subtle.digest("SHA-256",i),_=new Uint8Array(o),C="";for(let k=0;k<_.length;k+=1)C+=_[k].toString(16).padStart(2,"0");return C})}};var Y=(()=>{class s{projects_$=r([]);projectsLoading_$=r(!1);projectsError_$=r(null);projectsLoadedOnce_$=r(!1);activeProject_$=r(null);activeProjectComputedCcapHost_$=r(!1);activeProjectLoading_$=r(!1);activeProjectError_$=r(null);userRequests_$=r([]);userRequestsLoading_$=r(!1);userRequestsError_$=r(null);discoveredProjects_$=r([]);discoveryLoading_$=r(!1);discoveryError_$=r(null);gitStatusLoading_$=r(!1);gitStatusError_$=r(null);syncLoading_$=r(!1);syncError_$=r(null);lastSyncResult_$=r(null);fileContents_$=r(null);fileContentLoading_$=r(!1);fileContentError_$=r(null);testErrorReportsClearing_$=r(!1);agentReports_$=r([]);agentReportsLoading_$=r(!1);agentReportsError_$=r(null);activeAgentReport_$=r(null);activeAgentReportLoading_$=r(!1);activeAgentReportError_$=r(null);reviewsMeta_$=r([]);reviewsMetaLoading_$=r(!1);reviewsMetaError_$=r(null);reviewResult_$=r(null);reviewsRunning_$=r(!1);reviewsRunError_$=r(null);userInputWizardSuggestLoading_$=r(!1);userInputWizardSuggestError_$=r(null);userInputWizardFinalizeLoading_$=r(!1);userInputWizardFinalizeError_$=r(null);userInputWizardLastLlmSystemPrompt_$=r(null);userInputWizardLastLlmUserMessage_$=r(null);groups_$=r([]);groupsLoading_$=r(!1);groupsError_$=r(null);activeGroup_$=r(null);groupFiles_$=r(null);groupFilesLoading_$=r(!1);groupFilesError_$=r(null);crossInstanceProjects_$=r([]);crossInstanceLoading_$=r(!1);crossInstanceError_$=r(null);currentCcapId_$=r(null);cloneLoading_$=r(!1);cloneError_$=r(null);pm_AS=E(Q);loadProjects(){return n(this,null,function*(){this.projectsLoading_$.set(!0),this.projectsError_$.set(null);try{let e=yield this.pm_AS.listProjects();this.projects_$.set(e.projects),this.projectsLoadedOnce_$.set(!0)}catch(e){this.projectsError_$.set(e)}finally{this.projectsLoading_$.set(!1)}})}loadProject(e){return n(this,null,function*(){this.activeProjectLoading_$.set(!0),this.activeProjectError_$.set(null);try{let t=yield this.pm_AS.getProject(e);this.activeProject_$.set(t.project),this.activeProjectComputedCcapHost_$.set(t.computedCcapRevisionedHost)}catch(t){this.activeProjectError_$.set(t)}finally{this.activeProjectLoading_$.set(!1)}})}createProject(e){return n(this,null,function*(){let t=yield this.pm_AS.createProject(e);return yield this.loadProjects(),t.project})}updateProject(e,t){return n(this,null,function*(){let i=yield this.pm_AS.updateProject(e,t);this.activeProject_$.set(i.project),this.activeProjectComputedCcapHost_$.set(i.computedCcapRevisionedHost),this.projects_$.update(o=>o.map(_=>_._id===e?i.project:_))})}archiveProject(e){return n(this,null,function*(){yield this.pm_AS.archiveProject(e),yield this.loadProjects(),this.activeProject_$()?._id===e&&(this.activeProject_$.set(null),this.activeProjectComputedCcapHost_$.set(!1))})}loadGroups(){return n(this,null,function*(){this.groupsLoading_$.set(!0),this.groupsError_$.set(null);try{let e=yield this.pm_AS.listGroups();this.groups_$.set(e.groups)}catch(e){this.groupsError_$.set(e)}finally{this.groupsLoading_$.set(!1)}})}createGroup(e){return n(this,null,function*(){yield this.pm_AS.createGroup(e),yield this.loadGroups()})}archiveGroup(e){return n(this,null,function*(){yield this.pm_AS.archiveGroup(e),this.activeGroup_$()?._id===e&&this.activeGroup_$.set(null),yield this.loadGroups()})}selectGroup(e){this.activeGroup_$.set(e)}loadGroupFiles(e){return n(this,null,function*(){this.groupFilesLoading_$.set(!0),this.groupFilesError_$.set(null);try{let t=yield this.pm_AS.getGroupFiles(e);this.groupFiles_$.set(t)}catch(t){this.groupFilesError_$.set(t)}finally{this.groupFilesLoading_$.set(!1)}})}loadCrossInstanceProjects(){return n(this,null,function*(){this.crossInstanceLoading_$.set(!0),this.crossInstanceError_$.set(null);try{let e=yield this.pm_AS.listAllProjectsAcrossInstances();this.crossInstanceProjects_$.set(e.projects),this.currentCcapId_$.set(e.currentCcapId)}catch(e){this.crossInstanceError_$.set(e)}finally{this.crossInstanceLoading_$.set(!1)}})}cloneProject(e){return n(this,null,function*(){this.cloneLoading_$.set(!0),this.cloneError_$.set(null);try{yield this.pm_AS.cloneProject({sourceProjectId:e.sourceProjectId,targetParentDir:e.targetParentDir,repoName:e.repoName}),yield this.loadProjects()}catch(t){this.cloneError_$.set(t)}finally{this.cloneLoading_$.set(!1)}})}cloneGroup(e){return n(this,null,function*(){this.cloneLoading_$.set(!0),this.cloneError_$.set(null);try{yield this.pm_AS.cloneGroup({sourceGroupId:e.sourceGroupId,targetParentDir:e.targetParentDir}),yield this.loadProjects(),yield this.loadGroups()}catch(t){this.cloneError_$.set(t)}finally{this.cloneLoading_$.set(!1)}})}discoverProjects(e){return n(this,null,function*(){this.discoveryLoading_$.set(!0),this.discoveryError_$.set(null),this.discoveredProjects_$.set([]);try{let t=yield this.pm_AS.discoverProjects(e);this.discoveredProjects_$.set(t.discoveredProjects)}catch(t){this.discoveryError_$.set(t)}finally{this.discoveryLoading_$.set(!1)}})}createDiscoveredProjects(e){return n(this,null,function*(){for(let t of e){let i={name:t.name,localPath:t.localPath,description:t.description,githubRepoUrl:t.githubRepoUrl,isActive:!0};yield this.pm_AS.createProject(i)}yield this.loadProjects()})}clearDiscovery(){this.discoveredProjects_$.set([]),this.discoveryError_$.set(null),this.discoveryLoading_$.set(!1)}refreshGitStatus(e){return n(this,null,function*(){this.gitStatusLoading_$.set(!0),this.gitStatusError_$.set(null);try{let t=yield this.pm_AS.refreshGitStatus(e);this.activeProject_$.set(t.project);try{let i=yield this.pm_AS.getProject(e);this.activeProjectComputedCcapHost_$.set(i.computedCcapRevisionedHost)}catch{}this.projects_$.update(i=>i.map(o=>o._id===e?t.project:o))}catch(t){this.gitStatusError_$.set(t)}finally{this.gitStatusLoading_$.set(!1)}})}syncProject(e){return n(this,null,function*(){this.syncLoading_$.set(!0),this.syncError_$.set(null),this.lastSyncResult_$.set(null);try{let t=yield this.pm_AS.syncProject(e);this.lastSyncResult_$.set(t.syncResult),this.activeProject_$.set(t.project);try{let i=yield this.pm_AS.getProject(e);this.activeProjectComputedCcapHost_$.set(i.computedCcapRevisionedHost)}catch{}this.projects_$.update(i=>i.map(o=>o._id===e?t.project:o))}catch(t){this.syncError_$.set(t)}finally{this.syncLoading_$.set(!1)}})}syncAllProjects(){return n(this,null,function*(){this.syncLoading_$.set(!0),this.syncError_$.set(null);try{yield this.pm_AS.syncAllProjects(),yield this.loadProjects()}catch(e){this.syncError_$.set(e)}finally{this.syncLoading_$.set(!1)}})}loadAllFileContents(e){return n(this,null,function*(){this.fileContentLoading_$.set(!0),this.fileContentError_$.set(null);try{let t=yield this.pm_AS.getAllFileContents(e);this.fileContents_$.set(t.files)}catch(t){this.fileContentError_$.set(t)}finally{this.fileContentLoading_$.set(!1)}})}clearTestErrorReportsAndRefresh(e){return n(this,null,function*(){this.testErrorReportsClearing_$.set(!0);try{yield this.pm_AS.clearTestErrorReports(e),yield this.loadAllFileContents(e)}finally{this.testErrorReportsClearing_$.set(!1)}})}getBugsPathResolve(e){return n(this,null,function*(){return this.pm_AS.getBugsPathResolve(e)})}appendBugsFromErrorsAndRefreshFiles(e,t){return n(this,null,function*(){let i=yield this.pm_AS.appendBugsFromErrors(e,t);return yield this.loadAllFileContents(e),i})}appendSingleBugFromErrorAndRefreshFiles(e,t,i){return n(this,null,function*(){let o=yield this.pm_AS.appendSingleBugFromError(e,t,i);return yield this.loadAllFileContents(e),o})}createManualBugAndRefresh(e,t){return n(this,null,function*(){let i=yield this.pm_AS.createManualBug(e,t);return yield this.loadAllFileContents(e),yield this.loadUserRequests(e),i})}loadUserRequests(e){return n(this,null,function*(){this.userRequestsLoading_$.set(!0),this.userRequestsError_$.set(null);try{let t=yield this.pm_AS.listUserRequests(e);this.userRequests_$.set(t.userRequests)}catch(t){this.userRequestsError_$.set(t)}finally{this.userRequestsLoading_$.set(!1)}})}createUserRequest(e,t){return n(this,null,function*(){yield this.pm_AS.createUserRequest(e,t),yield this.loadUserRequests(e)})}updateUserRequest(e,t,i){return n(this,null,function*(){let o=yield this.pm_AS.updateUserRequest(e,t,i);this.userRequests_$.update(_=>_.map(C=>C._id===t?o.userRequest:C))})}suggestUserInputFormat(e,t){return n(this,null,function*(){this.userInputWizardSuggestLoading_$.set(!0),this.userInputWizardSuggestError_$.set(null),this.userInputWizardLastLlmSystemPrompt_$.set(null),this.userInputWizardLastLlmUserMessage_$.set(null);try{let i=yield this.pm_AS.suggestUserInputFormat(e,t);return this.userInputWizardLastLlmSystemPrompt_$.set(i.llmSystemPrompt??null),this.userInputWizardLastLlmUserMessage_$.set(i.llmUserMessage??null),i}catch(i){throw this.userInputWizardSuggestError_$.set(i),i}finally{this.userInputWizardSuggestLoading_$.set(!1)}})}mutateControlFileEntryAndRefresh(e,t,i){return n(this,null,function*(){let o=i.priorRawFingerprintSha256?.trim(),_=o!=null&&o.length>0?o:yield I.sha256HexOfNormalized(i.priorRawBlock),C={mode:i.mode,priorRawBlock:i.priorRawBlock,priorRawFingerprintSha256:_,newRawBlock:i.newRawBlock,bugsFileAbsolutePath:i.bugsFileAbsolutePath},k=yield this.pm_AS.mutateControlFileEntry(e,t,C);return yield this.loadAllFileContents(e),k})}finalizeUserInputWizard(e,t){return n(this,null,function*(){this.userInputWizardFinalizeLoading_$.set(!0),this.userInputWizardFinalizeError_$.set(null);try{let i=yield this.pm_AS.finalizeUserInput(e,t);return yield this.loadUserRequests(e),yield this.loadAllFileContents(e),i}catch(i){throw this.userInputWizardFinalizeError_$.set(i),i}finally{this.userInputWizardFinalizeLoading_$.set(!1)}})}loadReviewsMeta(e){return n(this,null,function*(){this.reviewsMetaLoading_$.set(!0),this.reviewsMetaError_$.set(null);try{let t=yield this.pm_AS.getReviewsMeta(e);this.reviewsMeta_$.set(t.reviewsMeta)}catch(t){this.reviewsMetaError_$.set(t)}finally{this.reviewsMetaLoading_$.set(!1)}})}runProjectReviews(e,t){return n(this,null,function*(){this.reviewsRunning_$.set(!0),this.reviewsRunError_$.set(null),this.reviewResult_$.set(null);try{let i=yield this.pm_AS.runProjectReviews(e,t);this.reviewResult_$.set(i.reviewResult)}catch(i){this.reviewsRunError_$.set(i)}finally{this.reviewsRunning_$.set(!1)}})}loadAgentReports(e){return n(this,null,function*(){this.agentReportsLoading_$.set(!0),this.agentReportsError_$.set(null);try{let t=yield this.pm_AS.listAgentReports(e);this.agentReports_$.set(t.reports)}catch(t){this.agentReportsError_$.set(t)}finally{this.agentReportsLoading_$.set(!1)}})}loadAgentReport(e,t){return n(this,null,function*(){this.activeAgentReportLoading_$.set(!0),this.activeAgentReportError_$.set(null);try{let i=yield this.pm_AS.getAgentReportContent(e,t);this.activeAgentReport_$.set(i)}catch(i){this.activeAgentReport_$.set(null),this.activeAgentReportError_$.set(i)}finally{this.activeAgentReportLoading_$.set(!1)}})}clearActiveAgentReport(){this.activeAgentReport_$.set(null),this.activeAgentReportError_$.set(null)}static \u0275fac=function(t){return new(t||s)};static \u0275prov=T({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function te(s,l){if(s&1&&(c(0,"span",0),m(1),u()),s&2){let e=l;f("title",e),a(),y(" ",e," ")}}var Z=(()=>{class s{workspacePath=d(void 0);pm_DS=E(Y);projectName_$=L(()=>{let e=this.workspacePath();if(!e)return null;let t=s.normalizePath(e);return t?this.pm_DS.projects_$().find(_=>!!_.localPath&&s.normalizePath(_.localPath)===t)?.name??null:null});constructor(){!this.pm_DS.projectsLoadedOnce_$()&&!this.pm_DS.projectsLoading_$()&&!this.pm_DS.projectsError_$()&&this.pm_DS.loadProjects()}static normalizePath(e){let t=e.trim().toLowerCase().replace(/\\/g,"/");for(;t.endsWith("/")&&t.length>1;)t=t.slice(0,-1);return t}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=x({type:s,selectors:[["app-s-project-badge"]],hostAttrs:[1,"ml-auto"],hostVars:2,hostBindings:function(t,i){t&2&&W("display",i.projectName_$()?"inline-flex":"none")},inputs:{workspacePath:[1,"workspacePath"]},standalone:!0,features:[A],decls:1,vars:1,consts:[[1,"text-[9px]","px-1","py-0.5","rounded","bg-sky-500/20","text-sky-300","border","border-sky-500/30","shrink-0","truncate","max-w-[140px]",3,"title"]],template:function(t,i){if(t&1&&w(0,te,2,2,"span",0),t&2){let o;h((o=i.projectName_$())?0:-1,o)}},encapsulation:2})}return s})();function ie(s,l){s&1&&P(0,"span",4)}function se(s,l){if(s&1&&P(0,"app-s-project-badge",7),s&2){let e=p();f("workspacePath",e.view().workspacePath)}}function re(s,l){s&1&&(c(0,"span",8),m(1," archived "),u())}function oe(s,l){if(s&1){let e=R();c(0,"button",13),S("click",function(i){$(e);let o=p();return v(o.handleScheduleIndicatorClick(i))}),b(),c(1,"svg",14),P(2,"rect",15)(3,"line",16)(4,"line",17)(5,"line",18),u()()}if(s&2){let e=p();j("ml-auto",!e.view().workspacePath)}}function ne(s,l){if(s&1){let e=R();c(0,"button",19),S("click",function(i){$(e);let o=p();return v(o.handleCoordinatorIndicatorClick(i))}),b(),c(1,"svg",14),P(2,"circle",20)(3,"polygon",21),u()()}if(s&2){let e=p();j("ml-auto",!e.view().workspacePath&&!e.view().hasSchedule)}}function ae(s,l){if(s&1&&(c(0,"div",11),m(1),u()),s&2){let e=p();a(),y(" ",e.view().workspacePath," ")}}function le(s,l){if(s&1&&(c(0,"div",12)(1,"span",22),m(2),u()()),s&2){let e=p();a(2),y(" ",e.view().promptCount," prompts ")}}var ee=(()=>{class s{view=d.required();isActive=d(!1);showWorkspacePath=d(!1);showPromptCount=d(!1);selected=g();contextMenu=g();scheduleIndicatorClicked=g();coordinatorIndicatorClicked=g();handleSelect(){this.selected.emit(this.view().id)}handleContextMenu(e){e.preventDefault(),e.stopPropagation(),this.contextMenu.emit({event:e,id:this.view().id})}handleScheduleIndicatorClick(e){e.stopPropagation(),this.scheduleIndicatorClicked.emit(this.view().id)}handleCoordinatorIndicatorClick(e){e.stopPropagation(),this.coordinatorIndicatorClicked.emit(this.view().id)}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=x({type:s,selectors:[["app-s-session-list-row"]],hostAttrs:[1,"block"],inputs:{view:[1,"view"],isActive:[1,"isActive"],showWorkspacePath:[1,"showWorkspacePath"],showPromptCount:[1,"showPromptCount"]},outputs:{selected:"selected",contextMenu:"contextMenu",scheduleIndicatorClicked:"scheduleIndicatorClicked",coordinatorIndicatorClicked:"coordinatorIndicatorClicked"},standalone:!0,features:[A],decls:17,vars:20,consts:[[1,"px-2","py-1.5","border-b","cursor-pointer","transition-colors",3,"click","contextmenu"],[1,"flex","items-center","gap-1.5"],[1,"relative","w-3.5","h-3.5","shrink-0","flex","items-center","justify-center",3,"title"],[1,"w-1.5","h-1.5","rounded-full",3,"ngClass"],[1,"absolute","inset-0","rounded-full","border","border-transparent","border-t-yellow-400","animate-spin"],[1,"text-xs","text-neutral-200","font-medium","truncate","shrink-1","min-w-0"],[1,"text-[10px]","text-neutral-400","shrink-0",3,"title"],[3,"workspacePath"],[1,"text-[8px]","px-0.5","rounded","bg-amber-500/15","text-amber-500","shrink-0"],["type","button","title","Ehhez a session-h\xF6z tartozik schedule \u2014 kattints a r\xE9szletek\xE9rt","aria-label","Schedule attached \u2014 open popup",1,"shrink-0","text-neonCyan/80","hover:text-neonCyan","focus:outline-none","focus:ring-1","focus:ring-neonCyan/60","rounded","p-0.5",3,"ml-auto"],["type","button","title","Ehhez a session-h\xF6z tartozik koordin\xE1tor \u2014 kattints a r\xE9szletek\xE9rt","aria-label","Coordinator attached \u2014 open popup",1,"shrink-0","text-neonAmber/80","hover:text-neonAmber","focus:outline-none","focus:ring-1","focus:ring-neonAmber/60","rounded","p-0.5",3,"ml-auto"],[1,"text-[10px]","text-neutral-500","truncate","mt-0.5","ml-5"],[1,"flex","items-center","gap-2","mt-0.5","ml-5"],["type","button","title","Ehhez a session-h\xF6z tartozik schedule \u2014 kattints a r\xE9szletek\xE9rt","aria-label","Schedule attached \u2014 open popup",1,"shrink-0","text-neonCyan/80","hover:text-neonCyan","focus:outline-none","focus:ring-1","focus:ring-neonCyan/60","rounded","p-0.5",3,"click"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true",1,"w-3","h-3"],["x","3","y","4","width","18","height","18","rx","2","ry","2"],["x1","16","y1","2","x2","16","y2","6"],["x1","8","y1","2","x2","8","y2","6"],["x1","3","y1","10","x2","21","y2","10"],["type","button","title","Ehhez a session-h\xF6z tartozik koordin\xE1tor \u2014 kattints a r\xE9szletek\xE9rt","aria-label","Coordinator attached \u2014 open popup",1,"shrink-0","text-neonAmber/80","hover:text-neonAmber","focus:outline-none","focus:ring-1","focus:ring-neonAmber/60","rounded","p-0.5",3,"click"],["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,"text-[10px]","text-neutral-600"]],template:function(t,i){if(t&1&&(c(0,"div",0),S("click",function(){return i.handleSelect()})("contextmenu",function(_){return i.handleContextMenu(_)}),c(1,"div",1)(2,"span",2),P(3,"span",3),w(4,ie,1,0,"span",4),u(),c(5,"span",5),m(6),u(),c(7,"span",6),F(8,"sAbsoluteTime"),m(9),F(10,"sTimeAgo"),u(),w(11,se,1,1,"app-s-project-badge",7)(12,re,2,0,"span",8)(13,oe,6,2,"button",9)(14,ne,4,2,"button",10),u(),w(15,ae,2,1,"div",11)(16,le,3,1,"div",12),u()),t&2){let o;D(i.isActive()?"border-l-2 border-l-ccapAccent border-b-neutral-700/30 bg-neutral-800/80":"border-l-2 border-l-transparent border-b-neutral-700/30 hover:bg-neutral-800/60"),j("opacity-50",i.view().isArchived),a(2),f("title",i.view().status),a(),f("ngClass",i.view().statusColorClass),a(),h(i.view().isRunning?4:-1),a(2),y(" ",i.view().label," "),a(),f("title",z(8,16,(o=i.view().lastActivityAt)!==null&&o!==void 0?o:"")),a(2),y(" ",i.view().lastActivityAt?z(10,18,i.view().lastActivityAt):"\u2014"," "),a(2),h(i.view().workspacePath?11:-1),a(),h(i.view().isArchived?12:-1),a(),h(i.view().hasSchedule?13:-1),a(),h(i.view().hasCoordinator?14:-1),a(),h(i.showWorkspacePath()&&i.view().workspacePath?15:-1),a(),h(i.showPromptCount()&&i.view().promptCount?16:-1)}},dependencies:[B,J,X,Z],encapsulation:2})}return s})();var ce=(s,l)=>l.id;function ue(s,l){if(s&1){let e=R();c(0,"div",1)(1,"input",5),S("ngModelChange",function(i){$(e);let o=p();return v(o.searchQuery_$.set(i))}),u()()}if(s&2){let e=p();a(),f("placeholder",e.searchPlaceholder())("ngModel",e.searchQuery_$())}}function pe(s,l){if(s&1){let e=R();c(0,"app-s-session-list-row",6),S("selected",function(i){$(e);let o=p();return v(o.handleRowSelect(i))})("contextMenu",function(i){$(e);let o=p();return v(o.handleRowContextMenu(i))})("scheduleIndicatorClicked",function(i){$(e);let o=p();return v(o.handleRowScheduleIndicatorClick(i))})("coordinatorIndicatorClicked",function(i){$(e);let o=p();return v(o.handleRowCoordinatorIndicatorClick(i))}),u()}if(s&2){let e=l.$implicit,t=p();f("view",e)("isActive",e.id===t.activeId())("showWorkspacePath",t.showWorkspacePath())("showPromptCount",t.showPromptCount())}}function de(s,l){s&1&&m(0," Nincs tal\xE1lat. ")}function _e(s,l){s&1&&m(0," \xDCres lista. ")}function he(s,l){if(s&1&&(c(0,"span",4),w(1,de,1,0)(2,_e,1,0),u()),s&2){let e=p();a(),h(e.searchQuery_$().trim().length>0?1:2)}}var qe=(()=>{class s{kind=d.required();rows=d([]);activeId=d("");showWorkspacePath=d(!1);showPromptCount=d(!1);searchPlaceholder=d("Keres\xE9s...");hideSearch=d(!1);selected=g();contextMenu=g();scheduleIndicatorClicked=g();coordinatorIndicatorClicked=g();searchQuery_$=r("");filteredRows_$=L(()=>{let e=this.rows();if(this.hideSearch())return e;let t=this.searchQuery_$();return t.trim().length===0?e:e.filter(i=>K.includesText(i.label,t))});handleRowSelect(e){this.selected.emit(e)}handleRowContextMenu(e){this.contextMenu.emit(e)}handleRowScheduleIndicatorClick(e){this.scheduleIndicatorClicked.emit(e)}handleRowCoordinatorIndicatorClick(e){this.coordinatorIndicatorClicked.emit(e)}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=x({type:s,selectors:[["app-s-session-select"]],hostAttrs:[1,"block"],inputs:{kind:[1,"kind"],rows:[1,"rows"],activeId:[1,"activeId"],showWorkspacePath:[1,"showWorkspacePath"],showPromptCount:[1,"showPromptCount"],searchPlaceholder:[1,"searchPlaceholder"],hideSearch:[1,"hideSearch"]},outputs:{selected:"selected",contextMenu:"contextMenu",scheduleIndicatorClicked:"scheduleIndicatorClicked",coordinatorIndicatorClicked:"coordinatorIndicatorClicked"},standalone:!0,features:[A],decls:6,vars:2,consts:[[1,"flex","flex-col","gap-2"],[1,"px-2","pt-2"],[1,"flex","flex-col","gap-1","px-2","pb-2"],[3,"view","isActive","showWorkspacePath","showPromptCount"],[1,"text-[11px]","text-neutral-500","italic","px-1","py-2"],["type","text","data-testid","s-session-select-search",1,"w-full","px-2","py-1","text-xs","rounded","border","border-neonDefault","bg-neutral-900","text-neutral-200","placeholder-neutral-500","focus:outline-none","focus:border-ccapAccent",3,"ngModelChange","placeholder","ngModel"],[3,"selected","contextMenu","scheduleIndicatorClicked","coordinatorIndicatorClicked","view","isActive","showWorkspacePath","showPromptCount"]],template:function(t,i){t&1&&(c(0,"div",0),w(1,ue,2,2,"div",1),c(2,"div",2),G(3,pe,1,4,"app-s-session-list-row",3,ce),w(5,he,3,1,"span",4),u()()),t&2&&(a(),h(i.hideSearch()?-1:1),a(2),q(i.filteredRows_$()),a(2),h(i.filteredRows_$().length===0?5:-1))},dependencies:[V,O,U,H,N,ee],encapsulation:2})}return s})();export{Y as a,ee as b,qe as c};
|
|
4
|
+
//# sourceMappingURL=chunk-TIFSV5V7.js.map
|