@skill-map/cli 0.43.0 → 0.45.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 (46) hide show
  1. package/dist/cli/tutorial/sm-master/SKILL.md +7 -9
  2. package/dist/cli/tutorial/sm-master/references/fixture-templates.md +1 -1
  3. package/dist/cli/tutorial/sm-master/references/tour-plugins.md +10 -9
  4. package/dist/cli/tutorial/sm-master/references/tour-settings.md +4 -4
  5. package/dist/cli/tutorial/sm-tutorial/SKILL.md +263 -369
  6. package/dist/cli.js +945 -256
  7. package/dist/cli.js.map +1 -1
  8. package/dist/index.js +21 -15
  9. package/dist/index.js.map +1 -1
  10. package/dist/kernel/index.d.ts +43 -6
  11. package/dist/kernel/index.js +21 -15
  12. package/dist/kernel/index.js.map +1 -1
  13. package/dist/ui/chunk-27WQPOXP.js +1 -0
  14. package/dist/ui/{chunk-DZBSELHN.js → chunk-43S72FTV.js} +1 -1
  15. package/dist/ui/chunk-555ST76V.js +1 -0
  16. package/dist/ui/{chunk-JPYAASHN.js → chunk-5AD5ZV4I.js} +3 -3
  17. package/dist/ui/{chunk-CFJBTDAA.js → chunk-5ITZXW3A.js} +1 -1
  18. package/dist/ui/chunk-A7PRWMQD.js +1021 -0
  19. package/dist/ui/chunk-CBI77N5U.js +123 -0
  20. package/dist/ui/chunk-F7I6KMHX.js +1 -0
  21. package/dist/ui/{chunk-77J7XU3Y.js → chunk-I5AX4U2N.js} +28 -28
  22. package/dist/ui/chunk-IUZRAD7S.js +1 -0
  23. package/dist/ui/{chunk-XOHD5XWA.js → chunk-IYM26L3O.js} +1 -1
  24. package/dist/ui/{chunk-SBCO7ZSP.js → chunk-LGFABCIA.js} +1 -1
  25. package/dist/ui/{chunk-IUDL3NDH.js → chunk-MFLFIA7C.js} +1 -1
  26. package/dist/ui/chunk-MS6B7344.js +315 -0
  27. package/dist/ui/chunk-P3SNMV4X.js +2 -0
  28. package/dist/ui/chunk-PZQHB7GS.js +4 -0
  29. package/dist/ui/chunk-QDUSFOBE.js +1 -0
  30. package/dist/ui/{chunk-YCR3XCIW.js → chunk-QNTAOR2L.js} +5 -5
  31. package/dist/ui/{chunk-CR3AANNX.js → chunk-S4S5ZMXJ.js} +1 -1
  32. package/dist/ui/{chunk-5WJRN3LD.js → chunk-T3IVIRRJ.js} +1 -1
  33. package/dist/ui/{chunk-HP375T2O.js → chunk-VGPYYAVI.js} +1 -1
  34. package/dist/ui/chunk-X227ITGS.js +499 -0
  35. package/dist/ui/index.html +1 -1
  36. package/dist/ui/main-ERCTR2PR.js +3 -0
  37. package/package.json +10 -9
  38. package/dist/ui/chunk-2IF446BS.js +0 -1
  39. package/dist/ui/chunk-DIKPNZUZ.js +0 -315
  40. package/dist/ui/chunk-KGCJINI6.js +0 -1
  41. package/dist/ui/chunk-PPE3P2JD.js +0 -1
  42. package/dist/ui/chunk-UOCACZLI.js +0 -123
  43. package/dist/ui/chunk-YL6SWAFJ.js +0 -1024
  44. package/dist/ui/main-VHFB7Q2D.js +0 -3
  45. /package/dist/ui/{chunk-C2YUQODZ.js → chunk-4SG4352Z.js} +0 -0
  46. /package/dist/ui/{chunk-VB56BUGO.js → chunk-WCABR6TI.js} +0 -0
