@skill-map/cli 0.51.0 → 0.53.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.
Files changed (53) hide show
  1. package/dist/cli/tutorial/sm-tutorial/SKILL.md +239 -1659
  2. package/dist/cli/tutorial/sm-tutorial/references/_core.md +332 -0
  3. package/dist/cli/tutorial/sm-tutorial/references/_manifest.yml +175 -0
  4. package/dist/cli/tutorial/sm-tutorial/references/fixtures.md +251 -0
  5. package/dist/cli/tutorial/{sm-master/references/tour-authoring.md → sm-tutorial/references/part-authoring.md} +14 -15
  6. package/dist/cli/tutorial/sm-tutorial/references/part-cli.md +267 -0
  7. package/dist/cli/tutorial/sm-tutorial/references/part-connect-harness.md +180 -0
  8. package/dist/cli/tutorial/sm-tutorial/references/part-fundamentals.md +424 -0
  9. package/dist/cli/tutorial/sm-tutorial/references/part-live-site.md +156 -0
  10. package/dist/cli/tutorial/sm-tutorial/references/part-maintain.md +286 -0
  11. package/dist/cli/tutorial/sm-tutorial/references/part-mcp.md +78 -0
  12. package/dist/cli/tutorial/{sm-master/references/tour-plugins.md → sm-tutorial/references/part-plugins.md} +11 -11
  13. package/dist/cli/tutorial/sm-tutorial/references/part-project-kickoff.md +186 -0
  14. package/dist/cli/tutorial/{sm-master/references/tour-settings.md → sm-tutorial/references/part-settings.md} +22 -24
  15. package/dist/cli.js +1253 -564
  16. package/dist/index.d.ts +1 -1
  17. package/dist/index.js +335 -208
  18. package/dist/kernel/index.d.ts +320 -15
  19. package/dist/kernel/index.js +335 -208
  20. package/dist/migrations/001_initial.sql +36 -0
  21. package/dist/ui/chunk-EQ72PEHT.js +1 -0
  22. package/dist/ui/chunk-GBKHMJ4B.js +1110 -0
  23. package/dist/ui/chunk-GEI6INVH.js +515 -0
  24. package/dist/ui/chunk-JXRIGHET.js +552 -0
  25. package/dist/ui/{chunk-WQMZOINB.js → chunk-K2MAVAHG.js} +1 -1
  26. package/dist/ui/{chunk-BV323KTK.js → chunk-KHARMPTZ.js} +1 -1
  27. package/dist/ui/chunk-L4NIF75A.js +2 -0
  28. package/dist/ui/chunk-LCOYSPKE.js +1 -0
  29. package/dist/ui/chunk-OFDQMBSJ.js +1 -0
  30. package/dist/ui/chunk-P2DAPRK7.js +2 -0
  31. package/dist/ui/chunk-Q2A6FWC7.js +4 -0
  32. package/dist/ui/chunk-TXTY24G4.js +2204 -0
  33. package/dist/ui/chunk-UBQUCSQ4.js +1 -0
  34. package/dist/ui/chunk-WFLPMCK4.js +392 -0
  35. package/dist/ui/chunk-WHZVGOS3.js +5 -0
  36. package/dist/ui/chunk-YQFIXHKM.js +123 -0
  37. package/dist/ui/index.html +2 -2
  38. package/dist/ui/main-OYITFJ7B.js +4 -0
  39. package/dist/ui/{styles-RG7Y33BT.css → styles-Q4NCOJQY.css} +1 -1
  40. package/migrations/001_initial.sql +36 -0
  41. package/package.json +10 -8
  42. package/dist/cli/tutorial/sm-master/SKILL.md +0 -688
  43. package/dist/cli/tutorial/sm-master/references/fixture-templates.md +0 -212
  44. package/dist/ui/chunk-2GXE52AJ.js +0 -123
  45. package/dist/ui/chunk-AEA5GIA7.js +0 -1
  46. package/dist/ui/chunk-KHRNVLJW.js +0 -1
  47. package/dist/ui/chunk-OZTRR4M7.js +0 -2312
  48. package/dist/ui/chunk-Q5YJKCTP.js +0 -1066
  49. package/dist/ui/chunk-RCT3JSFL.js +0 -1
  50. package/dist/ui/chunk-VBTLX7GH.js +0 -1110
  51. package/dist/ui/chunk-VJ57LHDR.js +0 -4
  52. package/dist/ui/chunk-WMGW2UAL.js +0 -2
  53. package/dist/ui/main-N7D2YBEX.js +0 -4
