@skill-map/cli 0.53.2 → 0.53.3

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.
Files changed (27) hide show
  1. package/dist/cli/tutorial/sm-tutorial/SKILL.md +19 -10
  2. package/dist/cli/tutorial/sm-tutorial/references/_core.md +53 -5
  3. package/dist/cli/tutorial/sm-tutorial/references/_manifest.yml +22 -9
  4. package/dist/cli/tutorial/sm-tutorial/references/fixtures.md +10 -13
  5. package/dist/cli/tutorial/sm-tutorial/references/part-authoring.md +2 -2
  6. package/dist/cli/tutorial/sm-tutorial/references/part-cli.md +1 -1
  7. package/dist/cli/tutorial/sm-tutorial/references/part-connect-harness.md +12 -9
  8. package/dist/cli/tutorial/sm-tutorial/references/part-fundamentals.md +16 -22
  9. package/dist/cli/tutorial/sm-tutorial/references/part-live-site.md +111 -112
  10. package/dist/cli/tutorial/sm-tutorial/references/part-maintain.md +2 -2
  11. package/dist/cli/tutorial/sm-tutorial/references/part-mcp.md +4 -4
  12. package/dist/cli/tutorial/sm-tutorial/references/part-plugins.md +1 -1
  13. package/dist/cli/tutorial/sm-tutorial/references/part-project-kickoff.md +11 -13
  14. package/dist/cli/tutorial/sm-tutorial/references/part-run-harness.md +155 -0
  15. package/dist/cli/tutorial/sm-tutorial/references/part-settings.md +2 -2
  16. package/dist/cli.js +3 -3
  17. package/dist/index.js +3 -3
  18. package/dist/kernel/index.js +3 -3
  19. package/dist/ui/{chunk-UHNBYD6J.js → chunk-22XUPND3.js} +3 -3
  20. package/dist/ui/{chunk-OFDQMBSJ.js → chunk-4CXAL43H.js} +1 -1
  21. package/dist/ui/{chunk-IUZM6XLN.js → chunk-HWQTV6ZL.js} +1 -1
  22. package/dist/ui/{chunk-UV5Q423S.js → chunk-ISIHN6HU.js} +2 -2
  23. package/dist/ui/{chunk-EQ72PEHT.js → chunk-NBXEOYS4.js} +1 -1
  24. package/dist/ui/index.html +2 -2
  25. package/dist/ui/{main-TXPLL7VU.js → main-Z4RJNI4X.js} +3 -3
  26. package/dist/ui/{styles-Q4NCOJQY.css → styles-L6FZYH7X.css} +1 -1
  27. package/package.json +1 -1
