gns3-server/gns3server/static/web-ui/chunk-3DUTSYEG.js
2026-09-27 19:10:11 +02:00

2946 lines
284 KiB
JavaScript

import{$ as P,$a as O,$c as xe,$e as dt,A as xn,Ab as Bn,Ae as ui,Bb as Vt,Bd as gt,Be as Qt,C as kn,Cb as we,Cc as Gn,Cd as Zn,Ce as fi,D as Cn,Db as Gt,Dd as Jn,De as Be,Ea as d,Eb as p,Ed as et,F as G,Fa as ce,Fb as de,Fd as $t,Fe as pi,G as Z,Ga as Ie,Gb as $,Gd as Ut,Ha as Fn,Hb as se,Hd as Ne,He as q,Ia as ae,Ib as Qe,Jd as ei,Ka as On,L as wn,La as He,Ld as ti,M as $e,Ma as M,Md as ni,Na as B,Oa as I,Od as ii,Oe as bi,R as ut,Ra as _e,Rc as De,S as rt,Sa as ge,Sb as U,T as Tn,Ta as pt,Td as ai,Te as _i,U as Mn,Ua as An,Uc as Wn,Ue as gi,V as te,Va as Ln,Vc as Yn,W as Ae,Wa as Pn,Wc as $n,We as Kt,X as x,Xa as T,Xc as Wt,Xe as he,Y as In,Za as F,Ze as Re,_ as Sn,_c as Ee,_e as vi,a as S,aa as N,ac as zn,af as yi,b as le,ba as C,bb as Bt,be as oi,bf as xt,ca as J,cb as zt,cf as tt,da as r,db as Ht,dc as ye,eb as E,ec as Ke,ef as xi,fb as c,fd as j,ff as ki,g as re,gb as u,gd as Yt,h as Oe,ha as ne,hb as A,hd as Un,hf as Ci,i as f,ia as ie,ib as ke,ic as st,id as lt,j as Ye,ja as Ue,jb as Pe,ka as Dn,kb as jt,kc as Hn,kd as Xe,la as X,le as Ve,ma as be,mc as Y,md as K,me as ri,ne as si,o as vn,oa as g,ob as Se,oc as _,od as ct,oe as li,pa as z,pb as Ce,pc as Te,pd as je,pe as ci,qb as k,qc as jn,qd as qn,qe as qt,r as ze,ra as Q,rb as bt,rd as Qn,re as di,sa as En,sb as y,sd as Kn,ta as qe,tb as H,td as Ze,ua as Le,ub as w,ud as Xn,ue as vt,va as D,vb as ve,vd as me,ve as mi,w as pe,wa as ft,wb as W,wc as Vn,we as hi,xa as Rn,xb as m,xd as Je,xe as yt,y as yn,yb as h,yd as _t,zb as Nn}from"./chunk-G7NALUVX.js";var Da=["tooltip"],Ea=20;var Ra=new C("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let i=r(X);return()=>Je(i,{scrollThrottle:Ea})}}),Fa=new C("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var wi="tooltip-panel",Oa={passive:!0},Aa=8,La=8,Pa=24,Na=200,Ba=(()=>{class i{_elementRef=r(D);_ngZone=r(z);_platform=r(Ee);_ariaDescriber=r(fi);_focusMonitor=r(Ve);_dir=r(xe);_injector=r(X);_viewContainerRef=r(He);_mediaMatcher=r(li);_document=r(be);_renderer=r(ae);_animationsDisabled=q();_defaultOptions=r(Fa,{optional:!0});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=Ti;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=!1;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=Be(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let t=Be(e);this._disabled!==t&&(this._disabled=t,t?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Wt(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Wt(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let t=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(t)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new f;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=Aa}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(x(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(t=>t()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,t){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let n=this._createOverlay(t);this._detach(),this._portal=this._portal||new ct(this._tooltipComponent,this._viewContainerRef);let a=this._tooltipInstance=n.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(x(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(e)}hide(e=this.hideDelay){let t=this._tooltipInstance;t&&(t.isVisible()?t.hide(e):(t._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&o._origin instanceof D)return this._overlayRef;this._detach()}let t=this._injector.get(Yt).getAncestorScrollContainers(this._elementRef),n=`${this._cssClassPrefix}-${wi}`,a=gt(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t).withPopoverLocation("global");return a.positionChanges.pipe(x(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=et(this._injector,{direction:this._dir,positionStrategy:a,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,n]:n,scrollStrategy:this._injector.get(Ra)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(x(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(x(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(x(this._destroyed)).subscribe(o=>{o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(x(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let t=e.getConfig().positionStrategy,n=this._getOrigin(),a=this._getOverlayPosition();t.withPositions([this._addOffset(S(S({},n.main),a.main)),this._addOffset(S(S({},n.fallback),a.fallback))])}_addOffset(e){let t=La,n=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-t:e.originY==="bottom"?e.offsetY=t:e.originX==="start"?e.offsetX=n?-t:t:e.originX==="end"&&(e.offsetX=n?t:-t),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",t=this.position,n;t=="above"||t=="below"?n={originX:"center",originY:t=="above"?"top":"bottom"}:t=="before"||t=="left"&&e||t=="right"&&!e?n={originX:"start",originY:"center"}:(t=="after"||t=="right"&&e||t=="left"&&!e)&&(n={originX:"end",originY:"center"});let{x:a,y:o}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:a,originY:o}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",t=this.position,n;t=="above"?n={overlayX:"center",overlayY:"bottom"}:t=="below"?n={overlayX:"center",overlayY:"top"}:t=="before"||t=="left"&&e||t=="right"&&!e?n={overlayX:"end",overlayY:"center"}:(t=="after"||t=="right"&&e||t=="left"&&!e)&&(n={overlayX:"start",overlayY:"center"});let{x:a,y:o}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:a,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),ce(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e instanceof Set?Array.from(e):e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return this.position==="above"||this.position==="below"?t==="top"?t="bottom":t==="bottom"&&(t="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){let{overlayY:t,originX:n,originY:a}=e,o;if(t==="center"?this._dir&&this._dir.value==="rtl"?o=n==="end"?"left":"right":o=n==="start"?"left":"right":o=t==="bottom"&&a==="top"?"above":"below",o!==this._currentPosition){let l=this._overlayRef;if(l){let v=`${this._cssClassPrefix}-${wi}-`;l.removePanelClass(v+this._currentPosition),l.addPanelClass(v+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",e=>{let t=e.targetTouches?.[0],n=t?{x:t.clientX,y:t.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let a=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,n)},this._defaultOptions?.touchLongPressShowDelay??a)})):this._addListener("mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let t;e.x!==void 0&&e.y!==void 0&&(t=e),this.show(void 0,t)}))}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=!0,!this._isTouchPlatform())this._addListener("mouseleave",e=>{let t=e.relatedTarget;(!t||!this._overlayRef?.overlayElement.contains(t))&&this.hide()}),this._addListener("wheel",e=>{if(this._isTooltipVisible()){let t=this._document.elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t!==n&&!n.contains(t)&&this.hide()}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};this._addListener("touchend",e),this._addListener("touchcancel",e)}}}_addListener(e,t){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,e,t,Oa))}_isTouchPlatform(){let e=this._defaultOptions?.detectHoverCapability;return typeof e=="function"?!e():this._platform.IOS||this._platform.ANDROID?!0:this._platform.isBrowser?!!e&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:!1}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let t=this._elementRef.nativeElement,n=t.style;(e==="on"||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA")&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),(e==="on"||!t.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||ce({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}_overlayEventPredicate=e=>e.type==="keydown"?this._isTooltipVisible()&&e.keyCode===27&&!me(e):!0;static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(t,n){t&2&&p("mat-mdc-tooltip-disabled",n.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return i})(),Ti=(()=>{class i{_changeDetectorRef=r(Y);_elementRef=r(D);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=q();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new f;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>Pa&&e.width>=Na}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let t=this._tooltip.nativeElement,n=this._showAnimation,a=this._hideAnimation;if(t.classList.remove(e?a:n),t.classList.add(e?n:a),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let o=getComputedStyle(t);(o.getPropertyValue("animation-duration")==="0s"||o.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-tooltip-component"]],viewQuery:function(t,n){if(t&1&&W(Da,7),t&2){let a;m(a=h())&&(n._tooltip=a.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(t,n){t&1&&k("mouseleave",function(o){return n._handleMouseLeave(o)})},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(t,n){t&1&&(ke(0,"div",1,0),bt("animationend",function(o){return n._handleAnimationEnd(o)}),ke(2,"div",2),$(3),Pe()()),t&2&&(de(n.tooltipClass),p("mdc-tooltip--multiline",n._isMultiline),d(3),se(n.message))},styles:[`.mat-mdc-tooltip {
position: relative;
transform: scale(0);
display: inline-flex;
}
.mat-mdc-tooltip::before {
content: "";
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: -1;
position: absolute;
}
.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before {
top: -8px;
}
.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before {
bottom: -8px;
}
.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before {
left: -8px;
}
.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before {
right: -8px;
}
.mat-mdc-tooltip._mat-animation-noopable {
animation: none;
transform: scale(1);
}
.mat-mdc-tooltip-surface {
word-break: normal;
overflow-wrap: anywhere;
padding: 4px 8px;
min-width: 40px;
max-width: 200px;
min-height: 24px;
max-height: 40vh;
box-sizing: border-box;
overflow: hidden;
text-align: center;
will-change: transform, opacity;
background-color: var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));
color: var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));
border-radius: var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));
font-family: var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));
font-size: var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));
font-weight: var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));
line-height: var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));
letter-spacing: var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking));
}
.mat-mdc-tooltip-surface::before {
position: absolute;
box-sizing: border-box;
width: 100%;
height: 100%;
top: 0;
left: 0;
border: 1px solid transparent;
border-radius: inherit;
content: "";
pointer-events: none;
}
.mdc-tooltip--multiline .mat-mdc-tooltip-surface {
text-align: left;
}
[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface {
text-align: right;
}
.mat-mdc-tooltip-panel {
line-height: normal;
}
.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive {
pointer-events: none;
}
@keyframes mat-mdc-tooltip-show {
0% {
opacity: 0;
transform: scale(0.8);
}
100% {
opacity: 1;
transform: scale(1);
}
}
@keyframes mat-mdc-tooltip-hide {
0% {
opacity: 1;
transform: scale(1);
}
100% {
opacity: 0;
transform: scale(0.8);
}
}
.mat-mdc-tooltip-show {
animation: mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards;
}
.mat-mdc-tooltip-hide {
animation: mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards;
}
`],encapsulation:2,changeDetection:0})}return i})();var _s=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[mi,Ne,j,Xe]})}return i})();var za=["mat-menu-item",""],Ha=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],ja=["mat-icon, [matMenuItemIcon]","*"];function Va(i,s){i&1&&(Ue(),c(0,"svg",2),A(1,"polygon",3),u())}var Ga=["*"];function Wa(i,s){if(i&1){let e=Se();ke(0,"div",0),bt("click",function(){ne(e);let n=y();return ie(n.closed.emit("click"))})("animationstart",function(n){ne(e);let a=y();return ie(a._onAnimationStart(n.animationName))})("animationend",function(n){ne(e);let a=y();return ie(a._onAnimationDone(n.animationName))})("animationcancel",function(n){ne(e);let a=y();return ie(a._onAnimationDone(n.animationName))}),ke(1,"div",1),w(2),Pe()()}if(i&2){let e=y();de(e._classList),p("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),Ce("id",e.panelId),T("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var Jt=new C("MAT_MENU_PANEL"),Zt=(()=>{class i{_elementRef=r(D);_document=r(be);_focusMonitor=r(Ve);_parentMenu=r(Jt,{optional:!0});_changeDetectorRef=r(Y);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new f;_focused=new f;_highlighted=!1;_triggersSubmenu=!1;constructor(){r(De).load(Re),this._parentMenu?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let n=0;n<t.length;n++)t[n].remove();return e.textContent?.trim()||""}_setHighlighted(e){this._highlighted=e,this._changeDetectorRef.markForCheck()}_setTriggersSubmenu(e){this._triggersSubmenu=e,this._changeDetectorRef.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-focus-indicator"],hostVars:8,hostBindings:function(t,n){t&1&&k("click",function(o){return n._checkDisabled(o)})("mouseenter",function(){return n._handleMouseEnter()}),t&2&&(T("role",n.role)("tabindex",n._getTabIndex())("aria-disabled",n.disabled)("disabled",n.disabled||null),p("mat-mdc-menu-item-highlighted",n._highlighted)("mat-mdc-menu-item-submenu-trigger",n._triggersSubmenu))},inputs:{role:"role",disabled:[2,"disabled","disabled",_],disableRipple:[2,"disableRipple","disableRipple",_]},exportAs:["matMenuItem"],attrs:za,ngContentSelectors:ja,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(t,n){t&1&&(H(Ha),w(0),c(1,"span",0),w(2,1),u(),A(3,"div",1),F(4,Va,2,0,":svg:svg",2)),t&2&&(d(3),E("matRippleDisabled",n.disableRipple||n.disabled)("matRippleTrigger",n._getHostElement()),d(),O(n._triggersSubmenu?4:-1))},dependencies:[he],encapsulation:2,changeDetection:0})}return i})();var Mi=new C("MatMenuContent"),Ws=(()=>{class i{_template=r(Ie);_appRef=r(Ln);_injector=r(X);_viewContainerRef=r(He);_document=r(be);_changeDetectorRef=r(Y);_portal;_outlet;_attached=new f;constructor(){}attach(e={}){this._portal||(this._portal=new je(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Qn(this._document.createElement("div"),this._appRef,this._injector));let t=this._template.elementRef.nativeElement;t.parentNode.insertBefore(this._outlet.outletElement,t),this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,e),this._attached.next()}detach(){this._portal?.isAttached&&this._portal.detach()}ngOnDestroy(){this.detach(),this._outlet?.dispose()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["ng-template","matMenuContent",""]],features:[U([{provide:Mi,useExisting:i}])]})}return i})(),Ya=new C("mat-menu-default-options",{providedIn:"root",factory:()=>({overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"})}),Xt="_mat-menu-enter",kt="_mat-menu-exit",Ct=(()=>{class i{_elementRef=r(D);_changeDetectorRef=r(Y);_injector=r(X);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=q();_allItems;_directDescendantItems=new ft;_classList={};_panelAnimationState="void";_animationDone=new f;_isAnimating=Q(!1);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger=!1;hasBackdrop;set panelClass(e){let t=this._previousPanelClass,n=S({},this._classList);t&&t.length&&t.split(" ").forEach(a=>{n[a]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(a=>{n[a]=!0}),this._elementRef.nativeElement.className=""),this._classList=n}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new g;close=this.closed;panelId=r(K).getId("mat-menu-panel-");constructor(){let e=r(Ya);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new yt(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(te(this._directDescendantItems),Ae(e=>G(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let t=this._keyManager;if(this._panelAnimationState==="enter"&&t.activeItem?._hasFocus()){let n=e.toArray(),a=Math.max(0,Math.min(n.length-1,t.activeItemIndex||0));n[a]&&!n[a].disabled?t.setActiveItem(a):t.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(te(this._directDescendantItems),Ae(t=>G(...t.map(n=>n._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let t=e.keyCode,n=this._keyManager;switch(t){case 27:me(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(t===38||t===40)&&n.setFocusOrigin("keyboard"),n.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=ce(()=>{let t=this._resolvePanel();if(!t||!t.contains(document.activeElement)){let n=this._keyManager;n.setFocusOrigin(e).setFirstItemActive(),!n.activeItem&&t&&t.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,t=this.yPosition){this._classList=le(S({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":t==="above","mat-menu-below":t==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let t=e===kt;(t||e===Xt)&&(t&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(t?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===Xt||e===kt)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let t=this._resolvePanel();t&&(t.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(kt),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?Xt:kt)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(te(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-menu"]],contentQueries:function(t,n,a){if(t&1&&ve(a,Mi,5)(a,Zt,5)(a,Zt,4),t&2){let o;m(o=h())&&(n.lazyContent=o.first),m(o=h())&&(n._allItems=o),m(o=h())&&(n.items=o)}},viewQuery:function(t,n){if(t&1&&W(Ie,5),t&2){let a;m(a=h())&&(n.templateRef=a.first)}},hostVars:3,hostBindings:function(t,n){t&2&&T("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",_],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:_(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[U([{provide:Jt,useExisting:i}])],ngContentSelectors:Ga,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(t,n){t&1&&(H(),pt(0,Wa,3,12,"ng-template"))},styles:[`mat-menu {
display: none;
}
.mat-mdc-menu-content {
margin: 0;
padding: 8px 0;
outline: 0;
}
.mat-mdc-menu-content,
.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
flex: 1;
white-space: normal;
font-family: var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));
line-height: var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));
font-size: var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));
letter-spacing: var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));
font-weight: var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight));
}
@keyframes _mat-menu-enter {
from {
opacity: 0;
transform: scale(0.8);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes _mat-menu-exit {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
.mat-mdc-menu-panel {
min-width: 112px;
max-width: 280px;
overflow: auto;
box-sizing: border-box;
outline: 0;
animation: _mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);
border-radius: var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));
background-color: var(--mat-menu-container-color, var(--mat-sys-surface-container));
box-shadow: var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));
will-change: transform, opacity;
}
.mat-mdc-menu-panel.mat-menu-panel-exit-animation {
animation: _mat-menu-exit 100ms 25ms linear forwards;
}
.mat-mdc-menu-panel.mat-menu-panel-animations-disabled {
animation: none;
}
.mat-mdc-menu-panel.mat-menu-panel-animating {
pointer-events: none;
}
.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty) {
display: none;
}
@media (forced-colors: active) {
.mat-mdc-menu-panel {
outline: solid 1px;
}
}
.mat-mdc-menu-panel .mat-divider {
border-top-color: var(--mat-menu-divider-color, var(--mat-sys-surface-variant));
margin-bottom: var(--mat-menu-divider-bottom-spacing, 8px);
margin-top: var(--mat-menu-divider-top-spacing, 8px);
}
.mat-mdc-menu-item {
display: flex;
position: relative;
align-items: center;
justify-content: flex-start;
overflow: hidden;
padding: 0;
cursor: pointer;
width: 100%;
text-align: left;
box-sizing: border-box;
color: inherit;
font-size: inherit;
background: none;
text-decoration: none;
margin: 0;
min-height: 48px;
padding-left: var(--mat-menu-item-leading-spacing, 12px);
padding-right: var(--mat-menu-item-trailing-spacing, 12px);
-webkit-user-select: none;
user-select: none;
cursor: pointer;
outline: none;
border: none;
-webkit-tap-highlight-color: transparent;
}
.mat-mdc-menu-item::-moz-focus-inner {
border: 0;
}
[dir=rtl] .mat-mdc-menu-item {
padding-left: var(--mat-menu-item-trailing-spacing, 12px);
padding-right: var(--mat-menu-item-leading-spacing, 12px);
}
.mat-mdc-menu-item:has(.material-icons, mat-icon, [matButtonIcon]) {
padding-left: var(--mat-menu-item-with-icon-leading-spacing, 12px);
padding-right: var(--mat-menu-item-with-icon-trailing-spacing, 12px);
}
[dir=rtl] .mat-mdc-menu-item:has(.material-icons, mat-icon, [matButtonIcon]) {
padding-left: var(--mat-menu-item-with-icon-trailing-spacing, 12px);
padding-right: var(--mat-menu-item-with-icon-leading-spacing, 12px);
}
.mat-mdc-menu-item, .mat-mdc-menu-item:visited, .mat-mdc-menu-item:link {
color: var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface));
}
.mat-mdc-menu-item .mat-icon-no-color,
.mat-mdc-menu-item .mat-mdc-menu-submenu-icon {
color: var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-menu-item[disabled] {
cursor: default;
opacity: 0.38;
}
.mat-mdc-menu-item[disabled]::after {
display: block;
position: absolute;
content: "";
top: 0;
left: 0;
bottom: 0;
right: 0;
}
.mat-mdc-menu-item:focus {
outline: 0;
}
.mat-mdc-menu-item .mat-icon {
flex-shrink: 0;
margin-right: var(--mat-menu-item-spacing, 12px);
height: var(--mat-menu-item-icon-size, 24px);
width: var(--mat-menu-item-icon-size, 24px);
}
[dir=rtl] .mat-mdc-menu-item {
text-align: right;
}
[dir=rtl] .mat-mdc-menu-item .mat-icon {
margin-right: 0;
margin-left: var(--mat-menu-item-spacing, 12px);
}
.mat-mdc-menu-item:not([disabled]):hover {
background-color: var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));
}
.mat-mdc-menu-item:not([disabled]).cdk-program-focused, .mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused, .mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted {
background-color: var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));
}
@media (forced-colors: active) {
.mat-mdc-menu-item {
margin-top: 1px;
}
}
.mat-mdc-menu-submenu-icon {
width: var(--mat-menu-item-icon-size, 24px);
height: 10px;
fill: currentColor;
padding-left: var(--mat-menu-item-spacing, 12px);
}
[dir=rtl] .mat-mdc-menu-submenu-icon {
padding-right: var(--mat-menu-item-spacing, 12px);
padding-left: 0;
}
[dir=rtl] .mat-mdc-menu-submenu-icon polygon {
transform: scaleX(-1);
transform-origin: center;
}
@media (forced-colors: active) {
.mat-mdc-menu-submenu-icon {
fill: CanvasText;
}
}
.mat-mdc-menu-item .mat-mdc-menu-ripple {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
pointer-events: none;
}
`],encapsulation:2,changeDetection:0})}return i})(),$a=new C("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let i=r(X);return()=>Je(i)}});var nt=new WeakMap,Ua=(()=>{class i{_canHaveBackdrop;_element=r(D);_viewContainerRef=r(He);_menuItemInstance=r(Zt,{optional:!0,self:!0});_dir=r(xe,{optional:!0});_focusMonitor=r(Ve);_ngZone=r(z);_injector=r(X);_scrollStrategy=r($a);_changeDetectorRef=r(Y);_animationsDisabled=q();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=re.EMPTY;_menuCloseSubscription=re.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._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let t=r(Jt,{optional:!0});this._parentMaterialMenu=t instanceof Ct?t:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&nt.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 n=nt.get(t);nt.set(t,this),n&&n!==this&&n._closeMenu();let a=this._createOverlay(t),o=a.getConfig(),l=o.positionStrategy;this._setPosition(t,l),this._canHaveBackdrop?o.hasBackdrop=t.hasBackdrop==null?!this._triggersSubmenu():t.hasBackdrop:o.hasBackdrop=t.hasBackdrop??!1,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(!0),t instanceof Ct&&(t._setIsOpen(!0),t._directDescendantItems.changes.pipe(x(t.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}_destroyMenu(e){let t=this._overlayRef,n=this._menu;!t||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),n instanceof Ct&&this._ownsMenu(n)?(this._pendingRemoval=n._animationDone.pipe($e(1)).subscribe(()=>{t.detach(),nt.has(n)||n.lazyContent?.detach()}),n._setIsOpen(!1)):(t.detach(),n?.lazyContent?.detach()),n&&this._ownsMenu(n)&&nt.delete(n),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_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=et(this._injector,t),this._overlayRef.keydownEvents().subscribe(n=>{this._menu instanceof Ct&&this._menu._handleKeydown(n)})}return this._overlayRef}_getOverlayConfig(e){return new _t({positionStrategy:gt(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(n=>{this._ngZone.run(()=>{let a=n.connectionPair.overlayX==="start"?"after":"before",o=n.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(a,o)})})}_setPosition(e,t){let[n,a]=e.xPosition==="before"?["end","start"]:["start","end"],[o,l]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[v,b]=[o,l],[V,ue]=[n,a],fe=0;if(this._triggersSubmenu()){if(ue=n=e.xPosition==="before"?"start":"end",a=V=n==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let R=this._parentMaterialMenu.items.first;this._parentInnerPadding=R?R._getHostElement().offsetTop:0}fe=o==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(v=o==="top"?"bottom":"top",b=l==="top"?"bottom":"top");t.withPositions([{originX:n,originY:v,overlayX:V,overlayY:o,offsetY:fe},{originX:a,originY:v,overlayX:ue,overlayY:o,offsetY:fe},{originX:n,originY:b,overlayX:V,overlayY:l,offsetY:-fe},{originX:a,originY:b,overlayX:ue,overlayY:l,offsetY:-fe}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),t=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:ze(),a=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Z(o=>this._menuOpen&&o!==this._menuItemInstance)):ze();return G(e,n,a,t)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new je(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return nt.get(e)===this}_triggerIsAriaDisabled(){return _(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(t){On()};static \u0275dir=I({type:i})}return i})(),Ys=(()=>{class i extends Ua{_cleanupTouchstart;_hoverSubscription=re.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=!0;menuOpened=new g;onMenuOpen=this.menuOpened;menuClosed=new g;onMenuClose=this.menuClosed;constructor(){super(!0);let e=r(ae);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",t=>{$n(t)||(this._openedBy="touch")},{passive:!0})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(!0)}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){Yn(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(!1))}))}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(t,n){t&1&&k("click",function(o){return n._handleClick(o)})("mousedown",function(o){return n._handleMousedown(o)})("keydown",function(o){return n._handleKeydown(o)}),t&2&&T("aria-haspopup",n.menu?"menu":null)("aria-expanded",n.menuOpen)("aria-controls",n.menuOpen?n.menu==null?null:n.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:[_e]})}return i})();var $s=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[dt,Ne,j,Xe]})}return i})();var qa=["*",[["mat-option"],["ng-container"]]],Qa=["*","mat-option, ng-container"],Ka=["text"],Xa=[[["mat-icon"]],"*"],Za=["mat-icon","*"];function Ja(i,s){if(i&1&&A(0,"mat-pseudo-checkbox",1),i&2){let e=y();E("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function eo(i,s){if(i&1&&A(0,"mat-pseudo-checkbox",3),i&2){let e=y();E("disabled",e.disabled)}}function to(i,s){if(i&1&&(c(0,"span",4),$(1),u()),i&2){let e=y();d(),Qe("(",e.group.label,")")}}var St=new C("MAT_OPTION_PARENT_COMPONENT"),Dt=new C("MatOptgroup"),no=(()=>{class i{label;disabled=!1;_labelId=r(K).getId("mat-optgroup-label-");_inert;constructor(){let e=r(St,{optional:!0});this._inert=e?.inertGroups??!1}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(t,n){t&2&&T("role",n._inert?null:"group")("aria-disabled",n._inert?null:n.disabled.toString())("aria-labelledby",n._inert?null:n._labelId)},inputs:{label:"label",disabled:[2,"disabled","disabled",_]},exportAs:["matOptgroup"],features:[U([{provide:Dt,useExisting:i}])],ngContentSelectors:Qa,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(t,n){t&1&&(H(qa),ke(0,"span",0)(1,"span",1),$(2),w(3),Pe()(),w(4,1)),t&2&&(p("mdc-list-item--disabled",n.disabled),Ce("id",n._labelId),d(2),Qe("",n.label," "))},styles:[`.mat-mdc-optgroup {
color: var(--mat-optgroup-label-text-color, var(--mat-sys-on-surface-variant));
font-family: var(--mat-optgroup-label-text-font, var(--mat-sys-title-small-font));
line-height: var(--mat-optgroup-label-text-line-height, var(--mat-sys-title-small-line-height));
font-size: var(--mat-optgroup-label-text-size, var(--mat-sys-title-small-size));
letter-spacing: var(--mat-optgroup-label-text-tracking, var(--mat-sys-title-small-tracking));
font-weight: var(--mat-optgroup-label-text-weight, var(--mat-sys-title-small-weight));
}
.mat-mdc-optgroup-label {
display: flex;
position: relative;
align-items: center;
justify-content: flex-start;
overflow: hidden;
min-height: 48px;
padding: 0 16px;
outline: none;
}
.mat-mdc-optgroup-label.mdc-list-item--disabled {
opacity: 0.38;
}
.mat-mdc-optgroup-label .mdc-list-item__primary-text {
font-size: inherit;
font-weight: inherit;
letter-spacing: inherit;
line-height: inherit;
font-family: inherit;
text-decoration: inherit;
text-transform: inherit;
white-space: normal;
color: inherit;
}
`],encapsulation:2,changeDetection:0})}return i})(),en=class{source;isUserInput;constructor(s,e=!1){this.source=s,this.isUserInput=e}},Et=(()=>{class i{_element=r(D);_changeDetectorRef=r(Y);_parent=r(St,{optional:!0});group=r(Dt,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=r(K).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=Q(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new g;_text;_stateChanges=new f;constructor(){let e=r(De);e.load(Re),e.load(si),this._signalDisableRipple=!!this._parent&&An(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,t){let n=this._getHostElement();typeof n.focus=="function"&&n.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!me(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new en(this,e))}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-option"]],viewQuery:function(t,n){if(t&1&&W(Ka,7),t&2){let a;m(a=h())&&(n._text=a.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,n){t&1&&k("click",function(){return n._selectViaInteraction()})("keydown",function(o){return n._handleKeydown(o)}),t&2&&(Ce("id",n.id),T("aria-selected",n.selected)("aria-disabled",n.disabled.toString()),p("mdc-list-item--selected",n.selected)("mat-mdc-option-multiple",n.multiple)("mat-mdc-option-active",n.active)("mdc-list-item--disabled",n.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",_]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Za,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,n){t&1&&(H(Xa),F(0,Ja,1,2,"mat-pseudo-checkbox",1),w(1),c(2,"span",2,0),w(4,1),u(),F(5,eo,1,1,"mat-pseudo-checkbox",3),F(6,to,2,1,"span",4),A(7,"div",5)),t&2&&(O(n.multiple?0:-1),d(5),O(!n.multiple&&n.selected&&!n.hideSingleSelectionIndicator?5:-1),d(),O(n.group&&n.group._inert?6:-1),d(),E("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},dependencies:[Ci,he],styles:[`.mat-mdc-option {
-webkit-user-select: none;
user-select: none;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
display: flex;
position: relative;
align-items: center;
justify-content: flex-start;
overflow: hidden;
min-height: 48px;
padding: 0 16px;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
color: var(--mat-option-label-text-color, var(--mat-sys-on-surface));
font-family: var(--mat-option-label-text-font, var(--mat-sys-label-large-font));
line-height: var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));
font-size: var(--mat-option-label-text-size, var(--mat-sys-body-large-size));
letter-spacing: var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));
font-weight: var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight));
}
.mat-mdc-option:hover:not(.mdc-list-item--disabled) {
background-color: var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));
}
.mat-mdc-option:focus.mdc-list-item, .mat-mdc-option.mat-mdc-option-active.mdc-list-item {
background-color: var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));
outline: 0;
}
.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active, .mat-mdc-option-multiple, :focus, :hover) {
background-color: var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container));
}
.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active, .mat-mdc-option-multiple, :focus, :hover) .mdc-list-item__primary-text {
color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container));
}
.mat-mdc-option .mat-pseudo-checkbox {
--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container));
}
.mat-mdc-option.mdc-list-item {
align-items: center;
background: transparent;
}
.mat-mdc-option.mdc-list-item--disabled {
cursor: default;
pointer-events: none;
}
.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox, .mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text, .mat-mdc-option.mdc-list-item--disabled > mat-icon {
opacity: 0.38;
}
.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple) {
padding-left: 32px;
}
[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple) {
padding-left: 16px;
padding-right: 32px;
}
.mat-mdc-option .mat-icon,
.mat-mdc-option .mat-pseudo-checkbox-full {
margin-right: 16px;
flex-shrink: 0;
}
[dir=rtl] .mat-mdc-option .mat-icon,
[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full {
margin-right: 0;
margin-left: 16px;
}
.mat-mdc-option .mat-pseudo-checkbox-minimal {
margin-left: 16px;
flex-shrink: 0;
}
[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal {
margin-right: 16px;
margin-left: 0;
}
.mat-mdc-option .mat-mdc-option-ripple {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
pointer-events: none;
}
.mat-mdc-option .mdc-list-item__primary-text {
white-space: normal;
font-size: inherit;
font-weight: inherit;
letter-spacing: inherit;
line-height: inherit;
font-family: inherit;
text-decoration: inherit;
text-transform: inherit;
margin-right: auto;
}
[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text {
margin-right: 0;
margin-left: auto;
}
@media (forced-colors: active) {
.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after {
content: "";
position: absolute;
top: 50%;
right: 16px;
transform: translateY(-50%);
width: 10px;
height: 0;
border-bottom: solid 10px;
border-radius: 10px;
}
[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after {
right: auto;
left: 16px;
}
}
.mat-mdc-option-multiple {
--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent);
}
.mat-mdc-option-active .mat-focus-indicator::before {
content: "";
}
`],encapsulation:2,changeDetection:0})}return i})();function Ii(i,s,e){if(e.length){let t=s.toArray(),n=e.toArray(),a=0;for(let o=0;o<i+1;o++)t[o].group&&t[o].group===n[a]&&a++;return a}return 0}function Si(i,s,e,t){return i<e?i:i+s>e+t?Math.max(0,i-t+s):e}var Di=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[j]})}return i})();var Rt=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[dt,Di,Et,j]})}return i})();var tn=class{_box;_destroyed=new f;_resizeSubject=new f;_resizeObserver;_elementObservables=new Map;constructor(s){this._box=s,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(s){return this._elementObservables.has(s)||this._elementObservables.set(s,new Oe(e=>{let t=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(s,{box:this._box}),()=>{this._resizeObserver?.unobserve(s),t.unsubscribe(),this._elementObservables.delete(s)}}).pipe(Z(e=>e.some(t=>t.target===s)),Tn({bufferSize:1,refCount:!0}),x(this._destroyed))),this._elementObservables.get(s)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},Ft=(()=>{class i{_cleanupErrorListener;_observers=new Map;_ngZone=r(z);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,t){let n=t?.box||"content-box";return this._observers.has(n)||this._observers.set(n,new tn(n)),this._observers.get(n).observe(e)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var io=["notch"],ao=["matFormFieldNotchedOutline",""],oo=["*"],Ei=["iconPrefixContainer"],Ri=["textPrefixContainer"],Fi=["iconSuffixContainer"],Oi=["textSuffixContainer"],ro=["textField"],so=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],lo=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function co(i,s){i&1&&A(0,"span",21)}function mo(i,s){if(i&1&&(c(0,"label",20),w(1,1),F(2,co,1,0,"span",21),u()),i&2){let e=y(2);E("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),T("for",e._control.disableAutomaticLabeling?null:e._control.id),d(2),O(!e.hideRequiredMarker&&e._control.required?2:-1)}}function ho(i,s){if(i&1&&F(0,mo,3,5,"label",20),i&2){let e=y();O(e._hasFloatingLabel()?0:-1)}}function uo(i,s){i&1&&A(0,"div",7)}function fo(i,s){}function po(i,s){if(i&1&&ge(0,fo,0,0,"ng-template",13),i&2){y(2);let e=we(1);E("ngTemplateOutlet",e)}}function bo(i,s){if(i&1&&(c(0,"div",9),F(1,po,1,1,null,13),u()),i&2){let e=y();E("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),d(),O(e._forceDisplayInfixLabel()?-1:1)}}function _o(i,s){i&1&&(c(0,"div",10,2),w(2,2),u())}function go(i,s){i&1&&(c(0,"div",11,3),w(2,3),u())}function vo(i,s){}function yo(i,s){if(i&1&&ge(0,vo,0,0,"ng-template",13),i&2){y();let e=we(1);E("ngTemplateOutlet",e)}}function xo(i,s){i&1&&(c(0,"div",14,4),w(2,4),u())}function ko(i,s){i&1&&(c(0,"div",15,5),w(2,5),u())}function Co(i,s){i&1&&A(0,"div",16)}function wo(i,s){i&1&&(c(0,"div",18),w(1,6),u())}function To(i,s){if(i&1&&(c(0,"mat-hint",22),$(1),u()),i&2){let e=y(2);E("id",e._hintLabelId),d(),se(e.hintLabel)}}function Mo(i,s){if(i&1&&(c(0,"div",19),F(1,To,2,2,"mat-hint",22),w(2,7),A(3,"div",23),w(4,8),u()),i&2){let e=y();d(),O(e.hintLabel?1:-1)}}var nn=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["mat-label"]]})}return i})(),Hi=new C("MatError"),Io=(()=>{class i{id=r(K).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(t,n){t&2&&Ce("id",n.id)},inputs:{id:"id"},features:[U([{provide:Hi,useExisting:i}])]})}return i})(),an=(()=>{class i{align="start";id=r(K).getId("mat-mdc-hint-");static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(t,n){t&2&&(Ce("id",n.id),T("align",null),p("mat-mdc-form-field-hint-end",n.align==="end"))},inputs:{align:"align",id:"id"}})}return i})(),ji=new C("MatPrefix"),So=(()=>{class i{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[U([{provide:ji,useExisting:i}])]})}return i})(),Vi=new C("MatSuffix"),Do=(()=>{class i{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[U([{provide:Vi,useExisting:i}])]})}return i})(),Gi=new C("FloatingLabelParent"),Ai=(()=>{class i{_elementRef=r(D);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=r(Ft);_ngZone=r(z);_parent=r(Gi);_resizeSubscription=new re;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return Eo(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(t,n){t&2&&p("mdc-floating-label--float-above",n.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return i})();function Eo(i){let s=i;if(s.offsetParent!==null)return s.scrollWidth;let e=s.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let t=e.scrollWidth;return e.remove(),t}var Li="mdc-line-ripple--active",Ot="mdc-line-ripple--deactivating",Pi=(()=>{class i{_elementRef=r(D);_cleanupTransitionEnd;constructor(){let e=r(z),t=r(ae);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=t.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Ot),e.add(Li)}deactivate(){this._elementRef.nativeElement.classList.add(Ot)}_handleTransitionEnd=e=>{let t=this._elementRef.nativeElement.classList,n=t.contains(Ot);e.propertyName==="opacity"&&n&&t.remove(Li,Ot)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return i})(),Ni=(()=>{class i{_elementRef=r(D);_ngZone=r(z);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,t=e.querySelector(".mdc-floating-label");t?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(t.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>t.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let t=this._notch.nativeElement;!this.open||!e?t.style.width="":t.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(t,n){if(t&1&&W(io,5),t&2){let a;m(a=h())&&(n._notch=a.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(t,n){t&2&&p("mdc-notched-outline--notched",n.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:ao,ngContentSelectors:oo,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(t,n){t&1&&(H(),jt(0,"div",1),ke(1,"div",2,0),w(3),Pe(),jt(4,"div",3))},encapsulation:2,changeDetection:0})}return i})(),on=(()=>{class i{value=null;stateChanges;id;placeholder;ngControl=null;focused=!1;empty=!1;shouldLabelFloat=!1;required=!1;disabled=!1;errorState=!1;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i})}return i})();var rn=new C("MatFormField"),Ro=new C("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Bi="fill",Fo="auto",zi="fixed",Oo="translateY(-50%)",Wi=(()=>{class i{_elementRef=r(D);_changeDetectorRef=r(Y);_platform=r(Ee);_idGenerator=r(K);_ngZone=r(z);_defaults=r(Ro,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=st("iconPrefixContainer");_textPrefixContainerSignal=st("textPrefixContainer");_iconSuffixContainerSignal=st("iconSuffixContainer");_textSuffixContainerSignal=st("textSuffixContainer");_prefixSuffixContainers=ye(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=Hn(nn);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Be(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||Fo}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let t=e||this._defaults?.appearance||Bi;this._appearanceSignal.set(t)}_appearanceSignal=Q(Bi);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||zi}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||zi}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new f;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=q();constructor(){let e=this._defaults,t=r(xe);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),En(()=>this._currentDirection=t.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=ye(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let t=this._control,n="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(n+e.controlType),t.controlType&&this._elementRef.nativeElement.classList.add(n+t.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=t.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=t.stateChanges.pipe(te([void 0,void 0]),pe(()=>[t.errorState,t.userAriaDescribedBy]),ut(),Z(([[a,o],[l,v]])=>a!==l||o!==v)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),t.ngControl&&t.ngControl.valueChanges&&(this._valueChanges=t.ngControl.valueChanges.pipe(x(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),G(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e)}_syncOutlineLabelOffset(){jn({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=ye(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let t=this._control?this._control.ngControl:null;return t&&t[e]}_getSubscriptMessageType(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let a=this._hintChildren?this._hintChildren.find(l=>l.align==="start"):null,o=this._hintChildren?this._hintChildren.find(l=>l.align==="end"):null;a?e.push(a.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(a=>a.id));let t=this._control.describedByIds,n;if(t){let a=this._describedByIds||e;n=e.concat(t.filter(o=>o&&!a.includes(o)))}else n=e;this._control.setDescribedByIds(n),this._describedByIds=e}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,t=this._textPrefixContainer?.nativeElement,n=this._iconSuffixContainer?.nativeElement,a=this._textSuffixContainer?.nativeElement,o=e?.getBoundingClientRect().width??0,l=t?.getBoundingClientRect().width??0,v=n?.getBoundingClientRect().width??0,b=a?.getBoundingClientRect().width??0,V=this._currentDirection==="rtl"?"-1":"1",ue=`${o+l}px`,R=`calc(${V} * (${ue} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,oe=`var(--mat-mdc-form-field-label-transform, ${Oo} translateX(${R}))`,ht=o+l+v+b;return[oe,ht]}_writeOutlinedLabelStyles(e){if(e!==null){let[t,n]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=t),n!==null&&this._notchedOutline?._setMaxWidth(n)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-form-field"]],contentQueries:function(t,n,a){if(t&1&&(Nn(a,n._labelChild,nn,5),ve(a,on,5)(a,ji,5)(a,Vi,5)(a,Hi,5)(a,an,5)),t&2){Vt();let o;m(o=h())&&(n._formFieldControl=o.first),m(o=h())&&(n._prefixChildren=o),m(o=h())&&(n._suffixChildren=o),m(o=h())&&(n._errorChildren=o),m(o=h())&&(n._hintChildren=o)}},viewQuery:function(t,n){if(t&1&&(Bn(n._iconPrefixContainerSignal,Ei,5)(n._textPrefixContainerSignal,Ri,5)(n._iconSuffixContainerSignal,Fi,5)(n._textSuffixContainerSignal,Oi,5),W(ro,5)(Ei,5)(Ri,5)(Fi,5)(Oi,5)(Ai,5)(Ni,5)(Pi,5)),t&2){Vt(4);let a;m(a=h())&&(n._textField=a.first),m(a=h())&&(n._iconPrefixContainer=a.first),m(a=h())&&(n._textPrefixContainer=a.first),m(a=h())&&(n._iconSuffixContainer=a.first),m(a=h())&&(n._textSuffixContainer=a.first),m(a=h())&&(n._floatingLabel=a.first),m(a=h())&&(n._notchedOutline=a.first),m(a=h())&&(n._lineRipple=a.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(t,n){t&2&&p("mat-mdc-form-field-label-always-float",n._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",n._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",n._hasIconSuffix)("mat-form-field-invalid",n._control.errorState)("mat-form-field-disabled",n._control.disabled)("mat-form-field-autofilled",n._control.autofilled)("mat-form-field-appearance-fill",n.appearance=="fill")("mat-form-field-appearance-outline",n.appearance=="outline")("mat-form-field-hide-placeholder",n._hasFloatingLabel()&&!n._shouldLabelFloat())("mat-primary",n.color!=="accent"&&n.color!=="warn")("mat-accent",n.color==="accent")("mat-warn",n.color==="warn")("ng-untouched",n._shouldForward("untouched"))("ng-touched",n._shouldForward("touched"))("ng-pristine",n._shouldForward("pristine"))("ng-dirty",n._shouldForward("dirty"))("ng-valid",n._shouldForward("valid"))("ng-invalid",n._shouldForward("invalid"))("ng-pending",n._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[U([{provide:rn,useExisting:i},{provide:Gi,useExisting:i}])],ngContentSelectors:lo,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],["aria-atomic","true","aria-live","polite",1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(t,n){if(t&1&&(H(so),ge(0,ho,1,1,"ng-template",null,0,zn),c(2,"div",6,1),k("click",function(o){return n._control.onContainerClick(o)}),F(4,uo,1,0,"div",7),c(5,"div",8),F(6,bo,2,2,"div",9),F(7,_o,3,0,"div",10),F(8,go,3,0,"div",11),c(9,"div",12),F(10,yo,1,1,null,13),w(11),u(),F(12,xo,3,0,"div",14),F(13,ko,3,0,"div",15),u(),F(14,Co,1,0,"div",16),u(),c(15,"div",17),F(16,wo,2,0,"div",18)(17,Mo,5,1,"div",19),u()),t&2){let a;d(2),p("mdc-text-field--filled",!n._hasOutline())("mdc-text-field--outlined",n._hasOutline())("mdc-text-field--no-label",!n._hasFloatingLabel())("mdc-text-field--disabled",n._control.disabled)("mdc-text-field--invalid",n._control.errorState),d(2),O(!n._hasOutline()&&!n._control.disabled?4:-1),d(2),O(n._hasOutline()?6:-1),d(),O(n._hasIconPrefix?7:-1),d(),O(n._hasTextPrefix?8:-1),d(2),O(!n._hasOutline()||n._forceDisplayInfixLabel()?10:-1),d(2),O(n._hasTextSuffix?12:-1),d(),O(n._hasIconSuffix?13:-1),d(),O(n._hasOutline()?-1:14),d(),p("mat-mdc-form-field-subscript-dynamic-size",n.subscriptSizing==="dynamic");let o=n._getSubscriptMessageType();d(),O((a=o)==="error"?16:a==="hint"?17:-1)}},dependencies:[Ai,Ni,Vn,Pi,an],styles:[`.mdc-text-field {
display: inline-flex;
align-items: baseline;
padding: 0 16px;
position: relative;
box-sizing: border-box;
overflow: hidden;
will-change: opacity, transform, color;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.mdc-text-field__input {
width: 100%;
min-width: 0;
border: none;
border-radius: 0;
background: none;
padding: 0;
-moz-appearance: none;
-webkit-appearance: none;
height: 28px;
}
.mdc-text-field__input::-webkit-calendar-picker-indicator, .mdc-text-field__input::-webkit-search-cancel-button {
display: none;
}
.mdc-text-field__input::-ms-clear {
display: none;
}
.mdc-text-field__input:focus {
outline: none;
}
.mdc-text-field__input:invalid {
box-shadow: none;
}
.mdc-text-field__input::placeholder {
opacity: 0;
}
.mdc-text-field__input::-moz-placeholder {
opacity: 0;
}
.mdc-text-field__input::-webkit-input-placeholder {
opacity: 0;
}
.mdc-text-field__input:-ms-input-placeholder {
opacity: 0;
}
.mdc-text-field--no-label .mdc-text-field__input::placeholder, .mdc-text-field--focused .mdc-text-field__input::placeholder {
opacity: 1;
}
.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder, .mdc-text-field--focused .mdc-text-field__input::-moz-placeholder {
opacity: 1;
}
.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder, .mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder {
opacity: 1;
}
.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder, .mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder {
opacity: 1;
}
.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder {
opacity: 0;
}
.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder {
opacity: 0;
}
.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder {
opacity: 0;
}
.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder {
opacity: 0;
}
.mdc-text-field--outlined .mdc-text-field__input, .mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input {
height: 100%;
}
.mdc-text-field--outlined .mdc-text-field__input {
display: flex;
border: none !important;
background-color: transparent;
}
.mdc-text-field--disabled .mdc-text-field__input {
pointer-events: auto;
}
.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input {
color: var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));
caret-color: var(--mat-form-field-filled-caret-color, var(--mat-sys-primary));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder {
color: var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder {
color: var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder {
color: var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder {
color: var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input {
color: var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));
caret-color: var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder {
color: var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder {
color: var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder {
color: var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder {
color: var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input {
caret-color: var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error));
}
.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input {
caret-color: var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error));
}
.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input {
color: var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input {
color: var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
@media (forced-colors: active) {
.mdc-text-field--disabled .mdc-text-field__input {
background-color: Window;
}
}
.mdc-text-field--filled {
height: 56px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
border-top-left-radius: var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));
border-top-right-radius: var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled) {
background-color: var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant));
}
.mdc-text-field--filled.mdc-text-field--disabled {
background-color: var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent));
}
.mdc-text-field--outlined {
height: 56px;
overflow: visible;
padding-right: max(16px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));
padding-left: max(16px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);
}
[dir=rtl] .mdc-text-field--outlined {
padding-right: max(16px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);
padding-left: max(16px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));
}
.mdc-floating-label {
position: absolute;
left: 0;
transform-origin: left top;
line-height: 1.15rem;
text-align: left;
text-overflow: ellipsis;
white-space: nowrap;
cursor: text;
overflow: hidden;
will-change: transform;
}
[dir=rtl] .mdc-floating-label {
right: 0;
left: auto;
transform-origin: right top;
text-align: right;
}
.mdc-text-field .mdc-floating-label {
top: 50%;
transform: translateY(-50%);
pointer-events: none;
}
.mdc-notched-outline .mdc-floating-label {
display: inline-block;
position: relative;
max-width: 100%;
}
.mdc-text-field--outlined .mdc-floating-label {
left: 4px;
right: auto;
}
[dir=rtl] .mdc-text-field--outlined .mdc-floating-label {
left: auto;
right: 4px;
}
.mdc-text-field--filled .mdc-floating-label {
left: 16px;
right: auto;
}
[dir=rtl] .mdc-text-field--filled .mdc-floating-label {
left: auto;
right: 16px;
}
.mdc-text-field--disabled .mdc-floating-label {
cursor: default;
}
@media (forced-colors: active) {
.mdc-text-field--disabled .mdc-floating-label {
z-index: 1;
}
}
.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label {
display: none;
}
.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label {
color: var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label {
color: var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label {
color: var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label {
color: var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label {
color: var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label {
color: var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label {
color: var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container));
}
.mdc-text-field--filled .mdc-floating-label {
font-family: var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font));
font-size: var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size));
font-weight: var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight));
letter-spacing: var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label {
color: var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label {
color: var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label {
color: var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface));
}
.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label {
color: var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label {
color: var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label {
color: var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label {
color: var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container));
}
.mdc-text-field--outlined .mdc-floating-label {
font-family: var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font));
font-size: var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size));
font-weight: var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight));
letter-spacing: var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking));
}
.mdc-floating-label--float-above {
cursor: auto;
transform: translateY(-106%) scale(0.75);
}
.mdc-text-field--filled .mdc-floating-label--float-above {
transform: translateY(-106%) scale(0.75);
}
.mdc-text-field--outlined .mdc-floating-label--float-above {
transform: translateY(-37.25px) scale(1);
font-size: 0.75rem;
}
.mdc-notched-outline .mdc-floating-label--float-above {
text-overflow: clip;
}
.mdc-notched-outline--upgraded .mdc-floating-label--float-above {
max-width: 133.3333333333%;
}
.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above, .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above {
transform: translateY(-34.75px) scale(0.75);
}
.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above, .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above {
font-size: 1rem;
}
.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after {
margin-left: 1px;
margin-right: 0;
content: "*";
}
[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after {
margin-left: 0;
margin-right: 1px;
}
.mdc-notched-outline {
display: flex;
position: absolute;
top: 0;
right: 0;
left: 0;
box-sizing: border-box;
width: 100%;
max-width: 100%;
height: 100%;
text-align: left;
pointer-events: none;
}
[dir=rtl] .mdc-notched-outline {
text-align: right;
}
.mdc-text-field--outlined .mdc-notched-outline {
z-index: 1;
}
.mat-mdc-notch-piece {
box-sizing: border-box;
height: 100%;
pointer-events: none;
border: none;
border-top: 1px solid;
border-bottom: 1px solid;
}
.mdc-text-field--focused .mat-mdc-notch-piece {
border-width: 2px;
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece {
border-color: var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));
border-width: var(--mat-form-field-outlined-outline-width, 1px);
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece {
border-color: var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece {
border-color: var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary));
}
.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece {
border-color: var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece {
border-color: var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece {
border-color: var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece {
border-color: var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error));
}
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece {
border-width: var(--mat-form-field-outlined-focus-outline-width, 2px);
}
.mdc-notched-outline__leading {
border-left: 1px solid;
border-right: none;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-top-left-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));
border-bottom-left-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));
}
.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading {
width: max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));
}
[dir=rtl] .mdc-notched-outline__leading {
border-left: none;
border-right: 1px solid;
border-bottom-left-radius: 0;
border-top-left-radius: 0;
border-top-right-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));
border-bottom-right-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));
}
.mdc-notched-outline__trailing {
flex-grow: 1;
border-left: none;
border-right: 1px solid;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
border-top-right-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));
border-bottom-right-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));
}
[dir=rtl] .mdc-notched-outline__trailing {
border-left: 1px solid;
border-right: none;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-top-left-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));
border-bottom-left-radius: var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));
}
.mdc-notched-outline__notch {
flex: 0 0 auto;
width: auto;
}
.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch {
max-width: min(var(--mat-form-field-notch-max-width, 100%), calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2));
}
.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch {
max-width: min(100%, calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2));
}
.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch {
padding-top: 1px;
}
.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch {
padding-top: 2px;
}
.mdc-notched-outline--notched .mdc-notched-outline__notch {
padding-left: 0;
padding-right: 8px;
border-top: none;
}
[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch {
padding-left: 8px;
padding-right: 0;
}
.mdc-notched-outline--no-label .mdc-notched-outline__notch {
display: none;
}
.mdc-line-ripple::before, .mdc-line-ripple::after {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
border-bottom-style: solid;
content: "";
}
.mdc-line-ripple::before {
z-index: 1;
border-bottom-width: var(--mat-form-field-filled-active-indicator-height, 1px);
}
.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before {
border-bottom-color: var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before {
border-bottom-color: var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface));
}
.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before {
border-bottom-color: var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before {
border-bottom-color: var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error));
}
.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before {
border-bottom-color: var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container));
}
.mdc-line-ripple::after {
transform: scaleX(0);
opacity: 0;
z-index: 2;
}
.mdc-text-field--filled .mdc-line-ripple::after {
border-bottom-width: var(--mat-form-field-filled-focus-active-indicator-height, 2px);
}
.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after {
border-bottom-color: var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary));
}
.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after {
border-bottom-color: var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error));
}
.mdc-line-ripple--active::after {
transform: scaleX(1);
opacity: 1;
}
.mdc-line-ripple--deactivating::after {
opacity: 0;
}
.mdc-text-field--disabled {
pointer-events: none;
}
.mat-mdc-form-field-textarea-control {
vertical-align: middle;
resize: vertical;
box-sizing: border-box;
height: auto;
margin: 0;
padding: 0;
border: none;
overflow: auto;
}
.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font: inherit;
letter-spacing: inherit;
text-decoration: inherit;
text-transform: inherit;
border: none;
}
.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
line-height: normal;
pointer-events: all;
will-change: auto;
}
.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label {
cursor: inherit;
}
.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,
.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control {
height: auto;
}
.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color] {
height: 23px;
}
.mat-mdc-text-field-wrapper {
height: auto;
flex: auto;
will-change: auto;
}
.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper {
padding-left: 0;
--mat-mdc-form-field-label-offset-x: -16px;
}
.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper {
padding-right: 0;
}
[dir=rtl] .mat-mdc-text-field-wrapper {
padding-left: 16px;
padding-right: 16px;
}
[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper {
padding-left: 0;
}
[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper {
padding-right: 0;
}
.mat-form-field-disabled .mdc-text-field__input::placeholder {
color: var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder {
color: var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder {
color: var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder {
color: var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder {
transition-delay: 40ms;
transition-duration: 110ms;
opacity: 1;
}
.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label {
left: auto;
right: auto;
}
.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input {
display: inline-block;
}
.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch {
padding-top: 0;
}
.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch {
border-left: 1px solid transparent;
}
[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch {
border-left: none;
border-right: 1px solid transparent;
}
.mat-mdc-form-field-infix {
min-height: var(--mat-form-field-container-height, 56px);
padding-top: var(--mat-form-field-filled-with-label-container-padding-top, 24px);
padding-bottom: var(--mat-form-field-filled-with-label-container-padding-bottom, 8px);
}
.mdc-text-field--outlined .mat-mdc-form-field-infix, .mdc-text-field--no-label .mat-mdc-form-field-infix {
padding-top: var(--mat-form-field-container-vertical-padding, 16px);
padding-bottom: var(--mat-form-field-container-vertical-padding, 16px);
}
.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label {
top: calc(var(--mat-form-field-container-height, 56px) / 2);
}
.mdc-text-field--filled .mat-mdc-floating-label {
display: var(--mat-form-field-filled-label-display, block);
}
.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above {
--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1))
scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));
transform: var(--mat-mdc-form-field-label-transform);
}
@keyframes _mat-form-field-subscript-animation {
from {
opacity: 0;
transform: translateY(-5px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.mat-mdc-form-field-subscript-wrapper {
box-sizing: border-box;
width: 100%;
position: relative;
}
.mat-mdc-form-field-hint-wrapper,
.mat-mdc-form-field-error-wrapper {
position: absolute;
top: 0;
left: 0;
right: 0;
padding: 0 16px;
opacity: 1;
transform: translateY(0);
animation: _mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2);
}
.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,
.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper {
position: static;
}
.mat-mdc-form-field-bottom-align::before {
content: "";
display: inline-block;
height: 16px;
}
.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before {
content: unset;
}
.mat-mdc-form-field-hint-end {
order: 1;
}
.mat-mdc-form-field-hint-wrapper {
display: flex;
}
.mat-mdc-form-field-hint-spacer {
flex: 1 0 1em;
}
.mat-mdc-form-field-error {
display: block;
color: var(--mat-form-field-error-text-color, var(--mat-sys-error));
}
.mat-mdc-form-field-subscript-wrapper,
.mat-mdc-form-field-bottom-align::before {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));
line-height: var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));
font-size: var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));
letter-spacing: var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));
font-weight: var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight));
}
.mat-mdc-form-field-focus-overlay {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
opacity: 0;
pointer-events: none;
background-color: var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface));
}
.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay {
opacity: var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
}
.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay {
opacity: var(--mat-form-field-focus-state-layer-opacity, 0);
}
select.mat-mdc-form-field-input-control {
-moz-appearance: none;
-webkit-appearance: none;
background-color: transparent;
display: inline-flex;
box-sizing: border-box;
}
select.mat-mdc-form-field-input-control:not(:disabled) {
cursor: pointer;
}
select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option {
color: var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10));
}
select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled {
color: var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent));
}
.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after {
content: "";
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid;
position: absolute;
right: 0;
top: 50%;
margin-top: -2.5px;
pointer-events: none;
color: var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant));
}
[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after {
right: auto;
left: 0;
}
.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after {
color: var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary));
}
.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after {
color: var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control {
padding-right: 15px;
}
[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control {
padding-right: 0;
padding-left: 15px;
}
@media (forced-colors: active) {
.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper {
outline: solid 1px;
}
}
@media (forced-colors: active) {
.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper {
outline-color: GrayText;
}
}
@media (forced-colors: active) {
.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper {
outline: dashed 3px;
}
}
@media (forced-colors: active) {
.mat-mdc-form-field.mat-focused .mdc-notched-outline {
border: dashed 3px;
}
}
.mat-mdc-form-field-input-control[type=date], .mat-mdc-form-field-input-control[type=datetime], .mat-mdc-form-field-input-control[type=datetime-local], .mat-mdc-form-field-input-control[type=month], .mat-mdc-form-field-input-control[type=week], .mat-mdc-form-field-input-control[type=time] {
line-height: 1;
}
.mat-mdc-form-field-input-control::-webkit-datetime-edit {
line-height: 1;
padding: 0;
margin-bottom: -2px;
}
.mat-mdc-form-field {
--mat-mdc-form-field-floating-label-scale: 0.75;
display: inline-flex;
flex-direction: column;
min-width: 0;
text-align: left;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));
line-height: var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));
font-size: var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));
letter-spacing: var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));
font-weight: var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight));
}
.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above {
font-size: calc(var(--mat-form-field-outlined-label-text-populated-size) * var(--mat-mdc-form-field-floating-label-scale));
}
.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above {
font-size: var(--mat-form-field-outlined-label-text-populated-size);
}
[dir=rtl] .mat-mdc-form-field {
text-align: right;
}
.mat-mdc-form-field-flex {
display: inline-flex;
align-items: baseline;
box-sizing: border-box;
width: 100%;
}
.mat-mdc-text-field-wrapper {
width: 100%;
z-index: 0;
}
.mat-mdc-form-field-icon-prefix,
.mat-mdc-form-field-icon-suffix {
align-self: center;
line-height: 0;
pointer-events: auto;
position: relative;
z-index: 1;
}
.mat-mdc-form-field-icon-prefix > .mat-icon,
.mat-mdc-form-field-icon-suffix > .mat-icon {
padding: 0 12px;
box-sizing: content-box;
}
.mat-mdc-form-field-icon-prefix {
color: var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant));
}
.mat-form-field-disabled .mat-mdc-form-field-icon-prefix {
color: var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-mdc-form-field-icon-suffix {
color: var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant));
}
.mat-form-field-disabled .mat-mdc-form-field-icon-suffix {
color: var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-form-field-invalid .mat-mdc-form-field-icon-suffix {
color: var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error));
}
.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix {
color: var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container));
}
.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix {
color: var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error));
}
.mat-mdc-form-field-icon-prefix,
[dir=rtl] .mat-mdc-form-field-icon-suffix {
padding: 0 4px 0 0;
}
.mat-mdc-form-field-icon-suffix,
[dir=rtl] .mat-mdc-form-field-icon-prefix {
padding: 0 0 0 4px;
}
.mat-mdc-form-field-subscript-wrapper .mat-icon,
.mat-mdc-form-field label .mat-icon {
width: 1em;
height: 1em;
font-size: inherit;
}
.mat-mdc-form-field-infix {
flex: auto;
min-width: 0;
width: 180px;
position: relative;
box-sizing: border-box;
}
.mat-mdc-form-field-infix:has(textarea[cols]) {
width: auto;
}
.mat-mdc-form-field .mdc-notched-outline__notch {
margin-left: -1px;
-webkit-clip-path: inset(-9em -999em -9em 1px);
clip-path: inset(-9em -999em -9em 1px);
}
[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch {
margin-left: 0;
margin-right: -1px;
-webkit-clip-path: inset(-9em 1px -9em -999em);
clip-path: inset(-9em 1px -9em -999em);
}
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label {
transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input {
transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder {
transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder {
transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder {
transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder {
transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder, .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder {
transition-delay: 40ms;
transition-duration: 110ms;
}
.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder, .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder {
transition-delay: 40ms;
transition-duration: 110ms;
}
.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder, .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder {
transition-delay: 40ms;
transition-duration: 110ms;
}
.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder, .mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder {
transition-delay: 40ms;
transition-duration: 110ms;
}
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before {
transition-duration: 75ms;
}
.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after {
transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,
.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper {
animation-duration: 300ms;
}
.mdc-notched-outline .mdc-floating-label {
max-width: calc(100% + 1px);
}
.mdc-notched-outline--upgraded .mdc-floating-label--float-above {
max-width: calc(133.3333333333% + 1px);
}
`],encapsulation:2,changeDetection:0})}return i})();var Yi=(()=>{class i{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var At=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(s,e,t,n,a){this._defaultMatcher=s,this.ngControl=e,this._parentFormGroup=t,this._parentForm=n,this._stateChanges=a}updateErrorState(){let s=this.errorState,e=this._parentFormGroup||this._parentForm,t=this.matcher||this._defaultMatcher,n=this.ngControl?this.ngControl.control:null,a=t?.isErrorState(n,e)??!1;a!==s&&(this.errorState=a,this._stateChanges.next())}};var $i=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[di,Wi,j]})}return i})();var Lo=["trigger"],Po=["panel"],No=[[["mat-select-trigger"]],"*"],Bo=["mat-select-trigger","*"];function zo(i,s){if(i&1&&(c(0,"span",4),$(1),u()),i&2){let e=y();d(),se(e.placeholder)}}function Ho(i,s){i&1&&w(0)}function jo(i,s){if(i&1&&(c(0,"span",11),$(1),u()),i&2){let e=y(2);d(),se(e.triggerValue)}}function Vo(i,s){if(i&1&&(c(0,"span",5),F(1,Ho,1,0)(2,jo,2,1,"span",11),u()),i&2){let e=y();d(),O(e.customTrigger?1:2)}}function Go(i,s){if(i&1){let e=Se();c(0,"div",12,1),k("keydown",function(n){ne(e);let a=y();return ie(a._handleKeydown(n))}),w(2,1),u()}if(i&2){let e=y();de(e.panelClass),p("mat-select-panel-animations-enabled",!e._animationsDisabled)("mat-primary",(e._parentFormField==null?null:e._parentFormField.color)==="primary")("mat-accent",(e._parentFormField==null?null:e._parentFormField.color)==="accent")("mat-warn",(e._parentFormField==null?null:e._parentFormField.color)==="warn")("mat-undefined",!(e._parentFormField!=null&&e._parentFormField.color)),T("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var Wo=new C("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let i=r(X);return()=>Je(i)}}),Yo=new C("MAT_SELECT_CONFIG"),Ui=new C("MatSelectTrigger"),sn=class{source;value;constructor(s,e){this.source=s,this.value=e}},Cc=(()=>{class i{_viewportRuler=r(lt);_changeDetectorRef=r(Y);_elementRef=r(D);_dir=r(xe,{optional:!0});_idGenerator=r(K);_renderer=r(ae);_parentFormField=r(rn,{optional:!0});ngControl=r(ii,{self:!0,optional:!0});_liveAnnouncer=r(vt);_defaultOptions=r(Yo,{optional:!0});_animationsDisabled=q();_popoverLocation;_initialized=new f;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let n=this.panel.nativeElement,a=Ii(e,this.options,this.optionGroups),o=t._getHostElement();e===0&&a===1?n.scrollTop=0:n.scrollTop=Si(o.offsetTop,o.offsetHeight,n.scrollTop,n.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new sn(this,e)}_scrollStrategyFactory=r(Wo);_panelOpen=!1;_compareWith=(e,t)=>e===t;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new f;_errorStateTracker;stateChanges=new f;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=Q(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(ni.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=xn(()=>{let e=this.options;return e?e.changes.pipe(te(e),Ae(()=>G(...e.map(t=>t.onSelectionChange)))):this._initialized.pipe(Ae(()=>this.optionSelectionChanges))});openedChange=new g;_openedStream=this.openedChange.pipe(Z(e=>e),pe(()=>{}));_closedStream=this.openedChange.pipe(Z(e=>!e),pe(()=>{}));selectionChange=new g;valueChange=new g;constructor(){let e=r(Yi),t=r(ai,{optional:!0}),n=r(oi,{optional:!0}),a=r(new Ke("tabindex"),{optional:!0}),o=r(Jn,{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new At(e,this.ngControl,n,t,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=a==null?0:parseInt(a)||0,this._popoverLocation=o?.usePopover===!1?null:"inline",this.id=this.id}ngOnInit(){this._selectionModel=new ki(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(x(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(x(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(te(null),x(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let n=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?n.setAttribute("aria-labelledby",e):n.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval),e.panelClass&&this.panelClass instanceof Set&&(this.panelClass=Array.from(this.panelClass))}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe($e(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&Qt(this._trackedModal,"aria-owns",t),ui(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;Qt(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{t(),clearTimeout(n),this._cleanupDetach=void 0};let e=this.panel.nativeElement,t=this._renderer.listen(e,"animationend",a=>{a.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),n=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,n=t===40||t===38||t===37||t===39,a=t===13||t===32,o=this._keyManager;if(!o.isTyping()&&a&&!me(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){let l=this.selected;o.onKeydown(e);let v=this.selected;v&&l!==v&&this._liveAnnouncer.announce(v.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,n=e.keyCode,a=n===40||n===38,o=t.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(!o&&(n===13||n===32)&&t.activeItem&&!me(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!o&&this._multiple&&n===65&&e.ctrlKey){e.preventDefault();let l=this.options.some(v=>!v.disabled&&!v.selected);this.options.forEach(v=>{v.disabled||(l?v.select():v.deselect())})}else{let l=t.activeItemIndex;t.onKeydown(e),this._multiple&&a&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==l&&t.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!me(e)&&(e.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(n=>{if(this._selectionModel.isSelected(n))return!1;try{return(n.value!=null||this.canSelectNullableOptions)&&this._compareWith(n.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof $t?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new hi(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=G(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(x(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),G(...this.options.map(t=>t._stateChanges)).pipe(x(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let n=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,n)=>this.sortComparator?this.sortComparator(t,n,e):e.indexOf(t)-e.indexOf(n)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(n=>n.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t<this.options.length;t++)if(!this.options.get(t).disabled){e=t;break}this._keyManager.setActiveItem(e)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let t=this._elementRef.nativeElement;e.length?t.setAttribute("aria-describedby",e.join(" ")):t.removeAttribute("aria-describedby")}onContainerClick(e){let t=Wn(e);t&&(t.tagName==="MAT-OPTION"||t.classList.contains("cdk-overlay-backdrop")||t.closest(".mat-mdc-select-panel"))||(this.focus(),this.open())}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-select"]],contentQueries:function(t,n,a){if(t&1&&ve(a,Ui,5)(a,Et,5)(a,Dt,5),t&2){let o;m(o=h())&&(n.customTrigger=o.first),m(o=h())&&(n.options=o),m(o=h())&&(n.optionGroups=o)}},viewQuery:function(t,n){if(t&1&&W(Lo,5)(Po,5)(Ut,5),t&2){let a;m(a=h())&&(n.trigger=a.first),m(a=h())&&(n.panel=a.first),m(a=h())&&(n._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(t,n){t&1&&k("keydown",function(o){return n._handleKeydown(o)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),t&2&&(T("id",n.id)("tabindex",n.disabled?-1:n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-activedescendant",n._getAriaActiveDescendant()),p("mat-mdc-select-disabled",n.disabled)("mat-mdc-select-invalid",n.errorState)("mat-mdc-select-required",n.required)("mat-mdc-select-empty",n.empty)("mat-mdc-select-multiple",n.multiple)("mat-select-open",n.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",_],disableRipple:[2,"disableRipple","disableRipple",_],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Te(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",_],placeholder:"placeholder",required:[2,"required","required",_],multiple:[2,"multiple","multiple",_],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",_],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Te],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",_]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[U([{provide:on,useExisting:i},{provide:St,useExisting:i}]),qe],ngContentSelectors:Bo,decls:11,vars:10,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayUsePopover"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",1,"mat-mdc-select-panel","mdc-menu-surface","mdc-menu-surface--open",3,"keydown"]],template:function(t,n){if(t&1&&(H(No),c(0,"div",2,0),k("click",function(){return n.open()}),c(3,"div",3),F(4,zo,2,1,"span",4)(5,Vo,3,1,"span",5),u(),c(6,"div",6)(7,"div",7),Ue(),c(8,"svg",8),A(9,"path",9),u()()()(),ge(10,Go,3,16,"ng-template",10),k("detach",function(){return n.close()})("backdropClick",function(){return n.close()})("overlayKeydown",function(o){return n._handleOverlayKeydown(o)})),t&2){let a=we(1);d(3),T("id",n._valueId),d(),O(n.empty?4:5),d(6),E("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",n._preferredOverlayOrigin||a)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayWidth",n._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)("cdkConnectedOverlayUsePopover",n._popoverLocation)}},dependencies:[$t,Ut],styles:[`@keyframes _mat-select-enter {
from {
opacity: 0;
transform: scaleY(0.8);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes _mat-select-exit {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
.mat-mdc-select {
display: inline-block;
width: 100%;
outline: none;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
color: var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));
font-family: var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));
line-height: var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));
font-size: var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));
font-weight: var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));
letter-spacing: var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking));
}
div.mat-mdc-select-panel {
box-shadow: var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));
}
.mat-mdc-select-disabled {
color: var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-mdc-select-disabled .mat-mdc-select-placeholder {
color: var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-mdc-select-trigger {
display: inline-flex;
align-items: center;
cursor: pointer;
position: relative;
box-sizing: border-box;
width: 100%;
}
.mat-mdc-select-disabled .mat-mdc-select-trigger {
-webkit-user-select: none;
user-select: none;
cursor: default;
}
.mat-mdc-select-value {
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.mat-mdc-select-value-text {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.mat-mdc-select-arrow-wrapper {
height: 24px;
flex-shrink: 0;
display: inline-flex;
align-items: center;
}
.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper {
transform: none;
}
.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,
.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after {
color: var(--mat-select-invalid-arrow-color, var(--mat-sys-error));
}
.mat-mdc-select-arrow {
width: 10px;
height: 5px;
position: relative;
color: var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow {
color: var(--mat-select-focused-arrow-color, var(--mat-sys-primary));
}
.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow {
color: var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
.mat-select-open .mat-mdc-select-arrow {
transform: rotate(180deg);
}
.mat-form-field-animations-enabled .mat-mdc-select-arrow {
transition: transform 80ms linear;
}
.mat-mdc-select-arrow svg {
fill: currentColor;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
@media (forced-colors: active) {
.mat-mdc-select-arrow svg {
fill: CanvasText;
}
.mat-mdc-select-disabled .mat-mdc-select-arrow svg {
fill: GrayText;
}
}
div.mat-mdc-select-panel {
width: 100%;
max-height: 275px;
outline: 0;
overflow: auto;
padding: 8px 0;
box-sizing: border-box;
transform-origin: top center;
border-radius: 0 0 4px 4px;
position: relative;
background-color: var(--mat-select-panel-background-color, var(--mat-sys-surface-container));
}
.mat-mdc-select-panel-above div.mat-mdc-select-panel {
border-radius: 4px 4px 0 0;
transform-origin: bottom center;
}
@media (forced-colors: active) {
div.mat-mdc-select-panel {
outline: solid 1px;
}
}
.mat-select-panel-animations-enabled {
animation: _mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1);
}
.mat-select-panel-animations-enabled.mat-select-panel-exit {
animation: _mat-select-exit 100ms linear;
}
.mat-mdc-select-placeholder {
transition: color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);
color: var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder, ._mat-animation-noopable .mat-mdc-select-placeholder {
transition: none;
}
.mat-form-field-hide-placeholder .mat-mdc-select-placeholder {
color: transparent;
-webkit-text-fill-color: transparent;
transition: none;
display: block;
}
.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper {
cursor: pointer;
}
.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label {
max-width: calc(100% - 18px);
}
.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above {
max-width: calc(100% / 0.75 - 24px);
}
.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch {
max-width: calc(100% - 60px);
}
.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch {
max-width: calc(100% - 24px);
}
.mat-mdc-select-min-line:empty::before {
content: " ";
white-space: pre;
width: 1px;
display: inline-block;
visibility: hidden;
}
.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper {
transform: var(--mat-select-arrow-transform, translateY(-8px));
}
`],encapsulation:2,changeDetection:0})}return i})(),wc=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["mat-select-trigger"]],features:[U([{provide:Ui,useExisting:i}])]})}return i})(),Tc=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[Ne,Rt,j,Xe,$i,Rt]})}return i})();var qi=(()=>{class i{httpController;constructor(e){this.httpController=e}getComputes(e){return this.httpController.get(e,"/computes")}getCompute(e,t){return this.httpController.get(e,`/computes/${t}`)}getNetworkInterfaces(e,t){return this.httpController.get(e,`/computes/${t}/network/interfaces`)}createCompute(e,t){return this.httpController.post(e,"/computes",t)}updateCompute(e,t,n){return this.httpController.put(e,`/computes/${t}`,n)}deleteCompute(e,t){return this.httpController.delete(e,`/computes/${t}`)}connectCompute(e,t){return this.httpController.post(e,`/computes/${t}/connect`,null)}getStatistics(e){return this.httpController.get(e,"/statistics")}static \u0275fac=function(t){return new(t||i)(J(xi))};static \u0275prov=P({token:i,factory:i.\u0275fac})}return i})();var Fc=(()=>{class i{computeService;WS_LIVENESS_TIMEOUT_MS=15e3;WS_LIVENESS_CHECK_MS=5e3;ws=null;currentController=null;intentionalClose=!1;reconnectTimer=null;reconnectAttempt=0;livenessTimer=null;lastWsMessageAt=0;computeNotificationEmitter=new g;computeCache=new Map;projectNotificationEmitter=new g;serverSettingsNotificationEmitter=new g;wsReconnected=new g;computeCacheUpdated=new g;constructor(e){this.computeService=e}notificationsPath(e){let t="ws";return e.protocol==="https:"&&(t="wss"),`${t}://${e.host}:${e.port}/${tt.current_version}/notifications/ws?token=${e.authToken}`}projectNotificationsPath(e,t){let n="ws";return e.protocol==="https:"&&(n="wss"),`${n}://${e.host}:${e.port}/${tt.current_version}/projects/${t}/notifications/ws?token=${e.authToken}`}markerNotificationsPath(e,t){let n="ws";return e.protocol==="https:"&&(n="wss"),`${n}://${e.host}:${e.port}/${tt.current_version}/projects/${t}/notifications/markers/ws?token=${e.authToken}`}connectToComputeNotifications(e){this.ws&&this.currentController===e||(this.disconnect(),this.currentController=e,this.openComputeNotificationsWs())}openComputeNotificationsWs(){this.currentController&&(this.intentionalClose=!1,this.ws=new WebSocket(this.notificationsPath(this.currentController)),this.ws.onopen=()=>{let e=this.reconnectAttempt>0;this.reconnectAttempt=0,this.startLivenessCheck(),e&&(this.resyncComputesAfterReconnect(),this.wsReconnected.emit())},this.ws.onmessage=e=>{this.lastWsMessageAt=Date.now();let t=JSON.parse(e.data);this.handleMessage(t)},this.ws.onerror=()=>{console.error("Compute notifications WebSocket error")},this.ws.onclose=()=>{this.ws=null,this.stopLivenessCheck(),!this.intentionalClose&&this.scheduleReconnect()})}scheduleReconnect(){if(this.intentionalClose||!this.currentController)return;let e=this.reconnectAttempt++,t=Math.min(3e4,1e3*2**e),n=Math.round(t+Math.random()*.25*t);this.reconnectTimer=setTimeout(()=>this.openComputeNotificationsWs(),n)}resyncComputesAfterReconnect(){this.currentController&&this.computeService.getComputes(this.currentController).subscribe({next:e=>this.setInitialComputes(e),error:e=>console.warn("Compute resync after WS reconnect failed",e)})}startLivenessCheck(){this.stopLivenessCheck(),this.lastWsMessageAt=Date.now(),this.livenessTimer=setInterval(()=>{Date.now()-this.lastWsMessageAt>this.WS_LIVENESS_TIMEOUT_MS&&(console.warn("Compute notifications WS liveness timeout \u2014 no message received, forcing reconnect"),this.stopLivenessCheck(),this.ws?.close())},this.WS_LIVENESS_CHECK_MS)}stopLivenessCheck(){this.livenessTimer&&(clearInterval(this.livenessTimer),this.livenessTimer=null)}disconnect(){this.intentionalClose=!0,this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.stopLivenessCheck(),this.reconnectAttempt=0,this.ws&&(this.ws.close(),this.ws=null),this.currentController=null,this.computeCache.clear()}getCachedComputes(){return Array.from(this.computeCache.values())}hasCachedData(){return this.computeCache.size>0}setInitialComputes(e){this.computeCache.clear(),e.forEach(t=>{this.computeCache.set(t.compute_id,t)}),this.computeCacheUpdated.emit(this.getCachedComputes())}handleMessage(e){switch(e.action){case"compute.created":this.computeCache.set(e.event.compute_id,e.event),this.computeNotificationEmitter.emit(e),this.computeCacheUpdated.emit(this.getCachedComputes());break;case"compute.updated":this.computeCache.set(e.event.compute_id,e.event),this.computeNotificationEmitter.emit(e),this.computeCacheUpdated.emit(this.getCachedComputes());break;case"compute.deleted":this.computeCache.delete(e.event.compute_id),this.computeNotificationEmitter.emit(e),this.computeCacheUpdated.emit(this.getCachedComputes());break;case"project.created":case"project.opened":case"project.closed":case"project.updated":case"project.deleted":this.projectNotificationEmitter.emit(e);break;case"settings.updated":this.serverSettingsNotificationEmitter.emit(e);break}}static \u0275fac=function(t){return new(t||i)(J(qi))};static \u0275prov=P({token:i,factory:i.\u0275fac})}return i})();function Uo(i,s){if(i&1){let e=Se();c(0,"div",1)(1,"button",2),k("click",function(){ne(e);let n=y();return ie(n.action())}),$(2),u()()}if(i&2){let e=y();d(2),Qe(" ",e.data.action," ")}}var qo=["label"];function Qo(i,s){}var Ko=Math.pow(2,31)-1,Ge=class{_overlayRef;instance;containerInstance;_afterDismissed=new f;_afterOpened=new f;_onAction=new f;_durationTimeoutId;_dismissedByAction=!1;constructor(s,e){this._overlayRef=e,this.containerInstance=s,s._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(s){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(s,Ko))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},Lt=new C("MatSnackBarData"),it=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},Xo=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return i})(),Zo=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return i})(),Jo=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return i})(),Qi=(()=>{class i{snackBarRef=r(Ge);data=r(Lt);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(t,n){t&1&&(c(0,"div",0),$(1),u(),F(2,Uo,3,1,"div",1)),t&2&&(d(),Qe(" ",n.data.message,`
`),d(),O(n.hasAction?2:-1))},dependencies:[yi,Xo,Zo,Jo],styles:[`.mat-mdc-simple-snack-bar {
display: flex;
}
.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label {
max-height: 50vh;
overflow: auto;
}
`],encapsulation:2,changeDetection:0})}return i})(),ln="_mat-snack-bar-enter",cn="_mat-snack-bar-exit",er=(()=>{class i extends qn{_ngZone=r(z);_elementRef=r(D);_changeDetectorRef=r(Y);_platform=r(Ee);_animationsDisabled=q();snackBarConfig=r(it);_document=r(be);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=r(X);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new f;_onExit=new f;_onEnter=new f;_animationState="void";_live;_label;_role;_liveElementId=r(K).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),t}attachTemplatePortal(e){this._assertNotAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),t}attachDomPortal=e=>{this._assertNotAttached();let t=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),t};onAnimationEnd(e){e===cn?this._completeExit():e===ln&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?ce(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(ln)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(ln)},200)))}exit(){return this._destroyed?ze(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?ce(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(cn)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(cn),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,t=this.snackBarConfig.panelClass;t&&(Array.isArray(t)?t.forEach(o=>e.classList.add(o)):e.classList.add(t)),this._exposeToModals();let n=this._label.nativeElement,a="mdc-snackbar__label";n.classList.toggle(a,!n.querySelector(`.${a}`))}_exposeToModals(){let e=this._liveElementId,t=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let n=0;n<t.length;n++){let a=t[n],o=a.getAttribute("aria-owns");this._trackedModals.add(a),o?o.indexOf(e)===-1&&a.setAttribute("aria-owns",o+" "+e):a.setAttribute("aria-owns",e)}}_clearFromModals(){this._trackedModals.forEach(e=>{let t=e.getAttribute("aria-owns");if(t){let n=t.replace(this._liveElementId,"").trim();n.length>0?e.setAttribute("aria-owns",n):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let e=this._elementRef.nativeElement,t=e.querySelector("[aria-hidden]"),n=e.querySelector("[aria-live]");if(t&&n){let a=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(a=document.activeElement),t.removeAttribute("aria-hidden"),n.appendChild(t),a?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-snack-bar-container"]],viewQuery:function(t,n){if(t&1&&W(Ze,7)(qo,7),t&2){let a;m(a=h())&&(n._portalOutlet=a.first),m(a=h())&&(n._label=a.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(t,n){t&1&&k("animationend",function(o){return n.onAnimationEnd(o.animationName)})("animationcancel",function(o){return n.onAnimationEnd(o.animationName)}),t&2&&p("mat-snack-bar-container-enter",n._animationState==="visible")("mat-snack-bar-container-exit",n._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!n._animationsDisabled)},features:[_e],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,n){t&1&&(c(0,"div",1)(1,"div",2,0)(3,"div",3),ge(4,Qo,0,0,"ng-template",4),u(),A(5,"div"),u()()),t&2&&(d(5),T("aria-live",n._live)("role",n._role)("id",n._liveElementId))},dependencies:[Ze],styles:[`@keyframes _mat-snack-bar-enter {
from {
transform: scale(0.8);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
@keyframes _mat-snack-bar-exit {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
.mat-mdc-snack-bar-container {
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
margin: 8px;
}
.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container {
width: 100vw;
}
.mat-snack-bar-container-animations-enabled {
opacity: 0;
}
.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible {
opacity: 1;
}
.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter {
animation: _mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards;
}
.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit {
animation: _mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards;
}
.mat-mdc-snackbar-surface {
box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
display: flex;
align-items: center;
justify-content: flex-start;
box-sizing: border-box;
padding-left: 0;
padding-right: 8px;
}
[dir=rtl] .mat-mdc-snackbar-surface {
padding-right: 0;
padding-left: 8px;
}
.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface {
min-width: 344px;
max-width: 672px;
}
.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface {
width: 100%;
min-width: 0;
}
@media (forced-colors: active) {
.mat-mdc-snackbar-surface {
outline: solid 1px;
}
}
.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface {
color: var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));
border-radius: var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));
background-color: var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface));
}
.mdc-snackbar__label {
width: 100%;
flex-grow: 1;
box-sizing: border-box;
margin: 0;
padding: 14px 8px 14px 16px;
}
[dir=rtl] .mdc-snackbar__label {
padding-left: 8px;
padding-right: 16px;
}
.mat-mdc-snack-bar-container .mdc-snackbar__label {
font-family: var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));
font-size: var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));
font-weight: var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));
line-height: var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height));
}
.mat-mdc-snack-bar-actions {
display: flex;
flex-shrink: 0;
align-items: center;
box-sizing: border-box;
}
.mat-mdc-snack-bar-handset,
.mat-mdc-snack-bar-container,
.mat-mdc-snack-bar-label {
flex: 1 1 auto;
}
.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed {
color: var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary));
}
.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) {
--mat-button-text-state-layer-color: currentColor;
--mat-button-text-ripple-color: currentColor;
}
.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element {
opacity: 0.1;
}
`],encapsulation:2})}return i})(),tr=new C("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new it}),dn=(()=>{class i{_live=r(vt);_injector=r(X);_breakpointObserver=r(ci);_parentSnackBar=r(i,{optional:!0,skipSelf:!0});_defaultConfig=r(tr);_animationsDisabled=q();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=Qi;snackBarContainerComponent=er;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(){}openFromComponent(e,t){return this._attach(e,t)}openFromTemplate(e,t){return this._attach(e,t)}open(e,t="",n){let a=S(S({},this._defaultConfig),n);return a.data={message:e,action:t},a.announcementMessage===e&&(a.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,a)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,t){let n=t&&t.viewContainerRef&&t.viewContainerRef.injector,a=X.create({parent:n||this._injector,providers:[{provide:it,useValue:t}]}),o=new ct(this.snackBarContainerComponent,t.viewContainerRef,a),l=e.attach(o);return l.instance.snackBarConfig=t,l.instance}_attach(e,t){let n=S(S(S({},new it),this._defaultConfig),t),a=this._createOverlay(n),o=this._attachSnackBarContainer(a,n),l=new Ge(o,a);if(e instanceof Ie){let v=new je(e,null,{$implicit:n.data,snackBarRef:l});l.instance=o.attachTemplatePortal(v)}else{let v=this._createInjector(n,l),b=new ct(e,void 0,v),V=o.attachComponentPortal(b);l.instance=V.instance}return this._breakpointObserver.observe(pi.HandsetPortrait).pipe(x(a.detachments())).subscribe(v=>{a.overlayElement.classList.toggle(this.handsetCssClass,v.matches)}),n.announcementMessage&&o._onAnnounce.subscribe(()=>{this._live.announce(n.announcementMessage,n.politeness)}),this._animateSnackBar(l,n),this._openedSnackBarRef=l,this._openedSnackBarRef}_animateSnackBar(e,t){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),t.announcementMessage&&this._live.clear()}),t.duration&&t.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(t.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let t=new _t;t.direction=e.direction;let n=Zn(this._injector),a=e.direction==="rtl",o=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!a||e.horizontalPosition==="end"&&a,l=!o&&e.horizontalPosition!=="center";return o?n.left("0"):l?n.right("0"):n.centerHorizontally(),e.verticalPosition==="top"?n.top("0"):n.bottom("0"),t.positionStrategy=n,t.disableAnimations=this._animationsDisabled,et(this._injector,t)}_createInjector(e,t){let n=e&&e.viewContainerRef&&e.viewContainerRef.injector;return X.create({parent:n||this._injector,providers:[{provide:Ge,useValue:t},{provide:Lt,useValue:e.data}]})}static \u0275fac=function(t){return new(t||i)};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var Zc=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({providers:[dn],imports:[Ne,Xn,xt,Qi,j]})}return i})();var Ki={success:{icon:"check_circle",label:"Completed"},info:{icon:"info",label:"Activity"},warning:{icon:"warning",label:"Warning"},error:{icon:"error",label:"Error"}};function Xi(i){return Ki[i].icon}function Zi(i){return Ki[i].label}var Ji=(()=>{class i{snackBarRef=r(Ge);data=r(Lt);icon=Xi;label=Zi;dismiss(){this.snackBarRef.dismiss()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["app-notification-toast"]],decls:11,vars:11,consts:[[1,"notification-toast"],["aria-hidden","true",1,"notification-toast__status"],[1,"notification-toast__content"],["mat-icon-button","","type","button","aria-label","Dismiss notification",3,"click"]],template:function(t,n){t&1&&(c(0,"div",0)(1,"mat-icon",1),$(2),u(),c(3,"div",2)(4,"strong"),$(5),u(),c(6,"span"),$(7),u()(),c(8,"button",3),k("click",function(){return n.dismiss()}),c(9,"mat-icon"),$(10,"close"),u()()()),t&2&&(p("notification-toast--success",n.data.notification.kind==="success")("notification-toast--info",n.data.notification.kind==="info")("notification-toast--warning",n.data.notification.kind==="warning")("notification-toast--error",n.data.notification.kind==="error"),d(2),se(n.icon(n.data.notification.kind)),d(3),se(n.label(n.data.notification.kind)),d(2),se(n.data.notification.message))},dependencies:[xt,vi,gi,_i],styles:["[_nghost-%COMP%]{display:block}.notification-toast[_ngcontent-%COMP%]{--notification-accent: var(--mat-sys-primary);min-width:min(380px,100vw - 32px);max-width:min(460px,100vw - 32px);padding:var(--gns3-density-space-3);display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--gns3-density-space-3);box-sizing:border-box;color:var(--mat-sys-on-surface);background:var(--mat-sys-surface-container-high);border:1px solid color-mix(in srgb,var(--notification-accent) 45%,var(--mat-sys-outline-variant));border-left:4px solid var(--notification-accent);border-radius:var(--gns3-density-radius-md);box-shadow:0 12px 32px color-mix(in srgb,var(--mat-sys-shadow) 24%,transparent)}.notification-toast--success[_ngcontent-%COMP%]{--notification-accent: var(--custom-mat-sys-success)}.notification-toast--warning[_ngcontent-%COMP%]{--notification-accent: var(--mat-sys-tertiary)}.notification-toast--error[_ngcontent-%COMP%]{--notification-accent: var(--mat-sys-error)}.notification-toast[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:var(--gns3-density-control-height-sm);height:var(--gns3-density-control-height-sm)}.notification-toast__status[_ngcontent-%COMP%]{color:var(--notification-accent)}.notification-toast__content[_ngcontent-%COMP%]{min-width:0;display:flex;flex-direction:column;gap:var(--gns3-density-space-1)}.notification-toast__content[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:14px;font-weight:650}.notification-toast__content[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow-wrap:anywhere;color:var(--mat-sys-on-surface-variant);font-size:13px;line-height:1.4;white-space:pre-line}@media(max-width:480px){.notification-toast[_ngcontent-%COMP%]{min-width:calc(100vw - 24px);max-width:calc(100vw - 24px)}}"],changeDetection:0})}return i})();var ea="gns3-notification-history",ta=100,ir=864e13,na=(()=>{class i{sequence=0;notificationState=Q(this.restore());panelOpenState=Q(!1);notifications=this.notificationState.asReadonly();panelOpen=this.panelOpenState.asReadonly();unreadCount=ye(()=>this.notificationState().filter(e=>!e.read).length);errorCount=ye(()=>this.notificationState().filter(e=>e.kind==="error").length);warningCount=ye(()=>this.notificationState().filter(e=>e.kind==="warning").length);activityCount=ye(()=>this.notificationState().filter(e=>e.kind==="success"||e.kind==="info").length);add(e,t){let n={id:this.createId(),kind:e,message:this.normalizeMessage(t),createdAt:Date.now(),read:!1};return this.update([n,...this.notificationState()].slice(0,ta)),n}togglePanel(){this.panelOpenState.update(e=>!e)}closePanel(){this.panelOpenState.set(!1)}markAsRead(e){this.notificationState().some(t=>t.id===e&&!t.read)&&this.update(this.notificationState().map(t=>t.id===e?le(S({},t),{read:!0}):t))}markAllAsRead(){this.unreadCount()!==0&&this.update(this.notificationState().map(e=>le(S({},e),{read:!0})))}remove(e){this.update(this.notificationState().filter(t=>t.id!==e))}clear(){this.update([])}createId(){return typeof globalThis.crypto?.randomUUID=="function"?globalThis.crypto.randomUUID():`${Date.now()}-${this.sequence++}-${Math.random().toString(36).slice(2)}`}normalizeMessage(e){if(typeof e=="string")return e;if(e instanceof Error)return e.message;try{return JSON.stringify(e)??String(e)}catch{return String(e)}}update(e){this.notificationState.set(e);try{localStorage.setItem(ea,JSON.stringify(e))}catch{}}restore(){try{let e=JSON.parse(localStorage.getItem(ea)||"[]");return Array.isArray(e)?e.filter(t=>typeof t?.id=="string"&&typeof t?.message=="string"&&typeof t?.createdAt=="number"&&Number.isFinite(t.createdAt)&&t.createdAt>=0&&t.createdAt<=ir&&typeof t?.read=="boolean"&&["success","info","warning","error"].includes(t?.kind)).slice(0,ta):[]}catch{return[]}}static \u0275fac=function(t){return new(t||i)};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var ia=(()=>{class i{snackbar;notificationCenter;snackBarConfigForSuccess={duration:4e3,panelClass:["gns3-toast-panel"],horizontalPosition:"center",verticalPosition:"bottom"};snackBarConfigForWarning={duration:4e3,panelClass:["gns3-toast-panel"],horizontalPosition:"center",verticalPosition:"bottom",politeness:"assertive"};snackBarConfigForError={duration:1e4,panelClass:["gns3-toast-panel"],horizontalPosition:"center",verticalPosition:"bottom",politeness:"assertive"};snackBarConfigForInfo={duration:4e3,panelClass:["gns3-toast-panel"],horizontalPosition:"center",verticalPosition:"bottom"};constructor(e,t){this.snackbar=e,this.notificationCenter=t}error(e,t={}){console.error(e),this.show("error",e,this.snackBarConfigForError,t)}warning(e,t={}){this.show("warning",e,this.snackBarConfigForWarning,t)}success(e,t={}){this.show("success",e,this.snackBarConfigForSuccess,t)}info(e,t={}){this.show("info",e,this.snackBarConfigForInfo,t)}show(e,t,n,a){let o=this.notificationCenter.add(e,t);a.showToast===!1||this.notificationCenter.panelOpen()||this.snackbar.openFromComponent(Ji,le(S({},n),{data:{notification:o}}))}static \u0275fac=function(t){return new(t||i)(J(dn),J(na))};static \u0275prov=P({token:i,factory:i.\u0275fac})}return i})();var _d=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[j]})}return i})();var rr=["mat-internal-form-field",""],sr=["*"],aa=(()=>{class i{labelPosition="after";static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(t,n){t&2&&p("mdc-form-field--align-end",n.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:rr,ngContentSelectors:sr,decls:1,vars:0,template:function(t,n){t&1&&(H(),w(0))},styles:[`.mat-internal-form-field {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
display: inline-flex;
align-items: center;
vertical-align: middle;
}
.mat-internal-form-field > label {
margin-left: 0;
margin-right: auto;
padding-left: 4px;
padding-right: 0;
order: 0;
}
[dir=rtl] .mat-internal-form-field > label {
margin-left: auto;
margin-right: 0;
padding-left: 0;
padding-right: 4px;
}
.mdc-form-field--align-end > label {
margin-left: auto;
margin-right: 0;
padding-left: 0;
padding-right: 4px;
order: -1;
}
[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label {
margin-left: 0;
margin-right: auto;
padding-left: 4px;
padding-right: 0;
}
`],encapsulation:2,changeDetection:0})}return i})();var lr=["input"],cr=["label"],dr=["*"],mn={color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1},mr=new C("mat-checkbox-default-options",{providedIn:"root",factory:()=>mn}),ee=(function(i){return i[i.Init=0]="Init",i[i.Checked=1]="Checked",i[i.Unchecked=2]="Unchecked",i[i.Indeterminate=3]="Indeterminate",i})(ee||{}),hn=class{source;checked},hr=(()=>{class i{_elementRef=r(D);_changeDetectorRef=r(Y);_ngZone=r(z);_animationsDisabled=q();_options=r(mr,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let t=new hn;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required=!1;labelPosition="after";name=null;change=new g;indeterminateChange=new g;value;disableRipple=!1;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=ee.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){r(De).load(Re);let e=r(new Ke("tabindex"),{optional:!0});this._options=this._options||mn,this.color=this._options.color||mn.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=r(K).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this.indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate()}set indeterminate(e){let t=e!=this._indeterminate();this._indeterminate.set(e),t&&(e?this._transitionCheckState(ee.Indeterminate):this._transitionCheckState(this.checked?ee.Checked:ee.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=Q(!1);_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let t=this._currentCheckState,n=this._getAnimationTargetElement();if(!(t===e||!n)&&(this._currentAnimationClass&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);let a=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{n.classList.remove(a)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate.set(!1),this.indeterminateChange.emit(!1)}),this._checked=!this._checked,this._transitionCheckState(this._checked?ee.Checked:ee.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if(this._animationsDisabled)return"";switch(e){case ee.Init:if(t===ee.Checked)return this._animationClasses.uncheckedToChecked;if(t==ee.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case ee.Unchecked:return t===ee.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case ee.Checked:return t===ee.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case ee.Indeterminate:return t===ee.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-checkbox"]],viewQuery:function(t,n){if(t&1&&W(lr,5)(cr,5),t&2){let a;m(a=h())&&(n._inputElement=a.first),m(a=h())&&(n._labelElement=a.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(t,n){t&2&&(Ce("id",n.id),T("tabindex",null)("aria-label",null)("aria-labelledby",null),de(n.color?"mat-"+n.color:"mat-accent"),p("_mat-animation-noopable",n._animationsDisabled)("mdc-checkbox--disabled",n.disabled)("mat-mdc-checkbox-disabled",n.disabled)("mat-mdc-checkbox-checked",n.checked)("mat-mdc-checkbox-disabled-interactive",n.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",_],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",_],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",_],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:Te(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",_],checked:[2,"checked","checked",_],disabled:[2,"disabled","disabled",_],indeterminate:[2,"indeterminate","indeterminate",_]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[U([{provide:ei,useExisting:Sn(()=>i),multi:!0},{provide:ti,useExisting:i,multi:!0}]),qe],ngContentSelectors:dr,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],["aria-hidden","true",1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],["aria-hidden","true",1,"mdc-checkbox__ripple"],["aria-hidden","true",1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","","aria-hidden","true",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(t,n){if(t&1&&(H(),c(0,"div",3),k("click",function(o){return n._preventBubblingFromLabel(o)}),c(1,"div",4,0)(3,"div",5),k("click",function(){return n._onTouchTargetClick()}),u(),c(4,"input",6,1),k("blur",function(){return n._onBlur()})("click",function(){return n._onInputClick()})("change",function(o){return n._onInteractionEvent(o)}),u(),A(6,"div",7),c(7,"div",8),Ue(),c(8,"svg",9),A(9,"path",10),u(),Dn(),A(10,"div",11),u(),A(11,"div",12),u(),c(12,"label",13,2),w(14),u()()),t&2){let a=we(2);E("labelPosition",n.labelPosition),d(4),p("mdc-checkbox--selected",n.checked),E("checked",n.checked)("indeterminate",n.indeterminate)("disabled",n.disabled&&!n.disabledInteractive)("id",n.inputId)("required",n.required)("tabIndex",n.disabled&&!n.disabledInteractive?-1:n.tabIndex),T("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby)("aria-checked",n.indeterminate?"mixed":null)("aria-controls",n.ariaControls)("aria-disabled",n.disabled&&n.disabledInteractive?!0:null)("aria-expanded",n.ariaExpanded)("aria-owns",n.ariaOwns)("name",n.name)("value",n.value),d(7),E("matRippleTrigger",a)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0),d(),E("for",n.inputId)}},dependencies:[he,aa],styles:[`.mdc-checkbox {
display: inline-block;
position: relative;
flex: 0 0 18px;
box-sizing: content-box;
width: 18px;
height: 18px;
line-height: 0;
white-space: nowrap;
cursor: pointer;
vertical-align: bottom;
padding: calc((var(--mat-checkbox-state-layer-size, 40px) - 18px) / 2);
margin: calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px)) / 2);
}
.mdc-checkbox:hover > .mdc-checkbox__ripple {
opacity: var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
background-color: var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface));
}
.mdc-checkbox:hover > .mat-mdc-checkbox-ripple > .mat-ripple-element {
background-color: var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface));
}
.mdc-checkbox .mdc-checkbox__native-control:focus + .mdc-checkbox__ripple {
opacity: var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
background-color: var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface));
}
.mdc-checkbox .mdc-checkbox__native-control:focus ~ .mat-mdc-checkbox-ripple .mat-ripple-element {
background-color: var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface));
}
.mdc-checkbox:active > .mdc-checkbox__native-control + .mdc-checkbox__ripple {
opacity: var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
background-color: var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary));
}
.mdc-checkbox:active > .mdc-checkbox__native-control ~ .mat-mdc-checkbox-ripple .mat-ripple-element {
background-color: var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary));
}
.mdc-checkbox:hover > .mdc-checkbox__native-control:checked + .mdc-checkbox__ripple {
opacity: var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
background-color: var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary));
}
.mdc-checkbox:hover > .mdc-checkbox__native-control:checked ~ .mat-mdc-checkbox-ripple .mat-ripple-element {
background-color: var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary));
}
.mdc-checkbox .mdc-checkbox__native-control:focus:checked + .mdc-checkbox__ripple {
opacity: var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
background-color: var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary));
}
.mdc-checkbox .mdc-checkbox__native-control:focus:checked ~ .mat-mdc-checkbox-ripple .mat-ripple-element {
background-color: var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary));
}
.mdc-checkbox:active > .mdc-checkbox__native-control:checked + .mdc-checkbox__ripple {
opacity: var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
background-color: var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface));
}
.mdc-checkbox:active > .mdc-checkbox__native-control:checked ~ .mat-mdc-checkbox-ripple .mat-ripple-element {
background-color: var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface));
}
.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control ~ .mat-mdc-checkbox-ripple .mat-ripple-element,
.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control + .mdc-checkbox__ripple {
background-color: var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface));
}
.mdc-checkbox .mdc-checkbox__native-control {
position: absolute;
margin: 0;
padding: 0;
opacity: 0;
cursor: inherit;
z-index: 1;
width: var(--mat-checkbox-state-layer-size, 40px);
height: var(--mat-checkbox-state-layer-size, 40px);
top: calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px)) / 2);
right: calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px)) / 2);
left: calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px)) / 2);
}
.mdc-checkbox--disabled {
cursor: default;
pointer-events: none;
}
.mdc-checkbox__background {
display: inline-flex;
position: absolute;
align-items: center;
justify-content: center;
box-sizing: border-box;
width: 18px;
height: 18px;
border: 2px solid currentColor;
border-radius: 2px;
background-color: transparent;
pointer-events: none;
will-change: background-color, border-color;
transition: background-color 90ms cubic-bezier(0.4, 0, 0.6, 1), border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);
-webkit-print-color-adjust: exact;
color-adjust: exact;
border-color: var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));
top: calc((var(--mat-checkbox-state-layer-size, 40px) - 18px) / 2);
left: calc((var(--mat-checkbox-state-layer-size, 40px) - 18px) / 2);
}
.mdc-checkbox__native-control:enabled:checked ~ .mdc-checkbox__background,
.mdc-checkbox__native-control:enabled:indeterminate ~ .mdc-checkbox__background {
border-color: var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));
background-color: var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));
}
.mdc-checkbox--disabled .mdc-checkbox__background {
border-color: var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
@media (forced-colors: active) {
.mdc-checkbox--disabled .mdc-checkbox__background {
border-color: GrayText;
}
}
.mdc-checkbox__native-control:disabled:checked ~ .mdc-checkbox__background,
.mdc-checkbox__native-control:disabled:indeterminate ~ .mdc-checkbox__background {
background-color: var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
border-color: transparent;
}
@media (forced-colors: active) {
.mdc-checkbox__native-control:disabled:checked ~ .mdc-checkbox__background,
.mdc-checkbox__native-control:disabled:indeterminate ~ .mdc-checkbox__background {
border-color: GrayText;
}
}
.mdc-checkbox:hover > .mdc-checkbox__native-control:not(:checked) ~ .mdc-checkbox__background,
.mdc-checkbox:hover > .mdc-checkbox__native-control:not(:indeterminate) ~ .mdc-checkbox__background {
border-color: var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));
background-color: transparent;
}
.mdc-checkbox:hover > .mdc-checkbox__native-control:checked ~ .mdc-checkbox__background,
.mdc-checkbox:hover > .mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background {
border-color: var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));
background-color: var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));
}
.mdc-checkbox__native-control:focus:focus:not(:checked) ~ .mdc-checkbox__background,
.mdc-checkbox__native-control:focus:focus:not(:indeterminate) ~ .mdc-checkbox__background {
border-color: var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface));
}
.mdc-checkbox__native-control:focus:focus:checked ~ .mdc-checkbox__background,
.mdc-checkbox__native-control:focus:focus:indeterminate ~ .mdc-checkbox__background {
border-color: var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));
background-color: var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));
}
.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover > .mdc-checkbox__native-control ~ .mdc-checkbox__background,
.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus ~ .mdc-checkbox__background,
.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background {
border-color: var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
@media (forced-colors: active) {
.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover > .mdc-checkbox__native-control ~ .mdc-checkbox__background,
.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus ~ .mdc-checkbox__background,
.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background {
border-color: GrayText;
}
}
.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked ~ .mdc-checkbox__background,
.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background {
background-color: var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
border-color: transparent;
}
.mdc-checkbox__checkmark {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100%;
opacity: 0;
transition: opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);
color: var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary));
}
@media (forced-colors: active) {
.mdc-checkbox__checkmark {
color: CanvasText;
}
}
.mdc-checkbox--disabled .mdc-checkbox__checkmark, .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark {
color: var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface));
}
@media (forced-colors: active) {
.mdc-checkbox--disabled .mdc-checkbox__checkmark, .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark {
color: GrayText;
}
}
.mdc-checkbox__checkmark-path {
transition: stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);
stroke: currentColor;
stroke-width: 3.12px;
stroke-dashoffset: 29.7833385;
stroke-dasharray: 29.7833385;
}
.mdc-checkbox__mixedmark {
width: 100%;
height: 0;
transform: scaleX(0) rotate(0deg);
border-width: 1px;
border-style: solid;
opacity: 0;
transition: opacity 90ms cubic-bezier(0.4, 0, 0.6, 1), transform 90ms cubic-bezier(0.4, 0, 0.6, 1);
border-color: var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary));
}
@media (forced-colors: active) {
.mdc-checkbox__mixedmark {
margin: 0 1px;
}
}
.mdc-checkbox--disabled .mdc-checkbox__mixedmark, .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark {
border-color: var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface));
}
@media (forced-colors: active) {
.mdc-checkbox--disabled .mdc-checkbox__mixedmark, .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark {
border-color: GrayText;
}
}
.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,
.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,
.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,
.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background {
animation-duration: 180ms;
animation-timing-function: linear;
}
.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path {
animation: mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;
transition: none;
}
.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark {
animation: mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;
transition: none;
}
.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path {
animation: mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;
transition: none;
}
.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark {
animation: mdc-checkbox-checked-indeterminate-checkmark 90ms linear;
transition: none;
}
.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark {
animation: mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;
transition: none;
}
.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark {
animation: mdc-checkbox-indeterminate-checked-checkmark 500ms linear;
transition: none;
}
.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark {
animation: mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;
transition: none;
}
.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark {
animation: mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;
transition: none;
}
.mdc-checkbox__native-control:checked ~ .mdc-checkbox__background,
.mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background {
transition: border-color 90ms cubic-bezier(0, 0, 0.2, 1), background-color 90ms cubic-bezier(0, 0, 0.2, 1);
}
.mdc-checkbox__native-control:checked ~ .mdc-checkbox__background > .mdc-checkbox__checkmark > .mdc-checkbox__checkmark-path,
.mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background > .mdc-checkbox__checkmark > .mdc-checkbox__checkmark-path {
stroke-dashoffset: 0;
}
.mdc-checkbox__native-control:checked ~ .mdc-checkbox__background > .mdc-checkbox__checkmark {
transition: opacity 180ms cubic-bezier(0, 0, 0.2, 1), transform 180ms cubic-bezier(0, 0, 0.2, 1);
opacity: 1;
}
.mdc-checkbox__native-control:checked ~ .mdc-checkbox__background > .mdc-checkbox__mixedmark {
transform: scaleX(1) rotate(-45deg);
}
.mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background > .mdc-checkbox__checkmark {
transform: rotate(45deg);
opacity: 0;
transition: opacity 90ms cubic-bezier(0.4, 0, 0.6, 1), transform 90ms cubic-bezier(0.4, 0, 0.6, 1);
}
.mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background > .mdc-checkbox__mixedmark {
transform: scaleX(1) rotate(0deg);
opacity: 1;
}
@keyframes mdc-checkbox-unchecked-checked-checkmark-path {
0%, 50% {
stroke-dashoffset: 29.7833385;
}
50% {
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
100% {
stroke-dashoffset: 0;
}
}
@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark {
0%, 68.2% {
transform: scaleX(0);
}
68.2% {
animation-timing-function: cubic-bezier(0, 0, 0, 1);
}
100% {
transform: scaleX(1);
}
}
@keyframes mdc-checkbox-checked-unchecked-checkmark-path {
from {
animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
opacity: 1;
stroke-dashoffset: 0;
}
to {
opacity: 0;
stroke-dashoffset: -29.7833385;
}
}
@keyframes mdc-checkbox-checked-indeterminate-checkmark {
from {
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
transform: rotate(0deg);
opacity: 1;
}
to {
transform: rotate(45deg);
opacity: 0;
}
}
@keyframes mdc-checkbox-indeterminate-checked-checkmark {
from {
animation-timing-function: cubic-bezier(0.14, 0, 0, 1);
transform: rotate(45deg);
opacity: 0;
}
to {
transform: rotate(360deg);
opacity: 1;
}
}
@keyframes mdc-checkbox-checked-indeterminate-mixedmark {
from {
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
transform: rotate(-45deg);
opacity: 0;
}
to {
transform: rotate(0deg);
opacity: 1;
}
}
@keyframes mdc-checkbox-indeterminate-checked-mixedmark {
from {
animation-timing-function: cubic-bezier(0.14, 0, 0, 1);
transform: rotate(0deg);
opacity: 1;
}
to {
transform: rotate(315deg);
opacity: 0;
}
}
@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark {
0% {
animation-timing-function: linear;
transform: scaleX(1);
opacity: 1;
}
32.8%, 100% {
transform: scaleX(0);
opacity: 0;
}
}
.mat-mdc-checkbox {
display: inline-block;
position: relative;
-webkit-tap-highlight-color: transparent;
}
.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mat-mdc-checkbox-touch-target,
.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__native-control,
.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__ripple,
.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mat-mdc-checkbox-ripple::before,
.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__background,
.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__background > .mdc-checkbox__checkmark,
.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__background > .mdc-checkbox__checkmark > .mdc-checkbox__checkmark-path,
.mat-mdc-checkbox._mat-animation-noopable > .mat-internal-form-field > .mdc-checkbox > .mdc-checkbox__background > .mdc-checkbox__mixedmark {
transition: none !important;
animation: none !important;
}
.mat-mdc-checkbox label {
cursor: pointer;
}
.mat-mdc-checkbox .mat-internal-form-field {
color: var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));
font-family: var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));
line-height: var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));
font-size: var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));
letter-spacing: var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));
font-weight: var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight));
}
.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive {
pointer-events: auto;
}
.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input {
cursor: default;
}
.mat-mdc-checkbox.mat-mdc-checkbox-disabled label {
cursor: default;
color: var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
}
@media (forced-colors: active) {
.mat-mdc-checkbox.mat-mdc-checkbox-disabled label {
color: GrayText;
}
}
.mat-mdc-checkbox label:empty {
display: none;
}
.mat-mdc-checkbox .mdc-checkbox__ripple {
opacity: 0;
}
.mat-mdc-checkbox .mat-mdc-checkbox-ripple,
.mdc-checkbox__ripple {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
border-radius: 50%;
pointer-events: none;
}
.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),
.mdc-checkbox__ripple:not(:empty) {
transform: translateZ(0);
}
.mat-mdc-checkbox-ripple .mat-ripple-element {
opacity: 0.1;
}
.mat-mdc-checkbox-touch-target {
position: absolute;
top: 50%;
left: 50%;
height: var(--mat-checkbox-touch-target-size, 48px);
width: var(--mat-checkbox-touch-target-size, 48px);
transform: translate(-50%, -50%);
display: var(--mat-checkbox-touch-target-display, block);
}
.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before {
border-radius: 50%;
}
.mdc-checkbox__native-control:focus-visible ~ .mat-focus-indicator::before {
content: "";
}
`],encapsulation:2,changeDetection:0})}return i})(),Yd=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[hr,j]})}return i})();var at=["*"];function ur(i,s){i&1&&w(0)}var la=["tabListContainer"],ca=["tabList"],da=["tabListInner"],ma=["nextPaginator"],ha=["previousPaginator"],fr=["content"];function pr(i,s){}var br=["tabBodyWrapper"],_r=["tabHeader"];function gr(i,s){}function vr(i,s){if(i&1&&ge(0,gr,0,0,"ng-template",12),i&2){let e=y().$implicit;E("cdkPortalOutlet",e.templateLabel)}}function yr(i,s){if(i&1&&$(0),i&2){let e=y().$implicit;se(e.textLabel)}}function xr(i,s){if(i&1){let e=Se();c(0,"div",7,2),k("click",function(){let n=ne(e),a=n.$implicit,o=n.$index,l=y(),v=we(1);return ie(l._handleClick(a,v,o))})("cdkFocusChange",function(n){let a=ne(e).$index,o=y();return ie(o._tabFocusChanged(n,a))}),A(2,"span",8)(3,"div",9),c(4,"span",10)(5,"span",11),F(6,vr,1,1,null,12)(7,yr,1,1),u()()()}if(i&2){let e=s.$implicit,t=s.$index,n=we(1),a=y();de(e.labelClass),p("mdc-tab--active",a.selectedIndex===t),E("id",a._getTabLabelId(e,t))("disabled",e.disabled)("fitInkBarToContent",a.fitInkBarToContent),T("tabIndex",a._getTabIndex(t))("aria-posinset",t+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(t))("aria-selected",a.selectedIndex===t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),d(3),E("matRippleTrigger",n)("matRippleDisabled",e.disabled||a.disableRipple),d(3),O(e.templateLabel?6:7)}}function kr(i,s){i&1&&w(0)}function Cr(i,s){if(i&1){let e=Se();c(0,"mat-tab-body",13),k("_onCentered",function(){ne(e);let n=y();return ie(n._removeTabBodyWrapperHeight())})("_onCentering",function(n){ne(e);let a=y();return ie(a._setTabBodyWrapperHeight(n))})("_beforeCentering",function(n){ne(e);let a=y();return ie(a._bodyCentered(n))}),u()}if(i&2){let e=s.$implicit,t=s.$index,n=y();de(e.bodyClass),E("id",n._getTabContentId(t))("content",e.content)("position",e.position)("animationDuration",n.animationDuration)("preserveContent",n.preserveContent),T("tabindex",n.contentTabIndex!=null&&n.selectedIndex===t?n.contentTabIndex:null)("aria-labelledby",n._getTabLabelId(e,t))("aria-hidden",n.selectedIndex!==t)}}var wr=["mat-tab-nav-bar",""],Tr=["mat-tab-link",""],Mr=new C("MatTabContent"),Ir=(()=>{class i{template=r(Ie);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matTabContent",""]],features:[U([{provide:Mr,useExisting:i}])]})}return i})(),Sr=new C("MatTabLabel"),ua=new C("MAT_TAB"),Dr=(()=>{class i extends Kn{_closestTab=r(ua,{optional:!0});static \u0275fac=(()=>{let e;return function(n){return(e||(e=Le(i)))(n||i)}})();static \u0275dir=I({type:i,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[U([{provide:Sr,useExisting:i}]),_e]})}return i})(),fa=new C("MAT_TAB_GROUP"),Er=(()=>{class i{_viewContainerRef=r(He);_closestTabGroup=r(fa,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new f;position=null;origin=null;isActive=!1;constructor(){r(De).load(Re)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new je(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-tab"]],contentQueries:function(t,n,a){if(t&1&&ve(a,Dr,5)(a,Ir,7,Ie),t&2){let o;m(o=h())&&(n.templateLabel=o.first),m(o=h())&&(n._explicitContent=o.first)}},viewQuery:function(t,n){if(t&1&&W(Ie,7),t&2){let a;m(a=h())&&(n._implicitContent=a.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(t,n){t&2&&T("id",null)},inputs:{disabled:[2,"disabled","disabled",_],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[U([{provide:ua,useExisting:i}]),qe],ngContentSelectors:at,decls:1,vars:0,template:function(t,n){t&1&&(H(),pt(0,ur,1,0,"ng-template"))},encapsulation:2})}return i})(),un="mdc-tab-indicator--active",oa="mdc-tab-indicator--no-transition",Pt=class{_items;_currentItem;constructor(s){this._items=s}hide(){this._items.forEach(s=>s.deactivateInkBar()),this._currentItem=void 0}alignToElement(s){let e=this._items.find(n=>n.elementRef.nativeElement===s),t=this._currentItem;if(e!==t&&(t?.deactivateInkBar(),e)){let n=t?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(n),this._currentItem=e}}},pa=(()=>{class i{_elementRef=r(D);_inkBarElement=null;_inkBarContentElement=null;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let t=this._elementRef.nativeElement;if(!e||!t.getBoundingClientRect||!this._inkBarContentElement){t.classList.add(un);return}let n=t.getBoundingClientRect(),a=e.width/n.width,o=e.left-n.left;t.classList.add(oa),this._inkBarContentElement.style.setProperty("transform",`translateX(${o}px) scaleX(${a})`),t.getBoundingClientRect(),t.classList.remove(oa),t.classList.add(un),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(un)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,t=this._inkBarElement=e.createElement("span"),n=this._inkBarContentElement=e.createElement("span");t.className="mdc-tab-indicator",n.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",t.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",_]}})}return i})();var ba=(()=>{class i extends pa{elementRef=r(D);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Le(i)))(n||i)}})();static \u0275dir=I({type:i,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,n){t&2&&(T("aria-disabled",!!n.disabled),p("mat-mdc-tab-disabled",n.disabled))},inputs:{disabled:[2,"disabled","disabled",_]},features:[_e]})}return i})(),ra={passive:!0},Rr=650,Fr=100,_a=(()=>{class i{_elementRef=r(D);_changeDetectorRef=r(Y);_viewportRuler=r(lt);_dir=r(xe,{optional:!0});_ngZone=r(z);_platform=r(Ee);_sharedResizeObserver=r(Ft);_injector=r(X);_renderer=r(ae);_animationsDisabled=q();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new f;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged=!1;_keyManager;_currentTextContent;_stopScrolling=new f;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let t=isNaN(e)?0:e;this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}_selectedIndex=0;selectFocusedIndex=new g;indexFocused=new g;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),ra),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),ra))}ngAfterContentInit(){let e=this._dir?this._dir.change:ze("ltr"),t=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(wn(32),x(this._destroyed)),n=this._viewportRuler.change(150).pipe(x(this._destroyed)),a=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new yt(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),ce(a,{injector:this._injector}),G(e,n,t,this._items.changes,this._itemsResized()).pipe(x(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),a()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return typeof ResizeObserver!="function"?vn:this._items.changes.pipe(te(this._items),Ae(e=>new Oe(t=>this._ngZone.runOutsideAngular(()=>{let n=new ResizeObserver(a=>t.next(a));return e.forEach(a=>n.observe(a.elementRef.nativeElement)),()=>{n.disconnect()}}))),Mn(1),Z(e=>e.some(t=>t.contentRect.width>0&&t.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._eventCleanups.forEach(e=>e()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!me(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let t=this._items.get(this.focusIndex);t&&!t.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager?.onKeydown(e)}}_onContentChanges(){let e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return this._items?!!this._items.toArray()[e]:!0}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();let t=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?t.scrollLeft=0:t.scrollLeft=t.scrollWidth-t.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,t=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(t)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){let t=this._tabListContainer.nativeElement.offsetWidth,n=(e=="before"?-1:1)*t/3;return this._scrollTo(this._scrollDistance+n)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let t=this._items?this._items.toArray()[e]:null;if(!t)return;let n=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:a,offsetWidth:o}=t.elementRef.nativeElement,l,v;this._getLayoutDirection()=="ltr"?(l=a,v=l+o):(v=this._tabListInner.nativeElement.offsetWidth-a,l=v-o);let b=this.scrollDistance,V=this.scrollDistance+n;l<b?this.scrollDistance-=b-l:v>V&&(this.scrollDistance+=Math.min(v-V,l-b))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,t=this._elementRef.nativeElement.offsetWidth,n=e-t>=5;n||(this.scrollDistance=0),n!==this._showPaginationControls&&(this._showPaginationControls=n,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let e=this._tabListInner.nativeElement.scrollWidth,t=this._tabListContainer.nativeElement.offsetWidth;return e-t||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,t){t&&t.button!=null&&t.button!==0||(this._stopInterval(),Cn(Rr,Fr).pipe(x(G(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:n,distance:a}=this._scrollHeader(e);(a===0||a>=n)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,inputs:{disablePagination:[2,"disablePagination","disablePagination",_],selectedIndex:[2,"selectedIndex","selectedIndex",Te]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return i})(),Or=(()=>{class i extends _a{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new Pt(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Le(i)))(n||i)}})();static \u0275cmp=M({type:i,selectors:[["mat-tab-header"]],contentQueries:function(t,n,a){if(t&1&&ve(a,ba,4),t&2){let o;m(o=h())&&(n._items=o)}},viewQuery:function(t,n){if(t&1&&W(la,7)(ca,7)(da,7)(ma,5)(ha,5),t&2){let a;m(a=h())&&(n._tabListContainer=a.first),m(a=h())&&(n._tabList=a.first),m(a=h())&&(n._tabListInner=a.first),m(a=h())&&(n._nextPaginator=a.first),m(a=h())&&(n._previousPaginator=a.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(t,n){t&2&&p("mat-mdc-tab-header-pagination-controls-enabled",n._showPaginationControls)("mat-mdc-tab-header-rtl",n._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",_]},features:[_e],ngContentSelectors:at,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(t,n){t&1&&(H(),c(0,"div",5,0),k("click",function(){return n._handlePaginatorClick("before")})("mousedown",function(o){return n._handlePaginatorPress("before",o)})("touchend",function(){return n._stopInterval()}),A(2,"div",6),u(),c(3,"div",7,1),k("keydown",function(o){return n._handleKeydown(o)}),c(5,"div",8,2),k("cdkObserveContent",function(){return n._onContentChanges()}),c(7,"div",9,3),w(9),u()()(),c(10,"div",10,4),k("mousedown",function(o){return n._handlePaginatorPress("after",o)})("click",function(){return n._handlePaginatorClick("after")})("touchend",function(){return n._stopInterval()}),A(12,"div",6),u()),t&2&&(p("mat-mdc-tab-header-pagination-disabled",n._disableScrollBefore),E("matRippleDisabled",n._disableScrollBefore||n.disableRipple),d(3),p("_mat-animation-noopable",n._animationsDisabled),d(2),T("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null),d(5),p("mat-mdc-tab-header-pagination-disabled",n._disableScrollAfter),E("matRippleDisabled",n._disableScrollAfter||n.disableRipple))},dependencies:[he,qt],styles:[`.mat-mdc-tab-header {
display: flex;
overflow: hidden;
position: relative;
flex-shrink: 0;
}
.mdc-tab-indicator .mdc-tab-indicator__content {
transition-duration: var(--mat-tab-animation-duration, 250ms);
}
.mat-mdc-tab-header-pagination {
-webkit-user-select: none;
user-select: none;
position: relative;
display: none;
justify-content: center;
align-items: center;
min-width: 32px;
cursor: pointer;
z-index: 2;
-webkit-tap-highlight-color: transparent;
touch-action: none;
box-sizing: content-box;
outline: 0;
}
.mat-mdc-tab-header-pagination::-moz-focus-inner {
border: 0;
}
.mat-mdc-tab-header-pagination .mat-ripple-element {
opacity: 0.12;
background-color: var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination {
display: flex;
}
.mat-mdc-tab-header-pagination-before,
.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after {
padding-left: 4px;
}
.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,
.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron {
transform: rotate(-135deg);
}
.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,
.mat-mdc-tab-header-pagination-after {
padding-right: 4px;
}
.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,
.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron {
transform: rotate(45deg);
}
.mat-mdc-tab-header-pagination-chevron {
border-style: solid;
border-width: 2px 2px 0 0;
height: 8px;
width: 8px;
border-color: var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab-header-pagination-disabled {
box-shadow: none;
cursor: default;
pointer-events: none;
}
.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron {
opacity: 0.4;
}
.mat-mdc-tab-list {
flex-grow: 1;
position: relative;
transition: transform 500ms cubic-bezier(0.35, 0, 0.25, 1);
}
._mat-animation-noopable .mat-mdc-tab-list {
transition: none;
}
.mat-mdc-tab-label-container {
display: flex;
flex-grow: 1;
overflow: hidden;
z-index: 1;
border-bottom-style: solid;
border-bottom-width: var(--mat-tab-divider-height, 1px);
border-bottom-color: var(--mat-tab-divider-color, var(--mat-sys-surface-variant));
}
.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container {
border-bottom: none;
border-top-style: solid;
border-top-width: var(--mat-tab-divider-height, 1px);
border-top-color: var(--mat-tab-divider-color, var(--mat-sys-surface-variant));
}
.mat-mdc-tab-labels {
display: flex;
flex: 1 0 auto;
}
[mat-align-tabs=center] > .mat-mdc-tab-header .mat-mdc-tab-labels {
justify-content: center;
}
[mat-align-tabs=end] > .mat-mdc-tab-header .mat-mdc-tab-labels {
justify-content: flex-end;
}
.cdk-drop-list .mat-mdc-tab-labels, .mat-mdc-tab-labels.cdk-drop-list {
min-height: var(--mat-tab-container-height, 48px);
}
.mat-mdc-tab::before {
margin: 5px;
}
@media (forced-colors: active) {
.mat-mdc-tab[aria-disabled=true] {
color: GrayText;
}
}
`],encapsulation:2})}return i})(),ga=new C("MAT_TABS_CONFIG"),sa=(()=>{class i extends Ze{_host=r(fn);_ngZone=r(z);_centeringSub=re.EMPTY;_leavingSub=re.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(te(this._host._isCenterPosition())).subscribe(e=>{this._host._content&&e&&!this.hasAttached()&&this._ngZone.run(()=>{Promise.resolve().then(),this.attach(this._host._content)})}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this._ngZone.run(()=>this.detach())})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matTabBodyHost",""]],features:[_e]})}return i})(),fn=(()=>{class i{_elementRef=r(D);_dir=r(xe,{optional:!0});_ngZone=r(z);_injector=r(X);_renderer=r(ae);_diAnimationsDisabled=q();_eventCleanups;_initialized=!1;_fallbackTimer;_positionIndex;_dirChangeSubscription=re.EMPTY;_position;_previousPosition;_onCentering=new g;_beforeCentering=new g;_afterLeavingCenter=new g;_onCentered=new g(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=r(Y);this._dirChangeSubscription=this._dir.change.subscribe(t=>{this._computePositionAnimationState(t),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),ce(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(e=>e()),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement,t=n=>{n.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),n.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",n=>{n.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",t),this._renderer.listen(e,"transitioncancel",t)]})}_transitionStarted(){clearTimeout(this._fallbackTimer);let e=this._position==="center";this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit()}_setActiveClass(e){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",e)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(){return this._positionIndex===0}_computePositionAnimationState(e=this._getLayoutDirection()){this._previousPosition=this._position,this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&(this._position==="center"||this._previousPosition==="center")&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)))}_simulateTransitionEvents(){this._transitionStarted(),ce(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-tab-body"]],viewQuery:function(t,n){if(t&1&&W(sa,5)(fr,5),t&2){let a;m(a=h())&&(n._portalHost=a.first),m(a=h())&&(n._contentElement=a.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(t,n){t&2&&T("inert",n._position==="center"?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(t,n){t&1&&(c(0,"div",1,0),ge(2,pr,0,0,"ng-template",2),u()),t&2&&p("mat-tab-body-content-left",n._position==="left")("mat-tab-body-content-right",n._position==="right")("mat-tab-body-content-can-animate",n._position==="center"||n._previousPosition==="center")},dependencies:[sa,Un],styles:[`.mat-mdc-tab-body {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
display: block;
overflow: hidden;
outline: 0;
flex-basis: 100%;
}
.mat-mdc-tab-body.mat-mdc-tab-body-active {
position: relative;
overflow-x: hidden;
overflow-y: auto;
z-index: 1;
flex-grow: 1;
}
.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active {
overflow-y: hidden;
}
.mat-mdc-tab-body-content {
height: 100%;
overflow: auto;
transform: none;
visibility: hidden;
}
.mat-tab-body-animating > .mat-mdc-tab-body-content, .mat-mdc-tab-body-active > .mat-mdc-tab-body-content {
visibility: visible;
}
.mat-tab-body-animating > .mat-mdc-tab-body-content {
min-height: 1px;
}
.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content {
overflow: hidden;
}
.mat-tab-body-content-can-animate {
transition: transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1);
}
.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate {
transition: none;
}
.mat-tab-body-content-left {
transform: translate3d(-100%, 0, 0);
}
.mat-tab-body-content-right {
transform: translate3d(100%, 0, 0);
}
`],encapsulation:2})}return i})(),ym=(()=>{class i{_elementRef=r(D);_changeDetectorRef=r(Y);_ngZone=r(z);_tabsSubscription=re.EMPTY;_tabLabelSubscription=re.EMPTY;_tabBodySubscription=re.EMPTY;_diAnimationsDisabled=q();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new ft;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(e){let t=e+"";this._animationDuration=/^\d+$/.test(t)?e+"ms":t}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex=null;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let t=this._elementRef.nativeElement.classList;t.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&t.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new g;focusChange=new g;animationDone=new g;selectedTabChange=new g(!0);_groupId;_isServer=!r(Ee).isBrowser;constructor(){let e=r(ga,{optional:!0});this._groupId=r(K).getId("mat-tab-group-"),this.animationDuration=e&&e.animationDuration?e.animationDuration:"500ms",this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:!1,this.dynamicHeight=e&&e.dynamicHeight!=null?e.dynamicHeight:!1,e?.contentTabIndex!=null&&(this.contentTabIndex=e.contentTabIndex),this.preserveContent=!!e?.preserveContent,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:!1,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:!0,this.alignTabs=e&&e.alignTabs!=null?e.alignTabs:null}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let t=this._selectedIndex==null;if(!t){this.selectedTabChange.emit(this._createChangeEvent(e));let n=this._tabBodyWrapper.nativeElement;n.style.minHeight=n.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((n,a)=>n.isActive=a===e),t||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((t,n)=>{t.position=n-e,this._selectedIndex!=null&&t.position==0&&!t.origin&&(t.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let t=this._tabs.toArray(),n;for(let a=0;a<t.length;a++)if(t[a].isActive){this._indexToSelect=this._selectedIndex=a,this._lastFocusedTabIndex=null,n=t[a];break}!n&&t[e]&&Promise.resolve().then(()=>{t[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(te(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(t=>t._closestTabGroup===this||!t._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){let t=this._tabHeader;t&&(t.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let t=new pn;return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=G(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e,t){return e.id||`${this._groupId}-label-${t}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this._ngZone.run(()=>this.animationDone.emit())}_handleClick(e,t,n){t.focusIndex=n,e.disabled||(this.selectedIndex=n)}_getTabIndex(e){let t=this._lastFocusedTabIndex??this.selectedIndex;return e===t?0:-1}_tabFocusChanged(e,t){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=t)}_bodyCentered(e){e&&this._tabBodies?.forEach((t,n)=>t._setActiveClass(n===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-tab-group"]],contentQueries:function(t,n,a){if(t&1&&ve(a,Er,5),t&2){let o;m(o=h())&&(n._allTabs=o)}},viewQuery:function(t,n){if(t&1&&W(br,5)(_r,5)(fn,5),t&2){let a;m(a=h())&&(n._tabBodyWrapper=a.first),m(a=h())&&(n._tabHeader=a.first),m(a=h())&&(n._tabBodies=a)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(t,n){t&2&&(T("mat-align-tabs",n.alignTabs),de("mat-"+(n.color||"primary")),Gt("--mat-tab-animation-duration",n.animationDuration),p("mat-mdc-tab-group-dynamic-height",n.dynamicHeight)("mat-mdc-tab-group-inverted-header",n.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",n.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",_],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",_],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",_],selectedIndex:[2,"selectedIndex","selectedIndex",Te],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",Te],disablePagination:[2,"disablePagination","disablePagination",_],disableRipple:[2,"disableRipple","disableRipple",_],preserveContent:[2,"preserveContent","preserveContent",_],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[U([{provide:fa,useExisting:i}])],ngContentSelectors:at,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(t,n){t&1&&(H(),c(0,"mat-tab-header",3,0),k("indexFocused",function(o){return n._focusChanged(o)})("selectFocusedIndex",function(o){return n.selectedIndex=o}),zt(2,xr,8,17,"div",4,Bt),u(),F(4,kr,1,0),c(5,"div",5,1),zt(7,Cr,1,10,"mat-tab-body",6,Bt),u()),t&2&&(E("selectedIndex",n.selectedIndex||0)("disableRipple",n.disableRipple)("disablePagination",n.disablePagination),Pn("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby),d(2),Ht(n._tabs),d(2),O(n._isServer?4:-1),d(),p("_mat-animation-noopable",n._animationsDisabled()),d(2),Ht(n._tabs))},dependencies:[Or,ba,ri,he,Ze,fn],styles:[`.mdc-tab {
min-width: 90px;
padding: 0 24px;
display: flex;
flex: 1 0 auto;
justify-content: center;
box-sizing: border-box;
border: none;
outline: none;
text-align: center;
white-space: nowrap;
cursor: pointer;
z-index: 1;
touch-action: manipulation;
}
.mdc-tab__content {
display: flex;
align-items: center;
justify-content: center;
height: inherit;
pointer-events: none;
}
.mdc-tab__text-label {
transition: 150ms color linear;
display: inline-block;
line-height: 1;
z-index: 2;
}
.mdc-tab--active .mdc-tab__text-label {
transition-delay: 100ms;
}
._mat-animation-noopable .mdc-tab__text-label {
transition: none;
}
.mdc-tab-indicator {
display: flex;
position: absolute;
top: 0;
left: 0;
justify-content: center;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
}
.mdc-tab-indicator__content {
transition: var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);
transform-origin: left;
opacity: 0;
}
.mdc-tab-indicator__content--underline {
align-self: flex-end;
box-sizing: border-box;
width: 100%;
border-top-style: solid;
}
.mdc-tab-indicator--active .mdc-tab-indicator__content {
opacity: 1;
}
._mat-animation-noopable .mdc-tab-indicator__content, .mdc-tab-indicator--no-transition .mdc-tab-indicator__content {
transition: none;
}
.mat-mdc-tab-ripple.mat-mdc-tab-ripple {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
pointer-events: none;
}
.mat-mdc-tab {
-webkit-tap-highlight-color: transparent;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-decoration: none;
background: none;
height: var(--mat-tab-container-height, 48px);
font-family: var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));
font-size: var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));
letter-spacing: var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));
line-height: var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));
font-weight: var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight));
}
.mat-mdc-tab.mdc-tab {
flex-grow: 0;
}
.mat-mdc-tab .mdc-tab-indicator__content--underline {
border-color: var(--mat-tab-active-indicator-color, var(--mat-sys-primary));
border-top-width: var(--mat-tab-active-indicator-height, 2px);
border-radius: var(--mat-tab-active-indicator-shape, 0);
}
.mat-mdc-tab:hover .mdc-tab__text-label {
color: var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab:focus .mdc-tab__text-label {
color: var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label {
color: var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,
.mat-mdc-tab.mdc-tab--active .mat-ripple-element {
background-color: var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label {
color: var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline {
border-color: var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary));
}
.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label {
color: var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline {
border-color: var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary));
}
.mat-mdc-tab.mat-mdc-tab-disabled {
opacity: 0.4;
pointer-events: none;
}
.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content {
pointer-events: none;
}
.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,
.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element {
background-color: var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-tab .mdc-tab__ripple::before {
content: "";
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
opacity: 0;
pointer-events: none;
background-color: var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab .mdc-tab__text-label {
color: var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));
display: inline-flex;
align-items: center;
}
.mat-mdc-tab .mdc-tab__content {
position: relative;
pointer-events: auto;
}
.mat-mdc-tab:hover .mdc-tab__ripple::before {
opacity: 0.04;
}
.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before, .mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before {
opacity: 0.12;
}
.mat-mdc-tab .mat-ripple-element {
opacity: 0.12;
background-color: var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs > .mat-mdc-tab-header .mat-mdc-tab {
flex-grow: 1;
}
.mat-mdc-tab-group {
display: flex;
flex-direction: column;
max-width: 100%;
}
.mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header, .mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header-pagination {
background-color: var(--mat-tab-background-color);
}
.mat-mdc-tab-group.mat-tabs-with-background.mat-primary > .mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label {
color: var(--mat-tab-foreground-color);
}
.mat-mdc-tab-group.mat-tabs-with-background.mat-primary > .mat-mdc-tab-header .mdc-tab-indicator__content--underline {
border-color: var(--mat-tab-foreground-color);
}
.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary) > .mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label {
color: var(--mat-tab-foreground-color);
}
.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary) > .mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline {
border-color: var(--mat-tab-foreground-color);
}
.mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,
.mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header .mat-focus-indicator::before, .mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,
.mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header-pagination .mat-focus-indicator::before {
border-color: var(--mat-tab-foreground-color);
}
.mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header .mat-ripple-element, .mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header .mdc-tab__ripple::before, .mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header-pagination .mat-ripple-element, .mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header-pagination .mdc-tab__ripple::before {
background-color: var(--mat-tab-foreground-color);
}
.mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron, .mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron {
color: var(--mat-tab-foreground-color);
}
.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header {
flex-direction: column-reverse;
}
.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline {
align-self: flex-start;
}
.mat-mdc-tab-body-wrapper {
position: relative;
overflow: hidden;
display: flex;
transition: height 500ms cubic-bezier(0.35, 0, 0.25, 1);
}
.mat-mdc-tab-body-wrapper._mat-animation-noopable {
transition: none !important;
animation: none !important;
}
`],encapsulation:2})}return i})(),pn=class{index;tab},Ar=(()=>{class i extends _a{_focusedItem=Q(null);get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(e){this._fitInkBarToContent.next(e),this._changeDetectorRef.markForCheck()}_fitInkBarToContent=new Ye(!1);stretchTabs=!0;get animationDuration(){return this._animationDuration}set animationDuration(e){let t=e+"";this._animationDuration=/^\d+$/.test(t)?e+"ms":t}_animationDuration;_items;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let t=this._elementRef.nativeElement.classList;t.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&t.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=Q(!1);color="primary";tabPanel;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;constructor(){let e=r(ga,{optional:!0});super(),this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:!1,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:!1,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:!0}_itemSelected(){}ngAfterContentInit(){this._inkBar=new Pt(this._items),this._items.changes.pipe(te(null),x(this._destroyed)).subscribe(()=>this.updateActiveLink()),super.ngAfterContentInit(),this._keyManager.change.pipe(te(null),x(this._destroyed)).subscribe(()=>this._focusedItem.set(this._keyManager?.activeItem||null))}ngAfterViewInit(){this.tabPanel,super.ngAfterViewInit()}updateActiveLink(){if(!this._items)return;let e=this._items.toArray();for(let t=0;t<e.length;t++)if(e[t].active){this.selectedIndex=t,this.tabPanel&&(this.tabPanel._activeTabId=e[t].id),this._focusedItem.set(e[t]),this._changeDetectorRef.markForCheck();return}this.selectedIndex=-1}_getRole(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")}_hasFocus(e){return this._keyManager?.activeItem===e}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(t,n,a){if(t&1&&ve(a,Lr,5),t&2){let o;m(o=h())&&(n._items=o)}},viewQuery:function(t,n){if(t&1&&W(la,7)(ca,7)(da,7)(ma,5)(ha,5),t&2){let a;m(a=h())&&(n._tabListContainer=a.first),m(a=h())&&(n._tabList=a.first),m(a=h())&&(n._tabListInner=a.first),m(a=h())&&(n._nextPaginator=a.first),m(a=h())&&(n._previousPaginator=a.first)}},hostAttrs:[1,"mat-mdc-tab-nav-bar","mat-mdc-tab-header"],hostVars:17,hostBindings:function(t,n){t&2&&(T("role",n._getRole()),Gt("--mat-tab-animation-duration",n.animationDuration),p("mat-mdc-tab-header-pagination-controls-enabled",n._showPaginationControls)("mat-mdc-tab-header-rtl",n._getLayoutDirection()=="rtl")("mat-mdc-tab-nav-bar-stretch-tabs",n.stretchTabs)("mat-primary",n.color!=="warn"&&n.color!=="accent")("mat-accent",n.color==="accent")("mat-warn",n.color==="warn")("_mat-animation-noopable",n._animationsDisabled))},inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",_],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",_],animationDuration:"animationDuration",backgroundColor:"backgroundColor",disableRipple:[2,"disableRipple","disableRipple",_],color:"color",tabPanel:"tabPanel"},exportAs:["matTabNavBar","matTabNav"],features:[_e],attrs:wr,ngContentSelectors:at,decls:13,vars:6,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-link-container",3,"keydown"],[1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-links"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(t,n){t&1&&(H(),c(0,"div",5,0),k("click",function(){return n._handlePaginatorClick("before")})("mousedown",function(o){return n._handlePaginatorPress("before",o)})("touchend",function(){return n._stopInterval()}),A(2,"div",6),u(),c(3,"div",7,1),k("keydown",function(o){return n._handleKeydown(o)}),c(5,"div",8,2),k("cdkObserveContent",function(){return n._onContentChanges()}),c(7,"div",9,3),w(9),u()()(),c(10,"div",10,4),k("mousedown",function(o){return n._handlePaginatorPress("after",o)})("click",function(){return n._handlePaginatorClick("after")})("touchend",function(){return n._stopInterval()}),A(12,"div",6),u()),t&2&&(p("mat-mdc-tab-header-pagination-disabled",n._disableScrollBefore),E("matRippleDisabled",n._disableScrollBefore||n.disableRipple),d(10),p("mat-mdc-tab-header-pagination-disabled",n._disableScrollAfter),E("matRippleDisabled",n._disableScrollAfter||n.disableRipple))},dependencies:[he,qt],styles:[`.mdc-tab {
min-width: 90px;
padding: 0 24px;
display: flex;
flex: 1 0 auto;
justify-content: center;
box-sizing: border-box;
border: none;
outline: none;
text-align: center;
white-space: nowrap;
cursor: pointer;
z-index: 1;
touch-action: manipulation;
}
.mdc-tab__content {
display: flex;
align-items: center;
justify-content: center;
height: inherit;
pointer-events: none;
}
.mdc-tab__text-label {
transition: 150ms color linear;
display: inline-block;
line-height: 1;
z-index: 2;
}
.mdc-tab--active .mdc-tab__text-label {
transition-delay: 100ms;
}
._mat-animation-noopable .mdc-tab__text-label {
transition: none;
}
.mdc-tab-indicator {
display: flex;
position: absolute;
top: 0;
left: 0;
justify-content: center;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
}
.mdc-tab-indicator__content {
transition: var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);
transform-origin: left;
opacity: 0;
}
.mdc-tab-indicator__content--underline {
align-self: flex-end;
box-sizing: border-box;
width: 100%;
border-top-style: solid;
}
.mdc-tab-indicator--active .mdc-tab-indicator__content {
opacity: 1;
}
._mat-animation-noopable .mdc-tab-indicator__content, .mdc-tab-indicator--no-transition .mdc-tab-indicator__content {
transition: none;
}
.mat-mdc-tab-ripple.mat-mdc-tab-ripple {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
pointer-events: none;
}
.mat-mdc-tab-header {
display: flex;
overflow: hidden;
position: relative;
flex-shrink: 0;
}
.mdc-tab-indicator .mdc-tab-indicator__content {
transition-duration: var(--mat-tab-animation-duration, 250ms);
}
.mat-mdc-tab-header-pagination {
-webkit-user-select: none;
user-select: none;
position: relative;
display: none;
justify-content: center;
align-items: center;
min-width: 32px;
cursor: pointer;
z-index: 2;
-webkit-tap-highlight-color: transparent;
touch-action: none;
box-sizing: content-box;
outline: 0;
}
.mat-mdc-tab-header-pagination::-moz-focus-inner {
border: 0;
}
.mat-mdc-tab-header-pagination .mat-ripple-element {
opacity: 0.12;
background-color: var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination {
display: flex;
}
.mat-mdc-tab-header-pagination-before,
.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after {
padding-left: 4px;
}
.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,
.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron {
transform: rotate(-135deg);
}
.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,
.mat-mdc-tab-header-pagination-after {
padding-right: 4px;
}
.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,
.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron {
transform: rotate(45deg);
}
.mat-mdc-tab-header-pagination-chevron {
border-style: solid;
border-width: 2px 2px 0 0;
height: 8px;
width: 8px;
border-color: var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab-header-pagination-disabled {
box-shadow: none;
cursor: default;
pointer-events: none;
}
.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron {
opacity: 0.4;
}
.mat-mdc-tab-list {
flex-grow: 1;
position: relative;
transition: transform 500ms cubic-bezier(0.35, 0, 0.25, 1);
}
._mat-animation-noopable .mat-mdc-tab-list {
transition: none;
}
.mat-mdc-tab-links {
display: flex;
flex: 1 0 auto;
}
[mat-align-tabs=center] > .mat-mdc-tab-link-container .mat-mdc-tab-links {
justify-content: center;
}
[mat-align-tabs=end] > .mat-mdc-tab-link-container .mat-mdc-tab-links {
justify-content: flex-end;
}
.cdk-drop-list .mat-mdc-tab-links, .mat-mdc-tab-links.cdk-drop-list {
min-height: var(--mat-tab-container-height, 48px);
}
.mat-mdc-tab-link-container {
display: flex;
flex-grow: 1;
overflow: hidden;
z-index: 1;
border-bottom-style: solid;
border-bottom-width: var(--mat-tab-divider-height, 1px);
border-bottom-color: var(--mat-tab-divider-color, var(--mat-sys-surface-variant));
}
.mat-mdc-tab-nav-bar.mat-tabs-with-background > .mat-mdc-tab-link-container, .mat-mdc-tab-nav-bar.mat-tabs-with-background > .mat-mdc-tab-header-pagination {
background-color: var(--mat-tab-background-color);
}
.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary > .mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label {
color: var(--mat-tab-foreground-color);
}
.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary > .mat-mdc-tab-link-container .mdc-tab-indicator__content--underline {
border-color: var(--mat-tab-foreground-color);
}
.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary) > .mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label {
color: var(--mat-tab-foreground-color);
}
.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary) > .mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline {
border-color: var(--mat-tab-foreground-color);
}
.mat-mdc-tab-nav-bar.mat-tabs-with-background > .mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,
.mat-mdc-tab-nav-bar.mat-tabs-with-background > .mat-mdc-tab-link-container .mat-focus-indicator::before, .mat-mdc-tab-nav-bar.mat-tabs-with-background > .mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,
.mat-mdc-tab-nav-bar.mat-tabs-with-background > .mat-mdc-tab-header-pagination .mat-focus-indicator::before {
border-color: var(--mat-tab-foreground-color);
}
.mat-mdc-tab-nav-bar.mat-tabs-with-background > .mat-mdc-tab-link-container .mat-ripple-element, .mat-mdc-tab-nav-bar.mat-tabs-with-background > .mat-mdc-tab-link-container .mdc-tab__ripple::before, .mat-mdc-tab-nav-bar.mat-tabs-with-background > .mat-mdc-tab-header-pagination .mat-ripple-element, .mat-mdc-tab-nav-bar.mat-tabs-with-background > .mat-mdc-tab-header-pagination .mdc-tab__ripple::before {
background-color: var(--mat-tab-foreground-color);
}
.mat-mdc-tab-nav-bar.mat-tabs-with-background > .mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron, .mat-mdc-tab-nav-bar.mat-tabs-with-background > .mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron {
color: var(--mat-tab-foreground-color);
}
`],encapsulation:2})}return i})(),Lr=(()=>{class i extends pa{_tabNavBar=r(Ar);elementRef=r(D);_focusMonitor=r(Ve);_destroyed=new f;_isActive=!1;_tabIndex=ye(()=>this._tabNavBar._focusedItem()===this?this.tabIndex:-1);get active(){return this._isActive}set active(e){e!==this._isActive&&(this._isActive=e,this._tabNavBar.updateActiveLink())}disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=Q(!1);tabIndex=0;rippleConfig;get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}id=r(K).getId("mat-tab-link-");constructor(){super(),r(De).load(Re);let e=r(Kt,{optional:!0}),t=r(new Ke("tabindex"),{optional:!0});this.rippleConfig=e||{},this.tabIndex=t==null?0:parseInt(t)||0,q()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),this._tabNavBar._fitInkBarToContent.pipe(x(this._destroyed)).subscribe(n=>{this.fitInkBarToContent=n})}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),super.ngOnDestroy(),this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(this.disabled?e.preventDefault():this._tabNavBar.tabPanel&&(e.keyCode===32&&e.preventDefault(),this.elementRef.nativeElement.click()))}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(t,n){t&1&&k("focus",function(){return n._handleFocus()})("keydown",function(o){return n._handleKeydown(o)}),t&2&&(T("aria-controls",n._getAriaControls())("aria-current",n._getAriaCurrent())("aria-disabled",n.disabled)("aria-selected",n._getAriaSelected())("id",n.id)("tabIndex",n._tabIndex())("role",n._getRole()),p("mat-mdc-tab-disabled",n.disabled)("mdc-tab--active",n.active))},inputs:{active:[2,"active","active",_],disabled:[2,"disabled","disabled",_],disableRipple:[2,"disableRipple","disableRipple",_],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Te(e)],id:"id"},exportAs:["matTabLink"],features:[_e],attrs:Tr,ngContentSelectors:at,decls:5,vars:2,consts:[[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"]],template:function(t,n){t&1&&(H(),A(0,"span",0)(1,"div",1),c(2,"span",2)(3,"span",3),w(4),u()()),t&2&&(d(),E("matRippleTrigger",n.elementRef.nativeElement)("matRippleDisabled",n.rippleDisabled))},dependencies:[he],styles:[`.mat-mdc-tab-link {
-webkit-tap-highlight-color: transparent;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-decoration: none;
background: none;
height: var(--mat-tab-container-height, 48px);
font-family: var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));
font-size: var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));
letter-spacing: var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));
line-height: var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));
font-weight: var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight));
}
.mat-mdc-tab-link.mdc-tab {
flex-grow: 0;
}
.mat-mdc-tab-link .mdc-tab-indicator__content--underline {
border-color: var(--mat-tab-active-indicator-color, var(--mat-sys-primary));
border-top-width: var(--mat-tab-active-indicator-height, 2px);
border-radius: var(--mat-tab-active-indicator-shape, 0);
}
.mat-mdc-tab-link:hover .mdc-tab__text-label {
color: var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab-link:focus .mdc-tab__text-label {
color: var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label {
color: var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,
.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element {
background-color: var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label {
color: var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline {
border-color: var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary));
}
.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label {
color: var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline {
border-color: var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary));
}
.mat-mdc-tab-link.mat-mdc-tab-disabled {
opacity: 0.4;
pointer-events: none;
}
.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content {
pointer-events: none;
}
.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,
.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element {
background-color: var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant));
}
.mat-mdc-tab-link .mdc-tab__ripple::before {
content: "";
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
opacity: 0;
pointer-events: none;
background-color: var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab-link .mdc-tab__text-label {
color: var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));
display: inline-flex;
align-items: center;
}
.mat-mdc-tab-link .mdc-tab__content {
position: relative;
pointer-events: auto;
}
.mat-mdc-tab-link:hover .mdc-tab__ripple::before {
opacity: 0.04;
}
.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before, .mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before {
opacity: 0.12;
}
.mat-mdc-tab-link .mat-ripple-element {
opacity: 0.12;
background-color: var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface));
}
.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link {
flex-grow: 1;
}
.mat-mdc-tab-link::before {
margin: 5px;
}
@media (max-width: 599px) {
.mat-mdc-tab-link {
min-width: 72px;
}
}
`],encapsulation:2,changeDetection:0})}return i})(),xm=(()=>{class i{id=r(K).getId("mat-tab-nav-panel-");_activeTabId;static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(t,n){t&2&&T("aria-labelledby",n._activeTabId)("id",n.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:at,decls:1,vars:0,template:function(t,n){t&1&&(H(),w(0))},encapsulation:2,changeDetection:0})}return i})(),km=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[j]})}return i})();var Pr=new C("DEFAULT_THEME_TOKEN",{providedIn:"root",factory:()=>"indigo-pink"}),va=(()=>{class i{document;_darkMode$=new Ye(!1);darkMode$=this._darkMode$.asObservable();themeChanged=new g;mapThemeChanged=new g;currentTheme="indigo-pink";currentMapTheme="auto";savedTheme="indigo-pink";savedMapTheme="auto";availableThemes=[{key:"deeppurple-amber",label:"Deep Purple & Amber",type:"light",primaryColor:"#6750A4"},{key:"indigo-pink",label:"Indigo & Pink",type:"light",primaryColor:"#3F51B5"},{key:"magenta-violet",label:"Magenta & Violet",type:"light",primaryColor:"#D81B60"},{key:"rose-red",label:"Rose & Red",type:"light",primaryColor:"#E91E63"},{key:"pink-bluegrey",label:"Pink & Bluegrey",type:"dark",primaryColor:"#E91E63"},{key:"purple-green",label:"Purple & Green",type:"dark",primaryColor:"#7E57C2"},{key:"azure-blue",label:"Azure & Blue",type:"dark",primaryColor:"#0078D4"},{key:"cyan-orange",label:"Cyan & Orange",type:"dark",primaryColor:"#00B7C3"}];availableMapBackgrounds=[{key:"auto",label:"Follow global theme",background:"",textColor:"",type:"light"},{key:"light-1",label:"Cyan Sky",background:"radial-gradient(ellipse at 20% 20%, #B2EBF2 0%, #E0F7FA 70%)",textColor:"#006064",type:"light"},{key:"light-2",label:"Blue Sky",background:"radial-gradient(ellipse at 20% 20%, #BBDEFB 0%, #E3F2FD 70%)",textColor:"#1565C0",type:"light"},{key:"light-3",label:"Cloud Gray",background:"radial-gradient(ellipse at 20% 20%, #F5F5F5 0%, #FAFAFA 70%)",textColor:"#424242",type:"light"},{key:"light-4",label:"Lavender",background:"radial-gradient(ellipse at 20% 20%, #E1BEE7 0%, #F3E5F5 70%)",textColor:"#4A148C",type:"light"},{key:"dark-1",label:"Deep Cyan",background:"linear-gradient(135deg, #006064 0%, #00838F 50%, #006064 100%)",textColor:"#FFFFFF",type:"dark"},{key:"dark-2",label:"Deep Blue",background:"linear-gradient(135deg, #1565C0 0%, #1976D2 50%, #1565C0 100%)",textColor:"#FFFFFF",type:"dark"},{key:"dark-3",label:"Charcoal",background:"linear-gradient(135deg, #424242 0%, #616161 50%, #424242 100%)",textColor:"#FFFFFF",type:"dark"},{key:"dark-4",label:"Deep Purple",background:"linear-gradient(135deg, #4A148C 0%, #6A1B9A 50%, #4A148C 100%)",textColor:"#FFFFFF",type:"dark"}];constructor(e,t){this.document=e;let n=localStorage.getItem("theme");this.currentTheme=n||t,this.savedTheme=this.currentTheme;let a=localStorage.getItem("mapTheme");this.currentMapTheme=a||"auto",this.savedMapTheme=this.currentMapTheme,this.applyTheme(this.currentTheme)}getCurrentTheme(){return this.currentTheme}getThemeType(){return this.isDarkTheme(this.currentTheme)?"dark":"light"}getActualMapTheme(){if(this.savedMapTheme==="auto")return this.getThemeType();let e=this.availableMapBackgrounds.find(t=>t.key===this.savedMapTheme);return e?e.type:"light"}getActualTheme(){return this.getThemeType()}isDarkTheme(e){return e==="pink-bluegrey"||e==="purple-green"||e==="azure-blue"||e==="cyan-orange"}setTheme(e){this.currentTheme!==e&&(this.currentTheme=e,this.savedTheme=e,this.applyTheme(e),this.saveThemePreference(e),this.themeChanged.emit(e),this.currentMapTheme==="auto"&&this.mapThemeChanged.emit(e),this._darkMode$.next(this.isDarkTheme(e)))}toggleTheme(){let e=this.getThemeType(),t;e==="dark"?t=this.availableThemes.find(n=>n.type==="light")?.key||"deeppurple-amber":t=this.availableThemes.find(n=>n.type==="dark")?.key||"pink-bluegrey",this.setTheme(t)}setDarkMode(e){let t=e?"pink-bluegrey":"indigo-pink";this.setTheme(t)}setMapTheme(e){this.currentMapTheme=e,this.savedMapTheme=e,localStorage.setItem("mapTheme",e),this.mapThemeChanged.emit(this.getActualMapTheme())}restoreTheme(){let e=localStorage.getItem("theme");e&&this.availableThemes.some(t=>t.key===e)&&this.setTheme(e)}applyTheme(e){let t=this.document.documentElement;t.classList.remove("theme-deeppurple-amber","theme-indigo-pink","theme-magenta-violet","theme-rose-red","theme-pink-bluegrey","theme-purple-green","theme-azure-blue","theme-cyan-orange"),t.classList.add(`theme-${e}`)}saveThemePreference(e){localStorage.setItem("theme",e)}isDarkMode(){return this.isDarkTheme(this.currentTheme)}isLightMode(){return!this.isDarkTheme(this.currentTheme)}getCanvasLabelColor(){return this.getActualMapTheme()==="dark"?"#FFFFFF":"#000000"}getCanvasLinkColor(){return this.getActualMapTheme()==="dark"?"#FFFFFF":"#000000"}static \u0275fac=function(t){return new(t||i)(J(be),J(Pr))};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var ya=(()=>{class i{themeService;symbolScalingSubject=new f;isScrollDisabled=new f;isMapLocked=new f;isTopologySummaryVisible=!0;isLogConsoleVisible=!1;isLayerNumberVisible=!1;isItemLockStatusVisible=!1;logConsoleSubject=new f;mapRenderedEmitter=new g;openReadme;showInterfaceLabels=!0;integrateLinkLabelsToLinks=!0;openConsolesInWidget=!1;defaultSceneWidth;defaultSceneHeight;defaultGridSize;defaultDrawingGridSize;defaultShowGrid;defaultSnapToGrid;defaultLabelStyle;defaultNoteStyle;defaultLinkStyle;static FONT_FAMILIES=["TypeWriter","Noto Sans","Arial","Courier New","Times New Roman","Helvetica","Verdana","Georgia","Comic Sans MS"];static FONT_WEIGHTS=["normal","bold"];static LINK_STYLE_NAMES=["Invisible","Solid","Dash","Dot","Dash Dot","Dash Dot Dot"];static LINK_TYPES=[{label:"Straight",value:"straight"},{label:"Bezier",value:"bezier"},{label:"Flowchart",value:"flowchart"},{label:"StateMachine",value:"statemachine"},{label:"Freeform",value:"freeform"}];static DEFAULT_SCENE_WIDTH=2e3;static DEFAULT_SCENE_HEIGHT=1e3;static DEFAULT_GRID_SIZE=75;static DEFAULT_DRAWING_GRID_SIZE=25;static DEFAULT_SHOW_GRID=!1;static DEFAULT_SNAP_TO_GRID=!1;defaultLabelStyleFallback;defaultNoteStyleFallback;defaultLinkStyleFallback;static SCENE_WIDTH_KEY="defaultSceneWidth";static SCENE_HEIGHT_KEY="defaultSceneHeight";static GRID_SIZE_KEY="defaultGridSize";static DRAWING_GRID_SIZE_KEY="defaultDrawingGridSize";static SHOW_GRID_KEY="defaultShowGrid";static SNAP_TO_GRID_KEY="defaultSnapToGrid";static LABEL_STYLE_KEY="defaultLabelStyle";static NOTE_STYLE_KEY="defaultNoteStyle";static LINK_STYLE_KEY="defaultLinkStyle";constructor(e){this.themeService=e,this.defaultLabelStyleFallback={fontFamily:"TypeWriter",fontSize:10,fontWeight:"bold",color:this.themeService.getCanvasLabelColor()},this.defaultNoteStyleFallback={fontFamily:"Noto Sans",fontSize:11,fontWeight:"bold",color:this.themeService.getCanvasLabelColor()},this.defaultLinkStyleFallback={color:this.themeService.getCanvasLinkColor(),width:2,type:1,link_type:"straight"},this.isLayerNumberVisible=localStorage.getItem("layersVisibility")==="true",localStorage.getItem("integrateLinkLabelsToLinks")&&(this.integrateLinkLabelsToLinks=localStorage.getItem("integrateLinkLabelsToLinks")==="true"),localStorage.getItem("openConsolesInWidget")&&(this.openConsolesInWidget=localStorage.getItem("openConsolesInWidget")==="true"),localStorage.getItem("symbolScaling")||localStorage.setItem("symbolScaling","true"),localStorage.getItem("openReadme")?this.openReadme=localStorage.getItem("openReadme")==="true":localStorage.setItem("openReadme","false"),localStorage.getItem("showInterfaceLabels")?this.showInterfaceLabels=localStorage.getItem("showInterfaceLabels")==="true":localStorage.setItem("showInterfaceLabels","true"),this.defaultSceneWidth=this.readNumber(i.SCENE_WIDTH_KEY,i.DEFAULT_SCENE_WIDTH),this.defaultSceneHeight=this.readNumber(i.SCENE_HEIGHT_KEY,i.DEFAULT_SCENE_HEIGHT),this.defaultGridSize=this.readNumber(i.GRID_SIZE_KEY,i.DEFAULT_GRID_SIZE),this.defaultDrawingGridSize=this.readNumber(i.DRAWING_GRID_SIZE_KEY,i.DEFAULT_DRAWING_GRID_SIZE),this.defaultShowGrid=this.readBoolean(i.SHOW_GRID_KEY,i.DEFAULT_SHOW_GRID),this.defaultSnapToGrid=this.readBoolean(i.SNAP_TO_GRID_KEY,i.DEFAULT_SNAP_TO_GRID),this.defaultLabelStyle=this.readTextStyle(i.LABEL_STYLE_KEY,this.defaultLabelStyleFallback),this.defaultNoteStyle=this.readTextStyle(i.NOTE_STYLE_KEY,this.defaultNoteStyleFallback),this.defaultLinkStyle=this.readLinkStyle(i.LINK_STYLE_KEY,this.defaultLinkStyleFallback)}readNumber(e,t){let n=localStorage.getItem(e);if(n===null)return t;let a=parseInt(n,10);return Number.isFinite(a)&&a>=0?a:t}readBoolean(e,t){let n=localStorage.getItem(e);return n===null?t:n==="true"}readTextStyle(e,t){let n=localStorage.getItem(e);if(!n)return S({},t);try{return this.normalizeTextStyle(JSON.parse(n),t)}catch{return S({},t)}}readLinkStyle(e,t){let n=localStorage.getItem(e);if(!n)return S({},t);try{return this.normalizeLinkStyle(JSON.parse(n),t)}catch{return S({},t)}}normalizeTextStyle(e,t){let n=typeof e=="object"&&e!==null?e:{},a=Number(n.fontSize);return{fontFamily:i.FONT_FAMILIES.includes(n.fontFamily)?n.fontFamily:t.fontFamily,fontSize:Number.isFinite(a)?Math.min(200,Math.max(1,Math.round(a*2)/2)):t.fontSize,fontWeight:i.FONT_WEIGHTS.includes(n.fontWeight)?n.fontWeight:t.fontWeight,color:this.normalizeColor(n.color,t.color)}}normalizeLinkStyle(e,t){let n=typeof e=="object"&&e!==null?e:{},a=Number(n.width),o=Number(n.type),l=i.LINK_TYPES.map(v=>v.value);return{color:this.normalizeColor(n.color,t.color),width:Number.isFinite(a)?Math.min(20,Math.max(1,Math.round(a))):t.width,type:Number.isInteger(o)&&o>=0&&o<i.LINK_STYLE_NAMES.length?o:t.type,link_type:typeof n.link_type=="string"&&l.includes(n.link_type)?n.link_type:t.link_type}}normalizeColor(e,t){return typeof e=="string"&&/^#[0-9a-f]{6}$/i.test(e)?e.toLowerCase():t}getSymbolScaling(){return localStorage.getItem("symbolScaling")==="true"}setSymbolScaling(e){e?localStorage.setItem("symbolScaling","true"):localStorage.setItem("symbolScaling","false"),this.symbolScalingSubject.next(e)}changeMapLockValue(e){this.isMapLocked.next(e)}setConsoleContextMenuAction(e){localStorage.setItem("consoleContextMenu",e)}getConsoleContextMenuAction(){return localStorage.getItem("consoleContextMenu")}toggleTopologySummary(e){this.isTopologySummaryVisible=e}toggleLogConsole(e){this.isLogConsoleVisible=e}toggleLayers(e){this.isLayerNumberVisible=e}toggleItemLockStatus(e){this.isItemLockStatusVisible=e}toggleShowInterfaceLabels(e){this.showInterfaceLabels=e,localStorage.removeItem("showInterfaceLabels"),e?localStorage.setItem("showInterfaceLabels","true"):localStorage.setItem("showInterfaceLabels","false")}toggleIntegrateInterfaceLabels(e){this.integrateLinkLabelsToLinks=e,localStorage.removeItem("integrateLinkLabelsToLinks"),e?localStorage.setItem("integrateLinkLabelsToLinks","true"):localStorage.setItem("integrateLinkLabelsToLinks","false")}toggleOpenReadme(e){this.openReadme=e,localStorage.removeItem("openReadme"),e?localStorage.setItem("openReadme","true"):localStorage.setItem("openReadme","false")}toggleOpenConsolesInWidget(e){this.openConsolesInWidget=e,localStorage.removeItem("openConsolesInWidget"),e?localStorage.setItem("openConsolesInWidget","true"):localStorage.setItem("openConsolesInWidget","false")}getDefaultSceneWidth(){return this.defaultSceneWidth}setDefaultSceneWidth(e){let t=Number.isFinite(e)&&e>=0?Math.round(e):i.DEFAULT_SCENE_WIDTH;this.defaultSceneWidth=t,localStorage.setItem(i.SCENE_WIDTH_KEY,String(t))}getDefaultSceneHeight(){return this.defaultSceneHeight}setDefaultSceneHeight(e){let t=Number.isFinite(e)&&e>=0?Math.round(e):i.DEFAULT_SCENE_HEIGHT;this.defaultSceneHeight=t,localStorage.setItem(i.SCENE_HEIGHT_KEY,String(t))}getDefaultGridSize(){return this.defaultGridSize}setDefaultGridSize(e){let t=Number.isFinite(e)&&e>=0?Math.round(e):i.DEFAULT_GRID_SIZE;this.defaultGridSize=t,localStorage.setItem(i.GRID_SIZE_KEY,String(t))}getDefaultDrawingGridSize(){return this.defaultDrawingGridSize}setDefaultDrawingGridSize(e){let t=Number.isFinite(e)&&e>=0?Math.round(e):i.DEFAULT_DRAWING_GRID_SIZE;this.defaultDrawingGridSize=t,localStorage.setItem(i.DRAWING_GRID_SIZE_KEY,String(t))}getDefaultShowGrid(){return this.defaultShowGrid}setDefaultShowGrid(e){this.defaultShowGrid=e,localStorage.setItem(i.SHOW_GRID_KEY,e?"true":"false")}getDefaultSnapToGrid(){return this.defaultSnapToGrid}setDefaultSnapToGrid(e){this.defaultSnapToGrid=e,localStorage.setItem(i.SNAP_TO_GRID_KEY,e?"true":"false")}getDefaultLabelStyle(){return le(S({},this.defaultLabelStyle),{color:this.hasDefaultLabelStyle()?this.defaultLabelStyle.color:this.themeService.getCanvasLabelColor()})}hasDefaultLabelStyle(){return localStorage.getItem(i.LABEL_STYLE_KEY)!==null}setDefaultLabelStyle(e){this.defaultLabelStyle=this.normalizeTextStyle(e,this.defaultLabelStyleFallback),localStorage.setItem(i.LABEL_STYLE_KEY,JSON.stringify(this.defaultLabelStyle))}getDefaultNoteStyle(){return le(S({},this.defaultNoteStyle),{color:this.hasDefaultNoteStyle()?this.defaultNoteStyle.color:this.themeService.getCanvasLabelColor()})}hasDefaultNoteStyle(){return localStorage.getItem(i.NOTE_STYLE_KEY)!==null}setDefaultNoteStyle(e){this.defaultNoteStyle=this.normalizeTextStyle(e,this.defaultNoteStyleFallback),localStorage.setItem(i.NOTE_STYLE_KEY,JSON.stringify(this.defaultNoteStyle))}getDefaultLinkStyle(){return le(S({},this.defaultLinkStyle),{color:this.hasDefaultLinkStyle()?this.defaultLinkStyle.color:this.themeService.getCanvasLinkColor()})}hasDefaultLinkStyle(){return localStorage.getItem(i.LINK_STYLE_KEY)!==null}setDefaultLinkStyle(e){this.defaultLinkStyle=this.normalizeLinkStyle(e,this.defaultLinkStyleFallback),localStorage.setItem(i.LINK_STYLE_KEY,JSON.stringify(this.defaultLinkStyle))}static \u0275fac=function(t){return new(t||i)(J(va))};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var ot=class{data=[];keyIndex=new Map;dataChange=new Ye([]);itemUpdated=new f;getItems(){return this.data}add(s){if(this.findIndex(s)>=0){this.update(s);return}this.data=[...this.data,s],this.keyIndex.set(this.getItemKey(s),this.data.length-1),this.dataChange.next(this.data)}set(s){let e=[];for(let t of s||[]){let n=this.getItemKey(t),a=this.keyIndex.get(n);e.push(a!==void 0?Object.assign(this.data[a],t):t)}this.data=e,this.reindex(),this.dataChange.next(this.data)}get(s){let e=this.keyIndex.get(s);if(e!==void 0)return this.data[e]}update(s){let e=this.findIndex(s);if(e>=0){let t=Object.assign(this.data[e],s);this.data=[...this.data],this.data[e]=t,this.dataChange.next(this.data),this.itemUpdated.next(t)}}remove(s){let e=this.findIndex(s);e>=0&&(this.data=this.data.filter((t,n)=>n!==e),this.reindex(),this.dataChange.next(this.data))}applyBatch(s,e){if(s.length>0){let t=this.data.length;this.data=[...this.data,...s];for(let n=0;n<s.length;n++)this.keyIndex.set(this.getItemKey(s[n]),t+n)}if(e.length>0){let t=new Set(e.map(n=>this.getItemKey(n)));this.data=this.data.filter(n=>!t.has(this.getItemKey(n))),this.reindex()}else s.length===0&&(this.data=[...this.data]);this.dataChange.next(this.data)}get changes(){return this.dataChange}get itemChanged(){return this.itemUpdated}clear(){this.data=[],this.keyIndex.clear(),this.dataChange.next(this.data)}reindex(){this.keyIndex.clear();for(let s=0;s<this.data.length;s++)this.keyIndex.set(this.getItemKey(this.data[s]),s)}findIndex(s){let e=this.keyIndex.get(this.getItemKey(s));return e===void 0?-1:e}};var Pm=(()=>{class i extends ot{getItemKey(e){return e.link_id}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Le(i)))(n||i)}})();static \u0275prov=P({token:i,factory:i.\u0275fac})}return i})();var zm=(()=>{class i extends ot{getItemKey(e){return e.node_id}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Le(i)))(n||i)}})();static \u0275prov=P({token:i,factory:i.\u0275fac})}return i})();var $m=(()=>{class i{router;toasterService;mapSettingsService;nodeConsoleTrigger=new g;closeNodeConsoleTrigger=new f;consoleResized=new f;openConsoles=0;defaultConsoleWidth=720;defaultConsoleHeight=408;defaultNumberOfColumns=80;defaultNumberOfRows=24;lastNumberOfColumns;lastNumberOfRows;constructor(e,t,n){this.router=e,this.toasterService=t,this.mapSettingsService=n}getNumberOfColumns(){return this.lastNumberOfColumns}getNumberOfRows(){return this.lastNumberOfRows}setNumberOfColumns(e){this.lastNumberOfColumns=e}setNumberOfRows(e){this.lastNumberOfRows=e}openConsoleForNode(e){this.nodeConsoleTrigger.emit(e)}closeConsoleForNode(e){this.closeNodeConsoleTrigger.next(e)}resizeTerminal(e){this.consoleResized.next(e)}getLineWidth(){return this.defaultConsoleWidth/this.defaultNumberOfColumns}getLineHeight(){return this.defaultConsoleHeight/this.defaultNumberOfRows}getUrl(e,t){let n="ws";return e.protocol==="https:"&&(n="wss"),`${n}://${e.host}:${e.port}/${tt.current_version}/projects/${t.project_id}/nodes/${t.node_id}/console/ws?token=${e.authToken}`}sendTerminalSize(e,t,n){e&&e.readyState===WebSocket.OPEN&&e.send(new Blob([JSON.stringify({cols:t,rows:n})]))}openConsolesForAllNodesInWidget(e){let t="Please start the following nodes if you want to open consoles for them: ",n=0;e.forEach(a=>{a.console_type!=="none"&&(a.status==="started"?(this.mapSettingsService.logConsoleSubject.next(!0),setTimeout(()=>{this.openConsoleForNode(a)},500)):(n++,t+=a.name+" "))}),n>0&&this.toasterService.error(t)}openConsolesForAllNodesInNewTabs(e){let t="Please start the following nodes if you want to open consoles in tabs for them: ",n=0;e.forEach(a=>{if(a.console_type==="telnet"||a.console_type==="ssh"||a.console_type==="docker_exec")if(a.status==="started"){let o=this.router.url.split("/"),l=`/static/web-ui/${o[1]}/${o[2]}/${o[3]}/${o[4]}/nodes/${a.node_id}`;window.open(l)}else n++,t+=a.name+" "}),n>0&&this.toasterService.error(t)}static \u0275fac=function(t){return new(t||i)(J(bi),J(ia),J(ya))};static \u0275prov=P({token:i,factory:i.\u0275fac})}return i})();var Km=(()=>{class i{get vertical(){return this._vertical}set vertical(e){this._vertical=Be(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=Be(e)}_inset=!1;static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,n){t&2&&(T("aria-orientation",n.vertical?"vertical":"horizontal"),p("mat-divider-vertical",n.vertical)("mat-divider-horizontal",!n.vertical)("mat-divider-inset",n.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,n){},styles:[`.mat-divider {
display: block;
margin: 0;
border-top-style: solid;
border-top-color: var(--mat-divider-color, var(--mat-sys-outline-variant));
border-top-width: var(--mat-divider-width, 1px);
}
.mat-divider.mat-divider-vertical {
border-top: 0;
border-right-style: solid;
border-right-color: var(--mat-divider-color, var(--mat-sys-outline-variant));
border-right-width: var(--mat-divider-width, 1px);
}
.mat-divider.mat-divider-inset {
margin-left: 80px;
}
[dir=rtl] .mat-divider.mat-divider-inset {
margin-left: auto;
margin-right: 80px;
}
`],encapsulation:2,changeDetection:0})}return i})(),Xm=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[j]})}return i})();var We=typeof window>"u"?!1:"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;function zr(i){let s=i.cloneNode(!0),e=s.querySelectorAll("[id]"),t=i.nodeName.toLowerCase();return s.removeAttribute("id"),e.forEach(n=>{n.removeAttribute("id")}),t==="canvas"?Ca(i,s):(t==="input"||t==="select"||t==="textarea")&&ka(i,s),xa("canvas",i,s,Ca),xa("input, textarea, select",i,s,ka),s}function xa(i,s,e,t){let n=s.querySelectorAll(i);if(n.length){let a=e.querySelectorAll(i);for(let o=0;o<n.length;o++)t(n[o],a[o])}}var Hr=0;function ka(i,s){s.type!=="file"&&(s.value=i.value),s.type==="radio"&&s.name&&(s.name=`mat-clone-${s.name}-${Hr++}`)}function Ca(i,s){let e=s.getContext("2d");if(e)try{e.drawImage(i,0,0)}catch{}}function Sa(i){return i.type.startsWith("touch")}function wa(i,s,e,t){let n={top:i.top,bottom:i.bottom,left:i.left,right:i.right};return s.top&&(n.top+=t),s.bottom&&(n.bottom+=t),s.left&&(n.left+=e),s.right&&(n.right+=e),n.height=n.bottom-n.top,n.width=n.right-n.left,n}function jr(i,s){let e=0,t=0,n=i.nativeElement.style,o=["transform","-ms-transform","-moz-transform","-o-transform"].map(l=>n[l]).find(l=>!!l);if(o&&o.includes("translate")&&(e=o.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),t=o.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),s==="absolute")return{height:i.nativeElement.offsetHeight,width:i.nativeElement.offsetWidth,top:i.nativeElement.offsetTop-t,bottom:i.nativeElement.offsetHeight+i.nativeElement.offsetTop-t,left:i.nativeElement.offsetLeft-e,right:i.nativeElement.offsetWidth+i.nativeElement.offsetLeft-e};{let l=i.nativeElement.getBoundingClientRect();return{height:l.height,width:l.width,top:l.top-t,bottom:l.bottom-t,left:l.left-e,right:l.right-e,scrollTop:i.nativeElement.scrollTop,scrollLeft:i.nativeElement.scrollLeft}}}var Ta=Object.freeze({topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize",leftOrRight:"col-resize",topOrBottom:"row-resize"});function Ma(i,s){return i.left&&i.top?s.topLeft:i.right&&i.top?s.topRight:i.left&&i.bottom?s.bottomLeft:i.right&&i.bottom?s.bottomRight:i.left||i.right?s.leftOrRight:i.top||i.bottom?s.topOrBottom:""}function Nt({edges:i,initialRectangle:s,newRectangle:e}){let t={};return Object.keys(i).forEach(n=>{t[n]=(e[n]||0)-(s[n]||0)}),t}var Ia="resize-active",Vr="resize-ghost-element",Gr=50,Wr=(()=>{class i{constructor(){this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=Ta,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=Gr,this.resizeStart=new g,this.resizing=new g,this.resizeEnd=new g,this.mouseup=new f,this.mousedown=new f,this.mousemove=new f,this.destroy$=new f,this.platformId=r(Rn),this.renderer=r(ae),this.elm=r(D),this.zone=r(z),this.rendererFactory=r(Fn),this.document=r(be),this.pointerEventListeners=bn.getInstance(this.rendererFactory.createRenderer(this.document,null),this.zone)}ngOnInit(){let e=G(this.pointerEventListeners.pointerDown,this.mousedown),t=G(this.pointerEventListeners.pointerMove,this.mousemove).pipe(In(({event:b})=>{a&&b.cancelable&&!Sa(b)&&b.preventDefault()}),rt()),n=G(this.pointerEventListeners.pointerUp,this.mouseup),a,o=()=>{a&&a.clonedNode&&(this.elm.nativeElement.parentElement.removeChild(a.clonedNode),this.renderer.setStyle(this.elm.nativeElement,"visibility","inherit"))},l=()=>S(S({},Ta),this.resizeCursors);e.pipe(yn(b=>{function V(R){return{clientX:R.clientX-b.clientX,clientY:R.clientY-b.clientY}}let ue=()=>{let R={x:1,y:1};return a&&(this.resizeSnapGrid.left&&a.edges.left?R.x=+this.resizeSnapGrid.left:this.resizeSnapGrid.right&&a.edges.right&&(R.x=+this.resizeSnapGrid.right),this.resizeSnapGrid.top&&a.edges.top?R.y=+this.resizeSnapGrid.top:this.resizeSnapGrid.bottom&&a.edges.bottom&&(R.y=+this.resizeSnapGrid.bottom)),R};function fe(R,oe){return{x:Math.ceil(R.clientX/oe.x),y:Math.ceil(R.clientY/oe.y)}}return G(t.pipe($e(1)).pipe(pe(R=>[,R])),t.pipe(ut())).pipe(pe(([R,oe])=>[R&&V(R),V(oe)])).pipe(Z(([R,oe])=>{if(!R)return!0;let ht=ue(),_n=fe(R,ht),gn=fe(oe,ht);return _n.x!==gn.x||_n.y!==gn.y})).pipe(pe(([,R])=>{let oe=ue();return{clientX:Math.round(R.clientX/oe.x)*oe.x,clientY:Math.round(R.clientY/oe.y)*oe.y}})).pipe(x(G(n,e)))})).pipe(Z(()=>!!a)).pipe(pe(({clientX:b,clientY:V})=>wa(a.startingRect,a.edges,b,V))).pipe(Z(b=>this.allowNegativeResizes||!!(b.height&&b.width&&b.height>0&&b.width>0))).pipe(Z(b=>this.validateResize?this.validateResize({rectangle:b,edges:Nt({edges:a.edges,initialRectangle:a.startingRect,newRectangle:b})}):!0),x(this.destroy$)).subscribe(b=>{a&&a.clonedNode&&(this.renderer.setStyle(a.clonedNode,"height",`${b.height}px`),this.renderer.setStyle(a.clonedNode,"width",`${b.width}px`),this.renderer.setStyle(a.clonedNode,"top",`${b.top}px`),this.renderer.setStyle(a.clonedNode,"left",`${b.left}px`)),this.resizing.observers.length>0&&this.zone.run(()=>{this.resizing.emit({edges:Nt({edges:a.edges,initialRectangle:a.startingRect,newRectangle:b}),rectangle:b})}),a.currentRect=b}),e.pipe(pe(({edges:b})=>b||{}),Z(b=>Object.keys(b).length>0),x(this.destroy$)).subscribe(b=>{a&&o();let V=jr(this.elm,this.ghostElementPositioning);a={edges:b,startingRect:V,currentRect:V};let ue=l(),fe=Ma(a.edges,ue);this.renderer.setStyle(document.body,"cursor",fe),this.setElementClass(this.elm,Ia,!0),this.enableGhostResize&&(a.clonedNode=zr(this.elm.nativeElement),this.elm.nativeElement.parentElement.appendChild(a.clonedNode),this.renderer.setStyle(this.elm.nativeElement,"visibility","hidden"),this.renderer.setStyle(a.clonedNode,"position",this.ghostElementPositioning),this.renderer.setStyle(a.clonedNode,"left",`${a.startingRect.left}px`),this.renderer.setStyle(a.clonedNode,"top",`${a.startingRect.top}px`),this.renderer.setStyle(a.clonedNode,"height",`${a.startingRect.height}px`),this.renderer.setStyle(a.clonedNode,"width",`${a.startingRect.width}px`),this.renderer.setStyle(a.clonedNode,"cursor",Ma(a.edges,ue)),this.renderer.addClass(a.clonedNode,Vr),a.clonedNode.scrollTop=a.startingRect.scrollTop,a.clonedNode.scrollLeft=a.startingRect.scrollLeft),this.resizeStart.observers.length>0&&this.zone.run(()=>{this.resizeStart.emit({edges:Nt({edges:b,initialRectangle:V,newRectangle:V}),rectangle:wa(V,{},0,0)})})}),n.pipe(x(this.destroy$)).subscribe(()=>{a&&(this.renderer.removeClass(this.elm.nativeElement,Ia),this.renderer.setStyle(document.body,"cursor",""),this.renderer.setStyle(this.elm.nativeElement,"cursor",""),this.resizeEnd.observers.length>0&&this.zone.run(()=>{this.resizeEnd.emit({edges:Nt({edges:a.edges,initialRectangle:a.startingRect,newRectangle:a.currentRect}),rectangle:a.currentRect})}),o(),a=null)})}ngOnDestroy(){Gn(this.platformId)&&this.renderer.setStyle(document.body,"cursor",""),this.mousedown.complete(),this.mouseup.complete(),this.mousemove.complete(),this.destroy$.next()}setElementClass(e,t,n){n?this.renderer.addClass(e.nativeElement,t):this.renderer.removeClass(e.nativeElement,t)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=I({type:i,selectors:[["","mwlResizable",""]],inputs:{validateResize:"validateResize",enableGhostResize:"enableGhostResize",resizeSnapGrid:"resizeSnapGrid",resizeCursors:"resizeCursors",ghostElementPositioning:"ghostElementPositioning",allowNegativeResizes:"allowNegativeResizes",mouseMoveThrottleMS:"mouseMoveThrottleMS"},outputs:{resizeStart:"resizeStart",resizing:"resizing",resizeEnd:"resizeEnd"},exportAs:["mwlResizable"]})}}return i})(),bn=class i{static getInstance(s,e){return i.instance||(i.instance=new i(s,e)),i.instance}constructor(s,e){this.pointerDown=new Oe(t=>{let n,a;return e.runOutsideAngular(()=>{n=s.listen("document","mousedown",o=>{t.next({clientX:o.clientX,clientY:o.clientY,event:o})}),We&&(a=s.listen("document","touchstart",o=>{t.next({clientX:o.touches[0].clientX,clientY:o.touches[0].clientY,event:o})}))}),()=>{n(),We&&a()}}).pipe(rt()),this.pointerMove=new Oe(t=>{let n,a;return e.runOutsideAngular(()=>{n=s.listen("document","mousemove",o=>{t.next({clientX:o.clientX,clientY:o.clientY,event:o})}),We&&(a=s.listen("document","touchmove",o=>{t.next({clientX:o.targetTouches[0].clientX,clientY:o.targetTouches[0].clientY,event:o})}))}),()=>{n(),We&&a()}}).pipe(rt()),this.pointerUp=new Oe(t=>{let n,a,o;return e.runOutsideAngular(()=>{n=s.listen("document","mouseup",l=>{t.next({clientX:l.clientX,clientY:l.clientY,event:l})}),We&&(a=s.listen("document","touchend",l=>{t.next({clientX:l.changedTouches[0].clientX,clientY:l.changedTouches[0].clientY,event:l})}),o=s.listen("document","touchcancel",l=>{t.next({clientX:l.changedTouches[0].clientX,clientY:l.changedTouches[0].clientY,event:l})}))}),()=>{n(),We&&(a(),o())}}).pipe(rt())}},sh=(()=>{class i{constructor(){this.renderer=r(ae),this.element=r(D),this.zone=r(z),this.resizableDirective=r(Wr,{optional:!0}),this.resizeEdges={},this.eventListeners={},this.destroy$=new f}ngOnInit(){this.zone.runOutsideAngular(()=>{this.listenOnTheHost("mousedown").subscribe(e=>{this.onMousedown(e,e.clientX,e.clientY)}),this.listenOnTheHost("mouseup").subscribe(e=>{this.onMouseup(e.clientX,e.clientY)}),We&&(this.listenOnTheHost("touchstart").subscribe(e=>{this.onMousedown(e,e.touches[0].clientX,e.touches[0].clientY)}),G(this.listenOnTheHost("touchend"),this.listenOnTheHost("touchcancel")).subscribe(e=>{this.onMouseup(e.changedTouches[0].clientX,e.changedTouches[0].clientY)}))})}ngOnDestroy(){this.destroy$.next(),this.unsubscribeEventListeners()}onMousedown(e,t,n){e.cancelable&&!Sa(e)&&e.preventDefault(),this.eventListeners.touchmove||(this.eventListeners.touchmove=this.renderer.listen(this.element.nativeElement,"touchmove",a=>{this.onMousemove(a,a.targetTouches[0].clientX,a.targetTouches[0].clientY)})),this.eventListeners.mousemove||(this.eventListeners.mousemove=this.renderer.listen(this.element.nativeElement,"mousemove",a=>{this.onMousemove(a,a.clientX,a.clientY)})),this.resizable.mousedown.next({clientX:t,clientY:n,edges:this.resizeEdges})}onMouseup(e,t){this.unsubscribeEventListeners(),this.resizable.mouseup.next({clientX:e,clientY:t,edges:this.resizeEdges})}get resizable(){return this.resizableDirective||this.resizableContainer}onMousemove(e,t,n){this.resizable.mousemove.next({clientX:t,clientY:n,edges:this.resizeEdges,event:e})}unsubscribeEventListeners(){Object.keys(this.eventListeners).forEach(e=>{this.eventListeners[e](),delete this.eventListeners[e]})}listenOnTheHost(e){return kn(this.element.nativeElement,e).pipe(x(this.destroy$))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=I({type:i,selectors:[["","mwlResizeHandle",""]],inputs:{resizeEdges:"resizeEdges",resizableContainer:"resizableContainer"}})}}return i})(),lh=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=B({type:i})}static{this.\u0275inj=N({})}}return i})();var uh=(()=>{class i{_entries=Q([]);entries=this._entries.asReadonly();getSnapshot(){return this._entries()}rebuildAll(e){let t=[];for(let n of e)this.collect(n,t);this.setEntries(t)}rebuildFromAggregate(e){let t=[];for(let[n,a]of Object.entries(e)){let o=n.indexOf("/"),l=o>=0?n.slice(o+1):n;t.push({name:l,linkId:a.link_id,bpf:a.bpf,tag:a.tag??null,color:a.color})}this.setEntries(t)}reconcileLink(e){let t=this._entries().filter(n=>n.linkId!==e.link_id);this.collect(e,t),this.setEntries(t)}removeLink(e){let t=this._entries().filter(n=>n.linkId!==e);this.setEntries(t)}reset(){this._entries.set([])}collect(e,t){if(e.markers)for(let[n,a]of Object.entries(e.markers))t.push({name:n,linkId:e.link_id,bpf:a.bpf,tag:a.tag,color:a.color})}setEntries(e){Yr(this._entries(),e)||this._entries.set(e)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=P({token:i,factory:i.\u0275fac})}return i})();function Yr(i,s){if(i.length!==s.length)return!1;let e=n=>`${n.linkId}\0${n.name}\0${n.bpf}\0${n.tag??""}\0${n.color??""}`,t=new Set(i.map(e));for(let n of s)if(!t.has(e(n)))return!1;return!0}export{Ba as a,_s as b,Zt as c,Ws as d,Ct as e,Ys as f,$s as g,nn as h,Io as i,an as j,So as k,Do as l,on as m,rn as n,Wi as o,$i as p,Yi as q,At as r,St as s,Dt as t,no as u,en as v,Et as w,Ii as x,Si as y,Di as z,Rt as A,Cc as B,wc as C,Tc as D,qi as E,Fc as F,Ge as G,Lt as H,dn as I,Zc as J,Xi as K,Zi as L,na as M,ia as N,_d as O,aa as P,va as Q,hr as R,Yd as S,Ir as T,Dr as U,Er as V,ym as W,Ar as X,Lr as Y,xm as Z,km as _,ya as $,ot as aa,Pm as ba,zm as ca,uh as da,$m as ea,Km as fa,Xm as ga,Wr as ha,sh as ia,lh as ja};