@@ -1 +1 @@
1
- import{Ha as i,Wa as r,Wb as s,Xb as l,vb as o,wb as a}from"./chunk-VJ57LHDR.js";import"./chunk-WCABR6TI.js";var n={triggering:"Triggering an intentional uncaught error to exercise UI Sentry error reporting...",errorMessage:"skill-map UI intentional failure (Sentry self-test)"};var d=(()=>{class e{texts=n;ngOnInit(){console.warn(n.triggering),setTimeout(()=>{throw new Error(n.errorMessage)},0)}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=r({type:e,selectors:[["sm-intentional-fail"]],decls:2,vars:1,consts:[["data-testid","intentional-fail",1,"sm-intentional-fail"]],template:function(t,c){t&1&&(o(0,"p",0),s(1),a()),t&2&&(i(),l(c.texts.triggering))},encapsulation:2,changeDetection:0})}return e})();export{d as IntentionalFail};
1
+ import{Ha as i,Wa as r,Xb as s,Yb as l,wb as o,xb as a}from"./chunk-Q2A6FWC7.js";import"./chunk-WCABR6TI.js";var n={triggering:"Triggering an intentional uncaught error to exercise UI Sentry error reporting...",errorMessage:"skill-map UI intentional failure (Sentry self-test)"};var d=(()=>{class e{texts=n;ngOnInit(){console.warn(n.triggering),setTimeout(()=>{throw new Error(n.errorMessage)},0)}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=r({type:e,selectors:[["sm-intentional-fail"]],decls:2,vars:1,consts:[["data-testid","intentional-fail",1,"sm-intentional-fail"]],template:function(t,c){t&1&&(o(0,"p",0),s(1),a()),t&2&&(i(),l(c.texts.triggering))},encapsulation:2,changeDetection:0})}return e})();export{d as IntentionalFail};
@@ -1,4 +1,4 @@
1
- import{a as tm,b as nm,c as rm,d as om,e as im,i as sm}from"./chunk-AEA5GIA7.js";import{n as em}from"./chunk-WMGW2UAL.js";import{F as Ra,G as fl,K as pl,L as Kd,O as dl,Qa as Xd,Xa as Qd,Ya as Zd,a as Vd,la as Jd,u as va}from"./chunk-VJ57LHDR.js";import{a as p,b as E,d as qt,f as Yd}from"./chunk-WCABR6TI.js";var b=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var C=globalThis;var Pt="10.55.0";function pt(){return pr(C),C}function pr(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Pt,t[Pt]=t[Pt]||{}}function sn(e,t,n=C){let r=n.__SENTRY__=n.__SENTRY__||{},o=r[Pt]=r[Pt]||{};return o[e]||(o[e]=t())}var dr=["debug","info","warn","error","log","assert","trace"],Wy="Sentry Logger ",Wr={};function Fe(e){if(!("console"in C))return e();let t=C.console,n={},r=Object.keys(Wr);r.forEach(o=>{let i=Wr[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function jy(){_l().enabled=!0}function zy(){_l().enabled=!1}function am(){return _l().enabled}function qy(...e){ml("log",...e)}function Yy(...e){ml("warn",...e)}function Vy(...e){ml("error",...e)}function ml(e,...t){b&&am()&&Fe(()=>{C.console[e](`${Wy}[${e}]:`,...t)})}function _l(){return b?sn("loggerSettings",()=>({enabled:!1})):{enabled:!1}}var h={enable:jy,disable:zy,isEnabled:am,log:qy,warn:Yy,error:Vy};var cm=/\(error: (.*)\)/,um=/captureMessage|captureException/;function zi(...e){let t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{let i=[],s=n.split(`
1
+ import{a as tm,b as nm,c as rm,d as om,e as im,i as sm}from"./chunk-UBQUCSQ4.js";import{b as em}from"./chunk-P2DAPRK7.js";import"./chunk-LCOYSPKE.js";import{F as Ra,G as fl,K as pl,L as Kd,O as dl,Qa as Xd,Xa as Qd,Ya as Zd,a as Vd,la as Jd,u as va}from"./chunk-Q2A6FWC7.js";import{a as p,b as E,d as qt,f as Yd}from"./chunk-WCABR6TI.js";var b=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var C=globalThis;var Pt="10.55.0";function pt(){return pr(C),C}function pr(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Pt,t[Pt]=t[Pt]||{}}function sn(e,t,n=C){let r=n.__SENTRY__=n.__SENTRY__||{},o=r[Pt]=r[Pt]||{};return o[e]||(o[e]=t())}var dr=["debug","info","warn","error","log","assert","trace"],Wy="Sentry Logger ",Wr={};function Fe(e){if(!("console"in C))return e();let t=C.console,n={},r=Object.keys(Wr);r.forEach(o=>{let i=Wr[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function jy(){_l().enabled=!0}function zy(){_l().enabled=!1}function am(){return _l().enabled}function qy(...e){ml("log",...e)}function Yy(...e){ml("warn",...e)}function Vy(...e){ml("error",...e)}function ml(e,...t){b&&am()&&Fe(()=>{C.console[e](`${Wy}[${e}]:`,...t)})}function _l(){return b?sn("loggerSettings",()=>({enabled:!1})):{enabled:!1}}var h={enable:jy,disable:zy,isEnabled:am,log:qy,warn:Yy,error:Vy};var cm=/\(error: (.*)\)/,um=/captureMessage|captureException/;function zi(...e){let t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{let i=[],s=n.split(`
2
2
  `);for(let a=r;a<s.length;a++){let c=s[a];c.length>1024&&(c=c.slice(0,1024));let u=cm.test(c)?c.replace(cm,"$1"):c;if(!u.includes("Error: ")){for(let f of t){let l=f(u);if(l){i.push(l);break}}if(i.length>=50+o)break}}return gl(i.slice(o))}}function Ca(e){return Array.isArray(e)?zi(...e):e}function gl(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(Na(t).function||"")&&t.pop(),t.reverse(),um.test(Na(t).function||"")&&(t.pop(),um.test(Na(t).function||"")&&t.pop()),t.slice(0,50).map(n=>E(p({},n),{filename:n.filename||Na(t).filename,function:n.function||"?"}))}function Na(e){return e[e.length-1]||{}}var hl="<anonymous>";function dt(e){try{return!e||typeof e!="function"?hl:e.name||hl}catch{return hl}}function jr(e){let t=e.exception;if(t){let n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function lm(e){let t=e?.startsWith("file://")?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t}var qi={},fm={};function rt(e,t){return qi[e]=qi[e]||[],qi[e].push(t),()=>{let n=qi[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1)}}}function ot(e,t){if(!fm[e]){fm[e]=!0;try{t()}catch(n){b&&h.error(`Error while instrumenting ${e}`,n)}}}function $e(e,t){let n=e&&qi[e];if(n)for(let r of n)try{r(t)}catch(o){b&&h.error(`Error while triggering instrumentation handler.
3
3
  Type: ${e}
4
4
  Name: ${dt(r)}
@@ -0,0 +1,2 @@
1
+ import{b as wt,i as Ee}from"./chunk-UBQUCSQ4.js";import{a as Nt,c as Et,d as Be,l as je,m as kt,o as St}from"./chunk-OFDQMBSJ.js";import{J as U,K as H,Q as Tt,R as Mt}from"./chunk-GBKHMJ4B.js";import{g as Ct}from"./chunk-LCOYSPKE.js";import{$ as dt,$a as pt,Bb as ht,Eb as he,Gb as Me,Ha as p,Hb as _t,Ib as _,K as Q,N as lt,P as K,Tb as yt,Ub as te,V as me,W as ge,Wa as A,Wb as Re,Xb as C,Yb as T,Zb as Ne,_ as ct,ab as ut,ga as F,gb as ft,hb as mt,hc as xt,ia as Te,ib as gt,ic as bt,jb as S,mb as N,nb as E,ob as vt,qb as q,rb as X,sb as $,sc as d,tb as O,ub as D,uc as P,vb as ee,wb as w,xb as k,yb as de}from"./chunk-Q2A6FWC7.js";import{a as we,b as at,d as st}from"./chunk-WCABR6TI.js";var jn=new Set(["stale-body","stale-frontmatter","stale-both"]);function Dt(e){return e?jn.has(e.status??null):!1}function _e(e){let i=e.metadata;return i&&typeof i=="object"&&!Array.isArray(i)?i:null}function xo(e){if(!e)return null;let i=e.sidecar?.annotations;if(i&&typeof i.version=="number")return`v${i.version}`;let t=_e(e.frontmatter)?.version;return typeof t=="string"&&t.length>0?`v${t}`:null}function bo(e){if(!e)return null;let t=e.sidecar?.annotations?.stability;if(t==="stable"||t==="experimental"||t==="deprecated")return t;let n=_e(e.frontmatter)?.stability;return n==="stable"||n==="experimental"||n==="deprecated"?n:null}function Co(e){return Dt(e?.sidecar)}function wo(e){if(!e)return null;let t=e.sidecar?.annotations?.supersededBy;if(typeof t=="string"&&t.length>0)return t;let n=_e(e.frontmatter)?.supersededBy;return typeof n=="string"&&n.length>0?n:null}function It(e){if(!e)return[];let t=e.sidecar?.annotations?.tags;if(Array.isArray(t))return t.filter(o=>typeof o=="string"&&o.length>0);let n=_e(e.frontmatter)?.tags;return Array.isArray(n)?n.filter(o=>typeof o=="string"&&o.length>0):[]}function To(e,i){switch(e?.sidecar?.status){case"stale-body":return i.staleBody;case"stale-frontmatter":return i.staleFrontmatter;case"stale-both":return i.staleBoth;default:return""}}function Mo(e){return e<1e3?`${e}`:e<1e4?`${(e/1e3).toFixed(1).replace(/\.0$/,"")}k`:`${Math.round(e/1e3)}k`}function No(e){let i=new Date(e);if(isNaN(i.getTime()))return e;let t=Date.now()-i.getTime(),n=Math.floor(t/1e3);if(n<60)return"just now";let o=Math.floor(n/60);if(o<60)return`${o} minute${o===1?"":"s"} ago`;let r=Math.floor(o/60);if(r<24)return`${r} hour${r===1?"":"s"} ago`;let s=Math.floor(r/24);if(s<30)return`${s} day${s===1?"":"s"} ago`;let a=Math.floor(s/30);if(a<12)return`${a} month${a===1?"":"s"} ago`;let c=Math.floor(s/365);return`${c} year${c===1?"":"s"} ago`}var Ot=["invokes","references","mentions","supersedes"],Io=(()=>{class e{_searchText=F("");_selectedKinds=F([]);_kindToggleExplicitEmpty=F(!1);_favoritesOnly=F(!1);_selectedLinkKinds=F([]);_severityErrorActive=F(!1);_severityWarnActive=F(!1);searchText=this._searchText.asReadonly();selectedKinds=this._selectedKinds.asReadonly();favoritesOnly=this._favoritesOnly.asReadonly();selectedLinkKinds=this._selectedLinkKinds.asReadonly();severityErrorActive=this._severityErrorActive.asReadonly();severityWarnActive=this._severityWarnActive.asReadonly();kindToggleExplicitEmpty=this._kindToggleExplicitEmpty.asReadonly();isActive=d(()=>this._searchText().trim().length>0||this._selectedKinds().length>0||this._kindToggleExplicitEmpty()||this._favoritesOnly()||this._selectedLinkKinds().length>0||this._severityErrorActive()||this._severityWarnActive());setSearchText(t){this._searchText.set(t)}setKinds(t){this._kindToggleExplicitEmpty.set(!1),this._selectedKinds.set([...t])}toggleKind(t,n){let o=this._selectedKinds(),r=n,a=this._kindToggleExplicitEmpty()?new Set:o.length===0?new Set(r):new Set(o);a.has(t)?a.delete(t):a.add(t),a.size===r.length?(this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!1)):a.size===0?(this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!0)):(this._selectedKinds.set([...a]),this._kindToggleExplicitEmpty.set(!1))}isKindActive(t){if(this._kindToggleExplicitEmpty())return!1;let n=this._selectedKinds();return n.length===0?!0:n.includes(t)}setFavoritesOnly(t){this._favoritesOnly.set(t)}setLinkKinds(t){this._selectedLinkKinds.set([...t])}toggleLinkKind(t){let n=this._selectedLinkKinds(),o=n.length===0?new Set(Ot):new Set(n);o.has(t)?o.delete(t):o.add(t),o.size===Ot.length?this._selectedLinkKinds.set([]):this._selectedLinkKinds.set([...o])}isLinkKindActive(t){let n=this._selectedLinkKinds();return n.length===0?!0:n.includes(t)}toggleSeverity(t){t==="error"?this._severityErrorActive.set(!this._severityErrorActive()):this._severityWarnActive.set(!this._severityWarnActive())}isSeverityActive(t){return t==="error"?this._severityErrorActive():this._severityWarnActive()}setSeverityFilters(t){let n=new Set(t);this._severityErrorActive.set(n.has("error")),this._severityWarnActive.set(n.has("warn"))}reset(){this._searchText.set(""),this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!1),this._favoritesOnly.set(!1),this._selectedLinkKinds.set([]),this._severityErrorActive.set(!1),this._severityWarnActive.set(!1)}apply(t,n){let o=this.searchText().trim().toLowerCase(),r=this.selectedKinds(),s=this._kindToggleExplicitEmpty(),a=this.favoritesOnly(),c=this._severityErrorActive(),l=this._severityWarnActive(),m=(c||l)&&n!==void 0;return t.filter(h=>{if(o){let y=It(h).join(" ");if(![h.path,h.frontmatter.name??"",h.frontmatter.description??"",y].join(" ").toLowerCase().includes(o))return!1}return!(s||r.length>0&&!r.includes(h.kind)||a&&h.isFavorite!==!0||m&&(c&&!n.errors.has(h.path)||l&&!n.warns.has(h.path)))})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var zn=(()=>{class e{router=K(Ee);open(t){this.router.navigate(["/"],{queryParams:{path:t}})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Pt=new lt("NODE_OPEN_INTENT",{providedIn:"root",factory:()=>K(zn)});var ke="sm-debug-slots",Kn="debug",Vn="is-debug-slots",At=(()=>{class e{visible=F(!1);constructor(){this.visible.set(this.resolveInitial()),Te(()=>{let t=this.visible();document.documentElement.classList.toggle(Vn,t)})}toggle(){let t=!this.visible();this.visible.set(t);try{localStorage.setItem(ke,t?"1":"0")}catch{}}resolveInitial(){let n=new URLSearchParams(window.location.search).get(Kn);if(n!==null&&n!=="0"&&n!=="false"){try{localStorage.setItem(ke,"1")}catch{}return!0}if(n==="0"||n==="false"){try{localStorage.setItem(ke,"0")}catch{}return!1}try{return localStorage.getItem(ke)==="1"}catch{return!1}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Ft=(()=>{class e{registry=F({});setRegistry(t){t&&this.registry.set(t)}get(t){return this.registry()[t]}all(){return this.registry()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function J(e){return typeof e=="object"&&e!==null}function ae(e,i){return J(e)&&Array.isArray(e[i])}function Se(e,i){return J(e)&&typeof e[i]=="string"}var G={panelHeader:"Plugin contributions",panelCount:e=>`${e} contribution${e===1?"":"s"}`,emptyDefault:"No contributions for this node.",rendererInvalid:"Contribution data failed schema validation.",rendererUnknownSlot:e=>`Unknown slot: ${e}. Update the UI to a newer catalog version.`,overflowBadge:e=>`+${e}`,overflowTooltip:e=>`Hidden: ${e}`,recordsCell:{boolTrue:"yes",boolFalse:"no"}};var Un=(e,i)=>i.label;function Hn(e,i){if(e&1&&(w(0,"h5",1),C(1),k()),e&2){let t=_();p(),T(t.label())}}function Gn(e,i){if(e&1&&(w(0,"p",2),C(1),k()),e&2){let t=_();p(),T(t.emptyText())}}function Wn(e,i){if(e&1&&(w(0,"li",4)(1,"span",5),C(2),k(),w(3,"span",6),de(4,"span",7),k(),w(5,"span",8),C(6),k()()),e&2){let t=i.$implicit,n=_(2);S("title",t.tooltip??""),p(2),T(t.label),p(2),yt("width",n.percent(t.value),"%"),p(2),T(t.value)}}function qn(e,i){if(e&1&&(w(0,"ul",3),q(1,Wn,7,5,"li",4,Un),k()),e&2){let t=_();p(),X(t.bars())}}var $t=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return J(t)?ae(t,"bars")?t:{bars:[]}:{bars:[]}});bars=d(()=>this.typed().bars??[]);label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??G.emptyDefault);maxValue=d(()=>this.bars().reduce((n,o)=>o.value>n?o.value:n,0));percent(t){let n=this.maxValue();return n===0?0:Math.round(t/n*100)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-breakdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-breakdown"],[1,"vc-breakdown__header"],[1,"vc-breakdown__empty"],[1,"vc-breakdown__rows"],[1,"vc-breakdown__row"],[1,"vc-breakdown__label"],[1,"vc-breakdown__bar-track"],["aria-hidden","true",1,"vc-breakdown__bar"],[1,"vc-breakdown__value"]],template:function(n,o){n&1&&(w(0,"section",0),N(1,Hn,2,1,"h5",1),N(2,Gn,2,1,"p",2)(3,qn,3,0,"ul",3),k()),n&2&&(S("data-testid","renderer-node-breakdown"),p(),E(o.label()?1:-1),p(),E(o.bars().length===0?2:3))},styles:[".vc-breakdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-breakdown__rows[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.25rem}.vc-breakdown__row[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(4rem,.4fr) 1fr 3rem;align-items:center;gap:.5rem;font-size:.85rem}.vc-breakdown__label[_ngcontent-%COMP%]{color:var(--p-text-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vc-breakdown__bar-track[_ngcontent-%COMP%]{background:var(--p-surface-100);border-radius:var(--sm-radius-md);height:.625rem;overflow:hidden}.vc-breakdown__bar[_ngcontent-%COMP%]{display:block;height:100%;background:var(--p-primary-500)}.vc-breakdown__value[_ngcontent-%COMP%]{text-align:right;color:var(--p-text-color)}.vc-breakdown__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();function Xn(e,i){if(e&1&&(w(0,"span",1),C(1),k()),e&2){let t=_(),n=_();Re(n.hostClass()),p(),T(t.text)}}function Yn(e,i){if(e&1&&de(0,"i",1),e&2){let t=_(),n=_();Re(n.hostClass()+" "+t.cls)}}function Qn(e,i){e&1&&N(0,Xn,2,3,"span",0)(1,Yn,1,2,"i",0),e&2&&E(i.kind==="emoji"?0:1)}function Jn(e){if(!e)return null;let i=e.trim();if(i.length===0)return null;let t=i.codePointAt(0)??0;if(!(t>=65&&t<=90||t>=97&&t<=122))return{kind:"emoji",text:i};if(/^pi pi-[a-z0-9-]+$/.test(i))return{kind:"pi",cls:i};if(/^pi-[a-z0-9-]+$/.test(i))return{kind:"pi",cls:`pi ${i}`};if(/^fa-(?:solid|regular|brands) fa-[a-z0-9-]+$/.test(i))return{kind:"fa",cls:i};if(/^fa-[a-z0-9-]+$/.test(i)){let o=i.slice(3);return o==="solid"||o==="regular"||o==="brands"||o.includes("fa-")?null:{kind:"fa",cls:`fa-solid ${i}`}}return null}var oe=(()=>{class e{icon=P(void 0);hostClass=P("");resolved=d(()=>{let t=this.icon(),n=Jn(t);return t&&!n&&console.warn(`[sm-icon] Invalid icon string "${t}". Expected emoji, pi-foo, pi pi-foo, fa-{solid|regular|brands} fa-foo, or fa-foo.`),n});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-icon"]],inputs:{icon:[1,"icon"],hostClass:[1,"hostClass"]},decls:1,vars:1,consts:[["aria-hidden","true",3,"class"],["aria-hidden","true"]],template:function(n,o){if(n&1&&N(0,Qn,2,1),n&2){let r;E((r=o.resolved())?0:-1,r)}},styles:["[_nghost-%COMP%] i[_ngcontent-%COMP%], [_nghost-%COMP%] span[_ngcontent-%COMP%]{font-size:inherit;line-height:inherit}[_nghost-%COMP%] i[_ngcontent-%COMP%]{transform:translateY(1px)}"],changeDetection:0})}return e})();function Zn(e,i){if(e&1&&(O(0,"span",3),C(1),D()),e&2){let t=_();S("aria-label",t.ariaLabel()),p(),T(t.value())}}var De=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{value:0}:t});value=d(()=>this.typed().value);icon=d(()=>this.inputs().icon);severity=d(()=>this.typed().severity);resolvedTooltip=d(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=d(()=>this.inputs().label??"");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-counter"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:12,consts:[[1,"vc-counter",3,"pTooltip"],[1,"vc-counter__icon"],[3,"icon"],[1,"vc-counter__value"]],template:function(n,o){n&1&&(O(0,"span",0)(1,"span",1),ee(2,"sm-icon",2),D(),N(3,Zn,2,2,"span",3),D()),n&2&&(te("vc-counter--info",o.severity()==="info")("vc-counter--warn",o.severity()==="warn")("vc-counter--success",o.severity()==="success")("vc-counter--danger",o.severity()==="danger"),$("pTooltip",o.resolvedTooltip()),S("data-testid","renderer-node-counter"),p(2),$("icon",o.icon()),p(),E(o.value()>0?3:-1))},dependencies:[H,U,oe],styles:[".vc-counter[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1;color:var(--p-text-color)}.vc-counter__icon[_ngcontent-%COMP%]{font-size:.6rem;line-height:1;display:block}.vc-counter__value[_ngcontent-%COMP%]{font-weight:600;color:var(--p-text-color);line-height:1;display:block}.vc-counter--info[_ngcontent-%COMP%], .vc-counter--info[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-counter--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn);opacity:.85}.vc-counter--warn[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-counter--success[_ngcontent-%COMP%], .vc-counter--success[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-counter--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error);opacity:.85}.vc-counter--danger[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})}return e})();var ei=(e,i)=>i.key;function ti(e,i){if(e&1&&(O(0,"h5",1),C(1),D()),e&2){let t=_();p(),T(t.label())}}function ni(e,i){if(e&1&&(O(0,"p",2),C(1),D()),e&2){let t=_();p(),T(t.emptyText())}}function ii(e,i){if(e&1&&(O(0,"dt",4),C(1),D(),O(2,"dd"),C(3),D()),e&2){let t=i.$implicit,n=_(2);$("pTooltip",t.tooltip??""),p(),T(t.key),p(2),T(n.formatValue(t.value))}}function oi(e,i){if(e&1&&(O(0,"dl",3),q(1,ii,4,3,null,null,ei),D()),e&2){let t=_();p(),X(t.pairs())}}var Lt=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return J(t)?ae(t,"pairs")?t:{pairs:[]}:{pairs:[]}});pairs=d(()=>this.typed().pairs??[]);label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??G.emptyDefault);formatValue(t){return t==null?"\xB7":typeof t=="boolean"?t?"true":"false":String(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-key-values"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-kv"],[1,"vc-kv__header"],[1,"vc-kv__empty"],[1,"vc-kv__list"],[3,"pTooltip"]],template:function(n,o){n&1&&(O(0,"section",0),N(1,ti,2,1,"h5",1),N(2,ni,2,1,"p",2)(3,oi,3,0,"dl",3),D()),n&2&&(S("data-testid","renderer-node-key-values"),p(),E(o.label()?1:-1),p(),E(o.pairs().length===0?2:3))},dependencies:[H,U],styles:[".vc-kv__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-kv__list[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(6rem,max-content) 1fr;gap:.25rem .75rem;margin:0;font-size:.85rem}.vc-kv__list[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-weight:500}.vc-kv__list[_ngcontent-%COMP%] dd[_ngcontent-%COMP%]{color:var(--p-text-color);margin:0;word-break:break-word}.vc-kv__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();var ri=(e,i)=>i.path;function ai(e,i){if(e&1&&(w(0,"h5",1),C(1),k()),e&2){let t=_();p(),T(t.label())}}function si(e,i){if(e&1&&(w(0,"p",2),C(1),k()),e&2){let t=_();p(),T(t.emptyText())}}function li(e,i){if(e&1&&(w(0,"span",5),C(1),k()),e&2){let t=_().$implicit;p(),T(t.kind)}}function ci(e,i){if(e&1){let t=he();w(0,"li")(1,"button",4),_t("click",function(){let o=me(t).$implicit,r=_(2);return ge(r.onOpenPath(o.path))}),N(2,li,2,1,"span",5),w(3,"span",6),C(4),k()()()}if(e&2){let t=i.$implicit;p(2),E(t.kind?2:-1),p(2),T(t.label??t.path)}}function di(e,i){if(e&1&&(w(0,"ul",3),q(1,ci,5,2,"li",null,ri),k()),e&2){let t=_();p(),X(t.links())}}var Rt=(()=>{class e{openIntent=K(Pt);inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return J(t)?ae(t,"links")?t:{links:[]}:{links:[]}});links=d(()=>this.typed().links??[]);label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??G.emptyDefault);onOpenPath(t){this.openIntent.open(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-link-list"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-links"],[1,"vc-links__header"],[1,"vc-links__empty"],[1,"vc-links__list"],["type","button",1,"vc-links__btn",3,"click"],[1,"vc-links__kind"],[1,"vc-links__label"]],template:function(n,o){n&1&&(w(0,"section",0),N(1,ai,2,1,"h5",1),N(2,si,2,1,"p",2)(3,di,3,0,"ul",3),k()),n&2&&(S("data-testid","renderer-node-link-list"),p(),E(o.label()?1:-1),p(),E(o.links().length===0?2:3))},styles:[".vc-links__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-links__list[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.125rem;font-size:.85rem}.vc-links__btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;background:transparent;border:0;padding:.25rem .5rem;border-radius:var(--sm-radius-md);color:var(--p-primary-color);cursor:pointer;text-align:left;width:100%}.vc-links__btn[_ngcontent-%COMP%]:hover{background:var(--p-surface-100)}.vc-links__kind[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-family:var(--sm-font-mono);font-size:.75rem}.vc-links__label[_ngcontent-%COMP%]{word-break:break-all}.vc-links__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();var Bt=(e,i)=>i.key;function pi(e,i){if(e&1&&(w(0,"h5",1),C(1),k()),e&2){let t=_();p(),T(t.label())}}function ui(e,i){if(e&1&&(w(0,"p",2),C(1),k()),e&2){let t=_();p(),T(t.emptyText())}}function fi(e,i){if(e&1&&(w(0,"th"),C(1),k()),e&2){let t=i.$implicit;p(),T(t.label)}}function mi(e,i){if(e&1&&de(0,"i",4),e&2){let t=_(4);S("aria-label",t.texts.boolTrue)}}function gi(e,i){if(e&1&&de(0,"i",5),e&2){let t=_(4);S("aria-label",t.texts.boolFalse)}}function vi(e,i){}function hi(e,i){if(e&1&&C(0),e&2){let t=_().$implicit,n=_().$implicit,o=_(2);Ne(" ",o.cellText(n[t.key])," ")}}function _i(e,i){if(e&1&&(w(0,"td"),N(1,mi,1,1,"i",4)(2,gi,1,1,"i",5)(3,vi,0,0)(4,hi,1,1),k()),e&2){let t,n=i.$implicit,o=_().$implicit,r=_(2);p(),E((t=r.cellKind(o[n.key]))==="bool-true"?1:t==="bool-false"?2:t==="empty"?3:4)}}function yi(e,i){if(e&1&&(w(0,"tr"),q(1,_i,5,1,"td",null,Bt),k()),e&2){let t=_(2);p(),X(t.columns())}}function xi(e,i){if(e&1&&(w(0,"table",3)(1,"thead")(2,"tr"),q(3,fi,2,1,"th",null,Bt),k()(),w(5,"tbody"),q(6,yi,3,0,"tr",null,vt),k()()),e&2){let t=_();p(3),X(t.columns()),p(3),X(t.rows())}}var jt=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return J(t)?!ae(t,"columns")||!ae(t,"rows")?{columns:[],rows:[]}:t:{columns:[],rows:[]}});columns=d(()=>this.typed().columns??[]);rows=d(()=>this.typed().rows??[]);label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??G.emptyDefault);texts=G.recordsCell;cellKind(t){return t==null?"empty":typeof t=="boolean"?t?"bool-true":"bool-false":"text"}cellText(t){return t==null?"":String(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-records"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-records"],[1,"vc-records__header"],[1,"vc-records__empty"],[1,"vc-records__table"],["role","img",1,"pi","pi-check","vc-records__bool","vc-records__bool--true"],["role","img",1,"pi","pi-minus","vc-records__bool","vc-records__bool--false"]],template:function(n,o){n&1&&(w(0,"section",0),N(1,pi,2,1,"h5",1),N(2,ui,2,1,"p",2)(3,xi,8,0,"table",3),k()),n&2&&(S("data-testid","renderer-node-records"),p(),E(o.label()?1:-1),p(),E(o.rows().length===0?2:3))},styles:[".vc-records__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-records__table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.85rem}.vc-records__table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left;padding:.25rem .5rem;border-bottom:1px solid var(--p-surface-200);color:var(--p-text-muted-color);font-weight:600}.vc-records__table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.25rem .5rem;border-bottom:1px solid var(--p-surface-100);color:var(--p-text-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:16rem}.vc-records__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}.vc-records__bool[_ngcontent-%COMP%]{font-size:.9rem;line-height:1}.vc-records__bool--true[_ngcontent-%COMP%]{color:var(--p-primary-color)}.vc-records__bool--false[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}"],changeDetection:0})}return e})();function bi(e,i){if(e&1&&(w(0,"h5",1),C(1),k()),e&2){let t=_();p(),T(t.label())}}function Ci(e,i){if(e&1&&(w(0,"p",2),C(1),k()),e&2){let t=_();p(),T(t.emptyText())}}function wi(e,i){if(e&1&&(w(0,"pre",3),C(1),k()),e&2){let t=_();p(),T(t.markdown())}}var zt=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return J(t)?Se(t,"markdown")?t:{markdown:""}:{markdown:""}});markdown=d(()=>this.typed().markdown??"");label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??G.emptyDefault);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-markdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-markdown"],[1,"vc-markdown__header"],[1,"vc-markdown__empty"],[1,"vc-markdown__body"]],template:function(n,o){n&1&&(w(0,"section",0),N(1,bi,2,1,"h5",1),N(2,Ci,2,1,"p",2)(3,wi,2,1,"pre",3),k()),n&2&&(S("data-testid","renderer-node-markdown"),p(),E(o.label()?1:-1),p(),E(o.markdown()?3:2))},styles:[".vc-markdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-markdown__body[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-color);background:var(--p-surface-50);padding:.5rem;border-radius:var(--sm-radius-md);white-space:pre-wrap;word-break:break-word;margin:0;max-height:12rem;overflow:auto}.vc-markdown__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();var Kt={countAriaFallback:"count"};function Ti(e,i){if(e&1&&(O(0,"span",1),ee(1,"sm-icon",4),D()),e&2){let t=_();p(),$("icon",t.icon())}}function Mi(e,i){if(e&1&&(O(0,"span",2),C(1),D()),e&2){let t=_();p(),T(t.label())}}function Ni(e,i){if(e&1&&(O(0,"span",3),C(1),D()),e&2){let t=_();S("aria-label",t.countAria()),p(),T(t.count())}}var Vt=(()=>{class e{inputs=P.required();texts=Kt;typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{}:t});icon=d(()=>this.inputs().icon);label=d(()=>{let t=this.typed().label;return typeof t=="string"?t:""});count=d(()=>{let t=this.typed().count;return typeof t=="number"&&Number.isFinite(t)?t:null});severity=d(()=>this.typed().severity);hasTint=d(()=>!!this.severity()&&this.label().length>0);resolvedTooltip=d(()=>this.typed().tooltip??this.inputs().tooltip??"");countAria=d(()=>this.inputs().label??(this.label()||this.texts.countAriaFallback));static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-badge"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:15,consts:[["tooltipPosition","left",1,"vc-badge",3,"pTooltip"],[1,"vc-badge__icon"],[1,"vc-badge__label"],[1,"vc-badge__count"],[3,"icon"]],template:function(n,o){n&1&&(O(0,"span",0),N(1,Ti,2,1,"span",1),N(2,Mi,2,1,"span",2),N(3,Ni,2,2,"span",3),D()),n&2&&(te("vc-badge--tinted",o.hasTint())("vc-badge--info",o.severity()==="info")("vc-badge--warn",o.severity()==="warn")("vc-badge--success",o.severity()==="success")("vc-badge--danger",o.severity()==="danger"),$("pTooltip",o.resolvedTooltip()),S("data-testid","renderer-node-badge"),p(),E(o.icon()?1:-1),p(),E(o.label()?2:-1),p(),E(o.count()!==null?3:-1))},dependencies:[H,U,oe],styles:[".vc-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1;color:var(--p-text-color)}.vc-badge__icon[_ngcontent-%COMP%]{font-size:.6rem;line-height:1;display:block}.vc-badge__label[_ngcontent-%COMP%]{font-weight:500;line-height:1;display:block}.vc-badge__count[_ngcontent-%COMP%]{font-weight:600;line-height:1;display:block}.vc-badge--info[_ngcontent-%COMP%]:not(.vc-badge--tinted){color:var(--sm-severity-info)}.vc-badge--warn[_ngcontent-%COMP%]:not(.vc-badge--tinted){color:var(--sm-severity-warn);opacity:.85}.vc-badge--success[_ngcontent-%COMP%]:not(.vc-badge--tinted){color:var(--sm-severity-success)}.vc-badge--danger[_ngcontent-%COMP%]:not(.vc-badge--tinted){color:var(--sm-severity-error);opacity:.85}.vc-badge--tinted[_ngcontent-%COMP%]{padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-badge--tinted.vc-badge--info[_ngcontent-%COMP%]{background:var(--sm-severity-info-bg);color:var(--sm-severity-info)}.vc-badge--tinted.vc-badge--warn[_ngcontent-%COMP%]{background:var(--sm-severity-warn-bg);color:var(--sm-severity-warn)}.vc-badge--tinted.vc-badge--success[_ngcontent-%COMP%]{background:var(--sm-severity-success-bg);color:var(--sm-severity-success)}.vc-badge--tinted.vc-badge--danger[_ngcontent-%COMP%]{background:var(--sm-severity-error-bg);color:var(--sm-severity-error)}"],changeDetection:0})}return e})();var Ut={errorPrefix:"Action failed:",errorFresh:"This node is fresh; nothing to do.",errorNotFound:"Node not found on the server.",errorReadonly:"Actions are not available in demo mode.",errorGeneric:"Could not run the action."};var Ht=(()=>{class e{dataSource=K(Et);texts=Ut;inFlightSig=F(!1);errorSig=F(null);consentOpenSig=F(!1);inFlight=this.inFlightSig.asReadonly();error=this.errorSig.asReadonly();consentOpen=this.consentOpenSig.asReadonly();idle=d(()=>!this.inFlightSig());pending=null;async dispatch(t,n,o){this.inFlightSig()||(this.errorSig.set(null),await this.run(t,n,o,{}))}resolveConsent(t){this.consentOpenSig.set(!1);let n=this.pending;if(this.pending=null,!n||!t.accepted)return;let o=t.always?{confirm:!0,always:!0}:{confirm:!0};this.run(n.actionId,n.nodePath,n.input,o)}dismissError(){this.errorSig.set(null)}async run(t,n,o,r){this.inFlightSig.set(!0);try{await this.dataSource.dispatchAction(t,n,we({input:o},r))}catch(s){if(r.confirm!==!0&&s instanceof Be&&s.code==="confirm-required"&&Ei(s.details)){this.pending={actionId:t,nodePath:n,input:o},this.consentOpenSig.set(!0);return}this.errorSig.set(this.formatError(s))}finally{this.inFlightSig.set(!1)}}formatError(t){if(t instanceof Be)switch(t.code){case"sidecar-fresh":return`${this.texts.errorPrefix} ${this.texts.errorFresh}`;case"not-found":return`${this.texts.errorPrefix} ${this.texts.errorNotFound}`;case"demo-readonly":return`${this.texts.errorPrefix} ${this.texts.errorReadonly}`;default:return`${this.texts.errorPrefix} ${t.message||this.texts.errorGeneric}`}let n=t instanceof Error?t.message:String(t);return`${this.texts.errorPrefix} ${n||this.texts.errorGeneric}`}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ei(e){return typeof e!="object"||e===null?!1:e.key==="allowEditSmFiles"}var Gt={fallbackLabel:"Run action",dismissErrorAriaLabel:"Dismiss",promptDialogHeader:"Provide a value"};var ki=()=>[import("./chunk-WFLPMCK4.js").then(e=>e.ActionPromptDialog)];function Si(e,i){if(e&1){let t=he();O(0,"span",2)(1,"span",3),C(2),D(),O(3,"button",4),Me("click",function(){me(t);let o=_();return ge(o.dismissError())}),ee(4,"i",5),D()()}if(e&2){let t=_();p(2),T(i),p(),S("aria-label",t.texts.dismissErrorAriaLabel)}}function Di(e,i){if(e&1){let t=he();O(0,"sm-action-prompt-dialog",7),Me("confirmed",function(o){me(t);let r=_(2);return ge(r.onPromptConfirmed(o))})("closed",function(){me(t);let o=_(2);return ge(o.cancelPrompt())}),D()}if(e&2){let t=_(2);$("open",t.promptOpen())("descriptor",t.promptDescriptor())("headerText",t.dialogHeader())("busy",t.inFlight())}}function Ii(e,i){if(e&1&&N(0,Di,1,4,"sm-action-prompt-dialog",6),e&2){let t,n=_();E((t=n.prompt())?0:-1,t)}}var Wt=(()=>{class e{inputs=P.required();texts=Gt;dispatcher=K(Ht);inFlightSig=F(!1);errorSig=F(null);promptOpenSig=F(!1);promptOpenedSig=F(!1);inFlight=this.inFlightSig.asReadonly();error=this.errorSig.asReadonly();promptOpen=this.promptOpenSig.asReadonly();promptOpened=this.promptOpenedSig.asReadonly();typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{actionId:""}:t});actionId=d(()=>this.typed().actionId||"");label=d(()=>this.typed().label??this.inputs().label??this.texts.fallbackLabel);icon=d(()=>this.typed().icon??this.inputs().icon);enabled=d(()=>this.typed().enabled!==!1);severity=d(()=>{switch(this.typed().severity){case"info":return"info";case"warn":return"warn";case"success":return"success";case"danger":return"danger";default:return"secondary"}});tooltip=d(()=>this.enabled()?this.inputs().tooltip??"":this.typed().disabledReason??"");prompt=d(()=>{let t=this.typed().prompt;return!t||typeof t!="object"||!t.inputType||!t.paramKey?null:t});promptDescriptor=d(()=>{let t=this.prompt();return{inputType:t?.inputType??"",label:t?.label??"",options:t?.options,defaultValue:t?.defaultValue}});dialogHeader=d(()=>this.typed().label??this.texts.promptDialogHeader);run(){if(!(!this.enabled()||this.inFlightSig())){if(this.prompt()){this.openPrompt();return}this.dispatch(this.typed().input)}}openPrompt(){this.errorSig.set(null),this.promptOpenedSig.set(!0),this.promptOpenSig.set(!0)}onPromptConfirmed(t){let n=this.prompt();if(!n)return;this.promptOpenSig.set(!1);let o=at(we({},this.typed().input??{}),{[n.paramKey]:t});this.dispatch(o)}cancelPrompt(){this.promptOpenSig.set(!1)}async dispatch(t){let n=this.actionId(),o=this.inputs().nodePath;if(!(!n||!o)){this.errorSig.set(null),this.inFlightSig.set(!0);try{await this.dispatcher.dispatch(n,o,t);let r=this.dispatcher.error();r&&this.errorSig.set(r)}finally{this.inFlightSig.set(!1)}}}dismissError(){this.errorSig.set(null),this.dispatcher.dismissError()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-action-button"]],inputs:{inputs:[1,"inputs"]},decls:6,vars:9,consts:[["data-testid","renderer-node-action-button",1,"vc-action"],["size","small",3,"onClick","label","icon","severity","disabled","loading","pTooltip"],["role","alert","data-testid","renderer-node-action-button-error",1,"vc-action__error"],[1,"vc-action__error-text"],["type","button","data-testid","renderer-node-action-button-error-dismiss",1,"vc-action__error-dismiss",3,"click"],["aria-hidden","true",1,"pi","pi-times"],[3,"open","descriptor","headerText","busy"],[3,"confirmed","closed","open","descriptor","headerText","busy"]],template:function(n,o){if(n&1&&(O(0,"span",0)(1,"p-button",1),Me("onClick",function(){return o.run()}),D(),N(2,Si,5,2,"span",2),D(),ut(3,Ii,1,1),ft(4,3,ki),gt()),n&2){let r;p(),$("label",o.label())("icon",o.icon()??"")("severity",o.severity())("disabled",!o.enabled()||o.inFlight())("loading",o.inFlight())("pTooltip",o.tooltip()),S("data-testid","action-"+o.actionId()),p(),E((r=o.error())?2:-1,r),p(2),mt(o.promptOpened())}},dependencies:[Mt,Tt,H,U],styles:[".vc-action[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.4rem;flex-wrap:wrap}.vc-action__error[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;font-size:.8rem;color:var(--sm-severity-error);background:var(--sm-severity-error-bg);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-action__error-dismiss[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:0;line-height:1;color:var(--sm-severity-error);display:inline-flex}.vc-action__error-dismiss[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{font-size:.7rem}"],changeDetection:0})}return e})();var Oi=()=>[],qt=(e,i)=>i.label;function Pi(e,i){if(e&1&&(w(0,"h5",1),C(1),k()),e&2){let t=_();p(),T(t.label())}}function Ai(e,i){if(e&1&&(w(0,"p",2),C(1),k()),e&2){let t=_();p(),T(t.emptyText())}}function Fi(e,i){if(e&1&&(w(0,"span",5),C(1),k()),e&2){let t=_().$implicit;p(),T(t.marker)}}function $i(e,i){if(e&1&&(w(0,"span",5),C(1),k()),e&2){let t=_().$implicit;p(),T(t.marker)}}function Li(e,i){if(e&1&&(w(0,"li",4),N(1,$i,2,1,"span",5),w(2,"span",6),C(3),k()()),e&2){let t=i.$implicit;S("title",t.tooltip??""),p(),E(t.marker?1:-1),p(2),T(t.label)}}function Ri(e,i){if(e&1&&(w(0,"ul",7),q(1,Li,4,3,"li",4,qt),k()),e&2){let t=_().$implicit;p(),X(t.children)}}function Bi(e,i){if(e&1&&(w(0,"li",4),N(1,Fi,2,1,"span",5),w(2,"span",6),C(3),k(),N(4,Ri,3,0,"ul",7),k()),e&2){let t=i.$implicit;S("title",t.tooltip??""),p(),E(t.marker?1:-1),p(2),T(t.label),p(),E(t.children&&t.children.length>0?4:-1)}}function ji(e,i){if(e&1&&(w(0,"ul",3),q(1,Bi,5,4,"li",4,qt),k()),e&2){let t=_();p(),X(t.root().children??xt(0,Oi))}}var Xt=(()=>{class e{inputs=P.required();root=d(()=>{let t=this.inputs().payload;return J(t)?Se(t,"label")?t.children!==void 0&&!Array.isArray(t.children)?{label:""}:t:{label:""}:{label:""}});rootIsEmpty=d(()=>{let t=this.root();return!t.children||t.children.length===0});label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??G.emptyDefault);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-tree"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-tree"],[1,"vc-tree__header"],[1,"vc-tree__empty"],["role","tree",1,"vc-tree__list"],["role","treeitem"],["aria-hidden","true",1,"vc-tree__marker"],[1,"vc-tree__label"],["role","group",1,"vc-tree__list"]],template:function(n,o){n&1&&(w(0,"section",0),N(1,Pi,2,1,"h5",1),N(2,Ai,2,1,"p",2)(3,ji,3,1,"ul",3),k()),n&2&&(S("data-testid","renderer-node-tree"),p(),E(o.label()?1:-1),p(),E(o.rootIsEmpty()?2:3))},styles:[".vc-tree__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-tree__list[_ngcontent-%COMP%]{list-style:none;padding-left:1rem;margin:0;font-size:.85rem}.vc-tree__list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{padding:.125rem 0}.vc-tree__marker[_ngcontent-%COMP%]{margin-right:.25rem;opacity:.7}.vc-tree__label[_ngcontent-%COMP%]{color:var(--p-text-color)}.vc-tree__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();function zi(e,i){if(e&1&&(O(0,"span",2),C(1),D()),e&2){let t=_();p(),T(t.formattedCount())}}var Yt=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{}:t});icon=d(()=>this.typed().icon??this.inputs().icon);severity=d(()=>this.typed().severity);count=d(()=>this.typed().count??null);resolvedTooltip=d(()=>this.typed().tooltip??this.inputs().tooltip??"");formattedCount=d(()=>{let t=this.count();return t===null?"":t>=99?"99+":String(t)});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-alert"]],inputs:{inputs:[1,"inputs"]},decls:3,vars:12,consts:[[1,"vc-alert",3,"pTooltip"],["hostClass","vc-alert__icon",3,"icon"],[1,"vc-alert__count"]],template:function(n,o){n&1&&(O(0,"span",0),ee(1,"sm-icon",1),N(2,zi,2,1,"span",2),D()),n&2&&(te("vc-alert--info",o.severity()==="info")("vc-alert--warn",o.severity()==="warn")("vc-alert--success",o.severity()==="success")("vc-alert--danger",o.severity()==="danger"),$("pTooltip",o.resolvedTooltip()),S("data-testid","renderer-node-alert"),p(),$("icon",o.icon()),p(),E(o.count()!==null?2:-1))},dependencies:[H,U,oe],styles:[".vc-alert[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:.125rem;min-width:1.1rem;min-height:1.1rem;font-size:.85rem;color:var(--p-surface-700)}.vc-alert--info[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-alert--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-alert--success[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-alert--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})}return e})();var Qt=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{}:t});icon=d(()=>this.typed().icon??this.inputs().icon);severity=d(()=>this.typed().severity);resolvedTooltip=d(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=d(()=>this.inputs().label??"");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-icon"]],inputs:{inputs:[1,"inputs"]},decls:2,vars:12,consts:[[1,"vc-icon",3,"pTooltip"],["hostClass","vc-icon__glyph",3,"icon"]],template:function(n,o){n&1&&(O(0,"span",0),ee(1,"sm-icon",1),D()),n&2&&(te("vc-icon--info",o.severity()==="info")("vc-icon--warn",o.severity()==="warn")("vc-icon--success",o.severity()==="success")("vc-icon--danger",o.severity()==="danger"),$("pTooltip",o.resolvedTooltip()),S("aria-label",o.ariaLabel())("data-testid","renderer-node-icon"),p(),$("icon",o.icon()))},dependencies:[H,U,oe],styles:[".vc-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;line-height:1;width:22px;height:22px}.vc-icon__glyph[_ngcontent-%COMP%]{font-size:.7rem;line-height:1;display:block}.vc-icon--info[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-icon--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-icon--success[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-icon--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})}return e})();function Ki(e,i){if(e&1&&(O(0,"span",3),C(1),D()),e&2){let t=_();p(),T(t.label())}}var Jt=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{value:""}:t});value=d(()=>String(this.typed().value??""));label=d(()=>this.typed().label??this.inputs().label);icon=d(()=>this.inputs().icon);severity=d(()=>this.typed().severity);resolvedTooltip=d(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-scope-stat"]],inputs:{inputs:[1,"inputs"]},decls:5,vars:13,consts:[[1,"vc-stat",3,"pTooltip"],["hostClass","vc-stat__icon",3,"icon"],[1,"vc-stat__value"],[1,"vc-stat__label"]],template:function(n,o){n&1&&(O(0,"span",0),ee(1,"sm-icon",1),O(2,"span",2),C(3),D(),N(4,Ki,2,1,"span",3),D()),n&2&&(te("vc-stat--info",o.severity()==="info")("vc-stat--warn",o.severity()==="warn")("vc-stat--success",o.severity()==="success")("vc-stat--danger",o.severity()==="danger"),$("pTooltip",o.resolvedTooltip()),S("data-testid","renderer-scope-stat"),p(),$("icon",o.icon()),p(2),T(o.value()),p(),E(o.label()?4:-1))},dependencies:[H,U,oe],styles:[".vc-stat[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;border-radius:.75rem;font-size:.85rem;background:var(--p-surface-100);color:var(--p-surface-800)}.vc-stat__label[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.8rem}.vc-stat--info[_ngcontent-%COMP%]{background:var(--p-blue-100);color:var(--p-blue-700)}.vc-stat--warn[_ngcontent-%COMP%]{background:var(--p-yellow-100);color:var(--p-yellow-800)}.vc-stat--success[_ngcontent-%COMP%]{background:var(--p-green-100);color:var(--p-green-700)}.vc-stat--danger[_ngcontent-%COMP%]{background:var(--p-red-100);color:var(--p-red-700)}"],changeDetection:0})}return e})();var ze={"card.title.right":Qt,"card.subtitle.left":De,"card.footer.left":De,"card.footer.right":De,"graph.node.alert":Yt,"inspector.header.badge":Vt,"inspector.action.button":Wt,"inspector.body.panel.breakdown":$t,"inspector.body.panel.records":jt,"inspector.body.panel.tree":Xt,"inspector.body.panel.key-values":Lt,"inspector.body.panel.link-list":Rt,"inspector.body.panel.markdown":zt,"topbar.nav.start":Jt};function Zt(e){return e in ze}var Ka=new Set(["inspector.body.panel.breakdown","inspector.body.panel.records","inspector.body.panel.tree","inspector.body.panel.key-values","inspector.body.panel.link-list","inspector.body.panel.markdown"]),ce={"topbar.nav.start":{id:"topbar.nav.start",cardinality:"multi",maxItems:3,order:"alphabetical",strategy:"append"},"inspector.header.badge":{id:"inspector.header.badge",cardinality:"multi",maxItems:4,order:"priority",strategy:"append",respectSeverity:!0},"inspector.action.button":{id:"inspector.action.button",cardinality:"multi",order:"priority",strategy:"append",respectSeverity:!0},"inspector.body.panel.breakdown":{id:"inspector.body.panel.breakdown",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.records":{id:"inspector.body.panel.records",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.tree":{id:"inspector.body.panel.tree",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.key-values":{id:"inspector.body.panel.key-values",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.link-list":{id:"inspector.body.panel.link-list",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.markdown":{id:"inspector.body.panel.markdown",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"card.footer.left":{id:"card.footer.left",cardinality:"multi",maxItems:5,order:"priority",strategy:"append",respectSeverity:!0},"card.footer.right":{id:"card.footer.right",cardinality:"multi",maxItems:5,order:"priority",strategy:"append",respectSeverity:!0},"card.subtitle.left":{id:"card.subtitle.left",cardinality:"multi",maxItems:3,order:"priority",strategy:"append",respectSeverity:!0},"card.title.right":{id:"card.title.right",cardinality:"multi",maxItems:2,order:"priority",strategy:"append",respectSeverity:!0},"graph.node.alert":{id:"graph.node.alert",cardinality:"multi",maxItems:1,order:"severity",strategy:"append",showOverflowBadge:!1}};function en(e,i,t,n){let o=ce[i].respectSeverity!==!1,r=e.payload;if(!o&&typeof r=="object"&&r!==null&&"severity"in r){let a=r,{severity:c}=a;r=st(a,["severity"])}let s={pluginId:e.pluginId,extensionId:e.extensionId,contributionId:e.contributionId,nodePath:t,payload:r};return n?.label&&(s.label=n.label),n?.tooltip&&(s.tooltip=n.tooltip),n?.icon&&(s.icon=n.icon),n?.emptyText&&(s.emptyText=n.emptyText),s}var Vi=e=>({inputs:e}),Ui=(e,i)=>i.qualifiedId;function Hi(e,i){e&1&&ht(0)}function Gi(e,i){if(e&1&&(O(0,"span",1),pt(1,Hi,1,0,"ng-container",3),D()),e&2){let t=i.$implicit,n=_(2);S("data-testid","contribution-"+t.qualifiedId.replaceAll("/","-")),p(),$("ngComponentOutlet",n.rendererFor(t.slot))("ngComponentOutletInputs",bt(3,Vi,t.rendererInputs))}}function Wi(e,i){if(e&1&&(O(0,"span",2),C(1),D()),e&2){let t=_(2);$("pTooltip",t.overflowTooltip()),p(),Ne(" ",t.overflowBadge()," ")}}function qi(e,i){if(e&1&&(O(0,"span",0),q(1,Gi,2,5,"span",1,Ui),N(3,Wi,2,2,"span",2),D()),e&2){let t=_();S("data-testid","view-contributions-host-"+t.testidSuffix()),p(),X(t.visible()),p(2),E(t.overflowCount()>0&&t.showOverflowBadge()?3:-1)}}var os=(()=>{class e{slot=P.required();node=P(null);debugSlots=K(At);debugVisible=this.debugSlots.visible;testidSuffix=d(()=>this.slot().replaceAll(".","-"));registry=K(Ft);dispatched=d(()=>{let t=this.node();if(!t)return[];let n=t.contributions??[];if(n.length===0)return[];let o=this.slot(),r=n.filter(s=>s.slot===o).filter(s=>Zt(s.slot));return this.sortBySlotOrder(r,o).map(s=>({qualifiedId:`${s.pluginId}/${s.extensionId}/${s.contributionId}`,slot:s.slot,rendererInputs:this.buildInputs(s,o,t.path)}))});visible=d(()=>{let t=this.dispatched(),n=ce[this.slot()].maxItems;return n===void 0?t:t.slice(0,n)});debugTitle=d(()=>{if(!this.debugVisible())return null;let t=this.dispatched();return t.length===0?null:t.map(n=>n.qualifiedId).join(`
2
+ `)});overflowCount=d(()=>{let t=this.dispatched(),n=ce[this.slot()].maxItems;return n===void 0?0:Math.max(0,t.length-n)});showOverflowBadge=d(()=>ce[this.slot()].showOverflowBadge!==!1);overflowBadge=d(()=>G.overflowBadge(this.overflowCount()));overflowTooltip=d(()=>{let t=this.dispatched(),n=ce[this.slot()].maxItems;if(n===void 0)return"";let o=t.slice(n).map(r=>r.qualifiedId).join(", ");return G.overflowTooltip(o)});rendererFor(t){return ze[t]}buildInputs(t,n,o){let r=`${t.pluginId}/${t.extensionId}/${t.contributionId}`;return en(t,n,o,this.registry.get(r))}sortBySlotOrder(t,n){let o=ce[n].order;return o==="fifo"?t.slice():o==="priority"?t.slice().sort((r,s)=>{let a=this.priorityFor(r),c=this.priorityFor(s);return a!==c?a-c:Ke(r,s)}):o==="severity"?t.slice().sort((r,s)=>{let a=tn(r),c=tn(s);return a!==c?c-a:Ke(r,s)}):t.slice().sort(Ke)}priorityFor(t){let n=`${t.pluginId}/${t.extensionId}/${t.contributionId}`;return this.registry.get(n)?.priority??100}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-view-contributions-host"]],hostVars:4,hostBindings:function(n,o){n&2&&(S("data-debug-slot",o.debugVisible()?o.slot():null)("title",o.debugTitle()),te("sm-debug-slot",o.debugVisible()))},inputs:{slot:[1,"slot"],node:[1,"node"]},decls:1,vars:1,consts:[[1,"vch"],[1,"vch__slot"],["data-testid","view-contributions-host-overflow",1,"vch__overflow",3,"pTooltip"],[4,"ngComponentOutlet","ngComponentOutletInputs"]],template:function(n,o){n&1&&N(0,qi,4,2,"span",0),n&2&&E(o.visible().length>0||o.overflowCount()>0?0:-1)},dependencies:[Ct,H,U],styles:["[_nghost-%COMP%]{display:contents}.vch[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.7rem;flex-wrap:wrap}.vch__slot[_ngcontent-%COMP%]{display:inline-flex}.vch__overflow[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:.125rem .5rem;border-radius:.75rem;background:var(--p-surface-100);color:var(--p-surface-600);font-size:.8rem;cursor:default}"],changeDetection:0})}return e})();function Ke(e,i){let t=`${e.pluginId}/${e.extensionId}/${e.contributionId}`,n=`${i.pluginId}/${i.extensionId}/${i.contributionId}`;return t<n?-1:t>n?1:0}function tn(e){let i=e.payload;if(typeof i!="object"||i===null)return 0;switch(i.severity){case"danger":return 4;case"warn":return 3;case"info":return 2;case"success":return 1;default:return 0}}var us=(()=>{class e{router=K(Ee);theme=K(St);destroyRef=K(dt);constructor(){this.router.events.pipe(Nt(this.destroyRef)).subscribe(t=>{if(t instanceof wt){let n=Xi(t.urlAfterRedirects);n!==null&&je(`ui.view.${n}`)}}),Te(()=>this.syncTheme())}trackFeature(t){je(`ui.feature.${t}`)}syncTheme(){kt({theme_base:this.theme.resolved(),theme_extra:this.theme.extraTheme()??"none"})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Xi(e){return(e.split("?")[0]??"")==="/"?"workspace":null}function Ve(e,i){var t,n=1;e==null&&(e=0),i==null&&(i=0);function o(){var r,s=t.length,a,c=0,l=0;for(r=0;r<s;++r)a=t[r],c+=a.x,l+=a.y;for(c=(c/s-e)*n,l=(l/s-i)*n,r=0;r<s;++r)a=t[r],a.x-=c,a.y-=l}return o.initialize=function(r){t=r},o.x=function(r){return arguments.length?(e=+r,o):e},o.y=function(r){return arguments.length?(i=+r,o):i},o.strength=function(r){return arguments.length?(n=+r,o):n},o}function nn(e){let i=+this._x.call(null,e),t=+this._y.call(null,e);return on(this.cover(i,t),i,t,e)}function on(e,i,t,n){if(isNaN(i)||isNaN(t))return e;var o,r=e._root,s={data:n},a=e._x0,c=e._y0,l=e._x1,m=e._y1,h,y,f,M,g,u,v,x;if(!r)return e._root=s,e;for(;r.length;)if((g=i>=(h=(a+l)/2))?a=h:l=h,(u=t>=(y=(c+m)/2))?c=y:m=y,o=r,!(r=r[v=u<<1|g]))return o[v]=s,e;if(f=+e._x.call(null,r.data),M=+e._y.call(null,r.data),i===f&&t===M)return s.next=r,o?o[v]=s:e._root=s,e;do o=o?o[v]=new Array(4):e._root=new Array(4),(g=i>=(h=(a+l)/2))?a=h:l=h,(u=t>=(y=(c+m)/2))?c=y:m=y;while((v=u<<1|g)===(x=(M>=y)<<1|f>=h));return o[x]=r,o[v]=s,e}function rn(e){var i,t,n=e.length,o,r,s=new Array(n),a=new Array(n),c=1/0,l=1/0,m=-1/0,h=-1/0;for(t=0;t<n;++t)isNaN(o=+this._x.call(null,i=e[t]))||isNaN(r=+this._y.call(null,i))||(s[t]=o,a[t]=r,o<c&&(c=o),o>m&&(m=o),r<l&&(l=r),r>h&&(h=r));if(c>m||l>h)return this;for(this.cover(c,l).cover(m,h),t=0;t<n;++t)on(this,s[t],a[t],e[t]);return this}function an(e,i){if(isNaN(e=+e)||isNaN(i=+i))return this;var t=this._x0,n=this._y0,o=this._x1,r=this._y1;if(isNaN(t))o=(t=Math.floor(e))+1,r=(n=Math.floor(i))+1;else{for(var s=o-t||1,a=this._root,c,l;t>e||e>=o||n>i||i>=r;)switch(l=(i<n)<<1|e<t,c=new Array(4),c[l]=a,a=c,s*=2,l){case 0:o=t+s,r=n+s;break;case 1:t=o-s,r=n+s;break;case 2:o=t+s,n=r-s;break;case 3:t=o-s,n=r-s;break}this._root&&this._root.length&&(this._root=a)}return this._x0=t,this._y0=n,this._x1=o,this._y1=r,this}function sn(){var e=[];return this.visit(function(i){if(!i.length)do e.push(i.data);while(i=i.next)}),e}function ln(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function V(e,i,t,n,o){this.node=e,this.x0=i,this.y0=t,this.x1=n,this.y1=o}function cn(e,i,t){var n,o=this._x0,r=this._y0,s,a,c,l,m=this._x1,h=this._y1,y=[],f=this._root,M,g;for(f&&y.push(new V(f,o,r,m,h)),t==null?t=1/0:(o=e-t,r=i-t,m=e+t,h=i+t,t*=t);M=y.pop();)if(!(!(f=M.node)||(s=M.x0)>m||(a=M.y0)>h||(c=M.x1)<o||(l=M.y1)<r))if(f.length){var u=(s+c)/2,v=(a+l)/2;y.push(new V(f[3],u,v,c,l),new V(f[2],s,v,u,l),new V(f[1],u,a,c,v),new V(f[0],s,a,u,v)),(g=(i>=v)<<1|e>=u)&&(M=y[y.length-1],y[y.length-1]=y[y.length-1-g],y[y.length-1-g]=M)}else{var x=e-+this._x.call(null,f.data),I=i-+this._y.call(null,f.data),b=x*x+I*I;if(b<t){var L=Math.sqrt(t=b);o=e-L,r=i-L,m=e+L,h=i+L,n=f.data}}return n}function dn(e){if(isNaN(m=+this._x.call(null,e))||isNaN(h=+this._y.call(null,e)))return this;var i,t=this._root,n,o,r,s=this._x0,a=this._y0,c=this._x1,l=this._y1,m,h,y,f,M,g,u,v;if(!t)return this;if(t.length)for(;;){if((M=m>=(y=(s+c)/2))?s=y:c=y,(g=h>=(f=(a+l)/2))?a=f:l=f,i=t,!(t=t[u=g<<1|M]))return this;if(!t.length)break;(i[u+1&3]||i[u+2&3]||i[u+3&3])&&(n=i,v=u)}for(;t.data!==e;)if(o=t,!(t=t.next))return this;return(r=t.next)&&delete t.next,o?(r?o.next=r:delete o.next,this):i?(r?i[u]=r:delete i[u],(t=i[0]||i[1]||i[2]||i[3])&&t===(i[3]||i[2]||i[1]||i[0])&&!t.length&&(n?n[v]=t:this._root=t),this):(this._root=r,this)}function pn(e){for(var i=0,t=e.length;i<t;++i)this.remove(e[i]);return this}function un(){return this._root}function fn(){var e=0;return this.visit(function(i){if(!i.length)do++e;while(i=i.next)}),e}function mn(e){var i=[],t,n=this._root,o,r,s,a,c;for(n&&i.push(new V(n,this._x0,this._y0,this._x1,this._y1));t=i.pop();)if(!e(n=t.node,r=t.x0,s=t.y0,a=t.x1,c=t.y1)&&n.length){var l=(r+a)/2,m=(s+c)/2;(o=n[3])&&i.push(new V(o,l,m,a,c)),(o=n[2])&&i.push(new V(o,r,m,l,c)),(o=n[1])&&i.push(new V(o,l,s,a,m)),(o=n[0])&&i.push(new V(o,r,s,l,m))}return this}function gn(e){var i=[],t=[],n;for(this._root&&i.push(new V(this._root,this._x0,this._y0,this._x1,this._y1));n=i.pop();){var o=n.node;if(o.length){var r,s=n.x0,a=n.y0,c=n.x1,l=n.y1,m=(s+c)/2,h=(a+l)/2;(r=o[0])&&i.push(new V(r,s,a,m,h)),(r=o[1])&&i.push(new V(r,m,a,c,h)),(r=o[2])&&i.push(new V(r,s,h,m,l)),(r=o[3])&&i.push(new V(r,m,h,c,l))}t.push(n)}for(;n=t.pop();)e(n.node,n.x0,n.y0,n.x1,n.y1);return this}function vn(e){return e[0]}function hn(e){return arguments.length?(this._x=e,this):this._x}function _n(e){return e[1]}function yn(e){return arguments.length?(this._y=e,this):this._y}function ue(e,i,t){var n=new Ue(i??vn,t??_n,NaN,NaN,NaN,NaN);return e==null?n:n.addAll(e)}function Ue(e,i,t,n,o,r){this._x=e,this._y=i,this._x0=t,this._y0=n,this._x1=o,this._y1=r,this._root=void 0}function xn(e){for(var i={data:e.data},t=i;e=e.next;)t=t.next={data:e.data};return i}var Y=ue.prototype=Ue.prototype;Y.copy=function(){var e=new Ue(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root,t,n;if(!i)return e;if(!i.length)return e._root=xn(i),e;for(t=[{source:i,target:e._root=new Array(4)}];i=t.pop();)for(var o=0;o<4;++o)(n=i.source[o])&&(n.length?t.push({source:n,target:i.target[o]=new Array(4)}):i.target[o]=xn(n));return e};Y.add=nn;Y.addAll=rn;Y.cover=an;Y.data=sn;Y.extent=ln;Y.find=cn;Y.remove=dn;Y.removeAll=pn;Y.root=un;Y.size=fn;Y.visit=mn;Y.visitAfter=gn;Y.x=hn;Y.y=yn;function B(e){return function(){return e}}function ie(e){return(e()-.5)*1e-6}function Yi(e){return e.x+e.vx}function Qi(e){return e.y+e.vy}function He(e){var i,t,n,o=1,r=1;typeof e!="function"&&(e=B(e==null?1:+e));function s(){for(var l,m=i.length,h,y,f,M,g,u,v=0;v<r;++v)for(h=ue(i,Yi,Qi).visitAfter(a),l=0;l<m;++l)y=i[l],g=t[y.index],u=g*g,f=y.x+y.vx,M=y.y+y.vy,h.visit(x);function x(I,b,L,W,Z){var j=I.data,ne=I.r,z=g+ne;if(j){if(j.index>y.index){var se=f-j.x-j.vx,le=M-j.y-j.vy,re=se*se+le*le;re<z*z&&(se===0&&(se=ie(n),re+=se*se),le===0&&(le=ie(n),re+=le*le),re=(z-(re=Math.sqrt(re)))/re*o,y.vx+=(se*=re)*(z=(ne*=ne)/(u+ne)),y.vy+=(le*=re)*z,j.vx-=se*(z=1-z),j.vy-=le*z)}return}return b>f+z||W<f-z||L>M+z||Z<M-z}}function a(l){if(l.data)return l.r=t[l.data.index];for(var m=l.r=0;m<4;++m)l[m]&&l[m].r>l.r&&(l.r=l[m].r)}function c(){if(i){var l,m=i.length,h;for(t=new Array(m),l=0;l<m;++l)h=i[l],t[h.index]=+e(h,l,i)}}return s.initialize=function(l,m){i=l,n=m,c()},s.iterations=function(l){return arguments.length?(r=+l,s):r},s.strength=function(l){return arguments.length?(o=+l,s):o},s.radius=function(l){return arguments.length?(e=typeof l=="function"?l:B(+l),c(),s):e},s}function Ji(e){return e.index}function bn(e,i){var t=e.get(i);if(!t)throw new Error("node not found: "+i);return t}function Ge(e){var i=Ji,t=h,n,o=B(30),r,s,a,c,l,m=1;e==null&&(e=[]);function h(u){return 1/Math.min(a[u.source.index],a[u.target.index])}function y(u){for(var v=0,x=e.length;v<m;++v)for(var I=0,b,L,W,Z,j,ne,z;I<x;++I)b=e[I],L=b.source,W=b.target,Z=W.x+W.vx-L.x-L.vx||ie(l),j=W.y+W.vy-L.y-L.vy||ie(l),ne=Math.sqrt(Z*Z+j*j),ne=(ne-r[I])/ne*u*n[I],Z*=ne,j*=ne,W.vx-=Z*(z=c[I]),W.vy-=j*z,L.vx+=Z*(z=1-z),L.vy+=j*z}function f(){if(s){var u,v=s.length,x=e.length,I=new Map(s.map((L,W)=>[i(L,W,s),L])),b;for(u=0,a=new Array(v);u<x;++u)b=e[u],b.index=u,typeof b.source!="object"&&(b.source=bn(I,b.source)),typeof b.target!="object"&&(b.target=bn(I,b.target)),a[b.source.index]=(a[b.source.index]||0)+1,a[b.target.index]=(a[b.target.index]||0)+1;for(u=0,c=new Array(x);u<x;++u)b=e[u],c[u]=a[b.source.index]/(a[b.source.index]+a[b.target.index]);n=new Array(x),M(),r=new Array(x),g()}}function M(){if(s)for(var u=0,v=e.length;u<v;++u)n[u]=+t(e[u],u,e)}function g(){if(s)for(var u=0,v=e.length;u<v;++u)r[u]=+o(e[u],u,e)}return y.initialize=function(u,v){s=u,l=v,f()},y.links=function(u){return arguments.length?(e=u,f(),y):e},y.id=function(u){return arguments.length?(i=u,y):i},y.iterations=function(u){return arguments.length?(m=+u,y):m},y.strength=function(u){return arguments.length?(t=typeof u=="function"?u:B(+u),M(),y):t},y.distance=function(u){return arguments.length?(o=typeof u=="function"?u:B(+u),g(),y):o},y}var Zi={value:()=>{}};function wn(){for(var e=0,i=arguments.length,t={},n;e<i;++e){if(!(n=arguments[e]+"")||n in t||/[\s.]/.test(n))throw new Error("illegal type: "+n);t[n]=[]}return new Ie(t)}function Ie(e){this._=e}function eo(e,i){return e.trim().split(/^|\s+/).map(function(t){var n="",o=t.indexOf(".");if(o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),t&&!i.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}Ie.prototype=wn.prototype={constructor:Ie,on:function(e,i){var t=this._,n=eo(e+"",t),o,r=-1,s=n.length;if(arguments.length<2){for(;++r<s;)if((o=(e=n[r]).type)&&(o=to(t[o],e.name)))return o;return}if(i!=null&&typeof i!="function")throw new Error("invalid callback: "+i);for(;++r<s;)if(o=(e=n[r]).type)t[o]=Cn(t[o],e.name,i);else if(i==null)for(o in t)t[o]=Cn(t[o],e.name,null);return this},copy:function(){var e={},i=this._;for(var t in i)e[t]=i[t].slice();return new Ie(e)},call:function(e,i){if((o=arguments.length-2)>0)for(var t=new Array(o),n=0,o,r;n<o;++n)t[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=this._[e],n=0,o=r.length;n<o;++n)r[n].value.apply(i,t)},apply:function(e,i,t){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],o=0,r=n.length;o<r;++o)n[o].value.apply(i,t)}};function to(e,i){for(var t=0,n=e.length,o;t<n;++t)if((o=e[t]).name===i)return o.value}function Cn(e,i,t){for(var n=0,o=e.length;n<o;++n)if(e[n].name===i){e[n]=Zi,e=e.slice(0,n).concat(e.slice(n+1));break}return t!=null&&e.push({name:i,value:t}),e}var We=wn;var ve=0,xe=0,ye=0,Mn=1e3,Oe,be,Pe=0,fe=0,Ae=0,Ce=typeof performance=="object"&&performance.now?performance:Date,Nn=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Ye(){return fe||(Nn(no),fe=Ce.now()+Ae)}function no(){fe=0}function qe(){this._call=this._time=this._next=null}qe.prototype=Fe.prototype={constructor:qe,restart:function(e,i,t){if(typeof e!="function")throw new TypeError("callback is not a function");t=(t==null?Ye():+t)+(i==null?0:+i),!this._next&&be!==this&&(be?be._next=this:Oe=this,be=this),this._call=e,this._time=t,Xe()},stop:function(){this._call&&(this._call=null,this._time=1/0,Xe())}};function Fe(e,i,t){var n=new qe;return n.restart(e,i,t),n}function En(){Ye(),++ve;for(var e=Oe,i;e;)(i=fe-e._time)>=0&&e._call.call(void 0,i),e=e._next;--ve}function Tn(){fe=(Pe=Ce.now())+Ae,ve=xe=0;try{En()}finally{ve=0,oo(),fe=0}}function io(){var e=Ce.now(),i=e-Pe;i>Mn&&(Ae-=i,Pe=e)}function oo(){for(var e,i=Oe,t,n=1/0;i;)i._call?(n>i._time&&(n=i._time),e=i,i=i._next):(t=i._next,i._next=null,i=e?e._next=t:Oe=t);be=e,Xe(n)}function Xe(e){if(!ve){xe&&(xe=clearTimeout(xe));var i=e-fe;i>24?(e<1/0&&(xe=setTimeout(Tn,e-Ce.now()-Ae)),ye&&(ye=clearInterval(ye))):(ye||(Pe=Ce.now(),ye=setInterval(io,Mn)),ve=1,Nn(Tn))}}function kn(){let e=1;return()=>(e=(1664525*e+1013904223)%4294967296)/4294967296}function Sn(e){return e.x}function Dn(e){return e.y}var ro=10,ao=Math.PI*(3-Math.sqrt(5));function Qe(e){var i,t=1,n=.001,o=1-Math.pow(n,1/300),r=0,s=.6,a=new Map,c=Fe(h),l=We("tick","end"),m=kn();e==null&&(e=[]);function h(){y(),l.call("tick",i),t<n&&(c.stop(),l.call("end",i))}function y(g){var u,v=e.length,x;g===void 0&&(g=1);for(var I=0;I<g;++I)for(t+=(r-t)*o,a.forEach(function(b){b(t)}),u=0;u<v;++u)x=e[u],x.fx==null?x.x+=x.vx*=s:(x.x=x.fx,x.vx=0),x.fy==null?x.y+=x.vy*=s:(x.y=x.fy,x.vy=0);return i}function f(){for(var g=0,u=e.length,v;g<u;++g){if(v=e[g],v.index=g,v.fx!=null&&(v.x=v.fx),v.fy!=null&&(v.y=v.fy),isNaN(v.x)||isNaN(v.y)){var x=ro*Math.sqrt(.5+g),I=g*ao;v.x=x*Math.cos(I),v.y=x*Math.sin(I)}(isNaN(v.vx)||isNaN(v.vy))&&(v.vx=v.vy=0)}}function M(g){return g.initialize&&g.initialize(e,m),g}return f(),i={tick:y,restart:function(){return c.restart(h),i},stop:function(){return c.stop(),i},nodes:function(g){return arguments.length?(e=g,f(),a.forEach(M),i):e},alpha:function(g){return arguments.length?(t=+g,i):t},alphaMin:function(g){return arguments.length?(n=+g,i):n},alphaDecay:function(g){return arguments.length?(o=+g,i):+o},alphaTarget:function(g){return arguments.length?(r=+g,i):r},velocityDecay:function(g){return arguments.length?(s=1-g,i):1-s},randomSource:function(g){return arguments.length?(m=g,a.forEach(M),i):m},force:function(g,u){return arguments.length>1?(u==null?a.delete(g):a.set(g,M(u)),i):a.get(g)},find:function(g,u,v){var x=0,I=e.length,b,L,W,Z,j;for(v==null?v=1/0:v*=v,x=0;x<I;++x)Z=e[x],b=g-Z.x,L=u-Z.y,W=b*b+L*L,W<v&&(j=Z,v=W);return j},on:function(g,u){return arguments.length>1?(l.on(g,u),i):l.on(g)}}}function Je(){var e,i,t,n,o=B(-30),r,s=1,a=1/0,c=.81;function l(f){var M,g=e.length,u=ue(e,Sn,Dn).visitAfter(h);for(n=f,M=0;M<g;++M)i=e[M],u.visit(y)}function m(){if(e){var f,M=e.length,g;for(r=new Array(M),f=0;f<M;++f)g=e[f],r[g.index]=+o(g,f,e)}}function h(f){var M=0,g,u,v=0,x,I,b;if(f.length){for(x=I=b=0;b<4;++b)(g=f[b])&&(u=Math.abs(g.value))&&(M+=g.value,v+=u,x+=u*g.x,I+=u*g.y);f.x=x/v,f.y=I/v}else{g=f,g.x=g.data.x,g.y=g.data.y;do M+=r[g.data.index];while(g=g.next)}f.value=M}function y(f,M,g,u){if(!f.value)return!0;var v=f.x-i.x,x=f.y-i.y,I=u-M,b=v*v+x*x;if(I*I/c<b)return b<a&&(v===0&&(v=ie(t),b+=v*v),x===0&&(x=ie(t),b+=x*x),b<s&&(b=Math.sqrt(s*b)),i.vx+=v*f.value*n/b,i.vy+=x*f.value*n/b),!0;if(f.length||b>=a)return;(f.data!==i||f.next)&&(v===0&&(v=ie(t),b+=v*v),x===0&&(x=ie(t),b+=x*x),b<s&&(b=Math.sqrt(s*b)));do f.data!==i&&(I=r[f.data.index]*n/b,i.vx+=v*I,i.vy+=x*I);while(f=f.next)}return l.initialize=function(f,M){e=f,t=M,m()},l.strength=function(f){return arguments.length?(o=typeof f=="function"?f:B(+f),m(),l):o},l.distanceMin=function(f){return arguments.length?(s=f*f,l):Math.sqrt(s)},l.distanceMax=function(f){return arguments.length?(a=f*f,l):Math.sqrt(a)},l.theta=function(f){return arguments.length?(c=f*f,l):Math.sqrt(c)},l}function Ze(e){var i=B(.1),t,n,o;typeof e!="function"&&(e=B(e==null?0:+e));function r(a){for(var c=0,l=t.length,m;c<l;++c)m=t[c],m.vx+=(o[c]-m.x)*n[c]*a}function s(){if(t){var a,c=t.length;for(n=new Array(c),o=new Array(c),a=0;a<c;++a)n[a]=isNaN(o[a]=+e(t[a],a,t))?0:+i(t[a],a,t)}}return r.initialize=function(a){t=a,s()},r.strength=function(a){return arguments.length?(i=typeof a=="function"?a:B(+a),s(),r):i},r.x=function(a){return arguments.length?(e=typeof a=="function"?a:B(+a),s(),r):e},r}function et(e){var i=B(.1),t,n,o;typeof e!="function"&&(e=B(e==null?0:+e));function r(a){for(var c=0,l=t.length,m;c<l;++c)m=t[c],m.vy+=(o[c]-m.y)*n[c]*a}function s(){if(t){var a,c=t.length;for(n=new Array(c),o=new Array(c),a=0;a<c;++a)n[a]=isNaN(o[a]=+e(t[a],a,t))?0:+i(t[a],a,t)}}return r.initialize=function(a){t=a,s()},r.strength=function(a){return arguments.length?(i=typeof a=="function"?a:B(+a),s(),r):i},r.y=function(a){return arguments.length?(e=typeof a=="function"?a:B(+a),s(),r):e},r}function tt(e){let i=e.normalize("NFD");return i=i.replace(new RegExp("\\p{Mn}+","gu"),""),i=i.toLowerCase(),i=i.replace(/[-_\s]+/g," "),i=i.replace(/\s+/g," "),i.trim()}function nt(e){let i=new Map;return so(e,i),lo(e,i),i}function so(e,i){for(let t of e){let n=In(t);if(n===null)continue;let o=tt(n);i.has(o)||i.set(o,t.path)}}function lo(e,i){for(let t of e){if(In(t)!==null)continue;let n=co(t.path);if(n.length===0)continue;let o=tt(n);i.has(o)||i.set(o,t.path)}}function In(e){let i=e.frontmatter?.name;return typeof i!="string"||i.length===0?null:i}function co(e){let i=e.split("/").filter(n=>n.length>0);if(i.length===0)return e;let t=i[i.length-1];return t==="SKILL.md"&&i.length>=2?i[i.length-2]:t.replace(/\.md$/,"")}function it(e,i,t){let n=e.charAt(0);if(n!=="/"&&n!=="@")return e;let o=i!==null?i.replace(/^[/@]/,"").trim():tt(e.slice(1));return t.get(o)??e}var po=["network-simplex","longest-path","force"];function Dl(e){return e!=="force"}var uo=["TOP_BOTTOM","BOTTOM_TOP","LEFT_RIGHT","RIGHT_LEFT"];var On={compact:{nodeGap:40,layerGap:56},normal:{nodeGap:64,layerGap:96},spacious:{nodeGap:96,layerGap:144}},Il="network-simplex",Ol="TOP_BOTTOM",Pl="normal";function Al(e){return typeof e=="string"&&po.includes(e)}function Fl(e){return typeof e=="string"&&uo.includes(e)}var ot=260,Pn=120;function Kl(e,i){let t=i?.links??[],n=new Set(e.map(h=>h.path)),o=nt(e),r=new Set,s=0,a=0,c=0,l=0,m=0;for(let h of t){if(!n.has(h.source)){s++;continue}let y=it(h.target,h.trigger?.normalizedTrigger??null,o);if(!n.has(y)){a++;continue}if(h.source===y){c++;continue}let f=An(h.kind,h.source,y);if(r.has(f)){l++;continue}r.add(f),m++}return{raw:t.length,drawn:m,brokenSource:s,brokenTarget:a,selfLoops:c,duplicates:l}}function Vl(e,i){let t=e.map(o=>o.path).sort(),n=i.map(o=>o.id).sort();return`${t.length}|${t.join(",")}|${n.length}|${n.join(",")}`}function Ul(e,i){let t=new Set(e.map(l=>l.path)),n=nt(e),o=new Map,r=i?.links??[];for(let l of r){if(!t.has(l.source))continue;let m=it(l.target,l.trigger?.normalizedTrigger??null,n);if(!t.has(m)||l.source===m)continue;let h=An(l.kind,l.source,m),y=typeof l.confidence=="number"?l.confidence:.6,f=o.get(h);f?y>f.confidence&&(f.confidence=y):o.set(h,{id:h,from:l.source,to:m,kind:l.kind,confidence:y})}let s=[...o.values()],a=new Map;for(let l of e)a.set(l.path,l);let c=new Map;for(let l of i?.nodes??[])c.set(l.path,l);return{nodesByPath:a,apiNodesByPath:c,edges:s}}async function Hl(e,i,t,n){let o={width:ot,height:Pn},r=i.map(m=>({id:m.path,size:o})),s=t.map(m=>({source:m.from,target:m.to})),a=On[n.spacing],c=await e.calculate(r,s,{algorithm:n.algorithm,direction:n.direction,nodeGap:a.nodeGap,layerGap:a.layerGap}),l=new Map;for(let{id:m,position:h}of c.nodes)l.set(m,{x:h.x,y:h.y});return l}function Gl(e,i){let t=e.map(a=>({id:a.path})),n=i.map(a=>({source:a.from,target:a.to})),o=Qe(t).force("link",Ge(n).id(a=>a.id).distance(90).strength(1)).force("charge",Je().strength(-200)).force("center",Ve(0,0)).force("x",Ze(0).strength(.06)).force("y",et(0).strength(.06)).force("collide",He(ot/2+12)).stop(),r=400;for(let a=0;a<r;a++)o.tick();let s=new Map;for(let a of t)s.set(a.id,{x:(a.x??0)-ot/2,y:(a.y??0)-Pn/2});return s}function Wl(e,i,t,n=null){let o=e.edges.filter(c=>i.has(c.from)&&i.has(c.to)&&(n===null||n.has(c.kind))),r=new Map,s=new Map;for(let c of o)r.set(c.from,(r.get(c.from)??0)+1),s.set(c.to,(s.get(c.to)??0)+1);let a=[];for(let c of i){let l=e.nodesByPath.get(c);if(!l)continue;let m=e.apiNodesByPath.get(c),h=t.get(c),y=e.positions.get(c)??{x:0,y:0},f=h?{x:h.x,y:h.y}:y;a.push({id:c,path:c,view:l,kind:l.kind,position:f,stats:{linksIn:s.get(c)??0,linksOut:r.get(c)??0,bytesTotal:m?.bytes.total,tokensTotal:m?.tokens?.total,externalRefsCount:m?.externalRefsCount},summary:fo(l)})}return{nodes:a,edges:o}}function fo(e){let i={injectionDetected:!1,contentQuality:"clean"},t=(e.frontmatter.description??e.frontmatter.name??"").trim();return{kind:"markdown",confidence:.6,safety:i,whatItCovers:t||`${e.kind} entry`,topics:[],keyFacts:[]}}function An(e,i,t){return`${e}:${i}::${t}`}var Fn={invalidHex:e=>`deriveTints: invalid hex color "${e}" (expected #RRGGBB)`};function $e(e,i,t){return[Math.round(e[0]+(i[0]-e[0])*t),Math.round(e[1]+(i[1]-e[1])*t),Math.round(e[2]+(i[2]-e[2])*t)]}function mo(e){let i=/^#([0-9a-f]{6})$/i.exec(e);if(!i)throw new Error(Fn.invalidHex(e));let t=parseInt(i[1],16);return[t>>16&255,t>>8&255,t&255]}function Le([e,i,t]){let n=o=>Math.max(0,Math.min(255,o)).toString(16).padStart(2,"0");return`#${n(e)}${n(i)}${n(t)}`}var $n=[255,255,255],Ln=[0,0,0];function rt(e,i){let t=mo(e);return i==="light"?{bg:Le($e(t,$n,.85)),fg:Le($e(t,Ln,.5))}:{bg:Le($e(t,Ln,.7)),fg:Le($e(t,$n,.6))}}var go=/^[a-zA-Z][a-zA-Z0-9_-]{0,63}$/,Rn=/^#[0-9a-f]{6}$/i,nc=(()=>{class e{doc=K(ct);_entries=F([]);kinds=this._entries.asReadonly();index=d(()=>{let t=new Map;for(let n of this._entries())t.set(n.name,n);return t});ingest(t){if(!t)return;let n=[];for(let[r,s]of Object.entries(t)){if(!go.test(r))continue;let a=s.providers[s.primaryProviderId];if(!a)continue;let c={name:r,primaryProviderId:s.primaryProviderId,providers:s.providers,label:a.label,color:a.color};a.colorDark!==void 0&&(c.colorDark=a.colorDark),a.emoji!==void 0&&(c.emoji=a.emoji),a.icon!==void 0&&(c.icon=a.icon),n.push(c)}let o=this._entries();ho(o,n)||(this._entries.set(n),this.applyCssVars())}lookup(t){return this.index().get(t)}labelOf(t){return this.lookup(t)?.label??t}colorOf(t,n="light"){let o=this.lookup(t);return o?n==="dark"?o.colorDark??o.color:o.color:"#9ca3af"}iconOf(t){return this.lookup(t)?.icon}emojiOf(t){return this.lookup(t)?.emoji}providersOf(t){return this.lookup(t)?.providers}applyCssVars(){if(!this.doc.head)return;let t=vo(this.doc),n=[],o=[];for(let r of this._entries()){if(!Rn.test(r.color))continue;let s=r.colorDark??r.color;if(Rn.test(s))try{let a=rt(r.color,"light"),c=rt(s,"dark");n.push(`--sm-kind-${r.name}: ${r.color};`),n.push(`--sm-kind-${r.name}-bg: ${a.bg};`),n.push(`--sm-kind-${r.name}-fg: ${a.fg};`),o.push(`--sm-kind-${r.name}: ${s};`),o.push(`--sm-kind-${r.name}-bg: ${c.bg};`),o.push(`--sm-kind-${r.name}-fg: ${c.fg};`)}catch{continue}}t.textContent=`:root { ${n.join(" ")} } .app-dark { ${o.join(" ")} }`}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Bn="sm-kind-vars";function vo(e){let i=e.getElementById(Bn);return i||(i=e.createElement("style"),i.id=Bn,e.head.appendChild(i)),i}function ho(e,i){if(e.length!==i.length)return!1;for(let t=0;t<e.length;t++){let n=e[t],o=i[t];if(n.name!==o.name||n.primaryProviderId!==o.primaryProviderId||JSON.stringify(n.providers)!==JSON.stringify(o.providers))return!1}return!0}export{xo as a,bo as b,Co as c,wo as d,It as e,To as f,Mo as g,No as h,Ot as i,Io as j,Pt as k,co as l,po as m,Dl as n,uo as o,Il as p,Ol as q,Pl as r,Al as s,Fl as t,nc as u,At as v,Ft as w,oe as x,Ht as y,ze as z,Zt as A,Ka as B,en as C,os as D,us as E,Kl as F,Vl as G,Ul as H,Hl as I,Gl as J,Wl as K};
@@ -0,0 +1 @@
1
+ import{$ as x,Ac as M,Bc as Z,Cc as Y,Ec as F,Fc as T,H as b,Ia as j,K as c,L as k,La as z,N as g,Na as L,O as f,P as o,Pa as C,Qa as u,Ra as y,Sa as V,Tb as W,Ua as G,Xa as H,Ya as d,Z as E,_ as D,d as N,ja as p,la as m,ra as $,sa as I,ua as U}from"./chunk-Q2A6FWC7.js";var K=null;function w(){return K}function ae(n){K??=n}var R=class{},A=(()=>{class n{historyGo(e){throw new Error("")}static \u0275fac=function(t){return new(t||n)};static \u0275prov=c({token:n,factory:()=>o(X),providedIn:"platform"})}return n})();var X=(()=>{class n extends A{_location;_history;_doc=o(D);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return w().getBaseHref(this._doc)}onPopState(e){let t=w().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),()=>t.removeEventListener("popstate",e)}onHashChange(e){let t=w().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),()=>t.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,t,i){this._history.pushState(e,t,i)}replaceState(e,t,i){this._history.replaceState(e,t,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(t){return new(t||n)};static \u0275prov=c({token:n,factory:()=>new n,providedIn:"platform"})}return n})();function Q(n,r){return n?r?n.endsWith("/")?r.startsWith("/")?n+r.slice(1):n+r:r.startsWith("/")?n+r:`${n}/${r}`:n:r}function q(n){let r=n.search(/#|\?|$/);return n[r-1]==="/"?n.slice(0,r-1)+n.slice(r):n}function l(n){return n&&n[0]!=="?"?`?${n}`:n}var S=(()=>{class n{historyGo(e){throw new Error("")}static \u0275fac=function(t){return new(t||n)};static \u0275prov=c({token:n,factory:()=>o(ce),providedIn:"root"})}return n})(),ue=new g(""),ce=(()=>{class n extends S{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,t){super(),this._platformLocation=e,this._baseHref=t??this._platformLocation.getBaseHrefFromDOM()??o(D).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Q(this._baseHref,e)}path(e=!1){let t=this._platformLocation.pathname+l(this._platformLocation.search),i=this._platformLocation.hash;return i&&e?`${t}${i}`:t}pushState(e,t,i,s){let a=this.prepareExternalUrl(i+l(s));this._platformLocation.pushState(e,t,a)}replaceState(e,t,i,s){let a=this.prepareExternalUrl(i+l(s));this._platformLocation.replaceState(e,t,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(t){return new(t||n)(f(A),f(ue,8))};static \u0275prov=c({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var ee=(()=>{class n{_subject=new N;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let t=this._locationStrategy.getBaseHref();this._basePath=fe(q(J(t))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+l(t))}normalize(e){return n.stripTrailingSlash(le(this._basePath,J(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,t="",i=null){this._locationStrategy.pushState(i,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+l(t)),i)}replaceState(e,t="",i=null){this._locationStrategy.replaceState(i,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+l(t)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}),()=>{let t=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(t,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(i=>i(e,t))}subscribe(e,t,i){return this._subject.subscribe({next:e,error:t??void 0,complete:i??void 0})}static normalizeQueryParams=l;static joinWithSlash=Q;static stripTrailingSlash=q;static \u0275fac=function(t){return new(t||n)(f(S))};static \u0275prov=c({token:n,factory:()=>de(),providedIn:"root"})}return n})();function de(){return new ee(f(S))}function le(n,r){if(!n||!r.startsWith(n))return r;let e=r.substring(n.length);return e===""||["/",";","?","#"].includes(e[0])?e:r}function J(n){return n.replace(/\/index.html$/,"")}function fe(n){if(new RegExp("^(https?:)?//").test(n)){let[,e]=n.split(/\/\/[^\/]+/);return e}return n}var P=/\s+/,te=[],ge=(()=>{class n{_ngEl;_renderer;initialClasses=te;rawClass;stateMap=new Map;constructor(e,t){this._ngEl=e,this._renderer=t}set klass(e){this.initialClasses=e!=null?e.trim().split(P):te}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(P):e}ngDoCheck(){for(let t of this.initialClasses)this._updateState(t,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let t of e)this._updateState(t,!0);else if(e!=null)for(let t of Object.keys(e))this._updateState(t,!!e[t]);this._applyStateDiff()}_updateState(e,t){let i=this.stateMap.get(e);i!==void 0?(i.enabled!==t&&(i.changed=!0,i.enabled=t),i.touched=!0):this.stateMap.set(e,{enabled:t,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let t=e[0],i=e[1];i.changed?(this._toggleClass(t,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(t,!1),this.stateMap.delete(t)),i.touched=!1}}_toggleClass(e,t){e=e.trim(),e.length>0&&e.split(P).forEach(i=>{t?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static \u0275fac=function(t){return new(t||n)(u(m),u(C))};static \u0275dir=d({type:n,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return n})(),De=(()=>{class n{_viewContainerRef;ngComponentOutlet=null;ngComponentOutletInputs;ngComponentOutletInjector;ngComponentOutletEnvironmentInjector;ngComponentOutletContent;ngComponentOutletNgModule;_componentRef;_moduleRef;_inputsUsed=new Map;get componentInstance(){return this._componentRef?.instance??null}constructor(e){this._viewContainerRef=e}_needToReCreateNgModuleInstance(e){return e.ngComponentOutletNgModule!==void 0}_needToReCreateComponentInstance(e){return e.ngComponentOutlet!==void 0||e.ngComponentOutletContent!==void 0||e.ngComponentOutletInjector!==void 0||e.ngComponentOutletEnvironmentInjector!==void 0||this._needToReCreateNgModuleInstance(e)}ngOnChanges(e){if(this._needToReCreateComponentInstance(e)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){let t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(e)&&(this._moduleRef?.destroy(),this.ngComponentOutletNgModule?this._moduleRef=G(this.ngComponentOutletNgModule,pe(t)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:t,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent,environmentInjector:this.ngComponentOutletEnvironmentInjector})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(let e of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(e,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(e){for(let[t,i]of this._inputsUsed)i?(e.setInput(t,this.ngComponentOutletInputs[t]),this._inputsUsed.set(t,!1)):(e.setInput(t,void 0),this._inputsUsed.delete(t))}static \u0275fac=function(t){return new(t||n)(u(y))};static \u0275dir=d({type:n,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletEnvironmentInjector:"ngComponentOutletEnvironmentInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule"},exportAs:["ngComponentOutlet"],features:[p]})}return n})();function pe(n){return n.get(V).injector}var _=class{$implicit;ngForOf;index;count;constructor(r,e,t,i){this.$implicit=r,this.ngForOf=e,this.index=t,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},re=(()=>{class n{_viewContainer;_template;_differs;set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(e,t,i){this._viewContainer=e,this._template=t,this._differs=i}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let t=this._viewContainer;e.forEachOperation((i,s,a)=>{if(i.previousIndex==null)t.createEmbeddedView(this._template,new _(i.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)t.remove(s===null?void 0:s);else if(s!==null){let h=t.get(s);t.move(h,a),ne(h,i)}});for(let i=0,s=t.length;i<s;i++){let h=t.get(i).context;h.index=i,h.count=s,h.ngForOf=this._ngForOf}e.forEachIdentityChange(i=>{let s=t.get(i.currentIndex);ne(s,i)})}static ngTemplateContextGuard(e,t){return!0}static \u0275fac=function(t){return new(t||n)(u(y),u(L),u(Z))};static \u0275dir=d({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return n})();function ne(n,r){n.context.$implicit=r.item}var me=(()=>{class n{_viewContainer;_context=new v;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,t){this._viewContainer=e,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){ie(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){ie(e,!1),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,t){return!0}static \u0275fac=function(t){return new(t||n)(u(y),u(L))};static \u0275dir=d({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return n})(),v=class{$implicit=null;ngIf=null};function ie(n,r){if(n&&!n.createEmbeddedView)throw new b(2020,!1)}var Ce=(()=>{class n{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,t,i){this._ngEl=e,this._differs=t,this._renderer=i}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){let[i,s]=e.split("."),a=i.indexOf("-")===-1?void 0:j.DashCase;t!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,s?`${t}${s}`:t,a):this._renderer.removeStyle(this._ngEl.nativeElement,i,a)}_applyChanges(e){e.forEachRemovedItem(t=>this._setStyle(t.key,null)),e.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),e.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}static \u0275fac=function(t){return new(t||n)(u(m),u(Y),u(C))};static \u0275dir=d({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return n})(),ye=(()=>{class n{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=o(E);constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let t=this._viewContainerRef;if(this._viewRef&&t.remove(t.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=t.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,t,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,t,i):!1,get:(e,t,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,t,i)}})}static \u0275fac=function(t){return new(t||n)(u(y))};static \u0275dir=d({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[p]})}return n})();var Fe=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=k({})}return n})();function Ee(n,r){r=encodeURIComponent(r);for(let e of n.split(";")){let t=e.indexOf("="),[i,s]=t==-1?[e,""]:[e.slice(0,t),e.slice(t+1)];if(i.trim()===r)return decodeURIComponent(s)}return null}var B=class{};var we="browser",Ae="server";function Mn(n){return n===we}function Tn(n){return n===Ae}var oe=n=>n.src,Se=new g("",{factory:()=>oe});var se=/^((\s*\d+w\s*(,|$)){1,})$/;var _e=[1,2],ve=640;var be=1920,Ie=1080;var Rn=(()=>{class n{imageLoader=o(Se);config=Le(o(I));renderer=o(C);imgElement=o(m).nativeElement;injector=o(E);destroyRef=o(x);lcpObserver;_renderedSrc=null;ngSrc;ngSrcset;sizes;width;height;decoding;loading;priority=!1;loaderParams;disableOptimizedSrcset=!1;fill=!1;placeholder;placeholderConfig;src;srcset;constructor(){this.destroyRef.onDestroy(()=>{this.renderer.removeAttribute(this.imgElement,"loading")})}ngOnInit(){z("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("decoding",this.getDecoding()),this.setHostAttribute("ng-img","true");let e=this.updateSrcAndSrcset();this.sizes?this.getLoadingBehavior()==="lazy"?this.setHostAttribute("sizes","auto, "+this.sizes):this.setHostAttribute("sizes",this.sizes):this.ngSrcset&&se.test(this.ngSrcset)&&this.getLoadingBehavior()==="lazy"&&this.setHostAttribute("sizes","auto, 100vw")}ngOnChanges(e){if(e.ngSrc&&!e.ngSrc.isFirstChange()){let t=this._renderedSrc;this.updateSrcAndSrcset(!0)}}getAspectRatio(){return this.width&&this.height&&this.height!==0?this.width/this.height:null}callImageLoader(e){let t=e;this.loaderParams&&(t.loaderParams=this.loaderParams);let i=this.getAspectRatio();return i!==null&&t.width&&(t.height=Math.round(t.width/i)),this.imageLoader(t)}getLoadingBehavior(){return!this.priority&&this.loading!==void 0?this.loading:this.priority?"eager":"lazy"}getFetchPriority(){return this.priority?"high":"auto"}getDecoding(){return this.priority?"sync":this.decoding??"auto"}getRewrittenSrc(){if(!this._renderedSrc){let e={src:this.ngSrc};this._renderedSrc=this.callImageLoader(e)}return this._renderedSrc}getRewrittenSrcset(){let e=se.test(this.ngSrcset);return this.ngSrcset.split(",").filter(i=>i!=="").map(i=>{i=i.trim();let s=e?parseFloat(i):parseFloat(i)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:s})} ${i}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:e}=this.config,t=e;return this.sizes?.trim()==="100vw"&&(t=e.filter(s=>s>=ve)),t.map(s=>`${this.callImageLoader({src:this.ngSrc,width:s})} ${s}w`).join(", ")}updateSrcAndSrcset(e=!1){e&&(this._renderedSrc=null);let t=this.getRewrittenSrc();this.setHostAttribute("src",t);let i;return this.ngSrcset?i=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(i=this.getAutomaticSrcset()),i&&this.setHostAttribute("srcset",i),i}getFixedSrcset(){return _e.map(t=>`${this.callImageLoader({src:this.ngSrc,width:this.width*t})} ${t}x`).join(", ")}shouldGenerateAutomaticSrcset(){let e=!1;return this.sizes||(e=this.width>be||this.height>Ie),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==oe&&!e}generatePlaceholder(e){let{placeholderResolution:t}=this.config;return e===!0?`url(${this.callImageLoader({src:this.ngSrc,width:t,isPlaceholder:!0})})`:typeof e=="string"?`url(${e})`:null}shouldBlurPlaceholder(e){return!e||!e.hasOwnProperty("blur")?!0:!!e.blur}removePlaceholderOnLoad(e){let t=()=>{let a=this.injector.get(M);i(),s(),this.placeholder=!1,a.markForCheck()},i=this.renderer.listen(e,"load",t),s=this.renderer.listen(e,"error",t);this.destroyRef.onDestroy(()=>{i(),s()}),Me(e,t)}setHostAttribute(e,t){this.renderer.setAttribute(this.imgElement,e,t)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=d({type:n,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(t,i){t&2&&W("position",i.fill?"absolute":null)("width",i.fill?"100%":null)("height",i.fill?"100%":null)("inset",i.fill?"0":null)("background-size",i.placeholder?"cover":null)("background-position",i.placeholder?"50% 50%":null)("background-repeat",i.placeholder?"no-repeat":null)("background-image",i.placeholder?i.generatePlaceholder(i.placeholder):null)("filter",i.placeholder&&i.shouldBlurPlaceholder(i.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[2,"ngSrc","ngSrc",Te],ngSrcset:"ngSrcset",sizes:"sizes",width:[2,"width","width",T],height:[2,"height","height",T],decoding:"decoding",loading:"loading",priority:[2,"priority","priority",F],loaderParams:"loaderParams",disableOptimizedSrcset:[2,"disableOptimizedSrcset","disableOptimizedSrcset",F],fill:[2,"fill","fill",F],placeholder:[2,"placeholder","placeholder",Re],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},features:[p]})}return n})();function Le(n){let r={};return n.breakpoints&&(r.breakpoints=n.breakpoints.sort((e,t)=>e-t)),Object.assign({},$,n,r)}function Me(n,r){n.complete&&n.naturalWidth&&r()}function Te(n){return typeof n=="string"?n:U(n)}function Re(n){return typeof n=="string"&&n!=="true"&&n!=="false"&&n!==""?n:F(n)}export{w as a,ae as b,R as c,A as d,ee as e,ge as f,De as g,re as h,me as i,Ce as j,ye as k,Fe as l,Ee as m,B as n,we as o,Mn as p,Tn as q,Rn as r};
@@ -0,0 +1 @@
1
+ import{$ as l,B as C,E as A,H as k,K as g,N as h,P as c,_ as j,c as S,d as R,f as O,ga as d,ia as y,sc as p,u as _}from"./chunk-Q2A6FWC7.js";import{a as m,b}from"./chunk-WCABR6TI.js";function w(t){t||(t=c(l));let r=new S(e=>{if(t.destroyed){e.next();return}return t.onDestroy(e.next.bind(e))});return e=>e.pipe(A(r))}function Ee(t,r){let n=!r?.manualCleanup?r?.injector?.get(l)??c(l):null,o=G(r?.equal),s;r?.requireSync?s=d({kind:0},{equal:o}):s=d({kind:1,value:r?.initialValue},{equal:o});let a,i=t.subscribe({next:u=>s.set({kind:1,value:u}),error:u=>{s.set({kind:2,error:u}),a?.()},complete:()=>{a?.()}});if(r?.requireSync&&s().kind===0)throw new k(601,!1);return a=n?.onDestroy(i.unsubscribe.bind(i)),p(()=>{let u=s();switch(u.kind){case 1:return u.value;case 2:throw u.error;case 0:throw new k(601,!1)}},{equal:r?.equal})}function G(t=Object.is){return(r,e)=>r.kind===1&&e.kind===1&&t(r.value,e.value)}var N=new h("DATA_SOURCE"),F=class extends Error{code;details;constructor(r,e,n){super(e),this.name="DataSourceError",this.code=r,this.details=n}};var U=new h("SKILL_MAP_MODE");function Te(){return typeof document>"u"?"live":document.querySelector('meta[name="skill-map-mode"]')?.content==="demo"?"demo":"live"}function D(t){if(typeof t!="object"||t===null)return!1;let r=t;if(typeof r.type!="string"||r.type.length===0)return!1;let e=r.timestamp;return!(typeof e!="number"&&typeof e!="string"||!("data"in r))}function L(t){if(!D(t)||t.type!=="sidecar.bumped")return!1;let r=t.data;if(typeof r!="object"||r===null||typeof r.nodePath!="string"||r.nodePath.length===0)return!1;let e=r.version;return!(e!==null&&typeof e!="number"||r.status!=="fresh")}var f={connected:t=>`[ws] connected to ${t}`,closed:(t,r)=>`[ws] closed (code=${t}, reason="${r}")`,malformedFrame:t=>`[ws] malformed frame dropped: ${t}`,socketError:t=>`[ws] socket error: ${t}`,reconnectScheduled:(t,r)=>`[ws] reconnect attempt ${r} scheduled in ${t}ms`,reconnectGiveUp:t=>`[ws] giving up after ${t} failed reconnect attempts`};var P=[1e3,2e3,4e3,8e3,16e3,3e4],$=10,X=new Set([1e3]);function z(){return typeof window>"u"||!window.location?"ws://127.0.0.1:4242/ws":`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`}var J=new h("WS_SOCKET_FACTORY",{providedIn:"root",factory:()=>t=>new WebSocket(t)}),Z=new h("WS_URL",{providedIn:"root",factory:()=>z()}),K=(()=>{class t{mode=c(U);destroyRef=c(l);subject=new R;socket=null;reconnectTimer=null;reconnectAttempt=0;disposed=!1;_connectionState=d("connecting");connectionState=this._connectionState.asReadonly();socketFactory=c(J);url=c(Z);events$;scanCompleted$;sidecarBumped$;constructor(){this.mode!=="live"?this.events$=O:this.events$=new S(e=>{!this.socket&&!this.disposed&&this.connect();let n=this.subject.subscribe(e);return()=>n.unsubscribe()}).pipe(C({resetOnRefCountZero:!1})),this.scanCompleted$=this.events$.pipe(_(e=>e.type==="scan.completed")),this.sidecarBumped$=this.events$.pipe(_(L)),this.destroyRef.onDestroy(()=>this.disconnect())}disconnect(){if(!this.disposed){if(this.disposed=!0,this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.socket){try{this.socket.close(1e3,"client disconnect")}catch{}this.socket=null}this.subject.complete()}}reconnect(){this.disposed||this.socket||(this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.reconnectAttempt=0,this._connectionState.set("connecting"),this.connect())}ngOnDestroy(){this.disconnect()}connect(){if(this.disposed)return;let e;try{e=this.socketFactory(this.url)}catch(n){let o=n instanceof Error?n.message:String(n);console.warn(f.socketError(o)),this.scheduleReconnect();return}this.socket=e,e.onopen=()=>{this.reconnectAttempt=0,this._connectionState.set("open"),console.info(f.connected(this.url))},e.onmessage=n=>{this.handleFrame(n.data)},e.onerror=n=>{let o=typeof n=="object"&&n!==null&&"message"in n?String(n.message??"unknown"):"unknown";console.warn(f.socketError(o))},e.onclose=n=>{console.info(f.closed(n.code,n.reason)),this.socket=null,!this.disposed&&(X.has(n.code)||this.scheduleReconnect())}}handleFrame(e){if(typeof e!="string"){console.warn(f.malformedFrame("non-string frame"));return}let n;try{n=JSON.parse(e)}catch(o){let s=o instanceof Error?o.message:String(o);console.warn(f.malformedFrame(s));return}if(!D(n)){console.warn(f.malformedFrame("envelope shape"));return}this.subject.next(n)}scheduleReconnect(){if(this.disposed)return;if(this.reconnectAttempt>=$){console.warn(f.reconnectGiveUp($)),this._connectionState.set("lost");return}this._connectionState.set("reconnecting");let e=Math.min(this.reconnectAttempt,P.length-1),n=P[e];this.reconnectAttempt+=1,console.info(f.reconnectScheduled(n,this.reconnectAttempt)),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},n)}get _reconnectAttempt(){return this.reconnectAttempt}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Be=(()=>{class t{dataSource=c(N);wsEvents=c(K);destroyRef=c(l);_nodes=d([]);_scan=d(null);_loading=d(!1);_error=d(null);pendingRefresh=!1;wsConnectedBefore=!1;nodes=this._nodes.asReadonly();scan=this._scan.asReadonly();loading=this._loading.asReadonly();error=this._error.asReadonly();count=p(()=>this._nodes().length);byKind=p(()=>{let e=new Map;for(let n of this._nodes()){let o=e.get(n.kind);o?o.push(n):e.set(n.kind,[n])}return e});hasAnyFavorites=p(()=>this._nodes().some(e=>e.isFavorite===!0));constructor(){this.wsEvents.scanCompleted$.pipe(w(this.destroyRef)).subscribe(()=>{this.load()}),this.wsEvents.sidecarBumped$.pipe(w(this.destroyRef)).subscribe(e=>{this.patchSidecarFromBump({nodePath:e.data.nodePath,version:e.data.version,status:e.data.status})}),y(()=>{this.wsEvents.connectionState()==="open"&&(this.wsConnectedBefore&&this.load(),this.wsConnectedBefore=!0)})}setFavoriteLocal(e,n){this._nodes.update(o=>{let s=!1,a=o.map(i=>i.path!==e||i.isFavorite===n?i:(s=!0,b(m({},i),{isFavorite:n})));return s?a:o})}async toggleFavorite(e,n){this.setFavoriteLocal(e,n);try{return n?await this.dataSource.setFavorite(e):await this.dataSource.unsetFavorite(e),n}catch(o){this.setFavoriteLocal(e,!n);let s=o instanceof Error?o.message:String(o);return this._error.set(s),!n}}patchSidecarFromBump(e){this._nodes.update(n=>{let o=!1,s=n.map(a=>{if(a.path!==e.nodePath)return a;o=!0;let i=a.sidecar,u=m({},i?.annotations??{});return e.version!==null&&(u.version=e.version),b(m({},a),{sidecar:m({present:!0,status:e.status,annotations:u},i?.root===void 0?{}:{root:i.root})})});return o?s:n})}async load(){if(this._loading()){this.pendingRefresh=!0;return}this._loading.set(!0),this._error.set(null);try{let e=await this.dataSource.loadScan();this._scan.set(e),this._nodes.set(e.nodes.map(Q))}catch(e){let n=e instanceof Error?e.message:String(e);this._error.set(n)}finally{this._loading.set(!1),this.pendingRefresh&&(this.pendingRefresh=!1,queueMicrotask(()=>{this.load()}))}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Q(t){let r=t.kind,e=t.frontmatter??{},n=b(m({},e),{name:typeof e.name=="string"?e.name:"",description:typeof e.description=="string"?e.description:""}),o={path:t.path,kind:r,provider:t.provider,frontmatter:n,linksOutCount:t.linksOutCount,linksInCount:t.linksInCount,externalRefsCount:t.externalRefsCount,bytesTotal:t.bytes?.total,tokensTotal:t.tokens?.total,bodyHash:t.bodyHash,frontmatterHash:t.frontmatterHash,isFavorite:t.isFavorite===!0};return t.sidecar&&(o.sidecar=m({},t.sidecar)),t.contributions&&(o.contributions=[...t.contributions]),o}var Ve="https://bb9dce0fd2cb4ab27ac0475aa394aeb4@o4511475590037504.ingest.de.sentry.io/4511475725959248",x="phc_vMX3PcNeDsacWNg2hYEbKVXDijSWcjKFzabCkzU7RNEr",q="https://eu.i.posthog.com";var ee="<HOME>",te=["server_name","user"],ne=[/[A-Za-z]:[\\/]Users[\\/][^\\/\s:*?"<>|]+/g,/\/(?:home|Users)\/[^/\s:]+/g,/\/root(?=\/|\b)/g];function re(t){let r=t;for(let e of ne)r=r.replace(e,ee);return r}function B(t){let r=T(t);if(r!==null&&typeof r=="object"&&!Array.isArray(r)){let e=r;for(let n of te)n in e&&delete e[n]}return r}function T(t){if(typeof t=="string")return re(t);if(Array.isArray(t))return t.map(r=>T(r));if(t!==null&&typeof t=="object"){let r={};for(let[e,n]of Object.entries(t))r[e]=T(n);return r}return t}var W=!1,v=null;async function Ze(t){if(W||x===""||!t.consentEnabled||t.distinctId===null)return;let{default:r}=await import("./chunk-P3SNMV4X.js");r.init(x,{api_host:q,autocapture:!1,capture_pageview:!1,capture_pageleave:!1,disable_session_recording:!0,person_profiles:"identified_only",bootstrap:{distinctID:t.distinctId},before_send:e=>e===null?null:B(e)}),v=r,W=!0}function Qe(t,r={}){v!==null&&v.capture(t,r)}function et(t){v!==null&&v.register(t)}var M=[{id:"matrix",htmlClass:"app-matrix",forcesDark:!0,favicon:"favicon-matrix.svg",fontHref:"https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap",fontLinkId:"sm-matrix-font",label:"Matrix",description:"Cyber-green retint on the dark palette."}];function E(t){return t?M.find(r=>r.id===t)??null:null}var Y="skill-map.ui.theme",I="skill-map.ui.extra-theme",oe="app-dark",se="dark",V="(prefers-color-scheme: dark)",ie="favicon.svg",ce='link[rel="icon"][type="image/svg+xml"]',ct=(()=>{class t{doc=c(j);destroyRef=c(l);mode=d(this.readInitialMode());extraTheme=d(this.readInitialExtra());systemPrefersDark=d(this.readSystemPref());resolved=p(()=>{let e=this.mode();return e==="auto"?this.systemPrefersDark()?"dark":"light":e});constructor(){this.subscribeToSystemPref(),y(()=>{let e=this.extraTheme(),n=E(e),s=this.resolved()==="dark"||n?.forcesDark===!0,a=this.doc.documentElement;a.classList.toggle(oe,s),a.classList.toggle(se,s);for(let i of M)a.classList.toggle(i.htmlClass,n?.id===i.id);this.applyFavicon(n?.favicon??ie),n&&this.ensureExtraThemeFont(n);try{let i=this.doc.defaultView?.localStorage;i?.setItem(Y,this.mode()),n===null?i?.removeItem(I):i?.setItem(I,n.id)}catch{}})}toggle(){this.extraTheme()!==null&&this.extraTheme.set(null),this.mode.update(e=>e==="auto"?"light":e==="light"?"dark":"auto")}set(e){this.mode.set(e)}setExtraTheme(e){this.extraTheme.set(E(e)?.id??null)}readInitialMode(){try{let e=this.doc.defaultView?.localStorage.getItem(Y);if(e==="auto"||e==="light"||e==="dark")return e}catch{}return"auto"}readInitialExtra(){try{let e=this.doc.defaultView?.localStorage.getItem(I);return E(e)?.id??null}catch{return null}}readSystemPref(){try{return this.doc.defaultView?.matchMedia(V).matches??!1}catch{return!1}}ensureExtraThemeFont(e){if(!e.fontHref||!e.fontLinkId||this.doc.getElementById(e.fontLinkId))return;let n=this.doc.head;if(!n)return;let o=this.doc.createElement("link");o.id=e.fontLinkId,o.rel="stylesheet",o.href=e.fontHref,n.appendChild(o)}applyFavicon(e){let n=this.doc.querySelector(ce);n&&n.getAttribute("href")!==e&&n.setAttribute("href",e)}subscribeToSystemPref(){let e=this.doc.defaultView;if(!e||typeof e.matchMedia!="function")return;let n=e.matchMedia(V),o=s=>{this.systemPrefersDark.set(s.matches)};n.addEventListener("change",o),this.destroyRef.onDestroy(()=>n.removeEventListener("change",o))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();export{w as a,Ee as b,N as c,F as d,U as e,Te as f,K as g,Be as h,Ve as i,B as j,Ze as k,Qe as l,et as m,M as n,ct as o};
@@ -0,0 +1,2 @@
1
+ import{a as G,b as ot,c as st,d as it,m as re,n as ne,o as at}from"./chunk-LCOYSPKE.js";import{$ as $e,Aa as qe,Ba as Qe,Ca as et,D as ze,Da as k,Dc as nt,H as g,Ia as $,Ja as tt,K as m,Ka as te,N as R,O as l,Oa as rt,P as v,Q as Ee,R as He,S as Te,T as Ve,_ as M,c as ge,ca as V,da as we,ha as Ge,i as ve,ma as Xe,n as H,na as Re,oa as Je,pa as q,qa as Q,ta as ee,u as Ue,ua as L,va as j,w as Fe,wa as Ye,xa as Ke,y as Be,ya as We,za as Ze}from"./chunk-Q2A6FWC7.js";import{a as x}from"./chunk-WCABR6TI.js";var X=class{_doc;constructor(t){this._doc=t}manager},oe=(()=>{class n extends X{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,o,s){return e.addEventListener(r,o,s),()=>this.removeEventListener(e,r,o,s)}removeEventListener(e,r,o,s){return e.removeEventListener(r,o,s)}static \u0275fac=function(r){return new(r||n)(l(M))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),ae=new R(""),Pe=(()=>{class n{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,r){this._zone=r,e.forEach(i=>{i.manager=this});let o=e.filter(i=>!(i instanceof oe));this._plugins=o.slice().reverse();let s=e.find(i=>i instanceof oe);s&&this._plugins.push(s)}addEventListener(e,r,o,s){return this._findPluginFor(r).addEventListener(e,r,o,s)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(s=>s.supports(e)),!r)throw new g(5101,!1);return this._eventNameToPlugin.set(e,r),r}static \u0275fac=function(r){return new(r||n)(l(ae),l(V))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),Me="ng-app-id";function ct(n){for(let t of n)t.remove()}function dt(n,t){let e=t.createElement("style");return e.textContent=n,e}function It(n,t,e,r){let o=n.head?.querySelectorAll(`style[${Me}="${t}"],link[${Me}="${t}"]`);if(o)for(let s of o)s.removeAttribute(Me),s instanceof HTMLLinkElement?r.set(s.href.slice(s.href.lastIndexOf("/")+1),{usage:0,elements:[s]}):s.textContent&&e.set(s.textContent,{usage:0,elements:[s]})}function De(n,t){let e=t.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",n),e}var Oe=(()=>{class n{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,r,o,s={}){this.doc=e,this.appId=r,this.nonce=o,It(e,r,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,r){for(let o of e)this.addUsage(o,this.inline,dt);r?.forEach(o=>this.addUsage(o,this.external,De))}removeStyles(e,r){for(let o of e)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,r,o){let s=r.get(e);s?s.usage++:r.set(e,{usage:1,elements:[...this.hosts].map(i=>this.addElement(i,o(e,this.doc)))})}removeUsage(e,r){let o=r.get(e);o&&(o.usage--,o.usage<=0&&(ct(o.elements),r.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])ct(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(e,dt(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(e,De(r,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,r){return this.nonce&&r.setAttribute("nonce",this.nonce),e.appendChild(r)}static \u0275fac=function(r){return new(r||n)(l(M),l(Re),l(Q,8),l(q))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),be={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Se=/%COMP%/g;var ut="%COMP%",Nt=`_nghost-${ut}`,Ct=`_ngcontent-${ut}`,kt=!0,xt=new R("",{factory:()=>kt});function Lt(n){return Ct.replace(Se,n)}function jt(n){return Nt.replace(Se,n)}function ft(n,t){return t.map(e=>e.replace(Se,n))}var Ae=(()=>{class n{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,r,o,s,i,c,a=null,d=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=i,this.ngZone=c,this.nonce=a,this.tracingService=d,this.defaultRenderer=new J(e,i,c,this.tracingService)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,r);return o instanceof ie?o.applyToHost(e):o instanceof Y&&o.applyStyles(),o}getOrCreateRenderer(e,r){let o=this.rendererByCompId,s=o.get(r.id);if(!s){let i=this.doc,c=this.ngZone,a=this.eventManager,d=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,p=this.tracingService;switch(r.encapsulation){case ee.Emulated:s=new ie(a,d,r,this.appId,h,i,c,p);break;case ee.ShadowDom:return new se(a,e,r,i,c,this.nonce,p,d);case ee.ExperimentalIsolatedShadowDom:return new se(a,e,r,i,c,this.nonce,p);default:s=new Y(a,d,r,h,i,c,p);break}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(r){return new(r||n)(l(Pe),l(Oe),l(Re),l(xt),l(M),l(V),l(Q),l(te,8))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),J=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,e,r,o){this.eventManager=t,this.doc=e,this.ngZone=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(t,e){return e?this.doc.createElementNS(be[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(lt(t)?t.content:t).appendChild(e)}insertBefore(t,e,r){t&&(lt(t)?t.content:t).insertBefore(e,r)}removeChild(t,e){e.remove()}selectRootElement(t,e){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new g(-5104,!1);return e||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,r,o){if(o){e=o+":"+e;let s=be[o];s?t.setAttributeNS(s,e,r):t.setAttribute(e,r)}else t.setAttribute(e,r)}removeAttribute(t,e,r){if(r){let o=be[r];o?t.removeAttributeNS(o,e):t.removeAttribute(`${r}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,r,o){o&($.DashCase|$.Important)?t.style.setProperty(e,r,o&$.Important?"important":""):t.style[e]=r}removeStyle(t,e,r){r&$.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,r){t!=null&&(t[e]=r)}setValue(t,e){t.nodeValue=e}listen(t,e,r,o){if(typeof t=="string"&&(t=G().getGlobalEventTarget(this.doc,t),!t))throw new g(5102,!1);let s=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(s=this.tracingService.wrapEventListener(t,e,s)),this.eventManager.addEventListener(t,e,s,o)}decoratePreventDefault(t){return e=>{if(e==="__ngUnwrap__")return t;t(e)===!1&&e.preventDefault()}}};function lt(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var se=class extends J{hostEl;sharedStylesHost;shadowRoot;constructor(t,e,r,o,s,i,c,a){super(t,o,s,c),this.hostEl=e,this.sharedStylesHost=a,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let d=r.styles;d=ft(r.id,d);for(let p of d){let T=document.createElement("style");i&&T.setAttribute("nonce",i),T.textContent=p,this.shadowRoot.appendChild(T)}let h=r.getExternalStyles?.();if(h)for(let p of h){let T=De(p,o);i&&T.setAttribute("nonce",i),this.shadowRoot.appendChild(T)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,r){return super.insertBefore(this.nodeOrShadowRoot(t),e,r)}removeChild(t,e){return super.removeChild(null,e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},Y=class extends J{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,e,r,o,s,i,c,a){super(t,s,i,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let d=r.styles;this.styles=a?ft(a,d):d,this.styleUrls=r.getExternalStyles?.(a)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&tt.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ie=class extends Y{contentAttr;hostAttr;constructor(t,e,r,o,s,i,c,a){let d=o+"-"+r.id;super(t,e,r,s,i,c,a,d),this.contentAttr=Lt(d),this.hostAttr=jt(d)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){let r=super.createElement(t,e);return super.setAttribute(r,this.contentAttr,""),r}};var ce=class n extends st{supportsDOMEvents=!0;static makeCurrent(){ot(new n)}onAndCancel(t,e,r,o){return t.addEventListener(e,r,o),()=>{t.removeEventListener(e,r,o)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.remove()}createElement(t,e){return e=e||this.getDefaultDocument(),e.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return e==="window"?window:e==="document"?t:e==="body"?t.body:null}getBaseHref(t){let e=Ft();return e==null?null:Bt(e)}resetBaseElement(){K=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return re(document.cookie,t)}},K=null;function Ft(){return K=K||document.head.querySelector("base"),K?K.getAttribute("href"):null}function Bt(n){return new URL(n,document.baseURI).pathname}var zt=(()=>{class n{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||n)};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),ht=["alt","control","meta","shift"],Ht={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Vt={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},mt=(()=>{class n extends X{constructor(e){super(e)}supports(e){return n.parseEventName(e)!=null}addEventListener(e,r,o,s){let i=n.parseEventName(r),c=n.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>G().onAndCancel(e,i.domEventName,c,s))}static parseEventName(e){let r=e.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let s=n._normalizeKey(r.pop()),i="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),i="code."),ht.forEach(d=>{let h=r.indexOf(d);h>-1&&(r.splice(h,1),i+=d+".")}),i+=s,r.length!=0||s.length===0)return null;let a={};return a.domEventName=o,a.fullKey=i,a}static matchEventFullKeyCode(e,r){let o=Ht[e.key]||e.key,s="";return r.indexOf("code.")>-1&&(o=e.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),ht.forEach(i=>{if(i!==o){let c=Vt[i];c(e)&&(s+=i+".")}}),s+=o,s===r)}static eventCallback(e,r,o){return s=>{n.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>r(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(r){return new(r||n)(l(M))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})();async function $t(n,t,e){let r=x({rootComponent:n},Gt(t,e));return nt(r)}function Gt(n,t){return{platformRef:t?.platformRef,appProviders:[...Wt,...n?.providers??[]],platformProviders:Kt}}function Xt(){ce.makeCurrent()}function Jt(){return new we}function Yt(){return Xe(document),document}var Kt=[{provide:q,useValue:at},{provide:Je,useValue:Xt,multi:!0},{provide:M,useFactory:Yt}];var Wt=[{provide:He,useValue:"root"},{provide:we,useFactory:Jt},{provide:ae,useClass:oe,multi:!0},{provide:ae,useClass:mt,multi:!0},Ae,Oe,Pe,{provide:rt,useExisting:Ae},{provide:ne,useClass:zt},[]];var D=class n{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
2
+ `).forEach(e=>{let r=e.indexOf(":");if(r>0){let o=e.slice(0,r),s=e.slice(r+1).trim();this.addHeaderEntry(o,s)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((e,r)=>{this.addHeaderEntry(r,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([e,r])=>{this.setHeaderEntries(e,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof n?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){let e=new n;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){let e=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,e);let o=(t.op==="a"?this.headers.get(e):void 0)||[];o.push(...r),this.headers.set(e,o);break;case"d":let s=t.value;if(!s)this.headers.delete(e),this.normalizedNames.delete(e);else{let i=this.headers.get(e);if(!i)return;i=i.filter(c=>s.indexOf(c)===-1),i.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}break}}addHeaderEntry(t,e){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(e):this.headers.set(r,[e])}setHeaderEntries(t,e){let r=(Array.isArray(e)?e:[e]).map(s=>s.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}};var ue=class{map=new Map;set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}},fe=class{encodeKey(t){return gt(t)}encodeValue(t){return gt(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function qt(n,t){let e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(o=>{let s=o.indexOf("="),[i,c]=s==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,s)),t.decodeValue(o.slice(s+1))],a=e.get(i)||[];a.push(c),e.set(i,a)}),e}var Qt=/%(\d[a-f0-9])/gi,er={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function gt(n){return encodeURIComponent(n).replace(Qt,(t,e)=>er[e]??t)}function de(n){return`${n}`}var P=class n{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new fe,t.fromString){if(t.fromObject)throw new g(2805,!1);this.map=qt(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{let r=t.fromObject[e],o=Array.isArray(r)?r.map(de):[de(r)];this.map.set(e,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){let e=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(s=>{e.push({param:r,value:s,op:"a"})}):e.push({param:r,value:o,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let e=this.encoder.encodeKey(t);return this.map.get(t).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let e=new n({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let e=(t.op==="a"?this.map.get(t.param):void 0)||[];e.push(de(t.value)),this.map.set(t.param,e);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(de(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};function tr(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function vt(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function Et(n){return typeof Blob<"u"&&n instanceof Blob}function Tt(n){return typeof FormData<"u"&&n instanceof FormData}function rr(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var W="Content-Type",he="Accept",wt="text/plain",Rt="application/json",Mt=`${Rt}, ${wt}, */*`,U=class n{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,e,r,o){this.url=e,this.method=t.toUpperCase();let s;if(tr(this.method)||o?(this.body=r!==void 0?r:null,s=o):s=r,s){if(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,this.keepalive=!!s.keepalive,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),s.priority&&(this.priority=s.priority),s.cache&&(this.cache=s.cache),s.credentials&&(this.credentials=s.credentials),typeof s.timeout=="number"){if(s.timeout<1||!Number.isInteger(s.timeout))throw new g(2822,"");this.timeout=s.timeout}s.mode&&(this.mode=s.mode),s.redirect&&(this.redirect=s.redirect),s.integrity&&(this.integrity=s.integrity),s.referrer&&(this.referrer=s.referrer),s.referrerPolicy&&(this.referrerPolicy=s.referrerPolicy),this.transferCache=s.transferCache}if(this.headers??=new D,this.context??=new ue,!this.params)this.params=new P,this.urlWithParams=e;else{let i=this.params.toString();if(i.length===0)this.urlWithParams=e;else{let c=e.indexOf("?"),a=c===-1?"?":c<e.length-1?"&":"";this.urlWithParams=e+a+i}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||vt(this.body)||Et(this.body)||Tt(this.body)||rr(this.body)?this.body:this.body instanceof P?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Tt(this.body)?null:Et(this.body)?this.body.type||null:vt(this.body)?null:typeof this.body=="string"?wt:this.body instanceof P?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Rt:null}clone(t={}){let e=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,s=t.keepalive??this.keepalive,i=t.priority||this.priority,c=t.cache||this.cache,a=t.mode||this.mode,d=t.redirect||this.redirect,h=t.credentials||this.credentials,p=t.referrer||this.referrer,T=t.integrity||this.integrity,N=t.referrerPolicy||this.referrerPolicy,C=t.transferCache??this.transferCache,E=t.timeout??this.timeout,u=t.body!==void 0?t.body:this.body,f=t.withCredentials??this.withCredentials,w=t.reportProgress??this.reportProgress,S=t.headers||this.headers,y=t.params||this.params,A=t.context??this.context;return t.setHeaders!==void 0&&(S=Object.keys(t.setHeaders).reduce((I,_)=>I.set(_,t.setHeaders[_]),S)),t.setParams&&(y=Object.keys(t.setParams).reduce((I,_)=>I.set(_,t.setParams[_]),y)),new n(e,r,u,{params:y,headers:S,context:A,reportProgress:w,responseType:o,withCredentials:f,transferCache:C,keepalive:s,cache:c,priority:i,timeout:E,mode:a,redirect:d,credentials:h,referrer:p,integrity:T,referrerPolicy:N})}},O=(function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n})(O||{}),F=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,e=200,r="OK"){this.headers=t.headers||new D,this.status=t.status!==void 0?t.status:e,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300}},Z=class n extends F{constructor(t={}){super(t)}type=O.ResponseHeader;clone(t={}){return new n({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},B=class n extends F{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=O.Response;clone(t={}){return new n({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},b=class extends F{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},bt=200,nr=204;var or=/^\)\]\}',?\n/,Dt=new R(""),le=(()=>{class n{fetchImpl=v(Ne,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e));ngZone=v(V);destroyRef=v($e);handle(e){return new ge(r=>{let o=new AbortController;this.doRequest(e,o.signal,r).then(Ce,i=>r.error(new b({error:i})));let s;return e.timeout&&(s=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"))},e.timeout))),()=>{s!==void 0&&clearTimeout(s),o.abort()}})}async doRequest(e,r,o){let s=this.createRequestInit(e),i;try{let E=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,x({signal:r},s)));sr(E),o.next({type:O.Sent}),i=await E}catch(E){o.error(new b({error:E,status:E.status??0,statusText:E.statusText,url:e.urlWithParams,headers:E.headers}));return}let c=new D(i.headers),a=i.statusText,d=i.url||e.urlWithParams,h=i.status,p=null;if(e.reportProgress&&o.next(new Z({headers:c,status:h,statusText:a,url:d})),i.body){let E=i.headers.get("content-length"),u=[],f=i.body.getReader(),w=0,S,y,A=typeof Zone<"u"&&Zone.current,I=!1;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyRef.destroyed){await f.cancel(),I=!0;break}let{done:z,value:me}=await f.read();if(z)break;if(u.push(me),w+=me.length,e.reportProgress){y=e.responseType==="text"?(y??"")+(S??=new TextDecoder).decode(me,{stream:!0}):void 0;let je=()=>o.next({type:O.DownloadProgress,total:E?+E:void 0,loaded:w,partialText:y});A?A.run(je):je()}}}),I){o.complete();return}let _=this.concatChunks(u,w);try{let z=i.headers.get(W)??"";p=this.parseBody(e,_,z,h)}catch(z){o.error(new b({error:z,headers:new D(i.headers),status:i.status,statusText:i.statusText,url:i.url||e.urlWithParams}));return}}h===0&&(h=p?bt:0);let T=h>=200&&h<300,N=i.redirected,C=i.type;T?(o.next(new B({body:p,headers:c,status:h,statusText:a,url:d,redirected:N,responseType:C})),o.complete()):o.error(new b({error:p,headers:c,status:h,statusText:a,url:d,redirected:N,responseType:C}))}parseBody(e,r,o,s){switch(e.responseType){case"json":let i=new TextDecoder().decode(r).replace(or,"");if(i==="")return null;try{return JSON.parse(i)}catch(c){if(s<200||s>=300)return i;throw c}case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(e){let r={},o;if(o=e.credentials,e.withCredentials&&(o="include"),e.headers.forEach((s,i)=>r[s]=i.join(",")),e.headers.has(he)||(r[he]=Mt),!e.headers.has(W)){let s=e.detectContentTypeHeader();s!==null&&(r[W]=s)}return{body:e.serializeBody(),method:e.method,headers:r,credentials:o,keepalive:e.keepalive,cache:e.cache,priority:e.priority,mode:e.mode,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity,referrerPolicy:e.referrerPolicy}}concatChunks(e,r){let o=new Uint8Array(r),s=0;for(let i of e)o.set(i,s),s+=i.length;return o}static \u0275fac=function(r){return new(r||n)};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),Ne=class{};function Ce(){}function sr(n){n.then(Ce,Ce)}var ir=/^\)\]\}',?\n/;var ke=(()=>{class n{xhrFactory;tracingService=v(te,{optional:!0});constructor(e){this.xhrFactory=e}maybePropagateTrace(e){return this.tracingService?.propagate?this.tracingService.propagate(e):e}handle(e){if(e.method==="JSONP")throw new g(-2800,!1);let r=this.xhrFactory;return ve(null).pipe(ze(()=>new ge(s=>{let i=r.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((u,f)=>i.setRequestHeader(u,f.join(","))),e.headers.has(he)||i.setRequestHeader(he,Mt),!e.headers.has(W)){let u=e.detectContentTypeHeader();u!==null&&i.setRequestHeader(W,u)}if(e.timeout&&(i.timeout=e.timeout),e.responseType){let u=e.responseType.toLowerCase();i.responseType=u!=="json"?u:"text"}let c=e.serializeBody(),a=null,d=()=>{if(a!==null)return a;let u=i.statusText||"OK",f=new D(i.getAllResponseHeaders()),w=i.responseURL||e.url;return a=new Z({headers:f,status:i.status,statusText:u,url:w}),a},h=this.maybePropagateTrace(()=>{let{headers:u,status:f,statusText:w,url:S}=d(),y=null;f!==nr&&(y=typeof i.response>"u"?i.responseText:i.response),f===0&&(f=y?bt:0);let A=f>=200&&f<300;if(e.responseType==="json"&&typeof y=="string"){let I=y;y=y.replace(ir,"");try{y=y!==""?JSON.parse(y):null}catch(_){y=I,A&&(A=!1,y={error:_,text:y})}}A?(s.next(new B({body:y,headers:u,status:f,statusText:w,url:S||void 0})),s.complete()):s.error(new b({error:y,headers:u,status:f,statusText:w,url:S||void 0}))}),p=this.maybePropagateTrace(u=>{let{url:f}=d(),w=new b({error:u,status:i.status||0,statusText:i.statusText||"Unknown Error",url:f||void 0});s.error(w)}),T=p;e.timeout&&(T=this.maybePropagateTrace(u=>{let{url:f}=d(),w=new b({error:new DOMException("Request timed out","TimeoutError"),status:i.status||0,statusText:i.statusText||"Request timeout",url:f||void 0});s.error(w)}));let N=!1,C=this.maybePropagateTrace(u=>{N||(s.next(d()),N=!0);let f={type:O.DownloadProgress,loaded:u.loaded};u.lengthComputable&&(f.total=u.total),e.responseType==="text"&&i.responseText&&(f.partialText=i.responseText),s.next(f)}),E=this.maybePropagateTrace(u=>{let f={type:O.UploadProgress,loaded:u.loaded};u.lengthComputable&&(f.total=u.total),s.next(f)});return i.addEventListener("load",h),i.addEventListener("error",p),i.addEventListener("timeout",T),i.addEventListener("abort",p),e.reportProgress&&(i.addEventListener("progress",C),c!==null&&i.upload&&i.upload.addEventListener("progress",E)),i.send(c),s.next({type:O.Sent}),()=>{i.removeEventListener("error",p),i.removeEventListener("abort",p),i.removeEventListener("load",h),i.removeEventListener("timeout",T),e.reportProgress&&(i.removeEventListener("progress",C),c!==null&&i.upload&&i.upload.removeEventListener("progress",E)),i.readyState!==i.DONE&&i.abort()}})))}static \u0275fac=function(r){return new(r||n)(l(ne))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function ar(n,t){return t(n)}function cr(n,t,e){return(r,o)=>Ve(e,()=>t(r,s=>n(s,o)))}var _t=new R("",{factory:()=>[]}),Pt=new R(""),Ot=new R("",{factory:()=>!0});var ye=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=m({token:n,factory:function(r){let o=null;return r?o=new(r||n):o=l(ke),o},providedIn:"root"})}return n})();var pe=(()=>{class n{backend;injector;chain=null;pendingTasks=v(Ge);contributeToStability=v(Ot);constructor(e,r){this.backend=e,this.injector=r}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(_t),...this.injector.get(Pt,[])]));this.chain=r.reduceRight((o,s)=>cr(o,s,this.injector),ar)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(Be(r))}else return this.chain(e,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||n)(l(ye),l(Te))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),xe=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=m({token:n,factory:function(r){let o=null;return r?o=new(r||n):o=l(pe),o},providedIn:"root"})}return n})();function Ie(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials,credentials:n.credentials,transferCache:n.transferCache,timeout:n.timeout,keepalive:n.keepalive,priority:n.priority,cache:n.cache,mode:n.mode,redirect:n.redirect,integrity:n.integrity,referrer:n.referrer,referrerPolicy:n.referrerPolicy}}var St=(()=>{class n{handler;constructor(e){this.handler=e}request(e,r,o={}){let s;if(e instanceof U)s=e;else{let a;o.headers instanceof D?a=o.headers:a=new D(o.headers);let d;o.params&&(o.params instanceof P?d=o.params:d=new P({fromObject:o.params})),s=new U(e,r,o.body!==void 0?o.body:null,{headers:a,context:o.context,params:d,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let i=ve(s).pipe(Fe(a=>this.handler.handle(a)));if(e instanceof U||o.observe==="events")return i;let c=i.pipe(Ue(a=>a instanceof B));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(H(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new g(2806,!1);return a.body}));case"blob":return c.pipe(H(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new g(2807,!1);return a.body}));case"text":return c.pipe(H(a=>{if(a.body!==null&&typeof a.body!="string")throw new g(2808,!1);return a.body}));default:return c.pipe(H(a=>a.body))}case"response":return c;default:throw new g(2809,!1)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:new P().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,o={}){return this.request("PATCH",e,Ie(o,r))}post(e,r,o={}){return this.request("POST",e,Ie(o,r))}put(e,r,o={}){return this.request("PUT",e,Ie(o,r))}static \u0275fac=function(r){return new(r||n)(l(xe))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var dr=new R("",{factory:()=>!0}),lr="XSRF-TOKEN",ur=new R("",{factory:()=>lr}),fr="X-XSRF-TOKEN",hr=new R("",{factory:()=>fr}),pr=(()=>{class n{cookieName=v(ur);doc=v(M);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=re(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(r){return new(r||n)};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),At=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=m({token:n,factory:function(r){let o=null;return r?o=new(r||n):o=l(pr),o},providedIn:"root"})}return n})();function yr(n,t){if(!v(dr)||n.method==="GET"||n.method==="HEAD")return t(n);try{let o=v(it).href,{origin:s}=new URL(o),{origin:i}=new URL(n.url,s);if(s!==i)return t(n)}catch{return t(n)}let e=v(At).getToken(),r=v(hr);return e!=null&&!n.headers.has(r)&&(n=n.clone({headers:n.headers.set(r,e)})),t(n)}var Le=(function(n){return n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch",n})(Le||{});function mr(n,t){return{\u0275kind:n,\u0275providers:t}}function gr(...n){let t=[St,pe,{provide:xe,useExisting:pe},{provide:ye,useFactory:()=>v(Dt,{optional:!0})??v(ke)},{provide:_t,useValue:yr,multi:!0}];for(let e of n)t.push(...e.\u0275providers);return Ee(t)}function vr(){return mr(Le.Fetch,[le,{provide:Dt,useExisting:le},{provide:ye,useExisting:le}])}var Yn=(()=>{class n{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(r){return new(r||n)(l(M))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Tr=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=m({token:n,factory:function(r){let o=null;return r?o=new(r||n):o=l(wr),o},providedIn:"root"})}return n})(),wr=(()=>{class n extends Tr{_doc;constructor(e){super(),this._doc=e}sanitize(e,r){if(r==null)return null;switch(e){case k.NONE:return r;case k.HTML:return j(r,"HTML")?L(r):et(this._doc,String(r)).toString();case k.STYLE:return j(r,"Style")?L(r):r;case k.SCRIPT:if(j(r,"Script"))return L(r);throw new g(5200,!1);case k.URL:return j(r,"URL")?L(r):Qe(String(r));case k.RESOURCE_URL:if(j(r,"ResourceURL"))return L(r);throw new g(5201,!1);default:throw new g(5202,!1)}}bypassSecurityTrustHtml(e){return Ye(e)}bypassSecurityTrustStyle(e){return Ke(e)}bypassSecurityTrustScript(e){return We(e)}bypassSecurityTrustUrl(e){return Ze(e)}bypassSecurityTrustResourceUrl(e){return qe(e)}static \u0275fac=function(r){return new(r||n)(l(M))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();export{$t as a,b,St as c,gr as d,vr as e,Yn as f,Tr as g};