@whoz-oss/coday-factory-cockpit 0.0.0-workstream-forge.310 → 0.0.0-workstream-forge.311

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.
@@ -1,4 +1,4 @@
1
- import {L as he,R as ce,T as no,h,bg as ue,X as y,d6 as OM,x as xe,d7 as aS,bw as Bd,by as $g,m as ma,bs as rh,g as Yg,b as Id,bt as oh,bY as Qg,bo as bC,r as ri,s as ir,aM as cy,j as Zg,a5 as di,G as It,bp as ry,be as gC,bf as yC,A as pC,d8 as iT}from'./main-T4S6RIJZ.js';var I=["determinateSpinner"];function z(i,V){if(i&1&&(rh(),ma(0,"svg",11),Yg(1,"circle",12),Id()),i&2){let e=pC();ir("viewBox",e._viewBox()),ri(),cy("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),ir("r",e._circleRadius());}}var D=new y("mat-progress-spinner-default-options",{providedIn:"root",factory:()=>({diameter:O})}),O=100,N=10,Z=(()=>{class i{_elementRef=h(ue);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e;}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=h(D),n=OM(),r=this._elementRef.nativeElement;this._noopAnimations=n==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=r.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&n==="reduced-motion"&&r.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth));}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0));}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0;}_diameter=O;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0;}_strokeWidth;_circleRadius(){return (this.diameter-N)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return `0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=xe({type:i,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,r){if(n&1&&ry(I,5),n&2){let s;gC(s=yC())&&(r._determinateCircle=s.first);}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,r){n&2&&(ir("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),di("mat-"+r.color),cy("width",r.diameter,"px")("height",r.diameter,"px")("--mat-progress-spinner-size",r.diameter+"px")("--mat-progress-spinner-active-indicator-width",r.diameter+"px"),It("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"));},inputs:{color:"color",mode:"mode",value:[2,"value","value",Bd],diameter:[2,"diameter","diameter",Bd],strokeWidth:[2,"strokeWidth","strokeWidth",Bd]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(n,r){if(n&1&&($g(0,z,2,8,"ng-template",null,0,iT),ma(2,"div",2,1),rh(),ma(4,"svg",3),Yg(5,"circle",4),Id()(),oh(),ma(6,"div",5)(7,"div",6)(8,"div",7),Qg(9,8),Id(),ma(10,"div",9),Qg(11,8),Id(),ma(12,"div",10),Qg(13,8),Id()()()),n&2){let s=bC(1);ri(4),ir("viewBox",r._viewBox()),ri(),cy("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),ir("r",r._circleRadius()),ri(4),Zg("ngTemplateOutlet",s),ri(2),Zg("ngTemplateOutlet",s),ri(2),Zg("ngTemplateOutlet",s);}},dependencies:[aS],styles:[`.mat-mdc-progress-spinner {
1
+ import {X as he,_ as ce,a0 as no,h,bg as ue,a1 as y,d6 as OM,x as xe,d7 as aS,bw as Bd,by as $g,m as ma,bs as rh,j as Yg,e as Id,bt as oh,bW as Qg,bo as bC,r as ri,z as ir,aM as cy,n as Zg,a8 as di,L as It,bp as ry,be as gC,bf as yC,D as pC,d8 as iT}from'./main-5IVYFXQL.js';var I=["determinateSpinner"];function z(i,V){if(i&1&&(rh(),ma(0,"svg",11),Yg(1,"circle",12),Id()),i&2){let e=pC();ir("viewBox",e._viewBox()),ri(),cy("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),ir("r",e._circleRadius());}}var D=new y("mat-progress-spinner-default-options",{providedIn:"root",factory:()=>({diameter:O})}),O=100,N=10,Z=(()=>{class i{_elementRef=h(ue);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e;}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=h(D),n=OM(),r=this._elementRef.nativeElement;this._noopAnimations=n==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=r.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&n==="reduced-motion"&&r.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth));}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0));}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0;}_diameter=O;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0;}_strokeWidth;_circleRadius(){return (this.diameter-N)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return `0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=xe({type:i,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,r){if(n&1&&ry(I,5),n&2){let s;gC(s=yC())&&(r._determinateCircle=s.first);}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,r){n&2&&(ir("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),di("mat-"+r.color),cy("width",r.diameter,"px")("height",r.diameter,"px")("--mat-progress-spinner-size",r.diameter+"px")("--mat-progress-spinner-active-indicator-width",r.diameter+"px"),It("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"));},inputs:{color:"color",mode:"mode",value:[2,"value","value",Bd],diameter:[2,"diameter","diameter",Bd],strokeWidth:[2,"strokeWidth","strokeWidth",Bd]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(n,r){if(n&1&&($g(0,z,2,8,"ng-template",null,0,iT),ma(2,"div",2,1),rh(),ma(4,"svg",3),Yg(5,"circle",4),Id()(),oh(),ma(6,"div",5)(7,"div",6)(8,"div",7),Qg(9,8),Id(),ma(10,"div",9),Qg(11,8),Id(),ma(12,"div",10),Qg(13,8),Id()()()),n&2){let s=bC(1);ri(4),ir("viewBox",r._viewBox()),ri(),cy("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),ir("r",r._circleRadius()),ri(4),Zg("ngTemplateOutlet",s),ri(2),Zg("ngTemplateOutlet",s),ri(2),Zg("ngTemplateOutlet",s);}},dependencies:[aS],styles:[`.mat-mdc-progress-spinner {
2
2
  --mat-progress-spinner-animation-multiplier: 1;
3
3
  display: block;
4
4
  overflow: hidden;
@@ -1,4 +1,4 @@
1
- import {h,X as y,b6 as mf,c3 as K$1,bi as so,b1 as Z,cL as Xb,bS as Ac,ae as I,aL as P,cM as je$1,cx as F,cN as Ne$1,cO as Wt,cP as jt$1,cy as Ge$1,cQ as q,cR as wt,cS as Ft,ci as Wr,cT as $$1,b5 as iM,bP as po,cU as Tt,bO as Jb,b9 as eb,b7 as Oe,bT as pm,x as xe,cV as Wi,bU as Kr,m as ma,by as $g,b as Id,bx as Xg,s as ir,G as It,L as he,R as ce,cW as di,cX as De,T as no,bg as ue,ba as rt,br as ya,e as ey,cY as Pw,cZ as pt,c_ as TM,c$ as Yv,aX as j,bh as uf,cn as ai,b4 as Ly,c6 as De$1,c1 as O$1,ck as Zl,d0 as dM,bp as ry,be as gC,bf as yC,Q as Qe$1,d1 as fM,d2 as xM,d3 as At}from'./main-T4S6RIJZ.js';function ze(i,a){}var g=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=true;backdropClass="";disableClose=false;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus="first-tabbable";restoreFocus=true;scrollStrategy;closeOnNavigation=true;closeOnDestroy=true;closeOnOverlayDetachments=true;disableAnimations=false;providers;container;templateContext;bindings};var K=(()=>{class i extends pt{_elementRef=h(ue);_focusTrapFactory=h(TM);_config;_interactivityChecker=h(Yv);_ngZone=h(j);_focusMonitor=h(uf);_renderer=h(ai);_changeDetectorRef=h(Ly);_injector=h(K$1);_platform=h(De$1);_document=h(O$1);_portalOutlet;_focusTrapped=new Z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=false;constructor(){super(),this._config=h(g,{optional:true})||new g,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy);}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck();}_removeAriaLabelledBy(e){let t=this._ariaLabelledByQueue.indexOf(e);t>-1&&(this._ariaLabelledByQueue.splice(t,1),this._changeDetectorRef.markForCheck());}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus();}_captureInitialFocus(){this._trapFocus();}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=true,this._restoreFocus();}attachComponentPortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}attachDomPortal=e=>{this._portalOutlet.hasAttached();let t=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),t};_recaptureFocus(){this._containsFocus()||this._trapFocus();}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let n=()=>{o(),l(),e.removeAttribute("tabindex");},o=this._renderer.listen(e,"blur",n),l=this._renderer.listen(e,"mousedown",n);})),e.focus(t);}_focusByCssSelector(e,t){let n=this._elementRef.nativeElement.querySelector(e);n&&this._forceFocus(n,t);}_trapFocus(e){this._isDestroyed||Zl(()=>{let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case false:case "dialog":this._containsFocus()||t.focus(e);break;case true:case "first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next();},{injector:this._injector});}_restoreFocus(){let e=this._config.restoreFocus,t=null;if(typeof e=="string"?t=this._document.querySelector(e):typeof e=="boolean"?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&typeof t.focus=="function"){let n=dM(),o=this._elementRef.nativeElement;(!n||n===this._document.body||n===o||o.contains(n))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus());}this._focusTrap&&this._focusTrap.destroy();}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e);}_containsFocus(){let e=this._elementRef.nativeElement,t=dM();return e===t||e.contains(t)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=dM()));}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=xe({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(t,n){if(t&1&&ry(Wi,7),t&2){let o;gC(o=yC())&&(n._portalOutlet=o.first);}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,n){t&2&&ir("id",n._config.id||null)("role",n._config.role)("aria-modal",n._config.ariaModal)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null);},features:[Kr],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){t&1&&$g(0,ze,0,0,"ng-template",0);},dependencies:[Wi],styles:[`.cdk-dialog-container {
1
+ import {h,a1 as y,b6 as mf,b_ as K$1,bi as so,b1 as Z,cL as Xb,ce as Ac,I,P,cM as je$1,cx as F,cN as Ne$1,cO as Wt,cP as jt$1,cy as Ge$1,cQ as q,cR as wt,cS as Ft,ca as Wr,cT as $$1,b5 as iM,bP as po,cU as Tt,bO as Jb,b9 as eb,b7 as Oe,bU as pm,x as xe,cV as Wi,bV as Kr,m as ma,by as $g,e as Id,bx as Xg,z as ir,L as It,X as he,_ as ce,cW as di,cX as De,a0 as no,bg as ue,ba as rt,br as ya,f as ey,cY as Pw,cZ as pt,c_ as TM,c$ as Yv,aX as j,bh as uf,cn as ai,b4 as Ly,bY as De$1,c0 as O$1,cc as Zl,d0 as dM,bp as ry,be as gC,bf as yC,Q as Qe$1,d1 as fM,d2 as xM,d3 as At}from'./main-5IVYFXQL.js';function ze(i,a){}var g=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=true;backdropClass="";disableClose=false;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus="first-tabbable";restoreFocus=true;scrollStrategy;closeOnNavigation=true;closeOnDestroy=true;closeOnOverlayDetachments=true;disableAnimations=false;providers;container;templateContext;bindings};var K=(()=>{class i extends pt{_elementRef=h(ue);_focusTrapFactory=h(TM);_config;_interactivityChecker=h(Yv);_ngZone=h(j);_focusMonitor=h(uf);_renderer=h(ai);_changeDetectorRef=h(Ly);_injector=h(K$1);_platform=h(De$1);_document=h(O$1);_portalOutlet;_focusTrapped=new Z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=false;constructor(){super(),this._config=h(g,{optional:true})||new g,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy);}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck();}_removeAriaLabelledBy(e){let t=this._ariaLabelledByQueue.indexOf(e);t>-1&&(this._ariaLabelledByQueue.splice(t,1),this._changeDetectorRef.markForCheck());}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus();}_captureInitialFocus(){this._trapFocus();}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=true,this._restoreFocus();}attachComponentPortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}attachDomPortal=e=>{this._portalOutlet.hasAttached();let t=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),t};_recaptureFocus(){this._containsFocus()||this._trapFocus();}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let n=()=>{o(),l(),e.removeAttribute("tabindex");},o=this._renderer.listen(e,"blur",n),l=this._renderer.listen(e,"mousedown",n);})),e.focus(t);}_focusByCssSelector(e,t){let n=this._elementRef.nativeElement.querySelector(e);n&&this._forceFocus(n,t);}_trapFocus(e){this._isDestroyed||Zl(()=>{let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case false:case "dialog":this._containsFocus()||t.focus(e);break;case true:case "first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next();},{injector:this._injector});}_restoreFocus(){let e=this._config.restoreFocus,t=null;if(typeof e=="string"?t=this._document.querySelector(e):typeof e=="boolean"?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&typeof t.focus=="function"){let n=dM(),o=this._elementRef.nativeElement;(!n||n===this._document.body||n===o||o.contains(n))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus());}this._focusTrap&&this._focusTrap.destroy();}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e);}_containsFocus(){let e=this._elementRef.nativeElement,t=dM();return e===t||e.contains(t)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=dM()));}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=xe({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(t,n){if(t&1&&ry(Wi,7),t&2){let o;gC(o=yC())&&(n._portalOutlet=o.first);}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,n){t&2&&ir("id",n._config.id||null)("role",n._config.role)("aria-modal",n._config.ariaModal)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null);},features:[Kr],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){t&1&&$g(0,ze,0,0,"ng-template",0);},dependencies:[Wi],styles:[`.cdk-dialog-container {
2
2
  display: block;
3
3
  width: 100%;
4
4
  height: 100%;
@@ -0,0 +1 @@
1
+ import {$ as $e,H as Ht,j as jt,N as Nt,z as zt,V as Vt}from'./chunk-Eq3dGk0b.js';import {h,x as xe,H as HW,U as UW,m as ma,V as VC,e as Id,i as ci,r as ri,s as hy,u as ui,n as Zg,L as It,q as Sd,D as pC}from'./main-5IVYFXQL.js';function S(n,m){if(n&1&&(ma(0,"code",1),VC(1),Id()),n&2){let a=pC();ri(),hy(a.data.detail);}}var I=class n{data=h($e);static \u0275fac=function(a){return new(a||n)};static \u0275cmp=xe({type:n,selectors:[["sf-confirm-dialog"]],decls:11,vars:8,consts:[["mat-dialog-title",""],[1,"sf-mono","dialog-detail"],["align","end"],["mat-button","",3,"mat-dialog-close"],["mat-stroked-button","",3,"mat-dialog-close"]],template:function(a,l){a&1&&(ma(0,"h2",0),VC(1),Id(),ma(2,"mat-dialog-content")(3,"p"),VC(4),Id(),ci(5,S,2,1,"code",1),Id(),ma(6,"mat-dialog-actions",2)(7,"button",3),VC(8,"Cancel"),Id(),ma(9,"button",4),VC(10),Id()()),a&2&&(ri(),hy(l.data.title),ri(3),hy(l.data.message),ri(),ui(l.data.detail?5:-1),ri(2),Zg("mat-dialog-close",false),ri(2),It("sf-danger",l.data.destructive),Zg("mat-dialog-close",true),ri(),Sd(" ",l.data.confirmLabel??"Confirm"," "));},dependencies:[HW,UW,Ht,jt,Nt,zt,Vt],styles:[".dialog-detail[_ngcontent-%COMP%]{display:inline-block;margin-top:10px;padding:4px 8px;border-radius:var(--radius-sm, 0);background:var(--color-surface-muted);color:var(--color-accent-700)}"]})};export{I};
@@ -0,0 +1 @@
1
+ import {h,Q as Qe,l as lT,y as yb,x as xe,cB as Ln,ah as Bn,ai as Xe,cE as ln,aj as kn,ak as Tn,cG as Ht,cH as Gt,cI as on,cq as nn,H as HW,U as UW,Y as Y8,Z as Z8,m as ma,V as VC,e as Id,i as ci,r as ri,u as ui,ar as Ey,as as vb,aw as yr,az as zt,aE as A,au as ke,d5 as ut,aA as M,E as aC,f as ey,s as hy,j as Yg,ap as UI,D as pC,n as Zg,z as ir,aq as $I,q as Sd,aB as gy,a9 as Wp,aa as Gp}from'./main-5IVYFXQL.js';import {J,Z}from'./chunk-DrKVRVS8.js';var v=class n{api=h(vb);settings=Qe(null);loading=Qe(false);saving=Qe(false);error=Qe(null);load(){this.loading.set(true),this.error.set(null),this.api.getRunConcurrency().pipe(yr(()=>this.loading.set(false))).subscribe({next:e=>this.settings.set(e),error:e=>this.error.set(e)});}save(e){return this.saving.set(true),this.error.set(null),this.api.updateRunConcurrency(e).pipe(zt(t=>this.settings.set(t)),A(()=>{}),ke(t=>(this.error.set(t),ut(()=>t))),yr(()=>this.saving.set(false)))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=M({token:n,factory:n.\u0275fac})};function ie(n,e){if(n&1){let t=aC();ma(0,"div",6)(1,"mat-icon",9),VC(2,"cloud_off"),Id(),ma(3,"span"),VC(4),Id(),ma(5,"button",10),ey("click",function(){Wp(t);let r=pC();return Gp(r.load())}),VC(6,"Retry"),Id()();}n&2&&(ri(4),hy(e));}function ae(n,e){n&1&&(ma(0,"div",7),Yg(1,"mat-progress-spinner",11),ma(2,"span",3),VC(3,"Loading\u2026"),Id()());}function re(n,e){if(n&1&&VC(0),n&2){let t=pC(2);Sd(" by ",t.updatedBy," ");}}function oe(n,e){if(n&1&&VC(0),n&2){let t=pC(3);Sd(" on ",t.formatUpdatedAt(e)," ");}}function le(n,e){if(n&1&&(ma(0,"p",19),VC(1," Last changed "),ci(2,re,1,1),ci(3,oe,1,1),Id()),n&2){let t,l=pC();ri(2),ui(l.updatedBy?2:-1),ri(),ui((t=l.updatedAt)?3:-1,t);}}function de(n,e){n&1&&(ma(0,"p",20),VC(1),Id()),n&2&&(ri(),hy(e));}function se(n,e){n&1&&(ma(0,"p",21),VC(1),Id()),n&2&&(ri(),hy(e));}function me(n,e){if(n&1){let t=aC();ma(0,"form",12),ey("ngSubmit",function(){Wp(t);let r=pC();return Gp(r.save())}),ma(1,"label",13),VC(2,"Maximum parallel workflow runs"),Id(),ma(3,"div",14)(4,"input",15),ey("ngModelChange",function(r){Wp(t);let s=pC();return Gp(s.onValueChange(r))}),Id(),UI(),ma(5,"button",16),VC(6),Id()(),ma(7,"p",17),VC(8),Id(),ma(9,"p",18),VC(10),Id(),ci(11,le,4,2,"p",19),ci(12,de,2,1,"p",20),ci(13,se,2,1,"p",21),Id();}if(n&2){let t,l,r=e,s=pC();ri(4),Zg("min",r.min)("max",r.max)("ngModel",s.draft())("disabled",s.saving()),ir("aria-invalid",s.validation()?"true":null),$I(),ri(),Zg("disabled",!s.canSave()),ri(),Sd(" ",s.saving()?"Saving\u2026":"Save"," "),ri(2),gy(" Default: ",r.defaultMaxParallelRuns," \xB7 allowed ",r.min,"\u2013",r.max,". Extra runs wait in the queue. "),ri(2),Sd(" ",s.validation()," "),ri(),ui(r.updatedBy||r.updatedAt?11:-1),ri(),ui((t=s.savedMessage())?12:-1,t),ri(),ui((l=s.saveError())?13:-1,l);}}var te=class n{state=h(v);settings=this.state.settings;loading=this.state.loading;saving=this.state.saving;edited=Qe(void 0);draft=lT(()=>{let e=this.edited();return e!==void 0?e:this.settings()?.maxParallelRuns??null});savedMessage=Qe(null);saveError=Qe(null);loadError=lT(()=>this.state.error()&&!this.settings()?this.state.error()?.message?.trim()||"Unable to load the run concurrency setting.":null);validation=lT(()=>{let e=this.settings();if(!e||this.edited()===void 0)return null;let t=this.draft();return t===null||!Number.isInteger(t)?"Enter a whole number.":t<e.min||t>e.max?`Enter a value between ${e.min} and ${e.max}.`:null});canSave=lT(()=>{let e=this.settings(),t=this.draft();return !!e&&!this.validation()&&t!==null&&t!==e.maxParallelRuns&&!this.saving()});constructor(){h(yb).crumbs.set([{label:"Admin"}]),this.load();}load(){this.edited.set(void 0),this.savedMessage.set(null),this.saveError.set(null),this.state.load();}onValueChange(e){this.savedMessage.set(null),this.saveError.set(null),this.edited.set(e===null||e===""?null:Number(e));}save(){let e=this.draft();!this.canSave()||e===null||(this.savedMessage.set(null),this.saveError.set(null),this.state.save(e).subscribe({next:()=>{this.edited.set(void 0),this.savedMessage.set(`Saved: up to ${this.settings()?.maxParallelRuns??e} workflow runs in parallel.`);},error:t=>{let l=t.message?.trim()||"Unable to save the setting.";this.saveError.set(`${l} (${t.code})`);}}));}formatUpdatedAt(e){let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=xe({type:n,selectors:[["sf-admin-page"]],features:[Ey([v])],decls:13,vars:1,consts:[[1,"page"],[1,"page-head"],[1,"titles"],[1,"sf-muted"],["aria-labelledby","run-concurrency-title","data-run-concurrency","",1,"sf-panel","setting"],["id","run-concurrency-title"],["role","alert","data-admin-load-error","",1,"banner","banner--warn"],["data-admin-loading","",1,"state"],[1,"field"],["aria-hidden","true"],["mat-stroked-button","","type","button","data-admin-retry","",1,"sf-secondary",3,"click"],["diameter","32","mode","indeterminate"],[1,"field",3,"ngSubmit"],["for","max-parallel-runs"],[1,"field__row"],["id","max-parallel-runs","name","maxParallelRuns","type","number","step","1","inputmode","numeric","aria-describedby","max-parallel-runs-hint max-parallel-runs-error","data-max-parallel-runs","",3,"ngModelChange","min","max","ngModel","disabled"],["mat-flat-button","","type","submit","data-admin-save","",1,"sf-primary",3,"disabled"],["id","max-parallel-runs-hint","data-admin-hint","",1,"sf-muted"],["id","max-parallel-runs-error","role","alert","data-admin-validation","",1,"field__error"],["data-admin-updated","",1,"sf-muted"],["role","status","data-admin-saved",""],["role","alert","data-admin-save-error","",1,"banner","banner--warn"]],template:function(t,l){if(t&1&&(ma(0,"div",0)(1,"header",1)(2,"div",2)(3,"h1"),VC(4,"Admin"),Id(),ma(5,"p",3),VC(6,"Instance-wide settings of the Factory."),Id()()(),ma(7,"section",4)(8,"h2",5),VC(9,"Workflow execution"),Id(),ci(10,ie,7,1,"div",6)(11,ae,4,0,"div",7)(12,me,14,14,"form",8),Id()()),t&2){let r;ri(10),ui((r=l.loadError())?10:l.loading()&&!l.settings()?11:(r=l.settings())?12:-1,r);}},dependencies:[Ln,Bn,Xe,ln,kn,Tn,Ht,Gt,on,nn,HW,UW,Y8,Z8,J,Z],styles:["[_nghost-%COMP%]{display:block;min-width:0}.page[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:18px;min-width:0;overflow-wrap:anywhere}.titles[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}h1[_ngcontent-%COMP%]{margin:0;font-family:var(--font-heading);font-size:28px;font-weight:600;letter-spacing:-.01em}.titles[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.setting[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;padding:20px;max-width:640px}.setting[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:17px;font-weight:700}.state[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:600}.field__row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:120px}.field[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:13px}.field__error[_ngcontent-%COMP%]:empty{display:none}.field__error[_ngcontent-%COMP%]{color:var(--color-danger, currentColor)}"]})};export{te as AdminPageComponent};
@@ -0,0 +1 @@
1
+ import {B as Be,P as Pe$1}from'./chunk-CJg0Tm8L.js';import {h,p as pn,ac as ce,ad as Ue,Q as Qe,l as lT,ae as Hn,af as ve,y as yb,$ as $s,I,x as xe,ag as Wn,ah as Bn,ai as Xe,aj as kn,ak as Tn,al as qt,am as fn,an as cn,N as Nt,H as HW,U as UW,a as Pt,b as It,M as Me,S as Se$1,ao as _i,Y as Y8,Z as Z8,W as Wr,c as Hr,d as ce$1,m as ma,V as VC,e as Id,i as ci,f as ey,g as eC,ap as UI,j as Yg,r as ri,u as ui,n as Zg,aq as $I,t as tC,s as hy,q as Sd,ar as Ey,as as vb,at as Cc,au as ke$1,av as qe$1,aw as yr,ax as XW,ay as ao,az as zt,aA as M,D as pC,aB as gy}from'./main-5IVYFXQL.js';import {T,U}from'./chunk-BQ3GOt7z.js';import {g}from'./chunk-BUtEDy1H.js';var _=class t{api=h(vb);definitions=Qe([]);namespaces=Qe([]);loading=Qe(false);definitionsError=Qe(null);namespacesError=Qe(null);submitting=Qe(false);submissionError=Qe(null);loadOptions(){this.loading.set(true),this.definitionsError.set(null),this.namespacesError.set(null),Cc({definitions:this.api.getWorkflowDefinitions().pipe(ke$1(e=>(this.definitionsError.set(e),qe$1([])))),namespaces:this.api.getNamespaces().pipe(ke$1(e=>(this.namespacesError.set(e),qe$1([]))))}).pipe(yr(()=>this.loading.set(false))).subscribe(({definitions:e,namespaces:o})=>{this.definitions.set(g(e).filter(n=>!!n.workflowType&&!!n.version&&/^[0-9a-f]{64}$/.test(n.definitionHash??""))),this.namespaces.set(XW(o));});}launch(e){return this.submitting.set(true),this.submissionError.set(null),this.api.createWorkflowRun(e,ao()).pipe(zt({error:o=>this.submissionError.set(o)}),yr(()=>this.submitting.set(false)))}static \u0275fac=function(o){return new(o||t)};static \u0275prov=M({token:t,factory:t.\u0275fac})};function we(t,e){return this.definitionKey(e)}var ke=(t,e)=>e.id;function Ne(t,e){t&1&&(ma(0,"div",4)(1,"mat-icon",23),VC(2,"check_circle"),Id(),ma(3,"span"),VC(4),Id()()),t&2&&(ri(4),hy(e));}function Le(t,e){t&1&&(ma(0,"div",5)(1,"mat-icon",23),VC(2,"error"),Id(),ma(3,"span"),VC(4),Id()()),t&2&&(ri(4),hy(e));}function Te(t,e){t&1&&(ma(0,"div",6)(1,"mat-icon",23),VC(2,"warning"),Id(),ma(3,"span"),VC(4),Id()()),t&2&&(ri(4),hy(e));}function Ie(t,e){t&1&&(ma(0,"div",7)(1,"mat-icon",23),VC(2,"error"),Id(),ma(3,"span"),VC(4),Id()()),t&2&&(ri(4),hy(e));}function Pe(t,e){if(t&1&&(ma(0,"mat-option",11),VC(1),Id()),t&2){let o=e.$implicit,n=pC();Zg("value",n.definitionKey(o)),ri(),gy("",o.workflowType,"@",o.version," \xB7 ",o.definitionHash?.slice(0,12));}}function Fe(t,e){t&1&&(ma(0,"mat-error"),VC(1,"Workflow definition is required."),Id());}function Re(t,e){if(t&1&&(ma(0,"mat-option",11),VC(1),Id()),t&2){let o=e.$implicit;Zg("value",o.id),ri(),hy(o.name);}}function De(t,e){t&1&&(ma(0,"mat-error"),VC(1,"An accessible namespace is required."),Id());}function Oe(t,e){t&1&&(ma(0,"mat-hint"),VC(1),Id()),t&2&&(ri(),Sd("Namespace id: ",e.id));}function qe(t,e){t&1&&(ma(0,"mat-hint",13),VC(1,"Loading namespaces\u2026"),Id());}function Ae(t,e){t&1&&(ma(0,"mat-hint",14),VC(1,"No AgentOS namespace is available."),Id());}function We(t,e){t&1&&(ma(0,"mat-error"),VC(1,"The objective must not exceed 4,000 characters."),Id());}function Ke(t){let e=t?.code??"UNKNOWN_ERROR",o=t?.message?.trim();return o?`${o} (${e})`:`Launch failed (${e}).`}var Se=class t{launchState=h(_);store=h(pn);router=h(ce);destroyRef=h(Ue);definitions=this.launchState.definitions;namespaces=this.launchState.namespaces;submitting=this.launchState.submitting;successMessage=Qe(null);errorMessage=Qe(null);definitionsLoading=this.launchState.loading;definitionsError=lT(()=>this.launchState.definitionsError()?.message??null);launchTargetsLoading=this.launchState.loading;launchTargetsError=lT(()=>this.launchState.namespacesError()?.message??null);form=h(Hn).group({definitionKey:["",ve.required],namespaceId:["",ve.required],title:["",ve.maxLength(200)],ticket:["",ve.maxLength(64)],initialRequest:["",ve.maxLength(4e3)]});selectedNamespaceId=T(this.form.controls.namespaceId.valueChanges,{initialValue:this.form.controls.namespaceId.value});selectedNamespace=lT(()=>this.namespaces().find(e=>e.id===this.selectedNamespaceId())??null);constructor(){h(yb).crumbs.set([{label:"Workstreams",link:"/workstreams"},{label:"Launch a run"}]),this.launchState.loadOptions(),$s(()=>{let e=this.definitions();e.length===1&&!this.form.controls.definitionKey.value&&this.form.controls.definitionKey.setValue(this.definitionKey(e[0]));let o=this.namespaces();o.length===1&&!this.form.controls.namespaceId.value&&this.form.controls.namespaceId.setValue(o[0]?.id??"");});}definitionKey(e){return JSON.stringify([e?.workflowType,e?.version,e?.definitionHash])}onSubmit(){if(this.submitting())return;if(this.form.invalid){this.form.markAllAsTouched();return}let{definitionKey:e,namespaceId:o,title:n,ticket:b,initialRequest:x}=this.form.getRawValue(),f=this.definitions().find(u=>this.definitionKey(u)===e);if(this.definitionsLoading()||this.definitionsError()||!f){this.errorMessage.set("Select an available workflow version before launching.");return}if(this.launchTargetsLoading()||this.launchTargetsError()||!this.namespaces().some(u=>u.id===o)){this.errorMessage.set("Select an available namespace before launching.");return}let v=n.trim(),C=b.trim(),F=x.trim();this.submitting.set(true),this.successMessage.set(null),this.errorMessage.set(null),this.launchState.launch(I(I(I({namespaceId:o,workflowType:f.workflowType,definitionVersion:f.version,definitionHash:f.definitionHash},v?{title:v}:{}),F?{initialRequest:F}:{}),C?{parameters:{ticket:C}}:{})).pipe(U(this.destroyRef)).subscribe({next:u=>{let R=u?.submissionId;this.successMessage.set(R?`Launch accepted (id: ${R})`:"Launch accepted."),this.store.selectNamespace(o),this.store.refresh(),this.router.navigate(["/sessions",u.workflowId],{queryParams:{namespaceId:o}});},error:u=>{this.errorMessage.set(Ke(u));}});}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=xe({type:t,selectors:[["sf-launch-page"]],features:[Ey([_])],decls:55,vars:13,consts:[[1,"page"],[1,"page-head"],[1,"titles"],[1,"sf-muted"],["role","status","data-launch-success","true",1,"banner","banner--success"],["role","alert","data-launch-error","true",1,"banner","banner--error"],["role","alert","data-launch-definitions-error","true",1,"banner","banner--warn"],["role","alert","data-launch-targets-error","true",1,"banner","banner--error"],["novalidate","",1,"sf-panel","launch-form",3,"ngSubmit","formGroup"],["appearance","outline",1,"field"],["formControlName","definitionKey","data-launch-workflow-type","true"],[3,"value"],["formControlName","namespaceId","data-launch-namespace","true"],["data-launch-targets-loading","true"],["data-launch-targets-empty","true"],["appearance","outline",1,"field","field--wide"],["matInput","","formControlName","title","maxlength","200","placeholder","Readable run title","data-launch-title","true"],["matInput","","formControlName","ticket","placeholder","ABC-123 or #123","data-launch-ticket","true",1,"sf-mono"],["matInput","","id","launch-initial-request","formControlName","initialRequest","aria-describedby","launch-initial-request-help","rows","5","maxlength","4000","data-launch-initial-request","true"],["id","launch-initial-request-help"],[1,"form-actions"],["mat-flat-button","","type","submit","data-launch-submit","true",1,"sf-primary",3,"disabled"],["mat-stroked-button","","routerLink","/workstreams",1,"sf-secondary"],["aria-hidden","true"]],template:function(o,n){if(o&1&&(ma(0,"div",0)(1,"header",1)(2,"div",2)(3,"h1"),VC(4,"Launch a run"),Id(),ma(5,"p",3),VC(6," Creates and durably submits a real workflow. Factory assigns identity and execution context. "),Id()()(),ci(7,Ne,5,1,"div",4),ci(8,Le,5,1,"div",5),ci(9,Te,5,1,"div",6),ci(10,Ie,5,1,"div",7),ma(11,"form",8),ey("ngSubmit",function(){return n.onSubmit()}),ma(12,"mat-form-field",9)(13,"mat-label"),VC(14,"Workflow definition"),Id(),ma(15,"mat-select",10),eC(16,Pe,2,4,"mat-option",11,we,true),Id(),UI(),ci(18,Fe,2,0,"mat-error"),ma(19,"mat-hint"),VC(20),Id()(),ma(21,"mat-form-field",9)(22,"mat-label"),VC(23,"AgentOS namespace"),Id(),ma(24,"mat-select",12),eC(25,Re,2,2,"mat-option",11,ke),Id(),UI(),ci(27,De,2,0,"mat-error"),ci(28,Oe,2,1,"mat-hint")(29,qe,2,0,"mat-hint",13)(30,Ae,2,0,"mat-hint",14),Id(),ma(31,"mat-form-field",15)(32,"mat-label"),VC(33,"Title (optional)"),Id(),Yg(34,"input",16),UI(),ma(35,"mat-hint"),VC(36,"Factory generates a readable title if omitted."),Id()(),ma(37,"mat-form-field",9)(38,"mat-label"),VC(39,"Ticket / Issue (optional)"),Id(),Yg(40,"input",17),UI(),Id(),ma(41,"mat-form-field",15)(42,"mat-label"),VC(43,"What would you like to do? (optional)"),Id(),Yg(44,"textarea",18),UI(),ci(45,We,2,0,"mat-error"),ma(46,"mat-hint",19),VC(47," Describe your objective, even briefly. The agent will ask for any clarifications needed. "),Id()(),ma(48,"div",20)(49,"button",21)(50,"mat-icon"),VC(51),Id(),VC(52),Id(),ma(53,"a",22),VC(54,"Cancel"),Id()()()()),o&2){let b,x,f,v,C;ri(7),ui((b=n.successMessage())?7:-1,b),ri(),ui((x=n.errorMessage())?8:-1,x),ri(),ui((f=n.definitionsError())?9:-1,f),ri(),ui((v=n.launchTargetsError())?10:-1,v),ri(),Zg("formGroup",n.form),ri(4),$I(),ri(),tC(n.definitions()),ri(2),ui(n.form.controls.definitionKey.hasError("required")?18:-1),ri(2),hy(n.definitionsLoading()?"Loading definitions\u2026":n.definitions().length?"Choose an exact version. No automatic latest selection.":"No workflow version is available."),ri(4),$I(),ri(),tC(n.namespaces()),ri(2),ui(n.form.controls.namespaceId.hasError("required")?27:-1),ri(),ui((C=n.selectedNamespace())?28:n.launchTargetsLoading()?29:!n.launchTargetsError()&&n.namespaces().length===0?30:-1,C),ri(6),$I(),ri(6),$I(),ri(4),$I(),ri(),ui(n.form.controls.initialRequest.hasError("maxlength")?45:-1),ri(4),Zg("disabled",n.submitting()||n.definitionsLoading()||!!n.definitionsError()||n.definitions().length===0||n.form.invalid||n.launchTargetsLoading()||!!n.launchTargetsError()||n.namespaces().length===0),ri(2),hy(n.submitting()?"hourglass_top":"play_arrow"),ri(),Sd(" ",n.submitting()?"Launching\u2026":"Launch run"," ");}},dependencies:[Wn,Bn,Xe,kn,Tn,qt,fn,cn,Nt,HW,UW,Pt,It,Me,Se$1,_i,Y8,Z8,Be,Pe$1,Wr,Hr,ce$1],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:18px;max-width:900px}.page-head[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:12px}.titles[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:4px}h1[_ngcontent-%COMP%]{margin:0;font-family:var(--font-heading);font-size:28px;font-weight:600;letter-spacing:-.01em}.titles[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.launch-form[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;padding:24px}.field[_ngcontent-%COMP%]{width:100%}.field--wide[_ngcontent-%COMP%]{grid-column:1/-1}.form-actions[_ngcontent-%COMP%]{grid-column:1/-1;display:flex;gap:10px;padding-top:8px}@media(max-width:720px){.launch-form[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr)}}"]})};export{Se as LaunchPageComponent,Ke as formatLaunchError};
@@ -29,5 +29,5 @@
29
29
  <agentos-shell>
30
30
  <sf-root></sf-root>
31
31
  </agentos-shell>
32
- <script src="main-T4S6RIJZ.js" type="module"></script></body>
32
+ <script src="main-5IVYFXQL.js" type="module"></script></body>
33
33
  </html>
@@ -3079,7 +3079,7 @@ div.mat-mdc-select-panel {
3079
3079
  pointer-events: none;
3080
3080
  }
3081
3081
  `],encapsulation:2})}return n})(),Vt$2=new y("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let n=h(K$3);return ()=>It$6(n)}});var k=new WeakMap,Ht$1=(()=>{class n{_canHaveBackdrop;_element=h(ue$2);_viewContainerRef=h(Yr$1);_menuItemInstance=h(le$2,{optional:true,self:true});_dir=h(iM,{optional:true});_focusMonitor=h(uf);_ngZone=h(j$1);_injector=h(K$3);_scrollStrategy=h(Vt$2);_changeDetectorRef=h(Ly);_animationsDisabled=so$1();_portal;_overlayRef=null;_menuOpen=false;_closingActionsSubscription=q$3.EMPTY;_menuCloseSubscription=q$3.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e?(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),(t==="click"||t==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t);})):this._destroyMenu(),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()));}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let t=h(me$2,{optional:true});this._parentMaterialMenu=t instanceof U?t:void 0;}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&k.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null);}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return !!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit();}_openMenu(e){if(this._triggerIsAriaDisabled())return;let t=this._menu;if(this._menuOpen||!t)return;this._pendingRemoval?.unsubscribe();let i=k.get(t);k.set(t,this),i&&i!==this&&i._closeMenu();let a=this._createOverlay(t),o=a.getConfig(),u=o.positionStrategy;this._setPosition(t,u),this._canHaveBackdrop?o.hasBackdrop=t.hasBackdrop==null?!this._triggersSubmenu():t.hasBackdrop:o.hasBackdrop=t.hasBackdrop??false,a.hasAttached()||(a.attach(this._getPortal(t)),t.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),t.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,t.direction=this.dir,e&&t.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(true),t instanceof U&&(t._setIsOpen(true),t._directDescendantItems.changes.pipe(Er(t.close)).subscribe(()=>{u.withLockedPosition(false).reapplyLastPosition(),u.withLockedPosition(true);}));}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t);}_destroyMenu(e){let t=this._overlayRef,i=this._menu;!t||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),i instanceof U&&this._ownsMenu(i)?(this._pendingRemoval=i._animationDone.pipe(Ge$3(1)).subscribe(()=>{t.detach(),k.has(i)||i.lazyContent?.detach();}),i._setIsOpen(false)):(t.detach(),i?.lazyContent?.detach()),i&&this._ownsMenu(i)&&k.delete(i),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(false));}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck());}_createOverlay(e){if(!this._overlayRef){let t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=jt$2(this._injector,t),this._overlayRef.keydownEvents().subscribe(i=>{this._menu instanceof U&&this._menu._handleKeydown(i);});}return this._overlayRef}_getOverlayConfig(e){return new q$2({positionStrategy:Ht$3(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(i=>{this._ngZone.run(()=>{let a=i.connectionPair.overlayX==="start"?"after":"before",o=i.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(a,o);});});}_setPosition(e,t){let[i,a]=e.xPosition==="before"?["end","start"]:["start","end"],[o,u]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[W,Q]=[o,u],[K,$]=[i,a],D=0;if(this._triggersSubmenu()){if($=i=e.xPosition==="before"?"start":"end",a=K=i==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let ce=this._parentMaterialMenu.items.first;this._parentInnerPadding=ce?ce._getHostElement().offsetTop:0;}D=o==="bottom"?this._parentInnerPadding:-this._parentInnerPadding;}}else e.overlapTrigger||(W=o==="top"?"bottom":"top",Q=u==="top"?"bottom":"top");t.withPositions([{originX:i,originY:W,overlayX:K,overlayY:o,offsetY:D},{originX:a,originY:W,overlayX:$,overlayY:o,offsetY:D},{originX:i,originY:Q,overlayX:K,overlayY:u,offsetY:-D},{originX:a,originY:Q,overlayX:$,overlayY:u,offsetY:-D}]);}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),t=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:qe$3(),a=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Tt$6(o=>this._menuOpen&&o!==this._menuItemInstance)):qe$3();return Jb(e,i,a,t)}_getPortal(e){return (!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new $$1(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return k.get(e)===this}_triggerIsAriaDisabled(){return wt$6(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(t){YI();};static \u0275dir=rt$2({type:n})}return n})(),Ai$1=(()=>{class n extends Ht$1{_cleanupTouchstart;_hoverSubscription=q$3.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e;}get menu(){return this._menu}set menu(e){this._menu=e;}menuData;restoreFocus=true;menuOpened=new Oe$4;onMenuOpen=this.menuOpened;menuClosed=new Oe$4;onMenuClose=this.menuClosed;constructor(){super(true);let e=h(ai$4);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",t=>{Mi$2(t)||(this._openedBy="touch");},{passive:true});}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(true);}closeMenu(){this._closeMenu();}updatePosition(){this._overlayRef?.updatePosition();}ngAfterContentInit(){this._handleHover();}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe();}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){Si$2(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault());}_handleKeydown(e){let t=e.keyCode;(t===13||t===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===39&&this.dir==="ltr"||t===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu());}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu();}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(false));}));}static \u0275fac=function(t){return new(t||n)};static \u0275dir=rt$2({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(t,i){t&1&&ey("click",function(o){return i._handleClick(o)})("mousedown",function(o){return i._handleMousedown(o)})("keydown",function(o){return i._handleKeydown(o)}),t&2&&ir$1("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen)("aria-controls",i.menuOpen?i.menu?.panelId:null);},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],features:[Kr$1]})}return n})();var Bi$1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=he$2({type:n});static \u0275inj=ce$4({imports:[mb,di$2,no$1,Vt$5]})}return n})();var f="primary",ze$1=Symbol("RouteTitle"),Bt$1=class Bt{params;constructor(n){this.params=n||{};}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return []}get keys(){return Object.keys(this.params)}};function ie(t){return new Bt$1(t)}function zt$1(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return false}return true}function tn$1(t,n,e){let r=e.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let s={},u=t.slice(0,r.length);return zt$1(r,u,s)?{consumed:u,posParams:s}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let c={};return !zt$1(o,t.slice(0,o.length),c)||!zt$1(a,t.slice(t.length-a.length),c)?null:{consumed:t,posParams:c}}function st(t){return new Promise((n,e)=>{t.pipe(iD()).subscribe({next:r=>n(r),error:r=>e(r)});})}function Wn(t,n){if(t.length!==n.length)return false;for(let e=0;e<t.length;++e)if(!F(t[e],n[e]))return false;return true}function F(t,n){let e=t?Vt$1(t):void 0,r=n?Vt$1(n):void 0;if(!e||!r||e.length!=r.length)return false;let i;for(let o=0;o<e.length;o++)if(i=e[o],!rn$1(t[i],n[i]))return false;return true}function Vt$1(t){return [...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function rn$1(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return false;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Qn(t){return t.length>0?t[t.length-1]:null}function se(t){return Qb(t)?t:Aa(t)?at$3(Promise.resolve(t)):qe$3(t)}function nn$1(t){return Qb(t)?st(t):Promise.resolve(t)}var Kn={exact:an,subset:sn},on$1={exact:Yn,subset:Zn,ignored:()=>true},or={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_e={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function ar(t,n,e){let r=t instanceof I?t:n.parseUrl(t);return lT(()=>Gt$1(n.lastSuccessfulNavigation()?.finalUrl??new I,r,I$2(I$2({},_e),e)))}function Gt$1(t,n,e){return Kn[e.paths](t.root,n.root,e.matrixParams)&&on$1[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Yn(t,n){return F(t,n)}function an(t,n,e){if(!ne(t.segments,n.segments)||!it(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return false;for(let r in n.children)if(!t.children[r]||!an(t.children[r],n.children[r],e))return false;return true}function Zn(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>rn$1(t[e],n[e]))}function sn(t,n,e){return cn$1(t,n,n.segments,e)}function cn$1(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return !(!ne(i,e)||n.hasChildren()||!it(i,e,r))}else if(t.segments.length===e.length){if(!ne(t.segments,e)||!it(t.segments,e,r))return false;for(let i in n.children)if(!t.children[i]||!sn(t.children[i],n.children[i],r))return false;return true}else {let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return !ne(t.segments,i)||!it(t.segments,i,r)||!t.children[f]?false:cn$1(t.children[f],n,o,r)}}function it(t,n,e){return n.every((r,i)=>on$1[e](t[i].parameters,r.parameters))}var I=class{root;queryParams;fragment;_queryParamMap;constructor(n=new m([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r;}get queryParamMap(){return this._queryParamMap??=ie(this.queryParams),this._queryParamMap}toString(){return ei.serialize(this)}},m=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this);}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ot(this)}},K=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e;}get parameterMap(){return this._parameterMap??=ie(this.parameters),this._parameterMap}toString(){return ln$1(this)}};function Jn(t,n){return ne(t,n)&&t.every((e,r)=>F(e.parameters,n[r].parameters))}function ne(t,n){return t.length!==n.length?false:t.every((e,r)=>e.path===n[r].path)}function Xn(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===f&&(e=e.concat(n(i,r)));}),Object.entries(t.children).forEach(([r,i])=>{r!==f&&(e=e.concat(n(i,r)));}),e}var ye=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:()=>new Y})}return t})(),Y=class{parse(n){let e=new Qt$1(n);return new I(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Ee(n.root,true)}`,r=ni(n.queryParams),i=typeof n.fragment=="string"?`#${ti(n.fragment)}`:"";return `${e}${r}${i}`}},ei=new Y;function ot(t){return t.segments.map(n=>ln$1(n)).join("/")}function Ee(t,n){if(!t.hasChildren())return ot(t);if(n){let e=t.children[f]?Ee(t.children[f],false):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==f&&r.push(`${i}:${Ee(o,false)}`);}),r.length>0?`${e}(${r.join("//")})`:e}else {let e=Xn(t,(r,i)=>i===f?[Ee(t.children[f],false)]:[`${i}:${Ee(r,false)}`]);return Object.keys(t.children).length===1&&t.children[f]!=null?`${ot(t)}/${e[0]}`:`${ot(t)}/(${e.join("//")})`}}function un(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function rt(t){return un(t).replace(/%3B/gi,";")}function ti(t){return encodeURI(t)}function Wt$1(t){return un(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function at(t){return decodeURIComponent(t)}function Qr(t){return at(t.replace(/\+/g,"%20"))}function ln$1(t){return `${Wt$1(t.path)}${ri(t.parameters)}`}function ri(t){return Object.entries(t).map(([n,e])=>`;${Wt$1(n)}=${Wt$1(e)}`).join("")}function ni(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${rt(e)}=${rt(i)}`).join("&"):`${rt(e)}=${rt(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var ii=/^[^\/()?;#]+/;function Ht(t){let n=t.match(ii);return n?n[0]:""}var oi=/^[^\/()?;=#]+/;function ai(t){let n=t.match(oi);return n?n[0]:""}var si=/^[^=?&#]+/;function ci(t){let n=t.match(si);return n?n[0]:""}var ui=/^[^&#]+/;function li(t){let n=t.match(ui);return n?n[0]:""}var Qt$1=class Qt{url;remaining;constructor(n){this.url=n,this.remaining=n;}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],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 g(4010,false);if(this.remaining==="")return {};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(true,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(false,n)),(e.length>0||Object.keys(r).length>0)&&(i[f]=new m(e,r)),i}parseSegment(){let n=Ht(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new g(4009,false);return this.capture(n),new K(at(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=ai(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Ht(this.remaining);i&&(r=i,this.capture(r));}n[at(e)]=at(r);}parseQueryParam(n){let e=ci(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let a=li(this.remaining);a&&(r=a,this.capture(r));}let i=Qr(e),o=Qr(r);if(Object.hasOwn(n,i)){let a=n[i];Array.isArray(a)||(a=[a],n[i]=a),a.push(o);}else n[i]=o;}parseParens(n,e){let r=Object.create(null);for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=Ht(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new g(4010,false);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=f);let c=this.parseChildren(e+1);r[a??f]=Object.keys(c).length===1&&c[f]?c[f]:new m([],c),this.consumeOptional("//");}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),true):false}capture(n){if(!this.consumeOptional(n))throw new g(4011,false)}};function hn$1(t){return t.segments.length>0?new m([],{[f]:t}):t}function dn(t){let n=Object.create(null);for(let[r,i]of Object.entries(t.children)){let o=dn(i);if(r===f&&o.segments.length===0&&o.hasChildren())for(let[a,c]of Object.entries(o.children))n[a]=c;else (o.segments.length>0||o.hasChildren())&&(n[r]=o);}let e=new m(t.segments,n);return hi(e)}function hi(t){if(t.numberOfChildren===1&&t.children[f]){let n=t.children[f];return new m(t.segments.concat(n.segments),n.children)}return t}function Z(t){return t instanceof I}function fn$1(t,n,e=null,r=null,i=new Y){let o=pn$1(t);return gn$1(o,n,e,r,i)}function pn$1(t){let n;function e(o){let a={};for(let s of o.children){let u=e(s);a[s.outlet]=u;}let c=new m(o.url,a);return o===t&&(n=c),c}let r=e(t.root),i=hn$1(r);return n??i}function gn$1(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return Ft$1(o,o,o,e,r,i);let a=di(n);if(a.toRoot())return Ft$1(o,o,new m([],{}),e,r,i);let c=fi(a,o,t),s=c.processChildren?Ne$1(c.segmentGroup,c.index,a.commands):mn$1(c.segmentGroup,c.index,a.commands);return Ft$1(o,c.segmentGroup,s,e,r,i)}function ct(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Ue(t){return typeof t=="object"&&t!=null&&t.outlets}function Kr(t,n,e){t||="\u0275";let r=new I;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function Ft$1(t,n,e,r,i,o){let a={};for(let[u,h]of Object.entries(r??{}))a[u]=Array.isArray(h)?h.map(v=>Kr(u,v,o)):Kr(u,h,o);let c;t===n?c=e:c=vn$1(t,n,e);let s=hn$1(dn(c));return new I(s,a,i)}function vn$1(t,n,e){let r=Object.create(null);return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=vn$1(o,n,e);}),new m(t.segments,r)}var ut=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&ct(r[0]))throw new g(4003,false);let i=r.find(Ue);if(i&&i!==Qn(r))throw new g(4004,false)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function di(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ut(true,0,t);let n=0,e=false,r=t.reduce((i,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([s,u])=>{c[s]=typeof u=="string"?u.split("/"):u;}),[...i,{outlets:c}]}if(o.segmentPath)return [...i,o.segmentPath]}return typeof o!="string"?[...i,o]:a===0?(o.split("/").forEach((c,s)=>{s==0&&c==="."||(s==0&&c===""?e=true:c===".."?n++:c!=""&&i.push(c));}),i):[...i,o]},[]);return new ut(e,n,r)}var he=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r;}};function fi(t,n,e){if(t.isAbsolute)return new he(n,true,0);if(!e)return new he(n,false,NaN);if(e.parent===null)return new he(e,true,0);let r=ct(t.commands[0])?0:1,i=e.segments.length-1+r;return pi(e,i,t.numberOfDoubleDots)}function pi(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new g(4005,false);i=r.segments.length;}return new he(r,false,i-o)}function gi(t){return Ue(t[0])?t[0].outlets:{[f]:t}}function mn$1(t,n,e){if(t??=new m([],{}),t.segments.length===0&&t.hasChildren())return Ne$1(t,n,e);let r=vi(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new m(t.segments.slice(0,r.pathIndex),{});return o.children[f]=new m(t.segments.slice(r.pathIndex),t.children),Ne$1(o,0,i)}else return r.match&&i.length===0?new m(t.segments,{}):r.match&&!t.hasChildren()?Kt$1(t,n,e):r.match?Ne$1(t,0,i):Kt$1(t,n,e)}function Ne$1(t,n,e){if(e.length===0)return new m(t.segments,{});{let r=gi(e),i=Object.create(null);if(Object.keys(r).some(o=>o!==f)&&t.children[f]&&t.numberOfChildren===1&&t.children[f].segments.length===0){let o=Ne$1(t.children[f],n,e);return new m(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[o]=mn$1(t.children[o],n,a));}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a);}),new m(t.segments,i)}}function vi(t,n,e){let r=0,i=n,o={match:false,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let a=t.segments[i],c=e[r];if(Ue(c))break;let s=`${c}`,u=r<e.length-1?e[r+1]:null;if(i>0&&s===void 0)break;if(s&&u&&typeof u=="object"&&u.outlets===void 0){if(!Zr(s,u,a))return o;r+=2;}else {if(!Zr(s,{},a))return o;r++;}i++;}return {match:true,pathIndex:i,commandIndex:r}}function Kt$1(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(Ue(o)){let s=mi(o.outlets);return new m(r,s)}if(i===0&&ct(e[0])){let s=t.segments[n];r.push(new K(s.path,Yr(e[0]))),i++;continue}let a=Ue(o)?o.outlets[f]:`${o}`,c=i<e.length-1?e[i+1]:null;a&&c&&ct(c)?(r.push(new K(a,Yr(c))),i+=2):(r.push(new K(a,{})),i++);}return new m(r,{})}function mi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Kt$1(new m([],{}),0,r));}),n}function Yr(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function Zr(t,n,e){return t==e.path&&F(n,e.parameters)}var Me="imperative",S=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(S||{}),_=class{id;url;constructor(n,e){this.id=n,this.url=e;}},oe=class extends _{type=S.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i;}toString(){return `NavigationStart(id: ${this.id}, url: '${this.url}')`}},z=class extends _{urlAfterRedirects;type=S.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r;}toString(){return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},w=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(w||{}),Oe=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Oe||{}),x=class extends _{reason;code;type=S.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}toString(){return `NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function yn$1(t){return t instanceof x&&(t.code===w.Redirect||t.code===w.SupersededByNewNavigation)}var V=class extends _{reason;code;type=S.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}},ae=class extends _{error;target;type=S.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i;}toString(){return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Pe$1=class Pe extends _{urlAfterRedirects;state;type=S.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},lt=class extends _{urlAfterRedirects;state;type=S.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ht=class extends _{urlAfterRedirects;state;shouldActivate;type=S.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),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})`}},dt=class extends _{urlAfterRedirects;state;type=S.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ft=class extends _{urlAfterRedirects;state;type=S.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pt=class{route;type=S.RouteConfigLoadStart;constructor(n){this.route=n;}toString(){return `RouteConfigLoadStart(path: ${this.route.path})`}},gt=class{route;type=S.RouteConfigLoadEnd;constructor(n){this.route=n;}toString(){return `RouteConfigLoadEnd(path: ${this.route.path})`}},vt=class{snapshot;type=S.ChildActivationStart;constructor(n){this.snapshot=n;}toString(){return `ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},mt=class{snapshot;type=S.ChildActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yt=class{snapshot;type=S.ActivationStart;constructor(n){this.snapshot=n;}toString(){return `ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rt$1=class Rt{snapshot;type=S.ActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var fe=class{},Le=class{},pe$1=class pe{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e;}};function yi(t){return !(t instanceof fe)&&!(t instanceof pe$1)&&!(t instanceof Le)}var St=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 Re$1(this.rootInjector);}},Re$1=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e;}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i);}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null);}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e;}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new St(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(C$1(ae$3))};static \u0275prov=M({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ct=class{_root;constructor(n){this._root=n;}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Yt$1(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Yt$1(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=Zt$1(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Zt$1(n,this._root).map(e=>e.value)}};function Yt$1(t,n){if(t===n.value)return n;for(let e of n.children){let r=Yt$1(t,e);if(r)return r}return null}function Zt$1(t,n){if(t===n.value)return [n];for(let e of n.children){let r=Zt$1(t,e);if(r.length)return r.unshift(n),r}return []}var D=class{value;children;constructor(n,e){this.value=n,this.children=e;}toString(){return `TreeNode(${this.value})`}};function le$1(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var je=class extends Ct{snapshot;constructor(n,e){super(n),this.snapshot=e,cr(this,n);}toString(){return this.snapshot.toString()}};function Rn(t,n){let e=Ri(t,n),r=new Cn$3([new K("",{})]),i=new Cn$3({}),o=new Cn$3({}),a=new Cn$3({}),c=new Cn$3(""),s=new G(r,i,a,c,o,f,t,e.root);return s.snapshot=e.root,new je(new D(s,[]),e)}function Ri(t,n){let e={},r={},i={},a=new ge$1([],e,i,"",r,f,t,null,{},n);return new xe("",new D(a,[]))}var G=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;_localInjector;constructor(n,e,r,i,o,a,c,s){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=c,this._futureSnapshot=s,this.title=this.dataSubject?.pipe(A$1(u=>u[ze$1]))??qe$3(void 0),this.url=n,this.params=e,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(A$1(n=>ie(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(A$1(n=>ie(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},Si="always";function sr(t,n,e){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:I$2(I$2({},n.params),t.params),data:I$2(I$2({},n.data),t.data),resolve:I$2(I$2(I$2(I$2({},t.data),n.data),i?.data),t._resolvedData)}:r={params:I$2({},t.params),data:I$2({},t.data),resolve:I$2(I$2({},t.data),t._resolvedData??{})},i&&Cn$1(i)&&(r.resolve[ze$1]=i.title),r}var ge$1=class ge{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[ze$1]}constructor(n,e,r,i,o,a,c,s,u,h){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=c,this.routeConfig=s,this._resolve=u,this._environmentInjector=h;}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??=ie(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ie(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return `Route(url:'${n}', path:'${e}')`}},xe=class extends Ct{url;constructor(n,e){super(e),this.url=n,cr(this,e);}toString(){return Sn(this._root)}};function cr(t,n){n.value._routerState=t,n.children.forEach(e=>cr(t,e));}function Sn(t){let n=t.children.length>0?` { ${t.children.map(Sn).join(", ")} } `:"";return `${t.value}${n}`}function qt$1(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,F(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),F(n.params,e.params)||t.paramsSubject.next(e.params),Wn(n.url,e.url)||t.urlSubject.next(e.url),F(n.data,e.data)||t.dataSubject.next(e.data);}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data);}function Jt(t,n){let e=F(t.params,n.params)&&Jn(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||Jt(t.parent,n.parent))}function Cn$1(t){return typeof t.title=="string"||t.title===null}var wn=new y(""),ur=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new Oe$4;deactivateEvents=new Oe$4;attachEvents=new Oe$4;detachEvents=new Oe$4;routerOutletData=Oy();parentContexts=h(Re$1);location=h(Yr$1);changeDetector=h(Ly);inputBinder=h(He,{optional:true});supportsBindingToComponentInputs=true;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.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(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName();}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector));}get isActivated(){return !!this.activated}get component(){if(!this.activated)throw new g(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new g(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new g(4012,false);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance);}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e);}}activateWith(e,r){if(this.isActivated)throw new g(4013,false);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,s=new Xt$1(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:s,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance);}static \u0275fac=function(r){return new(r||t)};static \u0275dir=rt$2({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[ya]})}return t})(),Xt$1=class Xt{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i;}get(n,e){return n===G?this.route:n===Re$1?this.childContexts:n===wn?this.outletData:this.parent.get(n,e)}},He=new y(""),bn$1=(()=>{class t{options;outletDataSubscriptions=new Map;outletSeenKeys=new Map;constructor(e){this.options=e,this.options.queryParams??=true;}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e);}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e),this.outletSeenKeys.delete(e);}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Ec([this.options.queryParams?r.queryParams:qe$3({}),r.params,r.data]).pipe(Nc(([o,a,c],s)=>(c=I$2(I$2(I$2({},o),a),c),s===0?qe$3(c):Promise.resolve(c)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let a=bU(r.component);if(!a){this.unsubscribeFromRouteData(e);return}let c=this.outletSeenKeys.get(e);c||(c=new Set,this.outletSeenKeys.set(e,c));for(let u of Object.keys(o))c.add(u);let s=this.options.unmatchedInputBehavior??"alwaysUndefined";for(let{templateName:u}of a.inputs){let h=o[u];(h!==void 0||s==="alwaysUndefined"||c.has(u))&&e.activatedComponentRef.setInput(u,h);}});this.outletDataSubscriptions.set(e,i);}static \u0275fac=function(r){YI();};static \u0275prov=M({token:t,factory:t.\u0275fac})}return t})(),lr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=xe$1({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Yg(0,"router-outlet");},dependencies:[ur],encapsulation:2,changeDetection:1})}return t})();function hr(t){let n=t.children&&t.children.map(hr),e=n?P(I$2({},t),{children:n}):I$2({},t);return !e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==f&&(e.component=lr),e}function Ci(t,n,e){let r=new Set,i=ke(t,n._root,e?e._root:void 0,r);return {newlyCreatedRoutes:r,state:new je(i,n)}}function ke(t,n,e,r){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let o=wi(t,n,e,r);return new D(i,o)}else {if(t.shouldAttach(n.value)){let a=t.retrieve(n.value);if(a!==null){let c=a.route;return c.value._futureSnapshot=n.value,c.children=n.children.map(s=>ke(t,s,void 0,r)),c}}let i=bi(n.value);r.add(i);let o=n.children.map(a=>ke(t,a,void 0,r));return new D(i,o)}}function wi(t,n,e,r){return n.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return ke(t,i,o,r);return ke(t,i,void 0,r)})}function bi(t){return new G(new Cn$3(t.url),new Cn$3(t.params),new Cn$3(t.queryParams),new Cn$3(t.fragment),new Cn$3(t.data),t.outlet,t.component,t)}var ve=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e;}},In="ngNavigationCancelingError";function wt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=Z(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=An(false,w.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function An(t,n){let e=new Error(`NavigationCancelingError: ${""}`);return e[In]=true,e.cancellationCode=n,e}function Ii(t){return En(t)&&Z(t.url)}function En(t){return !!t&&t[In]}var er=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o;}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),qt$1(this.futureState.root),this.activateChildRoutes(e,r,n);}deactivateChildRoutes(n,e,r){let i=le$1(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a];}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r);});}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(n,e,a.children);}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r);}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e);}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=le$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(r&&r.outlet){let a=r.outlet.detach(),c=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:c});}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=le$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),n.value._localInjector?.destroy();}activateChildRoutes(n,e,r){let i=le$1(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Rt$1(o.value.snapshot));}),n.children.length&&this.forwardEvent(new mt(n.value.snapshot));}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(qt$1(i),i===o)if(i.component){let a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,a.children);}else this.activateChildRoutes(n,e,r);else if(i.component){let a=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),qt$1(c.route.value),this.activateChildRoutes(n,null,a.children);}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(n,null,a.children);}else this.activateChildRoutes(n,null,r);}},bt=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1];}},de$1=class de{component;route;constructor(n,e){this.component=n,this.route=e;}};function Ai(t,n,e){let r=t._root,i=n?n._root:null;return Te$1(r,i,e,[r.value])}function Ei(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return !n||n.length===0?null:{node:t,guards:n}}function Se(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!bD(t)?t:n.get(t):r}function Te$1(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=le$1(n);return t.children.forEach(a=>{Ti(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet];}),Object.entries(o).forEach(([a,c])=>De(c,e.getContext(a),i)),i}function Ti(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let s=Ni(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new bt(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Te$1(t,n,c?c.children:null,r,i):Te$1(t,n,e,r,i),s&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new de$1(c.outlet.component,a));}else a&&De(n,c,i),i.canActivateChecks.push(new bt(r)),o.component?Te$1(t,null,c?c.children:null,r,i):Te$1(t,null,e,r,i);return i}function Ni(t,n,e){if(typeof e=="function")return Nr(n._environmentInjector,()=>e(t,n));switch(e){case "pathParamsChange":return !ne(t.url,n.url);case "pathParamsOrQueryParamsChange":return !ne(t.url,n.url)||!F(t.queryParams,n.queryParams);case "always":return true;case "paramsOrQueryParamsChange":return !Jt(t,n)||!F(t.queryParams,n.queryParams);default:return !Jt(t,n)}}function De(t,n,e){let r=le$1(t),i=t.value;Object.entries(r).forEach(([o,a])=>{i.component?n?De(a,n.children.getContext(o),e):De(a,null,e):De(a,n,e);}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new de$1(n.outlet.component,i)):e.canDeactivateChecks.push(new de$1(null,i)):e.canDeactivateChecks.push(new de$1(null,i));}function Fe$1(t){return typeof t=="function"}function Mi(t){return typeof t=="boolean"}function Di(t){return t&&Fe$1(t.canLoad)}function _i(t){return t&&Fe$1(t.canActivate)}function Ui(t){return t&&Fe$1(t.canActivateChild)}function Oi(t){return t&&Fe$1(t.canDeactivate)}function Pi(t){return t&&Fe$1(t.canMatch)}function Tn(t){return t instanceof go$1||t?.name==="EmptyError"}var nt=Symbol("INITIAL_VALUE");function me$1(){return Nc(t=>Ec(t.map(n=>n.pipe(Ge$3(1),Ac(nt)))).pipe(A$1(n=>{for(let e of n)if(e!==true){if(e===nt)return nt;if(e===false||Li(e))return e}return true}),Tt$6(n=>n!==nt),Ge$3(1)))}function Li(t){return Z(t)||t instanceof ve}function Nn(t){return t.aborted?qe$3(void 0).pipe(Ge$3(1)):new k$1(n=>{let e=()=>{n.next(),n.complete();};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Mn(t){return Er(Nn(t))}function ji(t){return lt$3(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?qe$3(P(I$2({},n),{guardsResult:true})):xi(o,e,r).pipe(lt$3(a=>a&&Mi(a)?ki(e,i,t):qe$3(a)),A$1(a=>P(I$2({},n),{guardsResult:a})))})}function xi(t,n,e){return at$3(t).pipe(lt$3(r=>qi(r.component,r.route,e,n)),iD(r=>r!==true,true))}function ki(t,n,e){return at$3(n).pipe(Tc(r=>qt$3(zi(r.route.parent,e),$i(r.route,e),Fi(t,r.path),Hi(t,r.route))),iD(r=>r!==true,true))}function $i(t,n){return t!==null&&n&&n(new yt(t)),qe$3(true)}function zi(t,n){return t!==null&&n&&n(new vt(t)),qe$3(true)}function Hi(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return qe$3(true);let r=e.map(i=>Xb(()=>{let o=n._environmentInjector,a=Se(i,o),c=_i(a)?a.canActivate(n,t):Nr(o,()=>a(n,t));return se(c).pipe(iD())}));return qe$3(r).pipe(me$1())}function Fi(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>Ei(o)).filter(o=>o!==null).map(o=>Xb(()=>{let a=o.guards.map(c=>{let s=o.node._environmentInjector,u=Se(c,s),h=Ui(u)?u.canActivateChild(e,t):Nr(s,()=>u(e,t));return se(h).pipe(iD())});return qe$3(a).pipe(me$1())}));return qe$3(i).pipe(me$1())}function qi(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return qe$3(true);let o=i.map(a=>{let c=n._environmentInjector,s=Se(a,c),u=Oi(s)?s.canDeactivate(t,n,e,r):Nr(c,()=>s(t,n,e,r));return se(u).pipe(iD())});return qe$3(o).pipe(me$1())}function Bi(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return qe$3(true);let a=o.map(c=>{let s=Se(c,t),u=Di(s)?s.canLoad(n,e):Nr(t,()=>s(n,e)),h=se(u);return i?h.pipe(Mn(i)):h});return qe$3(a).pipe(me$1(),Dn(r))}function Dn(t){return Sb(zt$6(n=>{if(typeof n!="boolean")throw wt(t,n)}),A$1(n=>n===true))}function Vi(t,n,e,r,i,o){let a=n.canMatch;if(!a||a.length===0)return qe$3(true);let c=a.map(s=>{let u=Se(s,t),h=Pi(u)?u.canMatch(n,e,i):Nr(t,()=>u(n,e,i));return se(h).pipe(Mn(o))});return qe$3(c).pipe(me$1(),Dn(r))}var B=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype);}},$e=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype);}};function Gi(t){throw new g(4e3,false)}function Wi(t){throw An(false,w.GuardRejected)}var tr=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e;}async lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[f])throw Gi(`${n.redirectTo}`);i=i.children[f];}}async applyRedirectCommands(n,e,r,i,o){let a=await Qi(e,i,o);if(a instanceof I)throw new $e(a);let c=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]==="/")throw new $e(c);return c}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new I(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let c=o.substring(1);r[i]=e[c];}else r[i]=o;}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),a=Object.create(null);return Object.entries(e.children).forEach(([c,s])=>{a[c]=this.createSegmentGroup(n,s,r,i);}),new m(o,a)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new g(4001,false);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++;}return n}};function Qi(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t;return st(se(Nr(e,()=>r(n))))}function Ki(t,n){return t.providers&&!t._injector&&(t._injector=jg(t.providers,n,`Route: ${t.path}`)),t._injector??n}function $(t){return t.outlet||f}function Yi(t,n){let e=t.filter(r=>$(r)===n);return e.push(...t.filter(r=>$(r)!==n)),e}var rr={matched:false,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function _n$1(t){return {routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function Zi(t,n,e,r,i,o,a){let c=Un(t,n,e);if(!c.matched)return qe$3(c);let s=_n$1(o(c));return r=Ki(n,r),Vi(r,n,e,i,s,a).pipe(A$1(u=>u===true?c:I$2({},rr)))}function Un(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?I$2({},rr):{matched:true,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||tn$1)(e,t,n);if(!i)return I$2({},rr);let o={};Object.entries(i.posParams??{}).forEach(([c,s])=>{o[c]=s.path;});let a=i.consumed.length>0?I$2(I$2({},o),i.consumed[i.consumed.length-1].parameters):o;return {matched:true,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function Jr(t,n,e,r,i){return e.length>0&&eo(t,e,r,i)?{segmentGroup:new m(n,Xi(r,new m(e,t.children))),slicedSegments:[]}:e.length===0&&to(t,e,r)?{segmentGroup:new m(t.segments,Ji(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new m(t.segments,t.children),slicedSegments:e}}function Ji(t,n,e,r){let i={};for(let o of e)if(At$1(t,n,o)&&!r[$(o)]){let a=new m([],{});i[$(o)]=a;}return I$2(I$2({},r),i)}function Xi(t,n){let e={};e[f]=n;for(let r of t)if(r.path===""&&$(r)!==f){let i=new m([],{});e[$(r)]=i;}return e}function eo(t,n,e,r){return e.some(i=>!At$1(t,n,i)||!($(i)!==f)?false:!(r!==void 0&&$(i)===r))}function to(t,n,e){return e.some(r=>At$1(t,n,r))}function At$1(t,n,e){return (t.hasChildren()||n.length>0)&&e.pathMatch==="full"?false:e.path===""}function ro(t,n,e){return n.length===0&&!t.children[e]}var nr=class{};async function no(t,n,e,r,i,o,a,c){return new ir(t,n,e,r,i,a,o,c).recognize()}var io=31,ir=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=true;constructor(n,e,r,i,o,a,c,s){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=c,this.abortSignal=s,this.applyRedirects=new tr(this.urlSerializer,this.urlTree);}noMatchError(n){return new g(4002,`'${n.segmentGroup}'`)}async recognize(){let n=Jr(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=await this.match(n),i=new D(r,e),o=new xe("",i),a=fn$1(r,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}async match(n){let e=new ge$1([],Object.freeze({}),Object.freeze(I$2({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{},this.injector);try{return {children:await this.processSegmentGroup(this.injector,this.config,n,f,e),rootSnapshot:e}}catch(r){if(r instanceof $e)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof B?this.noMatchError(r):r}}async processSegmentGroup(n,e,r,i,o){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let a=await this.processSegment(n,e,r,r.segments,i,true,o);return a instanceof D?[a]:[]}async processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);let a=[];for(let s of o){let u=r.children[s],h=Yi(e,s),v=await this.processSegmentGroup(n,h,u,s,i);a.push(...v);}let c=On(a);return oo(c),c}async processSegment(n,e,r,i,o,a,c){for(let s of e)try{return await this.processSegmentAgainstRoute(s._injector??n,e,s,r,i,o,a,c)}catch(u){if(u instanceof B||Tn(u))continue;throw u}if(ro(r,i,o))return new nr;throw new B(r)}async processSegmentAgainstRoute(n,e,r,i,o,a,c,s){if($(r)!==a&&(a===f||!At$1(i,o,r)))throw new B(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,a,s);if(this.allowRedirects&&c)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,a,s);throw new B(i)}async expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,c){let{matched:s,parameters:u,consumedSegments:h,positionalParamSegments:v,remainingSegments:g}=Un(e,i,o);if(!s)throw new B(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>io&&(this.allowRedirects=false));let A=this.createSnapshot(n,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let k=await this.applyRedirects.applyRedirectCommands(h,i.redirectTo,v,_n$1(A),n),J=await this.applyRedirects.lineralizeSegments(i,k);return this.processSegment(n,r,e,J.concat(g),a,false,c)}createSnapshot(n,e,r,i,o){let a=new ge$1(r,i,Object.freeze(I$2({},this.urlTree.queryParams)),this.urlTree.fragment,so(e),$(e),e.component??e._loadedComponent??null,e,co(e),n),c=sr(a,o,this.paramsInheritanceStrategy);return a.params=Object.freeze(c.params),a.data=Object.freeze(c.data),a}async matchSegmentAgainstRoute(n,e,r,i,o,a){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=X=>this.createSnapshot(n,r,X.consumedSegments,X.parameters,a),s=await st(Zi(e,r,i,n,this.urlSerializer,c,this.abortSignal));if(r.path==="**"&&(e.children={}),!s?.matched)throw new B(e);n=r._injector??n;let{routes:u}=await this.getChildConfig(n,r,i),h=r._loadedInjector??n,{parameters:v,consumedSegments:g,remainingSegments:A}=s,k=this.createSnapshot(n,r,g,v,a),{segmentGroup:J,slicedSegments:we}=Jr(e,g,A,u,o);if(we.length===0&&J.hasChildren()){let X=await this.processChildren(h,u,J,k);return new D(k,X)}if(u.length===0&&we.length===0)return new D(k,[]);let Mt=$(r)===o,Be=await this.processSegment(h,u,J,we,Mt?f:o,true,k);return new D(k,Be instanceof D?[Be]:[])}async getChildConfig(n,e,r){if(e.children)return {routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await st(Bi(n,e,r,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw Wi()}return {routes:[],injector:n}}};function oo(t){t.sort((n,e)=>n.value.outlet===f?-1:e.value.outlet===f?1:n.value.outlet.localeCompare(e.value.outlet));}function ao(t){let n=t.value.routeConfig;return n&&n.path===""}function On(t){let n=[],e=new Set;for(let r of t){if(!ao(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r);}for(let r of e){let i=On(r.children);n.push(new D(r.value,i));}return n.filter(r=>!e.has(r))}function so(t){return t.data||{}}function co(t){return t.resolve||{}}function uo(t,n,e,r,i,o,a){return lt$3(async c=>{let{state:s,tree:u}=await no(t,n,e,r,c.extractedUrl,i,o,a);return P(I$2({},c),{targetSnapshot:s,urlAfterRedirects:u})})}function lo(t){return lt$3(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return qe$3(n);let i=new Set(r.map(c=>c.route)),o=new Set;for(let c of i)if(!o.has(c))for(let s of Pn(c))o.add(s);let a=0;return at$3(o).pipe(Tc(c=>i.has(c)?ho(c,e,t):(c.data=sr(c,c.parent,t).resolve,qe$3(void 0))),zt$6(()=>a++),sD(1),lt$3(c=>a===o.size?qe$3(n):wn$1))})}function Pn(t){let n=t.children.map(e=>Pn(e)).flat();return [t,...n]}function ho(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!Cn$1(r)&&(i[ze$1]=r.title),Xb(()=>(t.data=sr(t,t.parent,e).resolve,fo(i,t,n).pipe(A$1(o=>(t._resolvedData=o,t.data=I$2(I$2({},t.data),o),null)))))}function fo(t,n,e){let r=Vt$1(t);if(r.length===0)return qe$3({});let i={};return at$3(r).pipe(lt$3(o=>po(t[o],n,e).pipe(iD(),zt$6(a=>{if(a instanceof ve)throw wt(new Y,a);i[o]=a;}))),sD(1),A$1(()=>i),ke$4(o=>Tn(o)?wn$1:ut$4(o)))}function po(t,n,e){let r=n._environmentInjector,i=Se(t,r),o=i.resolve?i.resolve(n,e):Nr(r,()=>i(n,e));return se(o)}function Xr(t){return Nc(n=>{let e=t(n);return e?at$3(e).pipe(A$1(()=>n)):qe$3(n)})}var dr=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===f);return r}getResolvedTitleForRoute(e){return e.data[ze$1]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:()=>h(Ln)})}return t})(),Ln=(()=>{class t extends dr{title;constructor(e){super(),this.title=e;}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r);}static \u0275fac=function(r){return new(r||t)(C$1(g8))};static \u0275prov=M({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ce=new y("",{factory:()=>({})}),qe=new y(""),jn=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=h(aT);async loadComponent(e,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 nn$1(Nr(e,()=>r.loadComponent())),a=await kn(pU(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=a,a}finally{this.componentLoaders.delete(r);}})();return this.componentLoaders.set(r,i),i}loadChildren(e,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 xn(r,this.compiler,e,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||t)};static \u0275prov=F$2({token:t,factory:t.\u0275fac})}return t})();async function xn(t,n,e,r){let i=await nn$1(Nr(e,()=>t.loadChildren())),o=await kn(pU(i)),a;o instanceof Pg||Array.isArray(o)?a=o:a=await n.compileModuleAsync(o),r&&r(t);let c,s,h;return Array.isArray(a)?(s=a,true):(c=a.create(e).injector,h=a,s=c.get(qe,[],{optional:true,self:true}).flat()),{routes:s.map(hr),injector:c,factory:h}}async function kn(t){return t}var Et$1=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:()=>h(go)})}return t})(),go=(()=>{class t{shouldProcessUrl(e){return true}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:t.\u0275fac})}return t})(),$n=new y("");var zn=new y(""),vo=()=>{},Hn=new y(""),Fn=(()=>{class t{currentNavigation=Qe$3(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=Qe$3(null);events=new Z$2;transitionAbortWithErrorSubject=new Z$2;configLoader=h(jn);environmentInjector=h(ae$3);destroyRef=h(Ue$3);urlSerializer=h(ye);rootContexts=h(Re$1);location=h(Wy);inputBindingEnabled=h(He,{optional:true})!==null;titleStrategy=h(dr);options=h(Ce,{optional:true})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||Si;urlHandlingStrategy=h(Et$1);createViewTransition=h($n,{optional:true});navigationErrorHandler=h(Hn,{optional:true});activatedRouteInjectorFeature=h(zn,{optional:true});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>qe$3(void 0);rootComponentType=null;destroyed=false;constructor(){let e=i=>this.events.next(new pt(i)),r=i=>this.events.next(new gt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=true;});}complete(){this.transitions?.complete();}handleNavigationRequest(e){let r=++this.navigationId;pi$2(()=>{this.transitions?.next(P(I$2({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}));});}setupNavigations(e){return this.transitions=new Cn$3(null),this.transitions.pipe(Tt$6(r=>r!==null),Nc(r=>{let i=true,o=false,a=new AbortController,c=()=>!o&&this.currentTransition?.id===r.id;return qe$3(r).pipe(Nc(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",w.SupersededByNewNavigation),wn$1;this.currentTransition=r;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:u?P(I$2({},u),{previousNavigation:null}):null,abort:()=>a.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let h=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!h&&v!=="reload")return this.events.next(new V(s.id,this.urlSerializer.serialize(s.rawUrl),"",Oe.IgnoredSameUrlNavigation)),s.resolve(false),wn$1;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return qe$3(s).pipe(Nc(g=>(this.events.next(new oe(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?wn$1:Promise.resolve(g))),uo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,a.signal),zt$6(g=>{r.targetSnapshot=g.targetSnapshot,r.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(A=>(A.finalUrl=g.urlAfterRedirects,A)),this.events.next(new Le);}),Nc(g=>at$3(r.routesRecognizeHandler.deferredHandle??qe$3(void 0)).pipe(A$1(()=>g))),zt$6(()=>{let g=new Pe$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);}));if(h&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:A,source:k,restoredState:J,extras:we}=s,Mt=new oe(g,this.urlSerializer.serialize(A),k,J);this.events.next(Mt);let Be=Rn(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=P(I$2({},s),{targetSnapshot:Be,urlAfterRedirects:A,extras:P(I$2({},we),{skipLocationChange:false,replaceUrl:false})}),this.currentNavigation.update(X=>(X.finalUrl=A,X)),qe$3(r)}else return this.events.next(new V(s.id,this.urlSerializer.serialize(s.extractedUrl),"",Oe.IgnoredByUrlHandlingStrategy)),s.resolve(false),wn$1}),A$1(s=>{let u=new lt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(u),this.currentTransition=r=P(I$2({},s),{guards:Ai(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),ji(s=>this.events.next(s)),Nc(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw wt(this.urlSerializer,s.guardsResult);let u=new ht(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(u),!c())return wn$1;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",w.GuardRejected),wn$1;if(s.guards.canActivateChecks.length===0)return qe$3(s);let h=new dt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(h),!c())return wn$1;let v=false;return qe$3(s).pipe(lo(this.paramsInheritanceStrategy),zt$6({next:()=>{v=true;let g=new ft(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);},complete:()=>{v||this.cancelNavigationTransition(s,"",w.NoDataFromResolver);}}))}),Xr(s=>{let u=v=>{let g=[];if(v.routeConfig?._loadedComponent)v.component=v.routeConfig?._loadedComponent;else if(v.routeConfig?.loadComponent){let A=v._environmentInjector;g.push(this.configLoader.loadComponent(A,v.routeConfig).then(k=>{v.component=k;}));}for(let A of v.children)g.push(...u(A));return g},h=u(s.targetSnapshot.root);return h.length===0?qe$3(s):at$3(Promise.all(h).then(()=>s))}),Nc(s=>{let{newlyCreatedRoutes:u,state:h}=Ci(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=s=P(I$2({},s),{targetRouterState:h,newlyCreatedRoutes:u}),this.currentNavigation.update(v=>(v.targetRouterState=h,v)),qe$3(s)}),this.activatedRouteInjectorFeature?.operator()??(s=>s),Xr(()=>this.afterPreactivation()),Nc(()=>{let{currentSnapshot:s,targetSnapshot:u}=r,h=this.createViewTransition?.(this.environmentInjector,s.root,u.root);return h?at$3(h).pipe(A$1(()=>r)):qe$3(r)}),Ge$3(1),Nc(s=>{i=false,this.events.next(new fe);let u=r.beforeActivateHandler.deferredHandle;return u?at$3(u.then(()=>s)):qe$3(s)}),zt$6(s=>{new er(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s.newlyCreatedRoutes?.clear(),c()&&(o=true,this.currentNavigation.update(u=>(u.abort=vo,u)),this.lastSuccessfulNavigation.set(pi$2(this.currentNavigation)),this.events.next(new z(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(true));}),Er(Nn(a.signal).pipe(Tt$6(()=>!o&&i),zt$6(()=>{this.cancelNavigationTransition(r,a.signal.reason+"",w.Aborted);}))),zt$6({complete:()=>{o=true;}}),Er(this.transitionAbortWithErrorSubject.pipe(zt$6(s=>{throw s}))),yr(()=>{a.abort(),o||this.cancelNavigationTransition(r,"",w.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null);}),ke$4(s=>{if(o=true,en(r),this.destroyed)return r.resolve(false),wn$1;if(En(s))this.events.next(new x(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),Ii(s)?this.events.next(new pe$1(s.url,s.navigationBehaviorOptions)):r.resolve(false);else {let u=new ae(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let h=Nr(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(h instanceof ve){let{message:v,cancellationCode:g}=wt(this.urlSerializer,h);this.events.next(new x(r.id,this.urlSerializer.serialize(r.extractedUrl),v,g)),this.events.next(new pe$1(h.redirectTo,h.navigationBehaviorOptions));}else throw this.events.next(u),s}catch(h){this.options.resolveNavigationPromiseOnError?r.resolve(false):r.reject(h);}}return wn$1}))}))}cancelNavigationTransition(e,r,i){en(e);let o=new x(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(false);}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(true))),r=pi$2(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:t.\u0275fac})}return t})();function mo(t){return t!==Me}function en(t){if(t.newlyCreatedRoutes)for(let n of t.newlyCreatedRoutes)n._localInjector?.destroy();}var qn=new y("");var Bn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:()=>h(yo)})}return t})(),It$1=class It{shouldDetach(n){return false}store(n,e){}shouldAttach(n){return false}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return true}},yo=(()=>{class t extends It$1{static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:t.\u0275fac})}return t})(),Tt$1=(()=>{class t{urlSerializer=h(ye);options=h(Ce,{optional:true})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=h(Wy);urlHandlingStrategy=h(Et$1);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new I;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,a=i??o;return a instanceof I?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i;}routerState=Rn(null,h(ae$3));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||t)};static \u0275prov=F$2({token:t,factory:()=>h(Ro)})}return t})(),Ro=(()=>{class t extends Tt$1{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate",{replaceUrl:true});});})}handleRouterEvent(e,r){e instanceof oe?this.updateStateMemento():e instanceof V?this.commitTransition(r):e instanceof Pe$1?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof fe?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof x&&!yn$1(e)?this.restoreHistory(r):e instanceof ae?this.restoreHistory(r,true):e instanceof z&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId);}setBrowserUrl(e,r){let{extras:i,id:o}=r,{replaceUrl:a,state:c}=i;if(this.location.isCurrentPathEqualTo(e)||a){let s=this.browserPageId,u=I$2(I$2({},c),this.generateNgRouterState(o,s,r));this.location.replaceState(e,"",u);}else {let s=I$2(I$2({},c),this.generateNgRouterState(o,this.browserPageId+1,r));this.location.go(e,"",s);}}restoreHistory(e,r=false){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(e,r,i){return this.canceledNavigationResolution==="computed"?I$2({navigationId:e,\u0275routerPageId:r},this.routerUrlState(i)):I$2({navigationId:e},this.routerUrlState(i))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:t.\u0275fac})}return t})();function fr(t,n){t.events.pipe(Tt$6(e=>e instanceof z||e instanceof x||e instanceof ae||e instanceof V),A$1(e=>e instanceof z||e instanceof V?0:(e instanceof x?e.code===w.Redirect||e.code===w.SupersededByNewNavigation:false)?2:1),Tt$6(e=>e!==2),Ge$3(1)).subscribe(()=>{n();});}var ce$1=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=false;nonRouterCurrentEntryChangeSubscription;console=h(Wg);stateManager=h(Tt$1);options=h(Ce,{optional:true})||{};pendingTasks=h(Wn$3);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=h(Fn);urlSerializer=h(ye);location=h(Wy);urlHandlingStrategy=h(Et$1);injector=h(ae$3);_events=new Z$2;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=false;routeReuseStrategy=h(Bn);injectorCleanup=h(qn,{optional:true});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=h(qe,{optional:true})?.flat()??[];componentInputBindingEnabled=!!h(He,{optional:true});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents();}eventsSubscription=new q$3;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=pi$2(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof x&&r.code!==w.Redirect&&r.code!==w.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof z)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof pe$1){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s=I$2({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||mo(i.source)},a);this.scheduleNavigation(c,Me,null,s,{resolve:i.resolve,reject:i.reject,promise:i.promise});}}yi(r)&&this._events.next(r);}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i);}});this.eventsSubscription.add(e);}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e;}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(true),Me,this.stateManager.restoredState(),{replaceUrl:true});}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i,o)=>{this.navigateToSyncWithBrowser(e,i,r,o);});}navigateToSyncWithBrowser(e,r,i,o){let a=i?.navigationId?i:null,c=i?.\u0275routerUrl??e;if(i?.\u0275routerUrl&&(o=P(I$2({},o),{browserUrl:e})),i){let u=I$2({},i);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(o.state=u);}let s=this.parseUrl(c);this.scheduleNavigation(s,r,a,o).catch(u=>{this.disposed||this.injector.get(an$3)(u);});}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return pi$2(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(hr),this.navigated=false;}ngOnDestroy(){this.dispose();}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=true,this.eventsSubscription.unsubscribe();}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:s}=r,u=s?this.currentUrlTree.fragment:a,h=null;switch(c??this.options.defaultQueryParamsHandling){case "merge":h=I$2(I$2({},this.currentUrlTree.queryParams),o);break;case "preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null;}h!==null&&(h=this.removeEmptyProps(h));let v;try{let g=i?i.snapshot:this.routerState.snapshot.root;v=pn$1(g);}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),v=this.currentUrlTree.root;}return gn$1(v,e,h,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:false}){let i=Z(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Me,null,r)}navigate(e,r={skipLocationChange:false}){return So(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(At$7(4018,false)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===true?i=I$2({},or):r===false?i=I$2({},_e):i=I$2(I$2({},_e),r),Z(e))return Gt$1(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Gt$1(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,a){if(this.disposed)return Promise.resolve(false);let c,s,u;a?(c=a.resolve,s=a.reject,u=a.promise):u=new Promise((v,g)=>{c=v,s=g;});let h=this.pendingTasks.add();return fr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h));}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:c,reject:s,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:t.\u0275fac})}return t})();function So(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new g(4008,false)}var wo=(()=>{class t{router=h(ce$1);stateManager=h(Tt$1);fragment=Qe$3("");queryParams=Qe$3({});path=Qe$3("");serializer=h(ye);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof z&&this.updateState();});}updateState(){let{fragment:e,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new I(r)));}static \u0275fac=function(r){return new(r||t)};static \u0275prov=F$2({token:t,factory:t.\u0275fac})}return t})(),Nt$1=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=h(new ka("href"),{optional:true});reactiveHref=fT(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return pi$2(this.reactiveHref)}set href(e){this.reactiveHref.set(e);}set target(e){this._target.set(e);}get target(){return pi$2(this._target)}_target=Qe$3(void 0);set queryParams(e){this._queryParams.set(e);}get queryParams(){return pi$2(this._queryParams)}_queryParams=Qe$3(void 0,{equal:()=>false});set fragment(e){this._fragment.set(e);}get fragment(){return pi$2(this._fragment)}_fragment=Qe$3(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e);}get queryParamsHandling(){return pi$2(this._queryParamsHandling)}_queryParamsHandling=Qe$3(void 0);set state(e){this._state.set(e);}get state(){return pi$2(this._state)}_state=Qe$3(void 0,{equal:()=>false});set info(e){this._info.set(e);}get info(){return pi$2(this._info)}_info=Qe$3(void 0,{equal:()=>false});set relativeTo(e){this._relativeTo.set(e);}get relativeTo(){return pi$2(this._relativeTo)}_relativeTo=Qe$3(void 0);set preserveFragment(e){this._preserveFragment.set(e);}get preserveFragment(){return pi$2(this._preserveFragment)}_preserveFragment=Qe$3(false);set skipLocationChange(e){this._skipLocationChange.set(e);}get skipLocationChange(){return pi$2(this._skipLocationChange)}_skipLocationChange=Qe$3(false);set replaceUrl(e){this._replaceUrl.set(e);}get replaceUrl(){return pi$2(this._replaceUrl)}_replaceUrl=Qe$3(false);browserUrl=Oy(void 0);isAnchorElement;onChanges=new Z$2;applicationErrorHandler=h(an$3);options=h(Ce,{optional:true});reactiveRouterState=h(wo);constructor(e,r,i,o,a,c){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=c;let s=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=s==="a"||s==="area"||!!(typeof customElements=="object"&&customElements.get(s)?.observedAttributes?.includes?.("href"));}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e);}ngOnChanges(e){this.onChanges.next(this);}routerLinkInput=Qe$3(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Z(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"));}onClick(e,r,i,o,a){let c=this._urlTree();if(c===null||this.isAnchorElement&&(e!==0||r||i||o||a||typeof this.target=="string"&&this.target!="_self"))return true;let s=this.browserUrl(),u=I$2({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},s!==void 0&&{browserUrl:s});return this.router.navigateByUrl(c,u)?.catch(h=>{this.applicationErrorHandler(h);}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e);}_urlTree=lT(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i==="preserve"||i==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:Z(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:(e,r)=>this.computeHref(e)===this.computeHref(r)});get urlTree(){return pi$2(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(r){return new(r||t)(_t$5(ce$1),_t$5(G),Ol("tabindex"),_t$5(ai$4),_t$5(ue$2),_t$5(Fa))};static \u0275dir=rt$2({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&ey("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&ir$1("href",i.reactiveHref(),h_)("target",i._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",wt$6],skipLocationChange:[2,"skipLocationChange","skipLocationChange",wt$6],replaceUrl:[2,"replaceUrl","replaceUrl",wt$6],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[ya]})}return t})(),bo=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=false;get isActive(){return this._isActive}routerLinkActiveOptions={exact:false};ariaCurrentWhenActive;isActiveChange=new Oe$4;link=h(Nt$1,{optional:true});constructor(e,r,i,o){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof z&&this.update();});}ngAfterContentInit(){qe$3(this.links.changes,qe$3(null)).pipe(yo$1()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges();});}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=at$3(e).pipe(yo$1()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update();});}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i);}ngOnChanges(e){this.update();}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe();}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r);}),e&&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!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e));});}isLinkActive(e){let r=Io(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??false?I$2({},or):I$2({},_e);return i=>{let o=i.urlTree;return o?pi$2(ar(o,e,r)):false}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(_t$5(ce$1),_t$5(ue$2),_t$5(ai$4),_t$5(Ly))};static \u0275dir=rt$2({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&ny(o,Nt$1,5),r&2){let a;gC(a=yC())&&(i.links=a);}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[ya]})}return t})();function Io(t){let n=t;return !!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var Ao=new y("");function Eo(t,...n){return Pn$2([{provide:qe,multi:true,useValue:t},{provide:G,useFactory:To},{provide:Ed,multi:true,useFactory:Mo},n.map(e=>e.\u0275providers)])}function To(){return h(ce$1).routerState.root}function No(t,n){return {\u0275kind:t,\u0275providers:n}}function Mo(){let t=h(K$3);return n=>{let e=t.get(or$1);if(n!==e.components[0])return;let r=t.get(ce$1),i=t.get(Do);t.get(_o)===1&&r.initialNavigation(),t.get(Uo,null,{optional:true})?.setUpPreloading(),t.get(Ao,null,{optional:true})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe());}}var Do=new y("",{factory:()=>new Z$2}),_o=new y("",{factory:()=>1});var Uo=new y("");function Oo(t={}){return No(8,[{provide:He,useFactory:()=>new bn$1(t)}])}
3082
- var Bt="agentos-shell",de=class t extends Wt$3{_createContainer(){super._createContainer();let o=this._document.querySelector(Bt);o&&this._containerElement&&o.appendChild(this._containerElement);}static \u0275fac=(()=>{let o;return function(n){return (o||(o=pm(t)))(n||t)}})();static \u0275prov=M({token:t,factory:t.\u0275fac})};function Lt(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return e===1&&n===0?1:5}var Dt=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],void 0,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",void 0,void 0,void 0],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Lt];var Et=[{path:"",pathMatch:"full",redirectTo:"workstreams"},{path:"sandboxes",redirectTo:"workstreams",pathMatch:"full"},{path:"workstreams",loadComponent:()=>import('./chunk-el-z4iRF.js').then(t=>t.WorkstreamsPageComponent)},{path:"launch",loadComponent:()=>import('./chunk-CM2lHl3p.js').then(t=>t.LaunchPageComponent)},{path:"sessions/:runId",loadComponent:()=>import('./chunk-C-qu5lON.js').then(t=>t.SessionPageComponent)},{path:"historique",pathMatch:"full",redirectTo:"history"},{path:"history",loadComponent:()=>import('./chunk-D7Rw3ZfK.js').then(t=>t.HistoryPageComponent)},{path:"workflows",loadComponent:()=>import('./chunk-B_4j4J3_.js').then(t=>t.WorkflowsPageComponent)},{path:"workflows/new",data:{create:true},canDeactivate:[t=>t.canLeave()],loadComponent:()=>import('./chunk-1Psr-icp.js').then(t=>t.WorkflowDetailPageComponent)},{path:"workflows/:type/:version",canDeactivate:[t=>t.canLeave()],loadComponent:()=>import('./chunk-1Psr-icp.js').then(t=>t.WorkflowDetailPageComponent)},{path:"reglages",pathMatch:"full",redirectTo:"workflows"},{path:"admin",loadComponent:()=>import('./chunk-BgFBBwpx.js').then(t=>t.AdminPageComponent)},{path:"**",redirectTo:"workstreams"}];WH(Dt);var Ot={providers:[sT(),KS(),{provide:fi$2,useValue:"en"},{provide:se$1,useClass:_t},{provide:Wt$3,useClass:de},Eo(Et,Oo()),Fw(()=>{h(Rv).setDefaultFontSetClass("material-symbols-outlined");})]};var qt=["*",[["mat-toolbar-row"]]],Wt=["*","mat-toolbar-row"],$t=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=rt$2({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),Pt=(()=>{class t{_elementRef=h(ue$2);_platform=h(De$5);_document=h(O$1);color;_toolbarRows;ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()));}_checkToolbarMixedModes(){this._toolbarRows.length;}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=xe$1({type:t,selectors:[["mat-toolbar"]],contentQueries:function(n,i,d){if(n&1&&ny(d,$t,5),n&2){let m;gC(m=yC())&&(i._toolbarRows=m);}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,i){n&2&&(di$3(i.color?"mat-"+i.color:""),It$7("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",i._toolbarRows.length===0));},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:Wt,decls:2,vars:0,template:function(n,i){n&1&&(sr$1(qt),ot$3(0),ot$3(1,1));},styles:[`.mat-toolbar {
3082
+ var Bt="agentos-shell",de=class t extends Wt$3{_createContainer(){super._createContainer();let o=this._document.querySelector(Bt);o&&this._containerElement&&o.appendChild(this._containerElement);}static \u0275fac=(()=>{let o;return function(n){return (o||(o=pm(t)))(n||t)}})();static \u0275prov=M({token:t,factory:t.\u0275fac})};function Lt(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return e===1&&n===0?1:5}var Dt=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],void 0,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",void 0,void 0,void 0],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Lt];var Et=[{path:"",pathMatch:"full",redirectTo:"workstreams"},{path:"sandboxes",redirectTo:"workstreams",pathMatch:"full"},{path:"workstreams",loadComponent:()=>import('./chunk-BwxSG216.js').then(t=>t.WorkstreamsPageComponent)},{path:"launch",loadComponent:()=>import('./chunk-SCR6FJps.js').then(t=>t.LaunchPageComponent)},{path:"sessions/:runId",loadComponent:()=>import('./chunk-By0WSWo6.js').then(t=>t.SessionPageComponent)},{path:"historique",pathMatch:"full",redirectTo:"history"},{path:"history",loadComponent:()=>import('./chunk-CakYLeOn.js').then(t=>t.HistoryPageComponent)},{path:"workflows",loadComponent:()=>import('./chunk-C4rmKOg_.js').then(t=>t.WorkflowsPageComponent)},{path:"workflows/new",data:{create:true},canDeactivate:[t=>t.canLeave()],loadComponent:()=>import('./chunk-DQMbATrJ.js').then(t=>t.WorkflowDetailPageComponent)},{path:"workflows/:type/:version",canDeactivate:[t=>t.canLeave()],loadComponent:()=>import('./chunk-DQMbATrJ.js').then(t=>t.WorkflowDetailPageComponent)},{path:"reglages",pathMatch:"full",redirectTo:"workflows"},{path:"admin",loadComponent:()=>import('./chunk-GUKABzYh.js').then(t=>t.AdminPageComponent)},{path:"**",redirectTo:"workstreams"}];WH(Dt);var Ot={providers:[sT(),KS(),{provide:fi$2,useValue:"en"},{provide:se$1,useClass:_t},{provide:Wt$3,useClass:de},Eo(Et,Oo()),Fw(()=>{h(Rv).setDefaultFontSetClass("material-symbols-outlined");})]};var qt=["*",[["mat-toolbar-row"]]],Wt=["*","mat-toolbar-row"],$t=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=rt$2({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),Pt=(()=>{class t{_elementRef=h(ue$2);_platform=h(De$5);_document=h(O$1);color;_toolbarRows;ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()));}_checkToolbarMixedModes(){this._toolbarRows.length;}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=xe$1({type:t,selectors:[["mat-toolbar"]],contentQueries:function(n,i,d){if(n&1&&ny(d,$t,5),n&2){let m;gC(m=yC())&&(i._toolbarRows=m);}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,i){n&2&&(di$3(i.color?"mat-"+i.color:""),It$7("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",i._toolbarRows.length===0));},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:Wt,decls:2,vars:0,template:function(n,i){n&1&&(sr$1(qt),ot$3(0),ot$3(1,1));},styles:[`.mat-toolbar {
3083
3083
  background: var(--mat-toolbar-container-background-color, var(--mat-sys-surface));
3084
3084
  color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));
3085
3085
  }
@@ -3920,4 +3920,4 @@ var Bt="agentos-shell",de=class t extends Wt$3{_createContainer(){super._createC
3920
3920
  right: 50%;
3921
3921
  transform: translate(50%, -50%);
3922
3922
  }
3923
- `],encapsulation:2})}return t})(),zt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=he$2({type:t});static \u0275inj=ce$4({imports:[Ae,no$1]})}return t})();var Ne=[{id:"industry",label:"Industry"},{id:"terminal",label:"Terminal"},{id:"whoz-oss",label:"Whoz OSS"}],ln=["light","dark","system"],Rt="agentos.theme.variant",Vt="agentos.theme.mode";function ze(t){return Ne.some(o=>o.id===t)}function cn(t){return ln.includes(t)}var mn={light:"dark",dark:"system",system:"light"};function Re(t){return mn[t]}function pn(t,o){return t==="industry"&&o==="light"?null:`${t}-${o}`}var pe=class t{_theme=Qe$3(this.readStored());theme=this._theme.asReadonly();media=typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(prefers-color-scheme: dark)"):null;onSystemChange=()=>{this._theme().mode==="system"&&this.apply(this._theme());};constructor(){this.apply(this._theme()),this.media?.addEventListener("change",this.onSystemChange);}ngOnDestroy(){this.media?.removeEventListener("change",this.onSystemChange);}setVariant(o){this.set(P(I$2({},this._theme()),{variant:o}));}setMode(o){this.set(P(I$2({},this._theme()),{mode:o}));}cycleMode(){this.setMode(Re(this._theme().mode));}set(o){this._theme.set(o);try{localStorage.setItem(Rt,o.variant),localStorage.setItem(Vt,o.mode);}catch{}this.apply(o);}apply(o){if(typeof document>"u"||!document.documentElement)return;let e=o.mode==="dark"||o.mode==="system"&&this.media?.matches===true,n=pn(o.variant,e?"dark":"light");n?document.documentElement.setAttribute("data-theme",n):document.documentElement.removeAttribute("data-theme");}readStored(){try{let o=localStorage.getItem(Rt),e=localStorage.getItem(Vt);return {variant:ze(o)?o:"industry",mode:cn(e)?e:"system"}}catch{return {variant:"industry",mode:"system"}}}static \u0275fac=function(e){return new(e||t)};static \u0275prov=M({token:t,factory:t.\u0275fac,providedIn:"root"})};var gn=(t,o)=>o.id;function hn(t,o){if(t&1&&(ma(0,"option",1),VC(1),Id()),t&2){let e=o.$implicit,n=pC();Zg("value",e.id)("selected",e.id===n.theme().variant),ri$3(),hy(e.label);}}var fn={light:"light_mode",dark:"dark_mode",system:"brightness_auto"},ue=class t{themes=h(pe);theme=this.themes.theme;variants=Ne;modeIcon=lT(()=>fn[this.theme().mode]);modeTitle=lT(()=>{let o=this.theme().mode;return `Theme: ${o} (click for ${Re(o)})`});onVariantChange(o){let e=o.target.value;ze(e)&&this.themes.setVariant(e);}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=xe$1({type:t,selectors:[["ds-theme-picker"]],decls:6,vars:3,consts:[["aria-label","Skin","title","Skin",1,"ds-theme-picker__skin",3,"change"],[3,"value","selected"],["type","button",1,"ds-theme-picker__mode",3,"click","title"],["aria-hidden","true"]],template:function(e,n){e&1&&(ma(0,"select",0),ey("change",function(d){return n.onVariantChange(d)}),eC(1,hn,2,3,"option",1,gn),Id(),ma(3,"button",2),ey("click",function(){return n.themes.cycleMode()}),ma(4,"mat-icon",3),VC(5),Id()()),e&2&&(ri$3(),tC(n.variants),ri$3(2),Zg("title",n.modeTitle()),ir$1("aria-label",n.modeTitle()),ri$3(2),hy(n.modeIcon()));},dependencies:[Z8],styles:["[_nghost-%COMP%]{display:inline-flex;align-items:center;gap:6px}.ds-theme-picker__skin[_ngcontent-%COMP%]{min-height:32px;padding:0 10px;border:1px solid var(--color-divider, rgba(29, 31, 32, .16));border-radius:var(--radius-md, 0);background:var(--color-surface, #dcdcde);color:var(--color-text, #1d1f20);font-family:var(--font-body, sans-serif);font-size:13px;cursor:pointer;outline:none}.ds-theme-picker__skin[_ngcontent-%COMP%]:focus-visible{border-color:var(--color-accent, #5980a6)}.ds-theme-picker__mode[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:1px solid var(--color-divider, rgba(29, 31, 32, .16));border-radius:var(--radius-pill, 0);background:transparent;color:var(--color-text, #1d1f20);cursor:pointer;transition:background .12s ease}.ds-theme-picker__mode[_ngcontent-%COMP%]:hover{background:var(--color-bg-hover, rgba(29, 31, 32, .06))}.ds-theme-picker__mode[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--color-accent, #5980a6);outline-offset:2px}.ds-theme-picker__mode[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:18px;height:18px;font-size:18px;line-height:1}"]})};var _n=(t,o)=>o.link;function bn(t,o){if(t&1&&(ma(0,"a",20),VC(1),Id()),t&2){let e=pC().$implicit;It$7("sf-mono",e.mono),Zg("routerLink",e.link),ri$3(),hy(e.label);}}function yn(t,o){if(t&1&&(ma(0,"span"),VC(1),Id()),t&2){let e=pC(),n=e.$implicit,i=e.$index,d=e.$count;It$7("sf-mono",n.mono)("current",i===d-1),ir$1("aria-current",i===d-1?"page":null),ri$3(),Sd(" ",n.label," ");}}function vn(t,o){if(t&1&&(ma(0,"mat-icon",17),VC(1,"chevron_right"),Id(),ci$3(2,bn,2,4,"a",18)(3,yn,2,6,"span",19)),t&2){let e=o.$implicit,n=o.$index,i=o.$count;ri$3(2),ui$2(e.link&&n!==i-1?2:3);}}function Cn(t,o){if(t&1&&(ma(0,"a",15,0)(2,"span",21)(3,"mat-icon",22),VC(4),Id()(),ma(5,"span",23),VC(6),Id()()),t&2){let e=o.$implicit,n=bC(1);Zg("routerLink",e.link),ir$1("aria-current",n.isActive?"page":null),ri$3(4),hy(e.icon),ri$3(2),hy(e.label);}}var ge=class t{store=h(pn$3);shell=h(yb);nav=[{label:"Workstreams",icon:"grid_view",link:"/workstreams"},{label:"History",icon:"history",link:"/history"},{label:"Workflows",icon:"account_tree",link:"/workflows"},{label:"Admin",icon:"tune",link:"/admin"}];static \u0275fac=function(e){return new(e||t)};static \u0275cmp=xe$1({type:t,selectors:[["sf-root"]],decls:38,vars:13,consts:[["rla","routerLinkActive"],[1,"topbar"],["routerLink","/workstreams","aria-label","WHOZ Factory, home",1,"brand"],["src","W.svg","alt","WHOZ","aria-hidden","true",1,"whoz-logo"],["aria-label","Breadcrumb",1,"crumbs"],[1,"sf-spacer"],["aria-label","Cost summary",1,"cost-pill"],["aria-hidden","true",1,"live-dot"],[1,"strong"],[1,"total"],[1,"destroyed-toggle",3,"change","checked"],["aria-label","Benjamin Valdes",1,"avatar"],[1,"body"],["mode","side","opened","","disableClose","",1,"rail"],["aria-label","Main navigation",1,"rail-nav"],["routerLinkActive","active",1,"rail-item",3,"routerLink"],[1,"content"],["aria-hidden","true",1,"sep"],[3,"routerLink","sf-mono"],[3,"sf-mono","current"],[3,"routerLink"],[1,"rail-icon"],["aria-hidden","true"],[1,"rail-label"]],template:function(e,n){if(e&1&&(ma(0,"mat-toolbar",1)(1,"a",2),Yg(2,"img",3),VC(3," WHOZ Factory "),Id(),ma(4,"nav",4),eC(5,vn,4,1,null,null,Xw),Id(),Yg(7,"span",5),ma(8,"div",6),Yg(9,"span",7),ma(10,"span",8),VC(11),Id(),ma(12,"span"),VC(13,"\xB7"),Id(),ma(14,"span"),VC(15,"workflows "),ma(16,"b"),VC(17),eT(18,"usd"),Id()(),ma(19,"span"),VC(20,"\xB7"),Id(),ma(21,"span"),VC(22,"total "),ma(23,"b",9),VC(24),eT(25,"usd"),Id()()(),ma(26,"mat-slide-toggle",10),ey("change",function(d){return n.store.showDestroyed.set(d.checked)}),VC(27," Destroyed runs "),Id(),Yg(28,"ds-theme-picker"),ma(29,"span",11),VC(30,"BV"),Id()(),ma(31,"mat-sidenav-container",12)(32,"mat-sidenav",13)(33,"nav",14),eC(34,Cn,7,4,"a",15,_n),Id()(),ma(36,"mat-sidenav-content",16),Yg(37,"router-outlet"),Id()()),e&2){ri$3(5),tC(n.shell.crumbs());let i=n.store.costs();ri$3(6),Sd("",i.active," active workflows"),ri$3(3),ir$1("title",i.unknownCostCount?i.unknownCostCount+" round(s) with unknown cost":null),ri$3(3),hy(oT(18,5,i.workflowsUsd,2,i.unknownCostCount)),ri$3(7),hy(oT(25,9,i.totalUsd,2,i.unknownCostCount)),ri$3(2),Zg("checked",n.store.showDestroyed()),ri$3(8),tC(n.nav);}},dependencies:[ur,Nt$1,bo,Tt,Pt,Nt,Fe,At,le,Y8,Z8,zt,Ae,ue,ot$1],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:flex;flex-direction:column;height:100vh}.topbar[_ngcontent-%COMP%]{height:60px;flex-shrink:0;gap:14px;padding:0 24px;border-bottom:1px solid var(--color-divider)}.brand[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;font-family:var(--font-heading);font-size:17px;font-weight:700;color:var(--color-text);text-decoration:none;transition:opacity .14s ease}.brand[_ngcontent-%COMP%]:hover{opacity:.8}.whoz-logo[_ngcontent-%COMP%]{height:28px;width:auto}:is([data-theme$=-dark][_ngcontent-%COMP%]) .whoz-logo[_ngcontent-%COMP%]{filter:brightness(0) invert(1)}.crumbs[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-size:14px;min-width:0;overflow:hidden}.crumbs[_ngcontent-%COMP%] > a[_ngcontent-%COMP%], .crumbs[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crumbs[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:not(.sf-mono), .crumbs[_ngcontent-%COMP%] > .current[_ngcontent-%COMP%], .crumbs[_ngcontent-%COMP%] .sep[_ngcontent-%COMP%]{flex-shrink:0}.cost-pill[_ngcontent-%COMP%], .destroyed-toggle[_ngcontent-%COMP%], .avatar[_ngcontent-%COMP%], ds-theme-picker[_ngcontent-%COMP%]{flex-shrink:0}@media(max-width:1600px){.cost-pill[_ngcontent-%COMP%] .opt[_ngcontent-%COMP%]{display:none}}.crumbs[_ngcontent-%COMP%] .sep[_ngcontent-%COMP%]{width:16px;height:16px;font-size:16px;color:var(--color-neutral-500)}.crumbs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--color-text-secondary);text-decoration:none;font-weight:600}.crumbs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--color-text)}.crumbs[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{color:var(--color-text);font-weight:600}.cost-pill[_ngcontent-%COMP%]{display:flex;align-items:center;gap:9px;height:34px;padding:0 14px;border-radius:var(--radius-pill, 0);border:1px solid var(--color-divider);background:var(--color-bg);font-family:var(--font-heading);font-size:12.5px;color:var(--color-text-secondary)}.cost-pill[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{color:var(--color-text);font-weight:600}.cost-pill[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{color:var(--color-accent-700);font-weight:700}.cost-pill[_ngcontent-%COMP%] .strong[_ngcontent-%COMP%]{color:var(--color-text)}.live-dot[_ngcontent-%COMP%]{width:8px;height:8px;border-radius:50%;background:var(--color-success);box-shadow:0 0 0 3px color-mix(in srgb,var(--color-success) 15%,transparent)}.destroyed-toggle[_ngcontent-%COMP%]{font-size:13px}.avatar[_ngcontent-%COMP%]{width:34px;height:34px;border-radius:var(--radius-pill, 0);display:grid;place-items:center;background:color-mix(in srgb,var(--color-accent) 12%,transparent);border:1px solid color-mix(in srgb,var(--color-accent) 40%,transparent);color:var(--color-accent-700);font-family:var(--font-heading);font-size:12px;font-weight:700}.body[_ngcontent-%COMP%]{flex:1}.rail[_ngcontent-%COMP%]{width:88px;border-right:1px solid var(--color-divider)}.rail-nav[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;height:100%;padding:16px 4px;box-sizing:border-box}.rail-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 0;text-decoration:none;color:var(--color-text-secondary);font-size:11px;font-weight:600}.rail-label[_ngcontent-%COMP%]{width:100%;text-align:center;white-space:normal;overflow-wrap:anywhere}.rail-icon[_ngcontent-%COMP%]{width:52px;height:30px;border-radius:var(--radius-pill, 0);display:grid;place-items:center;transition:background .15s}.rail-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:20px;height:20px;font-size:20px;line-height:1}.rail-item[_ngcontent-%COMP%]:hover .rail-icon[_ngcontent-%COMP%]{background:var(--color-bg-hover)}.rail-item.active[_ngcontent-%COMP%]{color:var(--color-text);font-weight:700}.rail-item.active[_ngcontent-%COMP%] .rail-icon[_ngcontent-%COMP%]{background:var(--color-accent-100);color:var(--color-accent-800)}.content[_ngcontent-%COMP%]{padding:28px 32px;box-sizing:border-box}']})};CS(ge,Ot).catch(t=>console.error(t));export{$s as $,pC as A,aC as B,mt$3 as C,lS as D,st$1 as E,nt$1 as F,It$7 as G,HW as H,It$3 as I,QC as J,GC as K,he$2 as L,Me$1 as M,Nt$1 as N,Oy as O,Pt$2 as P,Qe$3 as Q,ce$4 as R,Se$1 as S,no$1 as T,UW as U,VC as V,Wr as W,y as X,Y8 as Y,Z8 as Z,sr$1 as _,Hr as a,ge$3 as a$,ot$3 as a0,jt as a1,vt$2 as a2,rT as a3,nT as a4,di$3 as a5,Wp as a6,Gp as a7,Sd as a8,jm as a9,gy as aA,G as aB,Ec as aC,A$1 as aD,ns$1 as aE,bn$2 as aF,xn$1 as aG,Oe$2 as aH,Ne$3 as aI,un$2 as aJ,fn$3 as aK,P as aL,cy as aM,mU as aN,oi$2 as aO,Bt$5 as aP,Qe$2 as aQ,si$2 as aR,iy as aS,vC as aT,KC as aU,Xw as aV,to$1 as aW,j$1 as aX,Cn$3 as aY,Nc as aZ,wn$1 as a_,ce$1 as aa,Ue$3 as ab,Hn$1 as ac,ve$1 as ad,I$2 as ae,Wn$1 as af,Bn$1 as ag,Xe as ah,kn$1 as ai,Tn$1 as aj,qt$2 as ak,fn$2 as al,cn$2 as am,_i$1 as an,UI as ao,$I as ap,Ey as aq,vb as ar,Cc as as,ke$4 as at,qe$3 as au,yr as av,XW as aw,ao$1 as ax,zt$6 as ay,M as az,Id as b,fU as b$,k$1 as b0,Z$2 as b1,Er as b2,mb as b3,Ly as b4,iM as b5,mf as b6,Oe$4 as b7,Dt$3 as b8,eb as b9,wt$1 as bA,zM as bB,bi$1 as bC,Bi$1 as bD,U as bE,le$2 as bF,Ai$1 as bG,ai$1 as bH,wd as bI,Cd as bJ,_t as bK,se$1 as bL,dt$3 as bM,Pv as bN,Jb as bO,po$1 as bP,_t$5 as bQ,Vt$3 as bR,Ac as bS,pm as bT,Kr$1 as bU,dn$3 as bV,fn$5 as bW,N3 as bX,Qg as bY,Qn$2 as bZ,hf as b_,rt$2 as ba,wt$6 as bb,R as bc,ny as bd,gC as be,yC as bf,ue$2 as bg,uf as bh,so$1 as bi,Ht$4 as bj,pb as bk,ka as bl,mW as bm,rr$1 as bn,bC as bo,ry as bp,yn$2 as bq,ya as br,rh as bs,oh as bt,D$1 as bu,Es as bv,Bd as bw,Xg as bx,$g as by,Jw as bz,ce$2 as c,Yv as c$,Df as c0,O$1 as c1,fb as c2,K$3 as c3,tc as c4,Fy as c5,De$5 as c6,A as c7,Pe$3 as c8,ut$3 as c9,vr as cA,Ln$1 as cB,Gn as cC,Un$1 as cD,ln$2 as cE,Dt$2 as cF,Ht$2 as cG,Gt$2 as cH,on$2 as cI,m_ as cJ,ty as cK,Xb as cL,je$1 as cM,Ne$5 as cN,Wt$3 as cO,jt$2 as cP,q$2 as cQ,wt$5 as cR,Ft$5 as cS,$$1 as cT,Tt$6 as cU,Wi$2 as cV,di$2 as cW,De$4 as cX,Pw as cY,pt$3 as cZ,TM as c_,bn$3 as ca,Re$4 as cb,Z$1 as cc,Qb as cd,eD as ce,Kb as cf,Yb as cg,Yr$1 as ch,Wr$1 as ci,pn$4 as cj,Zl as ck,V$1 as cl,Ee$1 as cm,ai$4 as cn,nW as co,z3 as cp,nn$2 as cq,zt$3 as cr,Zn$2 as cs,me$3 as ct,Fe$2 as cu,tt$1 as cv,mn$4 as cw,F$2 as cx,Ge$3 as cy,pi$2 as cz,eC as d,dM as d0,fM as d1,xM as d2,At$6 as d3,g as d4,ut$4 as d5,OM as d6,aS as d7,iT as d8,ey as e,ci$3 as f,Yg as g,h,eT as i,Zg as j,hy as k,oT as l,ma as m,hU as n,ot$1 as o,pn$3 as p,lT as q,ri$3 as r,ir$1 as s,tC as t,ui$2 as u,my as v,vy as w,xe$1 as x,yb as y,WC as z};
3923
+ `],encapsulation:2})}return t})(),zt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=he$2({type:t});static \u0275inj=ce$4({imports:[Ae,no$1]})}return t})();var Ne=[{id:"industry",label:"Industry"},{id:"terminal",label:"Terminal"},{id:"whoz-oss",label:"Whoz OSS"}],ln=["light","dark","system"],Rt="agentos.theme.variant",Vt="agentos.theme.mode";function ze(t){return Ne.some(o=>o.id===t)}function cn(t){return ln.includes(t)}var mn={light:"dark",dark:"system",system:"light"};function Re(t){return mn[t]}function pn(t,o){return t==="industry"&&o==="light"?null:`${t}-${o}`}var pe=class t{_theme=Qe$3(this.readStored());theme=this._theme.asReadonly();media=typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(prefers-color-scheme: dark)"):null;onSystemChange=()=>{this._theme().mode==="system"&&this.apply(this._theme());};constructor(){this.apply(this._theme()),this.media?.addEventListener("change",this.onSystemChange);}ngOnDestroy(){this.media?.removeEventListener("change",this.onSystemChange);}setVariant(o){this.set(P(I$2({},this._theme()),{variant:o}));}setMode(o){this.set(P(I$2({},this._theme()),{mode:o}));}cycleMode(){this.setMode(Re(this._theme().mode));}set(o){this._theme.set(o);try{localStorage.setItem(Rt,o.variant),localStorage.setItem(Vt,o.mode);}catch{}this.apply(o);}apply(o){if(typeof document>"u"||!document.documentElement)return;let e=o.mode==="dark"||o.mode==="system"&&this.media?.matches===true,n=pn(o.variant,e?"dark":"light");n?document.documentElement.setAttribute("data-theme",n):document.documentElement.removeAttribute("data-theme");}readStored(){try{let o=localStorage.getItem(Rt),e=localStorage.getItem(Vt);return {variant:ze(o)?o:"industry",mode:cn(e)?e:"system"}}catch{return {variant:"industry",mode:"system"}}}static \u0275fac=function(e){return new(e||t)};static \u0275prov=M({token:t,factory:t.\u0275fac,providedIn:"root"})};var gn=(t,o)=>o.id;function hn(t,o){if(t&1&&(ma(0,"option",1),VC(1),Id()),t&2){let e=o.$implicit,n=pC();Zg("value",e.id)("selected",e.id===n.theme().variant),ri$3(),hy(e.label);}}var fn={light:"light_mode",dark:"dark_mode",system:"brightness_auto"},ue=class t{themes=h(pe);theme=this.themes.theme;variants=Ne;modeIcon=lT(()=>fn[this.theme().mode]);modeTitle=lT(()=>{let o=this.theme().mode;return `Theme: ${o} (click for ${Re(o)})`});onVariantChange(o){let e=o.target.value;ze(e)&&this.themes.setVariant(e);}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=xe$1({type:t,selectors:[["ds-theme-picker"]],decls:6,vars:3,consts:[["aria-label","Skin","title","Skin",1,"ds-theme-picker__skin",3,"change"],[3,"value","selected"],["type","button",1,"ds-theme-picker__mode",3,"click","title"],["aria-hidden","true"]],template:function(e,n){e&1&&(ma(0,"select",0),ey("change",function(d){return n.onVariantChange(d)}),eC(1,hn,2,3,"option",1,gn),Id(),ma(3,"button",2),ey("click",function(){return n.themes.cycleMode()}),ma(4,"mat-icon",3),VC(5),Id()()),e&2&&(ri$3(),tC(n.variants),ri$3(2),Zg("title",n.modeTitle()),ir$1("aria-label",n.modeTitle()),ri$3(2),hy(n.modeIcon()));},dependencies:[Z8],styles:["[_nghost-%COMP%]{display:inline-flex;align-items:center;gap:6px}.ds-theme-picker__skin[_ngcontent-%COMP%]{min-height:32px;padding:0 10px;border:1px solid var(--color-divider, rgba(29, 31, 32, .16));border-radius:var(--radius-md, 0);background:var(--color-surface, #dcdcde);color:var(--color-text, #1d1f20);font-family:var(--font-body, sans-serif);font-size:13px;cursor:pointer;outline:none}.ds-theme-picker__skin[_ngcontent-%COMP%]:focus-visible{border-color:var(--color-accent, #5980a6)}.ds-theme-picker__mode[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:1px solid var(--color-divider, rgba(29, 31, 32, .16));border-radius:var(--radius-pill, 0);background:transparent;color:var(--color-text, #1d1f20);cursor:pointer;transition:background .12s ease}.ds-theme-picker__mode[_ngcontent-%COMP%]:hover{background:var(--color-bg-hover, rgba(29, 31, 32, .06))}.ds-theme-picker__mode[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--color-accent, #5980a6);outline-offset:2px}.ds-theme-picker__mode[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:18px;height:18px;font-size:18px;line-height:1}"]})};var _n=(t,o)=>o.link;function bn(t,o){if(t&1&&(ma(0,"a",20),VC(1),Id()),t&2){let e=pC().$implicit;It$7("sf-mono",e.mono),Zg("routerLink",e.link),ri$3(),hy(e.label);}}function yn(t,o){if(t&1&&(ma(0,"span"),VC(1),Id()),t&2){let e=pC(),n=e.$implicit,i=e.$index,d=e.$count;It$7("sf-mono",n.mono)("current",i===d-1),ir$1("aria-current",i===d-1?"page":null),ri$3(),Sd(" ",n.label," ");}}function vn(t,o){if(t&1&&(ma(0,"mat-icon",17),VC(1,"chevron_right"),Id(),ci$3(2,bn,2,4,"a",18)(3,yn,2,6,"span",19)),t&2){let e=o.$implicit,n=o.$index,i=o.$count;ri$3(2),ui$2(e.link&&n!==i-1?2:3);}}function Cn(t,o){if(t&1&&(ma(0,"a",15,0)(2,"span",21)(3,"mat-icon",22),VC(4),Id()(),ma(5,"span",23),VC(6),Id()()),t&2){let e=o.$implicit,n=bC(1);Zg("routerLink",e.link),ir$1("aria-current",n.isActive?"page":null),ri$3(4),hy(e.icon),ri$3(2),hy(e.label);}}var ge=class t{store=h(pn$3);shell=h(yb);nav=[{label:"Workstreams",icon:"grid_view",link:"/workstreams"},{label:"History",icon:"history",link:"/history"},{label:"Workflows",icon:"account_tree",link:"/workflows"},{label:"Admin",icon:"tune",link:"/admin"}];static \u0275fac=function(e){return new(e||t)};static \u0275cmp=xe$1({type:t,selectors:[["sf-root"]],decls:38,vars:13,consts:[["rla","routerLinkActive"],[1,"topbar"],["routerLink","/workstreams","aria-label","WHOZ Factory, home",1,"brand"],["src","W.svg","alt","WHOZ","aria-hidden","true",1,"whoz-logo"],["aria-label","Breadcrumb",1,"crumbs"],[1,"sf-spacer"],["aria-label","Cost summary",1,"cost-pill"],["aria-hidden","true",1,"live-dot"],[1,"strong"],[1,"total"],[1,"destroyed-toggle",3,"change","checked"],["aria-label","Benjamin Valdes",1,"avatar"],[1,"body"],["mode","side","opened","","disableClose","",1,"rail"],["aria-label","Main navigation",1,"rail-nav"],["routerLinkActive","active",1,"rail-item",3,"routerLink"],[1,"content"],["aria-hidden","true",1,"sep"],[3,"routerLink","sf-mono"],[3,"sf-mono","current"],[3,"routerLink"],[1,"rail-icon"],["aria-hidden","true"],[1,"rail-label"]],template:function(e,n){if(e&1&&(ma(0,"mat-toolbar",1)(1,"a",2),Yg(2,"img",3),VC(3," WHOZ Factory "),Id(),ma(4,"nav",4),eC(5,vn,4,1,null,null,Xw),Id(),Yg(7,"span",5),ma(8,"div",6),Yg(9,"span",7),ma(10,"span",8),VC(11),Id(),ma(12,"span"),VC(13,"\xB7"),Id(),ma(14,"span"),VC(15,"workflows "),ma(16,"b"),VC(17),eT(18,"usd"),Id()(),ma(19,"span"),VC(20,"\xB7"),Id(),ma(21,"span"),VC(22,"total "),ma(23,"b",9),VC(24),eT(25,"usd"),Id()()(),ma(26,"mat-slide-toggle",10),ey("change",function(d){return n.store.showDestroyed.set(d.checked)}),VC(27," Destroyed runs "),Id(),Yg(28,"ds-theme-picker"),ma(29,"span",11),VC(30,"BV"),Id()(),ma(31,"mat-sidenav-container",12)(32,"mat-sidenav",13)(33,"nav",14),eC(34,Cn,7,4,"a",15,_n),Id()(),ma(36,"mat-sidenav-content",16),Yg(37,"router-outlet"),Id()()),e&2){ri$3(5),tC(n.shell.crumbs());let i=n.store.costs();ri$3(6),Sd("",i.active," active workflows"),ri$3(3),ir$1("title",i.unknownCostCount?i.unknownCostCount+" round(s) with unknown cost":null),ri$3(3),hy(oT(18,5,i.workflowsUsd,2,i.unknownCostCount)),ri$3(7),hy(oT(25,9,i.totalUsd,2,i.unknownCostCount)),ri$3(2),Zg("checked",n.store.showDestroyed()),ri$3(8),tC(n.nav);}},dependencies:[ur,Nt$1,bo,Tt,Pt,Nt,Fe,At,le,Y8,Z8,zt,Ae,ue,ot$1],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:flex;flex-direction:column;height:100vh}.topbar[_ngcontent-%COMP%]{height:60px;flex-shrink:0;gap:14px;padding:0 24px;border-bottom:1px solid var(--color-divider)}.brand[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;font-family:var(--font-heading);font-size:17px;font-weight:700;color:var(--color-text);text-decoration:none;transition:opacity .14s ease}.brand[_ngcontent-%COMP%]:hover{opacity:.8}.whoz-logo[_ngcontent-%COMP%]{height:28px;width:auto}:is([data-theme$=-dark][_ngcontent-%COMP%]) .whoz-logo[_ngcontent-%COMP%]{filter:brightness(0) invert(1)}.crumbs[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-size:14px;min-width:0;overflow:hidden}.crumbs[_ngcontent-%COMP%] > a[_ngcontent-%COMP%], .crumbs[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crumbs[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:not(.sf-mono), .crumbs[_ngcontent-%COMP%] > .current[_ngcontent-%COMP%], .crumbs[_ngcontent-%COMP%] .sep[_ngcontent-%COMP%]{flex-shrink:0}.cost-pill[_ngcontent-%COMP%], .destroyed-toggle[_ngcontent-%COMP%], .avatar[_ngcontent-%COMP%], ds-theme-picker[_ngcontent-%COMP%]{flex-shrink:0}@media(max-width:1600px){.cost-pill[_ngcontent-%COMP%] .opt[_ngcontent-%COMP%]{display:none}}.crumbs[_ngcontent-%COMP%] .sep[_ngcontent-%COMP%]{width:16px;height:16px;font-size:16px;color:var(--color-neutral-500)}.crumbs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--color-text-secondary);text-decoration:none;font-weight:600}.crumbs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--color-text)}.crumbs[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{color:var(--color-text);font-weight:600}.cost-pill[_ngcontent-%COMP%]{display:flex;align-items:center;gap:9px;height:34px;padding:0 14px;border-radius:var(--radius-pill, 0);border:1px solid var(--color-divider);background:var(--color-bg);font-family:var(--font-heading);font-size:12.5px;color:var(--color-text-secondary)}.cost-pill[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{color:var(--color-text);font-weight:600}.cost-pill[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{color:var(--color-accent-700);font-weight:700}.cost-pill[_ngcontent-%COMP%] .strong[_ngcontent-%COMP%]{color:var(--color-text)}.live-dot[_ngcontent-%COMP%]{width:8px;height:8px;border-radius:50%;background:var(--color-success);box-shadow:0 0 0 3px color-mix(in srgb,var(--color-success) 15%,transparent)}.destroyed-toggle[_ngcontent-%COMP%]{font-size:13px}.avatar[_ngcontent-%COMP%]{width:34px;height:34px;border-radius:var(--radius-pill, 0);display:grid;place-items:center;background:color-mix(in srgb,var(--color-accent) 12%,transparent);border:1px solid color-mix(in srgb,var(--color-accent) 40%,transparent);color:var(--color-accent-700);font-family:var(--font-heading);font-size:12px;font-weight:700}.body[_ngcontent-%COMP%]{flex:1}.rail[_ngcontent-%COMP%]{width:88px;border-right:1px solid var(--color-divider)}.rail-nav[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;height:100%;padding:16px 4px;box-sizing:border-box}.rail-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 0;text-decoration:none;color:var(--color-text-secondary);font-size:11px;font-weight:600}.rail-label[_ngcontent-%COMP%]{width:100%;text-align:center;white-space:normal;overflow-wrap:anywhere}.rail-icon[_ngcontent-%COMP%]{width:52px;height:30px;border-radius:var(--radius-pill, 0);display:grid;place-items:center;transition:background .15s}.rail-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:20px;height:20px;font-size:20px;line-height:1}.rail-item[_ngcontent-%COMP%]:hover .rail-icon[_ngcontent-%COMP%]{background:var(--color-bg-hover)}.rail-item.active[_ngcontent-%COMP%]{color:var(--color-text);font-weight:700}.rail-item.active[_ngcontent-%COMP%] .rail-icon[_ngcontent-%COMP%]{background:var(--color-accent-100);color:var(--color-accent-800)}.content[_ngcontent-%COMP%]{padding:28px 32px;box-sizing:border-box}']})};CS(ge,Ot).catch(t=>console.error(t));export{$s as $,my as A,vy as B,WC as C,pC as D,aC as E,mt$3 as F,lS as G,HW as H,I$2 as I,st$1 as J,nt$1 as K,It$7 as L,Me$1 as M,Nt$1 as N,Oy as O,P,Qe$3 as Q,QC as R,Se$1 as S,GC as T,UW as U,VC as V,Wr as W,he$2 as X,Y8 as Y,Z8 as Z,ce$4 as _,Pt$2 as a,ge$3 as a$,no$1 as a0,y as a1,sr$1 as a2,ot$3 as a3,jt as a4,vt$2 as a5,rT as a6,nT as a7,di$3 as a8,Wp as a9,M as aA,gy as aB,G as aC,Ec as aD,A$1 as aE,ns$1 as aF,bn$2 as aG,xn$1 as aH,Oe$2 as aI,Ne$3 as aJ,un$2 as aK,fn$3 as aL,cy as aM,mU as aN,oi$2 as aO,Bt$5 as aP,Qe$2 as aQ,si$2 as aR,iy as aS,vC as aT,KC as aU,Xw as aV,to$1 as aW,j$1 as aX,Cn$3 as aY,Nc as aZ,wn$1 as a_,Gp as aa,jm as ab,ce$1 as ac,Ue$3 as ad,Hn$1 as ae,ve$1 as af,Wn$1 as ag,Bn$1 as ah,Xe as ai,kn$1 as aj,Tn$1 as ak,qt$2 as al,fn$2 as am,cn$2 as an,_i$1 as ao,UI as ap,$I as aq,Ey as ar,vb as as,Cc as at,ke$4 as au,qe$3 as av,yr as aw,XW as ax,ao$1 as ay,zt$6 as az,It$3 as b,Pe$3 as b$,k$1 as b0,Z$2 as b1,Er as b2,mb as b3,Ly as b4,iM as b5,mf as b6,Oe$4 as b7,Dt$3 as b8,eb as b9,wt$1 as bA,zM as bB,bi$1 as bC,Bi$1 as bD,U as bE,le$2 as bF,Ai$1 as bG,ai$1 as bH,wd as bI,Cd as bJ,_t as bK,se$1 as bL,dt$3 as bM,Pv as bN,Jb as bO,po$1 as bP,_t$5 as bQ,N3 as bR,dn$3 as bS,fn$5 as bT,pm as bU,Kr$1 as bV,Qg as bW,Fy as bX,De$5 as bY,A as bZ,K$3 as b_,rt$2 as ba,wt$6 as bb,R as bc,ny as bd,gC as be,yC as bf,ue$2 as bg,uf as bh,so$1 as bi,Ht$4 as bj,pb as bk,ka as bl,mW as bm,rr$1 as bn,bC as bo,ry as bp,yn$2 as bq,ya as br,rh as bs,oh as bt,D$1 as bu,Es as bv,Bd as bw,Xg as bx,$g as by,Jw as bz,Hr as c,Yv as c$,O$1 as c0,ut$3 as c1,bn$3 as c2,Re$4 as c3,Z$1 as c4,Qb as c5,eD as c6,Kb as c7,Yb as c8,Yr$1 as c9,vr as cA,Ln$1 as cB,Gn as cC,Un$1 as cD,ln$2 as cE,Dt$2 as cF,Ht$2 as cG,Gt$2 as cH,on$2 as cI,m_ as cJ,ty as cK,Xb as cL,je$1 as cM,Ne$5 as cN,Wt$3 as cO,jt$2 as cP,q$2 as cQ,wt$5 as cR,Ft$5 as cS,$$1 as cT,Tt$6 as cU,Wi$2 as cV,di$2 as cW,De$4 as cX,Pw as cY,pt$3 as cZ,TM as c_,Wr$1 as ca,pn$4 as cb,Zl as cc,Vt$3 as cd,Ac as ce,Qn$2 as cf,hf as cg,fU as ch,Df as ci,fb as cj,tc as ck,V$1 as cl,Ee$1 as cm,ai$4 as cn,nW as co,z3 as cp,nn$2 as cq,zt$3 as cr,Zn$2 as cs,me$3 as ct,Fe$2 as cu,tt$1 as cv,mn$4 as cw,F$2 as cx,Ge$3 as cy,pi$2 as cz,ce$2 as d,dM as d0,fM as d1,xM as d2,At$6 as d3,g as d4,ut$4 as d5,OM as d6,aS as d7,iT as d8,Id as e,ey as f,eC as g,h,ci$3 as i,Yg as j,eT as k,lT as l,ma as m,Zg as n,ot$1 as o,pn$3 as p,Sd as q,ri$3 as r,hy as s,tC as t,ui$2 as u,oT as v,hU as w,xe$1 as x,yb as y,ir$1 as z};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whoz-oss/coday-factory-cockpit",
3
- "version": "0.0.0-workstream-forge.310",
3
+ "version": "0.0.0-workstream-forge.311",
4
4
  "repository": "https://github.com/whoz-oss/coday",
5
5
  "type": "module",
6
6
  "dependencies": {