@skill-map/cli 0.68.1 → 0.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/tutorial/sm-tutorial/SKILL.md +8 -3
- package/dist/cli/tutorial/sm-tutorial/fixtures-data/edits/agents-hub/providers/codex/en/agents-hub.md +2 -0
- package/dist/cli/tutorial/sm-tutorial/fixtures-data/edits/agents-hub/providers/codex/es/agents-hub.md +2 -0
- package/dist/cli/tutorial/sm-tutorial/fixtures-data/edits/todo-connectors/providers/codex/en/todo-bullet-agent.md +1 -0
- package/dist/cli/tutorial/sm-tutorial/fixtures-data/edits/todo-connectors/providers/codex/en/todo-bullet-command.md +1 -0
- package/dist/cli/tutorial/sm-tutorial/fixtures-data/edits/todo-connectors/providers/codex/en/todo-bullet-skill.md +1 -0
- package/dist/cli/tutorial/sm-tutorial/fixtures-data/edits/todo-connectors/providers/codex/es/todo-bullet-agent.md +1 -0
- package/dist/cli/tutorial/sm-tutorial/fixtures-data/edits/todo-connectors/providers/codex/es/todo-bullet-command.md +1 -0
- package/dist/cli/tutorial/sm-tutorial/fixtures-data/edits/todo-connectors/providers/codex/es/todo-bullet-skill.md +1 -0
- package/dist/cli/tutorial/sm-tutorial/fixtures-data/sets/harness/providers/codex/en/__PROVIDER__/skills/publish/SKILL.md +2 -2
- package/dist/cli/tutorial/sm-tutorial/fixtures-data/sets/harness/providers/codex/es/__PROVIDER__/skills/publish/SKILL.md +2 -2
- package/dist/cli/tutorial/sm-tutorial/fixtures-data/sets/master/providers/codex/en/.codex/agents/master-agent.toml +1 -1
- package/dist/cli/tutorial/sm-tutorial/fixtures-data/sets/master/providers/codex/es/.codex/agents/master-agent.toml +1 -1
- package/dist/cli/tutorial/sm-tutorial/fixtures-data/sets/portfolio/providers/codex/en/.codex/agents/content-editor.toml +1 -1
- package/dist/cli/tutorial/sm-tutorial/fixtures-data/sets/portfolio/providers/codex/es/.codex/agents/content-editor.toml +1 -1
- package/dist/cli/tutorial/sm-tutorial/fixtures-data/sets/prologue/providers/codex/en/.codex/agents/demo-agent.toml +1 -1
- package/dist/cli/tutorial/sm-tutorial/fixtures-data/sets/prologue/providers/codex/es/.codex/agents/demo-agent.toml +1 -1
- package/dist/cli/tutorial/sm-tutorial/references/_core.md +57 -29
- package/dist/cli/tutorial/sm-tutorial/references/_manifest.json +70 -70
- package/dist/cli/tutorial/sm-tutorial/references/_manifest.yml +38 -38
- package/dist/cli/tutorial/sm-tutorial/references/fixtures.md +3 -3
- package/dist/cli/tutorial/sm-tutorial/references/part-authoring.md +25 -8
- package/dist/cli/tutorial/sm-tutorial/references/part-basic-daily.md +91 -38
- package/dist/cli/tutorial/sm-tutorial/references/part-basic-fundamentals.md +7 -8
- package/dist/cli/tutorial/sm-tutorial/references/part-basic-kickoff.md +1 -1
- package/dist/cli/tutorial/sm-tutorial/references/part-cli.md +1 -1
- package/dist/cli/tutorial/sm-tutorial/references/part-daily-loop.md +173 -56
- package/dist/cli/tutorial/sm-tutorial/references/part-fundamentals.md +14 -13
- package/dist/cli/tutorial/sm-tutorial/references/part-plugins.md +1 -1
- package/dist/cli/tutorial/sm-tutorial/references/part-project-kickoff.md +14 -12
- package/dist/cli/tutorial/sm-tutorial/references/part-settings.md +2 -2
- package/dist/cli/tutorial/sm-tutorial/scripts/lib/paths.js +6 -5
- package/dist/cli.js +963 -451
- package/dist/conformance/index.js +3 -3
- package/dist/index.js +17 -14
- package/dist/kernel/index.d.ts +54 -17
- package/dist/kernel/index.js +17 -14
- package/dist/migrations/001_initial.sql +7 -3
- package/dist/ui/{chunk-22EQLC23.js → chunk-EVNCL7FV.js} +21 -21
- package/dist/ui/chunk-GUGB4JY5.js +1 -0
- package/dist/ui/chunk-RJUHQQOF.js +3 -0
- package/dist/ui/{chunk-KMHXNOFZ.js → chunk-RSPEJBPT.js} +1 -1
- package/dist/ui/chunk-SQCXHF3J.js +2 -0
- package/dist/ui/index.html +1 -1
- package/dist/ui/main-K4O6LCIJ.js +4 -0
- package/migrations/001_initial.sql +7 -3
- package/package.json +2 -2
- package/dist/ui/chunk-K3ZRQNN5.js +0 -2
- package/dist/ui/chunk-PU5OP5RN.js +0 -1
- package/dist/ui/chunk-TLMV4LOQ.js +0 -3
- package/dist/ui/main-R7BIU4HU.js +0 -4
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as Mt,i as Ee}from"./chunk-KHDWXSGR.js";import{a as Nt,c as Se,d as ze,l as kt}from"./chunk-RSPEJBPT.js";import{b as Et,c as St}from"./chunk-CG25RHMO.js";import{wa as H,xa as G}from"./chunk-JKPG5PO7.js";import{g as Tt}from"./chunk-7WMT2LX4.js";import{$ as ut,$b as w,Ab as T,Bb as S,Cb as de,Fb as yt,Ib as he,Ja as p,K as V,Kb as Me,Lb as xt,Mb as h,N as dt,P as j,V as me,W as ge,Xb as bt,Yb as te,Za as A,_ as pt,_b as Be,ac as M,bc as Ne,cb as ft,db as mt,ga as F,ja as Te,jb as gt,kb as vt,lb as ht,lc as Ct,mc as wt,nb as k,qb as N,rb as E,sb as _t,ub as W,vb as q,wb as $,wc as d,xb as I,yb as D,yc as P,zb as ee}from"./chunk-EJVWTBMV.js";import{a as we,b as ct,d as lt}from"./chunk-ZRJ5ZCFR.js";var Gn=new Set(["stale-body","stale-frontmatter","stale-both"]);function Dt(e){return e?Gn.has(e.status??null):!1}function ke(e){let i=e.metadata;return i&&typeof i=="object"&&!Array.isArray(i)?i:null}function So(e){if(!e)return null;let i=e.sidecar?.annotations;if(i&&typeof i.version=="number")return`v${i.version}`;let t=ke(e.frontmatter)?.version;return typeof t=="string"&&t.length>0?`v${t}`:null}function ko(e){if(!e)return null;let t=e.sidecar?.annotations?.stability;if(t==="stable"||t==="experimental"||t==="deprecated")return t;let n=ke(e.frontmatter)?.stability;return n==="stable"||n==="experimental"||n==="deprecated"?n:null}function Do(e){return Dt(e?.sidecar)}function Ot(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=ke(e.frontmatter)?.tags;return Array.isArray(n)?n.filter(o=>typeof o=="string"&&o.length>0):[]}function Oo(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 Io(e){return e<1e3?`${e}`:e<1e4?`${(e/1e3).toFixed(1).replace(/\.0$/,"")}k`:`${Math.round(e/1e3)}k`}function Po(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`}function Ao(e){return Number.isFinite(e)?new Date(e).toISOString().slice(0,10):""}function Fo(e){return Number.isFinite(e)?`${new Date(e).toISOString().slice(0,19).replace("T"," ")}Z`:""}var It=["invokes","references","points","mentions"],Pt="sm.workspace.search-affects-map";function Yn(){if(typeof localStorage>"u")return!1;let e=localStorage.getItem(Pt);return e===null?!1:e==="1"}function Xn(e){if(!(typeof localStorage>"u"))try{localStorage.setItem(Pt,e?"1":"0")}catch{}}var Bo=(()=>{class e{_searchText=F("");_selectedKinds=F([]);_kindToggleExplicitEmpty=F(!1);_favoritesOnly=F(!1);_selectedLinkKinds=F([]);_severityErrorActive=F(!1);_severityWarnActive=F(!1);_searchAffectsMap=F(Yn());searchText=this._searchText.asReadonly();searchAffectsMap=this._searchAffectsMap.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)}toggleSearchAffectsMap(){let t=!this._searchAffectsMap();this._searchAffectsMap.set(t),Xn(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(It):new Set(n);o.has(t)?o.delete(t):o.add(t),o.size===It.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,o){let r=o?.includeSearch??!0,s=o?.includeKinds??!0,a=r?this.searchText().trim().toLowerCase():"",c=this.selectedKinds(),l=this._kindToggleExplicitEmpty(),f=this.favoritesOnly(),y=this._severityErrorActive(),_=this._severityWarnActive(),g=(y||_)&&n!==void 0;return t.filter(C=>{if(a){let m=Ot(C).join(" ");if(![C.path,C.frontmatter.name??"",C.frontmatter.description??"",m].join(" ").toLowerCase().includes(a))return!1}return!(s&&(l||c.length>0&&!c.includes(C.kind))||f&&C.isFavorite!==!0||g&&(y&&!n.errors.has(C.path)||_&&!n.warns.has(C.path)))})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Wn=(()=>{class e{router=j(Ee);open(t){this.router.navigate(["/"],{queryParams:{path:t}})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),At=new dt("NODE_OPEN_INTENT",{providedIn:"root",factory:()=>j(Wn)});var Ft={healthFailed:e=>`ProjectInfoService: /api/health probe failed (${e})`};var Qo=(()=>{class e{dataSource=j(Se);status=F(null);cwd=d(()=>this.status()?.cwd??null);implVersion=d(()=>this.status()?.implVersion??null);dev=d(()=>this.status()?.dev===!0);activeProviderState=F(null);activeProvider=d(()=>this.activeProviderState());async load(){try{let t=await this.dataSource.health();this.status.set(t)}catch(t){let n=t instanceof Error?t.message:String(t);console.warn(Ft.healthFailed(n))}await this.reloadActiveProvider()}async reloadActiveProvider(){try{let t=await this.dataSource.getActiveProvider();this.activeProviderState.set(t.activeProvider)}catch{}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var De="sm-debug-slots",qn="debug",Qn="is-debug-slots",$t=(()=>{class e{visible=F(!1);constructor(){this.visible.set(this.resolveInitial()),Te(()=>{let t=this.visible();document.documentElement.classList.toggle(Qn,t)})}toggle(){let t=!this.visible();this.visible.set(t);try{localStorage.setItem(De,t?"1":"0")}catch{}}resolveInitial(){let n=new URLSearchParams(window.location.search).get(qn);if(n!==null&&n!=="0"&&n!=="false"){try{localStorage.setItem(De,"1")}catch{}return!0}if(n==="0"||n==="false"){try{localStorage.setItem(De,"0")}catch{}return!1}try{return localStorage.getItem(De)==="1"}catch{return!1}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Lt=(()=>{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=V({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 Oe(e,i){return J(e)&&typeof e[i]=="string"}var Y={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 Jn=(e,i)=>i.label;function Zn(e,i){if(e&1&&(T(0,"h5",1),w(1),S()),e&2){let t=h();p(),M(t.label())}}function ei(e,i){if(e&1&&(T(0,"p",2),w(1),S()),e&2){let t=h();p(),M(t.emptyText())}}function ti(e,i){if(e&1&&(T(0,"li",4)(1,"span",5),w(2),S(),T(3,"span",6),de(4,"span",7),S(),T(5,"span",8),w(6),S()()),e&2){let t=i.$implicit,n=h(2);k("title",t.tooltip??""),p(2),M(t.label),p(2),bt("width",n.percent(t.value),"%"),p(2),M(t.value)}}function ni(e,i){if(e&1&&(T(0,"ul",3),W(1,ti,7,5,"li",4,Jn),S()),e&2){let t=h();p(),q(t.bars())}}var Rt=(()=>{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??Y.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&&(T(0,"section",0),N(1,Zn,2,1,"h5",1),N(2,ei,2,1,"p",2)(3,ni,3,0,"ul",3),S()),n&2&&(k("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 ii(e,i){if(e&1&&(T(0,"span",1),w(1),S()),e&2){let t=h(),n=h();Be(n.hostClass()),p(),M(t.text)}}function oi(e,i){if(e&1&&de(0,"i",1),e&2){let t=h(),n=h();Be(n.hostClass()+" "+t.cls)}}function ri(e,i){e&1&&N(0,ii,2,3,"span",0)(1,oi,1,2,"i",0),e&2&&E(i.kind==="emoji"?0:1)}function Ke(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=Ke(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,ri,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 ai(e,i){if(e&1&&(I(0,"span",3),w(1),D()),e&2){let t=h();k("aria-label",t.ariaLabel()),p(),M(t.value())}}var Ie=(()=>{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&&(I(0,"span",0)(1,"span",1),ee(2,"sm-icon",2),D(),N(3,ai,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()),k("data-testid","renderer-node-counter"),p(2),$("icon",o.icon()),p(),E(o.value()>0?3:-1))},dependencies:[G,H,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 si=(e,i)=>i.key;function ci(e,i){if(e&1&&(I(0,"h5",1),w(1),D()),e&2){let t=h();p(),M(t.label())}}function li(e,i){if(e&1&&(I(0,"p",2),w(1),D()),e&2){let t=h();p(),M(t.emptyText())}}function di(e,i){if(e&1&&(I(0,"dt",4),w(1),D(),I(2,"dd"),w(3),D()),e&2){let t=i.$implicit,n=h(2);$("pTooltip",t.tooltip??""),p(),M(t.key),p(2),M(n.formatValue(t.value))}}function pi(e,i){if(e&1&&(I(0,"dl",3),W(1,di,4,3,null,null,si),D()),e&2){let t=h();p(),q(t.pairs())}}var jt=(()=>{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??Y.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&&(I(0,"section",0),N(1,ci,2,1,"h5",1),N(2,li,2,1,"p",2)(3,pi,3,0,"dl",3),D()),n&2&&(k("data-testid","renderer-node-key-values"),p(),E(o.label()?1:-1),p(),E(o.pairs().length===0?2:3))},dependencies:[G,H],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 ui=(e,i)=>i.path;function fi(e,i){if(e&1&&(T(0,"h5",1),w(1),S()),e&2){let t=h();p(),M(t.label())}}function mi(e,i){if(e&1&&(T(0,"p",2),w(1),S()),e&2){let t=h();p(),M(t.emptyText())}}function gi(e,i){if(e&1&&(T(0,"span",5),w(1),S()),e&2){let t=h().$implicit;p(),M(t.kind)}}function vi(e,i){if(e&1){let t=he();T(0,"li")(1,"button",4),xt("click",function(){let o=me(t).$implicit,r=h(2);return ge(r.onOpenPath(o.path))}),N(2,gi,2,1,"span",5),T(3,"span",6),w(4),S()()()}if(e&2){let t=i.$implicit;p(2),E(t.kind?2:-1),p(2),M(t.label??t.path)}}function hi(e,i){if(e&1&&(T(0,"ul",3),W(1,vi,5,2,"li",null,ui),S()),e&2){let t=h();p(),q(t.links())}}var Bt=(()=>{class e{openIntent=j(At);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??Y.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&&(T(0,"section",0),N(1,fi,2,1,"h5",1),N(2,mi,2,1,"p",2)(3,hi,3,0,"ul",3),S()),n&2&&(k("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 zt=(e,i)=>i.key;function _i(e,i){if(e&1&&(T(0,"h5",1),w(1),S()),e&2){let t=h();p(),M(t.label())}}function yi(e,i){if(e&1&&(T(0,"p",2),w(1),S()),e&2){let t=h();p(),M(t.emptyText())}}function xi(e,i){if(e&1&&(T(0,"th"),w(1),S()),e&2){let t=i.$implicit;p(),M(t.label)}}function bi(e,i){if(e&1&&de(0,"i",4),e&2){let t=h(4);k("aria-label",t.texts.boolTrue)}}function Ci(e,i){if(e&1&&de(0,"i",5),e&2){let t=h(4);k("aria-label",t.texts.boolFalse)}}function wi(e,i){}function Ti(e,i){if(e&1&&w(0),e&2){let t=h().$implicit,n=h().$implicit,o=h(2);Ne(" ",o.cellText(n[t.key])," ")}}function Mi(e,i){if(e&1&&(T(0,"td"),N(1,bi,1,1,"i",4)(2,Ci,1,1,"i",5)(3,wi,0,0)(4,Ti,1,1),S()),e&2){let t,n=i.$implicit,o=h().$implicit,r=h(2);p(),E((t=r.cellKind(o[n.key]))==="bool-true"?1:t==="bool-false"?2:t==="empty"?3:4)}}function Ni(e,i){if(e&1&&(T(0,"tr"),W(1,Mi,5,1,"td",null,zt),S()),e&2){let t=h(2);p(),q(t.columns())}}function Ei(e,i){if(e&1&&(T(0,"table",3)(1,"thead")(2,"tr"),W(3,xi,2,1,"th",null,zt),S()(),T(5,"tbody"),W(6,Ni,3,0,"tr",null,_t),S()()),e&2){let t=h();p(3),q(t.columns()),p(3),q(t.rows())}}var Kt=(()=>{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??Y.emptyDefault);texts=Y.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&&(T(0,"section",0),N(1,_i,2,1,"h5",1),N(2,yi,2,1,"p",2)(3,Ei,8,0,"table",3),S()),n&2&&(k("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 Si(e,i){if(e&1&&(T(0,"h5",1),w(1),S()),e&2){let t=h();p(),M(t.label())}}function ki(e,i){if(e&1&&(T(0,"p",2),w(1),S()),e&2){let t=h();p(),M(t.emptyText())}}function Di(e,i){if(e&1&&(T(0,"pre",3),w(1),S()),e&2){let t=h();p(),M(t.markdown())}}var Ut=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return J(t)?Oe(t,"markdown")?t:{markdown:""}:{markdown:""}});markdown=d(()=>this.typed().markdown??"");label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??Y.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&&(T(0,"section",0),N(1,Si,2,1,"h5",1),N(2,ki,2,1,"p",2)(3,Di,2,1,"pre",3),S()),n&2&&(k("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 Vt={countAriaFallback:"count"};function Oi(e,i){if(e&1&&(I(0,"span",1),ee(1,"sm-icon",4),D()),e&2){let t=h();p(),$("icon",t.icon())}}function Ii(e,i){if(e&1&&(I(0,"span",2),w(1),D()),e&2){let t=h();p(),M(t.label())}}function Pi(e,i){if(e&1&&(I(0,"span",3),w(1),D()),e&2){let t=h();k("aria-label",t.countAria()),p(),M(t.count())}}var Ht=(()=>{class e{inputs=P.required();texts=Vt;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&&(I(0,"span",0),N(1,Oi,2,1,"span",1),N(2,Ii,2,1,"span",2),N(3,Pi,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()),k("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:[G,H,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 Gt={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 Yt=(()=>{class e{dataSource=j(Se);texts=Gt;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 ze&&s.code==="confirm-required"&&Ai(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 ze)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=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ai(e){return typeof e!="object"||e===null?!1:e.key==="allowEditSmFiles"}var Xt={fallbackLabel:"Run action",dismissErrorAriaLabel:"Dismiss",promptDialogHeader:"Provide a value"};var Fi=()=>[import("./chunk-I6ED2OW7.js").then(e=>e.ActionPromptDialog)];function $i(e,i){if(e&1){let t=he();I(0,"span",2)(1,"span",3),w(2),D(),I(3,"button",4),Me("click",function(){me(t);let o=h();return ge(o.dismissError())}),ee(4,"i",5),D()()}if(e&2){let t=h();p(2),M(i),p(),k("aria-label",t.texts.dismissErrorAriaLabel)}}function Li(e,i){if(e&1){let t=he();I(0,"sm-action-prompt-dialog",7),Me("confirmed",function(o){me(t);let r=h(2);return ge(r.onPromptConfirmed(o))})("closed",function(){me(t);let o=h(2);return ge(o.cancelPrompt())}),D()}if(e&2){let t=h(2);$("open",t.promptOpen())("descriptor",t.promptDescriptor())("headerText",t.dialogHeader())("busy",t.inFlight())}}function Ri(e,i){if(e&1&&N(0,Li,1,4,"sm-action-prompt-dialog",6),e&2){let t,n=h();E((t=n.prompt())?0:-1,t)}}var Wt=(()=>{class e{inputs=P.required();texts=Xt;dispatcher=j(Yt);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(()=>{let t=Ke(this.typed().icon??this.inputs().icon);return t&&t.kind!=="emoji"?t.cls:void 0});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}});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=ct(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&&(I(0,"span",0)(1,"p-button",1),Me("onClick",function(){return o.run()}),D(),N(2,$i,5,2,"span",2),D(),mt(3,Ri,1,1),gt(4,3,Fi),ht()),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()),k("data-testid","action-"+o.actionId()),p(),E((r=o.error())?2:-1,r),p(2),vt(o.promptOpened())}},dependencies:[St,Et,G,H],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 ji=()=>[],qt=(e,i)=>i.label;function Bi(e,i){if(e&1&&(T(0,"h5",1),w(1),S()),e&2){let t=h();p(),M(t.label())}}function zi(e,i){if(e&1&&(T(0,"p",2),w(1),S()),e&2){let t=h();p(),M(t.emptyText())}}function Ki(e,i){if(e&1&&(T(0,"span",5),w(1),S()),e&2){let t=h().$implicit;p(),M(t.marker)}}function Ui(e,i){if(e&1&&(T(0,"span",5),w(1),S()),e&2){let t=h().$implicit;p(),M(t.marker)}}function Vi(e,i){if(e&1&&(T(0,"li",4),N(1,Ui,2,1,"span",5),T(2,"span",6),w(3),S()()),e&2){let t=i.$implicit;k("title",t.tooltip??""),p(),E(t.marker?1:-1),p(2),M(t.label)}}function Hi(e,i){if(e&1&&(T(0,"ul",7),W(1,Vi,4,3,"li",4,qt),S()),e&2){let t=h().$implicit;p(),q(t.children)}}function Gi(e,i){if(e&1&&(T(0,"li",4),N(1,Ki,2,1,"span",5),T(2,"span",6),w(3),S(),N(4,Hi,3,0,"ul",7),S()),e&2){let t=i.$implicit;k("title",t.tooltip??""),p(),E(t.marker?1:-1),p(2),M(t.label),p(),E(t.children&&t.children.length>0?4:-1)}}function Yi(e,i){if(e&1&&(T(0,"ul",3),W(1,Gi,5,4,"li",4,qt),S()),e&2){let t=h();p(),q(t.root().children??Ct(0,ji))}}var Qt=(()=>{class e{inputs=P.required();root=d(()=>{let t=this.inputs().payload;return J(t)?Oe(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??Y.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&&(T(0,"section",0),N(1,Bi,2,1,"h5",1),N(2,zi,2,1,"p",2)(3,Yi,3,1,"ul",3),S()),n&2&&(k("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 Xi(e,i){if(e&1&&(I(0,"span",2),w(1),D()),e&2){let t=h();p(),M(t.formattedCount())}}var Jt=(()=>{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&&(I(0,"span",0),ee(1,"sm-icon",1),N(2,Xi,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()),k("data-testid","renderer-node-alert"),p(),$("icon",o.icon()),p(),E(o.count()!==null?2:-1))},dependencies:[G,H,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 Zt=(()=>{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&&(I(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()),k("aria-label",o.ariaLabel())("data-testid","renderer-node-icon"),p(),$("icon",o.icon()))},dependencies:[G,H,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 Wi(e,i){if(e&1&&(I(0,"span",3),w(1),D()),e&2){let t=h();p(),M(t.label())}}var en=(()=>{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&&(I(0,"span",0),ee(1,"sm-icon",1),I(2,"span",2),w(3),D(),N(4,Wi,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()),k("data-testid","renderer-scope-stat"),p(),$("icon",o.icon()),p(2),M(o.value()),p(),E(o.label()?4:-1))},dependencies:[G,H,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 Ue={"card.title.right":Zt,"card.subtitle.left":Ie,"card.footer.left":Ie,"card.footer.right":Ie,"graph.node.alert":Jt,"inspector.header.badge":Ht,"inspector.action.button":Wt,"inspector.body.panel.breakdown":Rt,"inspector.body.panel.records":Kt,"inspector.body.panel.tree":Qt,"inspector.body.panel.key-values":jt,"inspector.body.panel.link-list":Bt,"inspector.body.panel.markdown":Ut,"topbar.nav.start":en};function tn(e){return e in Ue}var rs=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"]),le={"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 nn(e,i,t,n){let o=le[i].respectSeverity!==!1,r=e.payload;if(!o&&typeof r=="object"&&r!==null&&"severity"in r){let a=r,{severity:c}=a;r=lt(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 qi=e=>({inputs:e}),Qi=(e,i)=>i.qualifiedId;function Ji(e,i){e&1&&yt(0)}function Zi(e,i){if(e&1&&(I(0,"span",1),ft(1,Ji,1,0,"ng-container",3),D()),e&2){let t=i.$implicit,n=h(2);k("data-testid","contribution-"+t.qualifiedId.replaceAll("/","-")),p(),$("ngComponentOutlet",n.rendererFor(t.slot))("ngComponentOutletInputs",wt(3,qi,t.rendererInputs))}}function eo(e,i){if(e&1&&(I(0,"span",2),w(1),D()),e&2){let t=h(2);$("pTooltip",t.overflowTooltip()),p(),Ne(" ",t.overflowBadge()," ")}}function to(e,i){if(e&1&&(I(0,"span",0),W(1,Zi,2,5,"span",1,Qi),N(3,eo,2,2,"span",2),D()),e&2){let t=h();k("data-testid","view-contributions-host-"+t.testidSuffix()),p(),q(t.visible()),p(2),E(t.overflowCount()>0&&t.showOverflowBadge()?3:-1)}}var bs=(()=>{class e{slot=P.required();node=P(null);debugSlots=j($t);debugVisible=this.debugSlots.visible;testidSuffix=d(()=>this.slot().replaceAll(".","-"));registry=j(Lt);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=>tn(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=le[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
|
+
`)});overflowCount=d(()=>{let t=this.dispatched(),n=le[this.slot()].maxItems;return n===void 0?0:Math.max(0,t.length-n)});showOverflowBadge=d(()=>le[this.slot()].showOverflowBadge!==!1);overflowBadge=d(()=>Y.overflowBadge(this.overflowCount()));overflowTooltip=d(()=>{let t=this.dispatched(),n=le[this.slot()].maxItems;if(n===void 0)return"";let o=t.slice(n).map(r=>r.qualifiedId).join(", ");return Y.overflowTooltip(o)});rendererFor(t){return Ue[t]}buildInputs(t,n,o){let r=`${t.pluginId}/${t.extensionId}/${t.contributionId}`;return nn(t,n,o,this.registry.get(r))}sortBySlotOrder(t,n){let o=le[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:Ve(r,s)}):o==="severity"?t.slice().sort((r,s)=>{let a=on(r),c=on(s);return a!==c?c-a:Ve(r,s)}):t.slice().sort(Ve)}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&&(k("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,to,4,2,"span",0),n&2&&E(o.visible().length>0||o.overflowCount()>0?0:-1)},dependencies:[Tt,G,H],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 Ve(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 on(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 ws="https://bb9dce0fd2cb4ab27ac0475aa394aeb4@o4511475590037504.ingest.de.sentry.io/4511475725959248",He="phc_vMX3PcNeDsacWNg2hYEbKVXDijSWcjKFzabCkzU7RNEr",rn="https://eu.i.posthog.com";var no="<HOME>",io=["server_name","user"],oo=[/[A-Za-z]:[\\/]Users[\\/][^\\/\s:*?"<>|]+/g,/\/(?:home|Users)\/[^/\s:]+/g,/\/root(?=\/|\b)/g];function ro(e){let i=e;for(let t of oo)i=i.replace(t,no);return i}function an(e){let i=Ge(e);if(i!==null&&typeof i=="object"&&!Array.isArray(i)){let t=i;for(let n of io)n in t&&delete t[n]}return i}function Ge(e){if(typeof e=="string")return ro(e);if(Array.isArray(e))return e.map(i=>Ge(i));if(e!==null&&typeof e=="object"){let i={};for(let[t,n]of Object.entries(e))i[t]=Ge(n);return i}return e}var sn=!1,_e=null;async function Ss(e){if(sn||He===""||!e.consentEnabled||e.distinctId===null)return;let{default:i}=await import("./chunk-I3I4KHR5.js");i.init(He,{api_host:rn,autocapture:!1,capture_pageview:!1,capture_pageleave:!1,disable_session_recording:!0,person_profiles:"identified_only",bootstrap:{distinctID:e.distinctId},before_send:t=>t===null?null:an(t)}),_e=i,sn=!0}function Ye(e,i={}){_e!==null&&_e.capture(e,i)}function cn(e){_e!==null&&_e.register(e)}var $s=(()=>{class e{router=j(Ee);theme=j(kt);destroyRef=j(ut);constructor(){this.router.events.pipe(Nt(this.destroyRef)).subscribe(t=>{if(t instanceof Mt){let n=ao(t.urlAfterRedirects);n!==null&&Ye(`ui.view.${n}`)}}),Te(()=>this.syncTheme())}trackFeature(t){Ye(`ui.feature.${t}`)}syncTheme(){cn({theme_base:this.theme.resolved(),theme_extra:this.theme.extraTheme()??"none"})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ao(e){return(e.split("?")[0]??"")==="/"?"workspace":null}function Xe(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 ln(e){let i=+this._x.call(null,e),t=+this._y.call(null,e);return dn(this.cover(i,t),i,t,e)}function dn(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,f=e._y1,y,_,g,C,m,u,v,x;if(!r)return e._root=s,e;for(;r.length;)if((m=i>=(y=(a+l)/2))?a=y:l=y,(u=t>=(_=(c+f)/2))?c=_:f=_,o=r,!(r=r[v=u<<1|m]))return o[v]=s,e;if(g=+e._x.call(null,r.data),C=+e._y.call(null,r.data),i===g&&t===C)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),(m=i>=(y=(a+l)/2))?a=y:l=y,(u=t>=(_=(c+f)/2))?c=_:f=_;while((v=u<<1|m)===(x=(C>=_)<<1|g>=y));return o[x]=r,o[v]=s,e}function pn(e){var i,t,n=e.length,o,r,s=new Array(n),a=new Array(n),c=1/0,l=1/0,f=-1/0,y=-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>f&&(f=o),r<l&&(l=r),r>y&&(y=r));if(c>f||l>y)return this;for(this.cover(c,l).cover(f,y),t=0;t<n;++t)dn(this,s[t],a[t],e[t]);return this}function un(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 fn(){var e=[];return this.visit(function(i){if(!i.length)do e.push(i.data);while(i=i.next)}),e}function mn(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 U(e,i,t,n,o){this.node=e,this.x0=i,this.y0=t,this.x1=n,this.y1=o}function gn(e,i,t){var n,o=this._x0,r=this._y0,s,a,c,l,f=this._x1,y=this._y1,_=[],g=this._root,C,m;for(g&&_.push(new U(g,o,r,f,y)),t==null?t=1/0:(o=e-t,r=i-t,f=e+t,y=i+t,t*=t);C=_.pop();)if(!(!(g=C.node)||(s=C.x0)>f||(a=C.y0)>y||(c=C.x1)<o||(l=C.y1)<r))if(g.length){var u=(s+c)/2,v=(a+l)/2;_.push(new U(g[3],u,v,c,l),new U(g[2],s,v,u,l),new U(g[1],u,a,c,v),new U(g[0],s,a,u,v)),(m=(i>=v)<<1|e>=u)&&(C=_[_.length-1],_[_.length-1]=_[_.length-1-m],_[_.length-1-m]=C)}else{var x=e-+this._x.call(null,g.data),O=i-+this._y.call(null,g.data),b=x*x+O*O;if(b<t){var L=Math.sqrt(t=b);o=e-L,r=i-L,f=e+L,y=i+L,n=g.data}}return n}function vn(e){if(isNaN(f=+this._x.call(null,e))||isNaN(y=+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,f,y,_,g,C,m,u,v;if(!t)return this;if(t.length)for(;;){if((C=f>=(_=(s+c)/2))?s=_:c=_,(m=y>=(g=(a+l)/2))?a=g:l=g,i=t,!(t=t[u=m<<1|C]))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 hn(e){for(var i=0,t=e.length;i<t;++i)this.remove(e[i]);return this}function _n(){return this._root}function yn(){var e=0;return this.visit(function(i){if(!i.length)do++e;while(i=i.next)}),e}function xn(e){var i=[],t,n=this._root,o,r,s,a,c;for(n&&i.push(new U(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,f=(s+c)/2;(o=n[3])&&i.push(new U(o,l,f,a,c)),(o=n[2])&&i.push(new U(o,r,f,l,c)),(o=n[1])&&i.push(new U(o,l,s,a,f)),(o=n[0])&&i.push(new U(o,r,s,l,f))}return this}function bn(e){var i=[],t=[],n;for(this._root&&i.push(new U(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,f=(s+c)/2,y=(a+l)/2;(r=o[0])&&i.push(new U(r,s,a,f,y)),(r=o[1])&&i.push(new U(r,f,a,c,y)),(r=o[2])&&i.push(new U(r,s,y,f,l)),(r=o[3])&&i.push(new U(r,f,y,c,l))}t.push(n)}for(;n=t.pop();)e(n.node,n.x0,n.y0,n.x1,n.y1);return this}function Cn(e){return e[0]}function wn(e){return arguments.length?(this._x=e,this):this._x}function Tn(e){return e[1]}function Mn(e){return arguments.length?(this._y=e,this):this._y}function ue(e,i,t){var n=new We(i??Cn,t??Tn,NaN,NaN,NaN,NaN);return e==null?n:n.addAll(e)}function We(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 Nn(e){for(var i={data:e.data},t=i;e=e.next;)t=t.next={data:e.data};return i}var Q=ue.prototype=We.prototype;Q.copy=function(){var e=new We(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=Nn(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]=Nn(n));return e};Q.add=ln;Q.addAll=pn;Q.cover=un;Q.data=fn;Q.extent=mn;Q.find=gn;Q.remove=vn;Q.removeAll=hn;Q.root=_n;Q.size=yn;Q.visit=xn;Q.visitAfter=bn;Q.x=wn;Q.y=Mn;function B(e){return function(){return e}}function ie(e){return(e()-.5)*1e-6}function so(e){return e.x+e.vx}function co(e){return e.y+e.vy}function qe(e){var i,t,n,o=1,r=1;typeof e!="function"&&(e=B(e==null?1:+e));function s(){for(var l,f=i.length,y,_,g,C,m,u,v=0;v<r;++v)for(y=ue(i,so,co).visitAfter(a),l=0;l<f;++l)_=i[l],m=t[_.index],u=m*m,g=_.x+_.vx,C=_.y+_.vy,y.visit(x);function x(O,b,L,X,Z){var z=O.data,ne=O.r,K=m+ne;if(z){if(z.index>_.index){var se=g-z.x-z.vx,ce=C-z.y-z.vy,re=se*se+ce*ce;re<K*K&&(se===0&&(se=ie(n),re+=se*se),ce===0&&(ce=ie(n),re+=ce*ce),re=(K-(re=Math.sqrt(re)))/re*o,_.vx+=(se*=re)*(K=(ne*=ne)/(u+ne)),_.vy+=(ce*=re)*K,z.vx-=se*(K=1-K),z.vy-=ce*K)}return}return b>g+K||X<g-K||L>C+K||Z<C-K}}function a(l){if(l.data)return l.r=t[l.data.index];for(var f=l.r=0;f<4;++f)l[f]&&l[f].r>l.r&&(l.r=l[f].r)}function c(){if(i){var l,f=i.length,y;for(t=new Array(f),l=0;l<f;++l)y=i[l],t[y.index]=+e(y,l,i)}}return s.initialize=function(l,f){i=l,n=f,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 lo(e){return e.index}function En(e,i){var t=e.get(i);if(!t)throw new Error("node not found: "+i);return t}function Qe(e){var i=lo,t=y,n,o=B(30),r,s,a,c,l,f=1;e==null&&(e=[]);function y(u){return 1/Math.min(a[u.source.index],a[u.target.index])}function _(u){for(var v=0,x=e.length;v<f;++v)for(var O=0,b,L,X,Z,z,ne,K;O<x;++O)b=e[O],L=b.source,X=b.target,Z=X.x+X.vx-L.x-L.vx||ie(l),z=X.y+X.vy-L.y-L.vy||ie(l),ne=Math.sqrt(Z*Z+z*z),ne=(ne-r[O])/ne*u*n[O],Z*=ne,z*=ne,X.vx-=Z*(K=c[O]),X.vy-=z*K,L.vx+=Z*(K=1-K),L.vy+=z*K}function g(){if(s){var u,v=s.length,x=e.length,O=new Map(s.map((L,X)=>[i(L,X,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=En(O,b.source)),typeof b.target!="object"&&(b.target=En(O,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),C(),r=new Array(x),m()}}function C(){if(s)for(var u=0,v=e.length;u<v;++u)n[u]=+t(e[u],u,e)}function m(){if(s)for(var u=0,v=e.length;u<v;++u)r[u]=+o(e[u],u,e)}return _.initialize=function(u,v){s=u,l=v,g()},_.links=function(u){return arguments.length?(e=u,g(),_):e},_.id=function(u){return arguments.length?(i=u,_):i},_.iterations=function(u){return arguments.length?(f=+u,_):f},_.strength=function(u){return arguments.length?(t=typeof u=="function"?u:B(+u),C(),_):t},_.distance=function(u){return arguments.length?(o=typeof u=="function"?u:B(+u),m(),_):o},_}var po={value:()=>{}};function kn(){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 Pe(t)}function Pe(e){this._=e}function uo(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}})}Pe.prototype=kn.prototype={constructor:Pe,on:function(e,i){var t=this._,n=uo(e+"",t),o,r=-1,s=n.length;if(arguments.length<2){for(;++r<s;)if((o=(e=n[r]).type)&&(o=fo(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]=Sn(t[o],e.name,i);else if(i==null)for(o in t)t[o]=Sn(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 Pe(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 fo(e,i){for(var t=0,n=e.length,o;t<n;++t)if((o=e[t]).name===i)return o.value}function Sn(e,i,t){for(var n=0,o=e.length;n<o;++n)if(e[n].name===i){e[n]=po,e=e.slice(0,n).concat(e.slice(n+1));break}return t!=null&&e.push({name:i,value:t}),e}var Je=kn;var ve=0,xe=0,ye=0,On=1e3,Ae,be,Fe=0,fe=0,$e=0,Ce=typeof performance=="object"&&performance.now?performance:Date,In=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function tt(){return fe||(In(mo),fe=Ce.now()+$e)}function mo(){fe=0}function Ze(){this._call=this._time=this._next=null}Ze.prototype=Le.prototype={constructor:Ze,restart:function(e,i,t){if(typeof e!="function")throw new TypeError("callback is not a function");t=(t==null?tt():+t)+(i==null?0:+i),!this._next&&be!==this&&(be?be._next=this:Ae=this,be=this),this._call=e,this._time=t,et()},stop:function(){this._call&&(this._call=null,this._time=1/0,et())}};function Le(e,i,t){var n=new Ze;return n.restart(e,i,t),n}function Pn(){tt(),++ve;for(var e=Ae,i;e;)(i=fe-e._time)>=0&&e._call.call(void 0,i),e=e._next;--ve}function Dn(){fe=(Fe=Ce.now())+$e,ve=xe=0;try{Pn()}finally{ve=0,vo(),fe=0}}function go(){var e=Ce.now(),i=e-Fe;i>On&&($e-=i,Fe=e)}function vo(){for(var e,i=Ae,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:Ae=t);be=e,et(n)}function et(e){if(!ve){xe&&(xe=clearTimeout(xe));var i=e-fe;i>24?(e<1/0&&(xe=setTimeout(Dn,e-Ce.now()-$e)),ye&&(ye=clearInterval(ye))):(ye||(Fe=Ce.now(),ye=setInterval(go,On)),ve=1,In(Dn))}}function An(){let e=1;return()=>(e=(1664525*e+1013904223)%4294967296)/4294967296}function Fn(e){return e.x}function $n(e){return e.y}var ho=10,_o=Math.PI*(3-Math.sqrt(5));function nt(e){var i,t=1,n=.001,o=1-Math.pow(n,1/300),r=0,s=.6,a=new Map,c=Le(y),l=Je("tick","end"),f=An();e==null&&(e=[]);function y(){_(),l.call("tick",i),t<n&&(c.stop(),l.call("end",i))}function _(m){var u,v=e.length,x;m===void 0&&(m=1);for(var O=0;O<m;++O)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 g(){for(var m=0,u=e.length,v;m<u;++m){if(v=e[m],v.index=m,v.fx!=null&&(v.x=v.fx),v.fy!=null&&(v.y=v.fy),isNaN(v.x)||isNaN(v.y)){var x=ho*Math.sqrt(.5+m),O=m*_o;v.x=x*Math.cos(O),v.y=x*Math.sin(O)}(isNaN(v.vx)||isNaN(v.vy))&&(v.vx=v.vy=0)}}function C(m){return m.initialize&&m.initialize(e,f),m}return g(),i={tick:_,restart:function(){return c.restart(y),i},stop:function(){return c.stop(),i},nodes:function(m){return arguments.length?(e=m,g(),a.forEach(C),i):e},alpha:function(m){return arguments.length?(t=+m,i):t},alphaMin:function(m){return arguments.length?(n=+m,i):n},alphaDecay:function(m){return arguments.length?(o=+m,i):+o},alphaTarget:function(m){return arguments.length?(r=+m,i):r},velocityDecay:function(m){return arguments.length?(s=1-m,i):1-s},randomSource:function(m){return arguments.length?(f=m,a.forEach(C),i):f},force:function(m,u){return arguments.length>1?(u==null?a.delete(m):a.set(m,C(u)),i):a.get(m)},find:function(m,u,v){var x=0,O=e.length,b,L,X,Z,z;for(v==null?v=1/0:v*=v,x=0;x<O;++x)Z=e[x],b=m-Z.x,L=u-Z.y,X=b*b+L*L,X<v&&(z=Z,v=X);return z},on:function(m,u){return arguments.length>1?(l.on(m,u),i):l.on(m)}}}function it(){var e,i,t,n,o=B(-30),r,s=1,a=1/0,c=.81;function l(g){var C,m=e.length,u=ue(e,Fn,$n).visitAfter(y);for(n=g,C=0;C<m;++C)i=e[C],u.visit(_)}function f(){if(e){var g,C=e.length,m;for(r=new Array(C),g=0;g<C;++g)m=e[g],r[m.index]=+o(m,g,e)}}function y(g){var C=0,m,u,v=0,x,O,b;if(g.length){for(x=O=b=0;b<4;++b)(m=g[b])&&(u=Math.abs(m.value))&&(C+=m.value,v+=u,x+=u*m.x,O+=u*m.y);g.x=x/v,g.y=O/v}else{m=g,m.x=m.data.x,m.y=m.data.y;do C+=r[m.data.index];while(m=m.next)}g.value=C}function _(g,C,m,u){if(!g.value)return!0;var v=g.x-i.x,x=g.y-i.y,O=u-C,b=v*v+x*x;if(O*O/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*g.value*n/b,i.vy+=x*g.value*n/b),!0;if(g.length||b>=a)return;(g.data!==i||g.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 g.data!==i&&(O=r[g.data.index]*n/b,i.vx+=v*O,i.vy+=x*O);while(g=g.next)}return l.initialize=function(g,C){e=g,t=C,f()},l.strength=function(g){return arguments.length?(o=typeof g=="function"?g:B(+g),f(),l):o},l.distanceMin=function(g){return arguments.length?(s=g*g,l):Math.sqrt(s)},l.distanceMax=function(g){return arguments.length?(a=g*g,l):Math.sqrt(a)},l.theta=function(g){return arguments.length?(c=g*g,l):Math.sqrt(c)},l}function ot(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,f;c<l;++c)f=t[c],f.vx+=(o[c]-f.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 rt(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,f;c<l;++c)f=t[c],f.vy+=(o[c]-f.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}var yo=["network-simplex","longest-path","force"];function Zc(e){return e!=="force"}var xo=["TOP_BOTTOM","BOTTOM_TOP","LEFT_RIGHT","RIGHT_LEFT"];var Ln={compact:{nodeGap:40,layerGap:56},normal:{nodeGap:64,layerGap:96},spacious:{nodeGap:96,layerGap:144}},el="network-simplex",tl="LEFT_RIGHT",nl="normal";function il(e){return typeof e=="string"&&yo.includes(e)}function ol(e){return typeof e=="string"&&xo.includes(e)}var at=260,Rn=120;function jn(e){return e.resolvedTarget??e.target}function dl(e,i){let t=i?.links??[],n=new Set(e.map(f=>f.path)),o=new Set,r=0,s=0,a=0,c=0,l=0;for(let f of t){if(!n.has(f.source)){r++;continue}let y=jn(f);if(!n.has(y)){s++;continue}if(f.source===y){a++;continue}let _=Bn(f.kind,f.source,y);if(o.has(_)){c++;continue}o.add(_),l++}return{raw:t.length,drawn:l,brokenSource:r,brokenTarget:s,selfLoops:a,duplicates:c}}function pl(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(c=>c.path)),n=new Map,o=i?.links??[];for(let c of o){if(!t.has(c.source))continue;let l=jn(c);if(!t.has(l)||c.source===l)continue;let f=Bn(c.kind,c.source,l),y=typeof c.confidence=="number"?c.confidence:.6,_=n.get(f);_?y>_.confidence&&(_.confidence=y):n.set(f,{id:f,from:c.source,to:l,kind:c.kind,confidence:y})}let r=[...n.values()],s=new Map;for(let c of e)s.set(c.path,c);let a=new Map;for(let c of i?.nodes??[])a.set(c.path,c);return{nodesByPath:s,apiNodesByPath:a,edges:r}}async function fl(e,i,t,n){let o={width:at,height:Rn},r=i.map(f=>({id:f.path,size:o})),s=t.map(f=>({source:f.from,target:f.to})),a=Ln[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:f,position:y}of c.nodes)l.set(f,{x:y.x,y:y.y});return l}function ml(e,i){let t=e.map(a=>({id:a.path})),n=i.map(a=>({source:a.from,target:a.to})),o=nt(t).force("link",Qe(n).id(a=>a.id).distance(90).strength(1)).force("charge",it().strength(-200)).force("center",Xe(0,0)).force("x",ot(0).strength(.06)).force("y",rt(0).strength(.06)).force("collide",qe(at/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)-at/2,y:(a.y??0)-Rn/2});return s}function gl(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 f=e.apiNodesByPath.get(c),y=t.get(c),_=e.positions.get(c)??{x:0,y:0},g=y?{x:y.x,y:y.y}:_;a.push({id:c,path:c,view:l,kind:l.kind,position:g,stats:{linksIn:s.get(c)??0,linksOut:r.get(c)??0,bytesTotal:f?.bytes.total,tokensTotal:f?.tokens?.total,externalRefsCount:f?.externalRefsCount},summary:bo(l)})}return{nodes:a,edges:o}}function bo(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 Bn(e,i,t){return`${e}:${i}::${t}`}var zn={invalidHex:e=>`deriveTints: invalid hex color "${e}" (expected #RRGGBB)`};function Re(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 Co(e){let i=/^#([0-9a-f]{6})$/i.exec(e);if(!i)throw new Error(zn.invalidHex(e));let t=parseInt(i[1],16);return[t>>16&255,t>>8&255,t&255]}function je([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 Kn=[255,255,255],Un=[0,0,0];function st(e,i){let t=Co(e);return i==="light"?{bg:je(Re(t,Kn,.85)),fg:je(Re(t,Un,.5))}:{bg:je(Re(t,Un,.7)),fg:je(Re(t,Kn,.6))}}var wo=/^[a-zA-Z][a-zA-Z0-9_-]{0,63}$/,Vn=/^#[0-9a-f]{6}$/i,Tl=(()=>{class e{doc=j(pt);_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(!wo.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();Mo(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=To(this.doc),n=[],o=[];for(let r of this._entries()){if(!Vn.test(r.color))continue;let s=r.colorDark??r.color;if(Vn.test(s))try{let a=st(r.color,"light"),c=st(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=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Hn="sm-kind-vars";function To(e){let i=e.getElementById(Hn);return i||(i=e.createElement("style"),i.id=Hn,e.head.appendChild(i)),i}function Mo(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{So as a,ko as b,Do as c,Ot as d,Oo as e,Io as f,Po as g,Ao as h,Fo as i,It as j,Bo as k,At as l,yo as m,Zc as n,xo as o,el as p,tl as q,nl as r,il as s,ol as t,Tl as u,Qo as v,$t as w,Lt as x,oe as y,Yt as z,Ue as A,tn as B,rs as C,nn as D,bs as E,ws as F,an as G,Ss as H,cn as I,$s as J,dl as K,pl as L,ul as M,fl as N,ml as O,gl as P};
|
package/dist/ui/index.html
CHANGED
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
<style>:root{--ff-white:#ffffff;--ff-black:#000000;--ff-gray-0:#ffffff;--ff-gray-25:#fcfcfc;--ff-gray-50:#f8f8f7;--ff-gray-75:#f2f2f0;--ff-gray-100:#e9e9e6;--ff-gray-150:#dcdcd7;--ff-gray-200:#c9c9c1;--ff-gray-300:#afafa5;--ff-gray-400:#8d8d81;--ff-gray-500:#69695f;--ff-gray-600:#505048;--ff-gray-700:#3c3c36;--ff-gray-800:#272722;--ff-gray-900:#1b1b18;--ff-gray-950:#141412;--ff-gray-1000:#0f0f0d;--ff-alpha-black-04:rgba(15, 15, 13, .04);--ff-alpha-black-06:rgba(15, 15, 13, .06);--ff-alpha-black-08:rgba(15, 15, 13, .08);--ff-alpha-black-10:rgba(15, 15, 13, .1);--ff-alpha-black-12:rgba(15, 15, 13, .12);--ff-alpha-black-15:rgba(15, 15, 13, .15);--ff-alpha-black-20:rgba(15, 15, 13, .2);--ff-alpha-black-30:rgba(15, 15, 13, .3);--ff-alpha-black-40:rgba(15, 15, 13, .4);--ff-alpha-black-60:rgba(15, 15, 13, .6);--ff-alpha-white-04:rgba(255, 255, 255, .04);--ff-alpha-white-06:rgba(255, 255, 255, .06);--ff-alpha-white-08:rgba(255, 255, 255, .08);--ff-alpha-white-10:rgba(255, 255, 255, .1);--ff-alpha-white-12:rgba(255, 255, 255, .12);--ff-alpha-white-15:rgba(255, 255, 255, .15);--ff-alpha-white-20:rgba(255, 255, 255, .2);--ff-alpha-white-30:rgba(255, 255, 255, .3);--ff-alpha-white-40:rgba(255, 255, 255, .4);--ff-alpha-white-60:rgba(255, 255, 255, .6);--ff-blue-100:#e8f2ff;--ff-blue-200:#bad8ff;--ff-blue-300:#7db7ff;--ff-blue-400:#4176ff;--ff-blue-500:#2759db;--ff-blue-600:#1b3f9e;--ff-green-100:#e7f7ef;--ff-green-300:#71c795;--ff-green-400:#2b9b5f;--ff-green-500:#1e7748;--ff-yellow-100:#fff5de;--ff-yellow-300:#e1b354;--ff-yellow-400:#bb8121;--ff-yellow-500:#916112;--ff-red-100:#feeceb;--ff-red-300:#e48d85;--ff-red-400:#c55245;--ff-red-500:#9e3a2f;--ff-radius-4:4px;--ff-radius-6:6px;--ff-radius-pill:999px;--ff-font-family-sans:"Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--ff-font-family-mono:ui-monospace, "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;--ff-font-size-xs:12px;--ff-font-size-sm:14px;--ff-font-size-md:16px;--ff-font-size-lg:18px;--ff-shadow-1:0 1px 2px rgba(15, 15, 13, .05), 0 8px 20px rgba(15, 15, 13, .04);--ff-shadow-2:0 10px 28px rgba(15, 15, 13, .08), 0 3px 10px rgba(15, 15, 13, .05);--ff-shadow-3:0 18px 48px rgba(15, 15, 13, .12), 0 6px 16px rgba(15, 15, 13, .08)}:root{--ff-color-surface-page:var(--ff-gray-25);--ff-color-surface-canvas:var(--ff-gray-25);--ff-color-surface-card:var(--ff-white);--ff-color-surface-group:rgba(65, 118, 255, .14);--ff-color-surface-group-active:rgba(65, 118, 255, .2);--ff-color-surface-muted:var(--ff-gray-50);--ff-color-surface-soft:var(--ff-gray-75);--ff-color-surface-accent-soft:rgba(65, 118, 255, .1);--ff-color-border-default:var(--ff-alpha-black-12);--ff-color-border-subtle:var(--ff-alpha-black-08);--ff-color-border-strong:var(--ff-alpha-black-20);--ff-color-border-accent:var(--ff-blue-500);--ff-color-text-primary:var(--ff-gray-800);--ff-color-text-secondary:var(--ff-gray-500);--ff-color-text-tertiary:var(--ff-gray-400);--ff-color-text-inverse:var(--ff-white);--ff-color-accent:var(--ff-blue-500);--ff-color-accent-strong:var(--ff-blue-600);--ff-color-success:var(--ff-green-400);--ff-color-warning:var(--ff-yellow-400);--ff-color-danger:var(--ff-red-400);--ff-color-disabled-surface:var(--ff-gray-100);--ff-color-disabled-border:var(--ff-alpha-black-10);--ff-color-disabled-text:var(--ff-gray-300);--ff-color-selection-fill:rgba(65, 118, 255, .12);--ff-color-selection-stroke:rgba(65, 118, 255, .28);--ff-color-grid:var(--ff-alpha-black-08);--ff-color-grid-strong:var(--ff-alpha-black-15);--ff-color-connector-connected:var(--ff-blue-500);--ff-color-connection:var(--ff-gray-600);--ff-color-connection-muted:var(--ff-gray-300);--ff-color-connection-hover:var(--ff-alpha-black-12);--ff-color-grouping-drop-target-border:var(--ff-gray-800);--ff-color-grouping-drop-target-border-active:var(--ff-gray-800);--ff-color-waypoint-fill:var(--ff-white);--ff-color-waypoint-stroke:var(--ff-blue-500);--ff-color-waypoint-candidate-fill:var(--ff-white);--ff-color-waypoint-candidate-stroke:var(--ff-green-400);--ff-color-minimap-surface:var(--ff-white);--ff-color-minimap-node:var(--ff-gray-700);--ff-color-minimap-view:rgba(65, 118, 255, .14);--ff-color-magnetic-line:var(--ff-blue-500);--ff-color-magnetic-rect-fill:rgba(65, 118, 255, .08);--ff-color-magnetic-rect-border:rgba(65, 118, 255, .24);--ff-radius-node:var(--ff-radius-4);--ff-radius-group:var(--ff-radius-4);--ff-radius-control:var(--ff-radius-4);--ff-radius-socket-square:var(--ff-radius-6);--ff-radius-pill:var(--ff-radius-pill);--ff-font-sans:var(--ff-font-family-sans);--ff-font-mono:var(--ff-font-family-mono);--ff-font-size-body:var(--ff-font-size-sm);--ff-font-size-label:var(--ff-font-size-xs);--ff-shadow-surface:var(--ff-shadow-1);--ff-shadow-floating:var(--ff-shadow-2)}:root{--ff-flow-background-color:var(--ff-color-surface-page);--ff-flow-text-color:var(--ff-color-text-primary);--ff-flow-font-family:var(--ff-font-sans);--ff-flow-font-size:var(--ff-font-size-body);--ff-canvas-background-color:var(--ff-color-surface-canvas);--ff-node-background-color:var(--ff-color-surface-card);--ff-node-background-color-inverse:var(--ff-color-text-primary);--ff-node-border-color:var(--ff-color-border-default);--ff-node-border-color-selected:var(--ff-color-border-accent);--ff-node-color:var(--ff-color-text-primary);--ff-node-border-radius:var(--ff-radius-node);--ff-node-shadow:var(--ff-shadow-surface);--ff-node-shadow-selected:var(--ff-shadow-floating);--ff-node-width:120px;--ff-node-min-height:56px;--ff-node-padding:24px;--ff-group-background-color:var(--ff-color-surface-group);--ff-group-background-color-active:var(--ff-color-surface-group-active);--ff-group-border-color:var(--ff-color-border-subtle);--ff-group-border-color-selected:var(--ff-color-border-accent);--ff-group-border-color-active:var(--ff-color-border-accent);--ff-group-color:var(--ff-color-text-secondary);--ff-group-border-radius:var(--ff-radius-group);--ff-group-min-width:180px;--ff-group-min-height:120px;--ff-group-padding:24px;--ff-grouping-drop-target-border-color:var(--ff-color-grouping-drop-target-border);--ff-grouping-drop-target-border-style:dashed;--ff-grouping-drop-target-border-width:1px;--ff-grouping-drop-target-border-color-active:var( --ff-color-grouping-drop-target-border-active );--ff-grouping-drop-target-border-style-active:dashed;--ff-grouping-drop-target-border-width-active:2px;--ff-resize-handle-size:8px;--ff-resize-handle-fill:var(--ff-color-accent);--ff-resize-handle-stroke:var(--ff-color-surface-card);--ff-resize-handle-ring:var(--ff-color-accent);--ff-resize-handle-radius:1px;--ff-resize-handle-fill-active:var(--ff-color-surface-card);--ff-rotate-handle-size:16px;--ff-rotate-handle-offset:40px;--ff-rotate-handle-background-color:var(--ff-color-surface-card);--ff-rotate-handle-border-color:var(--ff-color-border-strong);--ff-rotate-handle-guide-color:var(--ff-color-border-strong);--ff-connector-background-color:var(--ff-color-surface-card);--ff-connector-border-color:var(--ff-color-text-secondary);--ff-connector-connected-color:var(--ff-color-connector-connected);--ff-connector-accent-color:var(--ff-color-accent);--ff-connector-disabled-color:var(--ff-color-disabled-surface);--ff-connector-disabled-border-color:var(--ff-color-disabled-border);--ff-connector-size:14px;--ff-connector-border-width:2px;--ff-connector-input-radius:var(--ff-radius-4);--ff-connector-node-ring-color:var(--ff-canvas-background-color);--ff-outlet-background-color:var(--ff-color-surface-muted);--ff-outlet-border-color:var(--ff-color-border-default);--ff-outlet-color:var(--ff-color-accent);--ff-outlet-disabled-background-color:var(--ff-color-disabled-surface);--ff-outlet-disabled-border-color:var(--ff-color-disabled-border);--ff-outlet-disabled-color:var(--ff-color-disabled-text);--ff-outlet-border-radius:var(--ff-radius-pill);--ff-outlet-padding-y:6px;--ff-outlet-padding-x:12px;--ff-connection-color:var(--ff-color-connection);--ff-snap-connection-color:var(--ff-color-connection-muted);--ff-connection-hover-color:var(--ff-color-connection-hover);--ff-connection-selected-color:var(--ff-color-accent);--ff-connection-label-color:var(--ff-color-text-secondary);--ff-connection-content-color:var(--ff-node-color);--ff-connection-content-background-color:var(--ff-node-background-color);--ff-connection-content-border-color:var(--ff-node-border-color);--ff-connection-content-border-color-selected:var(--ff-connection-selected-color);--ff-connection-content-border-radius:var(--ff-node-border-radius);--ff-connection-content-font-size:13px;--ff-connection-content-padding-y:2px;--ff-connection-content-padding-x:8px;--ff-connection-width:2px;--ff-connection-hit-width:14px;--ff-connection-drag-handle-fill:var(--ff-color-surface-card);--ff-connection-drag-handle-stroke:var(--ff-color-accent);--ff-marker-color:var(--ff-connection-color);--ff-waypoint-fill:var(--ff-color-waypoint-fill);--ff-waypoint-stroke:var(--ff-color-waypoint-stroke);--ff-waypoint-candidate-fill:var(--ff-color-waypoint-candidate-fill);--ff-waypoint-candidate-stroke:var(--ff-color-waypoint-candidate-stroke);--ff-background-line-color:var(--ff-color-grid);--ff-background-dot-color:var(--ff-color-grid-strong);--ff-selection-area-color:var(--ff-color-selection-fill);--ff-selection-area-border-color:var(--ff-color-selection-stroke);--ff-minimap-background-color:var(--ff-color-minimap-surface);--ff-minimap-border-color:var(--ff-color-border-default);--ff-minimap-node-color:var(--ff-color-minimap-node);--ff-minimap-node-selected-color:var(--ff-color-accent);--ff-minimap-view-color:var(--ff-color-minimap-view);--ff-minimap-view-border-color:var(--ff-color-selection-stroke);--ff-minimap-border-radius:var(--ff-radius-node);--ff-minimap-shadow:var(--ff-shadow-floating);--ff-magnetic-line-color:var(--ff-color-magnetic-line);--ff-magnetic-rect-fill:var(--ff-color-magnetic-rect-fill);--ff-magnetic-rect-border-color:var(--ff-color-magnetic-rect-border);--ff-external-item-background-color:var(--ff-color-surface-card);--ff-external-item-border-color:var(--ff-color-border-default);--ff-external-item-color:var(--ff-color-text-primary);--ff-external-item-disabled-color:var(--ff-color-disabled-text);--ff-external-item-disabled-background-color:var(--ff-color-disabled-surface);--ff-external-item-border-radius:var(--ff-radius-node);--ff-external-item-shadow:var(--ff-shadow-surface);--ff-external-item-preview-shadow:var(--ff-shadow-floating);--ff-external-item-placeholder-background-color:var(--ff-color-surface-soft);--ff-external-item-placeholder-border-color:var(--ff-color-border-subtle)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}:root{--fa-family-brands:"Font Awesome 7 Brands";--fa-font-brands:normal 400 1em/1 var(--fa-family-brands)}:root{--fa-font-regular:normal 400 1em/1 var(--fa-family-classic)}:root{--fa-family-classic:"Font Awesome 7 Free";--fa-font-solid:normal 900 1em/1 var(--fa-family-classic);--fa-style-family-classic:var(--fa-family-classic)}:root{--sm-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;--sm-font-display-brand:"Geist", system-ui, sans-serif;--sm-radius-sm:3px;--sm-radius-md:4px;--sm-radius-lg:.5rem;--sm-radius-xl:.65rem;--sm-radius-pill:999px;--sm-violet-50:#F5F3FF;--sm-violet-100:#EDE9FE;--sm-violet-200:#DDD6FE;--sm-violet-300:#C4B5FD;--sm-violet-400:#A78BFA;--sm-violet-500:#8B5CF6;--sm-violet-600:#7C3AED;--sm-violet-700:#6D28D9;--sm-violet-800:#4C1D95;--sm-violet-900:#2E1065}html,body{margin:0;padding:0;height:100dvh;overflow:hidden;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:var(--sm-bg-page);color:var(--p-text-color)}*,*:before,*:after{box-sizing:border-box}*{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--p-text-color) 30%,transparent) transparent}*::-webkit-scrollbar{width:10px;height:10px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background-color:color-mix(in srgb,var(--p-text-color) 25%,transparent);border-radius:var(--sm-radius-pill);border:2px solid transparent;background-clip:padding-box}*::-webkit-scrollbar-thumb:hover{background-color:color-mix(in srgb,var(--p-text-color) 45%,transparent)}:root{--sm-bg-page:#f8fafc;--sm-bg-content:#ffffff;--sm-bg-hover:#f1f5f9;--sm-border:#e2e8f0;--sm-nav-active-bg:#eff6ff;--sm-edge-invokes:#b8843a;--sm-edge-invokes-active:#f59e0b;--sm-edge-references:#7daa90;--sm-edge-references-active:#10b981;--sm-edge-points:#8f7cb8;--sm-edge-points-active:#7c3aed;--sm-edge-mentions:#6fa2c0;--sm-edge-mentions-active:#0ea5e9;--sm-edge-neutral:#6b7280;--sm-link-in-bg:#e0e7ff;--sm-link-in-fg:#3730a3;--sm-link-out-bg:#fef3c7;--sm-link-out-fg:#92400e;--sm-severity-info:#1e3a8a;--sm-severity-success:#065f46;--sm-severity-warn:#ca8a04;--sm-severity-error:#991b1b;--sm-severity-info-bg:rgba(219, 234, 254, .35);--sm-severity-success-bg:rgba(209, 250, 229, .35);--sm-severity-warn-bg:rgba(254, 243, 199, .35);--sm-severity-error-bg:rgba(254, 226, 226, .35);--sm-stat-tokens-bg:rgba(59, 130, 246, .14);--sm-stat-bytes-bg:rgba(245, 158, 11, .16);--sm-hl-comment:#6e7781;--sm-hl-keyword:#cf222e;--sm-hl-string:#0a3069;--sm-hl-number:#0550ae;--sm-hl-title:#8250df;--sm-hl-attr:#0550ae;--sm-hl-built-in:#953800;--sm-hl-meta:#6e7781;--sm-hl-addition:#116329;--sm-hl-deletion:#82071e;--sm-accent-fg:#ffffff;--sm-shadow-topbar:0 1px 2px rgba(0, 0, 0, .03);--sm-shadow-eventlog:0 -4px 16px rgba(0, 0, 0, .08);--sm-shadow-floating:0 4px 14px rgba(0, 0, 0, .08);--sm-shadow-card:0 1px 2px rgba(0, 0, 0, .05);--sm-shadow-card-hover:0 3px 12px rgba(0, 0, 0, .12);--sm-shadow-panel:0 4px 24px rgba(0, 0, 0, .12)}</style><link rel="stylesheet" href="styles-VEGETYWD.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-VEGETYWD.css"></noscript></head>
|
|
37
37
|
<body>
|
|
38
38
|
<sm-root></sm-root>
|
|
39
|
-
<link rel="modulepreload" href="chunk-
|
|
39
|
+
<link rel="modulepreload" href="chunk-SQCXHF3J.js"><link rel="modulepreload" href="chunk-KHDWXSGR.js"><link rel="modulepreload" href="chunk-GUGB4JY5.js"><link rel="modulepreload" href="chunk-RSPEJBPT.js"><link rel="modulepreload" href="chunk-Z7SOKILO.js"><link rel="modulepreload" href="chunk-CG25RHMO.js"><link rel="modulepreload" href="chunk-JKPG5PO7.js"><link rel="modulepreload" href="chunk-7WMT2LX4.js"><link rel="modulepreload" href="chunk-TQBXK5JN.js"><link rel="modulepreload" href="chunk-EJVWTBMV.js"><script src="main-K4O6LCIJ.js" type="module"></script></body>
|
|
40
40
|
</html>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{E as ht,F as fe,G as ft,H as vt,I as bt,J as ne,K as yt,f as pt,j as mt,k as gt,u as V,v as G,w as ut,x as Z}from"./chunk-SQCXHF3J.js";import{b as qe,f as et,g as tt,h as ae,i as nt,j as it,k as rt}from"./chunk-KHDWXSGR.js";import{a as M,b as me,c as Ct,d as kt}from"./chunk-GUGB4JY5.js";import{a as ct,c as he,d as h,f as F,g as dt,h as N,i as U,j as J,l as _t}from"./chunk-RSPEJBPT.js";import{a as He,b as We,c as Qe,d as Y,e as Ye,f as Ge,g as Ze}from"./chunk-Z7SOKILO.js";import{b as de,c as pe}from"./chunk-CG25RHMO.js";import{$ as ot,aa as st,ga as at,oa as lt,wa as le,xa as ce}from"./chunk-JKPG5PO7.js";import{r as Xe}from"./chunk-7WMT2LX4.js";import"./chunk-TQBXK5JN.js";import{$ as Ee,$b as g,Ab as B,Bb as Q,Cb as te,Dc as Ke,H as Pe,Ha as re,Ib as I,Ja as l,K as A,Kb as R,Lb as oe,Mb as f,N as Se,Na as Ne,O as W,P as s,Q as Me,Qa as $e,Ta as Le,V as E,W as O,Xb as Ue,Yb as Ve,Z as Re,Za as D,_ as Te,_b as Je,ac as _,bc as S,ca as Oe,da as Ie,db as je,f as we,fa as Ae,ga as q,gb as ee,ha as De,ja as ie,jb as ze,kb as Be,m as H,nb as C,qb as x,ra as Fe,rb as w,wb as b,wc as m,xb as c,xc as se,yb as p,zb as P}from"./chunk-EJVWTBMV.js";import{a as ke,b as xe}from"./chunk-ZRJ5ZCFR.js";var Gt="@",Zt=(()=>{class n{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=null;injector=s(Re);loadingSchedulerFn=s(qt,{optional:!0});_engine;constructor(e,r,i,o,a){this.doc=e,this.delegate=r,this.zone=i,this.animationType=o,this.moduleImpl=a}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-6FGV5O5J.js").then(i=>i),r;return this.loadingSchedulerFn?r=this.loadingSchedulerFn(e):r=e(),r.catch(i=>{throw new Pe(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:o})=>{this._engine=i(this.animationType,this.doc);let a=new o(this.delegate,this._engine,this.zone);return this.delegate=a,a})}createRenderer(e,r){let i=this.delegate.createRenderer(e,r);if(i.\u0275type===0)return i;typeof i.throwOnSyntheticProps=="boolean"&&(i.throwOnSyntheticProps=!1);let o=new ve(i);return r?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(a=>{let u=a.createRenderer(e,r);o.use(u),this.scheduler??=this.injector.get(De,null,{optional:!0}),this.scheduler?.notify(10)}).catch(a=>{o.use(i)}),o}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}componentReplaced(e){this._engine?.flush(),this.delegate.componentReplaced?.(e)}static \u0275fac=function(r){Le()};static \u0275prov=A({token:n,factory:n.\u0275fac})}return n})(),ve=class{delegate;replay=[];\u0275type=1;constructor(t){this.delegate=t}use(t){if(this.delegate=t,this.replay!==null){for(let e of this.replay)e(t);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}get destroyNode(){return this.delegate.destroyNode}appendChild(t,e){this.delegate.appendChild(t,e)}insertBefore(t,e,r,i){this.delegate.insertBefore(t,e,r,i)}removeChild(t,e,r,i){this.delegate.removeChild(t,e,r,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,r,i){this.delegate.setAttribute(t,e,r,i)}removeAttribute(t,e,r){this.delegate.removeAttribute(t,e,r)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,r,i){this.delegate.setStyle(t,e,r,i)}removeStyle(t,e,r){this.delegate.removeStyle(t,e,r)}setProperty(t,e,r){this.shouldReplay(e)&&this.replay.push(i=>i.setProperty(t,e,r)),this.delegate.setProperty(t,e,r)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,r,i){return this.shouldReplay(e)&&this.replay.push(o=>o.listen(t,e,r,i)),this.delegate.listen(t,e,r,i)}shouldReplay(t){return this.replay!==null&&t.startsWith(Gt)}},qt=new Se("");function xt(n="animations"){return Ne("NgAsyncAnimations"),Me([{provide:$e,useFactory:()=>new Zt(s(Te),s(He),s(Oe),n)},{provide:Fe,useValue:n==="noop"?"NoopAnimations":"BrowserAnimations"}])}var be="skill-map",j={brand:be,beta:"BETA - do not use in production",betaDemo:"BETA",devChip:"dev",devChipTooltip:"BFF launched from a local checkout (not the npm install).",devChipA11y:"Development build: BFF is running from a local checkout.",lensChipTooltip:n=>`Active lens: ${n}. The map reflects how ${n} interprets your files.`,lensChipA11y:n=>`Active provider lens: ${n}.`,nav:{searchLabel:"Search nodes by name or tag",searchTooltip:"Search",searchPlaceholder:"Search by name or tag...",searchAriaLabel:"Search nodes by name or tag",searchClearLabel:"Clear search"},actions:{},badge:{nodes:"nodes",mapInfo:(n,t)=>{let e=`Run scan
|
|
2
|
+
${n.toLocaleString()} nodes \xB7 ${t.raw.toLocaleString()} links`;if(t.raw===t.drawn)return e;let r=[],i=t.brokenSource+t.brokenTarget;return i>0&&r.push(`${i} broken`),t.selfLoops>0&&r.push(`${t.selfLoops} self-loop${t.selfLoops===1?"":"s"}`),t.duplicates>0&&r.push(`${t.duplicates} duplicate${t.duplicates===1?"":"s"}`),`${e}
|
|
3
|
+
${t.drawn.toLocaleString()} drawn (${r.join(", ")})`},mapInfoA11y:(n,t)=>`Map contains ${n} nodes and ${t.raw} links; ${t.drawn} drawn on the canvas`},a11y:{viewSwitcher:"View switcher"},viewportWarning:{title:"Looks like you're on a small screen",subtitle:"skill-map is built for desktop",body:"The map and inspector need room to breathe. Pop this open on a screen at least 768px wide. See you there."},documentTitle:(n,t)=>{let e=n?`${n} - ${be}`:be;return t?`${e} v${t}`:e}};var wt=[{path:"",pathMatch:"full",loadComponent:()=>import("./chunk-EVNCL7FV.js").then(n=>n.WorkspaceView),title:j.brand},{path:"intentional-fail",loadComponent:()=>import("./chunk-HLALESGR.js").then(n=>n.IntentionalFail)},{path:"**",redirectTo:""}];var z={errors:{unknownMode:n=>`SKILL_MAP_MODE: unknown value "${n}"`,restPrefix:n=>`BFF error [${n}]: `,malformedResponse:"BFF returned a malformed response",demoFetchFailed:(n,t)=>`Demo bundle fetch failed for "${n}": ${t}`,demoParseFailed:(n,t)=>`Demo bundle parse failed for "${n}": ${t}`,graphFormatNotInDemo:n=>`Graph format "${n}" is not bundled in demo mode (only "ascii").`}};function ge(n){let t=new TextEncoder().encode(n),e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}var d="/api",Pt=(()=>{class n{http;ws;kindRegistry;providerRegistry;contributionsRegistry;constructor(e,r,i,o,a){this.http=e??s(Y),this.ws=r??s(N),this.kindRegistry=i??s(V),this.contributionsRegistry=o??s(Z),this.providerRegistry=a??s(J)}async health(){return this.getJson(`${d}/health`)}async loadScan(){let[e]=await Promise.all([this.getJson(`${d}/scan`),this.listNodes({limit:0}).catch(()=>null)]);return e}async loadScanMeta(){return this.getJson(`${d}/scan?meta=1`)}async loadFolders(){let e=await this.getJson(`${d}/folders`);return this.ingestRegistry(e.kindRegistry),this.ingestContributionsRegistry(e.contributionsRegistry),this.ingestProviderRegistry(e.providerRegistry),e.items}async loadBranch(e=[],r){let i=new URLSearchParams;for(let a of e)a&&i.append("path",a);r!==void 0&&i.set("limit",String(r));let o=i.toString();return this.getJson(`${d}/branch${o?`?${o}`:""}`)}async runScan(){return this.patchJson(`${d}/scan`,{},"POST")}async listNodes(e={}){let r=en(e),i=await this.getJson(`${d}/nodes${r}`);return this.ingestRegistry(i.kindRegistry),this.ingestContributionsRegistry(i.contributionsRegistry),this.ingestProviderRegistry(i.providerRegistry),i}async getNode(e,r={}){let i=ge(e),o=r.includeBody?"?include=body":"";try{let a=await this.getJson(`${d}/nodes/${i}${o}`);return this.ingestRegistry(a.kindRegistry),this.ingestContributionsRegistry(a.contributionsRegistry),this.ingestProviderRegistry(a.providerRegistry),a}catch(a){if(a instanceof h&&a.code==="not-found")return null;throw a}}async listLinks(e={}){let r=tn(e),i=await this.getJson(`${d}/links${r}`);return this.ingestRegistry(i.kindRegistry),this.ingestContributionsRegistry(i.contributionsRegistry),this.ingestProviderRegistry(i.providerRegistry),i}async listIssues(e={}){let r=nn(e),i=await this.getJson(`${d}/issues${r}`);return this.ingestRegistry(i.kindRegistry),this.ingestContributionsRegistry(i.contributionsRegistry),this.ingestProviderRegistry(i.providerRegistry),i}async loadGraph(e="ascii"){let r=`${d}/graph?format=${encodeURIComponent(e)}`;try{return await H(this.http.get(r,{responseType:"text"}))}catch(i){throw this.translateError(i)}}async loadConfig(){let e=await this.getJson(`${d}/config`);return this.ingestRegistry(e.kindRegistry),this.ingestContributionsRegistry(e.contributionsRegistry),this.ingestProviderRegistry(e.providerRegistry),e.value}async listPlugins(){let e=await this.getJson(`${d}/plugins`);return this.ingestRegistry(e.kindRegistry),this.ingestContributionsRegistry(e.contributionsRegistry),this.ingestProviderRegistry(e.providerRegistry),e}async setPluginEnabled(e,r){let i=await this.patchJson(`${d}/plugins/${encodeURIComponent(e)}`,{enabled:r});return this.ingestRegistry(i.kindRegistry),this.ingestContributionsRegistry(i.contributionsRegistry),this.ingestProviderRegistry(i.providerRegistry),i}async setPluginExtensionEnabled(e,r,i){let o=await this.patchJson(`${d}/plugins/${encodeURIComponent(e)}/extensions/${encodeURIComponent(r)}`,{enabled:i});return this.ingestRegistry(o.kindRegistry),this.ingestContributionsRegistry(o.contributionsRegistry),this.ingestProviderRegistry(o.providerRegistry),o}async setPluginTrusted(e,r){let i=await this.patchJson(`${d}/plugins/${encodeURIComponent(e)}/trust`,{trusted:r});return this.ingestRegistry(i.kindRegistry),this.ingestContributionsRegistry(i.contributionsRegistry),this.ingestProviderRegistry(i.providerRegistry),i}async applyPluginChanges(e){let r=await this.patchJson(`${d}/plugins`,{changes:e});return this.ingestRegistry(r.kindRegistry),this.ingestContributionsRegistry(r.contributionsRegistry),this.ingestProviderRegistry(r.providerRegistry),r}async getPreferences(){return await this.getJson(`${d}/preferences`)}async setPreferences(e){return await this.patchJson(`${d}/preferences`,e)}async getProjectPreferences(){return await this.getJson(`${d}/project-preferences`)}async setProjectPreferences(e){return await this.patchJson(`${d}/project-preferences`,e)}async getProjectIgnore(){return await this.getJson(`${d}/project-ignore`)}async setProjectIgnore(e){return await this.patchJson(`${d}/project-ignore`,e)}async getActiveProvider(){return await this.getJson(`${d}/active-provider`)}async setActiveProvider(e){return await this.patchJson(`${d}/active-provider`,{activeProvider:e})}async setFavorite(e){let r=ge(e);try{await H(this.http.put(`${d}/favorites/${r}`,null))}catch(i){throw this.translateError(i)}}async unsetFavorite(e){let r=ge(e);try{await H(this.http.delete(`${d}/favorites/${r}`))}catch(i){throw this.translateError(i)}}async bumpSidecar(e,r={}){let i={nodePath:e};return r.force!==void 0&&(i.force=r.force),r.confirm!==void 0&&(i.confirm=r.confirm),this.patchJson(`${d}/sidecar/bump`,i,"POST")}async dispatchAction(e,r,i={}){let o=e.split("/").map(encodeURIComponent).join("/"),a={nodePath:r};return i.input!==void 0&&(a.input=i.input),i.confirm!==void 0&&(a.confirm=i.confirm),i.always!==void 0&&(a.always=i.always),this.patchJson(`${d}/actions/${o}`,a,"POST")}async getUpdateStatus(){return this.getJson(`${d}/update-status`)}async getRegisteredAnnotations(){return(await this.getJson(`${d}/annotations/registered`)).items}ingestRegistry(e){e&&this.kindRegistry.ingest(e)}ingestProviderRegistry(e){e&&this.providerRegistry.ingest(e)}ingestContributionsRegistry(e){this.contributionsRegistry.setRegistry(e)}async lookupContribution(e,r,i){let o=new URLSearchParams({path:i});try{return(await this.getJson(`${d}/contributions/${encodeURIComponent(e)}/${encodeURIComponent(r)}?${o.toString()}`)).items[0]??null}catch{return null}}events(){return this.ws.events$}async getJson(e){try{return await H(this.http.get(e))}catch(r){throw this.translateError(r)}}async patchJson(e,r,i="PATCH"){try{let o=i==="POST"?this.http.post(e,r):this.http.patch(e,r);return await H(o)}catch(o){throw this.translateError(o)}}translateError(e){if(e instanceof h)return e;if(e instanceof Qe){let i=rn(e.error);return i?new h(i.error.code,i.error.message,i.error.details):new h("internal",e.message||z.errors.malformedResponse)}let r=e instanceof Error?e.message:String(e);return new h("internal",r)}static \u0275fac=function(r){return new(r||n)(W(Y),W(N),W(V),W(Z),W(J))};static \u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function en(n){let t=new URLSearchParams;n.kind&&n.kind.length>0&&t.set("kind",n.kind.join(",")),n.hasIssues!==void 0&&t.set("hasIssues",String(n.hasIssues)),n.path&&t.set("path",n.path),n.limit!==void 0&&t.set("limit",String(n.limit)),n.offset!==void 0&&t.set("offset",String(n.offset));let e=t.toString();return e?`?${e}`:""}function tn(n){let t=new URLSearchParams;n.kind&&n.kind.length>0&&t.set("kind",n.kind.join(",")),n.from&&t.set("from",n.from),n.to&&t.set("to",n.to);let e=t.toString();return e?`?${e}`:""}function nn(n){let t=new URLSearchParams;n.severity&&t.set("severity",n.severity),n.analyzerId&&t.set("analyzerId",n.analyzerId),n.node&&t.set("node",n.node),n.nodes&&n.nodes.length>0&&t.set("nodes",n.nodes.join(","));let e=t.toString();return e?`?${e}`:""}function rn(n){if(typeof n!="object"||n===null)return null;let t=n;if(t.ok!==!1)return null;let e=t.error;if(typeof e!="object"||e===null)return null;let r=e;return typeof r.code!="string"||typeof r.message!="string"?null:{ok:!1,error:{code:r.code,message:r.message,details:r.details}}}var on="data.json",sn="data.meta.json",ue=class{fetchImpl;metaPromise=null;dataPromise=null;kindRegistry;providerRegistry;contributionsRegistry;constructor(t=globalThis.fetch.bind(globalThis),e,r,i){this.fetchImpl=t,this.kindRegistry=e??s(V),this.providerRegistry=r??s(J),this.contributionsRegistry=i??s(Z)}async health(){return(await this.loadMeta()).health}async loadScan(){let[t,e]=await Promise.all([this.loadData(),this.loadMeta()]);return this.kindRegistry.ingest(e.nodes.kindRegistry),this.providerRegistry.ingest(e.nodes.providerRegistry),this.primeContributionsRegistry(e),t}async loadScanMeta(){let t=await this.loadScan();return xe(ke({},t),{nodes:[],links:[],issues:[]})}async loadFolders(){let t=await this.loadScan(),e=new Map,r=new Map;for(let i of t.issues){let o=i.severity==="error"?e:i.severity==="warn"?r:null;if(o)for(let a of i.nodeIds)o.set(a,(o.get(a)??0)+1)}return t.nodes.map(i=>({path:i.path,kind:i.kind,linksInCount:i.linksInCount,linksOutCount:i.linksOutCount,tokensTotal:i.tokens?.total??null,modifiedAtMs:i.modifiedAtMs??null,errorCount:e.get(i.path)??0,warnCount:r.get(i.path)??0,sidecarStatus:i.sidecar?.status??null}))}async loadBranch(t=[],e){let r=await this.loadScan(),i=t.filter(y=>y!==""),o=y=>i.length===0||i.some(X=>y===X||y.startsWith(`${X}/`)),a=r.nodes.filter(y=>o(y.path)).sort((y,X)=>y.path.localeCompare(X.path)),u=a.length,k=e!==void 0&&e>0?e:u,v=a.slice(0,k),T=new Set(v.map(y=>y.path)),$=r.links.filter(y=>T.has(y.source)&&T.has(y.resolvedTarget??y.target)),Yt=r.issues.filter(y=>y.nodeIds.some(X=>T.has(X)));return{schemaVersion:"1",kind:"branch",branch:{paths:[...i],total:u,rendered:v.length,truncated:u>k,cap:k},nodes:v,links:$,issues:Yt}}primeContributionsRegistry(t){this.contributionsRegistry.setRegistry(t.contributionsRegistry)}async listNodes(t={}){let e=await this.loadMeta();if(an(t))return this.kindRegistry.ingest(e.nodes.kindRegistry),this.providerRegistry.ingest(e.nodes.providerRegistry),this.primeContributionsRegistry(e),e.nodes;let r=await this.loadData(),i=r.issues,o=r.nodes;if(t.kind&&t.kind.length>0){let T=new Set(t.kind);o=o.filter($=>T.has($.kind))}if(t.path){let T=dn(t.path);o=o.filter($=>T.test($.path))}if(t.hasIssues===!0){let T=St(i);o=o.filter($=>T.has($.path))}else if(t.hasIssues===!1){let T=St(i);o=o.filter($=>!T.has($.path))}let a=o.length,u=t.offset??0,k=t.limit??1e3,v=o.slice(u,u+k);return this.kindRegistry.ingest(e.nodes.kindRegistry),this.providerRegistry.ingest(e.nodes.providerRegistry),this.primeContributionsRegistry(e),{schemaVersion:"1",kind:"nodes",items:v,filters:{kind:t.kind??null,hasIssues:t.hasIssues??null,path:t.path?[t.path]:null},counts:{total:a,returned:v.length,page:{offset:u,limit:k}},kindRegistry:e.nodes.kindRegistry,providerRegistry:e.nodes.providerRegistry}}async getNode(t,e={}){let[r,i]=await Promise.all([this.loadData(),this.loadMeta()]),o=r.nodes.find(v=>v.path===t);if(!o)return null;let a=r.links.filter(v=>v.target===t),u=r.links.filter(v=>v.source===t),k=r.issues.filter(v=>v.nodeIds.includes(t));return this.kindRegistry.ingest(i.nodes.kindRegistry),this.providerRegistry.ingest(i.nodes.providerRegistry),this.primeContributionsRegistry(i),{schemaVersion:"1",kind:"node",item:o,links:{incoming:a,outgoing:u},issues:k,kindRegistry:i.nodes.kindRegistry,providerRegistry:i.nodes.providerRegistry}}async listLinks(t={}){let e=await this.loadMeta();if(ln(t))return this.kindRegistry.ingest(e.links.kindRegistry),this.providerRegistry.ingest(e.links.providerRegistry),this.primeContributionsRegistry(e),e.links;let i=(await this.loadData()).links;if(t.kind&&t.kind.length>0){let o=new Set(t.kind);i=i.filter(a=>o.has(a.kind))}return t.from&&(i=i.filter(o=>o.source===t.from)),t.to&&(i=i.filter(o=>o.target===t.to)),this.kindRegistry.ingest(e.links.kindRegistry),this.providerRegistry.ingest(e.links.providerRegistry),this.primeContributionsRegistry(e),{schemaVersion:"1",kind:"links",items:i,filters:{kind:t.kind??null,from:t.from??null,to:t.to??null},counts:{total:i.length,returned:i.length},kindRegistry:e.links.kindRegistry,providerRegistry:e.links.providerRegistry}}async listIssues(t={}){let e=await this.loadMeta();if(cn(t))return this.kindRegistry.ingest(e.issues.kindRegistry),this.providerRegistry.ingest(e.issues.providerRegistry),this.primeContributionsRegistry(e),e.issues;let i=(await this.loadData()).issues;if(t.severity&&(i=i.filter(o=>o.severity===t.severity)),t.analyzerId&&(i=i.filter(o=>o.analyzerId===t.analyzerId)),t.node&&(i=i.filter(o=>o.nodeIds.includes(t.node))),t.nodes&&t.nodes.length>0){let o=new Set(t.nodes);i=i.filter(a=>a.nodeIds.some(u=>o.has(u)))}return this.kindRegistry.ingest(e.issues.kindRegistry),this.providerRegistry.ingest(e.issues.providerRegistry),this.primeContributionsRegistry(e),{schemaVersion:"1",kind:"issues",items:i,filters:{severity:t.severity??null,analyzerId:t.analyzerId??null,node:t.node??null,nodes:t.nodes&&t.nodes.length>0?[...t.nodes]:null},counts:{total:i.length,returned:i.length},kindRegistry:e.issues.kindRegistry,providerRegistry:e.issues.providerRegistry}}async loadGraph(t="ascii"){if(t!=="ascii")throw new h("bad-query",z.errors.graphFormatNotInDemo(t));return(await this.loadMeta()).graph.ascii}async loadConfig(){let t=await this.loadMeta();return this.kindRegistry.ingest(t.config.kindRegistry),this.providerRegistry.ingest(t.config.providerRegistry),this.primeContributionsRegistry(t),t.config.value}async listPlugins(){let t=await this.loadMeta();return this.kindRegistry.ingest(t.plugins.kindRegistry),this.providerRegistry.ingest(t.plugins.providerRegistry),this.primeContributionsRegistry(t),t.plugins}async setFavorite(t){throw new h("demo-readonly","Favorites are not available in demo mode (static bundle is immutable).")}async unsetFavorite(t){throw new h("demo-readonly","Favorites are not available in demo mode (static bundle is immutable).")}async setPluginEnabled(t,e){throw new h("demo-readonly","Plugin toggles are not available in demo mode (static bundle is immutable).")}async setPluginExtensionEnabled(t,e,r){throw new h("demo-readonly","Plugin toggles are not available in demo mode (static bundle is immutable).")}async applyPluginChanges(t){throw new h("demo-readonly","Plugin toggles are not available in demo mode (static bundle is immutable).")}async setPluginTrusted(t,e){throw new h("demo-readonly","Plugin trust is not available in demo mode (static bundle is immutable).")}async runScan(){throw new h("demo-readonly","Manual scan is not available in demo mode (static bundle is immutable).")}async getPreferences(){return{updateCheck:{enabled:!0},telemetry:{errorsEnabled:!1,usageCliEnabled:!1,usageUiEnabled:!1,anonymousId:null,environment:"prod"}}}async setPreferences(t){throw new h("demo-readonly","Preference toggles are not available in demo mode (static bundle is immutable).")}async getProjectPreferences(){return{allowSidecarWriters:!0,scan:{referencePaths:[]},pluginTrust:{projectEnabled:!1}}}async setProjectPreferences(t){throw new h("demo-readonly","Project preferences are not available in demo mode (static bundle is immutable).")}async getProjectIgnore(){return{patterns:[]}}async setProjectIgnore(t){throw new h("demo-readonly","Ignore patterns are not available in demo mode (static bundle is immutable).")}async getActiveProvider(){return(await this.loadMeta()).activeProvider??{activeProvider:"markdown",detected:[],source:"default",selectable:[]}}async setActiveProvider(t){throw new h("demo-readonly","Active provider lens is not available in demo mode (static bundle is immutable).")}async lookupContribution(){return null}async bumpSidecar(t,e={}){throw new h("demo-readonly","Sidecar bump is not available in demo mode (static bundle is immutable).")}async dispatchAction(t,e,r={}){throw new h("demo-readonly","Actions are not available in demo mode (static bundle is immutable).")}async getUpdateStatus(){return{current:(await this.loadMeta()).health.implVersion,latest:null,isOutdated:!1,checkedAt:null,shownAt:null}}async getRegisteredAnnotations(){return[]}events(){return we}loadMeta(){return this.metaPromise||(this.metaPromise=this.fetchJson(sn)),this.metaPromise}loadData(){return this.dataPromise||(this.dataPromise=this.fetchJson(on)),this.dataPromise}async fetchJson(t){let e;try{e=await this.fetchImpl(t)}catch(r){let i=r instanceof Error?r.message:String(r);throw new h("internal",z.errors.demoFetchFailed(t,i))}if(!e.ok)throw new h("internal",z.errors.demoFetchFailed(t,`HTTP ${e.status}`));try{return await e.json()}catch(r){let i=r instanceof Error?r.message:String(r);throw new h("internal",z.errors.demoParseFailed(t,i))}}};function an(n){return!(n.kind&&n.kind.length>0||n.hasIssues!==void 0||n.path||n.offset!==void 0&&n.offset!==0||n.limit!==void 0)}function ln(n){return!(n.kind&&n.kind.length>0||n.from||n.to)}function cn(n){return!(n.severity||n.analyzerId||n.node||n.nodes&&n.nodes.length>0)}function St(n){let t=new Set;for(let e of n)for(let r of e.nodeIds)t.add(r);return t}function dn(n){let e=n.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".");return new RegExp(`^${e}$`)}function Mt(){let n=s(F);if(n==="live")return new Pt(s(Y),s(N));if(n==="demo")return new ue;let t=n;throw new Error(z.errors.unknownMode(String(t)))}var Rt="search",Tt="kinds",Et="linkKinds",Ot="favoritesOnly",It="severities",pn=["error","warn"],At=(()=>{class n{filters=s(gt);router=s(nt);activatedRoute=s(et);kindRegistry=s(V);destroyRef=s(Ee);suppressUrlReadback=!1;constructor(){this.applyUrlToFilters(this.currentParams()),this.router.events.pipe(ct(this.destroyRef)).subscribe(e=>{if(e instanceof qe){if(this.suppressUrlReadback)return;this.applyUrlToFilters(this.currentParams())}}),ie(()=>{let e=this.computeQueryParams();this.writeQueryParams(e)})}currentParams(){let e=this.router.parseUrl(this.router.url),r=new URLSearchParams;for(let[i,o]of Object.entries(e.queryParams))Array.isArray(o)?r.set(i,o.join(",")):o!=null&&r.set(i,String(o));return this.activatedRoute,r}applyUrlToFilters(e){let r=e.get(Rt)??"";r!==this.filters.searchText()&&this.filters.setSearchText(r);let i=mn(e.get(Tt),this.kindRegistry.kinds().map(v=>v.name));_e(i,this.filters.selectedKinds())||this.filters.setKinds(i);let o=e.get(Ot)==="true";o!==this.filters.favoritesOnly()&&this.filters.setFavoritesOnly(o);let a=gn(e.get(Et));_e(a,this.filters.selectedLinkKinds())||this.filters.setLinkKinds(a);let u=un(e.get(It)),k=[];this.filters.severityErrorActive()&&k.push("error"),this.filters.severityWarnActive()&&k.push("warn"),_e(u,k)||this.filters.setSeverityFilters(u)}computeQueryParams(){let e=this.filters.searchText().trim(),r=this.filters.selectedKinds(),i=this.filters.selectedLinkKinds(),o=this.filters.favoritesOnly(),a=[];return this.filters.severityErrorActive()&&a.push("error"),this.filters.severityWarnActive()&&a.push("warn"),{[Rt]:e.length>0?e:null,[Tt]:r.length>0?r.join(","):null,[Et]:i.length>0?i.join(","):null,[Ot]:o?"true":null,[It]:a.length>0?a.join(","):null}}writeQueryParams(e){let r=this.currentParams(),i=new Map(Object.entries(e)),o=!1;for(let[a,u]of i)if((r.get(a)??null)!==u){o=!0;break}o&&(this.suppressUrlReadback=!0,this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:e,queryParamsHandling:"merge",replaceUrl:!0}).finally(()=>{setTimeout(()=>{this.suppressUrlReadback=!1},0)}))}static \u0275fac=function(r){return new(r||n)};static \u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function mn(n,t){if(!n)return[];let e=new Set(t);return n.split(",").map(r=>r.trim()).filter(r=>e.has(r))}function gn(n){if(!n)return[];let t=new Set(mt);return n.split(",").map(e=>e.trim()).filter(e=>t.has(e))}function un(n){if(!n)return[];let t=new Set(pn);return n.split(",").map(e=>e.trim()).filter(e=>t.has(e))}function _e(n,t){if(n.length!==t.length)return!1;for(let e=0;e<n.length;e++)if(n[e]!==t[e])return!1;return!0}var Ft=(()=>{class n extends ae{title=s(Ze);projectInfo=s(G);constructor(){super(),ie(()=>{let e=Dt(this.projectInfo.cwd()),r=this.projectInfo.implVersion();this.title.setTitle(j.documentTitle(e,r))})}updateTitle(e){let r=Dt(this.projectInfo.cwd()),i=this.projectInfo.implVersion();this.title.setTitle(j.documentTitle(r,i))}static \u0275fac=function(r){return new(r||n)};static \u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Dt(n){if(!n)return null;let t=n.replace(/[\\/]+$/,"");if(!t||t===".")return null;let e=Math.max(t.lastIndexOf("/"),t.lastIndexOf("\\"));return(e>=0?t.slice(e+1):t)||null}var ye=!1,Ce=null;async function Nt(n){if(ye||fe===""||!n.consentEnabled)return;let t=await import("./chunk-3ANNEMV4.js");t.init({dsn:fe,release:n.release??void 0,environment:n.environment,integrations:e=>hn(t.breadcrumbsIntegration,e),tracesSampleRate:0,sendDefaultPii:!1,allowUrls:[/^https?:\/\/(localhost|127\.0\.0\.1)(:\d+)?\//],beforeSend:e=>ft(e)}),Ce=t,ye=!0}function $t(n){!ye||Ce===null||Ce.captureException(n)}function hn(n,t){return t.filter(e=>e.name!=="BrowserSession").map(e=>e.name==="Breadcrumbs"?n({console:!1,fetch:!1,xhr:!1,dom:!1}):e)}var Lt=(()=>{class n{handleError(e){console.error(e),$t(e)}static \u0275fac=function(r){return new(r||n)};static \u0275prov=A({token:n,factory:n.\u0275fac})}return n})();function fn(...n){for(let t of n)Promise.resolve(t.load())}var jt={providers:[Ae(),{provide:Ie,useClass:Lt},it(wt,rt()),{provide:ae,useClass:Ft},Ye(Ge()),xt(),st({}),ee(async()=>{let n=s(ot),[{default:t},{definePreset:e}]=await Promise.all([import("./chunk-OGEE252A.js"),import("./chunk-3ZAHOYQ7.js")]),r=e(t,{semantic:{primary:{50:"#F5F3FF",100:"#EDE9FE",200:"#DDD6FE",300:"#C4B5FD",400:"#A78BFA",500:"#8B5CF6",600:"#7C3AED",700:"#6D28D9",800:"#4C1D95",900:"#2E1065",950:"#1E0A4D"}}});n.setThemeConfig({theme:{preset:r,options:{darkModeSelector:".app-dark"}}})}),{provide:F,useFactory:dt},{provide:he,useFactory:Mt},ee(async()=>{let n=s(he),t=s(ne);try{let[e,r]=await Promise.all([n.getPreferences(),n.health()]);await Promise.all([Nt({consentEnabled:e.telemetry.errorsEnabled,release:r.implVersion?`skill-map-cli@${r.implVersion}`:null,environment:e.telemetry.environment}),vt({consentEnabled:e.telemetry.usageUiEnabled,distinctId:e.telemetry.anonymousId})]),bt({environment:e.telemetry.environment}),t.syncTheme()}catch{}}),ee(()=>{fn(s(U),s(me),s(G))}),ee(()=>{s(At),s(ut),s(ne)})]};var K={toggleToAuto:"Switch to auto theme (follow system)",toggleToLight:"Switch to light theme",toggleToDark:"Switch to dark theme",currentAuto:"Auto theme (follows system)",currentLight:"Light theme",currentDark:"Dark theme"};var zt={body:"You are viewing a static demo of skill-map's UI. Install it:",installCommand:"npm i -g @skill-map/cli",homeCta:"\u2190 Back to skill-map.ai",homeHref:"/",dismissAria:"Dismiss demo banner"};function bn(n,t){if(n&1){let e=I();c(0,"div",0),P(1,"span",1),c(2,"p",2),g(3),c(4,"code",3),g(5),p()(),c(6,"a",4),g(7),p(),c(8,"p-button",5),R("onClick",function(){E(e);let i=f();return O(i.dismiss())}),p()()}if(n&2){let e=f();l(3),S(" ",e.texts.body," "),l(2),_(e.texts.installCommand),l(),b("href",e.texts.homeHref,re),l(),_(e.texts.homeCta),l(),b("ariaLabel",e.texts.dismissAria)("text",!0)("rounded",!0)}}var Bt="sm.demoBannerDismissed",Ut=(()=>{class n{mode=s(F);texts=zt;dismissed=q(this.readDismissed());visible=m(()=>this.mode==="demo"&&!this.dismissed());dismiss(){this.dismissed.set(!0);try{globalThis.localStorage?.setItem(Bt,"1")}catch{}}readDismissed(){if(this.mode!=="demo")return!0;try{return globalThis.localStorage?.getItem(Bt)==="1"}catch{return!1}}static \u0275fac=function(r){return new(r||n)};static \u0275cmp=D({type:n,selectors:[["sm-demo-banner"]],decls:1,vars:1,consts:[["role","status","data-testid","demo-banner",1,"demo-banner"],["aria-hidden","true",1,"demo-banner__icon","fa-solid","fa-circle-info"],[1,"demo-banner__body"],["data-testid","demo-banner-install",1,"demo-banner__cmd"],["data-testid","demo-banner-home",1,"demo-banner__home",3,"href"],["icon","fa-solid fa-xmark","severity","secondary","size","small","data-testid","demo-banner-dismiss",3,"onClick","ariaLabel","text","rounded"]],template:function(r,i){r&1&&x(0,bn,9,7,"div",0),r&2&&w(i.visible()?0:-1)},dependencies:[pe,de],styles:["[_nghost-%COMP%]{display:block}.demo-banner[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;padding:.5rem 1rem;border-bottom:1px solid var(--p-content-border-color);background:var(--p-highlight-background);color:var(--p-text-color);font-size:.875rem}.demo-banner__icon[_ngcontent-%COMP%]{font-size:1.1rem;color:var(--p-primary-color)}.demo-banner__body[_ngcontent-%COMP%]{flex:1 1 auto;margin:0;line-height:1.4}.demo-banner__cmd[_ngcontent-%COMP%]{font-family:var(--sm-font-mono);background:var(--p-content-background);border:1px solid var(--p-content-border-color);border-radius:var(--sm-radius-md);padding:.05rem .4rem;font-size:.85em;margin-left:.25rem}.demo-banner__home[_ngcontent-%COMP%]{color:var(--p-primary-color);font-weight:500;text-decoration:none;white-space:nowrap}.demo-banner__home[_ngcontent-%COMP%]:hover, .demo-banner__home[_ngcontent-%COMP%]:focus-visible{text-decoration:underline}"],changeDetection:0})}return n})();var Vt={body:n=>`The scan hit its ceiling of ${n} ${n===1?"file":"files"}; some files were dropped from the corpus. Trim .skillmapignore or raise --max-scan.`,cta:"Edit .skillmapignore",ctaAria:"Open Settings to edit ignored patterns"};function _n(n,t){if(n&1){let e=I();B(0,"div",0),te(1,"span",1),B(2,"p",2),g(3),Q(),B(4,"button",3),oe("click",function(){E(e);let i=f();return O(i.onCta())}),g(5),Q()()}if(n&2){let e=f();l(3),S(" ",e.state().body," "),l(),C("aria-label",e.texts.ctaAria),l(),S(" ",e.texts.cta," ")}}var Jt=(()=>{class n{loader=s(U);texts=Vt;openSettings=se();state=m(()=>{let e=this.loader.scanMeta();if(!e||e.scanTruncated!==!0)return{visible:!1,body:""};let r=e.scanCeiling;return r===void 0?{visible:!1,body:""}:{visible:!0,body:this.texts.body(r)}});visible=m(()=>this.state().visible);onCta(){this.openSettings.emit()}static \u0275fac=function(r){return new(r||n)};static \u0275cmp=D({type:n,selectors:[["sm-oversized-banner"]],outputs:{openSettings:"openSettings"},decls:1,vars:1,consts:[["role","status","data-testid","oversized-banner",1,"oversized-banner"],["aria-hidden","true",1,"oversized-banner__icon","fa-solid","fa-triangle-exclamation"],["data-testid","oversized-banner-body",1,"oversized-banner__body"],["type","button","data-testid","oversized-banner-cta",1,"oversized-banner__cta",3,"click"]],template:function(r,i){r&1&&x(0,_n,6,3,"div",0),r&2&&w(i.visible()?0:-1)},styles:["[_nghost-%COMP%]{display:block}.oversized-banner[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;padding:.5rem 1rem;border-bottom:1px solid var(--p-content-border-color);font-size:.875rem;background:var(--sm-severity-warn-bg);color:var(--sm-severity-warn)}.oversized-banner__icon[_ngcontent-%COMP%]{font-size:1.1rem;color:var(--sm-severity-warn)}.oversized-banner__body[_ngcontent-%COMP%]{flex:1 1 auto;margin:0;line-height:1.4}.oversized-banner__cta[_ngcontent-%COMP%]{flex:0 0 auto;background:transparent;color:inherit;border:1px solid currentColor;padding:.25rem .75rem;border-radius:var(--p-border-radius);font:inherit;font-size:.8125rem;font-weight:500;cursor:pointer;transition:background .15s ease}.oversized-banner__cta[_ngcontent-%COMP%]:hover, .oversized-banner__cta[_ngcontent-%COMP%]:focus-visible{background:color-mix(in srgb,currentColor 12%,transparent)}.oversized-banner__cta[_ngcontent-%COMP%]:focus-visible{outline:2px solid currentColor;outline-offset:2px}"],changeDetection:0})}return n})();var Kt={headline:n=>`${n} ${n===1?"file":"files"} skipped, ${n===1?"it exceeds":"they exceed"} the max file size.`,more:"...",seeConsole:"See the full list in the console.",cta:"Open Project settings",ctaAria:"Open Settings to adjust the max file size or ignore patterns"};function Cn(n,t){if(n&1&&(c(0,"span",4),g(1),p()),n&2){let e=f(2);b("pTooltip",e.state().tooltip),l(),_(e.texts.more)}}function kn(n,t){if(n&1){let e=I();c(0,"div",0),P(1,"span",1),c(2,"p",2),g(3),c(4,"span",3),g(5),p(),x(6,Cn,2,2,"span",4),p(),c(7,"button",5),R("click",function(){E(e);let i=f();return O(i.onCta())}),g(8),p()()}if(n&2){let e=f();l(3),S(" ",e.texts.headline(e.state().count)," "),l(2),S(" ",e.state().first," "),l(),w(e.state().hasMore?6:-1),l(),C("aria-label",e.texts.ctaAria),l(),S(" ",e.texts.cta," ")}}var xn=5,Xt=(()=>{class n{loader=s(U);texts=Kt;openSettings=se();state=m(()=>{let e=this.loader.scanMeta(),r=e?.oversizedFiles??[],i=e?.stats?.filesOversized??r.length;if(i<=0)return{visible:!1,count:0,first:"",hasMore:!1,tooltip:""};let o=r[0]?this.describe(r[0]):"",a=i>1,u="";if(a){let k=r.slice(1);i-1>xn?u=this.texts.seeConsole:u=k.map(v=>this.describe(v)).join(`
|
|
4
|
+
`)}return{visible:!0,count:i,first:o,hasMore:a,tooltip:u}});visible=m(()=>this.state().visible);describe(e){return`${e.path.split("/").pop()??e.path} (${pt(e.bytes)})`}onCta(){this.openSettings.emit()}static \u0275fac=function(r){return new(r||n)};static \u0275cmp=D({type:n,selectors:[["sm-skipped-files-banner"]],outputs:{openSettings:"openSettings"},decls:1,vars:1,consts:[["role","status","data-testid","skipped-files-banner",1,"skipped-files-banner"],["aria-hidden","true",1,"skipped-files-banner__icon","fa-solid","fa-triangle-exclamation"],["data-testid","skipped-files-banner-body",1,"skipped-files-banner__body"],["data-testid","skipped-files-banner-first",1,"skipped-files-banner__first"],["data-testid","skipped-files-banner-more",1,"skipped-files-banner__more",3,"pTooltip"],["type","button","data-testid","skipped-files-banner-cta",1,"skipped-files-banner__cta",3,"click"]],template:function(r,i){r&1&&x(0,kn,9,5,"div",0),r&2&&w(i.visible()?0:-1)},dependencies:[ce,le],styles:["[_nghost-%COMP%]{display:block}.skipped-files-banner[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;padding:.5rem 1rem;border-bottom:1px solid var(--p-content-border-color);font-size:.875rem;background:var(--sm-severity-warn-bg);color:var(--sm-severity-warn)}.skipped-files-banner__icon[_ngcontent-%COMP%]{font-size:1.1rem;color:var(--sm-severity-warn)}.skipped-files-banner__body[_ngcontent-%COMP%]{flex:1 1 auto;margin:0;line-height:1.4}.skipped-files-banner__first[_ngcontent-%COMP%]{font-weight:600}.skipped-files-banner__more[_ngcontent-%COMP%]{font-weight:600;cursor:help}.skipped-files-banner__cta[_ngcontent-%COMP%]{flex:0 0 auto;background:transparent;color:inherit;border:1px solid currentColor;padding:.25rem .75rem;border-radius:var(--p-border-radius);font:inherit;font-size:.8125rem;font-weight:500;cursor:pointer;transition:background .15s ease}.skipped-files-banner__cta[_ngcontent-%COMP%]:hover, .skipped-files-banner__cta[_ngcontent-%COMP%]:focus-visible{background:color-mix(in srgb,currentColor 12%,transparent)}.skipped-files-banner__cta[_ngcontent-%COMP%]:focus-visible{outline:2px solid currentColor;outline-offset:2px}"],changeDetection:0})}return n})();var Ht={body:"Connection to the server was lost. Live updates are paused.",reconnectCta:"Reconnect",reconnectAria:"Retry the connection to the server"};function wn(n,t){if(n&1){let e=I();B(0,"div",0),te(1,"span",1),B(2,"p",2),g(3),Q(),B(4,"button",3),oe("click",function(){E(e);let i=f();return O(i.reconnect())}),te(5,"span",4),g(6),Q()()}if(n&2){let e=f();l(3),_(e.texts.body),l(),C("aria-label",e.texts.reconnectAria),l(2),S(" ",e.texts.reconnectCta," ")}}var Wt=(()=>{class n{mode=s(F);ws=s(N);texts=Ht;visible=m(()=>this.mode==="live"&&this.ws.connectionState()==="lost");reconnect(){this.ws.reconnect()}static \u0275fac=function(r){return new(r||n)};static \u0275cmp=D({type:n,selectors:[["sm-connection-banner"]],decls:1,vars:1,consts:[["role","alert","data-testid","connection-banner",1,"connection-banner"],["aria-hidden","true",1,"connection-banner__icon","fa-solid","fa-plug-circle-xmark"],[1,"connection-banner__body"],["type","button","data-testid","connection-banner-reconnect",1,"connection-banner__cta",3,"click"],["aria-hidden","true",1,"fa-solid","fa-rotate-right"]],template:function(r,i){r&1&&x(0,wn,7,3,"div",0),r&2&&w(i.visible()?0:-1)},styles:["[_nghost-%COMP%]{display:block}.connection-banner[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;padding:.5rem 1rem;border-bottom:1px solid var(--p-content-border-color);background:var(--sm-severity-error-bg);color:var(--sm-severity-error);font-size:.875rem}.connection-banner__icon[_ngcontent-%COMP%]{font-size:1.1rem;color:var(--sm-severity-error)}.connection-banner__body[_ngcontent-%COMP%]{flex:1 1 auto;margin:0;line-height:1.4}.connection-banner__cta[_ngcontent-%COMP%]{flex:0 0 auto;display:inline-flex;align-items:center;gap:.4rem;background:transparent;color:inherit;border:1px solid currentColor;padding:.25rem .75rem;border-radius:var(--p-border-radius);font:inherit;font-size:.8125rem;font-weight:500;cursor:pointer;transition:background .15s ease}.connection-banner__cta[_ngcontent-%COMP%]:hover, .connection-banner__cta[_ngcontent-%COMP%]:focus-visible{background:color-mix(in srgb,currentColor 12%,transparent)}.connection-banner__cta[_ngcontent-%COMP%]:focus-visible{outline:2px solid currentColor;outline-offset:2px}"],changeDetection:0})}return n})();var Pn=()=>[import("./chunk-RJUHQQOF.js").then(n=>n.SettingsModal)];function Sn(n,t){if(n&1&&(c(0,"span",11),g(1),p()),n&2){let e=f();b("pTooltip",e.versionTooltip()),C("aria-label",e.texts.devChipA11y),l(),_(e.texts.devChip)}}function Mn(n,t){if(n&1&&(c(0,"span",12),g(1),p()),n&2){let e=f();b("pTooltip",e.versionTooltip()),C("aria-label",e.versionA11y()),l(),_(e.versionLabel())}}function Rn(n,t){if(n&1&&(c(0,"span",24),g(1),p()),n&2){let e=t,r=f();Ue("--provider-color",e.color)("--provider-color-dark",e.colorDark??e.color),b("pTooltip",r.texts.lensChipTooltip(e.label)),C("aria-label",r.texts.lensChipA11y(e.label)),l(),_(e.label)}}function Tn(n,t){if(n&1){let e=I();c(0,"button",25),R("click",function(){E(e);let i=f();return O(i.copyUpdateCommand())}),P(1,"i",26),c(2,"span"),g(3),p()(),c(4,"a",27),P(5,"i",28),p()}if(n&2){let e=f();b("pTooltip",e.updateChipTooltip()),C("aria-label",e.updateChipA11y()),l(),Je(e.updateChipIcon()),l(2),_(e.updateChipText()),l(),b("href",e.npmLinkUrl,re)("pTooltip",e.npmLinkTooltip),C("aria-label",e.npmLinkA11y)}}function En(n,t){if(n&1&&(c(0,"p",15)(1,"bdi",29),g(2),p()()),n&2){let e=t;C("title",e),l(2),_(e)}}function On(n,t){if(n&1){let e=I();c(0,"sm-settings-modal",30),R("visibleChange",function(i){E(e);let o=f();return O(o.onSettingsVisibleChange(i))}),p()}if(n&2){let e=f();b("visible",e.settingsOpen())}}var Qt=(()=>{class n{loader=s(U);theme=s(_t);projectInfo=s(G);providerRegistry=s(J);scanTrigger=s(kt);wsEvents=s(N);usageTracker=s(ne);updateCheck=s(me);texts=j;isDemo=s(F)==="demo";betaLabel=this.isDemo?this.texts.betaDemo:this.texts.beta;settingsTexts=Ct;settingsOpen=q(!1);openSettings(){this.settingsOpen.set(!0),this.usageTracker.trackFeature("settings")}onSettingsVisibleChange(e){this.settingsOpen.set(e),e||this.projectInfo.reloadActiveProvider()}scanning=m(()=>this.scanTrigger.scanning()||this.wsEvents.scanActive());scanError=this.scanTrigger.scanError;triggerScan(){return this.scanTrigger.run()}updateChipCopied=q(!1);updateChipText=m(()=>this.updateChipCopied()?M.copiedLabel:M.available);updateChipIcon=m(()=>this.updateChipCopied()?"pi pi-check":"pi pi-download");updateChipTooltip=m(()=>this.updateChipCopied()?M.copiedTooltip:M.tooltip(this.updateCheck.latest()??""));updateChipA11y=m(()=>M.a11yLabel(this.updateCheck.latest()??""));npmLinkUrl=M.npmLinkUrl;npmLinkTooltip=M.npmLinkTooltip;npmLinkA11y=M.npmLinkA11y;async copyUpdateCommand(){try{await navigator.clipboard.writeText(M.copyCommand),this.updateChipCopied.set(!0),setTimeout(()=>this.updateChipCopied.set(!1),2e3)}catch{}}versionLabel=m(()=>M.versionLabel(this.updateCheck.current()??""));versionTooltip=m(()=>M.versionTooltip(this.updateCheck.current()??""));versionA11y=m(()=>M.versionA11yLabel(this.updateCheck.current()??""));isDevBuild=this.projectInfo.dev;lensChip=m(()=>this.providerRegistry.lensChip(this.projectInfo.activeProvider()));count=this.loader.count;linkAnalysis=m(()=>yt(this.loader.nodes(),this.loader.scan()));linkCount=m(()=>this.linkAnalysis().raw);mapInfoTooltip=m(()=>j.badge.mapInfo(this.count(),this.linkAnalysis()));mapInfoA11y=m(()=>j.badge.mapInfoA11y(this.count(),this.linkAnalysis()));rootLabel=m(()=>{let e=this.projectInfo.cwd();if(e&&e!==".")return e;let r=this.loader.scan()?.roots??[];if(r.length===0)return"";let i=r[0].replace(/[\\/]+$/,"");return!i||i==="."?"":i});isDevMode=Ke();themeMode=this.theme.mode;markSrc=m(()=>this.theme.extraTheme()==="matrix"?"skill-map-mark-matrix.svg":this.theme.resolved()==="dark"?"skill-map-mark-light.svg":"skill-map-mark-dark.svg");themeIcon=m(()=>{switch(this.themeMode()){case"auto":return"pi pi-desktop";case"light":return"pi pi-sun";case"dark":return"fa-regular fa-moon"}});themeLabel=m(()=>{switch(this.themeMode()){case"auto":return K.toggleToLight;case"light":return K.toggleToDark;case"dark":return K.toggleToAuto}});themeTooltip=m(()=>{switch(this.themeMode()){case"auto":return K.currentAuto;case"light":return K.currentLight;case"dark":return K.currentDark}});toggleTheme(){this.theme.toggle()}static \u0275fac=function(r){return new(r||n)};static \u0275cmp=D({type:n,selectors:[["sm-root"]],decls:39,vars:28,consts:[["role","alert","data-testid","viewport-warning",1,"viewport-warning"],[1,"viewport-warning__card"],["aria-hidden","true",1,"fa-solid","fa-desktop","viewport-warning__icon"],[1,"viewport-warning__title"],[1,"viewport-warning__subtitle"],[1,"viewport-warning__body"],["data-testid","shell",1,"shell"],[3,"openSettings"],["data-testid","shell-topbar",1,"shell__topbar"],[1,"shell__brand"],["width","32","height","32","priority","","alt","","aria-hidden","true",1,"shell__brand-mark",3,"ngSrc"],["tooltipPosition","bottom","data-testid","shell-dev",1,"shell__dev",3,"pTooltip"],["tooltipPosition","bottom","data-testid","shell-version",1,"shell__version",3,"pTooltip"],["tooltipPosition","bottom","data-testid","shell-lens",1,"shell__lens",3,"--provider-color","--provider-color-dark","pTooltip"],[1,"shell__beta"],["data-testid","shell-root-label",1,"shell__tag"],["data-testid","shell-nav",1,"shell__nav"],["slot","topbar.nav.start",3,"node"],[1,"shell__actions"],["type","button","tooltipPosition","bottom","data-testid","shell-refresh",1,"shell__refresh",3,"click","pTooltip","disabled"],["aria-hidden","true",1,"pi","pi-sync"],["tooltipPosition","left","severity","secondary","size","small","data-testid","action-theme-toggle",3,"onClick","icon","ariaLabel","pTooltip","text","rounded"],["icon","pi pi-sliders-h","tooltipPosition","left","severity","secondary","size","small","data-testid","action-settings",3,"onClick","ariaLabel","pTooltip","text","rounded"],[1,"shell__main"],["tooltipPosition","bottom","data-testid","shell-lens",1,"shell__lens",3,"pTooltip"],["type","button","tooltipPosition","bottom","data-testid","shell-update-chip",1,"shell__update-chip",3,"click","pTooltip"],["aria-hidden","true"],["target","_blank","rel","noopener noreferrer","tooltipPosition","bottom","data-testid","shell-update-npm-link",1,"shell__update-npm-link",3,"href","pTooltip"],["aria-hidden","true",1,"pi","pi-external-link"],["dir","ltr"],[3,"visibleChange","visible"]],template:function(r,i){if(r&1&&(c(0,"div",0)(1,"div",1),P(2,"i",2),c(3,"h2",3),g(4),p(),c(5,"p",4),g(6),p(),c(7,"p",5),g(8),p()()(),c(9,"div",6),P(10,"sm-demo-banner"),c(11,"sm-oversized-banner",7),R("openSettings",function(){return i.openSettings()}),p(),c(12,"sm-skipped-files-banner",7),R("openSettings",function(){return i.openSettings()}),p(),P(13,"sm-connection-banner"),c(14,"header",8)(15,"div",9),P(16,"img",10),c(17,"div")(18,"h1"),g(19),x(20,Sn,2,3,"span",11)(21,Mn,2,3,"span",12),x(22,Rn,2,7,"span",13),c(23,"span",14),g(24),p(),x(25,Tn,6,8),p(),x(26,En,3,2,"p",15),p()(),c(27,"nav",16),P(28,"sm-view-contributions-host",17),p(),c(29,"div",18)(30,"button",19),R("click",function(){return i.triggerScan()}),P(31,"i",20),p(),c(32,"p-button",21),R("onClick",function(){return i.toggleTheme()}),p(),c(33,"p-button",22),R("onClick",function(){return i.openSettings()}),p()()(),c(34,"main",23),P(35,"router-outlet"),p(),je(36,On,1,1),ze(37,36,Pn),p()),r&2){let o,a,u;l(4),_(i.texts.viewportWarning.title),l(2),_(i.texts.viewportWarning.subtitle),l(2),_(i.texts.viewportWarning.body),l(8),b("ngSrc",i.markSrc()),l(3),S(" ",i.texts.brand," "),l(),w(i.isDevBuild()?20:(o=i.updateCheck.current())?21:-1,o),l(2),w((a=i.lensChip())?22:-1,a),l(),C("aria-label",i.betaLabel),l(),_(i.betaLabel),l(),w(i.updateCheck.isOutdated()&&!i.isDevMode?25:-1),l(),w((u=i.rootLabel())?26:-1,u),l(),C("aria-label",i.texts.a11y.viewSwitcher),l(),b("node",null),l(2),Ve("is-spinning",i.scanning()),b("pTooltip",i.mapInfoTooltip())("disabled",i.scanning()),C("aria-label",i.mapInfoA11y()),l(2),b("icon",i.themeIcon())("ariaLabel",i.themeLabel())("pTooltip",i.themeTooltip())("text",!0)("rounded",!0),l(),b("ariaLabel",i.settingsTexts.a11y.triggerLabel)("pTooltip",i.settingsTexts.triggerTooltip)("text",!0)("rounded",!0),l(4),Be(i.settingsOpen())}},dependencies:[tt,pe,de,lt,ce,le,at,Xe,Ut,Jt,Xt,Wt,ht],styles:['[_nghost-%COMP%]{display:block;height:100dvh;--shell-topbar-bg: #FFFFFF;--shell-topbar-border: var(--sm-violet-100);--shell-topbar-text: var(--sm-violet-800);--shell-topbar-text-strong: var(--sm-violet-900);--shell-topbar-text-muted: var(--sm-violet-600);--shell-topbar-hover-bg: color-mix(in srgb, var(--sm-violet-500) 10%, transparent);--shell-topbar-active-bg: var(--sm-violet-100);--shell-topbar-active-text: var(--sm-violet-800);--shell-topbar-badge-bg: var(--sm-violet-100)}.app-dark[_nghost-%COMP%], .app-dark [_nghost-%COMP%]{--shell-topbar-bg: #1A1B22;--shell-topbar-border: color-mix(in srgb, var(--sm-violet-300) 8%, transparent);--shell-topbar-text: var(--sm-violet-100);--shell-topbar-text-strong: var(--sm-violet-100);--shell-topbar-text-muted: var(--sm-violet-300);--shell-topbar-hover-bg: color-mix(in srgb, var(--sm-violet-400) 12%, transparent);--shell-topbar-active-bg: color-mix(in srgb, var(--sm-violet-500) 22%, transparent);--shell-topbar-active-text: var(--sm-violet-100);--shell-topbar-badge-bg: color-mix(in srgb, var(--sm-violet-500) 14%, transparent)}.shell[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100dvh}.shell__topbar[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;padding:.75rem 1.5rem;background:color-mix(in srgb,var(--shell-topbar-bg) 85%,transparent);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-bottom:1px solid var(--shell-topbar-border);color:var(--shell-topbar-text)}.shell__brand[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem}.shell__brand-mark[_ngcontent-%COMP%]{width:2rem;height:2rem;display:block}.shell__brand[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;font-size:1.05rem;font-weight:600;letter-spacing:-.01em;color:var(--shell-topbar-text-strong)}.shell__beta[_ngcontent-%COMP%]{font-family:var(--sm-font-display-brand);font-weight:600;font-size:10px;line-height:1;letter-spacing:.06em;text-transform:uppercase;color:#ad322b;background:#ad322b14;border-radius:var(--sm-radius-sm);padding:4px 8px;margin-left:8px;-webkit-user-select:none;user-select:none;display:inline-block;vertical-align:middle;white-space:nowrap}.app-dark[_nghost-%COMP%] .shell__beta[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .shell__beta[_ngcontent-%COMP%]{color:#e07570;background:#cf464024}.shell__version[_ngcontent-%COMP%]{display:inline-block;margin-left:6px;padding:2px 6px;border-radius:var(--sm-radius-sm);font-family:var(--sm-font-mono);font-size:11px;line-height:1;font-weight:500;letter-spacing:.02em;color:var(--p-text-muted-color);background:var(--p-content-hover-background);vertical-align:middle;-webkit-user-select:text;user-select:text}.shell__dev[_ngcontent-%COMP%]{display:inline-block;margin-left:6px;padding:2px 8px;border-radius:var(--sm-radius-sm);font-family:var(--sm-font-display-brand);font-size:10px;line-height:1;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8a5a00;background:#d69e2e29;vertical-align:middle;-webkit-user-select:none;user-select:none}.app-dark[_nghost-%COMP%] .shell__dev[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .shell__dev[_ngcontent-%COMP%]{color:#fbd38d;background:#d69e2e38}.shell__lens[_ngcontent-%COMP%]{display:inline-block;margin-left:6px;padding:2px 8px;border-radius:var(--sm-radius-sm);font-size:11px;line-height:1;font-weight:600;letter-spacing:.02em;color:var(--provider-color);background:color-mix(in srgb,var(--provider-color) 14%,transparent);vertical-align:middle;-webkit-user-select:none;user-select:none}.app-dark[_nghost-%COMP%] .shell__lens[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .shell__lens[_ngcontent-%COMP%]{color:var(--provider-color-dark);background:color-mix(in srgb,var(--provider-color-dark) 24%,transparent)}.shell__update-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;margin-left:8px;padding:3px 8px;font-family:inherit;font-size:11px;line-height:1;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--p-primary-color);background:var(--p-primary-50);border:1px solid var(--p-primary-200);border-radius:var(--sm-radius-pill);text-decoration:none;cursor:pointer;transition:background-color .12s ease,color .12s ease;vertical-align:middle}.shell__update-chip[_ngcontent-%COMP%]:hover, .shell__update-chip[_ngcontent-%COMP%]:focus-visible{background:var(--p-primary-100);color:var(--p-primary-700)}.shell__update-chip[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:12px;transform:translateY(1px)}.app-dark[_nghost-%COMP%] .shell__update-chip[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .shell__update-chip[_ngcontent-%COMP%]{color:var(--p-primary-300);background:#ffffff0a;border-color:var(--p-primary-700)}.shell__update-npm-link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;margin-left:4px;padding:3px 4px;color:var(--p-primary-color);text-decoration:none;border-radius:var(--sm-radius-pill);transition:color .12s ease,background-color .12s ease;vertical-align:middle}.shell__update-npm-link[_ngcontent-%COMP%]:hover, .shell__update-npm-link[_ngcontent-%COMP%]:focus-visible{color:var(--p-primary-700);background:var(--p-primary-50)}.shell__update-npm-link[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:12px;transform:translateY(1px)}.app-dark[_nghost-%COMP%] .shell__update-npm-link[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .shell__update-npm-link[_ngcontent-%COMP%]{color:var(--p-primary-300)}.app-dark[_nghost-%COMP%] .shell__update-npm-link[_ngcontent-%COMP%]:hover, .app-dark [_nghost-%COMP%] .shell__update-npm-link[_ngcontent-%COMP%]:hover, .app-dark[_nghost-%COMP%] .shell__update-npm-link[_ngcontent-%COMP%]:focus-visible, .app-dark [_nghost-%COMP%] .shell__update-npm-link[_ngcontent-%COMP%]:focus-visible{color:var(--p-primary-200);background:#ffffff0a}.shell__tag[_ngcontent-%COMP%]{margin:.35rem 0 0;font-size:.72rem;color:var(--shell-topbar-text-muted);letter-spacing:.02em;text-transform:uppercase;max-width:40rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:rtl}.shell__nav[_ngcontent-%COMP%]{display:flex;gap:.25rem;margin-left:auto}.shell__nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:.5rem .9rem;border-radius:.5rem;font-size:.9rem;font-weight:500;color:var(--shell-topbar-text-muted);transition:background .15s ease,color .15s ease}.shell__nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--shell-topbar-hover-bg);color:var(--shell-topbar-text-strong)}.shell__nav[_ngcontent-%COMP%] a.is-active[_ngcontent-%COMP%]{background:var(--shell-topbar-active-bg);color:var(--shell-topbar-active-text)}.shell__search[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;position:relative}.shell__nav-search[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;padding:0;border:none;border-radius:.5rem;background:transparent;color:var(--shell-topbar-text-muted);cursor:pointer;transition:background .15s ease,color .15s ease,opacity .15s ease}.shell__nav-search[_ngcontent-%COMP%]:hover{background:var(--shell-topbar-hover-bg);color:var(--shell-topbar-text-strong)}.shell__search.is-open[_ngcontent-%COMP%] .shell__nav-search[_ngcontent-%COMP%]{color:var(--shell-topbar-text-strong)}.shell__nav-search[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:.95rem}.shell__search.has-query[_ngcontent-%COMP%]:not(.is-open) .shell__nav-search[_ngcontent-%COMP%]{position:relative;color:var(--shell-topbar-text-strong)}.shell__search.has-query[_ngcontent-%COMP%]:not(.is-open) .shell__nav-search[_ngcontent-%COMP%]:after{content:"";position:absolute;top:.45rem;right:.45rem;width:6px;height:6px;border-radius:50%;background:var(--p-primary-color)}.shell__search-input[_ngcontent-%COMP%]{width:240px;height:2.25rem}.shell__search-clear[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:1.6rem;height:1.6rem;padding:0;border:none;border-radius:50%;background:transparent;color:var(--shell-topbar-text-muted);cursor:pointer;line-height:1}.shell__search-clear[_ngcontent-%COMP%]:hover{background:var(--shell-topbar-hover-bg);color:var(--shell-topbar-text-strong)}.shell__search-clear[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:.7rem}.shell__actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;--p-button-text-secondary-color: var(--shell-topbar-text-muted);--p-button-text-secondary-hover-color: var(--shell-topbar-text-strong);--p-button-text-secondary-hover-background: var(--shell-topbar-hover-bg);--p-button-text-secondary-active-color: var(--shell-topbar-text-strong);--p-button-text-secondary-active-background: var(--shell-topbar-hover-bg)}.shell__refresh[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;border:none;border-radius:var(--sm-radius-pill);background:transparent;color:var(--shell-topbar-text-muted);cursor:pointer;transition:background .15s ease,color .15s ease}.shell__refresh[_ngcontent-%COMP%]:hover:not(:disabled), .shell__refresh[_ngcontent-%COMP%]:focus-visible:not(:disabled){background:var(--shell-topbar-hover-bg);color:var(--shell-topbar-text-strong);outline:none}.shell__refresh[_ngcontent-%COMP%]:disabled{cursor:progress;opacity:.7}.shell__refresh[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.shell__refresh.is-spinning[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_shell-refresh-spin 1s linear infinite}@keyframes _ngcontent-%COMP%_shell-refresh-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.shell__main[_ngcontent-%COMP%]{flex:1;min-height:0;overflow-y:auto;width:100%}@media(max-width:1280px){.shell__topbar[_ngcontent-%COMP%]{gap:1rem;padding:.5rem 1rem}.shell__tag[_ngcontent-%COMP%]{max-width:26rem}.shell__nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:.4rem .7rem;font-size:.85rem}}.viewport-warning[_ngcontent-%COMP%]{display:none}@media(max-width:767px){.viewport-warning[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:var(--sm-bg-content)}.viewport-warning__card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.85rem;max-width:22rem}.viewport-warning__icon[_ngcontent-%COMP%]{font-size:3rem;color:var(--p-primary-color);margin-bottom:.25rem}.viewport-warning__title[_ngcontent-%COMP%]{margin:0;font-size:1.35rem;font-weight:700;color:var(--p-text-color);line-height:1.25}.viewport-warning__subtitle[_ngcontent-%COMP%]{margin:0;font-size:1rem;font-weight:500;color:var(--p-primary-color);line-height:1.35}.viewport-warning__body[_ngcontent-%COMP%]{margin:0;color:var(--p-text-muted-color);line-height:1.5;font-size:.9rem}.shell[_ngcontent-%COMP%]{display:none}}'],changeDetection:0})}return n})();We(Qt,jt).catch(n=>console.error(n));
|
|
@@ -241,12 +241,16 @@ CREATE TABLE state_node_favorites (
|
|
|
241
241
|
|
|
242
242
|
-- --- Config zone -----------------------------------------------------------
|
|
243
243
|
|
|
244
|
+
-- Per-machine plugin import-trust store (the SECURITY axis). The
|
|
245
|
+
-- operational enable/disable toggle lives in the config layers
|
|
246
|
+
-- (settings.json / settings.local.json), NOT here. Keyed by bare plugin
|
|
247
|
+
-- id. Redefined inline (greenfield, no migration file, no user_version
|
|
248
|
+
-- bump): the scan_meta.schema_fingerprint drift path rebuilds the cache.
|
|
244
249
|
CREATE TABLE config_plugins (
|
|
245
250
|
plugin_id TEXT PRIMARY KEY,
|
|
246
|
-
|
|
247
|
-
config_json TEXT,
|
|
251
|
+
trusted INTEGER NOT NULL DEFAULT 0,
|
|
248
252
|
updated_at INTEGER NOT NULL,
|
|
249
|
-
CONSTRAINT
|
|
253
|
+
CONSTRAINT ck_config_plugins_trusted CHECK (trusted IN (0,1))
|
|
250
254
|
);
|
|
251
255
|
|
|
252
256
|
CREATE TABLE config_preferences (
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skill-map/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.70.0",
|
|
4
4
|
"description": "skill-map reference implementation — kernel + CLI + adapters.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"smol-toml": "1.7.0",
|
|
62
62
|
"typanion": "3.14.0",
|
|
63
63
|
"ws": "8.21.0",
|
|
64
|
-
"@skill-map/spec": "0.
|
|
64
|
+
"@skill-map/spec": "0.64.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@eslint/js": "10.0.1",
|