@@ -1 +1 @@
1
- import{$ as l,B as C,E as A,H as k,K as g,N as h,P as c,_ as j,c as S,d as R,f as O,ga as d,ia as y,sc as p,u as _}from"./chunk-Q2A6FWC7.js";import{a as m,b}from"./chunk-WCABR6TI.js";function w(t){t||(t=c(l));let r=new S(e=>{if(t.destroyed){e.next();return}return t.onDestroy(e.next.bind(e))});return e=>e.pipe(A(r))}function Ee(t,r){let n=!r?.manualCleanup?r?.injector?.get(l)??c(l):null,o=G(r?.equal),s;r?.requireSync?s=d({kind:0},{equal:o}):s=d({kind:1,value:r?.initialValue},{equal:o});let a,i=t.subscribe({next:u=>s.set({kind:1,value:u}),error:u=>{s.set({kind:2,error:u}),a?.()},complete:()=>{a?.()}});if(r?.requireSync&&s().kind===0)throw new k(601,!1);return a=n?.onDestroy(i.unsubscribe.bind(i)),p(()=>{let u=s();switch(u.kind){case 1:return u.value;case 2:throw u.error;case 0:throw new k(601,!1)}},{equal:r?.equal})}function G(t=Object.is){return(r,e)=>r.kind===1&&e.kind===1&&t(r.value,e.value)}var N=new h("DATA_SOURCE"),F=class extends Error{code;details;constructor(r,e,n){super(e),this.name="DataSourceError",this.code=r,this.details=n}};var U=new h("SKILL_MAP_MODE");function Te(){return typeof document>"u"?"live":document.querySelector('meta[name="skill-map-mode"]')?.content==="demo"?"demo":"live"}function D(t){if(typeof t!="object"||t===null)return!1;let r=t;if(typeof r.type!="string"||r.type.length===0)return!1;let e=r.timestamp;return!(typeof e!="number"&&typeof e!="string"||!("data"in r))}function L(t){if(!D(t)||t.type!=="sidecar.bumped")return!1;let r=t.data;if(typeof r!="object"||r===null||typeof r.nodePath!="string"||r.nodePath.length===0)return!1;let e=r.version;return!(e!==null&&typeof e!="number"||r.status!=="fresh")}var f={connected:t=>`[ws] connected to ${t}`,closed:(t,r)=>`[ws] closed (code=${t}, reason="${r}")`,malformedFrame:t=>`[ws] malformed frame dropped: ${t}`,socketError:t=>`[ws] socket error: ${t}`,reconnectScheduled:(t,r)=>`[ws] reconnect attempt ${r} scheduled in ${t}ms`,reconnectGiveUp:t=>`[ws] giving up after ${t} failed reconnect attempts`};var P=[1e3,2e3,4e3,8e3,16e3,3e4],$=10,X=new Set([1e3]);function z(){return typeof window>"u"||!window.location?"ws://127.0.0.1:4242/ws":`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`}var J=new h("WS_SOCKET_FACTORY",{providedIn:"root",factory:()=>t=>new WebSocket(t)}),Z=new h("WS_URL",{providedIn:"root",factory:()=>z()}),K=(()=>{class t{mode=c(U);destroyRef=c(l);subject=new R;socket=null;reconnectTimer=null;reconnectAttempt=0;disposed=!1;_connectionState=d("connecting");connectionState=this._connectionState.asReadonly();socketFactory=c(J);url=c(Z);events$;scanCompleted$;sidecarBumped$;constructor(){this.mode!=="live"?this.events$=O:this.events$=new S(e=>{!this.socket&&!this.disposed&&this.connect();let n=this.subject.subscribe(e);return()=>n.unsubscribe()}).pipe(C({resetOnRefCountZero:!1})),this.scanCompleted$=this.events$.pipe(_(e=>e.type==="scan.completed")),this.sidecarBumped$=this.events$.pipe(_(L)),this.destroyRef.onDestroy(()=>this.disconnect())}disconnect(){if(!this.disposed){if(this.disposed=!0,this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.socket){try{this.socket.close(1e3,"client disconnect")}catch{}this.socket=null}this.subject.complete()}}reconnect(){this.disposed||this.socket||(this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.reconnectAttempt=0,this._connectionState.set("connecting"),this.connect())}ngOnDestroy(){this.disconnect()}connect(){if(this.disposed)return;let e;try{e=this.socketFactory(this.url)}catch(n){let o=n instanceof Error?n.message:String(n);console.warn(f.socketError(o)),this.scheduleReconnect();return}this.socket=e,e.onopen=()=>{this.reconnectAttempt=0,this._connectionState.set("open"),console.info(f.connected(this.url))},e.onmessage=n=>{this.handleFrame(n.data)},e.onerror=n=>{let o=typeof n=="object"&&n!==null&&"message"in n?String(n.message??"unknown"):"unknown";console.warn(f.socketError(o))},e.onclose=n=>{console.info(f.closed(n.code,n.reason)),this.socket=null,!this.disposed&&(X.has(n.code)||this.scheduleReconnect())}}handleFrame(e){if(typeof e!="string"){console.warn(f.malformedFrame("non-string frame"));return}let n;try{n=JSON.parse(e)}catch(o){let s=o instanceof Error?o.message:String(o);console.warn(f.malformedFrame(s));return}if(!D(n)){console.warn(f.malformedFrame("envelope shape"));return}this.subject.next(n)}scheduleReconnect(){if(this.disposed)return;if(this.reconnectAttempt>=$){console.warn(f.reconnectGiveUp($)),this._connectionState.set("lost");return}this._connectionState.set("reconnecting");let e=Math.min(this.reconnectAttempt,P.length-1),n=P[e];this.reconnectAttempt+=1,console.info(f.reconnectScheduled(n,this.reconnectAttempt)),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},n)}get _reconnectAttempt(){return this.reconnectAttempt}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Be=(()=>{class t{dataSource=c(N);wsEvents=c(K);destroyRef=c(l);_nodes=d([]);_scan=d(null);_loading=d(!1);_error=d(null);pendingRefresh=!1;wsConnectedBefore=!1;nodes=this._nodes.asReadonly();scan=this._scan.asReadonly();loading=this._loading.asReadonly();error=this._error.asReadonly();count=p(()=>this._nodes().length);byKind=p(()=>{let e=new Map;for(let n of this._nodes()){let o=e.get(n.kind);o?o.push(n):e.set(n.kind,[n])}return e});hasAnyFavorites=p(()=>this._nodes().some(e=>e.isFavorite===!0));constructor(){this.wsEvents.scanCompleted$.pipe(w(this.destroyRef)).subscribe(()=>{this.load()}),this.wsEvents.sidecarBumped$.pipe(w(this.destroyRef)).subscribe(e=>{this.patchSidecarFromBump({nodePath:e.data.nodePath,version:e.data.version,status:e.data.status})}),y(()=>{this.wsEvents.connectionState()==="open"&&(this.wsConnectedBefore&&this.load(),this.wsConnectedBefore=!0)})}setFavoriteLocal(e,n){this._nodes.update(o=>{let s=!1,a=o.map(i=>i.path!==e||i.isFavorite===n?i:(s=!0,b(m({},i),{isFavorite:n})));return s?a:o})}async toggleFavorite(e,n){this.setFavoriteLocal(e,n);try{return n?await this.dataSource.setFavorite(e):await this.dataSource.unsetFavorite(e),n}catch(o){this.setFavoriteLocal(e,!n);let s=o instanceof Error?o.message:String(o);return this._error.set(s),!n}}patchSidecarFromBump(e){this._nodes.update(n=>{let o=!1,s=n.map(a=>{if(a.path!==e.nodePath)return a;o=!0;let i=a.sidecar,u=m({},i?.annotations??{});return e.version!==null&&(u.version=e.version),b(m({},a),{sidecar:m({present:!0,status:e.status,annotations:u},i?.root===void 0?{}:{root:i.root})})});return o?s:n})}async load(){if(this._loading()){this.pendingRefresh=!0;return}this._loading.set(!0),this._error.set(null);try{let e=await this.dataSource.loadScan();this._scan.set(e),this._nodes.set(e.nodes.map(Q))}catch(e){let n=e instanceof Error?e.message:String(e);this._error.set(n)}finally{this._loading.set(!1),this.pendingRefresh&&(this.pendingRefresh=!1,queueMicrotask(()=>{this.load()}))}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Q(t){let r=t.kind,e=t.frontmatter??{},n=b(m({},e),{name:typeof e.name=="string"?e.name:"",description:typeof e.description=="string"?e.description:""}),o={path:t.path,kind:r,provider:t.provider,frontmatter:n,linksOutCount:t.linksOutCount,linksInCount:t.linksInCount,externalRefsCount:t.externalRefsCount,bytesTotal:t.bytes?.total,tokensTotal:t.tokens?.total,bodyHash:t.bodyHash,frontmatterHash:t.frontmatterHash,isFavorite:t.isFavorite===!0};return t.sidecar&&(o.sidecar=m({},t.sidecar)),t.contributions&&(o.contributions=[...t.contributions]),o}var Ve="https://bb9dce0fd2cb4ab27ac0475aa394aeb4@o4511475590037504.ingest.de.sentry.io/4511475725959248",x="phc_vMX3PcNeDsacWNg2hYEbKVXDijSWcjKFzabCkzU7RNEr",q="https://eu.i.posthog.com";var ee="<HOME>",te=["server_name","user"],ne=[/[A-Za-z]:[\\/]Users[\\/][^\\/\s:*?"<>|]+/g,/\/(?:home|Users)\/[^/\s:]+/g,/\/root(?=\/|\b)/g];function re(t){let r=t;for(let e of ne)r=r.replace(e,ee);return r}function B(t){let r=T(t);if(r!==null&&typeof r=="object"&&!Array.isArray(r)){let e=r;for(let n of te)n in e&&delete e[n]}return r}function T(t){if(typeof t=="string")return re(t);if(Array.isArray(t))return t.map(r=>T(r));if(t!==null&&typeof t=="object"){let r={};for(let[e,n]of Object.entries(t))r[e]=T(n);return r}return t}var W=!1,v=null;async function Ze(t){if(W||x===""||!t.consentEnabled||t.distinctId===null)return;let{default:r}=await import("./chunk-P3SNMV4X.js");r.init(x,{api_host:q,autocapture:!1,capture_pageview:!1,capture_pageleave:!1,disable_session_recording:!0,person_profiles:"identified_only",bootstrap:{distinctID:t.distinctId},before_send:e=>e===null?null:B(e)}),v=r,W=!0}function Qe(t,r={}){v!==null&&v.capture(t,r)}function et(t){v!==null&&v.register(t)}var M=[{id:"matrix",htmlClass:"app-matrix",forcesDark:!0,favicon:"favicon-matrix.svg",fontHref:"https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap",fontLinkId:"sm-matrix-font",label:"Matrix",description:"Cyber-green retint on the dark palette."}];function E(t){return t?M.find(r=>r.id===t)??null:null}var Y="skill-map.ui.theme",I="skill-map.ui.extra-theme",oe="app-dark",se="dark",V="(prefers-color-scheme: dark)",ie="favicon.svg",ce='link[rel="icon"][type="image/svg+xml"]',ct=(()=>{class t{doc=c(j);destroyRef=c(l);mode=d(this.readInitialMode());extraTheme=d(this.readInitialExtra());systemPrefersDark=d(this.readSystemPref());resolved=p(()=>{let e=this.mode();return e==="auto"?this.systemPrefersDark()?"dark":"light":e});constructor(){this.subscribeToSystemPref(),y(()=>{let e=this.extraTheme(),n=E(e),s=this.resolved()==="dark"||n?.forcesDark===!0,a=this.doc.documentElement;a.classList.toggle(oe,s),a.classList.toggle(se,s);for(let i of M)a.classList.toggle(i.htmlClass,n?.id===i.id);this.applyFavicon(n?.favicon??ie),n&&this.ensureExtraThemeFont(n);try{let i=this.doc.defaultView?.localStorage;i?.setItem(Y,this.mode()),n===null?i?.removeItem(I):i?.setItem(I,n.id)}catch{}})}toggle(){this.extraTheme()!==null&&this.extraTheme.set(null),this.mode.update(e=>e==="auto"?"light":e==="light"?"dark":"auto")}set(e){this.mode.set(e)}setExtraTheme(e){this.extraTheme.set(E(e)?.id??null)}readInitialMode(){try{let e=this.doc.defaultView?.localStorage.getItem(Y);if(e==="auto"||e==="light"||e==="dark")return e}catch{}return"auto"}readInitialExtra(){try{let e=this.doc.defaultView?.localStorage.getItem(I);return E(e)?.id??null}catch{return null}}readSystemPref(){try{return this.doc.defaultView?.matchMedia(V).matches??!1}catch{return!1}}ensureExtraThemeFont(e){if(!e.fontHref||!e.fontLinkId||this.doc.getElementById(e.fontLinkId))return;let n=this.doc.head;if(!n)return;let o=this.doc.createElement("link");o.id=e.fontLinkId,o.rel="stylesheet",o.href=e.fontHref,n.appendChild(o)}applyFavicon(e){let n=this.doc.querySelector(ce);n&&n.getAttribute("href")!==e&&n.setAttribute("href",e)}subscribeToSystemPref(){let e=this.doc.defaultView;if(!e||typeof e.matchMedia!="function")return;let n=e.matchMedia(V),o=s=>{this.systemPrefersDark.set(s.matches)};n.addEventListener("change",o),this.destroyRef.onDestroy(()=>n.removeEventListener("change",o))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();export{w as a,Ee as b,N as c,F as d,U as e,Te as f,K as g,Be as h,Ve as i,B as j,Ze as k,Qe as l,et as m,M as n,ct as o};
1
+ import{$ as l,B as O,E as A,H as _,K as g,N as h,P as c,_ as j,c as S,d as R,f as C,ga as d,ia as y,sc as p,u as k}from"./chunk-Q2A6FWC7.js";import{a as m,b}from"./chunk-WCABR6TI.js";function w(t){t||(t=c(l));let r=new S(e=>{if(t.destroyed){e.next();return}return t.onDestroy(e.next.bind(e))});return e=>e.pipe(A(r))}function Ee(t,r){let n=!r?.manualCleanup?r?.injector?.get(l)??c(l):null,o=V(r?.equal),s;r?.requireSync?s=d({kind:0},{equal:o}):s=d({kind:1,value:r?.initialValue},{equal:o});let a,i=t.subscribe({next:u=>s.set({kind:1,value:u}),error:u=>{s.set({kind:2,error:u}),a?.()},complete:()=>{a?.()}});if(r?.requireSync&&s().kind===0)throw new _(601,!1);return a=n?.onDestroy(i.unsubscribe.bind(i)),p(()=>{let u=s();switch(u.kind){case 1:return u.value;case 2:throw u.error;case 0:throw new _(601,!1)}},{equal:r?.equal})}function V(t=Object.is){return(r,e)=>r.kind===1&&e.kind===1&&t(r.value,e.value)}var N=new h("DATA_SOURCE"),F=class extends Error{code;details;constructor(r,e,n){super(e),this.name="DataSourceError",this.code=r,this.details=n}};var U=new h("SKILL_MAP_MODE");function Te(){return typeof document>"u"?"live":document.querySelector('meta[name="skill-map-mode"]')?.content==="demo"?"demo":"live"}function D(t){if(typeof t!="object"||t===null)return!1;let r=t;if(typeof r.type!="string"||r.type.length===0)return!1;let e=r.timestamp;return!(typeof e!="number"&&typeof e!="string"||!("data"in r))}function L(t){if(!D(t)||t.type!=="sidecar.bumped")return!1;let r=t.data;if(typeof r!="object"||r===null||typeof r.nodePath!="string"||r.nodePath.length===0)return!1;let e=r.version;return!(e!==null&&typeof e!="number"||r.status!=="fresh")}var f={connected:t=>`[ws] connected to ${t}`,closed:(t,r)=>`[ws] closed (code=${t}, reason="${r}")`,malformedFrame:t=>`[ws] malformed frame dropped: ${t}`,socketError:t=>`[ws] socket error: ${t}`,reconnectScheduled:(t,r)=>`[ws] reconnect attempt ${r} scheduled in ${t}ms`,reconnectGiveUp:t=>`[ws] giving up after ${t} failed reconnect attempts`};var P=[1e3,2e3,4e3,8e3,16e3,3e4],$=10,X=new Set([1e3]);function z(){return typeof window>"u"||!window.location?"ws://127.0.0.1:4242/ws":`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`}var J=new h("WS_SOCKET_FACTORY",{providedIn:"root",factory:()=>t=>new WebSocket(t)}),Z=new h("WS_URL",{providedIn:"root",factory:()=>z()}),K=(()=>{class t{mode=c(U);destroyRef=c(l);subject=new R;socket=null;reconnectTimer=null;reconnectAttempt=0;disposed=!1;_connectionState=d("connecting");connectionState=this._connectionState.asReadonly();socketFactory=c(J);url=c(Z);events$;scanCompleted$;sidecarBumped$;constructor(){this.mode!=="live"?this.events$=C:this.events$=new S(e=>{!this.socket&&!this.disposed&&this.connect();let n=this.subject.subscribe(e);return()=>n.unsubscribe()}).pipe(O({resetOnRefCountZero:!1})),this.scanCompleted$=this.events$.pipe(k(e=>e.type==="scan.completed")),this.sidecarBumped$=this.events$.pipe(k(L)),this.destroyRef.onDestroy(()=>this.disconnect())}disconnect(){if(!this.disposed){if(this.disposed=!0,this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.socket){try{this.socket.close(1e3,"client disconnect")}catch{}this.socket=null}this.subject.complete()}}reconnect(){this.disposed||this.socket||(this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.reconnectAttempt=0,this._connectionState.set("connecting"),this.connect())}ngOnDestroy(){this.disconnect()}connect(){if(this.disposed)return;let e;try{e=this.socketFactory(this.url)}catch(n){let o=n instanceof Error?n.message:String(n);console.warn(f.socketError(o)),this.scheduleReconnect();return}this.socket=e,e.onopen=()=>{this.reconnectAttempt=0,this._connectionState.set("open"),console.info(f.connected(this.url))},e.onmessage=n=>{this.handleFrame(n.data)},e.onerror=n=>{let o=typeof n=="object"&&n!==null&&"message"in n?String(n.message??"unknown"):"unknown";console.warn(f.socketError(o))},e.onclose=n=>{console.info(f.closed(n.code,n.reason)),this.socket=null,!this.disposed&&(X.has(n.code)||this.scheduleReconnect())}}handleFrame(e){if(typeof e!="string"){console.warn(f.malformedFrame("non-string frame"));return}let n;try{n=JSON.parse(e)}catch(o){let s=o instanceof Error?o.message:String(o);console.warn(f.malformedFrame(s));return}if(!D(n)){console.warn(f.malformedFrame("envelope shape"));return}this.subject.next(n)}scheduleReconnect(){if(this.disposed)return;if(this.reconnectAttempt>=$){console.warn(f.reconnectGiveUp($)),this._connectionState.set("lost");return}this._connectionState.set("reconnecting");let e=Math.min(this.reconnectAttempt,P.length-1),n=P[e];this.reconnectAttempt+=1,console.info(f.reconnectScheduled(n,this.reconnectAttempt)),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},n)}get _reconnectAttempt(){return this.reconnectAttempt}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Be=(()=>{class t{dataSource=c(N);wsEvents=c(K);destroyRef=c(l);_nodes=d([]);_scan=d(null);_loading=d(!1);_error=d(null);pendingRefresh=!1;wsConnectedBefore=!1;nodes=this._nodes.asReadonly();scan=this._scan.asReadonly();loading=this._loading.asReadonly();error=this._error.asReadonly();count=p(()=>this._nodes().length);byKind=p(()=>{let e=new Map;for(let n of this._nodes()){let o=e.get(n.kind);o?o.push(n):e.set(n.kind,[n])}return e});hasAnyFavorites=p(()=>this._nodes().some(e=>e.isFavorite===!0));constructor(){this.wsEvents.scanCompleted$.pipe(w(this.destroyRef)).subscribe(()=>{this.load()}),this.wsEvents.sidecarBumped$.pipe(w(this.destroyRef)).subscribe(e=>{this.patchSidecarFromBump({nodePath:e.data.nodePath,version:e.data.version,status:e.data.status})}),y(()=>{this.wsEvents.connectionState()==="open"&&(this.wsConnectedBefore&&this.load(),this.wsConnectedBefore=!0)})}setFavoriteLocal(e,n){this._nodes.update(o=>{let s=!1,a=o.map(i=>i.path!==e||i.isFavorite===n?i:(s=!0,b(m({},i),{isFavorite:n})));return s?a:o})}async toggleFavorite(e,n){this.setFavoriteLocal(e,n);try{return n?await this.dataSource.setFavorite(e):await this.dataSource.unsetFavorite(e),n}catch(o){this.setFavoriteLocal(e,!n);let s=o instanceof Error?o.message:String(o);return this._error.set(s),!n}}patchSidecarFromBump(e){this._nodes.update(n=>{let o=!1,s=n.map(a=>{if(a.path!==e.nodePath)return a;o=!0;let i=a.sidecar,u=m({},i?.annotations??{});return e.version!==null&&(u.version=e.version),b(m({},a),{sidecar:m({present:!0,status:e.status,annotations:u},i?.root===void 0?{}:{root:i.root})})});return o?s:n})}async load(){if(this._loading()){this.pendingRefresh=!0;return}this._loading.set(!0),this._error.set(null);try{let e=await this.dataSource.loadScan();this._scan.set(e),this._nodes.set(e.nodes.map(Q))}catch(e){let n=e instanceof Error?e.message:String(e);this._error.set(n)}finally{this._loading.set(!1),this.pendingRefresh&&(this.pendingRefresh=!1,queueMicrotask(()=>{this.load()}))}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Q(t){let r=t.kind,e=t.frontmatter??{},n=b(m({},e),{name:typeof e.name=="string"?e.name:"",description:typeof e.description=="string"?e.description:""}),o={path:t.path,kind:r,provider:t.provider,frontmatter:n,linksOutCount:t.linksOutCount,linksInCount:t.linksInCount,externalRefsCount:t.externalRefsCount,bytesTotal:t.bytes?.total,tokensTotal:t.tokens?.total,bodyHash:t.bodyHash,frontmatterHash:t.frontmatterHash,isFavorite:t.isFavorite===!0};return t.sidecar&&(o.sidecar=m({},t.sidecar)),t.contributions&&(o.contributions=[...t.contributions]),o}var Ge="https://bb9dce0fd2cb4ab27ac0475aa394aeb4@o4511475590037504.ingest.de.sentry.io/4511475725959248",x="phc_vMX3PcNeDsacWNg2hYEbKVXDijSWcjKFzabCkzU7RNEr",q="https://eu.i.posthog.com";var ee="<HOME>",te=["server_name","user"],ne=[/[A-Za-z]:[\\/]Users[\\/][^\\/\s:*?"<>|]+/g,/\/(?:home|Users)\/[^/\s:]+/g,/\/root(?=\/|\b)/g];function re(t){let r=t;for(let e of ne)r=r.replace(e,ee);return r}function B(t){let r=T(t);if(r!==null&&typeof r=="object"&&!Array.isArray(r)){let e=r;for(let n of te)n in e&&delete e[n]}return r}function T(t){if(typeof t=="string")return re(t);if(Array.isArray(t))return t.map(r=>T(r));if(t!==null&&typeof t=="object"){let r={};for(let[e,n]of Object.entries(t))r[e]=T(n);return r}return t}var W=!1,v=null;async function Ze(t){if(W||x===""||!t.consentEnabled||t.distinctId===null)return;let{default:r}=await import("./chunk-P3SNMV4X.js");r.init(x,{api_host:q,autocapture:!1,capture_pageview:!1,capture_pageleave:!1,disable_session_recording:!0,person_profiles:"identified_only",bootstrap:{distinctID:t.distinctId},before_send:e=>e===null?null:B(e)}),v=r,W=!0}function Qe(t,r={}){v!==null&&v.capture(t,r)}function et(t){v!==null&&v.register(t)}var M=[{id:"matrix",htmlClass:"app-matrix",forcesDark:!0,favicon:"favicon-matrix.svg",fontHref:"https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap",fontLinkId:"sm-matrix-font",label:"Matrix",description:"Cyber-green retint on the dark palette."},{id:"neon-red",htmlClass:"app-neon-red",forcesDark:!0,label:"Neon R",description:"Electric-red glow on a deep console."},{id:"neon-green",htmlClass:"app-neon-green",forcesDark:!0,label:"Neon G",description:"Electric-green glow on a deep console."},{id:"neon",htmlClass:"app-neon",forcesDark:!0,label:"Neon B",description:"Electric-cyan glow on a deep-navy console."}];function E(t){return t?M.find(r=>r.id===t)??null:null}var Y="skill-map.ui.theme",I="skill-map.ui.extra-theme",oe="app-dark",se="dark",G="(prefers-color-scheme: dark)",ie="favicon.svg",ce='link[rel="icon"][type="image/svg+xml"]',ct=(()=>{class t{doc=c(j);destroyRef=c(l);mode=d(this.readInitialMode());extraTheme=d(this.readInitialExtra());systemPrefersDark=d(this.readSystemPref());resolved=p(()=>{let e=this.mode();return e==="auto"?this.systemPrefersDark()?"dark":"light":e});constructor(){this.subscribeToSystemPref(),y(()=>{let e=this.extraTheme(),n=E(e),s=this.resolved()==="dark"||n?.forcesDark===!0,a=this.doc.documentElement;a.classList.toggle(oe,s),a.classList.toggle(se,s);for(let i of M)a.classList.toggle(i.htmlClass,n?.id===i.id);this.applyFavicon(n?.favicon??ie),n&&this.ensureExtraThemeFont(n);try{let i=this.doc.defaultView?.localStorage;i?.setItem(Y,this.mode()),n===null?i?.removeItem(I):i?.setItem(I,n.id)}catch{}})}toggle(){this.extraTheme()!==null&&this.extraTheme.set(null),this.mode.update(e=>e==="auto"?"light":e==="light"?"dark":"auto")}set(e){this.mode.set(e)}setExtraTheme(e){this.extraTheme.set(E(e)?.id??null)}readInitialMode(){try{let e=this.doc.defaultView?.localStorage.getItem(Y);if(e==="auto"||e==="light"||e==="dark")return e}catch{}return"auto"}readInitialExtra(){try{let e=this.doc.defaultView?.localStorage.getItem(I);return E(e)?.id??null}catch{return null}}readSystemPref(){try{return this.doc.defaultView?.matchMedia(G).matches??!1}catch{return!1}}ensureExtraThemeFont(e){if(!e.fontHref||!e.fontLinkId||this.doc.getElementById(e.fontLinkId))return;let n=this.doc.head;if(!n)return;let o=this.doc.createElement("link");o.id=e.fontLinkId,o.rel="stylesheet",o.href=e.fontHref,n.appendChild(o)}applyFavicon(e){let n=this.doc.querySelector(ce);n&&n.getAttribute("href")!==e&&n.setAttribute("href",e)}subscribeToSystemPref(){let e=this.doc.defaultView;if(!e||typeof e.matchMedia!="function")return;let n=e.matchMedia(G),o=s=>{this.systemPrefersDark.set(s.matches)};n.addEventListener("change",o),this.destroyRef.onDestroy(()=>n.removeEventListener("change",o))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();export{w as a,Ee as b,N as c,F as d,U as e,Te as f,K as g,Be as h,Ge as i,B as j,Ze as k,Qe as l,et as m,M as n,ct as o};
@@ -1,2 +1,2 @@
1
- import{b as wt,i as Ee}from"./chunk-UBQUCSQ4.js";import{a as Nt,c as Et,d as Be,l as je,m as kt,o as St}from"./chunk-OFDQMBSJ.js";import{J as U,K as H,Q as Tt,R as Mt}from"./chunk-GBKHMJ4B.js";import{g as Ct}from"./chunk-LCOYSPKE.js";import{$ as dt,$a as pt,Bb as ht,Eb as he,Gb as Me,Ha as p,Hb as _t,Ib as _,K as Q,N as lt,P as K,Tb as yt,Ub as te,V as me,W as ge,Wa as A,Wb as Re,Xb as C,Yb as T,Zb as Ne,_ as ct,ab as ut,ga as F,gb as ft,hb as mt,hc as xt,ia as Te,ib as gt,ic as bt,jb as S,mb as N,nb as E,ob as vt,qb as q,rb as X,sb as $,sc as d,tb as O,ub as D,uc as P,vb as ee,wb as w,xb as k,yb as de}from"./chunk-Q2A6FWC7.js";import{a as we,b as at,d as st}from"./chunk-WCABR6TI.js";var jn=new Set(["stale-body","stale-frontmatter","stale-both"]);function Dt(e){return e?jn.has(e.status??null):!1}function _e(e){let i=e.metadata;return i&&typeof i=="object"&&!Array.isArray(i)?i:null}function xo(e){if(!e)return null;let i=e.sidecar?.annotations;if(i&&typeof i.version=="number")return`v${i.version}`;let t=_e(e.frontmatter)?.version;return typeof t=="string"&&t.length>0?`v${t}`:null}function bo(e){if(!e)return null;let t=e.sidecar?.annotations?.stability;if(t==="stable"||t==="experimental"||t==="deprecated")return t;let n=_e(e.frontmatter)?.stability;return n==="stable"||n==="experimental"||n==="deprecated"?n:null}function Co(e){return Dt(e?.sidecar)}function wo(e){if(!e)return null;let t=e.sidecar?.annotations?.supersededBy;if(typeof t=="string"&&t.length>0)return t;let n=_e(e.frontmatter)?.supersededBy;return typeof n=="string"&&n.length>0?n:null}function It(e){if(!e)return[];let t=e.sidecar?.annotations?.tags;if(Array.isArray(t))return t.filter(o=>typeof o=="string"&&o.length>0);let n=_e(e.frontmatter)?.tags;return Array.isArray(n)?n.filter(o=>typeof o=="string"&&o.length>0):[]}function To(e,i){switch(e?.sidecar?.status){case"stale-body":return i.staleBody;case"stale-frontmatter":return i.staleFrontmatter;case"stale-both":return i.staleBoth;default:return""}}function Mo(e){return e<1e3?`${e}`:e<1e4?`${(e/1e3).toFixed(1).replace(/\.0$/,"")}k`:`${Math.round(e/1e3)}k`}function No(e){let i=new Date(e);if(isNaN(i.getTime()))return e;let t=Date.now()-i.getTime(),n=Math.floor(t/1e3);if(n<60)return"just now";let o=Math.floor(n/60);if(o<60)return`${o} minute${o===1?"":"s"} ago`;let r=Math.floor(o/60);if(r<24)return`${r} hour${r===1?"":"s"} ago`;let s=Math.floor(r/24);if(s<30)return`${s} day${s===1?"":"s"} ago`;let a=Math.floor(s/30);if(a<12)return`${a} month${a===1?"":"s"} ago`;let c=Math.floor(s/365);return`${c} year${c===1?"":"s"} ago`}var Ot=["invokes","references","mentions","supersedes"],Io=(()=>{class e{_searchText=F("");_selectedKinds=F([]);_kindToggleExplicitEmpty=F(!1);_favoritesOnly=F(!1);_selectedLinkKinds=F([]);_severityErrorActive=F(!1);_severityWarnActive=F(!1);searchText=this._searchText.asReadonly();selectedKinds=this._selectedKinds.asReadonly();favoritesOnly=this._favoritesOnly.asReadonly();selectedLinkKinds=this._selectedLinkKinds.asReadonly();severityErrorActive=this._severityErrorActive.asReadonly();severityWarnActive=this._severityWarnActive.asReadonly();kindToggleExplicitEmpty=this._kindToggleExplicitEmpty.asReadonly();isActive=d(()=>this._searchText().trim().length>0||this._selectedKinds().length>0||this._kindToggleExplicitEmpty()||this._favoritesOnly()||this._selectedLinkKinds().length>0||this._severityErrorActive()||this._severityWarnActive());setSearchText(t){this._searchText.set(t)}setKinds(t){this._kindToggleExplicitEmpty.set(!1),this._selectedKinds.set([...t])}toggleKind(t,n){let o=this._selectedKinds(),r=n,a=this._kindToggleExplicitEmpty()?new Set:o.length===0?new Set(r):new Set(o);a.has(t)?a.delete(t):a.add(t),a.size===r.length?(this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!1)):a.size===0?(this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!0)):(this._selectedKinds.set([...a]),this._kindToggleExplicitEmpty.set(!1))}isKindActive(t){if(this._kindToggleExplicitEmpty())return!1;let n=this._selectedKinds();return n.length===0?!0:n.includes(t)}setFavoritesOnly(t){this._favoritesOnly.set(t)}setLinkKinds(t){this._selectedLinkKinds.set([...t])}toggleLinkKind(t){let n=this._selectedLinkKinds(),o=n.length===0?new Set(Ot):new Set(n);o.has(t)?o.delete(t):o.add(t),o.size===Ot.length?this._selectedLinkKinds.set([]):this._selectedLinkKinds.set([...o])}isLinkKindActive(t){let n=this._selectedLinkKinds();return n.length===0?!0:n.includes(t)}toggleSeverity(t){t==="error"?this._severityErrorActive.set(!this._severityErrorActive()):this._severityWarnActive.set(!this._severityWarnActive())}isSeverityActive(t){return t==="error"?this._severityErrorActive():this._severityWarnActive()}setSeverityFilters(t){let n=new Set(t);this._severityErrorActive.set(n.has("error")),this._severityWarnActive.set(n.has("warn"))}reset(){this._searchText.set(""),this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!1),this._favoritesOnly.set(!1),this._selectedLinkKinds.set([]),this._severityErrorActive.set(!1),this._severityWarnActive.set(!1)}apply(t,n){let o=this.searchText().trim().toLowerCase(),r=this.selectedKinds(),s=this._kindToggleExplicitEmpty(),a=this.favoritesOnly(),c=this._severityErrorActive(),l=this._severityWarnActive(),m=(c||l)&&n!==void 0;return t.filter(h=>{if(o){let y=It(h).join(" ");if(![h.path,h.frontmatter.name??"",h.frontmatter.description??"",y].join(" ").toLowerCase().includes(o))return!1}return!(s||r.length>0&&!r.includes(h.kind)||a&&h.isFavorite!==!0||m&&(c&&!n.errors.has(h.path)||l&&!n.warns.has(h.path)))})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var zn=(()=>{class e{router=K(Ee);open(t){this.router.navigate(["/"],{queryParams:{path:t}})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Pt=new lt("NODE_OPEN_INTENT",{providedIn:"root",factory:()=>K(zn)});var ke="sm-debug-slots",Kn="debug",Vn="is-debug-slots",At=(()=>{class e{visible=F(!1);constructor(){this.visible.set(this.resolveInitial()),Te(()=>{let t=this.visible();document.documentElement.classList.toggle(Vn,t)})}toggle(){let t=!this.visible();this.visible.set(t);try{localStorage.setItem(ke,t?"1":"0")}catch{}}resolveInitial(){let n=new URLSearchParams(window.location.search).get(Kn);if(n!==null&&n!=="0"&&n!=="false"){try{localStorage.setItem(ke,"1")}catch{}return!0}if(n==="0"||n==="false"){try{localStorage.setItem(ke,"0")}catch{}return!1}try{return localStorage.getItem(ke)==="1"}catch{return!1}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Ft=(()=>{class e{registry=F({});setRegistry(t){t&&this.registry.set(t)}get(t){return this.registry()[t]}all(){return this.registry()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function J(e){return typeof e=="object"&&e!==null}function ae(e,i){return J(e)&&Array.isArray(e[i])}function Se(e,i){return J(e)&&typeof e[i]=="string"}var G={panelHeader:"Plugin contributions",panelCount:e=>`${e} contribution${e===1?"":"s"}`,emptyDefault:"No contributions for this node.",rendererInvalid:"Contribution data failed schema validation.",rendererUnknownSlot:e=>`Unknown slot: ${e}. Update the UI to a newer catalog version.`,overflowBadge:e=>`+${e}`,overflowTooltip:e=>`Hidden: ${e}`,recordsCell:{boolTrue:"yes",boolFalse:"no"}};var Un=(e,i)=>i.label;function Hn(e,i){if(e&1&&(w(0,"h5",1),C(1),k()),e&2){let t=_();p(),T(t.label())}}function Gn(e,i){if(e&1&&(w(0,"p",2),C(1),k()),e&2){let t=_();p(),T(t.emptyText())}}function Wn(e,i){if(e&1&&(w(0,"li",4)(1,"span",5),C(2),k(),w(3,"span",6),de(4,"span",7),k(),w(5,"span",8),C(6),k()()),e&2){let t=i.$implicit,n=_(2);S("title",t.tooltip??""),p(2),T(t.label),p(2),yt("width",n.percent(t.value),"%"),p(2),T(t.value)}}function qn(e,i){if(e&1&&(w(0,"ul",3),q(1,Wn,7,5,"li",4,Un),k()),e&2){let t=_();p(),X(t.bars())}}var $t=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return J(t)?ae(t,"bars")?t:{bars:[]}:{bars:[]}});bars=d(()=>this.typed().bars??[]);label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??G.emptyDefault);maxValue=d(()=>this.bars().reduce((n,o)=>o.value>n?o.value:n,0));percent(t){let n=this.maxValue();return n===0?0:Math.round(t/n*100)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-breakdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-breakdown"],[1,"vc-breakdown__header"],[1,"vc-breakdown__empty"],[1,"vc-breakdown__rows"],[1,"vc-breakdown__row"],[1,"vc-breakdown__label"],[1,"vc-breakdown__bar-track"],["aria-hidden","true",1,"vc-breakdown__bar"],[1,"vc-breakdown__value"]],template:function(n,o){n&1&&(w(0,"section",0),N(1,Hn,2,1,"h5",1),N(2,Gn,2,1,"p",2)(3,qn,3,0,"ul",3),k()),n&2&&(S("data-testid","renderer-node-breakdown"),p(),E(o.label()?1:-1),p(),E(o.bars().length===0?2:3))},styles:[".vc-breakdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-breakdown__rows[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.25rem}.vc-breakdown__row[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(4rem,.4fr) 1fr 3rem;align-items:center;gap:.5rem;font-size:.85rem}.vc-breakdown__label[_ngcontent-%COMP%]{color:var(--p-text-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vc-breakdown__bar-track[_ngcontent-%COMP%]{background:var(--p-surface-100);border-radius:var(--sm-radius-md);height:.625rem;overflow:hidden}.vc-breakdown__bar[_ngcontent-%COMP%]{display:block;height:100%;background:var(--p-primary-500)}.vc-breakdown__value[_ngcontent-%COMP%]{text-align:right;color:var(--p-text-color)}.vc-breakdown__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();function Xn(e,i){if(e&1&&(w(0,"span",1),C(1),k()),e&2){let t=_(),n=_();Re(n.hostClass()),p(),T(t.text)}}function Yn(e,i){if(e&1&&de(0,"i",1),e&2){let t=_(),n=_();Re(n.hostClass()+" "+t.cls)}}function Qn(e,i){e&1&&N(0,Xn,2,3,"span",0)(1,Yn,1,2,"i",0),e&2&&E(i.kind==="emoji"?0:1)}function Jn(e){if(!e)return null;let i=e.trim();if(i.length===0)return null;let t=i.codePointAt(0)??0;if(!(t>=65&&t<=90||t>=97&&t<=122))return{kind:"emoji",text:i};if(/^pi pi-[a-z0-9-]+$/.test(i))return{kind:"pi",cls:i};if(/^pi-[a-z0-9-]+$/.test(i))return{kind:"pi",cls:`pi ${i}`};if(/^fa-(?:solid|regular|brands) fa-[a-z0-9-]+$/.test(i))return{kind:"fa",cls:i};if(/^fa-[a-z0-9-]+$/.test(i)){let o=i.slice(3);return o==="solid"||o==="regular"||o==="brands"||o.includes("fa-")?null:{kind:"fa",cls:`fa-solid ${i}`}}return null}var oe=(()=>{class e{icon=P(void 0);hostClass=P("");resolved=d(()=>{let t=this.icon(),n=Jn(t);return t&&!n&&console.warn(`[sm-icon] Invalid icon string "${t}". Expected emoji, pi-foo, pi pi-foo, fa-{solid|regular|brands} fa-foo, or fa-foo.`),n});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-icon"]],inputs:{icon:[1,"icon"],hostClass:[1,"hostClass"]},decls:1,vars:1,consts:[["aria-hidden","true",3,"class"],["aria-hidden","true"]],template:function(n,o){if(n&1&&N(0,Qn,2,1),n&2){let r;E((r=o.resolved())?0:-1,r)}},styles:["[_nghost-%COMP%] i[_ngcontent-%COMP%], [_nghost-%COMP%] span[_ngcontent-%COMP%]{font-size:inherit;line-height:inherit}[_nghost-%COMP%] i[_ngcontent-%COMP%]{transform:translateY(1px)}"],changeDetection:0})}return e})();function Zn(e,i){if(e&1&&(O(0,"span",3),C(1),D()),e&2){let t=_();S("aria-label",t.ariaLabel()),p(),T(t.value())}}var De=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{value:0}:t});value=d(()=>this.typed().value);icon=d(()=>this.inputs().icon);severity=d(()=>this.typed().severity);resolvedTooltip=d(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=d(()=>this.inputs().label??"");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-counter"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:12,consts:[[1,"vc-counter",3,"pTooltip"],[1,"vc-counter__icon"],[3,"icon"],[1,"vc-counter__value"]],template:function(n,o){n&1&&(O(0,"span",0)(1,"span",1),ee(2,"sm-icon",2),D(),N(3,Zn,2,2,"span",3),D()),n&2&&(te("vc-counter--info",o.severity()==="info")("vc-counter--warn",o.severity()==="warn")("vc-counter--success",o.severity()==="success")("vc-counter--danger",o.severity()==="danger"),$("pTooltip",o.resolvedTooltip()),S("data-testid","renderer-node-counter"),p(2),$("icon",o.icon()),p(),E(o.value()>0?3:-1))},dependencies:[H,U,oe],styles:[".vc-counter[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1;color:var(--p-text-color)}.vc-counter__icon[_ngcontent-%COMP%]{font-size:.6rem;line-height:1;display:block}.vc-counter__value[_ngcontent-%COMP%]{font-weight:600;color:var(--p-text-color);line-height:1;display:block}.vc-counter--info[_ngcontent-%COMP%], .vc-counter--info[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-counter--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn);opacity:.85}.vc-counter--warn[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-counter--success[_ngcontent-%COMP%], .vc-counter--success[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-counter--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error);opacity:.85}.vc-counter--danger[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})}return e})();var ei=(e,i)=>i.key;function ti(e,i){if(e&1&&(O(0,"h5",1),C(1),D()),e&2){let t=_();p(),T(t.label())}}function ni(e,i){if(e&1&&(O(0,"p",2),C(1),D()),e&2){let t=_();p(),T(t.emptyText())}}function ii(e,i){if(e&1&&(O(0,"dt",4),C(1),D(),O(2,"dd"),C(3),D()),e&2){let t=i.$implicit,n=_(2);$("pTooltip",t.tooltip??""),p(),T(t.key),p(2),T(n.formatValue(t.value))}}function oi(e,i){if(e&1&&(O(0,"dl",3),q(1,ii,4,3,null,null,ei),D()),e&2){let t=_();p(),X(t.pairs())}}var Lt=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return J(t)?ae(t,"pairs")?t:{pairs:[]}:{pairs:[]}});pairs=d(()=>this.typed().pairs??[]);label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??G.emptyDefault);formatValue(t){return t==null?"\xB7":typeof t=="boolean"?t?"true":"false":String(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-key-values"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-kv"],[1,"vc-kv__header"],[1,"vc-kv__empty"],[1,"vc-kv__list"],[3,"pTooltip"]],template:function(n,o){n&1&&(O(0,"section",0),N(1,ti,2,1,"h5",1),N(2,ni,2,1,"p",2)(3,oi,3,0,"dl",3),D()),n&2&&(S("data-testid","renderer-node-key-values"),p(),E(o.label()?1:-1),p(),E(o.pairs().length===0?2:3))},dependencies:[H,U],styles:[".vc-kv__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-kv__list[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(6rem,max-content) 1fr;gap:.25rem .75rem;margin:0;font-size:.85rem}.vc-kv__list[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-weight:500}.vc-kv__list[_ngcontent-%COMP%] dd[_ngcontent-%COMP%]{color:var(--p-text-color);margin:0;word-break:break-word}.vc-kv__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();var ri=(e,i)=>i.path;function ai(e,i){if(e&1&&(w(0,"h5",1),C(1),k()),e&2){let t=_();p(),T(t.label())}}function si(e,i){if(e&1&&(w(0,"p",2),C(1),k()),e&2){let t=_();p(),T(t.emptyText())}}function li(e,i){if(e&1&&(w(0,"span",5),C(1),k()),e&2){let t=_().$implicit;p(),T(t.kind)}}function ci(e,i){if(e&1){let t=he();w(0,"li")(1,"button",4),_t("click",function(){let o=me(t).$implicit,r=_(2);return ge(r.onOpenPath(o.path))}),N(2,li,2,1,"span",5),w(3,"span",6),C(4),k()()()}if(e&2){let t=i.$implicit;p(2),E(t.kind?2:-1),p(2),T(t.label??t.path)}}function di(e,i){if(e&1&&(w(0,"ul",3),q(1,ci,5,2,"li",null,ri),k()),e&2){let t=_();p(),X(t.links())}}var Rt=(()=>{class e{openIntent=K(Pt);inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return J(t)?ae(t,"links")?t:{links:[]}:{links:[]}});links=d(()=>this.typed().links??[]);label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??G.emptyDefault);onOpenPath(t){this.openIntent.open(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-link-list"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-links"],[1,"vc-links__header"],[1,"vc-links__empty"],[1,"vc-links__list"],["type","button",1,"vc-links__btn",3,"click"],[1,"vc-links__kind"],[1,"vc-links__label"]],template:function(n,o){n&1&&(w(0,"section",0),N(1,ai,2,1,"h5",1),N(2,si,2,1,"p",2)(3,di,3,0,"ul",3),k()),n&2&&(S("data-testid","renderer-node-link-list"),p(),E(o.label()?1:-1),p(),E(o.links().length===0?2:3))},styles:[".vc-links__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-links__list[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.125rem;font-size:.85rem}.vc-links__btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;background:transparent;border:0;padding:.25rem .5rem;border-radius:var(--sm-radius-md);color:var(--p-primary-color);cursor:pointer;text-align:left;width:100%}.vc-links__btn[_ngcontent-%COMP%]:hover{background:var(--p-surface-100)}.vc-links__kind[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-family:var(--sm-font-mono);font-size:.75rem}.vc-links__label[_ngcontent-%COMP%]{word-break:break-all}.vc-links__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();var Bt=(e,i)=>i.key;function pi(e,i){if(e&1&&(w(0,"h5",1),C(1),k()),e&2){let t=_();p(),T(t.label())}}function ui(e,i){if(e&1&&(w(0,"p",2),C(1),k()),e&2){let t=_();p(),T(t.emptyText())}}function fi(e,i){if(e&1&&(w(0,"th"),C(1),k()),e&2){let t=i.$implicit;p(),T(t.label)}}function mi(e,i){if(e&1&&de(0,"i",4),e&2){let t=_(4);S("aria-label",t.texts.boolTrue)}}function gi(e,i){if(e&1&&de(0,"i",5),e&2){let t=_(4);S("aria-label",t.texts.boolFalse)}}function vi(e,i){}function hi(e,i){if(e&1&&C(0),e&2){let t=_().$implicit,n=_().$implicit,o=_(2);Ne(" ",o.cellText(n[t.key])," ")}}function _i(e,i){if(e&1&&(w(0,"td"),N(1,mi,1,1,"i",4)(2,gi,1,1,"i",5)(3,vi,0,0)(4,hi,1,1),k()),e&2){let t,n=i.$implicit,o=_().$implicit,r=_(2);p(),E((t=r.cellKind(o[n.key]))==="bool-true"?1:t==="bool-false"?2:t==="empty"?3:4)}}function yi(e,i){if(e&1&&(w(0,"tr"),q(1,_i,5,1,"td",null,Bt),k()),e&2){let t=_(2);p(),X(t.columns())}}function xi(e,i){if(e&1&&(w(0,"table",3)(1,"thead")(2,"tr"),q(3,fi,2,1,"th",null,Bt),k()(),w(5,"tbody"),q(6,yi,3,0,"tr",null,vt),k()()),e&2){let t=_();p(3),X(t.columns()),p(3),X(t.rows())}}var jt=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return J(t)?!ae(t,"columns")||!ae(t,"rows")?{columns:[],rows:[]}:t:{columns:[],rows:[]}});columns=d(()=>this.typed().columns??[]);rows=d(()=>this.typed().rows??[]);label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??G.emptyDefault);texts=G.recordsCell;cellKind(t){return t==null?"empty":typeof t=="boolean"?t?"bool-true":"bool-false":"text"}cellText(t){return t==null?"":String(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-records"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-records"],[1,"vc-records__header"],[1,"vc-records__empty"],[1,"vc-records__table"],["role","img",1,"pi","pi-check","vc-records__bool","vc-records__bool--true"],["role","img",1,"pi","pi-minus","vc-records__bool","vc-records__bool--false"]],template:function(n,o){n&1&&(w(0,"section",0),N(1,pi,2,1,"h5",1),N(2,ui,2,1,"p",2)(3,xi,8,0,"table",3),k()),n&2&&(S("data-testid","renderer-node-records"),p(),E(o.label()?1:-1),p(),E(o.rows().length===0?2:3))},styles:[".vc-records__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-records__table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.85rem}.vc-records__table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left;padding:.25rem .5rem;border-bottom:1px solid var(--p-surface-200);color:var(--p-text-muted-color);font-weight:600}.vc-records__table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.25rem .5rem;border-bottom:1px solid var(--p-surface-100);color:var(--p-text-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:16rem}.vc-records__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}.vc-records__bool[_ngcontent-%COMP%]{font-size:.9rem;line-height:1}.vc-records__bool--true[_ngcontent-%COMP%]{color:var(--p-primary-color)}.vc-records__bool--false[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}"],changeDetection:0})}return e})();function bi(e,i){if(e&1&&(w(0,"h5",1),C(1),k()),e&2){let t=_();p(),T(t.label())}}function Ci(e,i){if(e&1&&(w(0,"p",2),C(1),k()),e&2){let t=_();p(),T(t.emptyText())}}function wi(e,i){if(e&1&&(w(0,"pre",3),C(1),k()),e&2){let t=_();p(),T(t.markdown())}}var zt=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return J(t)?Se(t,"markdown")?t:{markdown:""}:{markdown:""}});markdown=d(()=>this.typed().markdown??"");label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??G.emptyDefault);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-markdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-markdown"],[1,"vc-markdown__header"],[1,"vc-markdown__empty"],[1,"vc-markdown__body"]],template:function(n,o){n&1&&(w(0,"section",0),N(1,bi,2,1,"h5",1),N(2,Ci,2,1,"p",2)(3,wi,2,1,"pre",3),k()),n&2&&(S("data-testid","renderer-node-markdown"),p(),E(o.label()?1:-1),p(),E(o.markdown()?3:2))},styles:[".vc-markdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-markdown__body[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-color);background:var(--p-surface-50);padding:.5rem;border-radius:var(--sm-radius-md);white-space:pre-wrap;word-break:break-word;margin:0;max-height:12rem;overflow:auto}.vc-markdown__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();var Kt={countAriaFallback:"count"};function Ti(e,i){if(e&1&&(O(0,"span",1),ee(1,"sm-icon",4),D()),e&2){let t=_();p(),$("icon",t.icon())}}function Mi(e,i){if(e&1&&(O(0,"span",2),C(1),D()),e&2){let t=_();p(),T(t.label())}}function Ni(e,i){if(e&1&&(O(0,"span",3),C(1),D()),e&2){let t=_();S("aria-label",t.countAria()),p(),T(t.count())}}var Vt=(()=>{class e{inputs=P.required();texts=Kt;typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{}:t});icon=d(()=>this.inputs().icon);label=d(()=>{let t=this.typed().label;return typeof t=="string"?t:""});count=d(()=>{let t=this.typed().count;return typeof t=="number"&&Number.isFinite(t)?t:null});severity=d(()=>this.typed().severity);hasTint=d(()=>!!this.severity()&&this.label().length>0);resolvedTooltip=d(()=>this.typed().tooltip??this.inputs().tooltip??"");countAria=d(()=>this.inputs().label??(this.label()||this.texts.countAriaFallback));static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-badge"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:15,consts:[["tooltipPosition","left",1,"vc-badge",3,"pTooltip"],[1,"vc-badge__icon"],[1,"vc-badge__label"],[1,"vc-badge__count"],[3,"icon"]],template:function(n,o){n&1&&(O(0,"span",0),N(1,Ti,2,1,"span",1),N(2,Mi,2,1,"span",2),N(3,Ni,2,2,"span",3),D()),n&2&&(te("vc-badge--tinted",o.hasTint())("vc-badge--info",o.severity()==="info")("vc-badge--warn",o.severity()==="warn")("vc-badge--success",o.severity()==="success")("vc-badge--danger",o.severity()==="danger"),$("pTooltip",o.resolvedTooltip()),S("data-testid","renderer-node-badge"),p(),E(o.icon()?1:-1),p(),E(o.label()?2:-1),p(),E(o.count()!==null?3:-1))},dependencies:[H,U,oe],styles:[".vc-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1;color:var(--p-text-color)}.vc-badge__icon[_ngcontent-%COMP%]{font-size:.6rem;line-height:1;display:block}.vc-badge__label[_ngcontent-%COMP%]{font-weight:500;line-height:1;display:block}.vc-badge__count[_ngcontent-%COMP%]{font-weight:600;line-height:1;display:block}.vc-badge--info[_ngcontent-%COMP%]:not(.vc-badge--tinted){color:var(--sm-severity-info)}.vc-badge--warn[_ngcontent-%COMP%]:not(.vc-badge--tinted){color:var(--sm-severity-warn);opacity:.85}.vc-badge--success[_ngcontent-%COMP%]:not(.vc-badge--tinted){color:var(--sm-severity-success)}.vc-badge--danger[_ngcontent-%COMP%]:not(.vc-badge--tinted){color:var(--sm-severity-error);opacity:.85}.vc-badge--tinted[_ngcontent-%COMP%]{padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-badge--tinted.vc-badge--info[_ngcontent-%COMP%]{background:var(--sm-severity-info-bg);color:var(--sm-severity-info)}.vc-badge--tinted.vc-badge--warn[_ngcontent-%COMP%]{background:var(--sm-severity-warn-bg);color:var(--sm-severity-warn)}.vc-badge--tinted.vc-badge--success[_ngcontent-%COMP%]{background:var(--sm-severity-success-bg);color:var(--sm-severity-success)}.vc-badge--tinted.vc-badge--danger[_ngcontent-%COMP%]{background:var(--sm-severity-error-bg);color:var(--sm-severity-error)}"],changeDetection:0})}return e})();var Ut={errorPrefix:"Action failed:",errorFresh:"This node is fresh; nothing to do.",errorNotFound:"Node not found on the server.",errorReadonly:"Actions are not available in demo mode.",errorGeneric:"Could not run the action."};var Ht=(()=>{class e{dataSource=K(Et);texts=Ut;inFlightSig=F(!1);errorSig=F(null);consentOpenSig=F(!1);inFlight=this.inFlightSig.asReadonly();error=this.errorSig.asReadonly();consentOpen=this.consentOpenSig.asReadonly();idle=d(()=>!this.inFlightSig());pending=null;async dispatch(t,n,o){this.inFlightSig()||(this.errorSig.set(null),await this.run(t,n,o,{}))}resolveConsent(t){this.consentOpenSig.set(!1);let n=this.pending;if(this.pending=null,!n||!t.accepted)return;let o=t.always?{confirm:!0,always:!0}:{confirm:!0};this.run(n.actionId,n.nodePath,n.input,o)}dismissError(){this.errorSig.set(null)}async run(t,n,o,r){this.inFlightSig.set(!0);try{await this.dataSource.dispatchAction(t,n,we({input:o},r))}catch(s){if(r.confirm!==!0&&s instanceof Be&&s.code==="confirm-required"&&Ei(s.details)){this.pending={actionId:t,nodePath:n,input:o},this.consentOpenSig.set(!0);return}this.errorSig.set(this.formatError(s))}finally{this.inFlightSig.set(!1)}}formatError(t){if(t instanceof Be)switch(t.code){case"sidecar-fresh":return`${this.texts.errorPrefix} ${this.texts.errorFresh}`;case"not-found":return`${this.texts.errorPrefix} ${this.texts.errorNotFound}`;case"demo-readonly":return`${this.texts.errorPrefix} ${this.texts.errorReadonly}`;default:return`${this.texts.errorPrefix} ${t.message||this.texts.errorGeneric}`}let n=t instanceof Error?t.message:String(t);return`${this.texts.errorPrefix} ${n||this.texts.errorGeneric}`}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ei(e){return typeof e!="object"||e===null?!1:e.key==="allowEditSmFiles"}var Gt={fallbackLabel:"Run action",dismissErrorAriaLabel:"Dismiss",promptDialogHeader:"Provide a value"};var ki=()=>[import("./chunk-WFLPMCK4.js").then(e=>e.ActionPromptDialog)];function Si(e,i){if(e&1){let t=he();O(0,"span",2)(1,"span",3),C(2),D(),O(3,"button",4),Me("click",function(){me(t);let o=_();return ge(o.dismissError())}),ee(4,"i",5),D()()}if(e&2){let t=_();p(2),T(i),p(),S("aria-label",t.texts.dismissErrorAriaLabel)}}function Di(e,i){if(e&1){let t=he();O(0,"sm-action-prompt-dialog",7),Me("confirmed",function(o){me(t);let r=_(2);return ge(r.onPromptConfirmed(o))})("closed",function(){me(t);let o=_(2);return ge(o.cancelPrompt())}),D()}if(e&2){let t=_(2);$("open",t.promptOpen())("descriptor",t.promptDescriptor())("headerText",t.dialogHeader())("busy",t.inFlight())}}function Ii(e,i){if(e&1&&N(0,Di,1,4,"sm-action-prompt-dialog",6),e&2){let t,n=_();E((t=n.prompt())?0:-1,t)}}var Wt=(()=>{class e{inputs=P.required();texts=Gt;dispatcher=K(Ht);inFlightSig=F(!1);errorSig=F(null);promptOpenSig=F(!1);promptOpenedSig=F(!1);inFlight=this.inFlightSig.asReadonly();error=this.errorSig.asReadonly();promptOpen=this.promptOpenSig.asReadonly();promptOpened=this.promptOpenedSig.asReadonly();typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{actionId:""}:t});actionId=d(()=>this.typed().actionId||"");label=d(()=>this.typed().label??this.inputs().label??this.texts.fallbackLabel);icon=d(()=>this.typed().icon??this.inputs().icon);enabled=d(()=>this.typed().enabled!==!1);severity=d(()=>{switch(this.typed().severity){case"info":return"info";case"warn":return"warn";case"success":return"success";case"danger":return"danger";default:return"secondary"}});tooltip=d(()=>this.enabled()?this.inputs().tooltip??"":this.typed().disabledReason??"");prompt=d(()=>{let t=this.typed().prompt;return!t||typeof t!="object"||!t.inputType||!t.paramKey?null:t});promptDescriptor=d(()=>{let t=this.prompt();return{inputType:t?.inputType??"",label:t?.label??"",options:t?.options,defaultValue:t?.defaultValue}});dialogHeader=d(()=>this.typed().label??this.texts.promptDialogHeader);run(){if(!(!this.enabled()||this.inFlightSig())){if(this.prompt()){this.openPrompt();return}this.dispatch(this.typed().input)}}openPrompt(){this.errorSig.set(null),this.promptOpenedSig.set(!0),this.promptOpenSig.set(!0)}onPromptConfirmed(t){let n=this.prompt();if(!n)return;this.promptOpenSig.set(!1);let o=at(we({},this.typed().input??{}),{[n.paramKey]:t});this.dispatch(o)}cancelPrompt(){this.promptOpenSig.set(!1)}async dispatch(t){let n=this.actionId(),o=this.inputs().nodePath;if(!(!n||!o)){this.errorSig.set(null),this.inFlightSig.set(!0);try{await this.dispatcher.dispatch(n,o,t);let r=this.dispatcher.error();r&&this.errorSig.set(r)}finally{this.inFlightSig.set(!1)}}}dismissError(){this.errorSig.set(null),this.dispatcher.dismissError()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-action-button"]],inputs:{inputs:[1,"inputs"]},decls:6,vars:9,consts:[["data-testid","renderer-node-action-button",1,"vc-action"],["size","small",3,"onClick","label","icon","severity","disabled","loading","pTooltip"],["role","alert","data-testid","renderer-node-action-button-error",1,"vc-action__error"],[1,"vc-action__error-text"],["type","button","data-testid","renderer-node-action-button-error-dismiss",1,"vc-action__error-dismiss",3,"click"],["aria-hidden","true",1,"pi","pi-times"],[3,"open","descriptor","headerText","busy"],[3,"confirmed","closed","open","descriptor","headerText","busy"]],template:function(n,o){if(n&1&&(O(0,"span",0)(1,"p-button",1),Me("onClick",function(){return o.run()}),D(),N(2,Si,5,2,"span",2),D(),ut(3,Ii,1,1),ft(4,3,ki),gt()),n&2){let r;p(),$("label",o.label())("icon",o.icon()??"")("severity",o.severity())("disabled",!o.enabled()||o.inFlight())("loading",o.inFlight())("pTooltip",o.tooltip()),S("data-testid","action-"+o.actionId()),p(),E((r=o.error())?2:-1,r),p(2),mt(o.promptOpened())}},dependencies:[Mt,Tt,H,U],styles:[".vc-action[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.4rem;flex-wrap:wrap}.vc-action__error[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;font-size:.8rem;color:var(--sm-severity-error);background:var(--sm-severity-error-bg);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-action__error-dismiss[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:0;line-height:1;color:var(--sm-severity-error);display:inline-flex}.vc-action__error-dismiss[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{font-size:.7rem}"],changeDetection:0})}return e})();var Oi=()=>[],qt=(e,i)=>i.label;function Pi(e,i){if(e&1&&(w(0,"h5",1),C(1),k()),e&2){let t=_();p(),T(t.label())}}function Ai(e,i){if(e&1&&(w(0,"p",2),C(1),k()),e&2){let t=_();p(),T(t.emptyText())}}function Fi(e,i){if(e&1&&(w(0,"span",5),C(1),k()),e&2){let t=_().$implicit;p(),T(t.marker)}}function $i(e,i){if(e&1&&(w(0,"span",5),C(1),k()),e&2){let t=_().$implicit;p(),T(t.marker)}}function Li(e,i){if(e&1&&(w(0,"li",4),N(1,$i,2,1,"span",5),w(2,"span",6),C(3),k()()),e&2){let t=i.$implicit;S("title",t.tooltip??""),p(),E(t.marker?1:-1),p(2),T(t.label)}}function Ri(e,i){if(e&1&&(w(0,"ul",7),q(1,Li,4,3,"li",4,qt),k()),e&2){let t=_().$implicit;p(),X(t.children)}}function Bi(e,i){if(e&1&&(w(0,"li",4),N(1,Fi,2,1,"span",5),w(2,"span",6),C(3),k(),N(4,Ri,3,0,"ul",7),k()),e&2){let t=i.$implicit;S("title",t.tooltip??""),p(),E(t.marker?1:-1),p(2),T(t.label),p(),E(t.children&&t.children.length>0?4:-1)}}function ji(e,i){if(e&1&&(w(0,"ul",3),q(1,Bi,5,4,"li",4,qt),k()),e&2){let t=_();p(),X(t.root().children??xt(0,Oi))}}var Xt=(()=>{class e{inputs=P.required();root=d(()=>{let t=this.inputs().payload;return J(t)?Se(t,"label")?t.children!==void 0&&!Array.isArray(t.children)?{label:""}:t:{label:""}:{label:""}});rootIsEmpty=d(()=>{let t=this.root();return!t.children||t.children.length===0});label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??G.emptyDefault);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-tree"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-tree"],[1,"vc-tree__header"],[1,"vc-tree__empty"],["role","tree",1,"vc-tree__list"],["role","treeitem"],["aria-hidden","true",1,"vc-tree__marker"],[1,"vc-tree__label"],["role","group",1,"vc-tree__list"]],template:function(n,o){n&1&&(w(0,"section",0),N(1,Pi,2,1,"h5",1),N(2,Ai,2,1,"p",2)(3,ji,3,1,"ul",3),k()),n&2&&(S("data-testid","renderer-node-tree"),p(),E(o.label()?1:-1),p(),E(o.rootIsEmpty()?2:3))},styles:[".vc-tree__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-tree__list[_ngcontent-%COMP%]{list-style:none;padding-left:1rem;margin:0;font-size:.85rem}.vc-tree__list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{padding:.125rem 0}.vc-tree__marker[_ngcontent-%COMP%]{margin-right:.25rem;opacity:.7}.vc-tree__label[_ngcontent-%COMP%]{color:var(--p-text-color)}.vc-tree__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();function zi(e,i){if(e&1&&(O(0,"span",2),C(1),D()),e&2){let t=_();p(),T(t.formattedCount())}}var Yt=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{}:t});icon=d(()=>this.typed().icon??this.inputs().icon);severity=d(()=>this.typed().severity);count=d(()=>this.typed().count??null);resolvedTooltip=d(()=>this.typed().tooltip??this.inputs().tooltip??"");formattedCount=d(()=>{let t=this.count();return t===null?"":t>=99?"99+":String(t)});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-alert"]],inputs:{inputs:[1,"inputs"]},decls:3,vars:12,consts:[[1,"vc-alert",3,"pTooltip"],["hostClass","vc-alert__icon",3,"icon"],[1,"vc-alert__count"]],template:function(n,o){n&1&&(O(0,"span",0),ee(1,"sm-icon",1),N(2,zi,2,1,"span",2),D()),n&2&&(te("vc-alert--info",o.severity()==="info")("vc-alert--warn",o.severity()==="warn")("vc-alert--success",o.severity()==="success")("vc-alert--danger",o.severity()==="danger"),$("pTooltip",o.resolvedTooltip()),S("data-testid","renderer-node-alert"),p(),$("icon",o.icon()),p(),E(o.count()!==null?2:-1))},dependencies:[H,U,oe],styles:[".vc-alert[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:.125rem;min-width:1.1rem;min-height:1.1rem;font-size:.85rem;color:var(--p-surface-700)}.vc-alert--info[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-alert--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-alert--success[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-alert--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})}return e})();var Qt=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{}:t});icon=d(()=>this.typed().icon??this.inputs().icon);severity=d(()=>this.typed().severity);resolvedTooltip=d(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=d(()=>this.inputs().label??"");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-icon"]],inputs:{inputs:[1,"inputs"]},decls:2,vars:12,consts:[[1,"vc-icon",3,"pTooltip"],["hostClass","vc-icon__glyph",3,"icon"]],template:function(n,o){n&1&&(O(0,"span",0),ee(1,"sm-icon",1),D()),n&2&&(te("vc-icon--info",o.severity()==="info")("vc-icon--warn",o.severity()==="warn")("vc-icon--success",o.severity()==="success")("vc-icon--danger",o.severity()==="danger"),$("pTooltip",o.resolvedTooltip()),S("aria-label",o.ariaLabel())("data-testid","renderer-node-icon"),p(),$("icon",o.icon()))},dependencies:[H,U,oe],styles:[".vc-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;line-height:1;width:22px;height:22px}.vc-icon__glyph[_ngcontent-%COMP%]{font-size:.7rem;line-height:1;display:block}.vc-icon--info[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-icon--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-icon--success[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-icon--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})}return e})();function Ki(e,i){if(e&1&&(O(0,"span",3),C(1),D()),e&2){let t=_();p(),T(t.label())}}var Jt=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{value:""}:t});value=d(()=>String(this.typed().value??""));label=d(()=>this.typed().label??this.inputs().label);icon=d(()=>this.inputs().icon);severity=d(()=>this.typed().severity);resolvedTooltip=d(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-scope-stat"]],inputs:{inputs:[1,"inputs"]},decls:5,vars:13,consts:[[1,"vc-stat",3,"pTooltip"],["hostClass","vc-stat__icon",3,"icon"],[1,"vc-stat__value"],[1,"vc-stat__label"]],template:function(n,o){n&1&&(O(0,"span",0),ee(1,"sm-icon",1),O(2,"span",2),C(3),D(),N(4,Ki,2,1,"span",3),D()),n&2&&(te("vc-stat--info",o.severity()==="info")("vc-stat--warn",o.severity()==="warn")("vc-stat--success",o.severity()==="success")("vc-stat--danger",o.severity()==="danger"),$("pTooltip",o.resolvedTooltip()),S("data-testid","renderer-scope-stat"),p(),$("icon",o.icon()),p(2),T(o.value()),p(),E(o.label()?4:-1))},dependencies:[H,U,oe],styles:[".vc-stat[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;border-radius:.75rem;font-size:.85rem;background:var(--p-surface-100);color:var(--p-surface-800)}.vc-stat__label[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.8rem}.vc-stat--info[_ngcontent-%COMP%]{background:var(--p-blue-100);color:var(--p-blue-700)}.vc-stat--warn[_ngcontent-%COMP%]{background:var(--p-yellow-100);color:var(--p-yellow-800)}.vc-stat--success[_ngcontent-%COMP%]{background:var(--p-green-100);color:var(--p-green-700)}.vc-stat--danger[_ngcontent-%COMP%]{background:var(--p-red-100);color:var(--p-red-700)}"],changeDetection:0})}return e})();var ze={"card.title.right":Qt,"card.subtitle.left":De,"card.footer.left":De,"card.footer.right":De,"graph.node.alert":Yt,"inspector.header.badge":Vt,"inspector.action.button":Wt,"inspector.body.panel.breakdown":$t,"inspector.body.panel.records":jt,"inspector.body.panel.tree":Xt,"inspector.body.panel.key-values":Lt,"inspector.body.panel.link-list":Rt,"inspector.body.panel.markdown":zt,"topbar.nav.start":Jt};function Zt(e){return e in ze}var Ka=new Set(["inspector.body.panel.breakdown","inspector.body.panel.records","inspector.body.panel.tree","inspector.body.panel.key-values","inspector.body.panel.link-list","inspector.body.panel.markdown"]),ce={"topbar.nav.start":{id:"topbar.nav.start",cardinality:"multi",maxItems:3,order:"alphabetical",strategy:"append"},"inspector.header.badge":{id:"inspector.header.badge",cardinality:"multi",maxItems:4,order:"priority",strategy:"append",respectSeverity:!0},"inspector.action.button":{id:"inspector.action.button",cardinality:"multi",order:"priority",strategy:"append",respectSeverity:!0},"inspector.body.panel.breakdown":{id:"inspector.body.panel.breakdown",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.records":{id:"inspector.body.panel.records",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.tree":{id:"inspector.body.panel.tree",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.key-values":{id:"inspector.body.panel.key-values",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.link-list":{id:"inspector.body.panel.link-list",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.markdown":{id:"inspector.body.panel.markdown",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"card.footer.left":{id:"card.footer.left",cardinality:"multi",maxItems:5,order:"priority",strategy:"append",respectSeverity:!0},"card.footer.right":{id:"card.footer.right",cardinality:"multi",maxItems:5,order:"priority",strategy:"append",respectSeverity:!0},"card.subtitle.left":{id:"card.subtitle.left",cardinality:"multi",maxItems:3,order:"priority",strategy:"append",respectSeverity:!0},"card.title.right":{id:"card.title.right",cardinality:"multi",maxItems:2,order:"priority",strategy:"append",respectSeverity:!0},"graph.node.alert":{id:"graph.node.alert",cardinality:"multi",maxItems:1,order:"severity",strategy:"append",showOverflowBadge:!1}};function en(e,i,t,n){let o=ce[i].respectSeverity!==!1,r=e.payload;if(!o&&typeof r=="object"&&r!==null&&"severity"in r){let a=r,{severity:c}=a;r=st(a,["severity"])}let s={pluginId:e.pluginId,extensionId:e.extensionId,contributionId:e.contributionId,nodePath:t,payload:r};return n?.label&&(s.label=n.label),n?.tooltip&&(s.tooltip=n.tooltip),n?.icon&&(s.icon=n.icon),n?.emptyText&&(s.emptyText=n.emptyText),s}var Vi=e=>({inputs:e}),Ui=(e,i)=>i.qualifiedId;function Hi(e,i){e&1&&ht(0)}function Gi(e,i){if(e&1&&(O(0,"span",1),pt(1,Hi,1,0,"ng-container",3),D()),e&2){let t=i.$implicit,n=_(2);S("data-testid","contribution-"+t.qualifiedId.replaceAll("/","-")),p(),$("ngComponentOutlet",n.rendererFor(t.slot))("ngComponentOutletInputs",bt(3,Vi,t.rendererInputs))}}function Wi(e,i){if(e&1&&(O(0,"span",2),C(1),D()),e&2){let t=_(2);$("pTooltip",t.overflowTooltip()),p(),Ne(" ",t.overflowBadge()," ")}}function qi(e,i){if(e&1&&(O(0,"span",0),q(1,Gi,2,5,"span",1,Ui),N(3,Wi,2,2,"span",2),D()),e&2){let t=_();S("data-testid","view-contributions-host-"+t.testidSuffix()),p(),X(t.visible()),p(2),E(t.overflowCount()>0&&t.showOverflowBadge()?3:-1)}}var os=(()=>{class e{slot=P.required();node=P(null);debugSlots=K(At);debugVisible=this.debugSlots.visible;testidSuffix=d(()=>this.slot().replaceAll(".","-"));registry=K(Ft);dispatched=d(()=>{let t=this.node();if(!t)return[];let n=t.contributions??[];if(n.length===0)return[];let o=this.slot(),r=n.filter(s=>s.slot===o).filter(s=>Zt(s.slot));return this.sortBySlotOrder(r,o).map(s=>({qualifiedId:`${s.pluginId}/${s.extensionId}/${s.contributionId}`,slot:s.slot,rendererInputs:this.buildInputs(s,o,t.path)}))});visible=d(()=>{let t=this.dispatched(),n=ce[this.slot()].maxItems;return n===void 0?t:t.slice(0,n)});debugTitle=d(()=>{if(!this.debugVisible())return null;let t=this.dispatched();return t.length===0?null:t.map(n=>n.qualifiedId).join(`
1
+ import{b as wt,i as Ee}from"./chunk-UBQUCSQ4.js";import{a as Nt,c as Et,d as Be,l as je,m as kt,o as St}from"./chunk-4CXAL43H.js";import{J as U,K as H,Q as Tt,R as Mt}from"./chunk-GBKHMJ4B.js";import{g as Ct}from"./chunk-LCOYSPKE.js";import{$ as dt,$a as pt,Bb as ht,Eb as he,Gb as Me,Ha as p,Hb as _t,Ib as _,K as Q,N as lt,P as K,Tb as yt,Ub as te,V as me,W as ge,Wa as A,Wb as Re,Xb as C,Yb as T,Zb as Ne,_ as ct,ab as ut,ga as F,gb as ft,hb as mt,hc as xt,ia as Te,ib as gt,ic as bt,jb as S,mb as N,nb as E,ob as vt,qb as q,rb as X,sb as $,sc as d,tb as O,ub as D,uc as P,vb as ee,wb as w,xb as k,yb as de}from"./chunk-Q2A6FWC7.js";import{a as we,b as at,d as st}from"./chunk-WCABR6TI.js";var jn=new Set(["stale-body","stale-frontmatter","stale-both"]);function Dt(e){return e?jn.has(e.status??null):!1}function _e(e){let i=e.metadata;return i&&typeof i=="object"&&!Array.isArray(i)?i:null}function xo(e){if(!e)return null;let i=e.sidecar?.annotations;if(i&&typeof i.version=="number")return`v${i.version}`;let t=_e(e.frontmatter)?.version;return typeof t=="string"&&t.length>0?`v${t}`:null}function bo(e){if(!e)return null;let t=e.sidecar?.annotations?.stability;if(t==="stable"||t==="experimental"||t==="deprecated")return t;let n=_e(e.frontmatter)?.stability;return n==="stable"||n==="experimental"||n==="deprecated"?n:null}function Co(e){return Dt(e?.sidecar)}function wo(e){if(!e)return null;let t=e.sidecar?.annotations?.supersededBy;if(typeof t=="string"&&t.length>0)return t;let n=_e(e.frontmatter)?.supersededBy;return typeof n=="string"&&n.length>0?n:null}function It(e){if(!e)return[];let t=e.sidecar?.annotations?.tags;if(Array.isArray(t))return t.filter(o=>typeof o=="string"&&o.length>0);let n=_e(e.frontmatter)?.tags;return Array.isArray(n)?n.filter(o=>typeof o=="string"&&o.length>0):[]}function To(e,i){switch(e?.sidecar?.status){case"stale-body":return i.staleBody;case"stale-frontmatter":return i.staleFrontmatter;case"stale-both":return i.staleBoth;default:return""}}function Mo(e){return e<1e3?`${e}`:e<1e4?`${(e/1e3).toFixed(1).replace(/\.0$/,"")}k`:`${Math.round(e/1e3)}k`}function No(e){let i=new Date(e);if(isNaN(i.getTime()))return e;let t=Date.now()-i.getTime(),n=Math.floor(t/1e3);if(n<60)return"just now";let o=Math.floor(n/60);if(o<60)return`${o} minute${o===1?"":"s"} ago`;let r=Math.floor(o/60);if(r<24)return`${r} hour${r===1?"":"s"} ago`;let s=Math.floor(r/24);if(s<30)return`${s} day${s===1?"":"s"} ago`;let a=Math.floor(s/30);if(a<12)return`${a} month${a===1?"":"s"} ago`;let c=Math.floor(s/365);return`${c} year${c===1?"":"s"} ago`}var Ot=["invokes","references","mentions","supersedes"],Io=(()=>{class e{_searchText=F("");_selectedKinds=F([]);_kindToggleExplicitEmpty=F(!1);_favoritesOnly=F(!1);_selectedLinkKinds=F([]);_severityErrorActive=F(!1);_severityWarnActive=F(!1);searchText=this._searchText.asReadonly();selectedKinds=this._selectedKinds.asReadonly();favoritesOnly=this._favoritesOnly.asReadonly();selectedLinkKinds=this._selectedLinkKinds.asReadonly();severityErrorActive=this._severityErrorActive.asReadonly();severityWarnActive=this._severityWarnActive.asReadonly();kindToggleExplicitEmpty=this._kindToggleExplicitEmpty.asReadonly();isActive=d(()=>this._searchText().trim().length>0||this._selectedKinds().length>0||this._kindToggleExplicitEmpty()||this._favoritesOnly()||this._selectedLinkKinds().length>0||this._severityErrorActive()||this._severityWarnActive());setSearchText(t){this._searchText.set(t)}setKinds(t){this._kindToggleExplicitEmpty.set(!1),this._selectedKinds.set([...t])}toggleKind(t,n){let o=this._selectedKinds(),r=n,a=this._kindToggleExplicitEmpty()?new Set:o.length===0?new Set(r):new Set(o);a.has(t)?a.delete(t):a.add(t),a.size===r.length?(this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!1)):a.size===0?(this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!0)):(this._selectedKinds.set([...a]),this._kindToggleExplicitEmpty.set(!1))}isKindActive(t){if(this._kindToggleExplicitEmpty())return!1;let n=this._selectedKinds();return n.length===0?!0:n.includes(t)}setFavoritesOnly(t){this._favoritesOnly.set(t)}setLinkKinds(t){this._selectedLinkKinds.set([...t])}toggleLinkKind(t){let n=this._selectedLinkKinds(),o=n.length===0?new Set(Ot):new Set(n);o.has(t)?o.delete(t):o.add(t),o.size===Ot.length?this._selectedLinkKinds.set([]):this._selectedLinkKinds.set([...o])}isLinkKindActive(t){let n=this._selectedLinkKinds();return n.length===0?!0:n.includes(t)}toggleSeverity(t){t==="error"?this._severityErrorActive.set(!this._severityErrorActive()):this._severityWarnActive.set(!this._severityWarnActive())}isSeverityActive(t){return t==="error"?this._severityErrorActive():this._severityWarnActive()}setSeverityFilters(t){let n=new Set(t);this._severityErrorActive.set(n.has("error")),this._severityWarnActive.set(n.has("warn"))}reset(){this._searchText.set(""),this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!1),this._favoritesOnly.set(!1),this._selectedLinkKinds.set([]),this._severityErrorActive.set(!1),this._severityWarnActive.set(!1)}apply(t,n){let o=this.searchText().trim().toLowerCase(),r=this.selectedKinds(),s=this._kindToggleExplicitEmpty(),a=this.favoritesOnly(),c=this._severityErrorActive(),l=this._severityWarnActive(),m=(c||l)&&n!==void 0;return t.filter(h=>{if(o){let y=It(h).join(" ");if(![h.path,h.frontmatter.name??"",h.frontmatter.description??"",y].join(" ").toLowerCase().includes(o))return!1}return!(s||r.length>0&&!r.includes(h.kind)||a&&h.isFavorite!==!0||m&&(c&&!n.errors.has(h.path)||l&&!n.warns.has(h.path)))})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var zn=(()=>{class e{router=K(Ee);open(t){this.router.navigate(["/"],{queryParams:{path:t}})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Pt=new lt("NODE_OPEN_INTENT",{providedIn:"root",factory:()=>K(zn)});var ke="sm-debug-slots",Kn="debug",Vn="is-debug-slots",At=(()=>{class e{visible=F(!1);constructor(){this.visible.set(this.resolveInitial()),Te(()=>{let t=this.visible();document.documentElement.classList.toggle(Vn,t)})}toggle(){let t=!this.visible();this.visible.set(t);try{localStorage.setItem(ke,t?"1":"0")}catch{}}resolveInitial(){let n=new URLSearchParams(window.location.search).get(Kn);if(n!==null&&n!=="0"&&n!=="false"){try{localStorage.setItem(ke,"1")}catch{}return!0}if(n==="0"||n==="false"){try{localStorage.setItem(ke,"0")}catch{}return!1}try{return localStorage.getItem(ke)==="1"}catch{return!1}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Ft=(()=>{class e{registry=F({});setRegistry(t){t&&this.registry.set(t)}get(t){return this.registry()[t]}all(){return this.registry()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function J(e){return typeof e=="object"&&e!==null}function ae(e,i){return J(e)&&Array.isArray(e[i])}function Se(e,i){return J(e)&&typeof e[i]=="string"}var G={panelHeader:"Plugin contributions",panelCount:e=>`${e} contribution${e===1?"":"s"}`,emptyDefault:"No contributions for this node.",rendererInvalid:"Contribution data failed schema validation.",rendererUnknownSlot:e=>`Unknown slot: ${e}. Update the UI to a newer catalog version.`,overflowBadge:e=>`+${e}`,overflowTooltip:e=>`Hidden: ${e}`,recordsCell:{boolTrue:"yes",boolFalse:"no"}};var Un=(e,i)=>i.label;function Hn(e,i){if(e&1&&(w(0,"h5",1),C(1),k()),e&2){let t=_();p(),T(t.label())}}function Gn(e,i){if(e&1&&(w(0,"p",2),C(1),k()),e&2){let t=_();p(),T(t.emptyText())}}function Wn(e,i){if(e&1&&(w(0,"li",4)(1,"span",5),C(2),k(),w(3,"span",6),de(4,"span",7),k(),w(5,"span",8),C(6),k()()),e&2){let t=i.$implicit,n=_(2);S("title",t.tooltip??""),p(2),T(t.label),p(2),yt("width",n.percent(t.value),"%"),p(2),T(t.value)}}function qn(e,i){if(e&1&&(w(0,"ul",3),q(1,Wn,7,5,"li",4,Un),k()),e&2){let t=_();p(),X(t.bars())}}var $t=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return J(t)?ae(t,"bars")?t:{bars:[]}:{bars:[]}});bars=d(()=>this.typed().bars??[]);label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??G.emptyDefault);maxValue=d(()=>this.bars().reduce((n,o)=>o.value>n?o.value:n,0));percent(t){let n=this.maxValue();return n===0?0:Math.round(t/n*100)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-breakdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-breakdown"],[1,"vc-breakdown__header"],[1,"vc-breakdown__empty"],[1,"vc-breakdown__rows"],[1,"vc-breakdown__row"],[1,"vc-breakdown__label"],[1,"vc-breakdown__bar-track"],["aria-hidden","true",1,"vc-breakdown__bar"],[1,"vc-breakdown__value"]],template:function(n,o){n&1&&(w(0,"section",0),N(1,Hn,2,1,"h5",1),N(2,Gn,2,1,"p",2)(3,qn,3,0,"ul",3),k()),n&2&&(S("data-testid","renderer-node-breakdown"),p(),E(o.label()?1:-1),p(),E(o.bars().length===0?2:3))},styles:[".vc-breakdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-breakdown__rows[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.25rem}.vc-breakdown__row[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(4rem,.4fr) 1fr 3rem;align-items:center;gap:.5rem;font-size:.85rem}.vc-breakdown__label[_ngcontent-%COMP%]{color:var(--p-text-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vc-breakdown__bar-track[_ngcontent-%COMP%]{background:var(--p-surface-100);border-radius:var(--sm-radius-md);height:.625rem;overflow:hidden}.vc-breakdown__bar[_ngcontent-%COMP%]{display:block;height:100%;background:var(--p-primary-500)}.vc-breakdown__value[_ngcontent-%COMP%]{text-align:right;color:var(--p-text-color)}.vc-breakdown__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();function Xn(e,i){if(e&1&&(w(0,"span",1),C(1),k()),e&2){let t=_(),n=_();Re(n.hostClass()),p(),T(t.text)}}function Yn(e,i){if(e&1&&de(0,"i",1),e&2){let t=_(),n=_();Re(n.hostClass()+" "+t.cls)}}function Qn(e,i){e&1&&N(0,Xn,2,3,"span",0)(1,Yn,1,2,"i",0),e&2&&E(i.kind==="emoji"?0:1)}function Jn(e){if(!e)return null;let i=e.trim();if(i.length===0)return null;let t=i.codePointAt(0)??0;if(!(t>=65&&t<=90||t>=97&&t<=122))return{kind:"emoji",text:i};if(/^pi pi-[a-z0-9-]+$/.test(i))return{kind:"pi",cls:i};if(/^pi-[a-z0-9-]+$/.test(i))return{kind:"pi",cls:`pi ${i}`};if(/^fa-(?:solid|regular|brands) fa-[a-z0-9-]+$/.test(i))return{kind:"fa",cls:i};if(/^fa-[a-z0-9-]+$/.test(i)){let o=i.slice(3);return o==="solid"||o==="regular"||o==="brands"||o.includes("fa-")?null:{kind:"fa",cls:`fa-solid ${i}`}}return null}var oe=(()=>{class e{icon=P(void 0);hostClass=P("");resolved=d(()=>{let t=this.icon(),n=Jn(t);return t&&!n&&console.warn(`[sm-icon] Invalid icon string "${t}". Expected emoji, pi-foo, pi pi-foo, fa-{solid|regular|brands} fa-foo, or fa-foo.`),n});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-icon"]],inputs:{icon:[1,"icon"],hostClass:[1,"hostClass"]},decls:1,vars:1,consts:[["aria-hidden","true",3,"class"],["aria-hidden","true"]],template:function(n,o){if(n&1&&N(0,Qn,2,1),n&2){let r;E((r=o.resolved())?0:-1,r)}},styles:["[_nghost-%COMP%] i[_ngcontent-%COMP%], [_nghost-%COMP%] span[_ngcontent-%COMP%]{font-size:inherit;line-height:inherit}[_nghost-%COMP%] i[_ngcontent-%COMP%]{transform:translateY(1px)}"],changeDetection:0})}return e})();function Zn(e,i){if(e&1&&(O(0,"span",3),C(1),D()),e&2){let t=_();S("aria-label",t.ariaLabel()),p(),T(t.value())}}var De=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{value:0}:t});value=d(()=>this.typed().value);icon=d(()=>this.inputs().icon);severity=d(()=>this.typed().severity);resolvedTooltip=d(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=d(()=>this.inputs().label??"");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-counter"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:12,consts:[[1,"vc-counter",3,"pTooltip"],[1,"vc-counter__icon"],[3,"icon"],[1,"vc-counter__value"]],template:function(n,o){n&1&&(O(0,"span",0)(1,"span",1),ee(2,"sm-icon",2),D(),N(3,Zn,2,2,"span",3),D()),n&2&&(te("vc-counter--info",o.severity()==="info")("vc-counter--warn",o.severity()==="warn")("vc-counter--success",o.severity()==="success")("vc-counter--danger",o.severity()==="danger"),$("pTooltip",o.resolvedTooltip()),S("data-testid","renderer-node-counter"),p(2),$("icon",o.icon()),p(),E(o.value()>0?3:-1))},dependencies:[H,U,oe],styles:[".vc-counter[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1;color:var(--p-text-color)}.vc-counter__icon[_ngcontent-%COMP%]{font-size:.6rem;line-height:1;display:block}.vc-counter__value[_ngcontent-%COMP%]{font-weight:600;color:var(--p-text-color);line-height:1;display:block}.vc-counter--info[_ngcontent-%COMP%], .vc-counter--info[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-counter--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn);opacity:.85}.vc-counter--warn[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-counter--success[_ngcontent-%COMP%], .vc-counter--success[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-counter--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error);opacity:.85}.vc-counter--danger[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})}return e})();var ei=(e,i)=>i.key;function ti(e,i){if(e&1&&(O(0,"h5",1),C(1),D()),e&2){let t=_();p(),T(t.label())}}function ni(e,i){if(e&1&&(O(0,"p",2),C(1),D()),e&2){let t=_();p(),T(t.emptyText())}}function ii(e,i){if(e&1&&(O(0,"dt",4),C(1),D(),O(2,"dd"),C(3),D()),e&2){let t=i.$implicit,n=_(2);$("pTooltip",t.tooltip??""),p(),T(t.key),p(2),T(n.formatValue(t.value))}}function oi(e,i){if(e&1&&(O(0,"dl",3),q(1,ii,4,3,null,null,ei),D()),e&2){let t=_();p(),X(t.pairs())}}var Lt=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return J(t)?ae(t,"pairs")?t:{pairs:[]}:{pairs:[]}});pairs=d(()=>this.typed().pairs??[]);label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??G.emptyDefault);formatValue(t){return t==null?"\xB7":typeof t=="boolean"?t?"true":"false":String(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-key-values"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-kv"],[1,"vc-kv__header"],[1,"vc-kv__empty"],[1,"vc-kv__list"],[3,"pTooltip"]],template:function(n,o){n&1&&(O(0,"section",0),N(1,ti,2,1,"h5",1),N(2,ni,2,1,"p",2)(3,oi,3,0,"dl",3),D()),n&2&&(S("data-testid","renderer-node-key-values"),p(),E(o.label()?1:-1),p(),E(o.pairs().length===0?2:3))},dependencies:[H,U],styles:[".vc-kv__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-kv__list[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(6rem,max-content) 1fr;gap:.25rem .75rem;margin:0;font-size:.85rem}.vc-kv__list[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-weight:500}.vc-kv__list[_ngcontent-%COMP%] dd[_ngcontent-%COMP%]{color:var(--p-text-color);margin:0;word-break:break-word}.vc-kv__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();var ri=(e,i)=>i.path;function ai(e,i){if(e&1&&(w(0,"h5",1),C(1),k()),e&2){let t=_();p(),T(t.label())}}function si(e,i){if(e&1&&(w(0,"p",2),C(1),k()),e&2){let t=_();p(),T(t.emptyText())}}function li(e,i){if(e&1&&(w(0,"span",5),C(1),k()),e&2){let t=_().$implicit;p(),T(t.kind)}}function ci(e,i){if(e&1){let t=he();w(0,"li")(1,"button",4),_t("click",function(){let o=me(t).$implicit,r=_(2);return ge(r.onOpenPath(o.path))}),N(2,li,2,1,"span",5),w(3,"span",6),C(4),k()()()}if(e&2){let t=i.$implicit;p(2),E(t.kind?2:-1),p(2),T(t.label??t.path)}}function di(e,i){if(e&1&&(w(0,"ul",3),q(1,ci,5,2,"li",null,ri),k()),e&2){let t=_();p(),X(t.links())}}var Rt=(()=>{class e{openIntent=K(Pt);inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return J(t)?ae(t,"links")?t:{links:[]}:{links:[]}});links=d(()=>this.typed().links??[]);label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??G.emptyDefault);onOpenPath(t){this.openIntent.open(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-link-list"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-links"],[1,"vc-links__header"],[1,"vc-links__empty"],[1,"vc-links__list"],["type","button",1,"vc-links__btn",3,"click"],[1,"vc-links__kind"],[1,"vc-links__label"]],template:function(n,o){n&1&&(w(0,"section",0),N(1,ai,2,1,"h5",1),N(2,si,2,1,"p",2)(3,di,3,0,"ul",3),k()),n&2&&(S("data-testid","renderer-node-link-list"),p(),E(o.label()?1:-1),p(),E(o.links().length===0?2:3))},styles:[".vc-links__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-links__list[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.125rem;font-size:.85rem}.vc-links__btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;background:transparent;border:0;padding:.25rem .5rem;border-radius:var(--sm-radius-md);color:var(--p-primary-color);cursor:pointer;text-align:left;width:100%}.vc-links__btn[_ngcontent-%COMP%]:hover{background:var(--p-surface-100)}.vc-links__kind[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-family:var(--sm-font-mono);font-size:.75rem}.vc-links__label[_ngcontent-%COMP%]{word-break:break-all}.vc-links__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();var Bt=(e,i)=>i.key;function pi(e,i){if(e&1&&(w(0,"h5",1),C(1),k()),e&2){let t=_();p(),T(t.label())}}function ui(e,i){if(e&1&&(w(0,"p",2),C(1),k()),e&2){let t=_();p(),T(t.emptyText())}}function fi(e,i){if(e&1&&(w(0,"th"),C(1),k()),e&2){let t=i.$implicit;p(),T(t.label)}}function mi(e,i){if(e&1&&de(0,"i",4),e&2){let t=_(4);S("aria-label",t.texts.boolTrue)}}function gi(e,i){if(e&1&&de(0,"i",5),e&2){let t=_(4);S("aria-label",t.texts.boolFalse)}}function vi(e,i){}function hi(e,i){if(e&1&&C(0),e&2){let t=_().$implicit,n=_().$implicit,o=_(2);Ne(" ",o.cellText(n[t.key])," ")}}function _i(e,i){if(e&1&&(w(0,"td"),N(1,mi,1,1,"i",4)(2,gi,1,1,"i",5)(3,vi,0,0)(4,hi,1,1),k()),e&2){let t,n=i.$implicit,o=_().$implicit,r=_(2);p(),E((t=r.cellKind(o[n.key]))==="bool-true"?1:t==="bool-false"?2:t==="empty"?3:4)}}function yi(e,i){if(e&1&&(w(0,"tr"),q(1,_i,5,1,"td",null,Bt),k()),e&2){let t=_(2);p(),X(t.columns())}}function xi(e,i){if(e&1&&(w(0,"table",3)(1,"thead")(2,"tr"),q(3,fi,2,1,"th",null,Bt),k()(),w(5,"tbody"),q(6,yi,3,0,"tr",null,vt),k()()),e&2){let t=_();p(3),X(t.columns()),p(3),X(t.rows())}}var jt=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return J(t)?!ae(t,"columns")||!ae(t,"rows")?{columns:[],rows:[]}:t:{columns:[],rows:[]}});columns=d(()=>this.typed().columns??[]);rows=d(()=>this.typed().rows??[]);label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??G.emptyDefault);texts=G.recordsCell;cellKind(t){return t==null?"empty":typeof t=="boolean"?t?"bool-true":"bool-false":"text"}cellText(t){return t==null?"":String(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-records"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-records"],[1,"vc-records__header"],[1,"vc-records__empty"],[1,"vc-records__table"],["role","img",1,"pi","pi-check","vc-records__bool","vc-records__bool--true"],["role","img",1,"pi","pi-minus","vc-records__bool","vc-records__bool--false"]],template:function(n,o){n&1&&(w(0,"section",0),N(1,pi,2,1,"h5",1),N(2,ui,2,1,"p",2)(3,xi,8,0,"table",3),k()),n&2&&(S("data-testid","renderer-node-records"),p(),E(o.label()?1:-1),p(),E(o.rows().length===0?2:3))},styles:[".vc-records__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-records__table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.85rem}.vc-records__table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left;padding:.25rem .5rem;border-bottom:1px solid var(--p-surface-200);color:var(--p-text-muted-color);font-weight:600}.vc-records__table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.25rem .5rem;border-bottom:1px solid var(--p-surface-100);color:var(--p-text-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:16rem}.vc-records__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}.vc-records__bool[_ngcontent-%COMP%]{font-size:.9rem;line-height:1}.vc-records__bool--true[_ngcontent-%COMP%]{color:var(--p-primary-color)}.vc-records__bool--false[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}"],changeDetection:0})}return e})();function bi(e,i){if(e&1&&(w(0,"h5",1),C(1),k()),e&2){let t=_();p(),T(t.label())}}function Ci(e,i){if(e&1&&(w(0,"p",2),C(1),k()),e&2){let t=_();p(),T(t.emptyText())}}function wi(e,i){if(e&1&&(w(0,"pre",3),C(1),k()),e&2){let t=_();p(),T(t.markdown())}}var zt=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return J(t)?Se(t,"markdown")?t:{markdown:""}:{markdown:""}});markdown=d(()=>this.typed().markdown??"");label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??G.emptyDefault);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-markdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-markdown"],[1,"vc-markdown__header"],[1,"vc-markdown__empty"],[1,"vc-markdown__body"]],template:function(n,o){n&1&&(w(0,"section",0),N(1,bi,2,1,"h5",1),N(2,Ci,2,1,"p",2)(3,wi,2,1,"pre",3),k()),n&2&&(S("data-testid","renderer-node-markdown"),p(),E(o.label()?1:-1),p(),E(o.markdown()?3:2))},styles:[".vc-markdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-markdown__body[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-color);background:var(--p-surface-50);padding:.5rem;border-radius:var(--sm-radius-md);white-space:pre-wrap;word-break:break-word;margin:0;max-height:12rem;overflow:auto}.vc-markdown__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();var Kt={countAriaFallback:"count"};function Ti(e,i){if(e&1&&(O(0,"span",1),ee(1,"sm-icon",4),D()),e&2){let t=_();p(),$("icon",t.icon())}}function Mi(e,i){if(e&1&&(O(0,"span",2),C(1),D()),e&2){let t=_();p(),T(t.label())}}function Ni(e,i){if(e&1&&(O(0,"span",3),C(1),D()),e&2){let t=_();S("aria-label",t.countAria()),p(),T(t.count())}}var Vt=(()=>{class e{inputs=P.required();texts=Kt;typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{}:t});icon=d(()=>this.inputs().icon);label=d(()=>{let t=this.typed().label;return typeof t=="string"?t:""});count=d(()=>{let t=this.typed().count;return typeof t=="number"&&Number.isFinite(t)?t:null});severity=d(()=>this.typed().severity);hasTint=d(()=>!!this.severity()&&this.label().length>0);resolvedTooltip=d(()=>this.typed().tooltip??this.inputs().tooltip??"");countAria=d(()=>this.inputs().label??(this.label()||this.texts.countAriaFallback));static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-badge"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:15,consts:[["tooltipPosition","left",1,"vc-badge",3,"pTooltip"],[1,"vc-badge__icon"],[1,"vc-badge__label"],[1,"vc-badge__count"],[3,"icon"]],template:function(n,o){n&1&&(O(0,"span",0),N(1,Ti,2,1,"span",1),N(2,Mi,2,1,"span",2),N(3,Ni,2,2,"span",3),D()),n&2&&(te("vc-badge--tinted",o.hasTint())("vc-badge--info",o.severity()==="info")("vc-badge--warn",o.severity()==="warn")("vc-badge--success",o.severity()==="success")("vc-badge--danger",o.severity()==="danger"),$("pTooltip",o.resolvedTooltip()),S("data-testid","renderer-node-badge"),p(),E(o.icon()?1:-1),p(),E(o.label()?2:-1),p(),E(o.count()!==null?3:-1))},dependencies:[H,U,oe],styles:[".vc-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1;color:var(--p-text-color)}.vc-badge__icon[_ngcontent-%COMP%]{font-size:.6rem;line-height:1;display:block}.vc-badge__label[_ngcontent-%COMP%]{font-weight:500;line-height:1;display:block}.vc-badge__count[_ngcontent-%COMP%]{font-weight:600;line-height:1;display:block}.vc-badge--info[_ngcontent-%COMP%]:not(.vc-badge--tinted){color:var(--sm-severity-info)}.vc-badge--warn[_ngcontent-%COMP%]:not(.vc-badge--tinted){color:var(--sm-severity-warn);opacity:.85}.vc-badge--success[_ngcontent-%COMP%]:not(.vc-badge--tinted){color:var(--sm-severity-success)}.vc-badge--danger[_ngcontent-%COMP%]:not(.vc-badge--tinted){color:var(--sm-severity-error);opacity:.85}.vc-badge--tinted[_ngcontent-%COMP%]{padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-badge--tinted.vc-badge--info[_ngcontent-%COMP%]{background:var(--sm-severity-info-bg);color:var(--sm-severity-info)}.vc-badge--tinted.vc-badge--warn[_ngcontent-%COMP%]{background:var(--sm-severity-warn-bg);color:var(--sm-severity-warn)}.vc-badge--tinted.vc-badge--success[_ngcontent-%COMP%]{background:var(--sm-severity-success-bg);color:var(--sm-severity-success)}.vc-badge--tinted.vc-badge--danger[_ngcontent-%COMP%]{background:var(--sm-severity-error-bg);color:var(--sm-severity-error)}"],changeDetection:0})}return e})();var Ut={errorPrefix:"Action failed:",errorFresh:"This node is fresh; nothing to do.",errorNotFound:"Node not found on the server.",errorReadonly:"Actions are not available in demo mode.",errorGeneric:"Could not run the action."};var Ht=(()=>{class e{dataSource=K(Et);texts=Ut;inFlightSig=F(!1);errorSig=F(null);consentOpenSig=F(!1);inFlight=this.inFlightSig.asReadonly();error=this.errorSig.asReadonly();consentOpen=this.consentOpenSig.asReadonly();idle=d(()=>!this.inFlightSig());pending=null;async dispatch(t,n,o){this.inFlightSig()||(this.errorSig.set(null),await this.run(t,n,o,{}))}resolveConsent(t){this.consentOpenSig.set(!1);let n=this.pending;if(this.pending=null,!n||!t.accepted)return;let o=t.always?{confirm:!0,always:!0}:{confirm:!0};this.run(n.actionId,n.nodePath,n.input,o)}dismissError(){this.errorSig.set(null)}async run(t,n,o,r){this.inFlightSig.set(!0);try{await this.dataSource.dispatchAction(t,n,we({input:o},r))}catch(s){if(r.confirm!==!0&&s instanceof Be&&s.code==="confirm-required"&&Ei(s.details)){this.pending={actionId:t,nodePath:n,input:o},this.consentOpenSig.set(!0);return}this.errorSig.set(this.formatError(s))}finally{this.inFlightSig.set(!1)}}formatError(t){if(t instanceof Be)switch(t.code){case"sidecar-fresh":return`${this.texts.errorPrefix} ${this.texts.errorFresh}`;case"not-found":return`${this.texts.errorPrefix} ${this.texts.errorNotFound}`;case"demo-readonly":return`${this.texts.errorPrefix} ${this.texts.errorReadonly}`;default:return`${this.texts.errorPrefix} ${t.message||this.texts.errorGeneric}`}let n=t instanceof Error?t.message:String(t);return`${this.texts.errorPrefix} ${n||this.texts.errorGeneric}`}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ei(e){return typeof e!="object"||e===null?!1:e.key==="allowEditSmFiles"}var Gt={fallbackLabel:"Run action",dismissErrorAriaLabel:"Dismiss",promptDialogHeader:"Provide a value"};var ki=()=>[import("./chunk-WFLPMCK4.js").then(e=>e.ActionPromptDialog)];function Si(e,i){if(e&1){let t=he();O(0,"span",2)(1,"span",3),C(2),D(),O(3,"button",4),Me("click",function(){me(t);let o=_();return ge(o.dismissError())}),ee(4,"i",5),D()()}if(e&2){let t=_();p(2),T(i),p(),S("aria-label",t.texts.dismissErrorAriaLabel)}}function Di(e,i){if(e&1){let t=he();O(0,"sm-action-prompt-dialog",7),Me("confirmed",function(o){me(t);let r=_(2);return ge(r.onPromptConfirmed(o))})("closed",function(){me(t);let o=_(2);return ge(o.cancelPrompt())}),D()}if(e&2){let t=_(2);$("open",t.promptOpen())("descriptor",t.promptDescriptor())("headerText",t.dialogHeader())("busy",t.inFlight())}}function Ii(e,i){if(e&1&&N(0,Di,1,4,"sm-action-prompt-dialog",6),e&2){let t,n=_();E((t=n.prompt())?0:-1,t)}}var Wt=(()=>{class e{inputs=P.required();texts=Gt;dispatcher=K(Ht);inFlightSig=F(!1);errorSig=F(null);promptOpenSig=F(!1);promptOpenedSig=F(!1);inFlight=this.inFlightSig.asReadonly();error=this.errorSig.asReadonly();promptOpen=this.promptOpenSig.asReadonly();promptOpened=this.promptOpenedSig.asReadonly();typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{actionId:""}:t});actionId=d(()=>this.typed().actionId||"");label=d(()=>this.typed().label??this.inputs().label??this.texts.fallbackLabel);icon=d(()=>this.typed().icon??this.inputs().icon);enabled=d(()=>this.typed().enabled!==!1);severity=d(()=>{switch(this.typed().severity){case"info":return"info";case"warn":return"warn";case"success":return"success";case"danger":return"danger";default:return"secondary"}});tooltip=d(()=>this.enabled()?this.inputs().tooltip??"":this.typed().disabledReason??"");prompt=d(()=>{let t=this.typed().prompt;return!t||typeof t!="object"||!t.inputType||!t.paramKey?null:t});promptDescriptor=d(()=>{let t=this.prompt();return{inputType:t?.inputType??"",label:t?.label??"",options:t?.options,defaultValue:t?.defaultValue}});dialogHeader=d(()=>this.typed().label??this.texts.promptDialogHeader);run(){if(!(!this.enabled()||this.inFlightSig())){if(this.prompt()){this.openPrompt();return}this.dispatch(this.typed().input)}}openPrompt(){this.errorSig.set(null),this.promptOpenedSig.set(!0),this.promptOpenSig.set(!0)}onPromptConfirmed(t){let n=this.prompt();if(!n)return;this.promptOpenSig.set(!1);let o=at(we({},this.typed().input??{}),{[n.paramKey]:t});this.dispatch(o)}cancelPrompt(){this.promptOpenSig.set(!1)}async dispatch(t){let n=this.actionId(),o=this.inputs().nodePath;if(!(!n||!o)){this.errorSig.set(null),this.inFlightSig.set(!0);try{await this.dispatcher.dispatch(n,o,t);let r=this.dispatcher.error();r&&this.errorSig.set(r)}finally{this.inFlightSig.set(!1)}}}dismissError(){this.errorSig.set(null),this.dispatcher.dismissError()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-action-button"]],inputs:{inputs:[1,"inputs"]},decls:6,vars:9,consts:[["data-testid","renderer-node-action-button",1,"vc-action"],["size","small",3,"onClick","label","icon","severity","disabled","loading","pTooltip"],["role","alert","data-testid","renderer-node-action-button-error",1,"vc-action__error"],[1,"vc-action__error-text"],["type","button","data-testid","renderer-node-action-button-error-dismiss",1,"vc-action__error-dismiss",3,"click"],["aria-hidden","true",1,"pi","pi-times"],[3,"open","descriptor","headerText","busy"],[3,"confirmed","closed","open","descriptor","headerText","busy"]],template:function(n,o){if(n&1&&(O(0,"span",0)(1,"p-button",1),Me("onClick",function(){return o.run()}),D(),N(2,Si,5,2,"span",2),D(),ut(3,Ii,1,1),ft(4,3,ki),gt()),n&2){let r;p(),$("label",o.label())("icon",o.icon()??"")("severity",o.severity())("disabled",!o.enabled()||o.inFlight())("loading",o.inFlight())("pTooltip",o.tooltip()),S("data-testid","action-"+o.actionId()),p(),E((r=o.error())?2:-1,r),p(2),mt(o.promptOpened())}},dependencies:[Mt,Tt,H,U],styles:[".vc-action[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.4rem;flex-wrap:wrap}.vc-action__error[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;font-size:.8rem;color:var(--sm-severity-error);background:var(--sm-severity-error-bg);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-action__error-dismiss[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:0;line-height:1;color:var(--sm-severity-error);display:inline-flex}.vc-action__error-dismiss[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{font-size:.7rem}"],changeDetection:0})}return e})();var Oi=()=>[],qt=(e,i)=>i.label;function Pi(e,i){if(e&1&&(w(0,"h5",1),C(1),k()),e&2){let t=_();p(),T(t.label())}}function Ai(e,i){if(e&1&&(w(0,"p",2),C(1),k()),e&2){let t=_();p(),T(t.emptyText())}}function Fi(e,i){if(e&1&&(w(0,"span",5),C(1),k()),e&2){let t=_().$implicit;p(),T(t.marker)}}function $i(e,i){if(e&1&&(w(0,"span",5),C(1),k()),e&2){let t=_().$implicit;p(),T(t.marker)}}function Li(e,i){if(e&1&&(w(0,"li",4),N(1,$i,2,1,"span",5),w(2,"span",6),C(3),k()()),e&2){let t=i.$implicit;S("title",t.tooltip??""),p(),E(t.marker?1:-1),p(2),T(t.label)}}function Ri(e,i){if(e&1&&(w(0,"ul",7),q(1,Li,4,3,"li",4,qt),k()),e&2){let t=_().$implicit;p(),X(t.children)}}function Bi(e,i){if(e&1&&(w(0,"li",4),N(1,Fi,2,1,"span",5),w(2,"span",6),C(3),k(),N(4,Ri,3,0,"ul",7),k()),e&2){let t=i.$implicit;S("title",t.tooltip??""),p(),E(t.marker?1:-1),p(2),T(t.label),p(),E(t.children&&t.children.length>0?4:-1)}}function ji(e,i){if(e&1&&(w(0,"ul",3),q(1,Bi,5,4,"li",4,qt),k()),e&2){let t=_();p(),X(t.root().children??xt(0,Oi))}}var Xt=(()=>{class e{inputs=P.required();root=d(()=>{let t=this.inputs().payload;return J(t)?Se(t,"label")?t.children!==void 0&&!Array.isArray(t.children)?{label:""}:t:{label:""}:{label:""}});rootIsEmpty=d(()=>{let t=this.root();return!t.children||t.children.length===0});label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??G.emptyDefault);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-tree"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-tree"],[1,"vc-tree__header"],[1,"vc-tree__empty"],["role","tree",1,"vc-tree__list"],["role","treeitem"],["aria-hidden","true",1,"vc-tree__marker"],[1,"vc-tree__label"],["role","group",1,"vc-tree__list"]],template:function(n,o){n&1&&(w(0,"section",0),N(1,Pi,2,1,"h5",1),N(2,Ai,2,1,"p",2)(3,ji,3,1,"ul",3),k()),n&2&&(S("data-testid","renderer-node-tree"),p(),E(o.label()?1:-1),p(),E(o.rootIsEmpty()?2:3))},styles:[".vc-tree__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-tree__list[_ngcontent-%COMP%]{list-style:none;padding-left:1rem;margin:0;font-size:.85rem}.vc-tree__list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{padding:.125rem 0}.vc-tree__marker[_ngcontent-%COMP%]{margin-right:.25rem;opacity:.7}.vc-tree__label[_ngcontent-%COMP%]{color:var(--p-text-color)}.vc-tree__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();function zi(e,i){if(e&1&&(O(0,"span",2),C(1),D()),e&2){let t=_();p(),T(t.formattedCount())}}var Yt=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{}:t});icon=d(()=>this.typed().icon??this.inputs().icon);severity=d(()=>this.typed().severity);count=d(()=>this.typed().count??null);resolvedTooltip=d(()=>this.typed().tooltip??this.inputs().tooltip??"");formattedCount=d(()=>{let t=this.count();return t===null?"":t>=99?"99+":String(t)});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-alert"]],inputs:{inputs:[1,"inputs"]},decls:3,vars:12,consts:[[1,"vc-alert",3,"pTooltip"],["hostClass","vc-alert__icon",3,"icon"],[1,"vc-alert__count"]],template:function(n,o){n&1&&(O(0,"span",0),ee(1,"sm-icon",1),N(2,zi,2,1,"span",2),D()),n&2&&(te("vc-alert--info",o.severity()==="info")("vc-alert--warn",o.severity()==="warn")("vc-alert--success",o.severity()==="success")("vc-alert--danger",o.severity()==="danger"),$("pTooltip",o.resolvedTooltip()),S("data-testid","renderer-node-alert"),p(),$("icon",o.icon()),p(),E(o.count()!==null?2:-1))},dependencies:[H,U,oe],styles:[".vc-alert[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:.125rem;min-width:1.1rem;min-height:1.1rem;font-size:.85rem;color:var(--p-surface-700)}.vc-alert--info[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-alert--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-alert--success[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-alert--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})}return e})();var Qt=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{}:t});icon=d(()=>this.typed().icon??this.inputs().icon);severity=d(()=>this.typed().severity);resolvedTooltip=d(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=d(()=>this.inputs().label??"");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-icon"]],inputs:{inputs:[1,"inputs"]},decls:2,vars:12,consts:[[1,"vc-icon",3,"pTooltip"],["hostClass","vc-icon__glyph",3,"icon"]],template:function(n,o){n&1&&(O(0,"span",0),ee(1,"sm-icon",1),D()),n&2&&(te("vc-icon--info",o.severity()==="info")("vc-icon--warn",o.severity()==="warn")("vc-icon--success",o.severity()==="success")("vc-icon--danger",o.severity()==="danger"),$("pTooltip",o.resolvedTooltip()),S("aria-label",o.ariaLabel())("data-testid","renderer-node-icon"),p(),$("icon",o.icon()))},dependencies:[H,U,oe],styles:[".vc-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;line-height:1;width:22px;height:22px}.vc-icon__glyph[_ngcontent-%COMP%]{font-size:.7rem;line-height:1;display:block}.vc-icon--info[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-icon--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-icon--success[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-icon--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})}return e})();function Ki(e,i){if(e&1&&(O(0,"span",3),C(1),D()),e&2){let t=_();p(),T(t.label())}}var Jt=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{value:""}:t});value=d(()=>String(this.typed().value??""));label=d(()=>this.typed().label??this.inputs().label);icon=d(()=>this.inputs().icon);severity=d(()=>this.typed().severity);resolvedTooltip=d(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-scope-stat"]],inputs:{inputs:[1,"inputs"]},decls:5,vars:13,consts:[[1,"vc-stat",3,"pTooltip"],["hostClass","vc-stat__icon",3,"icon"],[1,"vc-stat__value"],[1,"vc-stat__label"]],template:function(n,o){n&1&&(O(0,"span",0),ee(1,"sm-icon",1),O(2,"span",2),C(3),D(),N(4,Ki,2,1,"span",3),D()),n&2&&(te("vc-stat--info",o.severity()==="info")("vc-stat--warn",o.severity()==="warn")("vc-stat--success",o.severity()==="success")("vc-stat--danger",o.severity()==="danger"),$("pTooltip",o.resolvedTooltip()),S("data-testid","renderer-scope-stat"),p(),$("icon",o.icon()),p(2),T(o.value()),p(),E(o.label()?4:-1))},dependencies:[H,U,oe],styles:[".vc-stat[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;border-radius:.75rem;font-size:.85rem;background:var(--p-surface-100);color:var(--p-surface-800)}.vc-stat__label[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.8rem}.vc-stat--info[_ngcontent-%COMP%]{background:var(--p-blue-100);color:var(--p-blue-700)}.vc-stat--warn[_ngcontent-%COMP%]{background:var(--p-yellow-100);color:var(--p-yellow-800)}.vc-stat--success[_ngcontent-%COMP%]{background:var(--p-green-100);color:var(--p-green-700)}.vc-stat--danger[_ngcontent-%COMP%]{background:var(--p-red-100);color:var(--p-red-700)}"],changeDetection:0})}return e})();var ze={"card.title.right":Qt,"card.subtitle.left":De,"card.footer.left":De,"card.footer.right":De,"graph.node.alert":Yt,"inspector.header.badge":Vt,"inspector.action.button":Wt,"inspector.body.panel.breakdown":$t,"inspector.body.panel.records":jt,"inspector.body.panel.tree":Xt,"inspector.body.panel.key-values":Lt,"inspector.body.panel.link-list":Rt,"inspector.body.panel.markdown":zt,"topbar.nav.start":Jt};function Zt(e){return e in ze}var Ka=new Set(["inspector.body.panel.breakdown","inspector.body.panel.records","inspector.body.panel.tree","inspector.body.panel.key-values","inspector.body.panel.link-list","inspector.body.panel.markdown"]),ce={"topbar.nav.start":{id:"topbar.nav.start",cardinality:"multi",maxItems:3,order:"alphabetical",strategy:"append"},"inspector.header.badge":{id:"inspector.header.badge",cardinality:"multi",maxItems:4,order:"priority",strategy:"append",respectSeverity:!0},"inspector.action.button":{id:"inspector.action.button",cardinality:"multi",order:"priority",strategy:"append",respectSeverity:!0},"inspector.body.panel.breakdown":{id:"inspector.body.panel.breakdown",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.records":{id:"inspector.body.panel.records",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.tree":{id:"inspector.body.panel.tree",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.key-values":{id:"inspector.body.panel.key-values",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.link-list":{id:"inspector.body.panel.link-list",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.markdown":{id:"inspector.body.panel.markdown",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"card.footer.left":{id:"card.footer.left",cardinality:"multi",maxItems:5,order:"priority",strategy:"append",respectSeverity:!0},"card.footer.right":{id:"card.footer.right",cardinality:"multi",maxItems:5,order:"priority",strategy:"append",respectSeverity:!0},"card.subtitle.left":{id:"card.subtitle.left",cardinality:"multi",maxItems:3,order:"priority",strategy:"append",respectSeverity:!0},"card.title.right":{id:"card.title.right",cardinality:"multi",maxItems:2,order:"priority",strategy:"append",respectSeverity:!0},"graph.node.alert":{id:"graph.node.alert",cardinality:"multi",maxItems:1,order:"severity",strategy:"append",showOverflowBadge:!1}};function en(e,i,t,n){let o=ce[i].respectSeverity!==!1,r=e.payload;if(!o&&typeof r=="object"&&r!==null&&"severity"in r){let a=r,{severity:c}=a;r=st(a,["severity"])}let s={pluginId:e.pluginId,extensionId:e.extensionId,contributionId:e.contributionId,nodePath:t,payload:r};return n?.label&&(s.label=n.label),n?.tooltip&&(s.tooltip=n.tooltip),n?.icon&&(s.icon=n.icon),n?.emptyText&&(s.emptyText=n.emptyText),s}var Vi=e=>({inputs:e}),Ui=(e,i)=>i.qualifiedId;function Hi(e,i){e&1&&ht(0)}function Gi(e,i){if(e&1&&(O(0,"span",1),pt(1,Hi,1,0,"ng-container",3),D()),e&2){let t=i.$implicit,n=_(2);S("data-testid","contribution-"+t.qualifiedId.replaceAll("/","-")),p(),$("ngComponentOutlet",n.rendererFor(t.slot))("ngComponentOutletInputs",bt(3,Vi,t.rendererInputs))}}function Wi(e,i){if(e&1&&(O(0,"span",2),C(1),D()),e&2){let t=_(2);$("pTooltip",t.overflowTooltip()),p(),Ne(" ",t.overflowBadge()," ")}}function qi(e,i){if(e&1&&(O(0,"span",0),q(1,Gi,2,5,"span",1,Ui),N(3,Wi,2,2,"span",2),D()),e&2){let t=_();S("data-testid","view-contributions-host-"+t.testidSuffix()),p(),X(t.visible()),p(2),E(t.overflowCount()>0&&t.showOverflowBadge()?3:-1)}}var os=(()=>{class e{slot=P.required();node=P(null);debugSlots=K(At);debugVisible=this.debugSlots.visible;testidSuffix=d(()=>this.slot().replaceAll(".","-"));registry=K(Ft);dispatched=d(()=>{let t=this.node();if(!t)return[];let n=t.contributions??[];if(n.length===0)return[];let o=this.slot(),r=n.filter(s=>s.slot===o).filter(s=>Zt(s.slot));return this.sortBySlotOrder(r,o).map(s=>({qualifiedId:`${s.pluginId}/${s.extensionId}/${s.contributionId}`,slot:s.slot,rendererInputs:this.buildInputs(s,o,t.path)}))});visible=d(()=>{let t=this.dispatched(),n=ce[this.slot()].maxItems;return n===void 0?t:t.slice(0,n)});debugTitle=d(()=>{if(!this.debugVisible())return null;let t=this.dispatched();return t.length===0?null:t.map(n=>n.qualifiedId).join(`
2
2
  `)});overflowCount=d(()=>{let t=this.dispatched(),n=ce[this.slot()].maxItems;return n===void 0?0:Math.max(0,t.length-n)});showOverflowBadge=d(()=>ce[this.slot()].showOverflowBadge!==!1);overflowBadge=d(()=>G.overflowBadge(this.overflowCount()));overflowTooltip=d(()=>{let t=this.dispatched(),n=ce[this.slot()].maxItems;if(n===void 0)return"";let o=t.slice(n).map(r=>r.qualifiedId).join(", ");return G.overflowTooltip(o)});rendererFor(t){return ze[t]}buildInputs(t,n,o){let r=`${t.pluginId}/${t.extensionId}/${t.contributionId}`;return en(t,n,o,this.registry.get(r))}sortBySlotOrder(t,n){let o=ce[n].order;return o==="fifo"?t.slice():o==="priority"?t.slice().sort((r,s)=>{let a=this.priorityFor(r),c=this.priorityFor(s);return a!==c?a-c:Ke(r,s)}):o==="severity"?t.slice().sort((r,s)=>{let a=tn(r),c=tn(s);return a!==c?c-a:Ke(r,s)}):t.slice().sort(Ke)}priorityFor(t){let n=`${t.pluginId}/${t.extensionId}/${t.contributionId}`;return this.registry.get(n)?.priority??100}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-view-contributions-host"]],hostVars:4,hostBindings:function(n,o){n&2&&(S("data-debug-slot",o.debugVisible()?o.slot():null)("title",o.debugTitle()),te("sm-debug-slot",o.debugVisible()))},inputs:{slot:[1,"slot"],node:[1,"node"]},decls:1,vars:1,consts:[[1,"vch"],[1,"vch__slot"],["data-testid","view-contributions-host-overflow",1,"vch__overflow",3,"pTooltip"],[4,"ngComponentOutlet","ngComponentOutletInputs"]],template:function(n,o){n&1&&N(0,qi,4,2,"span",0),n&2&&E(o.visible().length>0||o.overflowCount()>0?0:-1)},dependencies:[Ct,H,U],styles:["[_nghost-%COMP%]{display:contents}.vch[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.7rem;flex-wrap:wrap}.vch__slot[_ngcontent-%COMP%]{display:inline-flex}.vch__overflow[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:.125rem .5rem;border-radius:.75rem;background:var(--p-surface-100);color:var(--p-surface-600);font-size:.8rem;cursor:default}"],changeDetection:0})}return e})();function Ke(e,i){let t=`${e.pluginId}/${e.extensionId}/${e.contributionId}`,n=`${i.pluginId}/${i.extensionId}/${i.contributionId}`;return t<n?-1:t>n?1:0}function tn(e){let i=e.payload;if(typeof i!="object"||i===null)return 0;switch(i.severity){case"danger":return 4;case"warn":return 3;case"info":return 2;case"success":return 1;default:return 0}}var us=(()=>{class e{router=K(Ee);theme=K(St);destroyRef=K(dt);constructor(){this.router.events.pipe(Nt(this.destroyRef)).subscribe(t=>{if(t instanceof wt){let n=Xi(t.urlAfterRedirects);n!==null&&je(`ui.view.${n}`)}}),Te(()=>this.syncTheme())}trackFeature(t){je(`ui.feature.${t}`)}syncTheme(){kt({theme_base:this.theme.resolved(),theme_extra:this.theme.extraTheme()??"none"})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Xi(e){return(e.split("?")[0]??"")==="/"?"workspace":null}function Ve(e,i){var t,n=1;e==null&&(e=0),i==null&&(i=0);function o(){var r,s=t.length,a,c=0,l=0;for(r=0;r<s;++r)a=t[r],c+=a.x,l+=a.y;for(c=(c/s-e)*n,l=(l/s-i)*n,r=0;r<s;++r)a=t[r],a.x-=c,a.y-=l}return o.initialize=function(r){t=r},o.x=function(r){return arguments.length?(e=+r,o):e},o.y=function(r){return arguments.length?(i=+r,o):i},o.strength=function(r){return arguments.length?(n=+r,o):n},o}function nn(e){let i=+this._x.call(null,e),t=+this._y.call(null,e);return on(this.cover(i,t),i,t,e)}function on(e,i,t,n){if(isNaN(i)||isNaN(t))return e;var o,r=e._root,s={data:n},a=e._x0,c=e._y0,l=e._x1,m=e._y1,h,y,f,M,g,u,v,x;if(!r)return e._root=s,e;for(;r.length;)if((g=i>=(h=(a+l)/2))?a=h:l=h,(u=t>=(y=(c+m)/2))?c=y:m=y,o=r,!(r=r[v=u<<1|g]))return o[v]=s,e;if(f=+e._x.call(null,r.data),M=+e._y.call(null,r.data),i===f&&t===M)return s.next=r,o?o[v]=s:e._root=s,e;do o=o?o[v]=new Array(4):e._root=new Array(4),(g=i>=(h=(a+l)/2))?a=h:l=h,(u=t>=(y=(c+m)/2))?c=y:m=y;while((v=u<<1|g)===(x=(M>=y)<<1|f>=h));return o[x]=r,o[v]=s,e}function rn(e){var i,t,n=e.length,o,r,s=new Array(n),a=new Array(n),c=1/0,l=1/0,m=-1/0,h=-1/0;for(t=0;t<n;++t)isNaN(o=+this._x.call(null,i=e[t]))||isNaN(r=+this._y.call(null,i))||(s[t]=o,a[t]=r,o<c&&(c=o),o>m&&(m=o),r<l&&(l=r),r>h&&(h=r));if(c>m||l>h)return this;for(this.cover(c,l).cover(m,h),t=0;t<n;++t)on(this,s[t],a[t],e[t]);return this}function an(e,i){if(isNaN(e=+e)||isNaN(i=+i))return this;var t=this._x0,n=this._y0,o=this._x1,r=this._y1;if(isNaN(t))o=(t=Math.floor(e))+1,r=(n=Math.floor(i))+1;else{for(var s=o-t||1,a=this._root,c,l;t>e||e>=o||n>i||i>=r;)switch(l=(i<n)<<1|e<t,c=new Array(4),c[l]=a,a=c,s*=2,l){case 0:o=t+s,r=n+s;break;case 1:t=o-s,r=n+s;break;case 2:o=t+s,n=r-s;break;case 3:t=o-s,n=r-s;break}this._root&&this._root.length&&(this._root=a)}return this._x0=t,this._y0=n,this._x1=o,this._y1=r,this}function sn(){var e=[];return this.visit(function(i){if(!i.length)do e.push(i.data);while(i=i.next)}),e}function ln(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function V(e,i,t,n,o){this.node=e,this.x0=i,this.y0=t,this.x1=n,this.y1=o}function cn(e,i,t){var n,o=this._x0,r=this._y0,s,a,c,l,m=this._x1,h=this._y1,y=[],f=this._root,M,g;for(f&&y.push(new V(f,o,r,m,h)),t==null?t=1/0:(o=e-t,r=i-t,m=e+t,h=i+t,t*=t);M=y.pop();)if(!(!(f=M.node)||(s=M.x0)>m||(a=M.y0)>h||(c=M.x1)<o||(l=M.y1)<r))if(f.length){var u=(s+c)/2,v=(a+l)/2;y.push(new V(f[3],u,v,c,l),new V(f[2],s,v,u,l),new V(f[1],u,a,c,v),new V(f[0],s,a,u,v)),(g=(i>=v)<<1|e>=u)&&(M=y[y.length-1],y[y.length-1]=y[y.length-1-g],y[y.length-1-g]=M)}else{var x=e-+this._x.call(null,f.data),I=i-+this._y.call(null,f.data),b=x*x+I*I;if(b<t){var L=Math.sqrt(t=b);o=e-L,r=i-L,m=e+L,h=i+L,n=f.data}}return n}function dn(e){if(isNaN(m=+this._x.call(null,e))||isNaN(h=+this._y.call(null,e)))return this;var i,t=this._root,n,o,r,s=this._x0,a=this._y0,c=this._x1,l=this._y1,m,h,y,f,M,g,u,v;if(!t)return this;if(t.length)for(;;){if((M=m>=(y=(s+c)/2))?s=y:c=y,(g=h>=(f=(a+l)/2))?a=f:l=f,i=t,!(t=t[u=g<<1|M]))return this;if(!t.length)break;(i[u+1&3]||i[u+2&3]||i[u+3&3])&&(n=i,v=u)}for(;t.data!==e;)if(o=t,!(t=t.next))return this;return(r=t.next)&&delete t.next,o?(r?o.next=r:delete o.next,this):i?(r?i[u]=r:delete i[u],(t=i[0]||i[1]||i[2]||i[3])&&t===(i[3]||i[2]||i[1]||i[0])&&!t.length&&(n?n[v]=t:this._root=t),this):(this._root=r,this)}function pn(e){for(var i=0,t=e.length;i<t;++i)this.remove(e[i]);return this}function un(){return this._root}function fn(){var e=0;return this.visit(function(i){if(!i.length)do++e;while(i=i.next)}),e}function mn(e){var i=[],t,n=this._root,o,r,s,a,c;for(n&&i.push(new V(n,this._x0,this._y0,this._x1,this._y1));t=i.pop();)if(!e(n=t.node,r=t.x0,s=t.y0,a=t.x1,c=t.y1)&&n.length){var l=(r+a)/2,m=(s+c)/2;(o=n[3])&&i.push(new V(o,l,m,a,c)),(o=n[2])&&i.push(new V(o,r,m,l,c)),(o=n[1])&&i.push(new V(o,l,s,a,m)),(o=n[0])&&i.push(new V(o,r,s,l,m))}return this}function gn(e){var i=[],t=[],n;for(this._root&&i.push(new V(this._root,this._x0,this._y0,this._x1,this._y1));n=i.pop();){var o=n.node;if(o.length){var r,s=n.x0,a=n.y0,c=n.x1,l=n.y1,m=(s+c)/2,h=(a+l)/2;(r=o[0])&&i.push(new V(r,s,a,m,h)),(r=o[1])&&i.push(new V(r,m,a,c,h)),(r=o[2])&&i.push(new V(r,s,h,m,l)),(r=o[3])&&i.push(new V(r,m,h,c,l))}t.push(n)}for(;n=t.pop();)e(n.node,n.x0,n.y0,n.x1,n.y1);return this}function vn(e){return e[0]}function hn(e){return arguments.length?(this._x=e,this):this._x}function _n(e){return e[1]}function yn(e){return arguments.length?(this._y=e,this):this._y}function ue(e,i,t){var n=new Ue(i??vn,t??_n,NaN,NaN,NaN,NaN);return e==null?n:n.addAll(e)}function Ue(e,i,t,n,o,r){this._x=e,this._y=i,this._x0=t,this._y0=n,this._x1=o,this._y1=r,this._root=void 0}function xn(e){for(var i={data:e.data},t=i;e=e.next;)t=t.next={data:e.data};return i}var Y=ue.prototype=Ue.prototype;Y.copy=function(){var e=new Ue(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root,t,n;if(!i)return e;if(!i.length)return e._root=xn(i),e;for(t=[{source:i,target:e._root=new Array(4)}];i=t.pop();)for(var o=0;o<4;++o)(n=i.source[o])&&(n.length?t.push({source:n,target:i.target[o]=new Array(4)}):i.target[o]=xn(n));return e};Y.add=nn;Y.addAll=rn;Y.cover=an;Y.data=sn;Y.extent=ln;Y.find=cn;Y.remove=dn;Y.removeAll=pn;Y.root=un;Y.size=fn;Y.visit=mn;Y.visitAfter=gn;Y.x=hn;Y.y=yn;function B(e){return function(){return e}}function ie(e){return(e()-.5)*1e-6}function Yi(e){return e.x+e.vx}function Qi(e){return e.y+e.vy}function He(e){var i,t,n,o=1,r=1;typeof e!="function"&&(e=B(e==null?1:+e));function s(){for(var l,m=i.length,h,y,f,M,g,u,v=0;v<r;++v)for(h=ue(i,Yi,Qi).visitAfter(a),l=0;l<m;++l)y=i[l],g=t[y.index],u=g*g,f=y.x+y.vx,M=y.y+y.vy,h.visit(x);function x(I,b,L,W,Z){var j=I.data,ne=I.r,z=g+ne;if(j){if(j.index>y.index){var se=f-j.x-j.vx,le=M-j.y-j.vy,re=se*se+le*le;re<z*z&&(se===0&&(se=ie(n),re+=se*se),le===0&&(le=ie(n),re+=le*le),re=(z-(re=Math.sqrt(re)))/re*o,y.vx+=(se*=re)*(z=(ne*=ne)/(u+ne)),y.vy+=(le*=re)*z,j.vx-=se*(z=1-z),j.vy-=le*z)}return}return b>f+z||W<f-z||L>M+z||Z<M-z}}function a(l){if(l.data)return l.r=t[l.data.index];for(var m=l.r=0;m<4;++m)l[m]&&l[m].r>l.r&&(l.r=l[m].r)}function c(){if(i){var l,m=i.length,h;for(t=new Array(m),l=0;l<m;++l)h=i[l],t[h.index]=+e(h,l,i)}}return s.initialize=function(l,m){i=l,n=m,c()},s.iterations=function(l){return arguments.length?(r=+l,s):r},s.strength=function(l){return arguments.length?(o=+l,s):o},s.radius=function(l){return arguments.length?(e=typeof l=="function"?l:B(+l),c(),s):e},s}function Ji(e){return e.index}function bn(e,i){var t=e.get(i);if(!t)throw new Error("node not found: "+i);return t}function Ge(e){var i=Ji,t=h,n,o=B(30),r,s,a,c,l,m=1;e==null&&(e=[]);function h(u){return 1/Math.min(a[u.source.index],a[u.target.index])}function y(u){for(var v=0,x=e.length;v<m;++v)for(var I=0,b,L,W,Z,j,ne,z;I<x;++I)b=e[I],L=b.source,W=b.target,Z=W.x+W.vx-L.x-L.vx||ie(l),j=W.y+W.vy-L.y-L.vy||ie(l),ne=Math.sqrt(Z*Z+j*j),ne=(ne-r[I])/ne*u*n[I],Z*=ne,j*=ne,W.vx-=Z*(z=c[I]),W.vy-=j*z,L.vx+=Z*(z=1-z),L.vy+=j*z}function f(){if(s){var u,v=s.length,x=e.length,I=new Map(s.map((L,W)=>[i(L,W,s),L])),b;for(u=0,a=new Array(v);u<x;++u)b=e[u],b.index=u,typeof b.source!="object"&&(b.source=bn(I,b.source)),typeof b.target!="object"&&(b.target=bn(I,b.target)),a[b.source.index]=(a[b.source.index]||0)+1,a[b.target.index]=(a[b.target.index]||0)+1;for(u=0,c=new Array(x);u<x;++u)b=e[u],c[u]=a[b.source.index]/(a[b.source.index]+a[b.target.index]);n=new Array(x),M(),r=new Array(x),g()}}function M(){if(s)for(var u=0,v=e.length;u<v;++u)n[u]=+t(e[u],u,e)}function g(){if(s)for(var u=0,v=e.length;u<v;++u)r[u]=+o(e[u],u,e)}return y.initialize=function(u,v){s=u,l=v,f()},y.links=function(u){return arguments.length?(e=u,f(),y):e},y.id=function(u){return arguments.length?(i=u,y):i},y.iterations=function(u){return arguments.length?(m=+u,y):m},y.strength=function(u){return arguments.length?(t=typeof u=="function"?u:B(+u),M(),y):t},y.distance=function(u){return arguments.length?(o=typeof u=="function"?u:B(+u),g(),y):o},y}var Zi={value:()=>{}};function wn(){for(var e=0,i=arguments.length,t={},n;e<i;++e){if(!(n=arguments[e]+"")||n in t||/[\s.]/.test(n))throw new Error("illegal type: "+n);t[n]=[]}return new Ie(t)}function Ie(e){this._=e}function eo(e,i){return e.trim().split(/^|\s+/).map(function(t){var n="",o=t.indexOf(".");if(o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),t&&!i.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}Ie.prototype=wn.prototype={constructor:Ie,on:function(e,i){var t=this._,n=eo(e+"",t),o,r=-1,s=n.length;if(arguments.length<2){for(;++r<s;)if((o=(e=n[r]).type)&&(o=to(t[o],e.name)))return o;return}if(i!=null&&typeof i!="function")throw new Error("invalid callback: "+i);for(;++r<s;)if(o=(e=n[r]).type)t[o]=Cn(t[o],e.name,i);else if(i==null)for(o in t)t[o]=Cn(t[o],e.name,null);return this},copy:function(){var e={},i=this._;for(var t in i)e[t]=i[t].slice();return new Ie(e)},call:function(e,i){if((o=arguments.length-2)>0)for(var t=new Array(o),n=0,o,r;n<o;++n)t[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=this._[e],n=0,o=r.length;n<o;++n)r[n].value.apply(i,t)},apply:function(e,i,t){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],o=0,r=n.length;o<r;++o)n[o].value.apply(i,t)}};function to(e,i){for(var t=0,n=e.length,o;t<n;++t)if((o=e[t]).name===i)return o.value}function Cn(e,i,t){for(var n=0,o=e.length;n<o;++n)if(e[n].name===i){e[n]=Zi,e=e.slice(0,n).concat(e.slice(n+1));break}return t!=null&&e.push({name:i,value:t}),e}var We=wn;var ve=0,xe=0,ye=0,Mn=1e3,Oe,be,Pe=0,fe=0,Ae=0,Ce=typeof performance=="object"&&performance.now?performance:Date,Nn=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Ye(){return fe||(Nn(no),fe=Ce.now()+Ae)}function no(){fe=0}function qe(){this._call=this._time=this._next=null}qe.prototype=Fe.prototype={constructor:qe,restart:function(e,i,t){if(typeof e!="function")throw new TypeError("callback is not a function");t=(t==null?Ye():+t)+(i==null?0:+i),!this._next&&be!==this&&(be?be._next=this:Oe=this,be=this),this._call=e,this._time=t,Xe()},stop:function(){this._call&&(this._call=null,this._time=1/0,Xe())}};function Fe(e,i,t){var n=new qe;return n.restart(e,i,t),n}function En(){Ye(),++ve;for(var e=Oe,i;e;)(i=fe-e._time)>=0&&e._call.call(void 0,i),e=e._next;--ve}function Tn(){fe=(Pe=Ce.now())+Ae,ve=xe=0;try{En()}finally{ve=0,oo(),fe=0}}function io(){var e=Ce.now(),i=e-Pe;i>Mn&&(Ae-=i,Pe=e)}function oo(){for(var e,i=Oe,t,n=1/0;i;)i._call?(n>i._time&&(n=i._time),e=i,i=i._next):(t=i._next,i._next=null,i=e?e._next=t:Oe=t);be=e,Xe(n)}function Xe(e){if(!ve){xe&&(xe=clearTimeout(xe));var i=e-fe;i>24?(e<1/0&&(xe=setTimeout(Tn,e-Ce.now()-Ae)),ye&&(ye=clearInterval(ye))):(ye||(Pe=Ce.now(),ye=setInterval(io,Mn)),ve=1,Nn(Tn))}}function kn(){let e=1;return()=>(e=(1664525*e+1013904223)%4294967296)/4294967296}function Sn(e){return e.x}function Dn(e){return e.y}var ro=10,ao=Math.PI*(3-Math.sqrt(5));function Qe(e){var i,t=1,n=.001,o=1-Math.pow(n,1/300),r=0,s=.6,a=new Map,c=Fe(h),l=We("tick","end"),m=kn();e==null&&(e=[]);function h(){y(),l.call("tick",i),t<n&&(c.stop(),l.call("end",i))}function y(g){var u,v=e.length,x;g===void 0&&(g=1);for(var I=0;I<g;++I)for(t+=(r-t)*o,a.forEach(function(b){b(t)}),u=0;u<v;++u)x=e[u],x.fx==null?x.x+=x.vx*=s:(x.x=x.fx,x.vx=0),x.fy==null?x.y+=x.vy*=s:(x.y=x.fy,x.vy=0);return i}function f(){for(var g=0,u=e.length,v;g<u;++g){if(v=e[g],v.index=g,v.fx!=null&&(v.x=v.fx),v.fy!=null&&(v.y=v.fy),isNaN(v.x)||isNaN(v.y)){var x=ro*Math.sqrt(.5+g),I=g*ao;v.x=x*Math.cos(I),v.y=x*Math.sin(I)}(isNaN(v.vx)||isNaN(v.vy))&&(v.vx=v.vy=0)}}function M(g){return g.initialize&&g.initialize(e,m),g}return f(),i={tick:y,restart:function(){return c.restart(h),i},stop:function(){return c.stop(),i},nodes:function(g){return arguments.length?(e=g,f(),a.forEach(M),i):e},alpha:function(g){return arguments.length?(t=+g,i):t},alphaMin:function(g){return arguments.length?(n=+g,i):n},alphaDecay:function(g){return arguments.length?(o=+g,i):+o},alphaTarget:function(g){return arguments.length?(r=+g,i):r},velocityDecay:function(g){return arguments.length?(s=1-g,i):1-s},randomSource:function(g){return arguments.length?(m=g,a.forEach(M),i):m},force:function(g,u){return arguments.length>1?(u==null?a.delete(g):a.set(g,M(u)),i):a.get(g)},find:function(g,u,v){var x=0,I=e.length,b,L,W,Z,j;for(v==null?v=1/0:v*=v,x=0;x<I;++x)Z=e[x],b=g-Z.x,L=u-Z.y,W=b*b+L*L,W<v&&(j=Z,v=W);return j},on:function(g,u){return arguments.length>1?(l.on(g,u),i):l.on(g)}}}function Je(){var e,i,t,n,o=B(-30),r,s=1,a=1/0,c=.81;function l(f){var M,g=e.length,u=ue(e,Sn,Dn).visitAfter(h);for(n=f,M=0;M<g;++M)i=e[M],u.visit(y)}function m(){if(e){var f,M=e.length,g;for(r=new Array(M),f=0;f<M;++f)g=e[f],r[g.index]=+o(g,f,e)}}function h(f){var M=0,g,u,v=0,x,I,b;if(f.length){for(x=I=b=0;b<4;++b)(g=f[b])&&(u=Math.abs(g.value))&&(M+=g.value,v+=u,x+=u*g.x,I+=u*g.y);f.x=x/v,f.y=I/v}else{g=f,g.x=g.data.x,g.y=g.data.y;do M+=r[g.data.index];while(g=g.next)}f.value=M}function y(f,M,g,u){if(!f.value)return!0;var v=f.x-i.x,x=f.y-i.y,I=u-M,b=v*v+x*x;if(I*I/c<b)return b<a&&(v===0&&(v=ie(t),b+=v*v),x===0&&(x=ie(t),b+=x*x),b<s&&(b=Math.sqrt(s*b)),i.vx+=v*f.value*n/b,i.vy+=x*f.value*n/b),!0;if(f.length||b>=a)return;(f.data!==i||f.next)&&(v===0&&(v=ie(t),b+=v*v),x===0&&(x=ie(t),b+=x*x),b<s&&(b=Math.sqrt(s*b)));do f.data!==i&&(I=r[f.data.index]*n/b,i.vx+=v*I,i.vy+=x*I);while(f=f.next)}return l.initialize=function(f,M){e=f,t=M,m()},l.strength=function(f){return arguments.length?(o=typeof f=="function"?f:B(+f),m(),l):o},l.distanceMin=function(f){return arguments.length?(s=f*f,l):Math.sqrt(s)},l.distanceMax=function(f){return arguments.length?(a=f*f,l):Math.sqrt(a)},l.theta=function(f){return arguments.length?(c=f*f,l):Math.sqrt(c)},l}function Ze(e){var i=B(.1),t,n,o;typeof e!="function"&&(e=B(e==null?0:+e));function r(a){for(var c=0,l=t.length,m;c<l;++c)m=t[c],m.vx+=(o[c]-m.x)*n[c]*a}function s(){if(t){var a,c=t.length;for(n=new Array(c),o=new Array(c),a=0;a<c;++a)n[a]=isNaN(o[a]=+e(t[a],a,t))?0:+i(t[a],a,t)}}return r.initialize=function(a){t=a,s()},r.strength=function(a){return arguments.length?(i=typeof a=="function"?a:B(+a),s(),r):i},r.x=function(a){return arguments.length?(e=typeof a=="function"?a:B(+a),s(),r):e},r}function et(e){var i=B(.1),t,n,o;typeof e!="function"&&(e=B(e==null?0:+e));function r(a){for(var c=0,l=t.length,m;c<l;++c)m=t[c],m.vy+=(o[c]-m.y)*n[c]*a}function s(){if(t){var a,c=t.length;for(n=new Array(c),o=new Array(c),a=0;a<c;++a)n[a]=isNaN(o[a]=+e(t[a],a,t))?0:+i(t[a],a,t)}}return r.initialize=function(a){t=a,s()},r.strength=function(a){return arguments.length?(i=typeof a=="function"?a:B(+a),s(),r):i},r.y=function(a){return arguments.length?(e=typeof a=="function"?a:B(+a),s(),r):e},r}function tt(e){let i=e.normalize("NFD");return i=i.replace(new RegExp("\\p{Mn}+","gu"),""),i=i.toLowerCase(),i=i.replace(/[-_\s]+/g," "),i=i.replace(/\s+/g," "),i.trim()}function nt(e){let i=new Map;return so(e,i),lo(e,i),i}function so(e,i){for(let t of e){let n=In(t);if(n===null)continue;let o=tt(n);i.has(o)||i.set(o,t.path)}}function lo(e,i){for(let t of e){if(In(t)!==null)continue;let n=co(t.path);if(n.length===0)continue;let o=tt(n);i.has(o)||i.set(o,t.path)}}function In(e){let i=e.frontmatter?.name;return typeof i!="string"||i.length===0?null:i}function co(e){let i=e.split("/").filter(n=>n.length>0);if(i.length===0)return e;let t=i[i.length-1];return t==="SKILL.md"&&i.length>=2?i[i.length-2]:t.replace(/\.md$/,"")}function it(e,i,t){let n=e.charAt(0);if(n!=="/"&&n!=="@")return e;let o=i!==null?i.replace(/^[/@]/,"").trim():tt(e.slice(1));return t.get(o)??e}var po=["network-simplex","longest-path","force"];function Dl(e){return e!=="force"}var uo=["TOP_BOTTOM","BOTTOM_TOP","LEFT_RIGHT","RIGHT_LEFT"];var On={compact:{nodeGap:40,layerGap:56},normal:{nodeGap:64,layerGap:96},spacious:{nodeGap:96,layerGap:144}},Il="network-simplex",Ol="LEFT_RIGHT",Pl="normal";function Al(e){return typeof e=="string"&&po.includes(e)}function Fl(e){return typeof e=="string"&&uo.includes(e)}var ot=260,Pn=120;function Kl(e,i){let t=i?.links??[],n=new Set(e.map(h=>h.path)),o=nt(e),r=new Set,s=0,a=0,c=0,l=0,m=0;for(let h of t){if(!n.has(h.source)){s++;continue}let y=it(h.target,h.trigger?.normalizedTrigger??null,o);if(!n.has(y)){a++;continue}if(h.source===y){c++;continue}let f=An(h.kind,h.source,y);if(r.has(f)){l++;continue}r.add(f),m++}return{raw:t.length,drawn:m,brokenSource:s,brokenTarget:a,selfLoops:c,duplicates:l}}function Vl(e,i){let t=e.map(o=>o.path).sort(),n=i.map(o=>o.id).sort();return`${t.length}|${t.join(",")}|${n.length}|${n.join(",")}`}function Ul(e,i){let t=new Set(e.map(l=>l.path)),n=nt(e),o=new Map,r=i?.links??[];for(let l of r){if(!t.has(l.source))continue;let m=it(l.target,l.trigger?.normalizedTrigger??null,n);if(!t.has(m)||l.source===m)continue;let h=An(l.kind,l.source,m),y=typeof l.confidence=="number"?l.confidence:.6,f=o.get(h);f?y>f.confidence&&(f.confidence=y):o.set(h,{id:h,from:l.source,to:m,kind:l.kind,confidence:y})}let s=[...o.values()],a=new Map;for(let l of e)a.set(l.path,l);let c=new Map;for(let l of i?.nodes??[])c.set(l.path,l);return{nodesByPath:a,apiNodesByPath:c,edges:s}}async function Hl(e,i,t,n){let o={width:ot,height:Pn},r=i.map(m=>({id:m.path,size:o})),s=t.map(m=>({source:m.from,target:m.to})),a=On[n.spacing],c=await e.calculate(r,s,{algorithm:n.algorithm,direction:n.direction,nodeGap:a.nodeGap,layerGap:a.layerGap}),l=new Map;for(let{id:m,position:h}of c.nodes)l.set(m,{x:h.x,y:h.y});return l}function Gl(e,i){let t=e.map(a=>({id:a.path})),n=i.map(a=>({source:a.from,target:a.to})),o=Qe(t).force("link",Ge(n).id(a=>a.id).distance(90).strength(1)).force("charge",Je().strength(-200)).force("center",Ve(0,0)).force("x",Ze(0).strength(.06)).force("y",et(0).strength(.06)).force("collide",He(ot/2+12)).stop(),r=400;for(let a=0;a<r;a++)o.tick();let s=new Map;for(let a of t)s.set(a.id,{x:(a.x??0)-ot/2,y:(a.y??0)-Pn/2});return s}function Wl(e,i,t,n=null){let o=e.edges.filter(c=>i.has(c.from)&&i.has(c.to)&&(n===null||n.has(c.kind))),r=new Map,s=new Map;for(let c of o)r.set(c.from,(r.get(c.from)??0)+1),s.set(c.to,(s.get(c.to)??0)+1);let a=[];for(let c of i){let l=e.nodesByPath.get(c);if(!l)continue;let m=e.apiNodesByPath.get(c),h=t.get(c),y=e.positions.get(c)??{x:0,y:0},f=h?{x:h.x,y:h.y}:y;a.push({id:c,path:c,view:l,kind:l.kind,position:f,stats:{linksIn:s.get(c)??0,linksOut:r.get(c)??0,bytesTotal:m?.bytes.total,tokensTotal:m?.tokens?.total,externalRefsCount:m?.externalRefsCount},summary:fo(l)})}return{nodes:a,edges:o}}function fo(e){let i={injectionDetected:!1,contentQuality:"clean"},t=(e.frontmatter.description??e.frontmatter.name??"").trim();return{kind:"markdown",confidence:.6,safety:i,whatItCovers:t||`${e.kind} entry`,topics:[],keyFacts:[]}}function An(e,i,t){return`${e}:${i}::${t}`}var Fn={invalidHex:e=>`deriveTints: invalid hex color "${e}" (expected #RRGGBB)`};function $e(e,i,t){return[Math.round(e[0]+(i[0]-e[0])*t),Math.round(e[1]+(i[1]-e[1])*t),Math.round(e[2]+(i[2]-e[2])*t)]}function mo(e){let i=/^#([0-9a-f]{6})$/i.exec(e);if(!i)throw new Error(Fn.invalidHex(e));let t=parseInt(i[1],16);return[t>>16&255,t>>8&255,t&255]}function Le([e,i,t]){let n=o=>Math.max(0,Math.min(255,o)).toString(16).padStart(2,"0");return`#${n(e)}${n(i)}${n(t)}`}var $n=[255,255,255],Ln=[0,0,0];function rt(e,i){let t=mo(e);return i==="light"?{bg:Le($e(t,$n,.85)),fg:Le($e(t,Ln,.5))}:{bg:Le($e(t,Ln,.7)),fg:Le($e(t,$n,.6))}}var go=/^[a-zA-Z][a-zA-Z0-9_-]{0,63}$/,Rn=/^#[0-9a-f]{6}$/i,nc=(()=>{class e{doc=K(ct);_entries=F([]);kinds=this._entries.asReadonly();index=d(()=>{let t=new Map;for(let n of this._entries())t.set(n.name,n);return t});ingest(t){if(!t)return;let n=[];for(let[r,s]of Object.entries(t)){if(!go.test(r))continue;let a=s.providers[s.primaryProviderId];if(!a)continue;let c={name:r,primaryProviderId:s.primaryProviderId,providers:s.providers,label:a.label,color:a.color};a.colorDark!==void 0&&(c.colorDark=a.colorDark),a.emoji!==void 0&&(c.emoji=a.emoji),a.icon!==void 0&&(c.icon=a.icon),n.push(c)}let o=this._entries();ho(o,n)||(this._entries.set(n),this.applyCssVars())}lookup(t){return this.index().get(t)}labelOf(t){return this.lookup(t)?.label??t}colorOf(t,n="light"){let o=this.lookup(t);return o?n==="dark"?o.colorDark??o.color:o.color:"#9ca3af"}iconOf(t){return this.lookup(t)?.icon}emojiOf(t){return this.lookup(t)?.emoji}providersOf(t){return this.lookup(t)?.providers}applyCssVars(){if(!this.doc.head)return;let t=vo(this.doc),n=[],o=[];for(let r of this._entries()){if(!Rn.test(r.color))continue;let s=r.colorDark??r.color;if(Rn.test(s))try{let a=rt(r.color,"light"),c=rt(s,"dark");n.push(`--sm-kind-${r.name}: ${r.color};`),n.push(`--sm-kind-${r.name}-bg: ${a.bg};`),n.push(`--sm-kind-${r.name}-fg: ${a.fg};`),o.push(`--sm-kind-${r.name}: ${s};`),o.push(`--sm-kind-${r.name}-bg: ${c.bg};`),o.push(`--sm-kind-${r.name}-fg: ${c.fg};`)}catch{continue}}t.textContent=`:root { ${n.join(" ")} } .app-dark { ${o.join(" ")} }`}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Bn="sm-kind-vars";function vo(e){let i=e.getElementById(Bn);return i||(i=e.createElement("style"),i.id=Bn,e.head.appendChild(i)),i}function ho(e,i){if(e.length!==i.length)return!1;for(let t=0;t<e.length;t++){let n=e[t],o=i[t];if(n.name!==o.name||n.primaryProviderId!==o.primaryProviderId||JSON.stringify(n.providers)!==JSON.stringify(o.providers))return!1}return!0}export{xo as a,bo as b,Co as c,wo as d,It as e,To as f,Mo as g,No as h,Ot as i,Io as j,Pt as k,co as l,po as m,Dl as n,uo as o,Il as p,Ol as q,Pl as r,Al as s,Fl as t,nc as u,At as v,Ft as w,oe as x,Ht as y,ze as z,Zt as A,Ka as B,en as C,os as D,us as E,Kl as F,Vl as G,Ul as H,Hl as I,Gl as J,Wl as K};