@@ -1 +0,0 @@
1
- import{Ed as d,Fd as k,I as o,Jd as E,N as a,Y as y,Z as v,ea as i,ga as b,mc as s}from"./chunk-YL6SWAFJ.js";import{a as f}from"./chunk-VB56BUGO.js";var U={triggerLabel:"Settings",triggerTooltip:"Settings",modalTitle:"Settings",closeLabel:"Close",sections:{plugins:"Plugins",general:"General",project:"Project",changelog:"Changelog",about:"About"},general:{heading:"General",intro:"Per-machine preferences.",loadErrorPrefix:"Could not load preferences:",saveErrorPrefix:"Could not save preferences:",toggles:{"updateCheck.enabled":{label:"Check for updates",description:"Check npm for newer @skill-map/cli releases."}},extraTheme:{label:"Theme",description:"Pick a specialty theme.",options:{none:{label:"None",description:"Use the topbar dark/light toggle."}}},storageHintLabel:"Settings are stored in:",storageHintPath:"~/.skill-map/settings.json"},project:{heading:"Project",introPrefix:"These settings apply only to this project and are saved in",introPath:".skill-map/settings.local.json",introSuffix:".",loadErrorPrefix:"Could not load project settings:",saveErrorPrefix:"Could not save project settings:",referencePathsLabel:"Folders for link validation",referencePathsDescription:"If your notes link to files outside this project, list those folders here. Skill-map checks them only to confirm the links work, nothing from these folders shows up in the map.",referencePathsPlaceholder:"~/Documents/research",commaForbidden:"Add one path at a time, without commas.",addPathLabel:"Add path",removePathLabel:"Remove",confirmDialogHeader:"Allow access to folders outside this project?",confirmDialogIntro:"This change lets the scan read files in:",confirmDialogAccept:"Allow access",confirmDialogReject:"Cancel",ignorePatternsLabel:"Ignored patterns",ignorePatternsDescriptionPrefix:"Patterns that exclude files and folders from the scan, stored in",ignorePatternsDescriptionFile:".skillmapignore",ignorePatternsDescriptionMiddle:"at the project root. Same syntax as",ignorePatternsDescriptionGitignore:".gitignore",ignorePatternsDescriptionSuffix:"(one pattern per line).",ignorePatternsPlaceholder:"secrets.md",ignorePatternEmpty:"Pattern cannot be empty or whitespace-only.",ignorePatternHasControlChar:"Pattern must be a single line without control characters.",ignorePatternDuplicate:"This pattern is already in the list.",addIgnorePatternLabel:"Add pattern",removeIgnorePatternLabel:"Remove",activeProviderLabel:"Active provider",activeProviderDescription:"Selects which provider sees this project. The map reflects how the chosen provider interprets your files.",activeProviderSourceAutodetect:"Auto-detected from your files (no value saved yet).",activeProviderSourceNone:"No provider detected. Install or enable a provider to start.",activeProviderDetectedPrefix:"Detected:",activeProviderEmptyOption:"(none)",activeProviderConfirmHeader:"Switch the active provider?",activeProviderConfirmIntro:"Switching will clear the persisted scan (nodes, links, issues). Jobs and history are kept. You will need to run `sm scan` after the switch.",activeProviderConfirmAccept:"Switch and clear scan",activeProviderConfirmReject:"Cancel",activeProviderSwitchedPrefix:"Lens switched. Cleared",activeProviderSwitchedSuffix:"scan table(s). Run `sm scan` to repopulate.",activeProviderSwitchedNoDb:"Lens switched. Run `sm scan` to populate the map under the new lens."},changelogHeading:"Changelog",changelogIntro:"What's new in skill-map. Each entry covers a release of @skill-map/cli (the CLI + bundled UI) and lists the user-facing changes plus the workspace(s) each one affects.",changelogEmpty:"No release notes yet. Future releases will populate this list automatically from the changesets shipped in each PR.",changelogInternalRelease:"Internal release. Focus on stability, infra, and refactors. No user-facing changes this time.",changelogAffectedPackages:"Affected packages",changelogFooterText:"Want the full changelog?",changelogFooterLinkLabel:"See it on GitHub \u2192",changelogFooterUrl:"https://github.com/crystian/skill-map/blob/main/src/CHANGELOG.md",aboutHeading:"About",aboutIntro:"Version information for the running CLI / server.",aboutCliLabel:"skill-map CLI",aboutSpecLabel:"Spec version",aboutSchemaLabel:"Schema version",aboutFolderLabel:"Project folder",aboutDbLabel:"Project DB",aboutDbValue:(t,e)=>t==="present"?e:`${t} \xB7 ${e}`,aboutLoading:"Loading\u2026",aboutUnknown:"-",aboutErrorPrefix:"Could not read health endpoint:",aboutLinksHeading:"Links",aboutWebsiteLabel:"Website",aboutGithubLabel:"GitHub",aboutWebsiteUrl:"https://skill-map.ai/",aboutGithubUrl:"https://github.com/crystian/skill-map",aboutStarHeading:"Enjoying skill-map?",aboutStarBody:"If it's useful to you, drop us a star on GitHub, it helps a lot and keeps the project alive.",aboutStarCta:"Star on GitHub",aboutStarA11y:"Open the skill-map repository on GitHub to give it a star",pluginsHeading:"Plugins",pluginsIntro:"Enable or disable installed plugins.",pluginsSearchPlaceholder:"Filter by name\u2026",pluginsSearchA11y:"Filter plugins by name",pluginsSearchEmpty:t=>`No plugins match "${t}".`,pluginsKindFilterAll:"All",pluginsKindFilterA11y:"Filter plugins by kind",pluginsKindFilterOptionA11y:(t,e)=>e?`Show only ${t} extensions`:"Show all kinds",unsavedChangesMessage:t=>t===1?'1 unsaved change. Click "Apply" to persist it.':`${t} unsaved changes. Click "Apply" to persist them.`,startsAsDisabledRowHint:"This plugin started disabled and is not loaded in memory. Restart `sm serve` for the change to take effect.",startsAsDisabledFooterHint:"Some plugins were disabled when the server started. Consider restarting `sm serve` so they take effect.",discardChanges:"Discard",applyAndClose:"Apply",discardA11y:"Discard pending plugin changes",applyA11y:"Apply pending plugin changes and refresh the map",confirmCloseTitle:"Apply pending changes?",confirmCloseBody:t=>t===1?"You have 1 unsaved change.":`You have ${t} unsaved changes.`,keepEditing:"Keep editing",sourceBuiltIn:"Built-in",sourceProject:"Project",enabledLabel:"Enabled",disabledLabel:"Disabled",lockedLabel:"Locked",lockedTooltip:"Locked by the host (cannot be toggled).",expandLabel:"Show extensions",collapseLabel:"Hide extensions",statusFailure:{"incompatible-spec":"Incompatible spec version","invalid-manifest":"Invalid manifest","load-error":"Failed to load","id-collision":"Plugin id collision"},loading:"Loading plugins\u2026",empty:"No plugins installed.",errorPrefix:"Could not load plugins:",toggleErrorPrefix:"Toggle failed:",a11y:{triggerLabel:"Open settings",pluginToggle:(t,e)=>e?`Enable plugin ${t}`:`Disable plugin ${t}`,extensionToggle:(t,e)=>e?`Enable ${t}`:`Disable ${t}`,pluginRow:t=>`Plugin ${t} row`,extensionRow:t=>`Extension ${t} row`}};var R="#9ca3af",F="#6b7280",P=class t{_entries=i([]);providers=this._entries.asReadonly();index=s(()=>{let e=new Map;for(let r of this._entries())e.set(r.id,r);return e});ingest(e){if(!e)return;let r=[];for(let[n,l]of Object.entries(e))r.push(f({id:n},l));j(this._entries(),r)||this._entries.set(r)}lookup(e){return this.index().get(e)}cardChip(e){if(!e)return null;let r=this.lookup(e);return r?r.hideChip?null:T(r):I(e)}lensChip(e){if(!e)return null;let r=this.lookup(e);return r?T(r):I(e)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"})};function T(t){let e={label:t.label,color:t.color};return t.colorDark!==void 0&&(e.colorDark=t.colorDark),e}function I(t){return{label:t,color:R,colorDark:F}}function j(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(JSON.stringify(t[r])!==JSON.stringify(e[r]))return!1;return!0}var S={available:"Update available",copiedLabel:"Copied!",tooltip:t=>`v${t} is available. Click to copy the install command.`,copyCommand:"npm i -g @skill-map/cli@latest",copiedTooltip:"Copied! Paste it in your terminal.",npmLinkUrl:"https://www.npmjs.com/package/@skill-map/cli",npmLinkTooltip:"Open on npm",npmLinkA11y:"Open the @skill-map/cli package page on npm",a11yLabel:t=>`Update available: version ${t}, click to copy the install command`,versionLabel:t=>`v${t}`,versionTooltip:t=>`skill-map CLI v${t}`,versionA11yLabel:t=>`Running version ${t}`,fetchFailed:t=>`UpdateCheckService: fetch failed (${t})`};var x=class t{dataSource=a(d);status=i(null);isOutdated=s(()=>this.status()?.isOutdated===!0);latest=s(()=>this.status()?.latest??null);current=s(()=>this.status()?.current??null);async load(){try{let e=await this.dataSource.getUpdateStatus();this.status.set(e)}catch(e){let r=e instanceof Error?e.message:String(e);console.warn(S.fetchFailed(r))}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"})};var D={scanFailed:t=>`scan-trigger failed: ${t}`};var C=class t{dataSource=a(d);loader=a(E);scanning=i(!1);scanError=i(null);async run(){if(!this.scanning()){this.scanning.set(!0),this.scanError.set(null);try{await this.dataSource.runScan(),await this.loader.load()}catch(e){let r=e instanceof k||e instanceof Error?e.message:String(e);this.scanError.set(r),console.warn(D.scanFailed(r))}finally{this.scanning.set(!1)}}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"})};var h=[{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 p(t){return t?h.find(e=>e.id===t)??null:null}var L="skill-map.ui.theme",m="skill-map.ui.extra-theme",M="app-dark",N="dark",A="(prefers-color-scheme: dark)",H="favicon.svg",O='link[rel="icon"][type="image/svg+xml"]',w=class t{doc=a(y);destroyRef=a(v);mode=i(this.readInitialMode());extraTheme=i(this.readInitialExtra());systemPrefersDark=i(this.readSystemPref());resolved=s(()=>{let e=this.mode();return e==="auto"?this.systemPrefersDark()?"dark":"light":e});constructor(){this.subscribeToSystemPref(),b(()=>{let e=this.extraTheme(),r=p(e),l=this.resolved()==="dark"||r?.forcesDark===!0,g=this.doc.documentElement;g.classList.toggle(M,l),g.classList.toggle(N,l);for(let c of h)g.classList.toggle(c.htmlClass,r?.id===c.id);this.applyFavicon(r?.favicon??H),r&&this.ensureExtraThemeFont(r);try{let c=this.doc.defaultView?.localStorage;c?.setItem(L,this.mode()),r===null?c?.removeItem(m):c?.setItem(m,r.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(p(e)?.id??null)}readInitialMode(){try{let e=this.doc.defaultView?.localStorage.getItem(L);if(e==="auto"||e==="light"||e==="dark")return e}catch{}return"auto"}readInitialExtra(){try{let e=this.doc.defaultView?.localStorage.getItem(m);return p(e)?.id??null}catch{return null}}readSystemPref(){try{return this.doc.defaultView?.matchMedia(A).matches??!1}catch{return!1}}ensureExtraThemeFont(e){if(!e.fontHref||!e.fontLinkId||this.doc.getElementById(e.fontLinkId))return;let r=this.doc.head;if(!r)return;let n=this.doc.createElement("link");n.id=e.fontLinkId,n.rel="stylesheet",n.href=e.fontHref,r.appendChild(n)}applyFavicon(e){let r=this.doc.querySelector(O);r&&r.getAttribute("href")!==e&&r.setAttribute("href",e)}subscribeToSystemPref(){let e=this.doc.defaultView;if(!e||typeof e.matchMedia!="function")return;let r=e.matchMedia(A),n=l=>{this.systemPrefersDark.set(l.matches)};r.addEventListener("change",n),this.destroyRef.onDestroy(()=>r.removeEventListener("change",n))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"})};export{P as a,S as b,x as c,U as d,C as e,h as f,w as g};
@@ -1 +0,0 @@
1
- import{o as nr,q as rr}from"./chunk-2IF446BS.js";import{f as ji}from"./chunk-HP375T2O.js";import{$ as We,$a as bi,A as Qn,Ab as xi,Ad as se,B as ri,Bb as Si,Bc as ki,Bd as ce,C as we,Cb as C,D as Gt,Da as hi,E as Ie,F as Y,Fa as m,Fb as Ri,G as ii,Gc as Li,Hb as Ti,Hc as Zt,I as F,Ib as Ni,Jc as Ui,K as oi,L as ne,M as Wt,Ma as Jn,N as _,Na as Te,Nb as Mi,O as ai,Oa as fi,Ob as ye,Pa as gi,Q as ze,Qa as er,Qb as tr,R as ve,Ra as U,Rb as S,Sb as M,T as si,Ta as _t,Tb as Qt,U as ci,Wa as mi,X as li,Ya as vi,Z as Yn,Za as yi,_ as ui,a as Yr,ab as _i,b as Xr,bc as Ei,c as Zr,ca as Kt,cc as Di,d as Ve,db as O,e as ge,ea as z,f as me,ga as di,gb as A,h as de,ha as bt,hb as P,i as D,ia as Xn,ib as Ci,j as Jr,ja as pi,k as Gn,ka as Zn,kb as re,kc as Ai,l as ei,lb as ie,lc as H,mb as V,mc as v,n as te,nb as j,nc as Pi,o as Wn,ob as $,oc as Oi,p as Ae,pb as Ne,q as Kn,qb as R,qc as L,r as ti,rb as N,s as Ht,sb as Ke,u as Ge,v as qt,vb as wi,w as Vt,wc as Yt,x as it,y as ni,yb as Ii,yc as Xt,z as Fe}from"./chunk-YL6SWAFJ.js";import{a as w,b as fe,d as Qr}from"./chunk-VB56BUGO.js";var T="primary",kt=Symbol("RouteTitle"),cr=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){let t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function Ye(e){return new cr(e)}function ir(e,n,t){for(let r=0;r<e.length;r++){let i=e[r],o=n[r];if(i[0]===":")t[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function Vi(e,n,t){let r=t.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>e.length||t.pathMatch==="full"&&(n.hasChildren()||r.length<e.length))return null;let c={},l=e.slice(0,r.length);return ir(r,l,c)?{consumed:l,posParams:c}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),s=r.slice(i+1);if(o.length+s.length>e.length||t.pathMatch==="full"&&n.hasChildren()&&t.path!=="**")return null;let a={};return!ir(o,e.slice(0,o.length),a)||!ir(s,e.slice(e.length-s.length),a)?null:{consumed:e,posParams:a}}function on(e){return new Promise((n,t)=>{e.pipe(Fe()).subscribe({next:r=>n(r),error:r=>t(r)})})}function ya(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;++t)if(!Me(e[t],n[t]))return!1;return!0}function Me(e,n){let t=e?lr(e):void 0,r=n?lr(n):void 0;if(!t||!r||t.length!=r.length)return!1;let i;for(let o=0;o<t.length;o++)if(i=t[o],!Gi(e[i],n[i]))return!1;return!0}function lr(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function Gi(e,n){if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;let t=[...e].sort(),r=[...n].sort();return t.every((i,o)=>r[o]===i)}else return e===n}function ba(e){return e.length>0?e[e.length-1]:null}function Je(e){return Gn(e)?e:yi(e)?de(Promise.resolve(e)):D(e)}function Wi(e){return Gn(e)?on(e):Promise.resolve(e)}var _a={exact:Qi,subset:Yi},Ki={exact:Ca,subset:wa,ignored:()=>!0},Ir={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Rt={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function xr(e,n,t){let r=e instanceof oe?e:n.parseUrl(e);return v(()=>ur(n.lastSuccessfulNavigation()?.finalUrl??new oe,r,w(w({},Rt),t)))}function ur(e,n,t){return _a[t.paths](e.root,n.root,t.matrixParams)&&Ki[t.queryParams](e.queryParams,n.queryParams)&&!(t.fragment==="exact"&&e.fragment!==n.fragment)}function Ca(e,n){return Me(e,n)}function Qi(e,n,t){if(!Qe(e.segments,n.segments)||!tn(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!e.children[r]||!Qi(e.children[r],n.children[r],t))return!1;return!0}function wa(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>Gi(e[t],n[t]))}function Yi(e,n,t){return Xi(e,n,n.segments,t)}function Xi(e,n,t,r){if(e.segments.length>t.length){let i=e.segments.slice(0,t.length);return!(!Qe(i,t)||n.hasChildren()||!tn(i,t,r))}else if(e.segments.length===t.length){if(!Qe(e.segments,t)||!tn(e.segments,t,r))return!1;for(let i in n.children)if(!e.children[i]||!Yi(e.children[i],n.children[i],r))return!1;return!0}else{let i=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!Qe(e.segments,i)||!tn(e.segments,i,r)||!e.children[T]?!1:Xi(e.children[T],n,o,r)}}function tn(e,n,t){return n.every((r,i)=>Ki[t](e[i].parameters,r.parameters))}var oe=class{root;queryParams;fragment;_queryParamMap;constructor(n=new k([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Ye(this.queryParams),this._queryParamMap}toString(){return Sa.serialize(this)}},k=class{segments;children;parent=null;constructor(n,t){this.segments=n,this.children=t,Object.values(t).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return nn(this)}},Be=class{path;parameters;_parameterMap;constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap??=Ye(this.parameters),this._parameterMap}toString(){return Ji(this)}};function Ia(e,n){return Qe(e,n)&&e.every((t,r)=>Me(t.parameters,n[r].parameters))}function Qe(e,n){return e.length!==n.length?!1:e.every((t,r)=>t.path===n[r].path)}function xa(e,n){let t=[];return Object.entries(e.children).forEach(([r,i])=>{r===T&&(t=t.concat(n(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==T&&(t=t.concat(n(i,r)))}),t}var ht=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:()=>new He,providedIn:"root"})}return e})(),He=class{parse(n){let t=new pr(n);return new oe(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){let t=`/${Ct(n.root,!0)}`,r=Na(n.queryParams),i=typeof n.fragment=="string"?`#${Ra(n.fragment)}`:"";return`${t}${r}${i}`}},Sa=new He;function nn(e){return e.segments.map(n=>Ji(n)).join("/")}function Ct(e,n){if(!e.hasChildren())return nn(e);if(n){let t=e.children[T]?Ct(e.children[T],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==T&&r.push(`${i}:${Ct(o,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}else{let t=xa(e,(r,i)=>i===T?[Ct(e.children[T],!1)]:[`${i}:${Ct(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[T]!=null?`${nn(e)}/${t[0]}`:`${nn(e)}/(${t.join("//")})`}}function Zi(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Jt(e){return Zi(e).replace(/%3B/gi,";")}function Ra(e){return encodeURI(e)}function dr(e){return Zi(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rn(e){return decodeURIComponent(e)}function $i(e){return rn(e.replace(/\+/g,"%20"))}function Ji(e){return`${dr(e.path)}${Ta(e.parameters)}`}function Ta(e){return Object.entries(e).map(([n,t])=>`;${dr(n)}=${dr(t)}`).join("")}function Na(e){let n=Object.entries(e).map(([t,r])=>Array.isArray(r)?r.map(i=>`${Jt(t)}=${Jt(i)}`).join("&"):`${Jt(t)}=${Jt(r)}`).filter(t=>t);return n.length?`?${n.join("&")}`:""}var Ma=/^[^\/()?;#]+/;function or(e){let n=e.match(Ma);return n?n[0]:""}var Ea=/^[^\/()?;=#]+/;function Da(e){let n=e.match(Ea);return n?n[0]:""}var Aa=/^[^=?&#]+/;function Pa(e){let n=e.match(Aa);return n?n[0]:""}var Oa=/^[^&#]+/;function ka(e){let n=e.match(Oa);return n?n[0]:""}var pr=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new k([],{}):new k([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new Y(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1,n)),(t.length>0||Object.keys(r).length>0)&&(i[T]=new k(t,r)),i}parseSegment(){let n=or(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new Y(4009,!1);return this.capture(n),new Be(rn(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let t=Da(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){let i=or(this.remaining);i&&(r=i,this.capture(r))}n[rn(t)]=rn(r)}parseQueryParam(n){let t=Pa(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){let s=ka(this.remaining);s&&(r=s,this.capture(r))}let i=$i(t),o=$i(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n,t){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=or(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new Y(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):n&&(s=T);let a=this.parseChildren(t+1);r[s??T]=Object.keys(a).length===1&&a[T]?a[T]:new k([],a),this.consumeOptional("//")}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new Y(4011,!1)}};function eo(e){return e.segments.length>0?new k([],{[T]:e}):e}function to(e){let n={};for(let[r,i]of Object.entries(e.children)){let o=to(i);if(r===T&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let t=new k(e.segments,n);return La(t)}function La(e){if(e.numberOfChildren===1&&e.children[T]){let n=e.children[T];return new k(e.segments.concat(n.segments),n.children)}return e}function qe(e){return e instanceof oe}function no(e,n,t=null,r=null,i=new He){let o=ro(e);return io(o,n,t,r,i)}function ro(e){let n;function t(o){let s={};for(let c of o.children){let l=t(c);s[c.outlet]=l}let a=new k(o.url,s);return o===e&&(n=a),a}let r=t(e.root),i=eo(r);return n??i}function io(e,n,t,r,i){let o=e;for(;o.parent;)o=o.parent;if(n.length===0)return ar(o,o,o,t,r,i);let s=Ua(n);if(s.toRoot())return ar(o,o,new k([],{}),t,r,i);let a=ja(s,o,e),c=a.processChildren?It(a.segmentGroup,a.index,s.commands):ao(a.segmentGroup,a.index,s.commands);return ar(o,a.segmentGroup,c,t,r,i)}function an(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Tt(e){return typeof e=="object"&&e!=null&&e.outlets}function Fi(e,n,t){e||="\u0275";let r=new oe;return r.queryParams={[e]:n},t.parse(t.serialize(r)).queryParams[e]}function ar(e,n,t,r,i,o){let s={};for(let[l,u]of Object.entries(r??{}))s[l]=Array.isArray(u)?u.map(d=>Fi(l,d,o)):Fi(l,u,o);let a;e===n?a=t:a=oo(e,n,t);let c=eo(to(a));return new oe(c,s,i)}function oo(e,n,t){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===n?r[i]=t:r[i]=oo(o,n,t)}),new k(e.segments,r)}var sn=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&an(r[0]))throw new Y(4003,!1);let i=r.find(Tt);if(i&&i!==ba(r))throw new Y(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Ua(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new sn(!0,0,e);let n=0,t=!1,r=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?t=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new sn(t,n,r)}var at=class{segmentGroup;processChildren;index;constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}};function ja(e,n,t){if(e.isAbsolute)return new at(n,!0,0);if(!t)return new at(n,!1,NaN);if(t.parent===null)return new at(t,!0,0);let r=an(e.commands[0])?0:1,i=t.segments.length-1+r;return $a(t,i,e.numberOfDoubleDots)}function $a(e,n,t){let r=e,i=n,o=t;for(;o>i;){if(o-=i,r=r.parent,!r)throw new Y(4005,!1);i=r.segments.length}return new at(r,!1,i-o)}function Fa(e){return Tt(e[0])?e[0].outlets:{[T]:e}}function ao(e,n,t){if(e??=new k([],{}),e.segments.length===0&&e.hasChildren())return It(e,n,t);let r=za(e,n,t),i=t.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let o=new k(e.segments.slice(0,r.pathIndex),{});return o.children[T]=new k(e.segments.slice(r.pathIndex),e.children),It(o,0,i)}else return r.match&&i.length===0?new k(e.segments,{}):r.match&&!e.hasChildren()?hr(e,n,t):r.match?It(e,0,i):hr(e,n,t)}function It(e,n,t){if(t.length===0)return new k(e.segments,{});{let r=Fa(t),i={};if(Object.keys(r).some(o=>o!==T)&&e.children[T]&&e.numberOfChildren===1&&e.children[T].segments.length===0){let o=It(e.children[T],n,t);return new k(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=ao(e.children[o],n,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new k(e.segments,i)}}function za(e,n,t){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=t.length)return o;let s=e.segments[i],a=t[r];if(Tt(a))break;let c=`${a}`,l=r<t.length-1?t[r+1]:null;if(i>0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Bi(c,l,s))return o;r+=2}else{if(!Bi(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function hr(e,n,t){let r=e.segments.slice(0,n),i=0;for(;i<t.length;){let o=t[i];if(Tt(o)){let c=Ba(o.outlets);return new k(r,c)}if(i===0&&an(t[0])){let c=e.segments[n];r.push(new Be(c.path,zi(t[0]))),i++;continue}let s=Tt(o)?o.outlets[T]:`${o}`,a=i<t.length-1?t[i+1]:null;s&&a&&an(a)?(r.push(new Be(s,zi(a))),i+=2):(r.push(new Be(s,{})),i++)}return new k(r,{})}function Ba(e){let n={};return Object.entries(e).forEach(([t,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[t]=hr(new k([],{}),0,r))}),n}function zi(e){let n={};return Object.entries(e).forEach(([t,r])=>n[t]=`${r}`),n}function Bi(e,n,t){return e==t.path&&Me(n,t.parameters)}var xt="imperative",K=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(K||{}),he=class{id;url;constructor(n,t){this.id=n,this.url=t}},Xe=class extends he{type=K.NavigationStart;navigationTrigger;restoredState;constructor(n,t,r="imperative",i=null){super(n,t),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Se=class extends he{urlAfterRedirects;type=K.NavigationEnd;constructor(n,t,r){super(n,t),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Z=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(Z||{}),Nt=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(Nt||{}),be=class extends he{reason;code;type=K.NavigationCancel;constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function so(e){return e instanceof be&&(e.code===Z.Redirect||e.code===Z.SupersededByNewNavigation)}var Oe=class extends he{reason;code;type=K.NavigationSkipped;constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i}},Ze=class extends he{error;target;type=K.NavigationError;constructor(n,t,r,i){super(n,t),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Mt=class extends he{urlAfterRedirects;state;type=K.RoutesRecognized;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},cn=class extends he{urlAfterRedirects;state;type=K.GuardsCheckStart;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ln=class extends he{urlAfterRedirects;state;shouldActivate;type=K.GuardsCheckEnd;constructor(n,t,r,i,o){super(n,t),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},un=class extends he{urlAfterRedirects;state;type=K.ResolveStart;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},dn=class extends he{urlAfterRedirects;state;type=K.ResolveEnd;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pn=class{route;type=K.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},hn=class{route;type=K.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},fn=class{snapshot;type=K.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},gn=class{snapshot;type=K.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},mn=class{snapshot;type=K.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vn=class{snapshot;type=K.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var ct=class{},Et=class{},lt=class{url;navigationBehaviorOptions;constructor(n,t){this.url=n,this.navigationBehaviorOptions=t}};function Ha(e){return!(e instanceof ct)&&!(e instanceof lt)&&!(e instanceof Et)}var yn=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new ft(this.rootInjector)}},ft=(()=>{class e{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}onChildOutletCreated(t,r){let i=this.getOrCreateContext(t);i.outlet=r,this.contexts.set(t,i)}onChildOutletDestroyed(t){let r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new yn(this.rootInjector),this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(r){return new(r||e)(Wt(ze))};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),bn=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){let t=fr(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){let t=fr(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){let t=gr(n,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return gr(n,this._root).map(t=>t.value)}};function fr(e,n){if(e===n.value)return n;for(let t of n.children){let r=fr(e,t);if(r)return r}return null}function gr(e,n){if(e===n.value)return[n];for(let t of n.children){let r=gr(e,t);if(r.length)return r.unshift(n),r}return[]}var pe=class{value;children;constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}};function ot(e){let n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}var Dt=class extends bn{snapshot;constructor(n,t){super(n),this.snapshot=t,Rr(this,n)}toString(){return this.snapshot.toString()}};function co(e,n){let t=qa(e,n),r=new ge([new Be("",{})]),i=new ge({}),o=new ge({}),s=new ge({}),a=new ge(""),c=new ke(r,i,s,a,o,T,e,t.root);return c.snapshot=t.root,new Dt(new pe(c,[]),t)}function qa(e,n){let t={},r={},i={},s=new ut([],t,i,"",r,T,e,null,{},n);return new At("",new pe(s,[]))}var ke=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,t,r,i,o,s,a,c){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(te(l=>l[kt]))??D(void 0),this.url=n,this.params=t,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(te(n=>Ye(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(te(n=>Ye(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Sr(e,n,t="emptyOnly"){let r,{routeConfig:i}=e;return n!==null&&(t==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:w(w({},n.params),e.params),data:w(w({},n.data),e.data),resolve:w(w(w(w({},e.data),n.data),i?.data),e._resolvedData)}:r={params:w({},e.params),data:w({},e.data),resolve:w(w({},e.data),e._resolvedData??{})},i&&uo(i)&&(r.resolve[kt]=i.title),r}var ut=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[kt]}constructor(n,t,r,i,o,s,a,c,l,u){this.url=n,this.params=t,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l,this._environmentInjector=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Ye(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ye(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${t}')`}},At=class extends bn{url;constructor(n,t){super(t),this.url=n,Rr(this,t)}toString(){return lo(this._root)}};function Rr(e,n){n.value._routerState=e,n.children.forEach(t=>Rr(e,t))}function lo(e){let n=e.children.length>0?` { ${e.children.map(lo).join(", ")} } `:"";return`${e.value}${n}`}function sr(e){if(e.snapshot){let n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,Me(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),Me(n.params,t.params)||e.paramsSubject.next(t.params),ya(n.url,t.url)||e.urlSubject.next(t.url),Me(n.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function mr(e,n){let t=Me(e.params,n.params)&&Ia(e.url,n.url),r=!e.parent!=!n.parent;return t&&!r&&(!e.parent||mr(e.parent,n.parent))}function uo(e){return typeof e.title=="string"||e.title===null}var po=new ne(""),Tr=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=T;activateEvents=new We;deactivateEvents=new We;attachEvents=new We;detachEvents=new We;routerOutletData=L();parentContexts=_(ft);location=_(fi);changeDetector=_(Yt);inputBinder=_(Lt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(t){if(t.name){let{firstChange:r,previousValue:i}=t.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Y(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Y(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Y(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new Y(4013,!1);this._activatedRoute=t;let i=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new vr(t,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=_t({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[bt]})}return e})(),vr=class{route;childContexts;parent;outletData;constructor(n,t,r,i){this.route=n,this.childContexts=t,this.parent=r,this.outletData=i}get(n,t){return n===ke?this.route:n===ft?this.childContexts:n===po?this.outletData:this.parent.get(n,t)}},Lt=new ne(""),Nr=(()=>{class e{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:r}=t,i=Wn([r.queryParams,r.params,r.data]).pipe(we(([o,s,a],c)=>(a=w(w(w({},o),s),a),c===0?D(a):Promise.resolve(a)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(t);return}let s=ki(r.component);if(!s){this.unsubscribeFromRouteData(t);return}for(let{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(t,i)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:e.\u0275fac})}return e})(),Mr=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=U({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Ne(0,"router-outlet")},dependencies:[Tr],encapsulation:2})}return e})();function Er(e){let n=e.children&&e.children.map(Er),t=n?fe(w({},e),{children:n}):w({},e);return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==T&&(t.component=Mr),t}function Va(e,n,t){let r=Pt(e,n._root,t?t._root:void 0);return new Dt(r,n)}function Pt(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){let r=t.value;r._futureSnapshot=n.value;let i=Ga(e,n,t);return new pe(r,i)}else{if(e.shouldAttach(n.value)){let o=e.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Pt(e,a)),s}}let r=Wa(n.value),i=n.children.map(o=>Pt(e,o));return new pe(r,i)}}function Ga(e,n,t){return n.children.map(r=>{for(let i of t.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return Pt(e,r,i);return Pt(e,r)})}function Wa(e){return new ke(new ge(e.url),new ge(e.params),new ge(e.queryParams),new ge(e.fragment),new ge(e.data),e.outlet,e.component,e)}var dt=class{redirectTo;navigationBehaviorOptions;constructor(n,t){this.redirectTo=n,this.navigationBehaviorOptions=t}},ho="ngNavigationCancelingError";function _n(e,n){let{redirectTo:t,navigationBehaviorOptions:r}=qe(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=fo(!1,Z.Redirect);return i.url=t,i.navigationBehaviorOptions=r,i}function fo(e,n){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[ho]=!0,t.cancellationCode=n,t}function Ka(e){return go(e)&&qe(e.url)}function go(e){return!!e&&e[ho]}var yr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,t,r,i,o){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),sr(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){let i=ot(t);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,t,r){let i=n.value,o=t?t.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else o&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){let r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=ot(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){let r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=ot(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,t,r){let i=ot(t);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new vn(o.value.snapshot))}),n.children.length&&this.forwardEvent(new gn(n.value.snapshot))}activateRoutes(n,t,r){let i=n.value,o=t?t.value:null;if(sr(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),sr(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},Cn=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},st=class{component;route;constructor(n,t){this.component=n,this.route=t}};function Qa(e,n,t){let r=e._root,i=n?n._root:null;return wt(r,i,t,[r.value])}function Ya(e){let n=e.routeConfig?e.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:e,guards:n}}function gt(e,n){let t=Symbol(),r=n.get(e,t);return r===t?typeof e=="function"&&!oi(e)?e:n.get(e):r}function wt(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ot(n);return e.children.forEach(s=>{Xa(s,o[s.value.outlet],t,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>St(a,t.getContext(s),i)),i}function Xa(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=Za(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Cn(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?wt(e,n,a?a.children:null,r,i):wt(e,n,t,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new st(a.outlet.component,s))}else s&&St(n,a,i),i.canActivateChecks.push(new Cn(r)),o.component?wt(e,null,a?a.children:null,r,i):wt(e,null,t,r,i);return i}function Za(e,n,t){if(typeof t=="function")return ve(n._environmentInjector,()=>t(e,n));switch(t){case"pathParamsChange":return!Qe(e.url,n.url);case"pathParamsOrQueryParamsChange":return!Qe(e.url,n.url)||!Me(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mr(e,n)||!Me(e.queryParams,n.queryParams);default:return!mr(e,n)}}function St(e,n,t){let r=ot(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?n?St(s,n.children.getContext(o),t):St(s,null,t):St(s,n,t)}),i.component?n&&n.outlet&&n.outlet.isActivated?t.canDeactivateChecks.push(new st(n.outlet.component,i)):t.canDeactivateChecks.push(new st(null,i)):t.canDeactivateChecks.push(new st(null,i))}function Ut(e){return typeof e=="function"}function Ja(e){return typeof e=="boolean"}function es(e){return e&&Ut(e.canLoad)}function ts(e){return e&&Ut(e.canActivate)}function ns(e){return e&&Ut(e.canActivateChild)}function rs(e){return e&&Ut(e.canDeactivate)}function is(e){return e&&Ut(e.canMatch)}function mo(e){return e instanceof ei||e?.name==="EmptyError"}var en=Symbol("INITIAL_VALUE");function pt(){return we(e=>Wn(e.map(n=>n.pipe(it(1),ri(en)))).pipe(te(n=>{for(let t of n)if(t!==!0){if(t===en)return en;if(t===!1||os(t))return t}return!0}),Ge(n=>n!==en),it(1)))}function os(e){return qe(e)||e instanceof dt}function vo(e){return e.aborted?D(void 0).pipe(it(1)):new Zr(n=>{let t=()=>{n.next(),n.complete()};return e.addEventListener("abort",t),()=>e.removeEventListener("abort",t)})}function yo(e){return Gt(vo(e))}function as(e){return Ae(n=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?D(fe(w({},n),{guardsResult:!0})):ss(o,t,r).pipe(Ae(s=>s&&Ja(s)?cs(t,i,e):D(s)),te(s=>fe(w({},n),{guardsResult:s})))})}function ss(e,n,t){return de(e).pipe(Ae(r=>hs(r.component,r.route,t,n)),Fe(r=>r!==!0,!0))}function cs(e,n,t){return de(n).pipe(Vt(r=>ti(us(r.route.parent,t),ls(r.route,t),ps(e,r.path),ds(e,r.route))),Fe(r=>r!==!0,!0))}function ls(e,n){return e!==null&&n&&n(new mn(e)),D(!0)}function us(e,n){return e!==null&&n&&n(new fn(e)),D(!0)}function ds(e,n){let t=n.routeConfig?n.routeConfig.canActivate:null;if(!t||t.length===0)return D(!0);let r=t.map(i=>Ht(()=>{let o=n._environmentInjector,s=gt(i,o),a=ts(s)?s.canActivate(n,e):ve(o,()=>s(n,e));return Je(a).pipe(Fe())}));return D(r).pipe(pt())}function ps(e,n){let t=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>Ya(o)).filter(o=>o!==null).map(o=>Ht(()=>{let s=o.guards.map(a=>{let c=o.node._environmentInjector,l=gt(a,c),u=ns(l)?l.canActivateChild(t,e):ve(c,()=>l(t,e));return Je(u).pipe(Fe())});return D(s).pipe(pt())}));return D(i).pipe(pt())}function hs(e,n,t,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return D(!0);let o=i.map(s=>{let a=n._environmentInjector,c=gt(s,a),l=rs(c)?c.canDeactivate(e,n,t,r):ve(a,()=>c(e,n,t,r));return Je(l).pipe(Fe())});return D(o).pipe(pt())}function fs(e,n,t,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return D(!0);let s=o.map(a=>{let c=gt(a,e),l=es(c)?c.canLoad(n,t):ve(e,()=>c(n,t)),u=Je(l);return i?u.pipe(yo(i)):u});return D(s).pipe(pt(),bo(r))}function bo(e){return Xr(Ie(n=>{if(typeof n!="boolean")throw _n(e,n)}),te(n=>n===!0))}function gs(e,n,t,r,i,o){let s=n.canMatch;if(!s||s.length===0)return D(!0);let a=s.map(c=>{let l=gt(c,e),u=is(l)?l.canMatch(n,t,i):ve(e,()=>l(n,t,i));return Je(u).pipe(yo(o))});return D(a).pipe(pt(),bo(r))}var Pe=class e extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,e.prototype)}},Ot=class e extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,e.prototype)}};function ms(e){throw new Y(4e3,!1)}function vs(e){throw fo(!1,Z.GuardRejected)}var br=class{urlSerializer;urlTree;constructor(n,t){this.urlSerializer=n,this.urlTree=t}async lineralizeSegments(n,t){let r=[],i=t.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[T])throw ms(`${n.redirectTo}`);i=i.children[T]}}async applyRedirectCommands(n,t,r,i,o){let s=await ys(t,i,o);if(s instanceof oe)throw new Ot(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]==="/")throw new Ot(a);return a}applyRedirectCreateUrlTree(n,t,r,i){let o=this.createSegmentGroup(n,t.root,r,i);return new oe(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=t[a]}else r[i]=o}),r}createSegmentGroup(n,t,r,i){let o=this.createSegments(n,t.segments,r,i),s={};return Object.entries(t.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,r,i)}),new k(o,s)}createSegments(n,t,r,i){return t.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,t,r){let i=r[t.path.substring(1)];if(!i)throw new Y(4001,!1);return i}findOrReturn(n,t){let r=0;for(let i of t){if(i.path===n.path)return t.splice(r),i;r++}return n}};function ys(e,n,t){if(typeof e=="string")return Promise.resolve(e);let r=e;return on(Je(ve(t,()=>r(n))))}function bs(e,n){return e.providers&&!e._injector&&(e._injector=er(e.providers,n,`Route: ${e.path}`)),e._injector??n}function xe(e){return e.outlet||T}function _s(e,n){let t=e.filter(r=>xe(r)===n);return t.push(...e.filter(r=>xe(r)!==n)),t}var _r={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function _o(e){return{routeConfig:e.routeConfig,url:e.url,params:e.params,queryParams:e.queryParams,fragment:e.fragment,data:e.data,outlet:e.outlet,title:e.title,paramMap:e.paramMap,queryParamMap:e.queryParamMap}}function Cs(e,n,t,r,i,o,s){let a=Co(e,n,t);if(!a.matched)return D(a);let c=_o(o(a));return r=bs(n,r),gs(r,n,t,i,c,s).pipe(te(l=>l===!0?a:w({},_r)))}function Co(e,n,t){if(n.path==="")return n.pathMatch==="full"&&(e.hasChildren()||t.length>0)?w({},_r):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Vi)(t,e,n);if(!i)return w({},_r);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?w(w({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Hi(e,n,t,r,i){return t.length>0&&xs(e,t,r,i)?{segmentGroup:new k(n,Is(r,new k(t,e.children))),slicedSegments:[]}:t.length===0&&Ss(e,t,r)?{segmentGroup:new k(e.segments,ws(e,t,r,e.children)),slicedSegments:t}:{segmentGroup:new k(e.segments,e.children),slicedSegments:t}}function ws(e,n,t,r){let i={};for(let o of t)if(In(e,n,o)&&!r[xe(o)]){let s=new k([],{});i[xe(o)]=s}return w(w({},r),i)}function Is(e,n){let t={};t[T]=n;for(let r of e)if(r.path===""&&xe(r)!==T){let i=new k([],{});t[xe(r)]=i}return t}function xs(e,n,t,r){return t.some(i=>!In(e,n,i)||!(xe(i)!==T)?!1:!(r!==void 0&&xe(i)===r))}function Ss(e,n,t){return t.some(r=>In(e,n,r))}function In(e,n,t){return(e.hasChildren()||n.length>0)&&t.pathMatch==="full"?!1:t.path===""}function Rs(e,n,t){return n.length===0&&!e.children[t]}var Cr=class{};async function Ts(e,n,t,r,i,o,s="emptyOnly",a){return new wr(e,n,t,r,i,s,o,a).recognize()}var Ns=31,wr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,t,r,i,o,s,a,c){this.injector=n,this.configLoader=t,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new br(this.urlSerializer,this.urlTree)}noMatchError(n){return new Y(4002,`'${n.segmentGroup}'`)}async recognize(){let n=Hi(this.urlTree.root,[],[],this.config).segmentGroup,{children:t,rootSnapshot:r}=await this.match(n),i=new pe(r,t),o=new At("",i),s=no(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}async match(n){let t=new ut([],Object.freeze({}),Object.freeze(w({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),T,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,n,T,t),rootSnapshot:t}}catch(r){if(r instanceof Ot)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Pe?this.noMatchError(r):r}}async processSegmentGroup(n,t,r,i,o){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,t,r,o);let s=await this.processSegment(n,t,r,r.segments,i,!0,o);return s instanceof pe?[s]:[]}async processChildren(n,t,r,i){let o=[];for(let c of Object.keys(r.children))c==="primary"?o.unshift(c):o.push(c);let s=[];for(let c of o){let l=r.children[c],u=_s(t,c),d=await this.processSegmentGroup(n,u,l,c,i);s.push(...d)}let a=wo(s);return Ms(a),a}async processSegment(n,t,r,i,o,s,a){for(let c of t)try{return await this.processSegmentAgainstRoute(c._injector??n,t,c,r,i,o,s,a)}catch(l){if(l instanceof Pe||mo(l))continue;throw l}if(Rs(r,i,o))return new Cr;throw new Pe(r)}async processSegmentAgainstRoute(n,t,r,i,o,s,a,c){if(xe(r)!==s&&(s===T||!In(i,o,r)))throw new Pe(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(n,i,t,r,o,s,c);throw new Pe(i)}async expandSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:d,remainingSegments:g}=Co(t,i,o);if(!c)throw new Pe(t);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Ns&&(this.allowRedirects=!1));let h=this.createSnapshot(n,i,o,l,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let I=await this.applyRedirects.applyRedirectCommands(u,i.redirectTo,d,_o(h),n),f=await this.applyRedirects.lineralizeSegments(i,I);return this.processSegment(n,r,t,f.concat(g),s,!1,a)}createSnapshot(n,t,r,i,o){let s=new ut(r,i,Object.freeze(w({},this.urlTree.queryParams)),this.urlTree.fragment,Ds(t),xe(t),t.component??t._loadedComponent??null,t,As(t),n),a=Sr(s,o,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}async matchSegmentAgainstRoute(n,t,r,i,o,s){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=E=>this.createSnapshot(n,r,E.consumedSegments,E.parameters,s),c=await on(Cs(t,r,i,n,this.urlSerializer,a,this.abortSignal));if(r.path==="**"&&(t.children={}),!c?.matched)throw new Pe(t);n=r._injector??n;let{routes:l}=await this.getChildConfig(n,r,i),u=r._loadedInjector??n,{parameters:d,consumedSegments:g,remainingSegments:h}=c,I=this.createSnapshot(n,r,g,d,s),{segmentGroup:f,slicedSegments:p}=Hi(t,g,h,l,o);if(p.length===0&&f.hasChildren()){let E=await this.processChildren(u,l,f,I);return new pe(I,E)}if(l.length===0&&p.length===0)return new pe(I,[]);let y=xe(r)===o,b=await this.processSegment(u,l,f,p,y?T:o,!0,I);return new pe(I,b instanceof pe?[b]:[])}async getChildConfig(n,t,r){if(t.children)return{routes:t.children,injector:n};if(t.loadChildren){if(t._loadedRoutes!==void 0){let o=t._loadedNgModuleFactory;return o&&!t._loadedInjector&&(t._loadedInjector=o.create(n).injector),{routes:t._loadedRoutes,injector:t._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await on(fs(n,t,r,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(n,t);return t._loadedRoutes=o.routes,t._loadedInjector=o.injector,t._loadedNgModuleFactory=o.factory,o}throw vs(t)}return{routes:[],injector:n}}};function Ms(e){e.sort((n,t)=>n.value.outlet===T?-1:t.value.outlet===T?1:n.value.outlet.localeCompare(t.value.outlet))}function Es(e){let n=e.value.routeConfig;return n&&n.path===""}function wo(e){let n=[],t=new Set;for(let r of e){if(!Es(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),t.add(i)):n.push(r)}for(let r of t){let i=wo(r.children);n.push(new pe(r.value,i))}return n.filter(r=>!t.has(r))}function Ds(e){return e.data||{}}function As(e){return e.resolve||{}}function Ps(e,n,t,r,i,o,s){return Ae(async a=>{let{state:c,tree:l}=await Ts(e,n,t,r,a.extractedUrl,i,o,s);return fe(w({},a),{targetSnapshot:c,urlAfterRedirects:l})})}function Os(e){return Ae(n=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=n;if(!r.length)return D(n);let i=new Set(r.map(a=>a.route)),o=new Set;for(let a of i)if(!o.has(a))for(let c of Io(a))o.add(c);let s=0;return de(o).pipe(Vt(a=>i.has(a)?ks(a,t,e):(a.data=Sr(a,a.parent,e).resolve,D(void 0))),Ie(()=>s++),Qn(1),Ae(a=>s===o.size?D(n):me))})}function Io(e){let n=e.children.map(t=>Io(t)).flat();return[e,...n]}function ks(e,n,t){let r=e.routeConfig,i=e._resolve;return r?.title!==void 0&&!uo(r)&&(i[kt]=r.title),Ht(()=>(e.data=Sr(e,e.parent,t).resolve,Ls(i,e,n).pipe(te(o=>(e._resolvedData=o,e.data=w(w({},e.data),o),null)))))}function Ls(e,n,t){let r=lr(e);if(r.length===0)return D({});let i={};return de(r).pipe(Ae(o=>Us(e[o],n,t).pipe(Fe(),Ie(s=>{if(s instanceof dt)throw _n(new He,s);i[o]=s}))),Qn(1),te(()=>i),qt(o=>mo(o)?me:Jr(o)))}function Us(e,n,t){let r=n._environmentInjector,i=gt(e,r),o=i.resolve?i.resolve(n,t):ve(r,()=>i(n,t));return Je(o)}function qi(e){return we(n=>{let t=e(n);return t?de(t).pipe(te(()=>n)):D(n)})}var Dr=(()=>{class e{buildTitle(t){let r,i=t.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===T);return r}getResolvedTitleForRoute(t){return t.data[kt]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:()=>_(xo),providedIn:"root"})}return e})(),xo=(()=>{class e extends Dr{title;constructor(t){super(),this.title=t}updateTitle(t){let r=this.buildTitle(t);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(Wt(ji))};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),mt=new ne("",{factory:()=>({})}),jt=new ne(""),So=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=_(Ai);async loadComponent(t,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await Wi(ve(t,()=>r.loadComponent())),s=await No(To(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r)}})();return this.componentLoaders.set(r,i),i}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await Ro(r,this.compiler,t,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r)}})();return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();async function Ro(e,n,t,r){let i=await Wi(ve(t,()=>e.loadChildren())),o=await No(To(i)),s;o instanceof gi||Array.isArray(o)?s=o:s=await n.compileModuleAsync(o),r&&r(e);let a,c,l=!1,u;return Array.isArray(s)?(c=s,l=!0):(a=s.create(t).injector,u=s,c=a.get(jt,[],{optional:!0,self:!0}).flat()),{routes:c.map(Er),injector:a,factory:u}}function js(e){return e&&typeof e=="object"&&"default"in e}function To(e){return js(e)?e.default:e}async function No(e){return e}var xn=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:()=>_($s),providedIn:"root"})}return e})(),$s=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Mo=new ne("");var Fs=()=>{},Eo=new ne(""),Do=(()=>{class e{currentNavigation=z(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=z(null);events=new Ve;transitionAbortWithErrorSubject=new Ve;configLoader=_(So);environmentInjector=_(ze);destroyRef=_(Yn);urlSerializer=_(ht);rootContexts=_(ft);location=_(Zt);inputBindingEnabled=_(Lt,{optional:!0})!==null;titleStrategy=_(Dr);options=_(mt,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=_(xn);createViewTransition=_(Mo,{optional:!0});navigationErrorHandler=_(Eo,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>D(void 0);rootComponentType=null;destroyed=!1;constructor(){let t=i=>this.events.next(new pn(i)),r=i=>this.events.next(new hn(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;H(()=>{this.transitions?.next(fe(w({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(t){return this.transitions=new ge(null),this.transitions.pipe(Ge(r=>r!==null),we(r=>{let i=!1,o=new AbortController,s=()=>!i&&this.currentTransition?.id===r.id;return D(r).pipe(we(a=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",Z.SupersededByNewNavigation),me;this.currentTransition=r;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:c?fe(w({},c),{previousNavigation:null}):null,abort:()=>o.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let l=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=a.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!l&&u!=="reload")return this.events.next(new Oe(a.id,this.urlSerializer.serialize(a.rawUrl),"",Nt.IgnoredSameUrlNavigation)),a.resolve(!1),me;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return D(a).pipe(we(d=>(this.events.next(new Xe(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),d.id!==this.navigationId?me:Promise.resolve(d))),Ps(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),Ie(d=>{r.targetSnapshot=d.targetSnapshot,r.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation.update(g=>(g.finalUrl=d.urlAfterRedirects,g)),this.events.next(new Et)}),we(d=>de(r.routesRecognizeHandler.deferredHandle??D(void 0)).pipe(te(()=>d))),Ie(()=>{let d=new Mt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(d)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:d,extractedUrl:g,source:h,restoredState:I,extras:f}=a,p=new Xe(d,this.urlSerializer.serialize(g),h,I);this.events.next(p);let y=co(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=fe(w({},a),{targetSnapshot:y,urlAfterRedirects:g,extras:fe(w({},f),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(b=>(b.finalUrl=g,b)),D(r)}else return this.events.next(new Oe(a.id,this.urlSerializer.serialize(a.extractedUrl),"",Nt.IgnoredByUrlHandlingStrategy)),a.resolve(!1),me}),te(a=>{let c=new cn(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=r=fe(w({},a),{guards:Qa(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r}),as(a=>this.events.next(a)),we(a=>{if(r.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw _n(this.urlSerializer,a.guardsResult);let c=new ln(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!s())return me;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",Z.GuardRejected),me;if(a.guards.canActivateChecks.length===0)return D(a);let l=new un(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(l),!s())return me;let u=!1;return D(a).pipe(Os(this.paramsInheritanceStrategy),Ie({next:()=>{u=!0;let d=new dn(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(d)},complete:()=>{u||this.cancelNavigationTransition(a,"",Z.NoDataFromResolver)}}))}),qi(a=>{let c=u=>{let d=[];if(u.routeConfig?._loadedComponent)u.component=u.routeConfig?._loadedComponent;else if(u.routeConfig?.loadComponent){let g=u._environmentInjector;d.push(this.configLoader.loadComponent(g,u.routeConfig).then(h=>{u.component=h}))}for(let g of u.children)d.push(...c(g));return d},l=c(a.targetSnapshot.root);return l.length===0?D(a):de(Promise.all(l).then(()=>a))}),qi(()=>this.afterPreactivation()),we(()=>{let{currentSnapshot:a,targetSnapshot:c}=r,l=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return l?de(l).pipe(te(()=>r)):D(r)}),it(1),we(a=>{let c=Va(t.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=r=a=fe(w({},a),{targetRouterState:c}),this.currentNavigation.update(u=>(u.targetRouterState=c,u)),this.events.next(new ct);let l=r.beforeActivateHandler.deferredHandle;return l?de(l.then(()=>a)):D(a)}),Ie(a=>{new yr(t.routeReuseStrategy,r.targetRouterState,r.currentRouterState,c=>this.events.next(c),this.inputBindingEnabled).activate(this.rootContexts),s()&&(i=!0,this.currentNavigation.update(c=>(c.abort=Fs,c)),this.lastSuccessfulNavigation.set(H(this.currentNavigation)),this.events.next(new Se(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),Gt(vo(o.signal).pipe(Ge(()=>!i&&!r.targetRouterState),Ie(()=>{this.cancelNavigationTransition(r,o.signal.reason+"",Z.Aborted)}))),Ie({complete:()=>{i=!0}}),Gt(this.transitionAbortWithErrorSubject.pipe(Ie(a=>{throw a}))),ni(()=>{o.abort(),i||this.cancelNavigationTransition(r,"",Z.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),qt(a=>{if(i=!0,this.destroyed)return r.resolve(!1),me;if(go(a))this.events.next(new be(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode)),Ka(a)?this.events.next(new lt(a.url,a.navigationBehaviorOptions)):r.resolve(!1);else{let c=new Ze(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);try{let l=ve(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(l instanceof dt){let{message:u,cancellationCode:d}=_n(this.urlSerializer,l);this.events.next(new be(r.id,this.urlSerializer.serialize(r.extractedUrl),u,d)),this.events.next(new lt(l.redirectTo,l.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(l){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(l)}}return me}))}))}cancelNavigationTransition(t,r,i){let o=new be(t.id,this.urlSerializer.serialize(t.extractedUrl),r,i);this.events.next(o),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=H(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return t.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function zs(e){return e!==xt}var Ao=new ne("");var Po=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:()=>_(Bs),providedIn:"root"})}return e})(),wn=class{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}shouldDestroyInjector(n){return!0}},Bs=(()=>{class e extends wn{static \u0275fac=(()=>{let t;return function(i){return(t||(t=Xn(e)))(i||e)}})();static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Sn=(()=>{class e{urlSerializer=_(ht);options=_(mt,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=_(Zt);urlHandlingStrategy=_(xn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new oe;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:t,initialUrl:r,targetBrowserUrl:i}){let o=t!==void 0?this.urlHandlingStrategy.merge(t,r):r,s=i??o;return s instanceof oe?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:t,finalUrl:r,initialUrl:i}){r&&t?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=t):this.rawUrlTree=i}routerState=co(null,_(ze));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:()=>_(Hs),providedIn:"root"})}return e})(),Hs=(()=>{class e extends Sn{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{t(r.url,r.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(t,r){t instanceof Xe?this.updateStateMemento():t instanceof Oe?this.commitTransition(r):t instanceof Mt?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):t instanceof ct?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):t instanceof be&&!so(t)?this.restoreHistory(r):t instanceof Ze?this.restoreHistory(r,!0):t instanceof Se&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,{extras:r,id:i}){let{replaceUrl:o,state:s}=r;if(this.location.isCurrentPathEqualTo(t)||o){let a=this.browserPageId,c=w(w({},s),this.generateNgRouterState(i,a));this.location.replaceState(t,"",c)}else{let a=w(w({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(t,"",a)}}restoreHistory(t,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===t.finalUrl&&o===0&&(this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:t}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Xn(e)))(i||e)}})();static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ar(e,n){e.events.pipe(Ge(t=>t instanceof Se||t instanceof be||t instanceof Ze||t instanceof Oe),te(t=>t instanceof Se||t instanceof Oe?0:(t instanceof be?t.code===Z.Redirect||t.code===Z.SupersededByNewNavigation:!1)?2:1),Ge(t=>t!==2),it(1)).subscribe(()=>{n()})}var Le=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=_(vi);stateManager=_(Sn);options=_(mt,{optional:!0})||{};pendingTasks=_(ui);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=_(Do);urlSerializer=_(ht);location=_(Zt);urlHandlingStrategy=_(xn);injector=_(ze);_events=new Ve;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=_(Po);injectorCleanup=_(Ao,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=_(jt,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!_(Lt,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:t=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Yr;subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=H(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof be&&r.code!==Z.Redirect&&r.code!==Z.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Se)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof lt){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),c=w({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||zs(i.source)},s);this.scheduleNavigation(a,xt,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Ha(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),xt,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r,i,o)=>{this.navigateToSyncWithBrowser(t,i,r,o)})}navigateToSyncWithBrowser(t,r,i,o){let s=i?.navigationId?i:null;if(i){let c=w({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(t);this.scheduleNavigation(a,r,s,o).catch(c=>{this.disposed||this.injector.get(Kt)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return H(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Er),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:s,u=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":u=w(w({},this.currentUrlTree.queryParams),o);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}u!==null&&(u=this.removeEmptyProps(u));let d;try{let g=i?i.snapshot:this.routerState.snapshot.root;d=ro(g)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),d=this.currentUrlTree.root}return io(d,t,u,l??null,this.urlSerializer)}navigateByUrl(t,r={skipLocationChange:!1}){let i=qe(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,xt,null,r)}navigate(t,r={skipLocationChange:!1}){return qs(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.console.warn(ii(4018,!1)),this.urlSerializer.parse("/")}}isActive(t,r){let i;if(r===!0?i=w({},Ir):r===!1?i=w({},Rt):i=w(w({},Rt),r),qe(t))return ur(this.currentUrlTree,t,i);let o=this.parseUrl(t);return ur(this.currentUrlTree,o,i)}removeEmptyProps(t){return Object.entries(t).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(t,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((d,g)=>{a=d,c=g});let u=this.pendingTasks.add();return Ar(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function qs(e){for(let n=0;n<e.length;n++)if(e[n]==null)throw new Y(4008,!1)}var Gs=(()=>{class e{router=_(Le);stateManager=_(Sn);fragment=z("");queryParams=z({});path=z("");serializer=_(ht);constructor(){this.updateState(),this.router.events?.subscribe(t=>{t instanceof Se&&this.updateState()})}updateState(){let{fragment:t,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(t),this.queryParams.set(i),this.path.set(this.serializer.serialize(new oe(r)))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Rn=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=_(new Oi("href"),{optional:!0});reactiveHref=Pi(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return H(this.reactiveHref)}set href(t){this.reactiveHref.set(t)}set target(t){this._target.set(t)}get target(){return H(this._target)}_target=z(void 0);set queryParams(t){this._queryParams.set(t)}get queryParams(){return H(this._queryParams)}_queryParams=z(void 0,{equal:()=>!1});set fragment(t){this._fragment.set(t)}get fragment(){return H(this._fragment)}_fragment=z(void 0);set queryParamsHandling(t){this._queryParamsHandling.set(t)}get queryParamsHandling(){return H(this._queryParamsHandling)}_queryParamsHandling=z(void 0);set state(t){this._state.set(t)}get state(){return H(this._state)}_state=z(void 0,{equal:()=>!1});set info(t){this._info.set(t)}get info(){return H(this._info)}_info=z(void 0,{equal:()=>!1});set relativeTo(t){this._relativeTo.set(t)}get relativeTo(){return H(this._relativeTo)}_relativeTo=z(void 0);set preserveFragment(t){this._preserveFragment.set(t)}get preserveFragment(){return H(this._preserveFragment)}_preserveFragment=z(!1);set skipLocationChange(t){this._skipLocationChange.set(t)}get skipLocationChange(){return H(this._skipLocationChange)}_skipLocationChange=z(!1);set replaceUrl(t){this._replaceUrl.set(t)}get replaceUrl(){return H(this._replaceUrl)}_replaceUrl=z(!1);isAnchorElement;onChanges=new Ve;applicationErrorHandler=_(Kt);options=_(mt,{optional:!0});reactiveRouterState=_(Gs);constructor(t,r,i,o,s,a){this.router=t,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.onChanges.next(this)}routerLinkInput=z(null);set routerLink(t){t==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(qe(t)?this.routerLinkInput.set(t):this.routerLinkInput.set(Array.isArray(t)?t:[t]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,r,i,o,s){let a=this._urlTree();if(a===null||this.isAnchorElement&&(t!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c)?.catch(l=>{this.applicationErrorHandler(l)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(t,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,t,r):i.removeAttribute(o,t)}_urlTree=v(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let t=i=>i==="preserve"||i==="merge";(t(this._queryParamsHandling())||t(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:qe(r)?r:this.router.createUrlTree(r,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(t,r)=>this.computeHref(t)===this.computeHref(r)});get urlTree(){return H(this._urlTree)}computeHref(t){return t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t))??"":null}static \u0275fac=function(r){return new(r||e)(Te(Le),Te(ke),pi("tabindex"),Te(Jn),Te(Zn),Te(Li))};static \u0275dir=_t({type:e,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&xi("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&O("href",i.reactiveHref(),hi)("target",i._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Xt],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Xt],replaceUrl:[2,"replaceUrl","replaceUrl",Xt],routerLink:"routerLink"},features:[bt]})}return e})(),Ws=(()=>{class e{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new We;link=_(Rn,{optional:!0});constructor(t,r,i,o){this.router=t,this.element=r,this.renderer=i,this.cdr=o,this.routerEventsSubscription=t.events.subscribe(s=>{s instanceof Se&&this.update()})}ngAfterContentInit(){D(this.links.changes,D(null)).pipe(Kn()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let t=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=de(t).pipe(Kn()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(t){let r=Array.isArray(t)?t:t.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let t=this.hasActiveLinks();this.classes.forEach(r=>{t?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),t&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.isActiveChange.emit(t))})}isLinkActive(t){let r=Ks(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??!1?w({},Ir):w({},Rt);return i=>{let o=i.urlTree;return o?H(xr(o,t,r)):!1}}hasActiveLinks(){let t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}static \u0275fac=function(r){return new(r||e)(Te(Le),Te(Zn),Te(Jn),Te(Yt))};static \u0275dir=_t({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&Ri(o,Rn,5),r&2){let s;Ti(s=Ni())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[bt]})}return e})();function Ks(e){let n=e;return!!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var Qs=new ne("");function Ys(e,...n){return ai([{provide:jt,multi:!0,useValue:e},[],{provide:ke,useFactory:Xs},{provide:bi,multi:!0,useFactory:Js},n.map(t=>t.\u0275providers)])}function Xs(){return _(Le).routerState.root}function Zs(e,n){return{\u0275kind:e,\u0275providers:n}}function Js(){let e=_(li);return n=>{let t=e.get(_i);if(n!==t.components[0])return;let r=e.get(Le),i=e.get(ec);e.get(tc)===1&&r.initialNavigation(),e.get(nc,null,{optional:!0})?.setUpPreloading(),e.get(Qs,null,{optional:!0})?.init(),r.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ec=new ne("",{factory:()=>new Ve}),tc=new ne("",{factory:()=>1});var nc=new ne("");function rc(){return Zs(8,[Nr,{provide:Lt,useExisting:Nr}])}var Tn="sm-debug-slots",ic="debug-slots",oc="is-debug-slots",Nn=class e{visible=z(!1);constructor(){this.visible.set(this.resolveInitial()),di(()=>{let n=this.visible();document.documentElement.classList.toggle(oc,n)})}toggle(){let n=!this.visible();this.visible.set(n);try{localStorage.setItem(Tn,n?"1":"0")}catch{}}resolveInitial(){let t=new URLSearchParams(window.location.search).get(ic);if(t==="1"||t==="true"){try{localStorage.setItem(Tn,"1")}catch{}return!0}if(t==="0"||t==="false"){try{localStorage.setItem(Tn,"0")}catch{}return!1}try{return localStorage.getItem(Tn)==="1"}catch{return!1}}static \u0275fac=function(t){return new(t||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})};var Mn=class e{registry=z({});setRegistry(n){n&&this.registry.set(n)}get(n){return this.registry()[n]}all(){return this.registry()}static \u0275fac=function(t){return new(t||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})};function le(e){return typeof e=="object"&&e!==null}function Ue(e,n){return le(e)&&Array.isArray(e[n])}function En(e,n){return le(e)&&typeof e[n]=="string"}var J={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 ac=(e,n)=>n.label;function sc(e,n){if(e&1&&(R(0,"h5",1),S(1),N()),e&2){let t=C();m(),M(t.label())}}function cc(e,n){if(e&1&&(R(0,"p",2),S(1),N()),e&2){let t=C();m(),M(t.emptyText())}}function lc(e,n){if(e&1&&(R(0,"li",4)(1,"span",5),S(2),N(),R(3,"span",6),Ke(4,"span",7),N(),R(5,"span",8),S(6),N()()),e&2){let t=n.$implicit,r=C(2);O("title",t.tooltip??""),m(2),M(t.label),m(2),Mi("width",r.percent(t.value),"%"),m(2),M(t.value)}}function uc(e,n){if(e&1&&(R(0,"ul",3),re(1,lc,7,5,"li",4,ac),N()),e&2){let t=C();m(),ie(t.entries())}}var Dn=class e{inputs=L.required();typed=v(()=>{let n=this.inputs().payload;return le(n)?Ue(n,"entries")?n:{entries:[]}:{entries:[]}});entries=v(()=>this.typed().entries??[]);label=v(()=>this.inputs().label);emptyText=v(()=>this.inputs().emptyText??J.emptyDefault);maxValue=v(()=>this.entries().reduce((t,r)=>r.value>t?r.value:t,0));percent(n){let t=this.maxValue();return t===0?0:Math.round(n/t*100)}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=U({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(t,r){t&1&&(R(0,"section",0),A(1,sc,2,1,"h5",1),A(2,cc,2,1,"p",2)(3,uc,3,0,"ul",3),N()),t&2&&(O("data-testid","renderer-node-breakdown"),m(),P(r.label()?1:-1),m(),P(r.entries().length===0?2:3))},styles:[".vc-breakdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);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-surface-700);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-surface-600)}.vc-breakdown__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};function dc(e,n){if(e&1&&(R(0,"span",1),S(1),N()),e&2){let t=C(),r=C();tr(r.hostClass()),m(),M(t.text)}}function pc(e,n){if(e&1&&Ke(0,"i",1),e&2){let t=C(),r=C();tr(r.hostClass()+" "+t.cls)}}function hc(e,n){e&1&&A(0,dc,2,3,"span",0)(1,pc,1,2,"i",0),e&2&&P(n.kind==="emoji"?0:1)}function fc(e){if(!e)return null;let n=e.trim();if(n.length===0)return null;let t=n.codePointAt(0)??0;if(!(t>=65&&t<=90||t>=97&&t<=122))return{kind:"emoji",text:n};if(/^pi pi-[a-z0-9-]+$/.test(n))return{kind:"pi",cls:n};if(/^pi-[a-z0-9-]+$/.test(n))return{kind:"pi",cls:`pi ${n}`};if(/^fa-(?:solid|regular|brands) fa-[a-z0-9-]+$/.test(n))return{kind:"fa",cls:n};if(/^fa-[a-z0-9-]+$/.test(n)){let i=n.slice(3);return i==="solid"||i==="regular"||i==="brands"||i.includes("fa-")?null:{kind:"fa",cls:`fa-solid ${n}`}}return null}var Ee=class e{icon=L(void 0);hostClass=L("");resolved=v(()=>{let n=this.icon(),t=fc(n);return n&&!t&&console.warn(`[sm-icon] Invalid icon string "${n}". Expected emoji, pi-foo, pi pi-foo, fa-{solid|regular|brands} fa-foo, or fa-foo.`),t});static \u0275fac=function(t){return new(t||e)};static \u0275cmp=U({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(t,r){if(t&1&&A(0,hc,2,1),t&2){let i;P((i=r.resolved())?0:-1,i)}},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})};function gc(e,n){if(e&1&&(j(0,"span",3),S(1),$()),e&2){let t=C();O("aria-label",t.ariaLabel()),m(),M(t.value())}}var et=class e{inputs=L.required();typed=v(()=>{let n=this.inputs().payload;return typeof n!="object"||n===null?{value:0}:n});value=v(()=>this.typed().value);icon=v(()=>this.inputs().icon);severity=v(()=>this.typed().severity);resolvedTooltip=v(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=v(()=>this.inputs().label??"");static \u0275fac=function(t){return new(t||e)};static \u0275cmp=U({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(t,r){t&1&&(j(0,"span",0)(1,"span",1),Ne(2,"sm-icon",2),$(),A(3,gc,2,2,"span",3),$()),t&2&&(ye("vc-counter--info",r.severity()==="info")("vc-counter--warn",r.severity()==="warn")("vc-counter--success",r.severity()==="success")("vc-counter--danger",r.severity()==="danger"),V("pTooltip",r.resolvedTooltip()),O("data-testid","renderer-node-counter"),m(2),V("icon",r.icon()),m(),P(r.value()>0?3:-1))},dependencies:[ce,se,Ee],styles:[".vc-counter[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1}.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})};var mc=(e,n)=>n.key;function vc(e,n){if(e&1&&(j(0,"h5",1),S(1),$()),e&2){let t=C();m(),M(t.label())}}function yc(e,n){if(e&1&&(j(0,"p",2),S(1),$()),e&2){let t=C();m(),M(t.emptyText())}}function bc(e,n){if(e&1&&(j(0,"dt",4),S(1),$(),j(2,"dd"),S(3),$()),e&2){let t=n.$implicit,r=C(2);V("pTooltip",t.tooltip??""),m(),M(t.key),m(2),M(r.formatValue(t.value))}}function _c(e,n){if(e&1&&(j(0,"dl",3),re(1,bc,4,3,null,null,mc),$()),e&2){let t=C();m(),ie(t.entries())}}var An=class e{inputs=L.required();typed=v(()=>{let n=this.inputs().payload;return le(n)?Ue(n,"entries")?n:{entries:[]}:{entries:[]}});entries=v(()=>this.typed().entries??[]);label=v(()=>this.inputs().label);emptyText=v(()=>this.inputs().emptyText??J.emptyDefault);formatValue(n){return n==null?"\xB7":typeof n=="boolean"?n?"true":"false":String(n)}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=U({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(t,r){t&1&&(j(0,"section",0),A(1,vc,2,1,"h5",1),A(2,yc,2,1,"p",2)(3,_c,3,0,"dl",3),$()),t&2&&(O("data-testid","renderer-node-key-values"),m(),P(r.label()?1:-1),m(),P(r.entries().length===0?2:3))},dependencies:[ce,se],styles:[".vc-kv__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);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-surface-600);font-weight:500}.vc-kv__list[_ngcontent-%COMP%] dd[_ngcontent-%COMP%]{color:var(--p-surface-800);margin:0;word-break:break-word}.vc-kv__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};var Pr=class e{router=_(Le);open(n){this.router.navigate(["/map"],{queryParams:{path:n}})}static \u0275fac=function(t){return new(t||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})},Oo=new ne("NODE_OPEN_INTENT",{providedIn:"root",factory:()=>_(Pr)});var Cc=(e,n)=>n.path;function wc(e,n){if(e&1&&(R(0,"h5",1),S(1),N()),e&2){let t=C();m(),M(t.label())}}function Ic(e,n){if(e&1&&(R(0,"p",2),S(1),N()),e&2){let t=C();m(),M(t.emptyText())}}function xc(e,n){if(e&1&&(R(0,"span",5),S(1),N()),e&2){let t=C().$implicit;m(),M(t.kind)}}function Sc(e,n){if(e&1){let t=Ii();R(0,"li")(1,"button",4),Si("click",function(){let i=si(t).$implicit,o=C(2);return ci(o.onOpenPath(i.path))}),A(2,xc,2,1,"span",5),R(3,"span",6),S(4),N()()()}if(e&2){let t=n.$implicit;m(2),P(t.kind?2:-1),m(2),M(t.label??t.path)}}function Rc(e,n){if(e&1&&(R(0,"ul",3),re(1,Sc,5,2,"li",null,Cc),N()),e&2){let t=C();m(),ie(t.entries())}}var Pn=class e{openIntent=_(Oo);inputs=L.required();typed=v(()=>{let n=this.inputs().payload;return le(n)?Ue(n,"entries")?n:{entries:[]}:{entries:[]}});entries=v(()=>this.typed().entries??[]);label=v(()=>this.inputs().label);emptyText=v(()=>this.inputs().emptyText??J.emptyDefault);onOpenPath(n){this.openIntent.open(n)}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=U({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(t,r){t&1&&(R(0,"section",0),A(1,wc,2,1,"h5",1),A(2,Ic,2,1,"p",2)(3,Rc,3,0,"ul",3),N()),t&2&&(O("data-testid","renderer-node-link-list"),m(),P(r.label()?1:-1),m(),P(r.entries().length===0?2:3))},styles:[".vc-links__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);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-600);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-surface-500);font-family:var(--p-font-family-mono);font-size:.75rem}.vc-links__label[_ngcontent-%COMP%]{word-break:break-all}.vc-links__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};var ko=(e,n)=>n.key;function Tc(e,n){if(e&1&&(R(0,"h5",1),S(1),N()),e&2){let t=C();m(),M(t.label())}}function Nc(e,n){if(e&1&&(R(0,"p",2),S(1),N()),e&2){let t=C();m(),M(t.emptyText())}}function Mc(e,n){if(e&1&&(R(0,"th"),S(1),N()),e&2){let t=n.$implicit;m(),M(t.label)}}function Ec(e,n){if(e&1&&Ke(0,"i",4),e&2){let t=C(4);O("aria-label",t.texts.boolTrue)}}function Dc(e,n){if(e&1&&Ke(0,"i",5),e&2){let t=C(4);O("aria-label",t.texts.boolFalse)}}function Ac(e,n){}function Pc(e,n){if(e&1&&S(0),e&2){let t=C().$implicit,r=C().$implicit,i=C(2);Qt(" ",i.cellText(r[t.key])," ")}}function Oc(e,n){if(e&1&&(R(0,"td"),A(1,Ec,1,1,"i",4)(2,Dc,1,1,"i",5)(3,Ac,0,0)(4,Pc,1,1),N()),e&2){let t,r=n.$implicit,i=C().$implicit,o=C(2);m(),P((t=o.cellKind(i[r.key]))==="bool-true"?1:t==="bool-false"?2:t==="empty"?3:4)}}function kc(e,n){if(e&1&&(R(0,"tr"),re(1,Oc,5,1,"td",null,ko),N()),e&2){let t=C(2);m(),ie(t.columns())}}function Lc(e,n){if(e&1&&(R(0,"table",3)(1,"thead")(2,"tr"),re(3,Mc,2,1,"th",null,ko),N()(),R(5,"tbody"),re(6,kc,3,0,"tr",null,Ci),N()()),e&2){let t=C();m(3),ie(t.columns()),m(3),ie(t.rows())}}var On=class e{inputs=L.required();typed=v(()=>{let n=this.inputs().payload;return le(n)?!Ue(n,"columns")||!Ue(n,"rows")?{columns:[],rows:[]}:n:{columns:[],rows:[]}});columns=v(()=>this.typed().columns??[]);rows=v(()=>this.typed().rows??[]);label=v(()=>this.inputs().label);emptyText=v(()=>this.inputs().emptyText??J.emptyDefault);texts=J.recordsCell;cellKind(n){return n==null?"empty":typeof n=="boolean"?n?"bool-true":"bool-false":"text"}cellText(n){return n==null?"":String(n)}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=U({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(t,r){t&1&&(R(0,"section",0),A(1,Tc,2,1,"h5",1),A(2,Nc,2,1,"p",2)(3,Lc,8,0,"table",3),N()),t&2&&(O("data-testid","renderer-node-records"),m(),P(r.label()?1:-1),m(),P(r.rows().length===0?2:3))},styles:[".vc-records__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);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-surface-700);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-surface-800);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:16rem}.vc-records__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);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})};function Uc(e,n){if(e&1&&(R(0,"h5",1),S(1),N()),e&2){let t=C();m(),M(t.label())}}function jc(e,n){if(e&1&&(R(0,"p",2),S(1),N()),e&2){let t=C();m(),M(t.emptyText())}}function $c(e,n){if(e&1&&(R(0,"pre",3),S(1),N()),e&2){let t=C();m(),M(t.markdown())}}var kn=class e{inputs=L.required();typed=v(()=>{let n=this.inputs().payload;return le(n)?En(n,"markdown")?n:{markdown:""}:{markdown:""}});markdown=v(()=>this.typed().markdown??"");label=v(()=>this.inputs().label);emptyText=v(()=>this.inputs().emptyText??J.emptyDefault);static \u0275fac=function(t){return new(t||e)};static \u0275cmp=U({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(t,r){t&1&&(R(0,"section",0),A(1,Uc,2,1,"h5",1),A(2,jc,2,1,"p",2)(3,$c,2,1,"pre",3),N()),t&2&&(O("data-testid","renderer-node-markdown"),m(),P(r.label()?1:-1),m(),P(r.markdown()?3:2))},styles:[".vc-markdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-markdown__body[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-800);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-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};function Fc(e,n){if(e&1&&(j(0,"span",1),S(1),$()),e&2){let t=C();m(),M(t.icon())}}var Ln=class e{inputs=L.required();typed=v(()=>{let n=this.inputs().payload;return typeof n!="object"||n===null?{label:""}:n});label=v(()=>this.typed().label||"");icon=v(()=>this.inputs().icon);severity=v(()=>this.typed().severity);resolvedTooltip=v(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(t){return new(t||e)};static \u0275cmp=U({type:e,selectors:[["sm-node-tag"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:12,consts:[[1,"vc-tag",3,"pTooltip"],["aria-hidden","true",1,"vc-tag__icon"],[1,"vc-tag__label"]],template:function(t,r){t&1&&(j(0,"span",0),A(1,Fc,2,1,"span",1),j(2,"span",2),S(3),$()()),t&2&&(ye("vc-tag--info",r.severity()==="info")("vc-tag--warn",r.severity()==="warn")("vc-tag--success",r.severity()==="success")("vc-tag--danger",r.severity()==="danger"),V("pTooltip",r.resolvedTooltip()),O("data-testid","renderer-node-tag"),m(),P(r.icon()?1:-1),m(2),M(r.label()))},dependencies:[ce,se],styles:[".vc-tag[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1}.vc-tag__icon[_ngcontent-%COMP%]{font-size:.85em;line-height:1;display:block}.vc-tag__label[_ngcontent-%COMP%]{font-weight:500;line-height:1;display:block}.vc-tag--info[_ngcontent-%COMP%]{background:var(--sm-severity-info-bg);color:var(--sm-severity-info);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-tag--warn[_ngcontent-%COMP%]{background:var(--sm-severity-warn-bg);color:var(--sm-severity-warn);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-tag--success[_ngcontent-%COMP%]{background:var(--sm-severity-success-bg);color:var(--sm-severity-success);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-tag--danger[_ngcontent-%COMP%]{background:var(--sm-severity-error-bg);color:var(--sm-severity-error);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}"],changeDetection:0})};var zc=()=>[],Lo=(e,n)=>n.label;function Bc(e,n){if(e&1&&(R(0,"h5",1),S(1),N()),e&2){let t=C();m(),M(t.label())}}function Hc(e,n){if(e&1&&(R(0,"p",2),S(1),N()),e&2){let t=C();m(),M(t.emptyText())}}function qc(e,n){if(e&1&&(R(0,"span",5),S(1),N()),e&2){let t=C().$implicit;m(),M(t.marker)}}function Vc(e,n){if(e&1&&(R(0,"span",5),S(1),N()),e&2){let t=C().$implicit;m(),M(t.marker)}}function Gc(e,n){if(e&1&&(R(0,"li",4),A(1,Vc,2,1,"span",5),R(2,"span",6),S(3),N()()),e&2){let t=n.$implicit;O("title",t.tooltip??""),m(),P(t.marker?1:-1),m(2),M(t.label)}}function Wc(e,n){if(e&1&&(R(0,"ul",7),re(1,Gc,4,3,"li",4,Lo),N()),e&2){let t=C().$implicit;m(),ie(t.children)}}function Kc(e,n){if(e&1&&(R(0,"li",4),A(1,qc,2,1,"span",5),R(2,"span",6),S(3),N(),A(4,Wc,3,0,"ul",7),N()),e&2){let t=n.$implicit;O("title",t.tooltip??""),m(),P(t.marker?1:-1),m(2),M(t.label),m(),P(t.children&&t.children.length>0?4:-1)}}function Qc(e,n){if(e&1&&(R(0,"ul",3),re(1,Kc,5,4,"li",4,Lo),N()),e&2){let t=C();m(),ie(t.root().children??Ei(0,zc))}}var Un=class e{inputs=L.required();root=v(()=>{let n=this.inputs().payload;return le(n)?En(n,"label")?n.children!==void 0&&!Array.isArray(n.children)?{label:""}:n:{label:""}:{label:""}});rootIsEmpty=v(()=>{let n=this.root();return!n.children||n.children.length===0});label=v(()=>this.inputs().label);emptyText=v(()=>this.inputs().emptyText??J.emptyDefault);static \u0275fac=function(t){return new(t||e)};static \u0275cmp=U({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(t,r){t&1&&(R(0,"section",0),A(1,Bc,2,1,"h5",1),A(2,Hc,2,1,"p",2)(3,Qc,3,1,"ul",3),N()),t&2&&(O("data-testid","renderer-node-tree"),m(),P(r.label()?1:-1),m(),P(r.rootIsEmpty()?2:3))},styles:[".vc-tree__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);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-surface-800)}.vc-tree__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};function Yc(e,n){if(e&1&&(j(0,"span",2),S(1),$()),e&2){let t=C();m(),M(t.formattedCount())}}var jn=class e{inputs=L.required();typed=v(()=>{let n=this.inputs().payload;return typeof n!="object"||n===null?{}:n});icon=v(()=>this.typed().icon??this.inputs().icon);severity=v(()=>this.typed().severity);count=v(()=>this.typed().count??null);resolvedTooltip=v(()=>this.typed().tooltip??this.inputs().tooltip??"");formattedCount=v(()=>{let n=this.count();return n===null?"":n>=99?"99+":String(n)});static \u0275fac=function(t){return new(t||e)};static \u0275cmp=U({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(t,r){t&1&&(j(0,"span",0),Ne(1,"sm-icon",1),A(2,Yc,2,1,"span",2),$()),t&2&&(ye("vc-alert--info",r.severity()==="info")("vc-alert--warn",r.severity()==="warn")("vc-alert--success",r.severity()==="success")("vc-alert--danger",r.severity()==="danger"),V("pTooltip",r.resolvedTooltip()),O("data-testid","renderer-node-alert"),m(),V("icon",r.icon()),m(),P(r.count()!==null?2:-1))},dependencies:[ce,se,Ee],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})};var $n=class e{inputs=L.required();typed=v(()=>{let n=this.inputs().payload;return typeof n!="object"||n===null?{}:n});icon=v(()=>this.typed().icon??this.inputs().icon);severity=v(()=>this.typed().severity);resolvedTooltip=v(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=v(()=>this.inputs().label??"");static \u0275fac=function(t){return new(t||e)};static \u0275cmp=U({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(t,r){t&1&&(j(0,"span",0),Ne(1,"sm-icon",1),$()),t&2&&(ye("vc-icon--info",r.severity()==="info")("vc-icon--warn",r.severity()==="warn")("vc-icon--success",r.severity()==="success")("vc-icon--danger",r.severity()==="danger"),V("pTooltip",r.resolvedTooltip()),O("aria-label",r.ariaLabel())("data-testid","renderer-node-icon"),m(),V("icon",r.icon()))},dependencies:[ce,se,Ee],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})};function Xc(e,n){if(e&1&&(j(0,"span",3),S(1),$()),e&2){let t=C();m(),M(t.label())}}var Fn=class e{inputs=L.required();typed=v(()=>{let n=this.inputs().payload;return typeof n!="object"||n===null?{value:""}:n});value=v(()=>String(this.typed().value??""));label=v(()=>this.typed().label??this.inputs().label);icon=v(()=>this.inputs().icon);severity=v(()=>this.typed().severity);resolvedTooltip=v(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(t){return new(t||e)};static \u0275cmp=U({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(t,r){t&1&&(j(0,"span",0),Ne(1,"sm-icon",1),j(2,"span",2),S(3),$(),A(4,Xc,2,1,"span",3),$()),t&2&&(ye("vc-stat--info",r.severity()==="info")("vc-stat--warn",r.severity()==="warn")("vc-stat--success",r.severity()==="success")("vc-stat--danger",r.severity()==="danger"),V("pTooltip",r.resolvedTooltip()),O("data-testid","renderer-scope-stat"),m(),V("icon",r.icon()),m(2),M(r.value()),m(),P(r.label()?4:-1))},dependencies:[ce,se,Ee],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})};var Or={"card.title.right":$n,"card.subtitle.left":et,"card.footer.left":et,"card.footer.right":et,"graph.node.alert":jn,"inspector.header.badge.counter":et,"inspector.header.badge.tag":Ln,"inspector.body.panel.breakdown":Dn,"inspector.body.panel.records":On,"inspector.body.panel.tree":Un,"inspector.body.panel.key-values":An,"inspector.body.panel.link-list":Pn,"inspector.body.panel.markdown":kn,"topbar.nav.start":Fn};function Uo(e){return e in Or}var tt={"topbar.nav.start":{id:"topbar.nav.start",cardinality:"multi",maxItems:3,order:"alphabetical",strategy:"append"},"inspector.header.badge.counter":{id:"inspector.header.badge.counter",cardinality:"multi",maxItems:4,order:"alphabetical",strategy:"append"},"inspector.header.badge.tag":{id:"inspector.header.badge.tag",cardinality:"multi",maxItems:4,order:"alphabetical",strategy:"append"},"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}};var Zc=e=>({inputs:e}),Jc=(e,n)=>n.qualifiedId;function el(e,n){e&1&&wi(0)}function tl(e,n){if(e&1&&(j(0,"span",1),mi(1,el,1,0,"ng-container",3),$()),e&2){let t=n.$implicit,r=C(2);O("data-testid","contribution-"+t.qualifiedId.replaceAll("/","-")),m(),V("ngComponentOutlet",r.rendererFor(t.slot))("ngComponentOutletInputs",Di(3,Zc,t.rendererInputs))}}function nl(e,n){if(e&1&&(j(0,"span",2),S(1),$()),e&2){let t=C(2);V("pTooltip",t.overflowTooltip()),m(),Qt(" ",t.overflowBadge()," ")}}function rl(e,n){if(e&1&&(j(0,"span",0),re(1,tl,2,5,"span",1,Jc),A(3,nl,2,2,"span",2),$()),e&2){let t=C();O("data-testid","view-contributions-host-"+t.testidSuffix()),m(),ie(t.visible()),m(2),P(t.overflowCount()>0&&t.showOverflowBadge()?3:-1)}}var jo=class e{slot=L.required();node=L(null);debugSlots=_(Nn);debugVisible=this.debugSlots.visible;testidSuffix=v(()=>this.slot().replaceAll(".","-"));registry=_(Mn);dispatched=v(()=>{let n=this.node();if(!n)return[];let t=n.contributions??[];if(t.length===0)return[];let r=this.slot(),i=t.filter(o=>o.slot===r).filter(o=>Uo(o.slot));return this.sortBySlotOrder(i,r).map(o=>({qualifiedId:`${o.pluginId}/${o.extensionId}/${o.contributionId}`,slot:o.slot,rendererInputs:this.buildInputs(o,r)}))});visible=v(()=>{let n=this.dispatched(),t=tt[this.slot()].maxItems;return n.slice(0,t)});overflowCount=v(()=>{let n=this.dispatched(),t=tt[this.slot()].maxItems;return Math.max(0,n.length-t)});showOverflowBadge=v(()=>tt[this.slot()].showOverflowBadge!==!1);overflowBadge=v(()=>J.overflowBadge(this.overflowCount()));overflowTooltip=v(()=>{let n=this.dispatched(),t=tt[this.slot()].maxItems,r=n.slice(t).map(i=>i.qualifiedId).join(", ");return J.overflowTooltip(r)});rendererFor(n){return Or[n]}buildInputs(n,t){let r=`${n.pluginId}/${n.extensionId}/${n.contributionId}`,i=this.registry.get(r),o=tt[t].respectSeverity!==!1,s=n.payload;if(!o&&typeof s=="object"&&s!==null&&"severity"in s){let c=s,{severity:l}=c;s=Qr(c,["severity"])}let a={pluginId:n.pluginId,extensionId:n.extensionId,contributionId:n.contributionId,payload:s};return i?.label&&(a.label=i.label),i?.tooltip&&(a.tooltip=i.tooltip),i?.icon&&(a.icon=i.icon),i?.emptyText&&(a.emptyText=i.emptyText),a}sortBySlotOrder(n,t){let r=tt[t].order;return r==="fifo"?n.slice():r==="priority"?n.slice().sort((i,o)=>{let s=this.priorityFor(i),a=this.priorityFor(o);return s!==a?s-a:kr(i,o)}):r==="severity"?n.slice().sort((i,o)=>{let s=$o(i),a=$o(o);return s!==a?a-s:kr(i,o)}):n.slice().sort(kr)}priorityFor(n){let t=`${n.pluginId}/${n.extensionId}/${n.contributionId}`;return this.registry.get(t)?.priority??100}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=U({type:e,selectors:[["sm-view-contributions-host"]],hostVars:3,hostBindings:function(t,r){t&2&&(O("data-debug-slot",r.debugVisible()?r.slot():null),ye("sm-debug-slot",r.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(t,r){t&1&&A(0,rl,4,2,"span",0),t&2&&P(r.visible().length>0||r.overflowCount()>0?0:-1)},dependencies:[Ui,ce,se],styles:[".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})};function kr(e,n){let t=`${e.pluginId}/${e.extensionId}/${e.contributionId}`,r=`${n.pluginId}/${n.extensionId}/${n.contributionId}`;return t<r?-1:t>r?1:0}function $o(e){let n=e.payload;if(typeof n!="object"||n===null)return 0;switch(n.severity){case"danger":return 4;case"warn":return 3;case"info":return 2;case"success":return 1;default:return 0}}function Lr(e,n){var t,r=1;e==null&&(e=0),n==null&&(n=0);function i(){var o,s=t.length,a,c=0,l=0;for(o=0;o<s;++o)a=t[o],c+=a.x,l+=a.y;for(c=(c/s-e)*r,l=(l/s-n)*r,o=0;o<s;++o)a=t[o],a.x-=c,a.y-=l}return i.initialize=function(o){t=o},i.x=function(o){return arguments.length?(e=+o,i):e},i.y=function(o){return arguments.length?(n=+o,i):n},i.strength=function(o){return arguments.length?(r=+o,i):r},i}function Fo(e){let n=+this._x.call(null,e),t=+this._y.call(null,e);return zo(this.cover(n,t),n,t,e)}function zo(e,n,t,r){if(isNaN(n)||isNaN(t))return e;var i,o=e._root,s={data:r},a=e._x0,c=e._y0,l=e._x1,u=e._y1,d,g,h,I,f,p,y,b;if(!o)return e._root=s,e;for(;o.length;)if((f=n>=(d=(a+l)/2))?a=d:l=d,(p=t>=(g=(c+u)/2))?c=g:u=g,i=o,!(o=o[y=p<<1|f]))return i[y]=s,e;if(h=+e._x.call(null,o.data),I=+e._y.call(null,o.data),n===h&&t===I)return s.next=o,i?i[y]=s:e._root=s,e;do i=i?i[y]=new Array(4):e._root=new Array(4),(f=n>=(d=(a+l)/2))?a=d:l=d,(p=t>=(g=(c+u)/2))?c=g:u=g;while((y=p<<1|f)===(b=(I>=g)<<1|h>=d));return i[b]=o,i[y]=s,e}function Bo(e){var n,t,r=e.length,i,o,s=new Array(r),a=new Array(r),c=1/0,l=1/0,u=-1/0,d=-1/0;for(t=0;t<r;++t)isNaN(i=+this._x.call(null,n=e[t]))||isNaN(o=+this._y.call(null,n))||(s[t]=i,a[t]=o,i<c&&(c=i),i>u&&(u=i),o<l&&(l=o),o>d&&(d=o));if(c>u||l>d)return this;for(this.cover(c,l).cover(u,d),t=0;t<r;++t)zo(this,s[t],a[t],e[t]);return this}function Ho(e,n){if(isNaN(e=+e)||isNaN(n=+n))return this;var t=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(t))i=(t=Math.floor(e))+1,o=(r=Math.floor(n))+1;else{for(var s=i-t||1,a=this._root,c,l;t>e||e>=i||r>n||n>=o;)switch(l=(n<r)<<1|e<t,c=new Array(4),c[l]=a,a=c,s*=2,l){case 0:i=t+s,o=r+s;break;case 1:t=i-s,o=r+s;break;case 2:i=t+s,r=o-s;break;case 3:t=i-s,r=o-s;break}this._root&&this._root.length&&(this._root=a)}return this._x0=t,this._y0=r,this._x1=i,this._y1=o,this}function qo(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function Vo(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 Q(e,n,t,r,i){this.node=e,this.x0=n,this.y0=t,this.x1=r,this.y1=i}function Go(e,n,t){var r,i=this._x0,o=this._y0,s,a,c,l,u=this._x1,d=this._y1,g=[],h=this._root,I,f;for(h&&g.push(new Q(h,i,o,u,d)),t==null?t=1/0:(i=e-t,o=n-t,u=e+t,d=n+t,t*=t);I=g.pop();)if(!(!(h=I.node)||(s=I.x0)>u||(a=I.y0)>d||(c=I.x1)<i||(l=I.y1)<o))if(h.length){var p=(s+c)/2,y=(a+l)/2;g.push(new Q(h[3],p,y,c,l),new Q(h[2],s,y,p,l),new Q(h[1],p,a,c,y),new Q(h[0],s,a,p,y)),(f=(n>=y)<<1|e>=p)&&(I=g[g.length-1],g[g.length-1]=g[g.length-1-f],g[g.length-1-f]=I)}else{var b=e-+this._x.call(null,h.data),E=n-+this._y.call(null,h.data),x=b*b+E*E;if(x<t){var B=Math.sqrt(t=x);i=e-B,o=n-B,u=e+B,d=n+B,r=h.data}}return r}function Wo(e){if(isNaN(u=+this._x.call(null,e))||isNaN(d=+this._y.call(null,e)))return this;var n,t=this._root,r,i,o,s=this._x0,a=this._y0,c=this._x1,l=this._y1,u,d,g,h,I,f,p,y;if(!t)return this;if(t.length)for(;;){if((I=u>=(g=(s+c)/2))?s=g:c=g,(f=d>=(h=(a+l)/2))?a=h:l=h,n=t,!(t=t[p=f<<1|I]))return this;if(!t.length)break;(n[p+1&3]||n[p+2&3]||n[p+3&3])&&(r=n,y=p)}for(;t.data!==e;)if(i=t,!(t=t.next))return this;return(o=t.next)&&delete t.next,i?(o?i.next=o:delete i.next,this):n?(o?n[p]=o:delete n[p],(t=n[0]||n[1]||n[2]||n[3])&&t===(n[3]||n[2]||n[1]||n[0])&&!t.length&&(r?r[y]=t:this._root=t),this):(this._root=o,this)}function Ko(e){for(var n=0,t=e.length;n<t;++n)this.remove(e[n]);return this}function Qo(){return this._root}function Yo(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function Xo(e){var n=[],t,r=this._root,i,o,s,a,c;for(r&&n.push(new Q(r,this._x0,this._y0,this._x1,this._y1));t=n.pop();)if(!e(r=t.node,o=t.x0,s=t.y0,a=t.x1,c=t.y1)&&r.length){var l=(o+a)/2,u=(s+c)/2;(i=r[3])&&n.push(new Q(i,l,u,a,c)),(i=r[2])&&n.push(new Q(i,o,u,l,c)),(i=r[1])&&n.push(new Q(i,l,s,a,u)),(i=r[0])&&n.push(new Q(i,o,s,l,u))}return this}function Zo(e){var n=[],t=[],r;for(this._root&&n.push(new Q(this._root,this._x0,this._y0,this._x1,this._y1));r=n.pop();){var i=r.node;if(i.length){var o,s=r.x0,a=r.y0,c=r.x1,l=r.y1,u=(s+c)/2,d=(a+l)/2;(o=i[0])&&n.push(new Q(o,s,a,u,d)),(o=i[1])&&n.push(new Q(o,u,a,c,d)),(o=i[2])&&n.push(new Q(o,s,d,u,l)),(o=i[3])&&n.push(new Q(o,u,d,c,l))}t.push(r)}for(;r=t.pop();)e(r.node,r.x0,r.y0,r.x1,r.y1);return this}function Jo(e){return e[0]}function ea(e){return arguments.length?(this._x=e,this):this._x}function ta(e){return e[1]}function na(e){return arguments.length?(this._y=e,this):this._y}function nt(e,n,t){var r=new Ur(n??Jo,t??ta,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function Ur(e,n,t,r,i,o){this._x=e,this._y=n,this._x0=t,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function ra(e){for(var n={data:e.data},t=n;e=e.next;)t=t.next={data:e.data};return n}var ae=nt.prototype=Ur.prototype;ae.copy=function(){var e=new Ur(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,t,r;if(!n)return e;if(!n.length)return e._root=ra(n),e;for(t=[{source:n,target:e._root=new Array(4)}];n=t.pop();)for(var i=0;i<4;++i)(r=n.source[i])&&(r.length?t.push({source:r,target:n.target[i]=new Array(4)}):n.target[i]=ra(r));return e};ae.add=Fo;ae.addAll=Bo;ae.cover=Ho;ae.data=qo;ae.extent=Vo;ae.find=Go;ae.remove=Wo;ae.removeAll=Ko;ae.root=Qo;ae.size=Yo;ae.visit=Xo;ae.visitAfter=Zo;ae.x=ea;ae.y=na;function q(e){return function(){return e}}function Re(e){return(e()-.5)*1e-6}function il(e){return e.x+e.vx}function ol(e){return e.y+e.vy}function jr(e){var n,t,r,i=1,o=1;typeof e!="function"&&(e=q(e==null?1:+e));function s(){for(var l,u=n.length,d,g,h,I,f,p,y=0;y<o;++y)for(d=nt(n,il,ol).visitAfter(a),l=0;l<u;++l)g=n[l],f=t[g.index],p=f*f,h=g.x+g.vx,I=g.y+g.vy,d.visit(b);function b(E,x,B,ee,ue){var G=E.data,Ce=E.r,W=f+Ce;if(G){if(G.index>g.index){var je=h-G.x-G.vx,$e=I-G.y-G.vy,De=je*je+$e*$e;De<W*W&&(je===0&&(je=Re(r),De+=je*je),$e===0&&($e=Re(r),De+=$e*$e),De=(W-(De=Math.sqrt(De)))/De*i,g.vx+=(je*=De)*(W=(Ce*=Ce)/(p+Ce)),g.vy+=($e*=De)*W,G.vx-=je*(W=1-W),G.vy-=$e*W)}return}return x>h+W||ee<h-W||B>I+W||ue<I-W}}function a(l){if(l.data)return l.r=t[l.data.index];for(var u=l.r=0;u<4;++u)l[u]&&l[u].r>l.r&&(l.r=l[u].r)}function c(){if(n){var l,u=n.length,d;for(t=new Array(u),l=0;l<u;++l)d=n[l],t[d.index]=+e(d,l,n)}}return s.initialize=function(l,u){n=l,r=u,c()},s.iterations=function(l){return arguments.length?(o=+l,s):o},s.strength=function(l){return arguments.length?(i=+l,s):i},s.radius=function(l){return arguments.length?(e=typeof l=="function"?l:q(+l),c(),s):e},s}function al(e){return e.index}function ia(e,n){var t=e.get(n);if(!t)throw new Error("node not found: "+n);return t}function $r(e){var n=al,t=d,r,i=q(30),o,s,a,c,l,u=1;e==null&&(e=[]);function d(p){return 1/Math.min(a[p.source.index],a[p.target.index])}function g(p){for(var y=0,b=e.length;y<u;++y)for(var E=0,x,B,ee,ue,G,Ce,W;E<b;++E)x=e[E],B=x.source,ee=x.target,ue=ee.x+ee.vx-B.x-B.vx||Re(l),G=ee.y+ee.vy-B.y-B.vy||Re(l),Ce=Math.sqrt(ue*ue+G*G),Ce=(Ce-o[E])/Ce*p*r[E],ue*=Ce,G*=Ce,ee.vx-=ue*(W=c[E]),ee.vy-=G*W,B.vx+=ue*(W=1-W),B.vy+=G*W}function h(){if(s){var p,y=s.length,b=e.length,E=new Map(s.map((B,ee)=>[n(B,ee,s),B])),x;for(p=0,a=new Array(y);p<b;++p)x=e[p],x.index=p,typeof x.source!="object"&&(x.source=ia(E,x.source)),typeof x.target!="object"&&(x.target=ia(E,x.target)),a[x.source.index]=(a[x.source.index]||0)+1,a[x.target.index]=(a[x.target.index]||0)+1;for(p=0,c=new Array(b);p<b;++p)x=e[p],c[p]=a[x.source.index]/(a[x.source.index]+a[x.target.index]);r=new Array(b),I(),o=new Array(b),f()}}function I(){if(s)for(var p=0,y=e.length;p<y;++p)r[p]=+t(e[p],p,e)}function f(){if(s)for(var p=0,y=e.length;p<y;++p)o[p]=+i(e[p],p,e)}return g.initialize=function(p,y){s=p,l=y,h()},g.links=function(p){return arguments.length?(e=p,h(),g):e},g.id=function(p){return arguments.length?(n=p,g):n},g.iterations=function(p){return arguments.length?(u=+p,g):u},g.strength=function(p){return arguments.length?(t=typeof p=="function"?p:q(+p),I(),g):t},g.distance=function(p){return arguments.length?(i=typeof p=="function"?p:q(+p),f(),g):i},g}var sl={value:()=>{}};function aa(){for(var e=0,n=arguments.length,t={},r;e<n;++e){if(!(r=arguments[e]+"")||r in t||/[\s.]/.test(r))throw new Error("illegal type: "+r);t[r]=[]}return new zn(t)}function zn(e){this._=e}function cl(e,n){return e.trim().split(/^|\s+/).map(function(t){var r="",i=t.indexOf(".");if(i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:r}})}zn.prototype=aa.prototype={constructor:zn,on:function(e,n){var t=this._,r=cl(e+"",t),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(e=r[o]).type)&&(i=ll(t[i],e.name)))return i;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++o<s;)if(i=(e=r[o]).type)t[i]=oa(t[i],e.name,n);else if(n==null)for(i in t)t[i]=oa(t[i],e.name,null);return this},copy:function(){var e={},n=this._;for(var t in n)e[t]=n[t].slice();return new zn(e)},call:function(e,n){if((i=arguments.length-2)>0)for(var t=new Array(i),r=0,i,o;r<i;++r)t[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,i=o.length;r<i;++r)o[r].value.apply(n,t)},apply:function(e,n,t){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(n,t)}};function ll(e,n){for(var t=0,r=e.length,i;t<r;++t)if((i=e[t]).name===n)return i.value}function oa(e,n,t){for(var r=0,i=e.length;r<i;++r)if(e[r].name===n){e[r]=sl,e=e.slice(0,r).concat(e.slice(r+1));break}return t!=null&&e.push({name:n,value:t}),e}var Fr=aa;var yt=0,Ft=0,$t=0,ca=1e3,Bn,zt,Hn=0,rt=0,qn=0,Bt=typeof performance=="object"&&performance.now?performance:Date,la=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Hr(){return rt||(la(ul),rt=Bt.now()+qn)}function ul(){rt=0}function zr(){this._call=this._time=this._next=null}zr.prototype=Vn.prototype={constructor:zr,restart:function(e,n,t){if(typeof e!="function")throw new TypeError("callback is not a function");t=(t==null?Hr():+t)+(n==null?0:+n),!this._next&&zt!==this&&(zt?zt._next=this:Bn=this,zt=this),this._call=e,this._time=t,Br()},stop:function(){this._call&&(this._call=null,this._time=1/0,Br())}};function Vn(e,n,t){var r=new zr;return r.restart(e,n,t),r}function ua(){Hr(),++yt;for(var e=Bn,n;e;)(n=rt-e._time)>=0&&e._call.call(void 0,n),e=e._next;--yt}function sa(){rt=(Hn=Bt.now())+qn,yt=Ft=0;try{ua()}finally{yt=0,pl(),rt=0}}function dl(){var e=Bt.now(),n=e-Hn;n>ca&&(qn-=n,Hn=e)}function pl(){for(var e,n=Bn,t,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Bn=t);zt=e,Br(r)}function Br(e){if(!yt){Ft&&(Ft=clearTimeout(Ft));var n=e-rt;n>24?(e<1/0&&(Ft=setTimeout(sa,e-Bt.now()-qn)),$t&&($t=clearInterval($t))):($t||(Hn=Bt.now(),$t=setInterval(dl,ca)),yt=1,la(sa))}}function da(){let e=1;return()=>(e=(1664525*e+1013904223)%4294967296)/4294967296}function pa(e){return e.x}function ha(e){return e.y}var hl=10,fl=Math.PI*(3-Math.sqrt(5));function qr(e){var n,t=1,r=.001,i=1-Math.pow(r,1/300),o=0,s=.6,a=new Map,c=Vn(d),l=Fr("tick","end"),u=da();e==null&&(e=[]);function d(){g(),l.call("tick",n),t<r&&(c.stop(),l.call("end",n))}function g(f){var p,y=e.length,b;f===void 0&&(f=1);for(var E=0;E<f;++E)for(t+=(o-t)*i,a.forEach(function(x){x(t)}),p=0;p<y;++p)b=e[p],b.fx==null?b.x+=b.vx*=s:(b.x=b.fx,b.vx=0),b.fy==null?b.y+=b.vy*=s:(b.y=b.fy,b.vy=0);return n}function h(){for(var f=0,p=e.length,y;f<p;++f){if(y=e[f],y.index=f,y.fx!=null&&(y.x=y.fx),y.fy!=null&&(y.y=y.fy),isNaN(y.x)||isNaN(y.y)){var b=hl*Math.sqrt(.5+f),E=f*fl;y.x=b*Math.cos(E),y.y=b*Math.sin(E)}(isNaN(y.vx)||isNaN(y.vy))&&(y.vx=y.vy=0)}}function I(f){return f.initialize&&f.initialize(e,u),f}return h(),n={tick:g,restart:function(){return c.restart(d),n},stop:function(){return c.stop(),n},nodes:function(f){return arguments.length?(e=f,h(),a.forEach(I),n):e},alpha:function(f){return arguments.length?(t=+f,n):t},alphaMin:function(f){return arguments.length?(r=+f,n):r},alphaDecay:function(f){return arguments.length?(i=+f,n):+i},alphaTarget:function(f){return arguments.length?(o=+f,n):o},velocityDecay:function(f){return arguments.length?(s=1-f,n):1-s},randomSource:function(f){return arguments.length?(u=f,a.forEach(I),n):u},force:function(f,p){return arguments.length>1?(p==null?a.delete(f):a.set(f,I(p)),n):a.get(f)},find:function(f,p,y){var b=0,E=e.length,x,B,ee,ue,G;for(y==null?y=1/0:y*=y,b=0;b<E;++b)ue=e[b],x=f-ue.x,B=p-ue.y,ee=x*x+B*B,ee<y&&(G=ue,y=ee);return G},on:function(f,p){return arguments.length>1?(l.on(f,p),n):l.on(f)}}}function Vr(){var e,n,t,r,i=q(-30),o,s=1,a=1/0,c=.81;function l(h){var I,f=e.length,p=nt(e,pa,ha).visitAfter(d);for(r=h,I=0;I<f;++I)n=e[I],p.visit(g)}function u(){if(e){var h,I=e.length,f;for(o=new Array(I),h=0;h<I;++h)f=e[h],o[f.index]=+i(f,h,e)}}function d(h){var I=0,f,p,y=0,b,E,x;if(h.length){for(b=E=x=0;x<4;++x)(f=h[x])&&(p=Math.abs(f.value))&&(I+=f.value,y+=p,b+=p*f.x,E+=p*f.y);h.x=b/y,h.y=E/y}else{f=h,f.x=f.data.x,f.y=f.data.y;do I+=o[f.data.index];while(f=f.next)}h.value=I}function g(h,I,f,p){if(!h.value)return!0;var y=h.x-n.x,b=h.y-n.y,E=p-I,x=y*y+b*b;if(E*E/c<x)return x<a&&(y===0&&(y=Re(t),x+=y*y),b===0&&(b=Re(t),x+=b*b),x<s&&(x=Math.sqrt(s*x)),n.vx+=y*h.value*r/x,n.vy+=b*h.value*r/x),!0;if(h.length||x>=a)return;(h.data!==n||h.next)&&(y===0&&(y=Re(t),x+=y*y),b===0&&(b=Re(t),x+=b*b),x<s&&(x=Math.sqrt(s*x)));do h.data!==n&&(E=o[h.data.index]*r/x,n.vx+=y*E,n.vy+=b*E);while(h=h.next)}return l.initialize=function(h,I){e=h,t=I,u()},l.strength=function(h){return arguments.length?(i=typeof h=="function"?h:q(+h),u(),l):i},l.distanceMin=function(h){return arguments.length?(s=h*h,l):Math.sqrt(s)},l.distanceMax=function(h){return arguments.length?(a=h*h,l):Math.sqrt(a)},l.theta=function(h){return arguments.length?(c=h*h,l):Math.sqrt(c)},l}function Gr(e){var n=q(.1),t,r,i;typeof e!="function"&&(e=q(e==null?0:+e));function o(a){for(var c=0,l=t.length,u;c<l;++c)u=t[c],u.vx+=(i[c]-u.x)*r[c]*a}function s(){if(t){var a,c=t.length;for(r=new Array(c),i=new Array(c),a=0;a<c;++a)r[a]=isNaN(i[a]=+e(t[a],a,t))?0:+n(t[a],a,t)}}return o.initialize=function(a){t=a,s()},o.strength=function(a){return arguments.length?(n=typeof a=="function"?a:q(+a),s(),o):n},o.x=function(a){return arguments.length?(e=typeof a=="function"?a:q(+a),s(),o):e},o}function Wr(e){var n=q(.1),t,r,i;typeof e!="function"&&(e=q(e==null?0:+e));function o(a){for(var c=0,l=t.length,u;c<l;++c)u=t[c],u.vy+=(i[c]-u.y)*r[c]*a}function s(){if(t){var a,c=t.length;for(r=new Array(c),i=new Array(c),a=0;a<c;++a)r[a]=isNaN(i[a]=+e(t[a],a,t))?0:+n(t[a],a,t)}}return o.initialize=function(a){t=a,s()},o.strength=function(a){return arguments.length?(n=typeof a=="function"?a:q(+a),s(),o):n},o.y=function(a){return arguments.length?(e=typeof a=="function"?a:q(+a),s(),o):e},o}var gl=["network-simplex","longest-path","force"];function Xh(e){return e!=="force"}function Zh(e){return e!=="force"}var ml=["TOP_BOTTOM","BOTTOM_TOP","LEFT_RIGHT","RIGHT_LEFT"],vl=["compact","normal","spacious"],fa={compact:{nodeGap:40,layerGap:56},normal:{nodeGap:64,layerGap:96},spacious:{nodeGap:96,layerGap:144}},Jh="network-simplex",ef="TOP_BOTTOM",tf="normal";function nf(e){return typeof e=="string"&&gl.includes(e)}function rf(e){return typeof e=="string"&&ml.includes(e)}function of(e){return typeof e=="string"&&vl.includes(e)}var Kr=260,ga=120;function pf(e,n){let t=n?.links??[],r=new Set(e.map(d=>d.path)),i=nr(e),o=new Set,s=0,a=0,c=0,l=0,u=0;for(let d of t){if(!r.has(d.source)){s++;continue}let g=rr(d.target,d.trigger?.normalizedTrigger??null,i);if(!r.has(g)){a++;continue}if(d.source===g){c++;continue}let h=ma(d.kind,d.source,g);if(o.has(h)){l++;continue}o.add(h),u++}return{raw:t.length,drawn:u,brokenSource:s,brokenTarget:a,selfLoops:c,duplicates:l}}function hf(e,n){let t=e.map(i=>i.path).sort(),r=n.map(i=>i.id).sort();return`${t.length}|${t.join(",")}|${r.length}|${r.join(",")}`}function ff(e,n){let t=new Set(e.map(l=>l.path)),r=nr(e),i=new Map,o=n?.links??[];for(let l of o){if(!t.has(l.source))continue;let u=rr(l.target,l.trigger?.normalizedTrigger??null,r);if(!t.has(u)||l.source===u)continue;let d=ma(l.kind,l.source,u),g=typeof l.confidence=="number"?l.confidence:.6,h=i.get(d);h?g>h.confidence&&(h.confidence=g):i.set(d,{id:d,from:l.source,to:u,kind:l.kind,confidence:g})}let s=[...i.values()],a=new Map;for(let l of e)a.set(l.path,l);let c=new Map;for(let l of n?.nodes??[])c.set(l.path,l);return{nodesByPath:a,apiNodesByPath:c,edges:s}}async function gf(e,n,t,r){let i={width:Kr,height:ga},o=n.map(u=>({id:u.path,size:i})),s=t.map(u=>({source:u.from,target:u.to})),a=fa[r.spacing],c=await e.calculate(o,s,{algorithm:r.algorithm,direction:r.direction,nodeGap:a.nodeGap,layerGap:a.layerGap}),l=new Map;for(let{id:u,position:d}of c.nodes)l.set(u,{x:d.x,y:d.y});return l}function mf(e,n){let t=e.map(a=>({id:a.path})),r=n.map(a=>({source:a.from,target:a.to})),i=qr(t).force("link",$r(r).id(a=>a.id).distance(90).strength(1)).force("charge",Vr().strength(-200)).force("center",Lr(0,0)).force("x",Gr(0).strength(.06)).force("y",Wr(0).strength(.06)).force("collide",jr(Kr/2+12)).stop(),o=400;for(let a=0;a<o;a++)i.tick();let s=new Map;for(let a of t)s.set(a.id,{x:(a.x??0)-Kr/2,y:(a.y??0)-ga/2});return s}function vf(e,n,t,r=null){let i=e.edges.filter(c=>n.has(c.from)&&n.has(c.to)&&(r===null||r.has(c.kind))),o=new Map,s=new Map;for(let c of i)o.set(c.from,(o.get(c.from)??0)+1),s.set(c.to,(s.get(c.to)??0)+1);let a=[];for(let c of n){let l=e.nodesByPath.get(c);if(!l)continue;let u=e.apiNodesByPath.get(c),d=t.get(c),g=e.positions.get(c)??{x:0,y:0},h=d?{x:d.x,y:d.y}:g;a.push({id:c,path:c,view:l,kind:l.kind,position:h,stats:{linksIn:s.get(c)??0,linksOut:o.get(c)??0,bytesTotal:u?.bytes.total,tokensTotal:u?.tokens?.total,externalRefsCount:u?.externalRefsCount},summary:yl(l)})}return{nodes:a,edges:i}}function yl(e){let n={injectionDetected:!1,contentQuality:"clean"},t=(e.frontmatter.description??e.frontmatter.name??"").trim();return{kind:"markdown",confidence:.6,safety:n,whatItCovers:t||`${e.kind} entry`,topics:[],keyFacts:[]}}function ma(e,n,t){return`${e}:${n}::${t}`}export{Se as a,ke as b,Tr as c,Dr as d,Le as e,Rn as f,Ws as g,Ys as h,rc as i,gl as j,Xh as k,Zh as l,ml as m,vl as n,Jh as o,ef as p,tf as q,nf as r,rf as s,of as t,Nn as u,Mn as v,jo as w,pf as x,hf as y,ff as z,gf as A,mf as B,vf as C};