1import{$n as ko$1,$t as Z,Ar as sy,At as Ul,B as Jf,Bn as iT,Br as vm,Bt as WD,C as D$,Cn as et$5,Cr as qU,D as Fo$1,Dn as ft$1,Dr as rT,En as fr$1,Et as Ti,F as Ia,Fn as hD,Fr as tt$3,Ft as Vh,Gt as XC,H as K_,Hn as ib,Hr as wr$1,I as Im,In as hb,Ir as um,It as Vl,Jn as jr$1,Jr as xt$1,Kn as ja,Kr as xE,Kt as Xt$1,L as Ir$1,Ln as hm,Lr as un,M as HV,Mr as tS,Nn as gy,Nr as te$2,Nt as Va,On as g$1,Or as sm,Ot as Tv,P as Hr,Pn as h2,Pr as tm,Q as Md,Qn as kn$1,Qr as ya,Qt as Yv,R as JC,Rr as ut,Rt as Vv,S as Cm,Sn as ep,Sr as q$1,T as Em,Tr as qs,Tt as St$1,Un as ie$1,Ur as ws,Ut as Wr,Vt as Wa,W as Ke$2,Wn as ir$1,Wr as wv,Wt as X$1,Xr as y,Xt as Yl,Y as Lo$1,Z as M$1,Zn as kV,Zt as Ys,_n as eD,_r as od,_t as Qe$2,a as $m,b as Bt$1,bn as el,br as pp,c as AC,cn as b_,cr as me,d as B,dt as Pb,ei as za,en as ZC,er as ks,et as Mr$1,f as B$,fr as nm,ft as Pe$1,gn as dt$2,gt as Q_,h as BV,hn as dn,hr as oD,ht as QI,i as $l,ir as lm,j as Gs,jr as tD,kr as st$1,l as AI,ln as bm,m as BU,mn as df,mr as nu,mt as QC,n as $T,ni as zw,nn as Zl,nr as lb,o as $r,on as an,or as m$2,ot as Oe,p as BT,pr as nt$1,q as Lm,qt as Xu,rr as le,rt as Nr$1,s as A$1,sn as av,sr as mb,st as P$2,t as $$1,ti as zl,u as Ar$1,un as cS,ur as my,ut as Pa,v as Bn$1,vn as eT,vr as pb,w as E$,wn as fI,wr as ql,x as C$1,xn as en,xr as pt$2,xt as RV,yn as eg,yr as pm,yt as Qv,zn as ht$2,zr as uv,zt as W$2}from"./chunk-DWOe7fuv.js";import{A as sn,D as oo$1,M as vn,N as y$1,O as ri$1,S as ii$1,a as It$2,b as fo$1,d as Se$1,f as Tt$2,i as Do$1,j as so$1,m as Z$1,n as Be$2,o as K$1,p as Xa,r as Ct$1,v as bt$1,w as je$1,x as go$1,y as ce}from"./chunk-DsjOZHc9.js";import{_ as wt$1,d as fe$1,i as N$1,m as mt$2,n as J$1,p as ie$2,r as K$2,t as D$2}from"./chunk-pZjvMjQk.js";var c$1=class o{constructor(e){this.http=e}http;base=`/api/forum`;unwrap(e,t){return ft$1(this,null,function*(){let n=yield Tv(e);if(!n?.success||n.data===void 0||n.data===null)throw new Error(n?.error||t);return n.data})}getCategories(){return this.unwrap(this.http.get(`${this.base}/categories`),`Kategorien konnten nicht geladen werden`)}getTags(){return this.unwrap(this.http.get(`${this.base}/tags`),`Tags konnten nicht geladen werden`)}getTopics(e={}){let t=new xt$1;e.categoryId!=null&&(t=t.set(`categoryId`,String(e.categoryId)));for(let n of e.tagIds??[])t=t.append(`tagId`,String(n));return e.q?.trim()&&(t=t.set(`q`,e.q.trim())),e.sort&&(t=t.set(`sort`,e.sort)),e.page!=null&&(t=t.set(`page`,String(e.page))),e.pageSize!=null&&(t=t.set(`pageSize`,String(e.pageSize))),e.mine&&(t=t.set(`mine`,`true`)),this.unwrap(this.http.get(`${this.base}/topics`,{params:t}),`Themen konnten nicht geladen werden`)}getTopic(e){return this.unwrap(this.http.get(`${this.base}/topics/${e}`),`Thema konnte nicht geladen werden`)}createTopic(e){return this.unwrap(this.http.post(`${this.base}/topics`,e),`Thema konnte nicht angelegt werden`)}createPost(e,t,n=null){return this.unwrap(this.http.post(`${this.base}/topics/${e}/posts`,{bodyHtml:t,parentPostId:n}),`Antwort konnte nicht gesendet werden`)}uploadAttachment(e,t){let n=new FormData;return n.append(`file`,t,t.name),this.unwrap(this.http.post(`${this.base}/posts/${e}/attachments`,n),`Anhang konnte nicht hochgeladen werden`)}downloadAttachment(e){return this.http.get(`${this.base}/attachments/${e}/download`,{responseType:`blob`,observe:`response`})}voteTopic(e){return this.unwrap(this.http.post(`${this.base}/topics/${e}/vote`,{}),`Abstimmen fehlgeschlagen`)}votePost(e){return this.unwrap(this.http.post(`${this.base}/posts/${e}/vote`,{}),`Abstimmen fehlgeschlagen`)}setSubscription(e,t){return this.unwrap(this.http.post(`${this.base}/topics/${e}/subscribe`,{subscribe:t}),`Abo konnte nicht geändert werden`)}markRead(e){return ft$1(this,null,function*(){try{yield Tv(this.http.post(`${this.base}/topics/${e}/read`,{}))}catch(t){}})}getUnreadCount(){return ft$1(this,null,function*(){return(yield this.unwrap(this.http.get(`${this.base}/unread-count`),`Ungelesene Themen konnten nicht geladen werden`)).unread??0})}plainTextToHtml(e){let t=i=>i.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`),n=e.replace(/\r\n/g,` 2`).trim();return n?n.split(/\n{2,}/).map(i=>`<p>${t(i).replace(/\n/g,`<br>`)}</p>`).join(``):``}static ɵfac=function(t){return new(t||o)(C$1(ya))};static ɵprov=A$1({token:o,factory:o.ɵfac,providedIn:`root`})};var Dt$1=oo$1();function Lt$1(o){return new X(o.get(mt$2),o.get(P$2))}var X=class{_viewportRuler;_previousHTMLStyles={top:``,left:``};_previousScrollPosition;_isEnabled=!1;_document;
vendor: 4,849 bytes, line 2
2constructor(t,e){this._viewportRuler=t,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||``,this._previousHTMLStyles.top=t.style.top||``,t.style.left=fo$1(-this._previousScrollPosition.left),t.style.top=fo$1(-this._previousScrollPosition.top),t.classList.add(`cdk-global-scrollblock`),this._isEnabled=!0}}disable(){if(this._isEnabled){let t=this._document.documentElement,e=this._document.body,i=t.style,n=e.style,s=i.scrollBehavior||``,r=n.scrollBehavior||``;this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove(`cdk-global-scrollblock`),Dt$1&&(i.scrollBehavior=n.scrollBehavior=`auto`),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Dt$1&&(i.scrollBehavior=s,n.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains(`cdk-global-scrollblock`)||this._isEnabled)return!1;let e=this._document.documentElement,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}};function Xt(o,t){return new F(o.get(ie$2),o.get(W$2),o.get(mt$2),t)}var F=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(this._scrollSubscription)return;let t=this._scrollDispatcher.scrolled(0).pipe(dn(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var E=class{enable(){}disable(){}attach(){}};function Q$1(o,t){return t.some(e=>{let i=o.bottom<e.top,n=o.top>e.bottom,s=o.right<e.left,r=o.left>e.right;return i||n||s||r})}function Mt$1(o,t){return t.some(e=>{let i=o.top<e.top,n=o.bottom>e.bottom,s=o.left<e.left,r=o.right>e.right;return i||n||s||r})}function it$1(o,t){return new T$2(o.get(ie$2),o.get(mt$2),o.get(W$2),t)}var T$2=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(!this._scrollSubscription){let t=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(t).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:n}=this._viewportRuler.getViewportSize();Q$1(e,[{width:i,height:n,bottom:n,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}};var Ft=(()=>{class o{_injector=g$1(ie$1);noop=()=>new E;close=e=>Xt(this._injector,e);block=()=>Lt$1(this._injector);reposition=e=>it$1(this._injector,e);static ɵfac=function(i){return new(i||o)};static ɵprov=X$1({token:o,factory:o.ɵfac})}return o})();var D$1=class{positionStrategy;scrollStrategy=new E;panelClass=``;hasBackdrop=!1;backdropClass=`cdk-overlay-dark-backdrop`;disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;usePopover;eventPredicate;constructor(t){if(t){let e=Object.keys(t);for(let i of e)t[i]!==void 0&&(this[i]=t[i])}}};var N=class{connectionPair;scrollableViewProperties;constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}};var Tt$1=(()=>{class o{_attachedOverlays=[];_document=g$1(P$2);_isAttached=!1;ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}canReceiveEvent(e,i,n){return n.observers.length<1?!1:e.eventPredicate?e.eventPredicate(i):!0}static ɵfac=function(i){return new(i||o)};static ɵprov=X$1({token:o,factory:o.ɵfac})}return o}
2)();var Nt$1=(()=>{class o extends Tt$1{_ngZone=g$1(W$2);_renderer=g$1(kn$1).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen(`body`,`keydown`,this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let i=this._attachedOverlays;for(let n=i.length-1;n>-1;n--){let s=i[n];if(this.canReceiveEvent(s,e,s._keydownEvents)){this._ngZone.run(()=>s._keydownEvents.next(e));break}}};static ɵfac=function(i){return new(i||o)};static ɵprov=X$1({token:o,factory:o.ɵfac})}return o})();var Wt=(()=>{class o extends Tt$1{_platform=g$1(uv);_ngZone=g$1(W$2);_renderer=g$1(kn$1).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget=null;_cleanups;add(e){if(super.add(e),!this._isAttached){let i=this._document.body,n={capture:!0},s=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[s.listen(i,`pointerdown`,this._pointerDownListener,n),s.listen(i,`click`,this._clickListener,n),s.listen(i,`auxclick`,this._clickListener,n),s.listen(i,`contextmenu`,this._clickListener,n)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor=`pointer`,this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=y$1(e)};_clickListener=e=>{let i=y$1(e),n=e.type===`click`&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let s=this._attachedOverlays.slice();for(let r=s.length-1;r>-1;r--){let a=s[r],h=a._outsidePointerEvents;if(!(!a.hasAttached()||!this.canReceiveEvent(a,e,h))){if(At$2(a.overlayElement,i)||At$2(a.overlayElement,n))break;this._ngZone?this._ngZone.run(()=>h.next(e)):h.next(e)}}};static ɵfac=function(i){return new(i||o)};static ɵprov=X$1({token:o,factory:o.ɵfac})}return o})();function At$2(o,t){let e=typeof ShadowRoot<`u`&&ShadowRoot,i=t;for(;i;){if(i===o)return!0;i=e&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var Ht=(()=>{class o{static ɵfac=function(i){return new(i||o)};static ɵcmp=ko$1({type:o,selectors:[[`ng-component`]],hostAttrs:[`cdk-overlay-style-loader`,``],decls:0,vars:0,template:function(i,n){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper { 3 pointer-events: none; 4 top: 0; 5 left: 0; 6 height: 100%; 7 width: 100%; 8} 9 10.cdk-overlay-container { 11 position: fixed; 12} 13@layer cdk-overlay { 14 .cdk-overlay-container { 15 z-index: 1000; 16 } 17} 18.cdk-overlay-container:empty { 19 display: none; 20} 21 22.cdk-global-overlay-wrapper { 23 display: flex; 24 position: absolute; 25} 26@layer cdk-overlay { 27 .cdk-global-overlay-wrapper { 28 z-index: 1000; 29 } 30} 31 32.cdk-overlay-pane { 33 position: absolute; 34 pointer-events: auto; 35 box-sizing: border-box; 36 display: flex; 37 max-width: 100%; 38 max-height: 100%; 39} 40@layer cdk-overlay { 41 .cdk-overlay-pane { 42 z-index: 1000; 43 } 44} 45 46.cdk-overlay-backdrop { 47 position: absolute; 48 top: 0; 49 bottom: 0; 50 left: 0; 51 right: 0; 52 pointer-events: auto; 53 -webkit-tap-highlight-color: transparent; 54 opacity: 0; 55 touch-action: manipulation; 56} 57@layer cdk-overlay { 58 .cdk-overlay-backdrop { 59 z-index: 1000; 60 transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1); 61 } 62} 63@media (prefers-reduced-motion) { 64 .cdk-overlay-backdrop { 65 transition-duration: 1ms; 66 } 67} 68 69.cdk-overlay-backdrop-showing { 70 opacity: 1; 71} 72@media (forced-colors: active) { 73 .cdk-overlay-backdrop-showing { 74 opacity: 0.6; 75 } 76} 77 78@layer cdk-overlay { 79 .cdk-overlay-dark-backdrop { 80 background: rgba(0, 0, 0, 0.32); 81 } 82} 83 84.cdk-overlay-transparent-backdrop { 85 transition: visibility 1ms linear, opacity 1ms linear; 86 visibility: hidden; 87 opacity: 1; 88} 89.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing, .cdk-high-contrast-active .cdk-overlay-transparent-backdrop { 90 opacity: 0; 91 visibility: visible; 92} 93
94.cdk-overlay-backdrop-noop-animation { 95 transition: none; 96} 97 98.cdk-overlay-connected-position-bounding-box { 99 position: absolute; 100 display: flex; 101 flex-direction: column; 102 min-width: 1px; 103 min-height: 1px; 104} 105@layer cdk-overlay { 106 .cdk-overlay-connected-position-bounding-box { 107 z-index: 1000; 108 } 109} 110 111.cdk-global-scrollblock { 112 position: fixed; 113 width: 100%; 114 overflow-y: scroll; 115} 116 117.cdk-overlay-popover { 118 background: none; 119 border: none; 120 padding: 0; 121 outline: 0; 122 overflow: visible; 123 position: fixed; 124 pointer-events: none; 125 white-space: normal; 126 color: inherit; 127 text-decoration: none; 128 width: 100%; 129 height: 100%; 130 inset: auto; 131 top: 0; 132 left: 0; 133} 134.cdk-overlay-popover::backdrop { 135 display: none; 136} 137.cdk-overlay-popover .cdk-overlay-backdrop { 138 position: fixed; 139 z-index: auto; 140} 141`],encapsulation:2})}return o})();var zt$1=(()=>{class o{_platform=g$1(uv);_containerElement;_document=g$1(P$2);_styleLoader=g$1(tS);ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e=`cdk-overlay-container`;if(this._platform.isBrowser||so$1()){let n=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;s<n.length;s++)n[s].remove()}let i=this._document.createElement(`div`);i.classList.add(e),so$1()?i.setAttribute(`platform`,`test`):this._platform.isBrowser||i.setAttribute(`platform`,`server`),this._document.body.appendChild(i),this._containerElement=i}_loadStyles(){this._styleLoader.load(Ht)}static ɵfac=function(i){return new(i||o)};static ɵprov=X$1({token:o,factory:o.ɵfac})}return o})();var tt$2=class{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(t,e,i,n){this._renderer=e,this._ngZone=i,this.element=t.createElement(`div`),this.element.classList.add(`cdk-overlay-backdrop`),this._cleanupClick=e.listen(this.element,`click`,n)}detach(){this._ngZone.runOutsideAngular(()=>{let t=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(t,`transitionend`,this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),t.style.pointerEvents=`none`,t.classList.remove(`cdk-overlay-backdrop-showing`)})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}};function ot(o){return o&&o.nodeType===1}var J=fr$1([]);var W$1=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new te$2;_attachments=new te$2;_detachments=new te$2;_positionStrategy;_scrollStrategy;_locationChanges;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=!1;_previousHostParent;_keydownEvents=new te$2;_outsidePointerEvents=new te$2;_afterNextRenderRef;constructor(t,e,i,n,s,r,a,h,d,l=!1,c,f){this._portalOutlet=t,this._host=e,this._pane=i,this._config=n,this._ngZone=s,this._keyboardDispatcher=r,this._document=a,this._location=h,this._outsideClickDispatcher=d,this._animationsDisabled=l,this._injector=c,this._renderer=f,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(t){if(this._disposed)return null;this._attachHost();let e=this._portalOutlet.attach(t);if(this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),Nr$1(()=>{J.update(i=>i.includes(this)?i:[...i,this])}),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=AI(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation===!0||this._config.disposeOnNavigation===`pop-state`){let i=this._location.subscribe(()=>this.dispose());this._locationChanges=()=>i.unsubscribe()}else this._config.disposeOnNavigation===`url-change`&&(this._locationChanges=this._location.onUrlChange(()=>this.dispose()));return this._outsideClickDispatcher.add(this),typeof e?.onDestroy==`function`&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let t=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges?.(),this._outsideClickDispatcher.remove(this),Nr$1(()=>{J.update(e=>e.filter(i=>i!==this))}),t}dispose(){if(this._disposed)return;let t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges?.(),this._keyboardDispatcher.remove(this),this._portalOutlet.dis
141pose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,t&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=!0,Nr$1(()=>{J.update(e=>e.filter(i=>i!==this))})}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=B(B({},this._config),t),this._updateElementSize()}setDirection(t){this._config=q$1(B({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){let t=this._config.direction;return t?typeof t==`string`?t:t.value:`ltr`}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute(`dir`,this.getDirection())}_updateElementSize(){if(!this._pane)return;let t=this._pane.style;t.width=fo$1(this._config.width),t.height=fo$1(this._config.height),t.minWidth=fo$1(this._config.minWidth),t.minHeight=fo$1(this._config.minHeight),t.maxWidth=fo$1(this._config.maxWidth),t.maxHeight=fo$1(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?``:`none`}_attachHost(){if(!this._host.parentElement){let t=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;ot(t)?t.after(this._host):t?.type===`parent`?t.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host)}if(this._config.usePopover)try{this._host.showPopover()}catch(t){}}_attachBackdrop(){let t=`cdk-overlay-backdrop-showing`;this._backdropRef?.dispose(),this._backdropRef=new tt$2(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add(`cdk-overlay-backdrop-noop-animation`),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<`u`?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(t))}):this._backdropRef.element.classList.add(t)}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(t,e,i){let n=Md(e||[]).filter(s=>!!s);n.length&&(i?t.classList.add(...n):t.classList.remove(...n))}_detachContentWhenEmpty(){let t=!1;try{this._detachContentAfterRenderRef=AI(()=>{t=!0,this._detachContent()},{injector:this._injector})}catch(e){if(t)throw e;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let t=this._scrollStrategy;t?.disable(),t?.detach?.()}};var Bt=`cdk-overlay-connected-position-bounding-box`;var $t$1=/([A-Za-z%]+)$/;function nt(o,t){return new H$1(t,o.get(mt$2),o.get(P$2),o.get(uv),o.get(zt$1))}var H$1=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=!1;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=!1;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new te$2;_resizeSubscription=$$1.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation=`global`;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}
vendor: 8,253 bytes, line 141
141constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=s,this.setOrigin(t)}attach(t){this._overlayRef&&this._overlayRef,this._validatePositions(),t.hostElement.classList.add(Bt),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._getContainerRect();let t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=this._containerRect,s=[],r;for(let a of this._preferredPositions){let h=this._getOriginPoint(t,n,a),d=this._getOverlayPoint(h,e,a),l=this._getOverlayFit(d,e,i,a);if(l.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,h);return}if(this._canFitWithFlexibleDimensions(l,d,i)){s.push({position:a,origin:h,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(h,a)});continue}(!r||r.overlayFit.visibleArea<l.visibleArea)&&(r={overlayFit:l,overlayPoint:d,originPoint:h,position:a,overlayRect:e})}if(s.length){let a=null,h=-1;for(let d of s){let l=d.boundingBoxRect.width*d.boundingBoxRect.height*(d.position.weight||1);l>h&&(h=l,a=d)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(r.position,r.originPoint);return}this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&w$1(this._boundingBox.style,{top:``,left:``,right:``,bottom:``,height:``,width:``,alignItems:``,justifyContent:``}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Bt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let t=this._lastPosition;t?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(t,this._getOriginPoint(this._originRect,this._containerRect,t))):this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,t.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}withPopoverLocation(t){return this._popoverLocation=t,this}getPopoverInsertionPoint(){return this._popoverLocation===`global`?null:this._popoverLocation!==`inline`?this._popoverLocation:this._origin instanceof ut?this._origin.nativeElement:ot(this._origin)?this._origin:null}_getOriginPoint(t,e,i){let n;if(i.originX==`center`)n=t.left+t.width/2;else{let r=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;n=i.originX==`start`?r:a}e.left<0&&(n-=e.left);let s;return i.originY==`center`?s=t.top+t.height/2:s=i.originY==`top`?t.top:t.bottom,e.top<0&&(s-=e.top),{x:n,y:s}}_getOverlayPoint(t,e,i){let n;i.overlayX==`center`?n=-e.width/2:i.overlayX===`start`?n=this._isRtl()?-e.width:0:n=this._isRtl()?0:-e.width;let s;return i.overlayY==`center`?s=-e.height/2:s=i.overlayY==`top`?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){let s=Yt(e),{x:r,y:a}=t,h=this._getOffset(n,`x`),d=this._getOffset(n,`y`);h&&(r+=h),d&&(a+=d);let l=0-r,c=r+s.width-i.width,f=0-a,_=a+s.height-i.height,g=this._subtractOverflows(s.width,l,c),y=this._subtractOverflows(s.height,f,_),at=g*y;return{visibleArea:at,isCompletelyWithinViewport:s.width*s.height===at,fitsInViewportVertically:y===s.height,fitsInViewportHorizontally:g==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){let n=i.bottom-e.y,s=i.right-e.x,r=Vt$1(this._overlayRef.getConfig().minHeight),a=Vt$1(this._overlayRef.getConfig().minWidth),h=t.fitsInViewportVertically||r!=null&&r<=n,d=t.fitsInViewportHorizontally||a!=null&&a<=s;return h&&d}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};let n=Yt(e),s=this._viewportRect,r=Math.max(t.x+n.width-s.width,0),a=Math.max(t.y+n.height-s.height,0),h=Math.max(s.top-i.top-t.y,0),d=Math.max(s.left-i.left-t.x,0),l=0,c=0;return n.width<=s.width?l=d||-r:l=t.x<this._getViewportMarginStart()?s.left-i.left-t.x:0,n.height<=s.height?c=h||-a:c=t.y<this._getViewportMarginTop()?s.top-i.top-t.y:0,this._previousPushAmount={x:l,y:c},{x:t.x+l,y:t.y+c}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._positionChanges.observers.length){let i=this._getScrollVisibility();if(t!==this._lastPosition||!this._lastScrollVisibility||!Ut$1(this._lastScrollVisibility,i)){let n=new N(t,i);this._positionChanges.next(n)}this._lastScrollVisibility=i}this._lastPosition=t,this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;let e=this._boundingBox.querySelectorAll(this._transformOriginSelector),i,n=t.overlayY;t.overlayX===`center`?i=`center`:this._isRtl()?i=t.overlayX===`start`?`right`:`left`:i=t.overlayX===`start`?`left`:`right`;for(let s=0;s<e.length;s++)e[s].style.transformOrigin=`${i} ${n}`}_calculateBoundingBoxRect(t,e){let i=this._viewportRect,n=this._isRtl(),s,r,a;if(e.overlayY===`top`)r=t.y,s=i.height-r+this._getViewportMarginBottom();else if(e.overlayY===`bottom`)a=i.height-t.y+this._getViewportMarginTop()+this._getViewportMarginBottom(),s=i.height-a+this._getViewportMarginTop();else{let _=Math.min(i.bottom-t.y+i.top,t.y),g=this._lastBoundingBoxSize.height;s=_*2,r=t.y-_,s>g&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-g/2)}let h=e.overlayX===`start`&&!n||e.overlayX===`end`&&n,d=e.overlayX===`end`&&!n||e.overlayX===`start`&&n,l,c,f;if(d)f=i.width-t.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),l=t.x-this._getViewportMarginStart();else if(h)c=t.x,l=i.right-t.x-this._getViewportMarginEnd();else{let _=Math.min(i.right-t.x+i.left,t.x),g=this._lastBoundingBoxSize.width;l=_*2,c=t.x-_,l>g&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-g/2)}return{top:r,left:c,bottom:a,right:f,width:l,height:s}}_setBoundingBoxStyles(t,e){let i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let n={};if(this._hasExactPosition())n.top=n.left=`0`,n.bottom=n.right=`auto`,n.maxHeight=n.maxWidth=``,n.width=n.height=`100%`;else{let s=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;n.width=fo$1(i.width),n.height=fo$1(i.height),n.top=fo$1(i.top)||`auto`,n.bottom=fo$1(i.bottom)||`auto`,n.left=fo$1(i.left)||`auto`,n.right=fo$1(i.right)||`auto`,e.overlayX===`center`?n.alignItems=`center`:n.alignItems=e.overlayX===`end`?`flex-end`:`flex-start`,e.overlayY===`center`?n.justifyContent=`center`:n.justifyContent=e.overlayY===`bottom`?`flex-end`:`flex-start`,s&&(n.maxHeight=fo$1(s)),r&&(n.maxWidth=fo$1(r))}this._lastBoundingBoxSize=i,w$1(this._boundingBox.style,n)}
141_resetBoundingBoxStyles(){w$1(this._boundingBox.style,{top:`0`,left:`0`,right:`0`,bottom:`0`,height:``,width:``,alignItems:``,justifyContent:``})}_resetOverlayElementStyles(){w$1(this._pane.style,{top:``,left:``,bottom:``,right:``,position:``,transform:``})}_setOverlayElementStyles(t,e){let i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(n){let l=this._viewportRuler.getViewportScrollPosition();w$1(i,this._getExactOverlayY(e,t,l)),w$1(i,this._getExactOverlayX(e,t,l))}else i.position=`static`;let a=``,h=this._getOffset(e,`x`),d=this._getOffset(e,`y`);h&&(a+=`translateX(${h}px) `),d&&(a+=`translateY(${d}px)`),i.transform=a.trim(),r.maxHeight&&(n?i.maxHeight=fo$1(r.maxHeight):s&&(i.maxHeight=``)),r.maxWidth&&(n?i.maxWidth=fo$1(r.maxWidth):s&&(i.maxWidth=``)),w$1(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:``,bottom:``},s=this._getOverlayPoint(e,this._overlayRect,t);if(this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),t.overlayY===`bottom`)n.bottom=`${this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)}px`;else n.top=fo$1(s.y);return n}_getExactOverlayX(t,e,i){let n={left:``,right:``},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let r;if(this._isRtl()?r=t.overlayX===`end`?`left`:`right`:r=t.overlayX===`end`?`right`:`left`,r===`right`)n.right=`${this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)}px`;else n.left=fo$1(s.x);return n}_getScrollVisibility(){let t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(n=>n.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Mt$1(t,i),isOriginOutsideView:Q$1(t,i),isOverlayClipped:Mt$1(e,i),isOverlayOutsideView:Q$1(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,n)=>i-Math.max(n,0),t)}_getNarrowedViewportRect(){let t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._getViewportMarginTop(),left:i.left+this._getViewportMarginStart(),right:i.left+t-this._getViewportMarginEnd(),bottom:i.top+e-this._getViewportMarginBottom(),width:t-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:e-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()===`rtl`}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return e===`x`?t.offsetX==null?this._offsetX:t.offsetX:t.offsetY==null?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Md(t).forEach(e=>{e!==``&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getViewportMarginStart(){return typeof this._viewportMargin==`number`?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin==`number`?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin==`number`?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin==`number`?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let t=this._origin;if(t instanceof ut)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();let e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}_getContainerRect(){let t=this._overlayRef.getConfig().usePopover&&this._popoverLocation!==`global`,e=this._overlayContainer.getContainerElement();t&&(e.style.display=`block`);let i=e.getBoundingClientRect();return t&&(e.style.display=``),i}};function w$1(o,t){for(let e in t)Object.hasOwn(t,e)&&(o[e]=t[e]);return o}function Vt$1(o){if(typeof o!=`number`&&o!=null){let[t,e]=o.split($t$1);return!e||e===`px`?parseFloat(t):null}return o||null}function Yt(o){return{top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)}}function Ut$1(o,t){return o===t?!0:o.isOriginClipped===t.isOriginClipped&&o.isOriginOutsideView===t.isOriginOutsideView&&o.isOverlayClipped===t.isOverlayClipped&&o.isOverlayOutsideView===t.isOverlayOutsideView}var It$1=`cdk-global-overlay-wrapper`;function Zt(o){return new z}var z=class{_overlayRef;_cssPosition=`static`;_topOffset=``;_bottomOffset=``;_alignItems=``;_xPosition=``;_xOffset=``;_width=``;_height=``;_isDisposed=!1;attach(t){let e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(It$1),this._isDisposed=!1}top(t=``){return this._bottomOffset=``,this._topOffset=t,this._alignItems=`flex-start`,this}left(t=``){return this._xOffset=t,this._xPosition=`left`,this}bottom(t=``){return this._topOffset=``,this._bottomOffset=t,this._alignItems=`flex-end`,this}right(t=``){return this._xOffset=t,this._xPosition=`right`,this}start(t=``){return this._xOffset=t,this._xPosition=`start`,this}end(t=``){return this._xOffset=t,this._xPosition=`end`,this}width(t=``){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=``){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=``){return this.left(t),this._xPosition=`center`,this}centerVertically(t=``){return this.top(t),this._alignItems=`center`,this}
141apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,{width:n,height:s,maxWidth:r,maxHeight:a}=this._overlayRef.getConfig(),h=(n===`100%`||n===`100vw`)&&(!r||r===`100%`||r===`100vw`),d=(s===`100%`||s===`100vh`)&&(!a||a===`100%`||a===`100vh`),l=this._xPosition,c=this._xOffset,f=this._overlayRef.getConfig().direction===`rtl`,_=``,g=``,y=``;h?y=`flex-start`:l===`center`?(y=`center`,f?g=c:_=c):f?l===`left`||l===`end`?(y=`flex-end`,_=c):(l===`right`||l===`start`)&&(y=`flex-start`,g=c):l===`left`||l===`start`?(y=`flex-start`,_=c):(l===`right`||l===`end`)&&(y=`flex-end`,g=c),t.position=this._cssPosition,t.marginLeft=h?`0`:_,t.marginTop=d?`0`:this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=h?`0`:g,e.justifyContent=y,e.alignItems=d?`flex-start`:this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(It$1),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position=``,this._overlayRef=null,this._isDisposed=!0}};var jt$1=(()=>{class o{_injector=g$1(ie$1);global(){return Zt()}flexibleConnectedTo(e){return nt(this._injector,e)}static ɵfac=function(i){return new(i||o)};static ɵprov=X$1({token:o,factory:o.ɵfac})}return o})();var st=new y(`OVERLAY_DEFAULT_CONFIG`);function rt$1(o,t){o.get(tS).load(Ht);let e=o.get(zt$1),i=o.get(P$2),n=o.get(Ct$1),s=o.get(en),r=o.get(cS),a=o.get(wr$1,null,{optional:!0})||o.get(kn$1).createRenderer(null,null),h=new D$1(t),d=o.get(st,null,{optional:!0})?.usePopover??!0;h.direction=h.direction||r.value,!i.body||!(`showPopover`in i.body)?h.usePopover=!1:h.usePopover=t?.usePopover??d;let l=i.createElement(`div`),c=i.createElement(`div`);l.id=n.getId(`cdk-overlay-`),l.classList.add(`cdk-overlay-pane`),c.appendChild(l),h.usePopover&&(c.setAttribute(`popover`,`manual`),c.classList.add(`cdk-overlay-popover`));let f=h.usePopover?h.positionStrategy?.getPopoverInsertionPoint?.():null;return ot(f)?f.after(c):f?.type===`parent`?f.element.appendChild(c):e.getContainerElement().appendChild(c),new W$1(new K$2(l,s,o),c,l,h,o.get(W$2),o.get(Nt$1),i,o.get(my),o.get(Wt),t?.disableAnimations??o.get(nu,null,{optional:!0})===`NoopAnimations`,o.get(le),a)}var Kt=(()=>{class o{scrollStrategies=g$1(Ft);_positionBuilder=g$1(jt$1);_injector=g$1(ie$1);create(e){return rt$1(this._injector,e)}position(){return this._positionBuilder}static ɵfac=function(i){return new(i||o)};static ɵprov=X$1({token:o,factory:o.ɵfac})}return o})();var qt$1=[{originX:`start`,originY:`bottom`,overlayX:`start`,overlayY:`top`},{originX:`start`,originY:`top`,overlayX:`start`,overlayY:`bottom`},{originX:`end`,originY:`top`,overlayX:`end`,overlayY:`bottom`},{originX:`end`,originY:`bottom`,overlayX:`end`,overlayY:`top`}];var Jt=new y(`cdk-connected-overlay-scroll-strategy`,{providedIn:`root`,factory:()=>{let o=g$1(ie$1);return()=>it$1(o)}});var et$4=(()=>{class o{elementRef=g$1(ut);static ɵfac=function(i){return new(i||o)};static ɵdir=Fo$1({type:o,selectors:[[``,`cdk-overlay-origin`,``],[``,`overlay-origin`,``],[``,`cdkOverlayOrigin`,``]],exportAs:[`cdkOverlayOrigin`]})}return o})();var Gt=new y(`cdk-connected-overlay-default-config`);var Qt=(()=>{class o{_dir=g$1(cS,{optional:!0});_injector=g$1(ie$1);_overlayRef;_templatePortal;_backdropSubscription=$$1.EMPTY;_attachSubscription=$$1.EMPTY;_detachSubscription=$$1.EMPTY;_positionSubscription=$$1.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=g$1(Jt);_ngZone=g$1(W$2);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;disposeOnNavigation=!1;usePopover;matchWidth=!1;
141set _config(e){typeof e!=`string`&&this._assignConfig(e)}backdropClick=new Pe$1;positionChange=new Pe$1;attach=new Pe$1;detach=new Pe$1;overlayKeydown=new Pe$1;overlayOutsideClick=new Pe$1;constructor(){let e=g$1(Ir$1),i=g$1(Mr$1),n=g$1(Gt,{optional:!0}),s=g$1(st,{optional:!0});this.usePopover=s?.usePopover===!1?null:`global`,this._templatePortal=new D$2(e,i),this.scrollStrategy=this._scrollStrategyFactory(),n&&this._assignConfig(n)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:`ltr`}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=qt$1);let e=this._overlayRef=rt$1(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!ce(i)&&(i.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let n=this._getOriginElement(),s=y$1(i);(!n||n!==s&&!n.contains(s))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new D$1({direction:this._dir||`ltr`,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});return(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(n=>({originX:n.originX,originY:n.originY,overlayX:n.overlayX,overlayY:n.overlayY,offsetX:n.offsetX||this.offsetX,offsetY:n.offsetY||this.offsetY,panelClass:n.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector).withPopoverLocation(this.usePopover===null?`global`:this.usePopover)}_createPositionStrategy(){let e=nt(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof et$4?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof et$4?this.origin.elementRef.nativeElement:this.origin instanceof ut?this.origin.nativeElement:typeof Element<`u`&&this.origin instanceof Element?this.origin:null}_getWidth(){return this.width?this.width:this.matchWidth?this._getOriginElement()?.getBoundingClientRect?.().width:void 0}attachOverlay(){this._overlayRef||this._createOverlay();let e=this._overlayRef;e.getConfig().hasBackdrop=this.hasBackdrop,e.updateSize({width:this._getWidth()}),e.hasAttached()||e.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=e.backdropClick().subscribe(i=>this.backdropClick.emit(i)):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(oD(()=>this.positionChange.observers.length>0)).subscribe(i=>{this._ngZone.run(()=>this.positionChange.emit(i)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}_assignConfig(e){this.origin=e.origin??this.origin,this.positions=e.positions??this.positions,this.positionStrategy=e.positionStrategy??this.positionStrategy,this.offsetX=e.offsetX??this.offsetX,this.offsetY=e.offsetY??this.offsetY,this.width=e.width??this.width,this.height=e.height??this.height,this.minWidth=e.minWidth??this.minWidth,this.minHeight=e.minHeight??this.minHeight,this.backdropClass=e.backdropClass??this.backdropClass,this.panelClass=e.panelClass??this.panelClass,this.viewportMargin=e.viewportMargin??this.viewportMargin,this.scrollStrategy=e.scrollStrategy??this.scrollStrategy,this.disableClose=e.disableClose??this.disableClose,this.transformOriginSelector=e.transformOriginSelector??this.transformOriginSelector,this.hasBackdrop=e.hasBackdrop??this.hasBackdrop,this.lockPosition=e.lockPosition??this.lockPosition,this.flexibleDimensions=e.flexibleDimensions??this.flexibleDimensions,this.growAfterOpen=e.growAfterOpen??this.growAfterOpen,this.push=e.push??this.push,this.disposeOnNavigation=e.disposeOnNavigation??this.disposeOnNavigation,this.usePopover=e.usePopover??this.usePopover,this.matchWidth=e.matchWidth??this.matchWidth}static ɵfac=function(i){return new(i||o)};static ɵdir=Fo$1({type:o,selectors:[[``,`cdk-connected-overlay`,``],[``,`connected-overlay`,``],[``,`cdkConnectedOverlay`,``]],inputs:{origin:[0,`cdkConnectedOverlayOrigin`,`origin`],positions:[0,`cdkConnectedOverlayPositions`,`positions`],positionStrategy:[0,`cdkConnectedOverlayPositionStrategy`,`positionStrategy`],offsetX:[0,`cdkConnectedOverlayOffsetX`,`offsetX`],offsetY:[0,`cdkConnectedOverlayOffsetY`,`offsetY`],width:[0,`cdkConnectedOverlayWidth`,`width`],height:[0,`cdkConnectedOverlayHeight`,`height`],minWidth:[0,`cdkConnectedOverlayMinWidth`,`minWidth`],minHeight:[0,`cdkConnectedOverlayMinHeight`,`minHeight`],backdropClass:[0,`cdkConnectedOverlayBackdropClass`,`backdropClass`],panelClass:[0,`cdkConnectedOverlayPanelClass`,`panelClass`],viewportMargin:[0,`cdkConnectedOverlayViewportMargin`,`viewportMargin`],scrollStrategy:[0,`cdkConnectedOverlayScrollStrategy`,`scrollStrategy`],open:[0,`cdkConnectedOverlayOpen`,`open`],disableClose:[0,`cdkConnectedOverlayDisableClose`,`disableClose`],transformOriginSelector:[0,`cdkConnectedOverlayTransformOriginOn`,`transformOriginSelector`],hasBackdrop:[2,`cdkConnectedOverlayHasBackdrop`,`hasBackdrop`,od],lockPosition:[2,`cdkConnectedOverlayLockPosition`,`lockPosition`,od],flexibleDimensions:[2,`cdkConnectedOverlayFlexibleDimensions`,`flexibleDimensions`,od],growAfterOpen:[2,`cdkConnectedOverlayGrowAfterOpen`,`growAfterOpen`,od],push:[2,`cdkConnectedOverlayPush`,`push`,od],disposeOnNavigation:[2,`cdkConnectedOverlayDisposeOnNavigation`,`disposeOnNavigation`,e=>e===`url-change`||e===`pop-state`?e:od(e)],usePopover:[0,`cdkConnectedOverlayUsePopover`,`usePopover`],matchWidth:[2,`cdkConnectedOverlayMatchWidth`,`matchWidth`,od],_config:[0,`cdkConnectedOverlay`,`_config`]},outputs:{backdropClick:`backdropClick`,positionChange:`positionChange`,attach:`attach`,detach:`detach`,overlayKeydown:`overlayKeydown`,overlayOutsideClick:`overlayOutsideClick`},exportAs:[`cdkConnectedOverlay`],features:[Xu]})}return o}
141)();var te$1=(()=>{class o{static ɵfac=function(i){return new(i||o)};static ɵmod=St$1({type:o});static ɵinj=tt$3({providers:[Kt],imports:[av,fe$1,wt$1,wt$1]})}return o})();var $=new y(`MAT_MENU_PANEL`);var G$1=(()=>{class r{_isAnchor;_elementRef=g$1(ut);_document=g$1(P$2);_focusMonitor=g$1(bt$1);_parentMenu=g$1($,{optional:!0});_changeDetectorRef=g$1(sy);role=`menuitem`;disabled=!1;disabledInteractive=!1;disableRipple=!1;_hovered=new te$2;_focused=new te$2;_highlighted=!1;_triggersSubmenu=!1;constructor(){g$1(tS).load(Be$2),this._parentMenu?.addItem?.(this),this._isAnchor=this._elementRef.nativeElement.tagName===`A`}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&&!this.disabledInteractive?`-1`:`0`}_getAriaDisabled(){return this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?!0:null}_getDisabled(){return this.disabledInteractive||!this.disabled?null:!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, .material-symbols-outlined, .material-symbols-rounded, .material-symbols-sharp`);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 ɵfac=function(t){return new(t||r)};static ɵcmp=(function(){let e=[[[`mat-icon`],[``,`matMenuItemIcon`,``]],`*`],t=[`mat-icon, [matMenuItemIcon]`,`*`];function n(a,i){a&1&&(pp(),ks(0,`svg`,2),hm(1,`polygon`,3),Ul())}return ko$1({type:r,selectors:[[``,`mat-menu-item`,``]],hostAttrs:[1,`mat-mdc-menu-item`,`mat-focus-indicator`],hostVars:12,hostBindings:function(i,s){i&1&&Em(`click`,function(l){return s._checkDisabled(l)})(`mouseenter`,function(){return s._handleMouseEnter()}),i&2&&(Lo$1(`role`,s.role)(`tabindex`,s._getTabIndex())(`aria-disabled`,s._getAriaDisabled())(`disabled`,s._getDisabled()),qs(`mat-mdc-menu-item-highlighted`,s._highlighted)(`mat-mdc-menu-item-submenu-trigger`,s._triggersSubmenu)(`mat-mdc-menu-item-disabled`,s.disabled)(`mat-mdc-menu-item-disabled-interactive`,s.disabledInteractive))},inputs:{role:`role`,disabled:[2,`disabled`,`disabled`,od],disabledInteractive:[2,`disabledInteractive`,`disabledInteractive`,od],disableRipple:[2,`disableRipple`,`disableRipple`,od]},exportAs:[`matMenuItem`],ngContentSelectors:t,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(i,s){i&1&&(ql(e),Zl(0),ks(1,`span`,0),Zl(2,1),Ul(),hm(3,`div`,1),ZC(4,n,2,0,`:svg:svg`,2)),i&2&&(QI(3),pm(`matRippleDisabled`,s.disableRipple||s.disabled)(`matRippleTrigger`,s._getHostElement()),QI(),QC(s._triggersSubmenu?4:-1))},dependencies:[Do$1],encapsulation:2})})()}return r})();var Ze$2=new y(`MatMenuContent`);var Je$2=new y(`mat-menu-default-options`,{providedIn:`root`,factory:()=>({overlapTrigger:!1,xPosition:`after`,yPosition:`below`,backdropClass:`cdk-overlay-transparent-backdrop`})});var K=`_mat-menu-enter`;var T$1=`_mat-menu-exit`;var P$1=(()=>{class r{_elementRef=g$1(ut);_changeDetectorRef=g$1(sy);_injector=g$1(ie$1);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=B$();_allItems;_directDescendantItems=new ws;_classList={};_panelAnimationState=`void`;_animationDone=new te$2;_isAnimating=fr$1(!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;get panelClass(){return this._previousPanelClass}set panelClass(e){let t=this._previousPanelClass,n=B({},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 Pe$1;close=this.closed;panelId=g$1(Ct$1).getId(`mat-menu-panel-`);constructor(){let e=g$1(Je$2);this.overlayPanelClass=e.overlayPanelClass||``,this._xPosition=e.xPosition,this._yPosition=e.
vendor: 10,738 bytes, lines 141-300
141yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Tt$2(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(e=>e.disabled&&!e.disabledInteractive),this._keyManager.tabOut.subscribe(()=>this.closed.emit(`tab`)),this._directDescendantItems.changes.pipe(za(this._directDescendantItems),df(e=>Qv(...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(za(this._directDescendantItems),df(t=>Qv(...t.map(n=>n._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let t=e.keyCode,n=this._keyManager;switch(t){case 27:ce(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=AI(()=>{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=q$1(B({},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===T$1;(t||e===K)&&(t&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(t?`void`:`enter`),this._isAnimating.set(!1))}_onAnimationStart(e){(e===K||e===T$1)&&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(T$1),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?K:T$1)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(za(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 ɵfac=function(t){return new(t||r)};static ɵcmp=(function(){let e=[`*`];function t(n,a){if(n&1){let i=ib();$l(0,`div`,0),Im(`click`,function(){Jf(i);let m=lb();return ep(m.closed.emit(`click`))})(`animationstart`,function(m){Jf(i);let l=lb();return ep(l._onAnimationStart(m.animationName))})(`animationend`,function(m){Jf(i);let l=lb();return ep(l._onAnimationDone(m.animationName))})(`animationcancel`,function(m){Jf(i);let l=lb();return ep(l._onAnimationDone(m.animationName))}),$l(1,`div`,1),Zl(2),zl()()}if(n&2){let i=lb();Yl(i._classList),qs(`mat-menu-panel-animations-disabled`,i._animationsDisabled)(`mat-menu-panel-exit-animation`,i._panelAnimationState===`void`)(`mat-menu-panel-animating`,i._isAnimating()),vm(`id`,i.panelId),Lo$1(`aria-label`,i.ariaLabel||null)(`aria-labelledby`,i.ariaLabelledby||null)(`aria-describedby`,i.ariaDescribedby||null)}}return ko$1({type:r,selectors:[[`mat-menu`]],contentQueries:function(a,i,s){if(a&1&&Cm(s,Ze$2,5)(s,G$1,5)(s,G$1,4),a&2){let m;pb(m=hb())&&(i.lazyContent=m.first),pb(m=hb())&&(i._allItems=m),pb(m=hb())&&(i.items=m)}},viewQuery:function(a,i){if(a&1&&bm(Ir$1,5),a&2){let s;pb(s=hb())&&(i.templateRef=s.first)}},hostVars:3,hostBindings:function(a,i){a&2&&Lo$1(`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`,od],hasBackdrop:[2,`hasBackdrop`,`hasBackdrop`,n=>n==null?null:od(n)],panelClass:[0,`class`,`panelClass`],classList:`classList`},outputs:{closed:`closed`,close:`close`},exportAs:[`matMenu`],features:[$m([{provide:$,useExisting:r}])],ngContentSelectors:e,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(a,i){a&1&&(ql(),um(0,t,3,12,`ng-template`))},styles:[`mat-menu { 142 display: none; 143} 144 145.mat-mdc-menu-content { 146 margin: 0; 147 padding: 8px 0; 148 outline: 0; 149} 150.mat-mdc-menu-content, 151.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text { 152 -moz-osx-font-smoothing: grayscale; 153 -webkit-font-smoothing: antialiased; 154 flex: 1; 155 white-space: normal; 156 font-family: var(--%NS%mat-menu-item-label-text-font, var(--%NS%mat-sys-label-large-font)); 157 line-height: var(--%NS%mat-menu-item-label-text-line-height, var(--%NS%mat-sys-label-large-line-height)); 158 font-size: var(--%NS%mat-menu-item-label-text-size, var(--%NS%mat-sys-label-large-size)); 159 letter-spacing: var(--%NS%mat-menu-item-label-text-tracking, var(--%NS%mat-sys-label-large-tracking)); 160 font-weight: var(--%NS%mat-menu-item-label-text-weight, var(--%NS%mat-sys-label-large-weight)); 161} 162 163@keyframes _mat-menu-enter { 164 from { 165 opacity: 0; 166 transform: scale(0.8); 167 } 168 to { 169 opacity: 1; 170 transform: none; 171 } 172} 173@keyframes _mat-menu-exit { 174 from { 175 opacity: 1; 176 } 177 to { 178 opacity: 0; 179 } 180} 181.mat-mdc-menu-panel { 182 min-width: 112px; 183 max-width: 280px; 184 overflow: auto; 185 box-sizing: border-box; 186 outline: 0; 187 animation: _mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1); 188 border-radius: var(--%NS%mat-menu-container-shape, var(--%NS%mat-sys-corner-extra-small)); 189 background-color: var(--%NS%mat-menu-container-color, var(--%NS%mat-sys-surface-container)); 190 box-shadow: var(--%NS%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)); 191 will-change: transform, opacity; 192} 193.mat-mdc-menu-panel.mat-menu-panel-exit-animation { 194 animation: _mat-menu-exit 100ms 25ms linear forwards; 195} 196.mat-mdc-menu-panel.mat-menu-panel-animations-disabled { 197 animation: none; 198} 199.mat-mdc-menu-panel.mat-menu-panel-animating { 200 pointer-events: none; 201} 202.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty) { 203 display: none; 204} 205@media (forced-colors: active) { 206 .mat-mdc-menu-panel { 207 outline: solid 1px; 208 } 209} 210.mat-mdc-menu-panel .mat-divider { 211 border-top-color: var(--%NS%mat-menu-divider-color, var(--%NS%mat-sys-surface-variant)); 212 margin-bottom: var(--%NS%mat-menu-divider-bottom-spacing, 8px); 213 margin-top: var(--%NS%mat-menu-divider-top-spacing, 8px); 214} 215 216.mat-mdc-menu-item { 217 display: flex; 218 position: relative; 219 align-items: center; 220 justify-content: flex-start; 221 overflow: hidden; 222 padding: 0; 223 cursor: pointer; 224 width: 100%; 225 text-align: left; 226 box-sizing: border-box; 227 color: inherit; 228 font-size: inherit; 229 background: none; 230 text-decoration: none; 231 margin: 0; 232 min-height: 48px; 233 padding-left: var(--%NS%mat-menu-item-leading-spacing, 12px); 234 padding-right: var(--%NS%mat-menu-item-trailing-spacing, 12px); 235 -webkit-user-select: none; 236 user-select: none; 237 cursor: pointer; 238 outline: none; 239 border: none; 240 -webkit-tap-highlight-color: transparent; 241} 242.mat-mdc-menu-item::-moz-focus-inner { 243 border: 0; 244} 245[dir=rtl] .mat-mdc-menu-item { 246 padding-left: var(--%NS%mat-menu-item-trailing-spacing, 12px); 247 padding-right: var(--%NS%mat-menu-item-leading-spacing, 12px); 248} 249.mat-mdc-menu-item:has(.material-icons, .material-symbols-outlined, .material-symbols-rounded, .material-symbols-sharp, mat-icon, [matButtonIcon]) { 250 padding-left: var(--%NS%mat-menu-item-with-icon-leading-spacing, 12px); 251 padding-right: var(--%NS%mat-menu-item-with-icon-trailing-spacing, 12px); 252} 253[dir=rtl] .mat-mdc-menu-item:has(.material-icons, .material-symbols-outlined, .material-symbols-rounded, .material-symbols-sharp, mat-icon, [matButtonIcon]) { 254 padding-left: var(--%NS%mat-menu-item-with-icon-trailing-spacing, 12px); 255 padding-right: var(--%NS%mat-menu-item-with-icon-leading-spacing, 12px); 256} 257.mat-mdc-menu-item, .mat-mdc-menu-item:visited, .mat-mdc-menu-item:link { 258 color: var(--%NS%mat-menu-item-label-text-color, var(--%NS%mat-sys-on-surface)); 259} 260.mat-mdc-menu-item .mat-icon-no-color, 261.mat-mdc-menu-item .mat-mdc-menu-submenu-icon { 262 color: var(--%NS%mat-menu-item-icon-color, var(--%NS%mat-sys-on-surface-variant)); 263} 264.mat-mdc-menu-item[disabled], .mat-mdc-menu-item.mat-mdc-menu-item-disabled { 265 cursor: default; 266 opacity: 0.38; 267} 268.mat-mdc-menu-item[disabled]::after, .mat-mdc-menu-item.mat-mdc-menu-item-disabled::after { 269 display: block; 270 position: absolute; 271 content: ""; 272 top: 0; 273 left: 0; 274 bottom: 0; 275 right: 0; 276} 277.mat-mdc-menu-item:focus { 278 outline: 0; 279} 280.mat-mdc-menu-item .mat-icon { 281 flex-shrink: 0; 282 margin-right: var(--%NS%mat-menu-item-spacing, 12px); 283 height: var(--%NS%mat-menu-item-icon-size, 24px); 284 width: var(--%NS%mat-menu-item-icon-size, 24px); 285} 286[dir=rtl] .mat-mdc-menu-item { 287 text-align: right; 288} 289[dir=rtl] .mat-mdc-menu-item .mat-icon { 290 margin-right: 0; 291 margin-left: var(--%NS%mat-menu-item-spacing, 12px); 292} 293.mat-mdc-menu-item:not([disabled]):hover { 294 background-color: var(--%NS%mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) calc(var(--%NS%mat-sys-hover-state-layer-opacity) * 100%), transparent)); 295} 296.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 { 297 background-color: var(--%NS%mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) calc(var(--%NS%mat-sys-focus-state-layer-opacity) * 100%), transparent)); 298} 299@media (forced-colors: active) { 300 .mat-mdc-menu-item {
301 margin-top: 1px; 302 } 303} 304 305.mat-mdc-menu-submenu-icon { 306 width: var(--%NS%mat-menu-item-icon-size, 24px); 307 height: 10px; 308 fill: currentColor; 309 padding-left: var(--%NS%mat-menu-item-spacing, 12px); 310} 311[dir=rtl] .mat-mdc-menu-submenu-icon { 312 padding-right: var(--%NS%mat-menu-item-spacing, 12px); 313 padding-left: 0; 314} 315[dir=rtl] .mat-mdc-menu-submenu-icon polygon { 316 transform: scaleX(-1); 317 transform-origin: center; 318} 319@media (forced-colors: active) { 320 .mat-mdc-menu-submenu-icon { 321 fill: CanvasText; 322 } 323} 324 325.mat-mdc-menu-item .mat-mdc-menu-ripple { 326 top: 0; 327 left: 0; 328 right: 0; 329 bottom: 0; 330 position: absolute; 331 pointer-events: none; 332} 333`],encapsulation:2})})()}return r})();var et$3=new y(`mat-menu-scroll-strategy`,{providedIn:`root`,factory:()=>{let r=g$1(ie$1);return()=>it$1(r)}});var d$1=new WeakMap;var tt$1=(()=>{class r{_canHaveBackdrop;_element=g$1(ut);_viewContainerRef=g$1(Mr$1);_menuItemInstance=g$1(G$1,{optional:!0,self:!0});_dir=g$1(cS,{optional:!0});_focusMonitor=g$1(bt$1);_ngZone=g$1(W$2);_injector=g$1(ie$1);_scrollStrategy=g$1(et$3);_changeDetectorRef=g$1(sy);_animationsDisabled=B$();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=$$1.EMPTY;_menuCloseSubscription=$$1.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e?(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),(t===`click`||t===`tab`)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})):this._destroyMenu(),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let t=g$1($,{optional:!0});this._parentMaterialMenu=t instanceof P$1?t:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&d$1.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=d$1.get(t);d$1.set(t,this),n&&n!==this&&n._closeMenu();let a=this._createOverlay(t),i=a.getConfig(),s=i.positionStrategy;this._setPosition(t,s),this._canHaveBackdrop?i.hasBackdrop=t.hasBackdrop==null?!this._triggersSubmenu():t.hasBackdrop:i.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 P$1&&(t._setIsOpen(!0),t._directDescendantItems.changes.pipe(Wa(t.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.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 P$1&&this._ownsMenu(n)?(this._pendingRemoval=n._animationDone.pipe(Ke$2(1)).subscribe(()=>{t.detach(),d$1.has(n)||n.lazyContent?.detach()}),n._setIsOpen(!1)):(t.detach(),n?.lazyContent?.detach()),n&&this._ownsMenu(n)&&d$1.delete(n),this.restoreFocus&&(e===`keydown`||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}
vendor: 2,150 bytes, line 333
333_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=rt$1(this._injector,t),this._overlayRef.keydownEvents().subscribe(n=>{this._menu instanceof P$1&&this._menu._handleKeydown(n)})}return this._overlayRef}_getOverlayConfig(e){return new D$1({positionStrategy:nt(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`,i=n.connectionPair.overlayY===`top`?`below`:`above`;e.setPositionClasses(a,i)})})}_setPosition(e,t){let[n,a]=e.xPosition===`before`?[`end`,`start`]:[`start`,`end`],[i,s]=e.yPosition===`above`?[`bottom`,`top`]:[`top`,`bottom`],[m,l]=[i,s],[R,A]=[n,a],p=0;if(this._triggersSubmenu()){if(A=n=e.xPosition===`before`?`start`:`end`,a=R=n===`end`?`start`:`end`,this._parentMaterialMenu){if(this._parentInnerPadding==null){let q=this._parentMaterialMenu.items.first;this._parentInnerPadding=q?q._getHostElement().offsetTop:0}p=i===`bottom`?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(m=i===`top`?`bottom`:`top`,l=s===`top`?`bottom`:`top`);t.withPositions([{originX:n,originY:m,overlayX:R,overlayY:i,offsetY:p},{originX:a,originY:m,overlayX:A,overlayY:i,offsetY:p},{originX:n,originY:l,overlayX:R,overlayY:s,offsetY:-p},{originX:a,originY:l,overlayX:A,overlayY:s,offsetY:-p}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),t=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:
333pt$2(),a=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(dn(i=>this._menuOpen&&i!==this._menuItemInstance)):pt$2();return Qv(e,n,a,t)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new D$2(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return d$1.get(e)===this}_triggerIsAriaDisabled(){return od(this._element.nativeElement.getAttribute(`aria-disabled`))}static ɵfac=function(t){zw()};static ɵdir=Fo$1({type:r})}return r})();var At$1=(()=>{class r extends tt$1{_cleanupTouchstart;_hoverSubscription=$$1.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 Pe$1;onMenuOpen=this.menuOpened;menuClosed=new Pe$1;onMenuClose=this.menuClosed;constructor(){super(!0);let e=g$1(wr$1);this._cleanupTouchstart=e.listen(this._element.nativeElement,`touchstart`,t=>{Z$1(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){K$1(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 ɵfac=function(t){return new(t||r)};static ɵdir=Fo$1({type:r,selectors:[[``,`mat-menu-trigger-for`,``],[``,`matMenuTriggerFor`,``]],hostAttrs:[1,`mat-mdc-menu-trigger`],hostVars:3,hostBindings:function(t,n){t&1&&Em(`click`,function(i){return n._handleClick(i)})(`mousedown`,function(i){return n._handleMousedown(i)})(`keydown`,function(i){return n._handleKeydown(i)}),t&2&&Lo$1(`aria-haspopup`,n.menu?`menu`:null)(`aria-expanded`,n.menuOpen)(`aria-controls`,n.menuOpen?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:[sm]})}return r})();var Ot$1=(()=>{class r{static ɵfac=function(t){return new(t||r)};static ɵmod=St$1({type:r});static ɵinj=tt$3({imports:[je$1,te$1,av,J$1]})}return r})();var a=`auth_token`;var c=`auth_user`;var d=class u{constructor(e){this.http=e;this.initializeFromStorage()}http;_currentUser=fr$1(null);_isLoading=fr$1(!1);_error=fr$1(null);currentUser=this._currentUser.asReadonly();isLoading=this._isLoading.asReadonly();error=this._error.asReadonly();isAuthenticated=rT(()=>this._currentUser()!==null);userGroupId=rT(()=>this._currentUser()?.userGroupId??null);initializeFromStorage(){let e=localStorage.getItem(a),r=localStorage.getItem(c);if(e&&r)try{let t=JSON.parse(r);if(this.isTokenExpired(e)){this.clearStorage();return}this._currentUser.set(t),this.verifyToken().catch(s=>{console.warn(`Token-Verifikation fehlgeschlagen:`,s)})}catch(t){this.clearStorage()}}isTokenExpired(e){try{let t=JSON.parse(atob(e.split(`.`)[1])).exp*1e3;return Date.now()>=t}catch(r){return!0}}login(e,r){return ft$1(this,null,function*(){this._isLoading.set(!0),this._error.set(null);try{let t=yield Tv(this.http.post(`/api/auth/login`,{email:e,password:r}));return t.success&&t.token&&t.user?(this.setSession(t.token,t.user),!0):(this._error.set(t.error??`Login fehlgeschlagen`),!1)}catch(t){let s=t instanceof Error?t.message:`Login fehlgeschlagen`;return this._error.set(s),!1}finally{this._isLoading.set(!1)}})}verifyToken(){return ft$1(this,null,function*(){if(!this.getToken())return!1;try{let r=yield Tv(this.http.get(`/api/auth/verify`));return r.success&&r.user?(this._currentUser.set(r.user),!0):(this.logout(),!1)}catch(r){return this.isUnauthorizedError(r)&&this.logout(),!1}})}changePassword(e,r){return ft$1(this,null,function*(){this._isLoading.set(!0),this._error.set(null);try{let t=yield Tv(this.http.post(`/api/auth/change-password`,{currentPassword:e,newPassword:r}));return t.success?!0:(this._error.set(t.error??`Passwortänderung fehlgeschlagen`),!1)}catch(t){let s=this.extractApiErrorMessage(t);return this._error.set(s??`Passwortänderung fehlgeschlagen`),!1}finally{this._isLoading.set(!1)}})}extractApiErrorMessage(e){if(e instanceof Bn$1){let r=e.error;if(r&&typeof r==`object`&&`error`in r){let t=r.error;if(typeof t==`string`&&t.trim()!==``)return t}if(typeof r==`string`&&r.trim()!==``)return r;if(typeof e.message==`string`&&e.message.trim()!==``)return e.message}return e instanceof Error&&e.message.trim()!==``?e.message:null}isUnauthorizedError(e){return e&&typeof e==`object`&&`status`in e?e.status===401:!1}logout(){this.clearStorage(),this._currentUser.set(null),this._error.set(null)}getToken(){return localStorage.getItem(a)}setSession(e,r){localStorage.setItem(a,e),localStorage.setItem(c,JSON.stringify(r)),this._currentUser.set(r)}clearStorage(){localStorage.removeItem(a),localStorage.removeItem(c)}static ɵfac=function(r){return new(r||u)(C$1(ya))};static ɵprov=A$1({token:u,factory:u.ɵfac,providedIn:`root`})};var at=20;var rt=new y(`mat-tooltip-scroll-strategy`,{providedIn:`root`,factory:()=>{let s=g$1(ie$1);return()=>it$1(s,{scrollThrottle:at})}});var lt=new y(`mat-tooltip-default-options`,{providedIn:`root`,factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var et$2=`tooltip-panel`;var ht$1={passive:!0};var dt$1=8;var pt$1=8;var mt$1=24;var ct=200;var _t$1=(()=>{class s{_elementRef=g$1(ut);_ngZone=g$1(W$2);_platform=g$1(uv);_ariaDescriber=g$1(Xa);_focusMonitor=g$1(bt$1);_dir=g$1(cS);_injector=g$1(ie$1);
333_viewContainerRef=g$1(Mr$1);_mediaMatcher=g$1(Ia);_document=g$1(P$2);_renderer=g$1(wr$1);_animationsDisabled=B$();_defaultOptions=g$1(lt,{optional:!0});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position=`below`;_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=it;_viewportMargin=8;_currentPosition;_cssClassPrefix=`mat-mdc`;_ariaDescriptionPending=!1;_dirSubscribed=!1;get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=go$1(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){let e=go$1(t);this._disabled!==e&&(this._disabled=e,e?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=It$2(t)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=It$2(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures=`auto`;get message(){return this._message}set message(t){let e=this._message;this._message=t!=null?String(t).trim():``,!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(e)}_message=``;get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new te$2;_isDestroyed=!1;constructor(){let t=this._defaultOptions;t&&(this._showDelay=t.showDelay,this._hideDelay=t.hideDelay,t.position&&(this.position=t.position),t.positionAtOrigin&&(this.positionAtOrigin=t.positionAtOrigin),t.touchGestures&&(this.touchGestures=t.touchGestures),t.tooltipClass&&(this.tooltipClass=t.tooltipClass)),this._viewportMargin=dt$1}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Wa(this._destroyed)).subscribe(t=>{t?t===`keyboard`&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(e=>e()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(t,this.message,`tooltip`),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,e){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let i=this._createOverlay(e);this._detach(),this._portal=this._portal||new N$1(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=i.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Wa(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(t)}hide(t=this.hideDelay){let e=this._tooltipInstance;e&&(e.isVisible()?e.hide(t):(e._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let n=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&n._origin instanceof ut)return this._overlayRef;this._detach()}let e=this._injector.get(ie$2).getAncestorScrollContainers(this._elementRef),i=`${this._cssClassPrefix}-${et$2}`,o=nt(this._injector,this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e).withPopoverLocation(`global`);return o.positionChanges.pipe(Wa(this._destroyed)).subscribe(n=>{this._updateCurrentPositionClass(n.connectionPair),this._tooltipInstance&&n.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=rt$1(this._injector,{direction:this._dir,positionStrategy:o,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,i]:i,scrollStrategy:this._injector.get(rt)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Wa(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Wa(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Wa(this._destroyed)).subscribe(n=>{n.preventDefault(),n.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(Wa(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){let e=t.getConfig().positionStrategy,i=this._getOrigin(),o=this._getOverlayPosition();e.withPositions([this._addOffset(B(B({},i.main),o.main)),this._addOffset(B(B({},i.fallback),o.fallback))])}_addOffset(t){let e=pt$1,i=!this._dir||this._dir.value==`ltr`;return t.originY===`top`?t.offsetY=-e:t.originY===`bottom`?t.offsetY=e:t.originX===`start`?t.offsetX=i?-e:e:t.originX===`end`&&(t.offsetX=i?e:-e),t}_getOrigin(){let t=!this._dir||this._dir.value==`ltr`,e=this.position,i;e==`above`||e==`below`?i={originX:`center`,originY:e==`above`?`top`:`bottom`}:e==`before`||e==`left`&&t||e==`right`&&!t?i={originX:`start`,originY:`center`}:(e==`after`||e==`right`&&t||e==`left`&&!t)&&(i={originX:`end`,originY:`center`});let{x:o,y:n}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:o,originY:n}}}_getOverlayPosition(){let t=!this._dir||this._dir.value==`ltr`,e=this.position,i;e==`above`?i={overlayX:`center`,overlayY:`bottom`}:e==`below`?i={overlayX:`center`,overlayY:`top`}:e==`before`||e==`left`&&t||e==`right`&&!t?i={overlayX:`end`,overlayY:`center`}:(e==`after`||e==`right`&&t||e==`left`&&!t)&&(i={overlayX:`start`,overlayY:`center`});let{x:o,y:n}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:o,overlayY:n}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),AI(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t instanceof Set?Array.from(t):t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return this.position===`above`||this.position===`below`?e===`top`?e=`bottom`:e===`bottom`&&(e=`top`):t===`end`?t=`start`:t===`start`&&(t=`end`),{x:t,y:e}}_updateCurrentPositionClass(t){let{overlayY:e,originX:i,originY:o}=t,n;if(e===`center`?this._dir&&this._dir.value===`rtl`?n=i===`end`?`left`:`right`:n=i===`start`?`left`:`right`:n=e===`bottom`&&o===`top`?`above`:`below`,n!==this._currentPosition){let l=this._overlayRef;if(l){let b=`${this._cssClassPrefix}-${et$2}-`;l.removePanelClass(b+this._currentPosition),l.addPanelClass(b+n)}this._currentPosition=n}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!==`off`&&(this._disableNativeGesturesIfNecessary(),this._addListener(`touchstart`,t=>{let e=t.targetTouches?.[0],i=e?{x:e.clientX,y:e.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,i)},this._defaultOptions?.touchLongPressShowDelay??o)})):this._addListener(`mouseenter`,t=>{this._setupPointerExitEventsIfNeeded();let e;t.x!==void 0&&t.y!==void 0&&(e=t),this.show(void 0,e)}))}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=!0,!this._isTouchPlatform())this._addListener(`mouseleave`,t=>{let e=t.relatedTarget;(!e||!this._overlayRef?.overlayElement.contains(e))&&this.hide()}),this._addListener(`wheel`,t=>{if(this._isTooltipVisible()){let e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e!==i&&!i.contains(e)&&this.hide()}});else if(this.touchGestures!==`off`){this._disableNativeGesturesIfNecessary();let t=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};this._addListener(`touchend`,t),this._addListener(`touchcancel`,t)}}}_addListener(t,e){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,t,e,ht$1))}_isTouchPlatform(){let t=this._defaultOptions?.detectHoverCapability;return typeof t==`function`?!t():this._platform.IOS||this._platform.ANDROID?!0:this._platform.isBrowser?!!t&&this._mediaMatcher.matchMedia(`(any-hover: none)`).matches:!1}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!==`off`){let e=this._elementRef.nativeElement,i=e.style;(t===`on`||e.nodeName!==`INPUT`&&e.nodeName!==`TEXTAREA`)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect=`none`),(t===`on`||!e.draggable)&&(i.webkitUserDrag=`none`),i.touchAction=`none`,i.webkitTapHighlightColor=`transparent`}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,`tooltip`),this._isDestroyed||AI({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,`tooltip`)}},{injector:this._injector}))}_overlayEventPredicate=t=>t.type===`keydown`?this._isTooltipVisible()&&t.keyCode===27&&!ce(t):!0;static ɵfac=function(e){return new(e||s)};static ɵdir=Fo$1({type:s,selectors:[[``,`matTooltip`,``]],hostAttrs:[1,`mat-mdc-tooltip-trigger`],hostVars:2,hostBindings:function(e,i){e&2&&qs(`mat-mdc-tooltip-disabled`,i.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 s})();var it=(()=>{class s{_changeDetectorRef=g$1(sy);_elementRef=g$1(ut);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=B$();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new te$2;_showAnimation=`mat-mdc-tooltip-show`;_hideAnimation=`mat-mdc-tooltip-hide`;show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}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:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>mt$1&&t.width>=ct}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){let e=this._tooltip.nativeElement,i=this._showAnimation,o=this._hideAnimation;if(e.classList.remove(t?o:i),e.classList.add(t?i:o),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle==`function`){let n=getComputedStyle(e);(n.getPropertyValue(`animation-duration`)===`0s`||n.getPropertyValue(`animation-name`)===`none`)&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(e.classList.add(`_mat-animation-noopable`),this._finalizeAnimation(t))}static ɵfac=function(e){return new(e||s)};static ɵcmp=(function(){let t=[`tooltip`];return ko$1({type:s,selectors:[[`mat-tooltip-component`]],viewQuery:function(i,o){if(i&1&&bm(t,7),i&2){let n;
333pb(n=hb())&&(o._tooltip=n.first)}},hostAttrs:[`aria-hidden`,`true`],hostBindings:function(i,o){i&1&&Em(`mouseleave`,function(l){return o._handleMouseLeave(l)})},decls:4,vars:5,consts:[[`tooltip`,``],[1,`mdc-tooltip`,`mat-mdc-tooltip`,3,`animationend`],[1,`mat-mdc-tooltip-surface`,`mdc-tooltip__surface`]],template:function(i,o){i&1&&($l(0,`div`,1,0),Im(`animationend`,function(l){return o._handleAnimationEnd(l)}),$l(2,`div`,2),Pb(3),zl()()),i&2&&(Yl(o.tooltipClass),qs(`mdc-tooltip--multiline`,o._isMultiline),QI(3),Lm(o.message))},styles:[`.mat-mdc-tooltip { 334 position: relative; 335 transform: scale(0); 336 display: inline-flex; 337} 338.mat-mdc-tooltip::before { 339 content: ""; 340 top: 0; 341 right: 0; 342 bottom: 0; 343 left: 0; 344 z-index: -1; 345 position: absolute; 346} 347.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before { 348 top: -8px; 349} 350.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before { 351 bottom: -8px; 352} 353.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before { 354 left: -8px; 355} 356.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before { 357 right: -8px; 358} 359.mat-mdc-tooltip._mat-animation-noopable { 360 animation: none; 361 transform: scale(1); 362} 363 364.mat-mdc-tooltip-surface { 365 word-break: normal; 366 overflow-wrap: anywhere; 367 padding: 4px 8px; 368 min-width: 40px; 369 max-width: 200px; 370 min-height: 24px; 371 max-height: 40vh; 372 box-sizing: border-box; 373 overflow: hidden; 374 text-align: center; 375 will-change: transform, opacity; 376 background-color: var(--%NS%mat-tooltip-container-color, var(--%NS%mat-sys-inverse-surface)); 377 color: var(--%NS%mat-tooltip-supporting-text-color, var(--%NS%mat-sys-inverse-on-surface)); 378 border-radius: var(--%NS%mat-tooltip-container-shape, var(--%NS%mat-sys-corner-extra-small)); 379 font-family: var(--%NS%mat-tooltip-supporting-text-font, var(--%NS%mat-sys-body-small-font)); 380 font-size: var(--%NS%mat-tooltip-supporting-text-size, var(--%NS%mat-sys-body-small-size)); 381 font-weight: var(--%NS%mat-tooltip-supporting-text-weight, var(--%NS%mat-sys-body-small-weight)); 382 line-height: var(--%NS%mat-tooltip-supporting-text-line-height, var(--%NS%mat-sys-body-small-line-height)); 383 letter-spacing: var(--%NS%mat-tooltip-supporting-text-tracking, var(--%NS%mat-sys-body-small-tracking)); 384} 385.mat-mdc-tooltip-surface::before { 386 position: absolute; 387 box-sizing: border-box; 388 width: 100%; 389 height: 100%; 390 top: 0; 391 left: 0; 392 border: 1px solid transparent; 393 border-radius: inherit; 394 content: ""; 395 pointer-events: none; 396} 397.mdc-tooltip--multiline .mat-mdc-tooltip-surface { 398 text-align: left; 399} 400[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface { 401 text-align: right; 402} 403 404.mat-mdc-tooltip-panel { 405 line-height: normal; 406} 407.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive { 408 pointer-events: none; 409} 410 411@keyframes mat-mdc-tooltip-show { 412 0% { 413 opacity: 0; 414 transform: scale(0.8); 415 } 416 100% { 417 opacity: 1; 418 transform: scale(1); 419 } 420} 421@keyframes mat-mdc-tooltip-hide { 422 0% { 423 opacity: 1; 424 transform: scale(1); 425 } 426 100% { 427 opacity: 0; 428 transform: scale(0.8); 429 } 430} 431.mat-mdc-tooltip-show { 432 animation: mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards; 433} 434 435.mat-mdc-tooltip-hide { 436 animation: mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards; 437} 438`],encapsulation:2})})()}return s})();var Vt=(()=>{class s{static ɵfac=function(e){return new(e||s)};static ɵmod=St$1({type:s});static ɵinj=tt$3({imports:[sn,te$1,av,J$1]})}return s})();var g=`primary`;var Ze$1=Symbol(`RouteTitle`);var ur=class{params;constructor(n){this.params=n||{}}has(n){return Object.hasOwn(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function he(t){return new ur(t)}function ir(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===`:`)e[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function Dn(t,n,e){let r=e.path.split(`/`),i=r.indexOf(`**`);if(i===-1){if(r.length>t.length||e.pathMatch===`full`&&(n.hasChildren()||r.length<t.length))return null;let s={},u=t.slice(0,r.length);return ir(r,u,s)?{consumed:u,posParams:s}:null}if(i!==r.lastIndexOf(`**`))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch===`full`&&n.hasChildren()&&e.path!==`**`)return null;
438let c={};return!ir(o,t.slice(0,o.length),c)||!ir(a,t.slice(t.length-a.length),c)?null:{consumed:t,posParams:c}}function vt(t){return new Promise((n,e)=>{t.pipe(eD()).subscribe({next:r=>n(r),error:r=>e(r)})})}function Ni(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!G(t[e],n[e]))return!1;return!0}function G(t,n){let e=t?lr(t):void 0,r=n?lr(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Nn(t[i],n[i]))return!1;return!0}function lr(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Nn(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function _i(t){return t.length>0?t[t.length-1]:null}function ge(t){return Vv(t)?t:Gs(t)?Qe$2(Promise.resolve(t)):pt$2(t)}function _n(t){return Vv(t)?vt(t):Promise.resolve(t)}var Oi={exact:Un,subset:Pn};var On={exact:Ui,subset:Pi,ignored:()=>!0};var Ir={paths:`exact`,fragment:`ignored`,matrixParams:`ignored`,queryParams:`exact`};var Ie$1={paths:`subset`,fragment:`ignored`,matrixParams:`ignored`,queryParams:`subset`};function Er(t,n,e){let r=t instanceof D?t:n.parseUrl(t);return rT(()=>mt(n.lastSuccessfulNavigation()?.finalUrl??new D,r,e))}function mt(t,n,e){let r=B(B({},Ie$1),e||{});return Oi[r.paths](t.root,n.root,r.matrixParams)&&On[r.queryParams](t.queryParams,n.queryParams)&&!(r.fragment===`exact`&&t.fragment!==n.fragment)}function Ui(t,n){return G(t,n)}function Un(t,n,e){if(!de(t.segments,n.segments)||!ft(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!Un(t.children[r],n.children[r],e))return!1;return!0}function Pi(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Nn(t[e],n[e]))}function Pn(t,n,e){return Ln(t,n,n.segments,e)}function Ln(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!de(i,e)||n.hasChildren()||!ft(i,e,r))}else if(t.segments.length===e.length){if(!de(t.segments,e)||!ft(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!Pn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!de(t.segments,i)||!ft(t.segments,i,r)||!t.children[g]?!1:Ln(t.children[g],n,o,r)}}function ft(t,n,e){return n.every((r,i)=>On[e](t[i].parameters,r.parameters))}var D=class{root;queryParams;fragment;_queryParamMap;constructor(n=new m$1([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=he(this.queryParams),this._queryParamMap}toString(){return xi.serialize(this)}};var m$1=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return pt(this)}};var ee=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=he(this.parameters),this._parameterMap}toString(){return xn(this)}};function Li(t,n){return de(t,n)&&t.every((e,r)=>G(e.parameters,n[r].parameters))}function de(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function ji(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===g&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==g&&(e=e.concat(n(i,r)))}),e}var ie=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵprov=X$1({token:t,factory:()=>new Y})}return t})();var Y=class{parse(n){let e=new hr(n);return new D(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){return`${`/${$e$1(n.root,!0)}`}${zi(n.queryParams)}${typeof n.fragment==`string`?`#${ki(n.fragment)}`:``}`}};var xi=new Y;function pt(t){return t.segments.map(n=>xn(n)).join(`/`)}function $e$1(t,n){if(!t.hasChildren())return pt(t);if(n){let e=t.children[g]?$e$1(t.children[g],!1):``,r=[];
438return Object.entries(t.children).forEach(([i,o])=>{i!==g&&r.push(`${i}:${$e$1(o,!1)}`)}),r.length>0?`${e}(${r.join(`//`)})`:e}else{let e=ji(t,(r,i)=>i===g?[$e$1(t.children[g],!1)]:[`${i}:${$e$1(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[g]!=null?`${pt(t)}/${e[0]}`:`${pt(t)}/(${e.join(`//`)})`}}function jn(t){return encodeURIComponent(t).replace(/%40/g,`@`).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`)}function dt(t){return jn(t).replace(/%3B/gi,`;`)}function ki(t){return encodeURI(t)}function dr(t){return jn(t).replace(/\(/g,`%28`).replace(/\)/g,`%29`).replace(/%26/gi,`&`)}function gt(t){return decodeURIComponent(t)}function bn(t){return gt(t.replace(/\+/g,`%20`))}function xn(t){return`${dr(t.path)}${$i(t.parameters)}`}function $i(t){return Object.entries(t).map(([n,e])=>`;${dr(n)}=${dr(e)}`).join(``)}function zi(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${dt(e)}=${dt(i)}`).join(`&`):`${dt(e)}=${dt(r)}`).filter(e=>e);return n.length?`?${n.join(`&`)}`:``}var or=1073741824;function yt(t,n,e){Number(n)>=32&&!Object.hasOwn(t,or)&&(t[or]=e,delete t[or]),t[n]=e}var qi=/^[^\/()?;#]+/;function ar(t){let n=t.match(qi);return n?n[0]:``}var Hi=/^[^\/()?;=#]+/;function Fi(t){let n=t.match(Hi);return n?n[0]:``}var Bi=/^[^=?&#]+/;function Vi(t){let n=t.match(Bi);return n?n[0]:``}var Gi=/^[^&#]+/;function Wi(t){let n=t.match(Gi);return n?n[0]:``}var hr=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){for(;this.consumeOptional(`/`););return this.remaining===``||this.peekStartsWith(`?`)||this.peekStartsWith(`#`)?new m$1([],{}):new m$1([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional(`?`))do this.parseQueryParam(n);while(this.consumeOptional(`&`));return n}parseFragment(){return this.consumeOptional(`#`)?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new m$2(4010,!1);if(this.remaining===``)return{};this.consumeOptional(`/`);let e=[];for(this.peekStartsWith(`(`)||e.push(this.parseSegment());this.peekStartsWith(`/`)&&!this.peekStartsWith(`//`)&&!this.peekStartsWith(`/(`);)this.capture(`/`),e.push(this.parseSegment());let r={};this.peekStartsWith(`/(`)&&(this.capture(`/`),r=this.parseParens(!0,n));let i={};return this.peekStartsWith(`(`)&&(i=this.parseParens(!1,n)),(e.length>0||Object.keys(r).length>0)&&(i[g]=new m$1(e,r)),i}parseSegment(){let n=ar(this.remaining);if(n===``&&this.peekStartsWith(`;`))throw new m$2(4009,!1);return this.capture(n),new ee(gt(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(`;`);)this.parseParam(n);return n}parseParam(n){let e=Fi(this.remaining);if(!e)return;this.capture(e);let r=``;if(this.consumeOptional(`=`)){let i=ar(this.remaining);i&&(r=i,this.capture(r))}yt(n,gt(e),gt(r))}parseQueryParam(n){let e=Vi(this.remaining);if(!e)return;this.capture(e);let r=``;if(this.consumeOptional(`=`)){let a=Wi(this.remaining);a&&(r=a,this.capture(r))}let i=bn(e),o=bn(r);if(Object.hasOwn(n,i)){let a=n[i];Array.isArray(a)||(a=[a],n[i]=a),a.push(o)}else n[i]=o}parseParens(n,e){let r=Object.create(null);for(this.capture(`(`);!this.consumeOptional(`)`)&&this.remaining.length>0;){let i=ar(this.remaining),o=this.remaining[i.length];if(o!==`/`&&o!==`)`&&o!==`;`)throw new m$2(4010,!1);let a;i.indexOf(`:`)>-1?(a=i.slice(0,i.indexOf(`:`)),this.capture(a),this.capture(`:`)):n&&(a=g);let c=this.parseChildren(e+1),s=Object.keys(c).length===1&&c[g]?c[g]:new m$1([],c);yt(r,a??g,s),this.consumeOptional(`//`)}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new m$2(4011,!1)}};function kn(t){return t.segments.length>0?new m$1([],{[g]:t}):t}function $n(t){let n=Object.create(null);for(let[r,i]of Object.entries(t.children)){let o=$n(i);if(r===g&&o.segments.length===0&&o.hasChildren())for(let[a,c]of Object.entries(o.children))yt(n,a,c);else(o.segments.length>0||o.hasChildren())&&yt(n,r,o)}return Qi(new m$1(t.segments,n))}function Qi(t){if(t.numberOfChildren===1&&t.children[g]){let n=t.children[g];return new m$1(t.segments.concat(n.segments),n.children)}return t}function te(t){return t instanceof D}function zn(t,n,e=null,r=null,i=new Y){return Hn(qn(t),n,e,r,i)}function qn(t){let n;function e(o){let a={};for(let s of o.children){let u=e(s);a[s.outlet]=u}let c=new m$1(o.url,a);return o===t&&(n=c),c}let i=kn(e(t.root));return n??i}function Hn(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return sr(o,o,o,e,r,i);let a=Ki(n);if(a.toRoot())return sr(o,o,new m$1([],{}),e,r,i);let c=Yi(a,o,t),s=c.processChildren?qe$1(c.segmentGroup,c.index,a.commands):Bn(c.segmentGroup,c.index,a.commands);return sr(o,c.segmentGroup,s,e,r,i)}function Rt(t){return typeof t==`object`&&t!=null&&!t.outlets&&!t.segmentPath}function Be$1(t){return typeof t==`object`&&t!=null&&t.outlets}function In(t,n,e){t||=`ɵ`;let r=new D;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function sr(t,n,e,r,i,o){let a={};for(let[u,l]of Object.entries(r??{}))a[u]=Array.isArray(l)?l.map(v=>In(u,v,o)):In(u,l,o);let c;t===n?c=e:c=Fn(t,n,e);return new D(kn($n(c)),a,i)}function Fn(t,n,e){let r=Object.create(null);
vendor: 4,444 bytes, line 438
438return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Fn(o,n,e)}),new m$1(t.segments,r)}var St=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&Rt(r[0]))throw new m$2(4003,!1);let i=r.find(Be$1);if(i&&i!==_i(r))throw new m$2(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]==`/`}};function Ki(t){if(typeof t[0]==`string`&&t.length===1&&t[0]===`/`)return new St(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,a)=>{if(typeof o==`object`&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([s,u])=>{c[s]=typeof u==`string`?u.split(`/`):u}),[...i,{outlets:c}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!=`string`?[...i,o]:a===0?(o.split(`/`).forEach((c,s)=>{s==0&&c===`.`||(s==0&&c===``?e=!0:c===`..`?n++:c!=``&&i.push(c))}),i):[...i,o]},[]);return new St(e,n,r)}var Ce=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Yi(t,n,e){if(t.isAbsolute)return new Ce(n,!0,0);if(!e)return new Ce(n,!1,NaN);if(e.parent===null)return new Ce(e,!0,0);let r=Rt(t.commands[0])?0:1;return Zi(e,e.segments.length-1+r,t.numberOfDoubleDots)}function Zi(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new m$2(4005,!1);i=r.segments.length}return new Ce(r,!1,i-o)}function Ji(t){return Be$1(t[0])?t[0].outlets:{[g]:t}}function Bn(t,n,e){if(t??=new m$1([],{}),t.segments.length===0&&t.hasChildren())return qe$1(t,n,e);let r=Xi(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new m$1(t.segments.slice(0,r.pathIndex),{});return o.children[g]=new m$1(t.segments.slice(r.pathIndex),t.children),qe$1(o,0,i)}else return r.match&&i.length===0?new m$1(t.segments,{}):r.match&&!t.hasChildren()?fr(t,n,e):r.match?qe$1(t,0,i):fr(t,n,e)}function qe$1(t,n,e){if(e.length===0)return new m$1(t.segments,{});{let r=Ji(e),i=Object.create(null);if(Object.keys(r).some(o=>o!==g)&&t.children[g]&&t.numberOfChildren===1&&t.children[g].segments.length===0){let o=qe$1(t.children[g],n,e);return new m$1(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a==`string`&&(a=[a]),a!==null&&(i[o]=Bn(t.children[o],n,a))}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a)}),new m$1(t.segments,i)}}function Xi(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let a=t.segments[i],c=e[r];if(Be$1(c))break;let s=`${c}`,u=r<e.length-1?e[r+1]:null;if(i>0&&s===void 0)break;if(s&&u&&typeof u==`object`&&u.outlets===void 0){if(!Mn(s,u,a))return o;r+=2}else{if(!Mn(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function fr(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(Be$1(o))return new m$1(r,eo(o.outlets));if(i===0&&Rt(e[0])){let s=t.segments[n];r.push(new ee(s.path,En(e[0]))),i++;continue}let a=Be$1(o)?o.outlets[g]:`${o}`,c=i<e.length-1?e[i+1]:null;a&&c&&Rt(c)?(r.push(new ee(a,En(c))),i+=2):(r.push(new ee(a,{})),i++)}return new m$1(r,{})}function eo(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r==`string`&&(r=[r]),r!==null&&(n[e]=fr(new m$1([],{}),0,r))}),n}function En(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function Mn(t,n,e){return t==e.path&&G(n,e.parameters)}var Ct=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new re(this.rootInjector)}resetChildren(){this.children=new re(this.rootInjector)}};var re=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Ct(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static ɵfac=function(r){return new(r||t)(C$1(le))};static ɵprov=A$1({token:t,factory:t.ɵfac,providedIn:`root`})}return t})();var wt=class{_root;constructor(n){this._root=n}get root(){return this._root.value}
438parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=pr(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=pr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=gr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return gr(n,this._root).map(e=>e.value)}};function pr(t,n){if(t===n.value)return n;for(let e of n.children){let r=pr(t,e);if(r)return r}return null}function gr(t,n){if(t===n.value)return[n];for(let e of n.children){let r=gr(t,e);if(r.length)return r.unshift(n),r}return[]}var T=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function Se(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Ve$1=class extends wt{snapshot;constructor(n,e){super(n),this.snapshot=e,Ar(this,n)}toString(){return this.snapshot.toString()}};function Vn(t,n){let e=to(t,n),r=new jr$1([new ee(``,{})]),i=new jr$1({}),o=new jr$1({}),s=new W(r,i,new jr$1({}),new jr$1(``),o,g,t,e.root);return s.snapshot=e.root,new Ve$1(new T(s,[]),e)}function to(t,n){return new Ge$1(``,new T(new Ee$1([],{},{},``,{},g,t,null,{},n),[]))}var W=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;resources;_localInjector;pending;paramsSignal;queryParamsSignal;paramMapSignal;queryParamMapSignal;fragmentSignal;dataSignal;constructor(n,e,r,i,o,a,c,s){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=c,this._futureSnapshot=s,this.title=this.dataSubject?.pipe(Z(u=>u[Ze$1]))??pt$2(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(Z(n=>he(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Z(n=>he(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}_setPending(n){this._futureSnapshot=n,this.pending?.set(!0)}};var ro=`always`;function Mr(t,n,e){let r,{routeConfig:i}=t;return n!==null&&(e===`always`||i?.path===``||!n.component&&!n.routeConfig?.loadComponent)?r={params:Object.keys(t.params).length===0?n.params:Object.freeze(B(B({},n.params),t.params)),data:Object.freeze(B(B({},n.data),t.data)),resolve:B(B(B(B({},t.data),n.data),i?.data),t._resolvedData)}:r={params:Object.freeze(B({},t.params)),data:Object.freeze(B({},t.data)),resolve:B(B({},t.data),t._resolvedData??{})},i&&Wn(i)&&(r.resolve[Ze$1]=i.title),r}var Ee$1=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;resources;get title(){return this.data?.[Ze$1]}constructor(n,e,r,i,o,a,c,s,u,l){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=c,this.routeConfig=s,this._resolve=u,this._environmentInjector=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=he(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=he(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join(`/`)}', path:'${this.routeConfig?this.routeConfig.path:``}')`}};var Ge$1=class extends wt{url;constructor(n,e){super(e),this.url=n,Ar(this,e)}toString(){return Gn(this._root)}};
438function Ar(t,n){n.value._routerState=t,n.children.forEach(e=>Ar(t,e))}function Gn(t){let n=t.children.length>0?` { ${t.children.map(Gn).join(`, `)} } `:``;return`${t.value}${n}`}function cr(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,G(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),G(n.params,e.params)||t.paramsSubject.next(e.params),Ni(n.url,e.url)||t.urlSubject.next(e.url),G(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function vr(t,n){let e=G(t.params,n.params)&&Li(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||vr(t.parent,n.parent))}function Wn(t){return typeof t.title==`string`||t.title===null}var Qn=new y(``);var Tr=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=g;activateEvents=new Pe$1;deactivateEvents=new Pe$1;attachEvents=new Pe$1;detachEvents=new Pe$1;routerOutletData=kV();parentContexts=g$1(re);location=g$1(Mr$1);changeDetector=g$1(sy);inputBinder=g$1(Je$1,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new m$2(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new m$2(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new m$2(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this,this.location.injector),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new m$2(4013,!1);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,s=new mr(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:s,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this,this.location.injector),this.activateEvents.emit(this.activated.instance)}static ɵfac=function(r){return new(r||t)};static ɵdir=Fo$1({type:t,selectors:[[`router-outlet`]],inputs:{name:`name`,routerOutletData:[1,`routerOutletData`]},outputs:{activateEvents:`activate`,deactivateEvents:`deactivate`,attachEvents:`attach`,detachEvents:`detach`},exportAs:[`outlet`],features:[Xu]})}return t})();var mr=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===W?this.route:n===re?this.childContexts:n===Qn?this.outletData:this.parent.get(n,e)}};var Je$1=new y(``);var Kn=(()=>{class t{options;feature;outletDataSubscriptions=new Map;outletSeenKeys=new Map;outletEffects=new Map;constructor(e,r=null){this.options=e,this.feature=r,this.options.queryParams??=!0}bindActivatedRouteToOutletComponent(e,r){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e,r)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e),this.outletSeenKeys.delete(e),this.outletEffects.get(e)?.forEach(r=>r.destroy()),this.outletEffects.delete(e)}subscribeToRouteData(e,r){let{activatedRoute:i}=e,o=[],a=[];if(this.feature?.createResourceOutletBindingEffects&&e.activatedComponentRef){let{handledKeys:s,createdEffects:u}=this.feature.createResourceOutletBindingEffects(e.activatedComponentRef,i);o.push(...u),a=s}o.length>0&&this.outletEffects.set(e,o);let c=ja([this.options.queryParams?i.queryParams:pt$2({}),i.params,i.data]).pipe(df(([s,u,l],v)=>(l=B(B(B(B({},s),u),l),i.resources),v===0?pt$2(l):Promise.resolve(l)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let u=HV(i.component);if(!u){this.unsubscribeFromRouteData(e);return}let l=this.outletSeenKeys.get(e);l||(l=new Set,this.outletSeenKeys.set(e,l));for(let f of Object.keys(s))l.add(f);let v=this.options.unmatchedInputBehavior??`alwaysUndefined`;for(let{templateName:f}of u.inputs){if(a.includes(f))continue;let S=s[f];(S!==void 0||v===`alwaysUndefined`||l.has(f))&&e.activatedComponentRef.setInput(f,S)}});this.outletDataSubscriptions.set(e,c)}static ɵfac=function(r){zw()};static ɵprov=A$1({token:t,factory:t.ɵfac})}return t})();var Dr=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵcmp=ko$1({type:t,selectors:[[`ng-component`]],exportAs:[`emptyRouterOutlet`],decls:1,vars:0,template:function(r,i){r&1&&hm(0,`router-outlet`)},dependencies:[Tr],encapsulation:2,changeDetection:1})}return t})();function Nr(t){let n=t.children&&t.children.map(Nr),e=n?q$1(B({},t),{children:n}):B({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==g&&(e.component=
438Dr),e}var we$1=`imperative`;var C=(function(t){return t[t.NavigationStart=0]=`NavigationStart`,t[t.NavigationEnd=1]=`NavigationEnd`,t[t.NavigationCancel=2]=`NavigationCancel`,t[t.NavigationError=3]=`NavigationError`,t[t.RoutesRecognized=4]=`RoutesRecognized`,t[t.ResolveStart=5]=`ResolveStart`,t[t.ResolveEnd=6]=`ResolveEnd`,t[t.GuardsCheckStart=7]=`GuardsCheckStart`,t[t.GuardsCheckEnd=8]=`GuardsCheckEnd`,t[t.RouteConfigLoadStart=9]=`RouteConfigLoadStart`,t[t.RouteConfigLoadEnd=10]=`RouteConfigLoadEnd`,t[t.ChildActivationStart=11]=`ChildActivationStart`,t[t.ChildActivationEnd=12]=`ChildActivationEnd`,t[t.ActivationStart=13]=`ActivationStart`,t[t.ActivationEnd=14]=`ActivationEnd`,t[t.Scroll=15]=`Scroll`,t[t.NavigationSkipped=16]=`NavigationSkipped`,t})(C||{});var U=class{id;url;constructor(n,e){this.id=n,this.url=e}};var ne=class extends U{type=C.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r=`imperative`,i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}};var P=class extends U{urlAfterRedirects;type=C.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}};var M=(function(t){return t[t.Redirect=0]=`Redirect`,t[t.SupersededByNewNavigation=1]=`SupersededByNewNavigation`,t[t.NoDataFromResolver=2]=`NoDataFromResolver`,t[t.GuardRejected=3]=`GuardRejected`,t[t.Aborted=4]=`Aborted`,t})(M||{});var Me=(function(t){return t[t.IgnoredSameUrlNavigation=0]=`IgnoredSameUrlNavigation`,t[t.IgnoredByUrlHandlingStrategy=1]=`IgnoredByUrlHandlingStrategy`,t})(Me||{});var k=class extends U{reason;code;type=C.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Yn(t){return t instanceof k&&(t.code===M.Redirect||t.code===M.SupersededByNewNavigation)}var Q=class extends U{reason;code;type=C.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}};var fe=class extends U{error;target;type=C.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}};var We$1=class extends U{urlAfterRedirects;state;type=C.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var bt=class extends U{urlAfterRedirects;state;type=C.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var It=class extends U{urlAfterRedirects;state;shouldActivate;type=C.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}};var Et=class extends U{urlAfterRedirects;state;type=C.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var Mt=class extends U{urlAfterRedirects;state;type=C.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var At=class{route;type=C.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}};var Tt=class{route;type=C.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}};var Dt=class{snapshot;type=C.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var Nt=class{snapshot;type=C.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var _t=class{snapshot;type=C.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var Ot=class{snapshot;type=C.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var Ae$1=class{routerEvent;position;anchor;scrollBehavior;type=C.Scroll;constructor(n,e,r,i){this.routerEvent=n,this.position=e,this.anchor=r,this.scrollBehavior=i}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}};var Te=class{};var Qe$1=class{};var De$1=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function no(t){return!(t instanceof Te)&&!(t instanceof De$1)&&!(t instanceof Qe$1)}function io(t,n,e){let r=new Set;return{newlyCreatedRoutes:r,state:new Ve$1(Ke$1(t,n._root,e?e._root:void 0,r),n)}}function Ke$1(t,n,e,r){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._setPending(n.value);return new T(i,oo(t,n,e,r))}else{if(t.shouldAttach(n.value)){let a=t.retrieve(n.value);if(a!==null){let c=a.route;
438return c.value._setPending(n.value),c.children=n.children.map(s=>Ke$1(t,s,void 0,r)),c}}let i=ao(n.value);i._setPending(n.value),r.add(i);return new T(i,n.children.map(a=>Ke$1(t,a,void 0,r)))}}function oo(t,n,e,r){return n.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return Ke$1(t,i,o,r);return Ke$1(t,i,void 0,r)})}function ao(t){return new W(new jr$1(t.url),new jr$1(t.params),new jr$1(t.queryParams),new jr$1(t.fragment),new jr$1(t.data),t.outlet,t.component,t)}var pe=class t extends Error{redirectTo;navigationBehaviorOptions;constructor(n,e){super(),this.redirectTo=n,this.navigationBehaviorOptions=e,Object.setPrototypeOf(this,t.prototype)}};var Zn=`ngNavigationCancelingError`;function He$1(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=te(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Jn(!1,M.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Jn(t,n){let e=new Error(`NavigationCancelingError: ${t||``}`);return e[Zn]=!0,e.cancellationCode=n,e}function so(t){return Xn(t)&&te(t.url)}function Xn(t){return!!t&&t[Zn]}var yr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),cr(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=Se(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=Se(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(r&&r.outlet){let a=r.outlet.detach(),c=r.children.contexts;r.resetChildren(),this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:c})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=Se(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),n.value._localInjector?.destroy()}activateChildRoutes(n,e,r){let i=Se(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Ot(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Nt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(cr(i),i===o)if(i.component){let a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let a=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),cr(c.route.value),this.activateChildRoutes(n,null,a.children)}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(n,null,a.children)}else this.activateChildRoutes(n,null,r)}};var Ut=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}};var be=class{component;route;constructor(n,e){this.component=n,this.route=e}};function co(t,n,e){let r=t._root;return ze$1(r,n?n._root:null,e,[r.value])}function uo(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function _e(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t==`function`&&!hD(t)?t:n.get(t):r}function ze$1(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Se(n);
438return t.children.forEach(a=>{lo(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,c])=>Fe(c,e.getContext(a),e,i)),i}function lo(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let s=ho(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new Ut(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?ze$1(t,n,c?c.children:null,r,i):ze$1(t,n,e,r,i),s&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new be(c.outlet.component,a))}else a&&Fe(n,c,e,i),i.canActivateChecks.push(new Ut(r)),o.component?ze$1(t,null,c?c.children:null,r,i):ze$1(t,null,e,r,i);return i}function ho(t,n,e){if(typeof e==`function`)return ir$1(n._environmentInjector,()=>e(t,n));switch(e){case`pathParamsChange`:return!de(t.url,n.url);case`pathParamsOrQueryParamsChange`:return!de(t.url,n.url)||!G(t.queryParams,n.queryParams);case`always`:return!0;case`paramsOrQueryParamsChange`:return!vr(t,n)||!G(t.queryParams,n.queryParams);default:return!vr(t,n)}}function Fe(t,n,e,r){let i=Se(t),o=t.value;Object.entries(i).forEach(([a,c])=>{o.component?n?Fe(c,n.children.getContext(a),n.children,r):Fe(c,null,null,r):Fe(c,e?e.getContext(a):null,e,r)}),o.component?n&&n.outlet&&n.outlet.isActivated?r.canDeactivateChecks.push(new be(n.outlet.component,o)):r.canDeactivateChecks.push(new be(null,o)):r.canDeactivateChecks.push(new be(null,o))}function Xe$1(t){return typeof t==`function`}function fo(t){return typeof t==`boolean`}function po(t){return t&&Xe$1(t.canLoad)}function go(t){return t&&Xe$1(t.canActivate)}function vo(t){return t&&Xe$1(t.canActivateChild)}function mo(t){return t&&Xe$1(t.canDeactivate)}function yo(t){return t&&Xe$1(t.canMatch)}function ei(t){return t instanceof an||t?.name===`EmptyError`}var ht=Symbol(`INITIAL_VALUE`);function Ne(){return df(t=>ja(t.map(n=>n.pipe(Ke$2(1),za(ht)))).pipe(Z(n=>{for(let e of n)if(e!==!0){if(e===ht)return ht;if(e===!1||Ro(e))return e}return!0}),dn(n=>n!==ht),Ke$2(1)))}function Ro(t){return te(t)||t instanceof pe}function ti(t){return t.aborted?pt$2(void 0).pipe(Ke$2(1)):new M$1(n=>{let e=()=>{n.next(),n.complete()};return t.addEventListener(`abort`,e),()=>t.removeEventListener(`abort`,e)})}function ri(t){return Wa(ti(t))}function So(t){return ht$2(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?pt$2(q$1(B({},n),{guardsResult:!0})):Co(o,e,r).pipe(ht$2(a=>a&&fo(a)?wo(e,i,t):pt$2(a)),Z(a=>q$1(B({},n),{guardsResult:a})))})}function Co(t,n,e){return Qe$2(t).pipe(ht$2(r=>Ao(r.component,r.route,e,n)),eD(r=>r!==!0,!0))}function wo(t,n,e){return Qe$2(n).pipe(Va(r=>Bt$1(Io(r.route.parent,e),bo(r.route,e),Mo(t,r.path),Eo(t,r.route))),eD(r=>r!==!0,!0))}function bo(t,n){return t!==null&&n&&n(new _t(t)),pt$2(!0)}function Io(t,n){return t!==null&&n&&n(new Dt(t)),pt$2(!0)}function Eo(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return pt$2(!0);let r=e.map(i=>Yv(()=>{let o=n._environmentInjector,a=_e(i,o);return ge(go(a)?a.canActivate(n,t):ir$1(o,()=>a(n,t))).pipe(eD())}));return pt$2(r).pipe(Ne())}function Mo(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>uo(o)).filter(o=>o!==null).map(o=>Yv(()=>{let a=o.guards.map(c=>{let s=o.node._environmentInjector,u=_e(c,s);return ge(vo(u)?u.canActivateChild(e,t):ir$1(s,()=>u(e,t))).pipe(eD())});return pt$2(a).pipe(Ne())}));return pt$2(i).pipe(Ne())}function Ao(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return pt$2(!0);let o=i.map(a=>{let c=n._environmentInjector,s=_e(a,c);return ge(mo(s)?s.canDeactivate(t,n,e,r):ir$1(c,()=>s(t,n,e,r))).pipe(eD())});return pt$2(o).pipe(Ne())}function To(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return pt$2(!0);let a=o.map(c=>{let s=_e(c,t),l=ge(po(s)?s.canLoad(n,e):ir$1(t,()=>s(n,e)));return i?l.pipe(ri(i)):l});return pt$2(a).pipe(Ne(),ni(r))}function ni(t){return wv(Wr(n=>{if(typeof n!=`boolean`)throw He$1(t,n)}),Z(n=>n===!0))}function Do(t,n,e,r,i,o){let a=n.canMatch;if(!a||a.length===0)return pt$2(!0);let c=a.map(s=>{let u=_e(s,t);return ge(yo(u)?u.canMatch(n,e,i):ir$1(t,()=>u(n,e,i))).pipe(ri(o))});return pt$2(c).pipe(Ne(),ni(r))}
438var V=class t extends Error{name=`NoMatch`;segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype)}};var Ye$1=class t extends Error{urlTree;name=`AbsoluteRedirect`;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype)}};function No(t){throw new m$2(4e3,!1)}function _o(t){throw Jn(!1,M.GuardRejected)}var Rr=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){return ft$1(this,null,function*(){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[g])throw No(`${n.redirectTo}`);i=i.children[g]}})}applyRedirectCommands(n,e,r,i,o){return ft$1(this,null,function*(){let a=yield Oo(e,i,o);if(a instanceof D)throw new Ye$1(a);let c=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]===`/`)throw new Ye$1(c);return c})}applyRedirectCreateUrlTree(n,e,r,i){return new D(this.createSegmentGroup(n,e.root,r,i),this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o==`string`&&o[0]===`:`){let c=o.substring(1);r[i]=e[c]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),a=Object.create(null);return Object.entries(e.children).forEach(([c,s])=>{a[c]=this.createSegmentGroup(n,s,r,i)}),new m$1(o,a)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===`:`?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new m$2(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}};function Oo(t,n,e){if(typeof t==`string`)return Promise.resolve(t);let r=t;return vt(ge(ir$1(e,()=>r(n))))}function Uo(t,n){return t.providers&&!t._injector&&(t._injector=nm(t.providers,n,`Route: ${t.path}`)),t._injector??n}function q(t){return t.outlet||g}function Po(t,n){let e=t.filter(r=>q(r)===n);return e.push(...t.filter(r=>q(r)!==n)),e}var Sr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ii(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function Lo(t,n,e,r,i,o,a){let c=oi(t,n,e);if(!c.matched)return pt$2(c);let s=ii(o(c));return r=Uo(n,r),Do(r,n,e,i,s,a).pipe(Z(u=>u===!0?c:B({},Sr)))}function oi(t,n,e){if(n.path===``)return n.pathMatch===`full`&&(t.hasChildren()||e.length>0)?B({},Sr):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Dn)(e,t,n);if(!i)return B({},Sr);let o={};Object.entries(i.posParams??{}).forEach(([c,s])=>{o[c]=s.path});let a=i.consumed.length>0?B(B({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function An(t,n,e,r,i){return e.length>0&&ko(t,e,r,i)?{segmentGroup:new m$1(n,xo(r,new m$1(e,t.children))),slicedSegments:[]}:e.length===0&&$o(t,e,r)?{segmentGroup:new m$1(t.segments,jo(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new m$1(t.segments,t.children),slicedSegments:e}}function jo(t,n,e,r){let i={};for(let o of e)if(Lt(t,n,o)&&!r[q(o)]){let a=new m$1([],{});i[q(o)]=a}return B(B({},r),i)}function xo(t,n){let e={};e[g]=n;for(let r of t)if(r.path===``&&q(r)!==g){let i=new m$1([],{});e[q(r)]=i}return e}function ko(t,n,e,r){return e.some(i=>!Lt(t,n,i)||!(q(i)!==g)?!1:!(r!==void 0&&q(i)===r))}function $o(t,n,e){return e.some(r=>Lt(t,n,r))}function Lt(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch===`full`?!1:e.path===``}function zo(t,n,e){return n.length===0&&!t.hasChildren()}var Cr=class{};function qo(t,n,e,r,i,o,a,c){return ft$1(this,null,function*(){return new wr(t,n,e,r,i,a,o,c).recognize()})}var Ho=31;var wr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;queryParams;constructor(n,e,r,i,o,a,c,s){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer
438=c,this.abortSignal=s,this.applyRedirects=new Rr(this.urlSerializer,this.urlTree),this.queryParams=Object.freeze(B({},this.urlTree.queryParams))}noMatchError(n){return new m$2(4002,`'${n.segmentGroup}'`)}recognize(){return ft$1(this,null,function*(){let n=An(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=yield this.match(n),o=new Ge$1(``,new T(r,e)),a=zn(r,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}})}match(n){return ft$1(this,null,function*(){let e=new Ee$1([],Object.freeze({}),this.queryParams,this.urlTree.fragment,Object.freeze({}),g,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,n,g,e),rootSnapshot:e}}catch(r){if(r instanceof Ye$1)return this.absoluteRedirectCount++,this.absoluteRedirectCount>Ho&&(this.allowRedirects=!1),this.urlTree=r.urlTree,this.queryParams=Object.freeze(B({},this.urlTree.queryParams)),this.match(r.urlTree.root);throw r instanceof V?this.noMatchError(r):r}})}processSegmentGroup(n,e,r,i,o){return ft$1(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let a=yield this.processSegment(n,e,r,r.segments,i,!0,o);return a instanceof T?[a]:[]})}processChildren(n,e,r,i){return ft$1(this,null,function*(){let o=[];for(let s of Object.keys(r.children))s===`primary`?o.unshift(s):o.push(s);let a=[];for(let s of o){let u=r.children[s],l=Po(e,s),v=yield this.processSegment(n,l,u,u.segments,s,!0,i);v instanceof T&&a.push(v)}let c=ai(a);return Fo(c),c})}processSegment(n,e,r,i,o,a,c){return ft$1(this,null,function*(){for(let s of e)try{return yield this.processSegmentAgainstRoute(s._injector??n,e,s,r,i,o,a,c)}catch(u){if(u instanceof V||ei(u))continue;throw u}if(zo(r,i))return new Cr;throw new V(r)})}processSegmentAgainstRoute(n,e,r,i,o,a,c,s){return ft$1(this,null,function*(){if(q(r)!==a&&(a===g||!Lt(i,o,r)||!r.children?.length&&!r.loadChildren||o.length===0&&!i.hasChildren()))throw new V(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,a,s);if(this.allowRedirects&&c)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,a,s);throw new V(i)})}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,c){return ft$1(this,null,function*(){let{matched:s,parameters:u,consumedSegments:l,positionalParamSegments:v,remainingSegments:f}=oi(e,i,o);if(!s)throw new V(e);let S=this.createSnapshot(n,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let $=yield this.applyRedirects.applyRedirectCommands(l,i.redirectTo,v,ii(S),n),ae=yield this.applyRedirects.lineralizeSegments(i,$);return this.processSegment(n,r,e,ae.concat(f),a,!1,c)})}createSnapshot(n,e,r,i,o){let a=new Ee$1(r,i,this.queryParams,this.urlTree.fragment,Go(e),q(e),e.component??e._loadedComponent??null,e,Wo(e),n),c=Mr(a,o,this.paramsInheritanceStrategy);return a.params=c.params,a.data=c.data,a}matchSegmentAgainstRoute(n,e,r,i,o,a){return ft$1(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=se=>this.createSnapshot(n,r,se.consumedSegments,se.parameters,a),s=yield vt(Lo(e,r,i,n,this.urlSerializer,c,this.abortSignal));if(r.path===`**`&&(e.children={}),!s?.matched)throw new V(e);n=r._injector??n;let{routes:u}=yield this.getChildConfig(n,r,i),l=r._loadedInjector??n,{parameters:v,consumedSegments:f,remainingSegments:S}=s,$=this.createSnapshot(n,r,f,v,a),{segmentGroup:ae,slicedSegments:Oe}=An(e,f,S,u,o),me=q(r)===o;if(me&&Oe.length===0&&ae.hasChildren())return new T($,yield this.processChildren(l,u,ae,$));if(me&&u.length===0&&Oe.length===0)return new T($,[]);let Ue=yield this.processSegment(l,u,ae,Oe,me?g:o,!0,$);if(!me&&!(Ue instanceof T))throw new V(e);return new T($,Ue instanceof T?[Ue]:[])})}getChildConfig(n,e,r){return ft$1(this,null,function*(){if(e.children)return{routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}
438if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield vt(To(n,e,r,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw _o(e)}return{routes:[],injector:n}})}};function Fo(t){t.sort((n,e)=>n.value.outlet===g?-1:e.value.outlet===g?1:n.value.outlet.localeCompare(e.value.outlet))}function Bo(t){let n=t.value.routeConfig;return n&&n.path===``}function ai(t){let n=[],e=new Set;for(let i of t){if(!Bo(i)){n.push(i);continue}let o=n.find(a=>i.value.routeConfig===a.value.routeConfig);o!==void 0?(o.children.push(...i.children),e.add(o)):n.push(i)}for(let i of e){let o=ai(i.children);n.push(new T(i.value,o))}let r=n.filter(i=>!e.has(i));return Vo(r),r}function Vo(t){let n=Object.create(null);t.forEach(e=>{let r=n[e.value.outlet];if(r){r.url.map(a=>a.toString()).join(`/`);e.value.url.map(a=>a.toString()).join(`/`);throw new m$2(4006,!1)}n[e.value.outlet]=e.value})}function Go(t){return t.data||{}}function Wo(t){return t.resolve||{}}function Qo(t,n,e,r,i,o,a){return ht$2(c=>ft$1(null,null,function*(){let{state:s,tree:u}=yield qo(t,n,e,r,c.extractedUrl,i,o,a);return q$1(B({},c),{targetSnapshot:s,urlAfterRedirects:u})}))}function Ko(t){return ht$2(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return pt$2(n);let i=new Set(r.map(c=>c.route)),o=new Set;for(let c of i)if(!o.has(c))for(let s of si(c))o.add(s);let a=0;return Qe$2(o).pipe(Va(c=>i.has(c)?Yo(c,e,t):(c.data=Mr(c,c.parent,t).resolve,pt$2(void 0))),Wr(()=>a++),tD(1),ht$2(c=>a===o.size?pt$2(n):un))})}function si(t){return[t,...t.children.map(e=>si(e)).flat()]}function Yo(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!Wn(r)&&(i[Ze$1]=r.title),Yv(()=>(t.data=Mr(t,t.parent,e).resolve,Zo(i,t,n).pipe(Z(o=>(t._resolvedData=o,t.data=B(B({},t.data),o),null)))))}function Zo(t,n,e){let r=lr(t);if(r.length===0)return pt$2({});let i={};return Qe$2(r).pipe(ht$2(o=>Jo(t[o],n,e).pipe(eD(),Wr(a=>{if(a instanceof pe)throw He$1(new Y,a);i[o]=a}))),tD(1),Z(()=>i),Ti(o=>ei(o)?un:Pa(o)))}function Jo(t,n,e){let r=n._environmentInjector,i=_e(t,r);return ge(i.resolve?i.resolve(n,e):ir$1(r,()=>i(n,e)))}var _r=new y(``);function br(t){return df(n=>{let e=t(n);return e?Qe$2(e).pipe(Z(()=>n)):pt$2(n)})}var Or=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===g);return r}getResolvedTitleForRoute(e){return e.data[Ze$1]}static ɵfac=function(r){return new(r||t)};static ɵprov=X$1({token:t,factory:()=>g$1(ci)})}return t})();var ci=(()=>{class t extends Or{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static ɵfac=function(r){return new(r||t)(C$1(BU))};static ɵprov=A$1({token:t,factory:t.ɵfac,providedIn:`root`})}return t})();var oe=new y(``,{factory:()=>({})});var ve=new y(``);var jt=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g$1(eT);loadComponent(e,r){return ft$1(this,null,function*(){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=ft$1(this,null,function*(){try{let o=yield _n(ir$1(e,()=>r.loadComponent())),a=yield li(RV(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=a,a}finally{this.componentLoaders.delete(r)}});return this.componentLoaders.set(r,i),i})}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=ft$1(this,null,function*(){try{let o=yield ui(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r)}});return this.childrenLoaders.set(r,i),i}static ɵfac=function(r){return new(r||t)};static ɵprov=X$1({token:t,factory:t.ɵfac})}return t})();function ui(t,n,e,r){return ft$1(this,null,function*(){let i=yield _n(ir$1(e,()=>t.loadChildren())),o=yield li(RV(i)),a;o instanceof tm||Array.isArray(o)?a=o:a=yield n.compileModuleAsync(o),r&&r(t);let c,s,l;return Array.isArray(a)?s=a:(c=a.create(e).injector,l=a,s=c.get(ve,[],{optional:!0,self:!0}).flat()),{routes:s.map(Nr),injector:c,factory:l}})}function li(t){return ft$1(this,null,function*(){return t})}var xt=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵprov=X$1({token:t,factory:()=>g$1(Xo)})}return t})();var Xo=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static ɵfac=function(r){return new(r||t)};static ɵprov=X$1({token:t,factory:t.ɵfac})}return t})();var Ur=new y(``);var Pr=new y(``);function di(t,n,e,r){let i=t.get(Pr),o=t.get(P$2);if(r){i.skipNextTransition=!1;return}if(!o.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(l=>setTimeout(l));let a,c=new Promise(l=>{a=l}),s=o.startViewTransition(()=>(a(),ea(t)));s.updateCallbackDone.catch(l=>{}),s.ready.catch(l=>{}),s.finished.catch(l=>{});let{onViewTransitionCreated:u}=i;return u&&ir$1(t,()=>u({transition:s,from:n,to:e})),c}function ea(t){return new Promise(n=>{AI({read:()=>setTimeout(n)},{injector:t})})}var ta=()=>{};var Lr=new y(``);var kt=(()=>{class t{currentNavigation=fr$1(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=fr$1(null);events=new te$2;
438transitionAbortWithErrorSubject=new te$2;configLoader=g$1(jt);environmentInjector=g$1(le);destroyRef=g$1(me);urlSerializer=g$1(ie);rootContexts=g$1(re);location=g$1(my);inputBindingEnabled=g$1(Je$1,{optional:!0})!==null;titleStrategy=g$1(Or);options=g$1(oe,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||ro;urlHandlingStrategy=g$1(xt);createViewTransition=g$1(Ur,{optional:!0});navigationErrorHandler=g$1(Lr,{optional:!0});routerResourcesFeature=g$1(_r,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>pt$2(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new At(i)),r=i=>this.events.next(new Tt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;Nr$1(()=>{this.transitions?.next(q$1(B({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new jr$1(null),this.transitions.pipe(dn(r=>r!==null),df(r=>{let i=!0,o=!1,a=new AbortController,c=()=>!o&&this.currentTransition?.id===r.id;return pt$2(r).pipe(df(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,``,M.SupersededByNewNavigation),un;this.currentTransition=r;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl==`string`?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:u?q$1(B({},u),{previousNavigation:null}):null,abort:()=>a.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!l&&v!==`reload`)return this.events.next(new Q(s.id,this.urlSerializer.serialize(s.rawUrl),``,Me.IgnoredSameUrlNavigation)),s.resolve(!1),un;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return pt$2(s).pipe(df(f=>(this.events.next(new ne(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?un:Promise.resolve(f))),Qo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,a.signal),Wr(f=>{r.targetSnapshot=f.targetSnapshot,r.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(S=>(S.finalUrl=f.urlAfterRedirects,S)),this.events.next(new Qe$1)}),df(f=>Qe$2(r.routesRecognizeHandler.deferredHandle??pt$2(void 0)).pipe(Z(()=>f))),Wr(()=>{let f=new We$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(f)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:f,extractedUrl:S,source:$,restoredState:ae,extras:Oe}=s,me=new ne(f,this.urlSerializer.serialize(S),$,ae);this.events.next(me);let Ue=Vn(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=q$1(B({},s),{targetSnapshot:Ue,urlAfterRedirects:S,extras:q$1(B({},Oe),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(se=>(se.finalUrl=S,se)),pt$2(r)}else return this.events.next(new Q(s.id,this.urlSerializer.serialize(s.extractedUrl),``,Me.IgnoredByUrlHandlingStrategy)),s.resolve(!1),un}),Z(s=>{let u=new bt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(u),this.currentTransition=r=q$1(B({},s),{guards:co(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),So(s=>this.events.next(s)),df(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!=`boolean`)throw He$1(this.urlSerializer,s.guardsResult);let u=new It(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(u),!c())return un;if(!s.guardsResult)return this.cancelNavigationTransition(s,``,M.GuardRejected),un;if(s.guards.canActivateChecks.length===0)return pt$2(s);let l=new Et(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(l),!c())return un;let v=!1;return pt$2(s).pipe(Ko(this.paramsInheritanceStrategy),Wr({next:()=>{v=!0;let f=new Mt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(f)},complete:()=>
438{v||this.cancelNavigationTransition(s,``,M.NoDataFromResolver)}}))}),br(s=>{let u=v=>{let f=[];if(v.routeConfig?._loadedComponent)v.component=v.routeConfig?._loadedComponent;else if(v.routeConfig?.loadComponent){let S=v._environmentInjector;f.push(this.configLoader.loadComponent(S,v.routeConfig).then($=>{v.component=$}))}for(let S of v.children)f.push(...u(S));return f},l=u(s.targetSnapshot.root);return l.length===0?pt$2(s):Qe$2(Promise.all(l).then(()=>s))}),df(s=>{let{newlyCreatedRoutes:u,state:l}=io(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=s=q$1(B({},s),{targetRouterState:l,newlyCreatedRoutes:u}),this.currentNavigation.update(v=>(v.targetRouterState=l,v)),pt$2(s)}),this.routerResourcesFeature?.setupAndRunResources(a.signal)??(s=>s),br(()=>this.afterPreactivation()),df(()=>{let{currentSnapshot:s,targetSnapshot:u}=r,l=this.createViewTransition?.(this.environmentInjector,s.root,u.root,r.hasUAVisualTransition);return l?Qe$2(l).pipe(Z(()=>r)):pt$2(r)}),Ke$2(1),df(s=>{i=!1,this.events.next(new Te);let u=r.beforeActivateHandler.deferredHandle;return u?Qe$2(u.then(()=>s)):pt$2(s)}),Wr(s=>{new yr(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s.newlyCreatedRoutes?.clear(),c()&&(hi(s.targetRouterState),o=!0,this.currentNavigation.update(u=>(u.abort=ta,u)),this.lastSuccessfulNavigation.set(Nr$1(this.currentNavigation)),this.events.next(new P(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0))}),Wa(ti(a.signal).pipe(dn(()=>!o&&i),Wr(()=>{this.cancelNavigationTransition(r,a.signal.reason+``,M.Aborted)}))),Wr({complete:()=>{o=!0}}),Wa(this.transitionAbortWithErrorSubject.pipe(Wr(s=>{throw s}))),$r(()=>{a.abort(),o||this.cancelNavigationTransition(r,``,M.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Ti(s=>{if(o=!0,Tn(r),this.destroyed)return r.resolve(!1),un;if(s instanceof pe&&(s=He$1(this.urlSerializer,s)),Xn(s))this.events.next(new k(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),so(s)?this.events.next(new De$1(s.url,s.navigationBehaviorOptions)):r.resolve(!1);else{let u=new fe(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let l=ir$1(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof pe){let{message:v,cancellationCode:f}=He$1(this.urlSerializer,l);this.events.next(new k(r.id,this.urlSerializer.serialize(r.extractedUrl),v,f)),this.events.next(new De$1(l.redirectTo,l.navigationBehaviorOptions))}else throw this.events.next(u),s}catch(l){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(l)}}return un}))}))}cancelNavigationTransition(e,r,i){Tn(e);let o=new k(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=Nr$1(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static ɵfac=function(r){return new(r||t)};static ɵprov=X$1({token:t,factory:t.ɵfac})}return t})();function ra(t){return t!==we$1}function Tn(t){for(let n of t.newlyCreatedRoutes??[])n._localInjector?.destroy(),n._localInjector=void 0;hi(t.targetRouterState)}function hi(t){if(!t)return;let n=e=>{e.value.pending?.set(!1),e.children.forEach(n)};n(t._root)}var fi=new y(``);var pi=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵprov=X$1({token:t,factory:()=>g$1(na)})}return t})();var Pt=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return!0}};var na=(()=>{class t extends Pt{static ɵfac=function(r){return new(r||t)};static ɵprov=X$1({token:t,factory:t.ɵfac})}return t})();var $t=(()=>
438{class t{urlSerializer=g$1(ie);options=g$1(oe,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||`replace`;location=g$1(my);urlHandlingStrategy=g$1(xt);urlUpdateStrategy=this.options.urlUpdateStrategy||`deferred`;currentUrlTree=new D;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,a=i??o;return a instanceof D?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{ɵrouterUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=Vn(null,g$1(le));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static ɵfac=function(r){return new(r||t)};static ɵprov=X$1({token:t,factory:()=>g$1(ia)})}return t})();var ia=(()=>{class t extends $t{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!==`computed`?this.currentPageId:this.restoredState()?.ɵrouterPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type===`popstate`&&setTimeout(()=>{e(r.url,r.state,`popstate`,{replaceUrl:!0},r.hasUAVisualTransition)})})}handleRouterEvent(e,r){e instanceof ne?this.updateStateMemento():e instanceof Q?this.commitTransition(r):e instanceof We$1?this.urlUpdateStrategy===`eager`&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Te?(this.commitTransition(r),this.urlUpdateStrategy===`deferred`&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof k&&!Yn(e)?this.restoreHistory(r):e instanceof fe?this.restoreHistory(r,!0):e instanceof P&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,r){let{extras:i,id:o}=r,{replaceUrl:a,state:c}=i;
438if(this.location.isCurrentPathEqualTo(e)||a){let s=this.browserPageId,u=B(B({},c),this.generateNgRouterState(o,s,r));this.location.replaceState(e,``,u)}else{let s=B(B({},c),this.generateNgRouterState(o,this.browserPageId+1,r));this.location.go(e,``,s)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution===`computed`){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution===`replace`&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),``,this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r,i){return this.canceledNavigationResolution===`computed`?B({navigationId:e,ɵrouterPageId:r},this.routerUrlState(i)):B({navigationId:e},this.routerUrlState(i))}static ɵfac=function(r){return new(r||t)};static ɵprov=X$1({token:t,factory:t.ɵfac})}return t})();function zt(t,n){t.events.pipe(dn(e=>e instanceof P||e instanceof k||e instanceof fe||e instanceof Q),Z(e=>e instanceof P||e instanceof Q?0:(e instanceof k?e.code===M.Redirect||e.code===M.SupersededByNewNavigation:!1)?2:1),dn(e=>e!==2),Ke$2(1)).subscribe(()=>{n()})}var H=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=g$1(lm);stateManager=g$1($t);options=g$1(oe,{optional:!0})||{};pendingTasks=g$1(Xt$1);urlUpdateStrategy=this.options.urlUpdateStrategy||`deferred`;navigationTransitions=g$1(kt);urlSerializer=g$1(ie);location=g$1(my);urlHandlingStrategy=g$1(xt);injector=g$1(le);_events=new te$2;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=g$1(pi);injectorCleanup=g$1(fi,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||`ignore`;config=g$1(ve,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!g$1(Je$1,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new $$1;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=Nr$1(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof k&&r.code!==M.Redirect&&r.code!==M.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof P)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof De$1){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s=B({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy===`eager`||ra(i.source)},a);this.scheduleNavigation(c,we$1,null,s,i.hasUAVisualTransition,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}no(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),we$1,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i,o,a)=>{this.navigateToSyncWithBrowser(e,i,r,o,a)})}navigateToSyncWithBrowser(e,r,i,o,a){let c=i?.navigationId?i:null,
438s=i?.ɵrouterUrl??e;if(i?.ɵrouterUrl&&(o=q$1(B({},o),{browserUrl:e})),i){let l=B({},i);delete l.navigationId,delete l.ɵrouterPageId,delete l.ɵrouterUrl,Object.keys(l).length!==0&&(o.state=l)}let u=this.parseUrl(s);this.scheduleNavigation(u,r,c,o,a).catch(l=>{this.disposed||this.injector.get(st$1)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Nr$1(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Nr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:s}=r,u=s?this.currentUrlTree.fragment:a,l=null;switch(c??this.options.defaultQueryParamsHandling){case`merge`:l=B(B({},this.currentUrlTree.queryParams),o);break;case`preserve`:l=this.currentUrlTree.queryParams;break;default:l=o||null}l!==null&&(l=this.removeEmptyProps(l));let v;try{v=qn(i?i.snapshot:this.routerState.snapshot.root)}catch(f){(typeof e[0]!=`string`||e[0][0]!==`/`)&&(e=[]),v=this.currentUrlTree.root}return Hn(v,e,l,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:!1}){let i=te(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,we$1,null,r)}navigate(e,r={skipLocationChange:!1}){return oa(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(r){return this.console.warn(et$5(4018,!1)),this.urlSerializer.parse(`/`)}}isActive(e,r){let i;if(r===!0?i=B({},Ir):r===!1?i=B({},Ie$1):i=B(B({},Ie$1),r),te(e))return mt(this.currentUrlTree,e,i);let o=this.parseUrl(e);return mt(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,a,c){if(this.disposed)return Promise.resolve(!1);let s,u,l;c?(s=c.resolve,u=c.reject,l=c.promise):l=new Promise((f,S)=>{s=f,u=S});let v=this.pendingTasks.add();return zt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(v))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,hasUAVisualTransition:a,resolve:s,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}
438),l.catch(Promise.reject.bind(Promise))}static ɵfac=function(r){return new(r||t)};static ɵprov=X$1({token:t,factory:t.ɵfac})}return t})();function oa(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new m$2(4008,!1)}var aa=(()=>{class t{router=g$1(H);stateManager=g$1($t);fragment=fr$1(``);queryParams=fr$1({});path=fr$1(``);serializer=g$1(ie);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof P&&this.updateState()})}updateState(){let{fragment:e,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new D(r)))}static ɵfac=function(r){return new(r||t)};static ɵprov=X$1({token:t,factory:t.ɵfac})}return t})();var qt=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=g$1(new Ys(`href`),{optional:!0});reactiveHref=iT(()=>{if(!this.isAnchorElement)return this.hrefAttributeValue;this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=r=>r===`preserve`||r===`merge`;return(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams(),this.computeHref(this.createUrlTree())});get href(){return Nr$1(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return Nr$1(this._target)}_target=fr$1(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return Nr$1(this._queryParams)}_queryParams=fr$1(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return Nr$1(this._fragment)}_fragment=fr$1(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return Nr$1(this._queryParamsHandling)}_queryParamsHandling=fr$1(void 0);set state(e){this._state.set(e)}get state(){return Nr$1(this._state)}_state=fr$1(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return Nr$1(this._info)}_info=fr$1(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return Nr$1(this._relativeTo)}_relativeTo=fr$1(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return Nr$1(this._preserveFragment)}_preserveFragment=fr$1(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return Nr$1(this._skipLocationChange)}_skipLocationChange=fr$1(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return Nr$1(this._replaceUrl)}_replaceUrl=fr$1(!1);browserUrl=kV(void 0);isAnchorElement;onChanges=new te$2;applicationErrorHandler=g$1(st$1);options=g$1(oe,{optional:!0});reactiveRouterState=g$1(aa);constructor(e,r,i,o,a,c){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=c;let s=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=s===`a`||s===`area`||!!(typeof customElements==`object`&&customElements.get(s)?.observedAttributes?.includes?.(`href`))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue(`tabindex`,e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=fr$1(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(te(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl(`0`))}onClick(e,r,i,o,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(e!==0||r||i||o||a||typeof this.target==`string`&&this.target!=`_self`))return!0;let s=this.browserUrl(),u=B({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},s!==void 0&&{browserUrl:s});return this.router.navigateByUrl(c,u)?.catch(l=>{this.applicationErrorHandler(l)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}createUrlTree(){let e=this.routerLinkInput();return e===null||!this.router.createUrlTree?null:te(e)?e:this.router.createUrlTree(e,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})}get urlTree(){return Nr$1(()=>this.createUrlTree())}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??``:null}static ɵfac=function(r){return new(r||t)(Oe(H),Oe(W),el(`tabindex`),Oe(wr$1),Oe(ut),Oe(Ar$1))};static ɵdir=Fo$1({type:t,selectors:[[``,`routerLink`,``]],hostVars:2,hostBindings:function(r,i){r&1&&Em(`click`,function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Lo$1(`href`,i.reactiveHref(),fI)(`target`,i._target())},inputs:{target:`target`,queryParams:`queryParams`,fragment:`fragment`,queryParamsHandling:`queryParamsHandling`,state:`state`,info:`info`,relativeTo:`relativeTo`,preserveFragment:[2,`preserveFragment`,`preserveFragment`,od],skipLocationChange:[2,`skipLocationChange`,`skipLocationChange`,od],replaceUrl:[2,`replaceUrl`,`replaceUrl`,od],browserUrl:[1,`browserUrl`],routerLink:`routerLink`},features:[Xu]})}return t})();var sa=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new Pe$1;link=g$1(qt,{optional:!0});constructor(e,r,i,o){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof P&&this.update()})}ngAfterContentInit(){pt$2(this.links.changes,pt$2(null)).pipe(Hr()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Qe$2(e).pipe(Hr()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){if(e==null){this.classes=[];return}let r=Array.isArray(e)?e:e.split(` `);this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||this.routerLinkActiveOptions===null&&!this._isActive||queueMicrotask(()=>{let e=this.hasActiveLinks();
438this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,`aria-current`,this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,`aria-current`),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=this.routerLinkActiveOptions;if(r===null)return()=>!1;let i;return r===void 0?i=B({},Ie$1):ca(r)?i=r:r.exact??!1?i=B({},Ir):i=B({},Ie$1),o=>{let a=o.urlTree;return a?Nr$1(Er(a,e,i)):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static ɵfac=function(r){return new(r||t)(Oe(H),Oe(ut),Oe(wr$1),Oe(sy))};static ɵdir=Fo$1({type:t,selectors:[[``,`routerLinkActive`,``]],contentQueries:function(r,i,o){if(r&1&&Cm(o,qt,5),r&2){let a;pb(a=hb())&&(i.links=a)}},inputs:{routerLinkActiveOptions:`routerLinkActiveOptions`,ariaCurrentWhenActive:`ariaCurrentWhenActive`,routerLinkActive:`routerLinkActive`},outputs:{isActiveChange:`isActiveChange`},exportAs:[`routerLinkActive`],features:[Xu]})}return t})();function ca(t){let n=t;return!!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var et$1=class{};var gi=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(dn(e=>e instanceof P),Va(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=nm(o.providers,e,``));let a=o._injector??e;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(a).injector);let c=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(c,o.children??o._loadedRoutes))}return Qe$2(i).pipe(Hr())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return pt$2(null);let i;r.loadChildren&&r.canLoad===void 0?i=Qe$2(this.loader.loadChildren(e,r)):i=pt$2(null);let o=i.pipe(ht$2(a=>a===null?pt$2(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,r._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(e,r);return Qe$2([o,a]).pipe(Hr())}else return o})}static ɵfac=function(r){return new(r||t)(C$1(H),C$1(le),C$1(et$1),C$1(jt))};static ɵprov=A$1({token:t,factory:t.ɵfac,providedIn:`root`})}return t})();var vi=new y(``);var ua=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=we$1;restoredId=0;store={};isHydrating=g$1(xE,{optional:!0})??!1;urlSerializer=g$1(ie);zone=g$1(W$2);viewportScroller=g$1(h2);transitions=g$1(kt);constructor(e){this.options=e,this.options.scrollPositionRestoration||=`disabled`,this.options.anchorScrolling||=`disabled`,this.isHydrating&&g$1(en).whenStable().then(()=>{this.isHydrating=!1})}init(){this.options.scrollPositionRestoration!==`disabled`&&this.viewportScroller.setHistoryScrollRestoration(`manual`),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ne?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof P?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Q&&e.code===Me.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof Ae$1)||e.scrollBehavior===`manual`)return;let r={behavior:`instant`};e.position?this.options.scrollPositionRestoration===`top`?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration===`enabled`&&this.viewportScroller.scrollToPosition(e.position,r):e.anchor&&this.options.anchorScrolling===`enabled`?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!==`disabled`&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,r){if(this.isHydrating)return;let i=Nr$1(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>ft$1(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<`u`&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new Ae$1(e,this.lastSource===`popstate`?this.store[this.restoredId]:null,r,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static ɵfac=function(r){zw()};static ɵprov=A$1({token:t,factory:t.ɵfac})}return t})();function la(t,...n){return nt$1([{provide:ve,multi:!0,useValue:t},{provide:W,useFactory:mi},{provide:Vl,multi:!0,useFactory:yi},n.map(e=>e.ɵproviders)])}function mi(){return g$1(H).routerState.root}function tt(t,n){return{ɵkind:t,ɵproviders:n}}function yi(){let t=g$1(ie$1);return n=>{let e=t.get(en);if(n!==e.components[0])return;let r=t.get(H),i=t.get(Ri);t.get(xr)===1&&r.initialNavigation(),t.get(wi,null,{optional:!0})?.setUpPreloading(),t.get(vi,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Ri=new y(``,{factory:()=>new te$2});var xr=new y(``,{factory:()=>1});function Si(){return tt(2,[{provide:Vh,useValue:!0},{provide:xr,useValue:0},AC(()=>{let n=g$1(ie$1);return n.get(BT,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(H),o=n.get(Ri);zt(i,()=>{r(!0)}),n.get(kt).afterPreactivation=()=>(r(!0),o.closed?pt$2(void 0):o),i.initialNavigation()}))})])}function Ci(){return tt(3,[AC(()=>{g$1(H).setUpLocationChangeListener()}),{provide:xr,useValue:2}])}var wi=new y(``);function bi(t){return tt(0,[{provide:wi,useExisting:gi},{provide:et$1,useExisting:t}])}function Ii(t={}){return tt(8,[{provide:Je$1,useFactory:()=>new Kn(t,g$1(_r,{optional:!0}))}])}function Ei(t){dt$2(`NgRouterViewTransitions`);return tt(9,[{provide:Ur,useValue:di},{provide:Pr,useValue:B({skipNextTransition:!!t?.skipInitialTransition},t)}])}var Mi=[my,{provide:ie,useClass:Y},H,re,{provide:W,useFactory:mi},jt];var da=(()=>{class t{constructor(){}static forRoot(e,r){return{ngModule:t,providers:[Mi,[],{provide:ve,multi:!0,useValue:e},[],r?.errorHandler?{provide:Lr,useValue:r.errorHandler}:[],{provide:oe,useValue:r||{}},r?.useHash?fa():pa(),ha(),r?.preloadingStrategy?bi(r.preloadingStrategy).ɵproviders:[],r?.initialNavigation?ga(r):[],r?.bindToComponentInputs?Ii(typeof r.bindToComponentInputs==`object`?r.bindToComponentInputs:{}).ɵproviders:[],r?.enableViewTransitions?Ei().ɵproviders:[],va()]}}static forChild(e){return{ngModule:t,providers:[{provide:ve,multi:!0,useValue:e}]}}static ɵfac=function(r){return new(r||t)};static ɵmod=St$1({type:t});static ɵinj=tt$3({})}return t})();function ha(){return{provide:vi,useFactory:()=>{let t=g$1(h2),n=g$1(oe);return n.scrollOffset&&t.setOffset(n.scrollOffset),new ua(n)}}}function fa(){return{provide:Ar$1,useClass:$T}}function pa(){return{provide:Ar$1,useClass:gy}}function ga(t){return[t.initialNavigation===`disabled`?Ci().ɵproviders:[],t.initialNavigation===`enabledBlocking`?Si().ɵ
438providers:[]]}var jr=new y(``);function va(){return[{provide:jr,useFactory:yi},{provide:Vl,multi:!0,useExisting:jr}]}var m=()=>{let e=g$1(d),a=g$1(H);return e.isAuthenticated()?!0:a.createUrlTree([`/login`])};var ke=[{path:``,redirectTo:`home`,pathMatch:`full`},{path:`home`,loadComponent:()=>import(`./chunk-CMqoQHwF.js`).then(e=>e.HomeComponent),canActivate:[m]},{path:`login`,loadComponent:()=>import(`./chunk-CFVw_ClI.js`).then(e=>e.LoginComponent)},{path:`logout`,loadComponent:()=>import(`./chunk-BI9BQO9n.js`).then(e=>e.LogoutComponent)},{path:`change-password`,loadComponent:()=>import(`./chunk-B62jvsQS.js`).then(e=>e.ChangePasswordComponent),canActivate:[m]},{path:`release-notes`,loadComponent:()=>import(`./chunk-DnAfD2Nr.js`).then(e=>e.ReleaseNotesComponent)},{path:`shop`,loadComponent:()=>import(`./chunk-D2KrRazx.js`).then(e=>e.ShopComponent),canActivate:[m]},{path:`wissensdatenbank`,loadComponent:()=>import(`./chunk-CdDv8rOp.js`).then(e=>e.KnowledgeBaseComponent),canActivate:[m]},{path:`tickets`,loadComponent:()=>import(`./chunk-BgDm8reG.js`).then(e=>e.TicketsComponent),canActivate:[m]},{path:`dokumente`,loadComponent:()=>import(`./chunk-DTl0_CYu.js`).then(e=>e.DokumenteComponent),canActivate:[m]},{path:`agb`,loadComponent:()=>import(`./chunk-VhisnqZ5.js`).then(e=>e.AgbComponent),canActivate:[m]},{path:`tickets/:id`,loadComponent:()=>import(`./chunk-CwjmqCDE.js`).then(e=>e.TicketDetailComponent),canActivate:[m]},{path:`forum`,loadComponent:()=>import(`./chunk-D8ZiDvuv.js`).then(e=>e.ForumComponent),canActivate:[m]},{path:`forum/:id`,loadComponent:()=>import(`./chunk-BkW468NK.js`).then(e=>e.ForumDetailComponent),canActivate:[m]},{path:`customers`,redirectTo:`shop`,pathMatch:`full`},{path:`**`,redirectTo:``}];var ze=(e,a)=>{let n=g$1(d).getToken();if(n&&e.url.startsWith(`/api`))return a(e.clone({setHeaders:{Authorization:`Bearer ${n}`}}));return a(e)};var we={providers:[WD(),BV({eventCoalescing:!0}),la(ke),Q_(K_([ze]))]};var Ae=(()=>{class e{get vertical(){return this._vertical}set vertical(t){this._vertical=go$1(t)}_vertical=!1;get inset(){return this._inset}set inset(t){this._inset=go$1(t)}_inset=!1;static ɵfac=function(n){return new(n||e)};static ɵcmp=ko$1({type:e,selectors:[[`mat-divider`]],hostAttrs:[`role`,`separator`,1,`mat-divider`],hostVars:7,hostBindings:function(n,l){n&2&&(Lo$1(`aria-orientation`,l.vertical?`vertical`:`horizontal`),qs(`mat-divider-vertical`,l.vertical)(`mat-divider-horizontal`,!l.vertical)(`mat-divider-inset`,l.inset))},inputs:{vertical:`vertical`,inset:`inset`},decls:0,vars:0,template:function(n,l){},styles:[`.mat-divider { 439 display: block; 440 margin: 0; 441 border-top-style: solid; 442 border-top-color: var(--%NS%mat-divider-color, var(--%NS%mat-sys-outline-variant)); 443 border-top-width: var(--%NS%mat-divider-width, 1px); 444} 445.mat-divider.mat-divider-vertical { 446 border-top: 0; 447 border-right-style: solid; 448 border-right-color: var(--%NS%mat-divider-color, var(--%NS%mat-sys-outline-variant)); 449 border-right-width: var(--%NS%mat-divider-width, 1px); 450} 451.mat-divider.mat-divider-inset { 452 margin-left: 80px; 453} 454[dir=rtl] .mat-divider.mat-divider-inset { 455 margin-left: auto; 456 margin-right: 80px; 457} 458`],encapsulation:2})}return e})();var Be=(()=>{class e{static ɵfac=function(n){return new(n||e)};static ɵmod=St$1({type:e});static ɵinj=tt$3({imports:[av]})}return e})();var Ie=new y(`MAT_BADGE_CONFIG`);var Ee=`mat-badge-content`;var Le=(()=>{class e{static ɵfac=function(n){return new(n||e)};static ɵcmp=ko$1({type:e,selectors:[[`ng-component`]],decls:0,vars:0,template:function(n,l){},styles:[`.mat-badge { 459 position: relative; 460} 461.mat-badge.mat-badge { 462 overflow: visible; 463} 464 465.mat-badge-content { 466 position: absolute; 467 text-align: center; 468 display: inline-block; 469 transition: transform 200ms ease-in-out; 470 transform: scale(0.6); 471 overflow: hidden; 472 white-space: nowrap; 473 text-overflow: ellipsis; 474 box-sizing: border-box; 475 pointer-events: none; 476 background-color: var(--%NS%mat-badge-background-color, var(--%NS%mat-sys-error)); 477 color: var(--%NS%mat-badge-text-color, var(--%NS%mat-sys-on-error)); 478 font-family: var(--%NS%mat-badge-text-font, var(--%NS%mat-sys-label-small-font)); 479 font-weight: var(--%NS%mat-badge-text-weight, var(--%NS%mat-sys-label-small-weight)); 480 border-radius: var(--%NS%mat-badge-container-shape, var(--%NS%mat-sys-corner-full)); 481} 482.mat-badge-above .mat-badge-content { 483 bottom: 100%; 484} 485.mat-badge-below .mat-badge-content { 486 top: 100%; 487} 488.mat-badge-before .mat-badge-content { 489 right: 100%; 490} 491[dir=rtl] .mat-badge-before .mat-badge-content { 492 right: auto; 493 left: 100%; 494} 495.mat-badge-after .mat-badge-content { 496 left: 100%; 497} 498[dir=rtl] .mat-badge-after .mat-badge-content { 499 left: auto; 500 right: 100%; 501} 502@media (forced-colors: active) { 503 .mat-badge-content { 504 outline: solid 1px; 505 border-radius: 0; 506 } 507} 508 509.mat-badge-disabled .mat-badge-content { 510 background-color: var(--%NS%mat-badge-disabled-state-background-color, color-mix(in srgb, var(--%NS%mat-sys-error) 38%, transparent)); 511 color: var(--%NS%mat-badge-disabled-state-text-color, var(--%NS%mat-sys-on-error)); 512} 513 514.mat-badge-hidden .mat-badge-content { 515 display: none; 516} 517 518.ng-animate-disabled .mat-badge-content, 519.mat-badge-content._mat-animation-noopable { 520 transition: none; 521} 522 523.mat-badge-content.mat-badge-active { 524 transform: none; 525} 526 527.mat-badge-small .mat-badge-content { 528 width: var(--%NS%mat-badge-legacy-small-size-container-size, unset); 529 height: var(--%NS%mat-badge-legacy-small-size-container-size, unset); 530 min-width: var(--%NS%mat-badge-small-size-container-size, 6px); 531 min-height: var(--%NS%mat-badge-small-size-container-size, 6px); 532 line-height: var(--%NS%mat-badge-small-size-line-height, 6px); 533 padding: var(--%NS%mat-badge-small-size-container-padding, 0); 534 font-size: var(--%NS%mat-badge-small-size-text-size, 0); 535 margin: var(--%NS%mat-badge-small-size-container-offset, -6px 0); 536} 537.mat-badge-small.mat-badge-overlap .mat-badge-content { 538 margin: var(--%NS%mat-badge-small-size-container-overlap-offset, -6px); 539} 540 541.mat-badge-medium .mat-badge-content { 542 width: var(--%NS%mat-badge-legacy-container-size, unset); 543 height: var(--%NS%mat-badge-legacy-container-size, unset); 544 min-width: var(--%NS%mat-badge-container-size, 16px); 545 min-height: var(--%NS%mat-badge-container-size, 16px); 546 line-height: var(--%NS%mat-badge-line-height, 16px); 547 padding: var(--%NS%mat-badge-container-padding, 0 4px); 548 font-size: var(--%NS%mat-badge-text-size, var(--%NS%mat-sys-label-small-size)); 549 margin: var(--%NS%mat-badge-container-offset, -12px 0); 550} 551.mat-badge-medium.mat-badge-overlap .mat-badge-content { 552 margin: var(--%NS%mat-badge-container-overlap-offset, -12px); 553} 554 555.mat-badge-large .mat-badge-content { 556 width: var(--%NS%mat-badge-legacy-large-size-container-size, unset); 557 height: var(--%NS%mat-badge-legacy-large-size-container-size, unset); 558 min-width: var(--%NS%mat-badge-large-size-container-size, 16px); 559 min-height: var(--%NS%mat-badge-large-size-container-size, 16px); 560 line-height: var(--%NS%mat-badge-large-size-line-height, 16px); 561 padding: var(--%NS%mat-badge-large-size-container-padding, 0 4px); 562 font-size: var(--%NS%mat-badge-large-size-text-size, var(--%NS%mat-sys-label-small-size)); 563 margin: var(--%NS%mat-badge-large-size-container-offset, -12px 0); 564} 565.mat-badge-large.mat-badge-overlap .mat-badge-content { 566 margin: var(--%NS%mat-badge-large-size-container-overlap-offset, -12px); 567} 568`],encapsulation:2})}return e})();var Pe=(()=>{class e{_ngZone=g$1(W$2);_elementRef=g$1(ut);_ariaDescriber=g$1(Xa);_renderer=g$1(wr$1);_animationsDisabled=B$();_idGenerator=g$1(Ct$1);get color(){return this._color}set color(t){this._setColor(t),this._color=t}_color;overlap;disabled=!1;position;get content(){return this._content}set content(t){this._updateRenderedContent(t)}_content;get description(){return this._description}set description(t){this._updateDescription(t)}_description;size;hidden=!1;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=g$1(Se$1);_document=g$1(P$2);constructor(){let t=g$1(Ie,{optional:!0}),n=g$1(tS);n.load(Le),n.load(qU),this._color=t?.color||`primary`,this.overlap=t?.overlap??!0,this.position=t?.position||`above after`,this.size=t?.size||`medium`}isAbove(){return this.position.indexOf(`below`)===-1}isAfter(){return this.position.indexOf(`before`)===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngAfterViewInit(){}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let t=this._renderer.createElement(`span`),n=`mat-badge-active`;return t.setAttribute(`id`,this._idGenerator.getId(`mat-badge-content-`)),t.setAttribute(`aria-hidden`,`true`),t.classList.add(Ee),this._animationsDisabled&&t.classList.add(`_mat-animation-noopable`),this._elementRef.nativeElement.appendChild(t),typeof requestAnimationFrame==`function`&&!this._animationsDisabled?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{t.classList.add(n)})}):t.classList.add(n),t}_updateRenderedContent(t){let n=`${t??``}`.trim();this._isInitialized&&n&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=n),this._content=n}_updateDescription(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!t||this._isHostInteractive())&&this._removeInlineDescription(),this._description=t,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,t):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement(`span`),this._inlineBadgeDescription.classList.add(`cdk-visually-hidden`)),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(t){let n=this._elementRef.nativeElement.classList;n.remove(`mat-badge-${this._color}`),t&&n.add(`mat-badge-${t}`)}_clearExistingBadges(){let t=this._elementRef.nativeElement.querySelectorAll(`:scope > .${Ee}`);for(let n of Array.from(t))n!==this._badgeElement&&n.remove()}static ɵfac=function(n){return new(n||e)};static ɵdir=Fo$1({type:e,selectors:[[``,`matBadge`,``]],hostAttrs:[1,`mat-badge`],hostVars:20,hostBindings:function(n,l){n&2&&qs(`mat-badge-overlap`,l.overlap)(`mat-badge-above`,l.isAbove())(`mat-badge-below`,!l.isAbove())(`mat-badge-before`,!l.isAfter())(`mat-badge-after`,l.isAfter())(`mat-badge-small`,l.size===`small`)(`mat-badge-medium`,l.size===`medium`)(`mat-badge-large`,l.size===`large`)(`mat-badge-hidden`,l.hidden||!l.content)(`mat-badge-disabled`,l.disabled)},inputs:{color:[0,`matBadgeColor`,`color`],overlap:[2,`matBadgeOverlap`,`overlap`,od],disabled:[2,`matBadgeDisabled`,`disabled`,od],position:[0,`matBadgePosition`,`position`],content:[0,`matBadge`,`content`],description:[0,`matBadgeDescription`,`description`],size:[0,`matBadgeSize`,`size`],hidden:[2,`matBadgeHidden`,`hidden`,od]}})}return e})();var De=(()=>{class e{static ɵfac=function(n){return new(n||e)};static ɵmod=St$1({type:e});static ɵinj=tt$3({imports:[sn,av]})}return e})();var Ue=(e,a)=>a.label;function He(e,a){e&1&&($l(0,`span`,0),Pb(1),zl()),e&2&&(QI(),Lm(a))}function je(e,a){if(e&1&&($l(0,`span`,2),Pb(1),zl()),e&2){let t=a.$implicit;qs(`pc-chip--vermittler`,t.role===`vermittler`)(`pc-chip--wiederverkaeufer`,t.role===`wiederverkaeufer`),QI(),Lm(t.label)}}var Ve={vermittler:`Vermittler`,wiederverkaeufer:`Wiederverkäufer`};var Ge={telematik:`Telematik`,medical:`Medical`};var w=class e{constructor(a){this.authService=a}authService;partnerCompany=rT(()=>this.authService.currentUser()?.partnerCompany??null);statusChips=rT(()=>{let a=this.authService.currentUser();
568return a?.partnerCompany?(a.partnerStatuses??[]).map(t=>({role:t.role,label:`${Ve[t.role]} ${Ge[t.product]??t.product}`})):[]});static ɵfac=function(t){return new(t||e)(Oe(d))};static ɵcmp=ko$1({type:e,selectors:[[`app-partner-chips`]],decls:3,vars:1,consts:[[1,`pc-chip`,`pc-chip--name`],[1,`pc-chip`,3,`pc-chip--vermittler`,`pc-chip--wiederverkaeufer`],[1,`pc-chip`]],template:function(t,n){if(t&1&&(ZC(0,He,2,1,`span`,0),XC(1,je,2,5,`span`,1,Ue)),t&2){let l;QC((l=n.partnerCompany())?0:-1,l),QI(),JC(n.statusChips())}},styles:[`[_nghost-%COMP%]{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;vertical-align:middle}.pc-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:4px 12px;border-radius:16px;font-size:.8rem;font-weight:500;line-height:1.4;white-space:nowrap}.pc-chip--name[_ngcontent-%COMP%]{background-color:var(--%NS%red-primary-blue, #177ABF);color:#fff}.pc-chip--vermittler[_ngcontent-%COMP%]{background-color:#177abf1f;color:var(--%NS%red-primary-blue, #177ABF);border:1px solid rgba(23,122,191,.3)}.pc-chip--wiederverkaeufer[_ngcontent-%COMP%]{background-color:#0000000f;color:#444;border:1px solid rgba(0,0,0,.12)}`]})};function $e(e,a){if(e&1&&(ks(0,`small`,30),Pb(1),Ul()),e&2){let t=lb(2);QI(),Lm(t.authService.currentUser()?.partnerCompany)}}function We(e,a){e&1&&(ks(0,`button`,32)(1,`mat-icon`),Pb(2,`gavel`),Ul(),ks(3,`span`),Pb(4,`Meine AGB`),Ul()())}function Ze(e,a){e&1&&(ks(0,`button`,34)(1,`mat-icon`),Pb(2,`admin_panel_settings`),Ul(),ks(3,`span`),Pb(4,`Benutzerverwaltung`),Ul()(),hm(5,`mat-divider`))}function qe(e,a){e&1&&(ks(0,`button`,35)(1,`mat-icon`),Pb(2,`lock`),Ul(),ks(3,`span`),Pb(4,`Passwort ändern`),Ul()(),hm(5,`mat-divider`))}function Ke(e,a){if(e&1){let t=ib();ks(0,`button`,27)(1,`span`,28),Pb(2),Ul()(),ks(3,`mat-menu`,null,1)(5,`div`,29)(6,`strong`),Pb(7),Ul(),ZC(8,$e,2,1,`small`,30),ks(9,`small`),Pb(10),Ul()(),hm(11,`mat-divider`),ks(12,`button`,31)(13,`mat-icon`),Pb(14,`description`),Ul(),ks(15,`span`),Pb(16,`Dokumente`),Ul()(),ZC(17,We,5,0,`button`,32),hm(18,`mat-divider`),ZC(19,Ze,6,0),ZC(20,qe,6,0),ks(21,`button`,33),Em(`click`,function(){Jf(t);let l=lb();return ep(l.logout())}),ks(22,`mat-icon`),Pb(23,`logout`),Ul(),ks(24,`span`),Pb(25,`Abmelden`),Ul()()()}if(e&2){let t=mb(4),n=lb();pm(`matMenuTriggerFor`,t),QI(2),Lm(n.userInitials()),QI(5),Lm(n.authService.currentUser()?.name),QI(),QC(n.authService.currentUser()?.partnerCompany?8:-1),QI(2),Lm(n.authService.currentUser()?.email),QI(7),QC(n.isReseller()?17:-1),QI(2),QC(n.isAdmin()?19:-1),QI(),QC(n.canChangePassword()?20:-1)}}function Je(e,a){e&1&&(ks(0,`button`,24),Pb(1,` Anmelden `),Ul())}function Qe(e,a){e&1&&(ks(0,`div`,25),hm(1,`app-partner-chips`),Ul())}var Xe=`https://helpdesk.redmedical.de/portal/de`;var Ye=`https://app.telematik-manager.de/dashboard`;var et=6e4;var A=class e{constructor(a,t,n){this.authService=a;this.forumService=t;this.router=n}authService;forumService;router;title=fr$1(`Partnerportal`);forumUnread=fr$1(0);forumPollTimer=null;forumPollBusy=!1;isAdmin=rT(()=>this.authService.userGroupId()===`admin`);canChangePassword=rT(()=>(this.authService.currentUser()?.email??``).trim()!==``);isReseller=rT(()=>{let a=this.authService.currentUser();return typeof a?.istWiederverkaeufer==`boolean`?a.istWiederverkaeufer:(a?.partnerStatuses??[]).some(t=>t.role===`wiederverkaeufer`)});helpdeskBaseUrl=Xe;rtmUrl=Ye;userInitials=rT(()=>{let a=this.authService.currentUser()?.name??``,t=a.trim().split(/\s+/);return t.length>=2?(t[0][0]+t[t.length-1][0]).toUpperCase():a.substring(0,2).toUpperCase()});ngOnInit(){this.refreshForumUnread(),this.forumPollTimer=setInterval(()=>{this.refreshForumUnread()},et)}ngOnDestroy(){this.forumPollTimer&&clearInterval(this.forumPollTimer)}refreshForumUnread(){return ft$1(this,null,function*(){if(!this.authService.isAuthenticated()){this.forumUnread()!==0&&this.forumUnread.set(0);return}if(!this.forumPollBusy){this.forumPollBusy=!0;try{this.forumUnread.set(yield this.forumService.getUnreadCount())}catch(a){}finally{this.forumPollBusy=!1}}})}logout(){this.authService.logout(),this.router.navigate([`/login`])}static ɵfac=function(t){return new(t||e)(Oe(d),Oe(c$1),Oe(H))};static ɵcmp=ko$1({type:e,selectors:[[`app-root`]],decls:43,vars:11,consts:[[`mobileMenu`,`matMenu`],[`userMenu`,`matMenu`],[1,`portal-nav`],[1,`portal-nav-inner`],[1,`portal-nav-brand`],[`src`,`assets/images/branding/logo.png`,`alt`,`RED medical`,1,`portal-nav-logo`],[1,`portal-nav-title`],[1,`portal-nav-links`],[`routerLink`,`/home`,`routerLinkActive`,`portal-nav-link-active`,1,`portal-nav-link`],[`routerLink`,`/shop`,`routerLinkActive`,`portal-nav-link-active`,1,`portal-nav-link`],[`routerLink`,`/tickets`,`routerLinkActive`,`portal-nav-link-active`,1,`portal-nav-link`],[`routerLink`,`/forum`,`routerLinkActive`,`portal-nav-link-active`,`matBadgeColor`,`warn`,`matBadgeSize`,`small`,`matBadgeOverlap`,`false`,1,`portal-nav-link`,3,`matBadge`,`matBadgeHidden`],[`routerLink`,`/wissensdatenbank`,`routerLinkActive`,`portal-nav-link-active`,1,`portal-nav-link`],[`target`,`_blank`,`rel`,`noopener`,`matTooltip`,`RED telematik manager. Sie müssen sich dort separat einloggen.`,1,`portal-nav-link`,3,`href`],[1,`portal-nav-user`],[`mat-icon-button`,``,`aria-label`,`Navigationsmenü öffnen`,`matBadgeColor`,`warn`,`matBadgeSize`,`small`,1,`portal-nav-mobile-toggle`,3,`matMenuTriggerFor`,`matBadge`,`matBadgeHidden`],[1,`portal-nav-mobile-menu`],[`mat-menu-item`,``,`routerLink`,`/home`,`routerLinkActive`,`portal-nav-link-active`],[`mat-menu-item`,``,`routerLink`,`/shop`,`routerLinkActive`,`portal-nav-link-active`],[`mat-menu-item`,``,`routerLink`,`/tickets`,`routerLinkActive`,`portal-nav-link-active`],[`mat-menu-item`,``,`routerLink`,`/forum`,`routerLinkActive`,`portal-nav-link-active`],[`matBadgeColor`,`warn`,`matBadgeSize`,`small`,`matBadgeOverlap`,`false`,3,`matBadge`,`matBadgeHidden`],[`mat-menu-item`,``,`routerLink`,`/wissensdatenbank`,`routerLinkActive`,`portal-nav-link-active`],[`mat-menu-item`,``,`target`,`_blank`,`rel`,`noopener`,3,`href`],[`mat-button`,``,`routerLink`,`/login`,1,`portal-nav-link`],[1,`partner-bar`],[1,`app-content`],[`mat-icon-button`,``,1,`user-avatar-button`,3,`matMenuTriggerFor`],[1,`user-avatar-initials`],[1,`menu-header`],[1,`partner-company-label`],[`mat-menu-item`,``,`routerLink`,`/dokumente`],[`mat-menu-item`,``,`routerLink`,`/agb`],[`mat-menu-item`,``,3,`click`],[`mat-menu-item`,``,`routerLink`,`/admin/users`],[`mat-menu-item`,``,`routerLink`,`/change-password`]],template:function(t,n){if(t&1&&(ks(0,`nav`,2)(1,`div`,3)(2,`div`,4),hm(3,`img`,5),ks(4,`span`,6),Pb(5,`RED Partnerportal`),Ul()(),ks(6,`div`,7)(7,`a`,8),Pb(8,`Home`),Ul(),ks(9,`a`,9),Pb(10,`Vertrieb`),Ul(),ks(11,`a`,10),Pb(12,`Tickets`),Ul(),ks(13,`a`,11),Pb(14,`Forum`),Ul(),ks(15,`a`,12),Pb(16,`Wissensdatenbank`),Ul(),ks(17,`a`,13),Pb(18,`RTM`),Ul()(),ks(19,`div`,14)(20,`button`,15)(21,`mat-icon`),Pb(22,`menu`),Ul()(),ks(23,`mat-menu`,16,0)(25,`a`,17),Pb(26,`Home`),Ul(),ks(27,`a`,18),Pb(28,`Vertrieb`),Ul(),ks(29,`a`,19),Pb(30,`Tickets`),Ul(),ks(31,`a`,20)(32,`span`,21),Pb(33,`Forum`),Ul()(),ks(34,`a`,22),Pb(35,`Wissensdatenbank`),Ul(),ks(36,`a`,23),Pb(37,`RTM`),Ul()(),ZC(38,Ke,26,8)(39,Je,2,0,`button`,24),Ul()()(),ZC(40,Qe,2,0,`div`,25),ks(41,`main`,26),hm(42,`router-outlet`),Ul()),t&2){let l=mb(24);QI(13),pm(`matBadge`,n.forumUnread())(`matBadgeHidden`,n.forumUnread()===0),QI(4),pm(`href`,n.rtmUrl,eg),QI(3),pm(`matMenuTriggerFor`,l)(`matBadge`,n.forumUnread())(`matBadgeHidden`,n.forumUnread()===0),QI(12),pm(`matBadge`,n.forumUnread())(`matBadgeHidden`,n.forumUnread()===0),QI(4),pm(`href`,n.rtmUrl,eg),QI(2),QC(n.authService.isAuthenticated()?38:39),QI(2),QC(n.authService.isAuthenticated()&&n.authService.currentUser()?.partnerCompany?40:-1)}},dependencies:[Tr,da,qt,sa,E$,D$,ri$1,ii$1,vn,Ot$1,P$1,G$1,At$1,Be,Ae,Vt,_t$1,De,Pe,w],styles:[`.portal-nav[_ngcontent-%COMP%]{background-color:#fff;font-family:Lato,sans-serif;border-bottom:1px solid #e0e0e0}.portal-nav[_ngcontent-%COMP%] .portal-nav-inner[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;max-width:1400px;margin:0 auto;padding:0 24px;height:64px;gap:32px}.portal-nav[_ngcontent-%COMP%] .portal-nav-brand[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex-shrink:0}.portal-nav[_ngcontent-%COMP%] .portal-nav-logo[_ngcontent-%COMP%]{height:40px}.portal-nav[_ngcontent-%COMP%] .portal-nav-title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;color:#212a43;white-space:nowrap}.portal-nav[_ngcontent-%COMP%] .portal-nav-links[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.portal-nav[_ngcontent-%COMP%] .portal-nav-link[_ngcontent-%COMP%]{color:#212a43;text-decoration:none;font-size:.95rem;font-weight:400;padding:6px 7px;border-radius:4px;letter-spacing:.5px;transition:color .15s;white-space:nowrap}.portal-nav[_ngcontent-%COMP%] .portal-nav-link[_ngcontent-%COMP%]:hover{color:var(--%NS%red-primary-blue, #177ABF)}.portal-nav[_ngcontent-%COMP%] .portal-nav-link.portal-nav-link-active[_ngcontent-%COMP%]{color:var(--%NS%red-primary-blue, #177ABF);font-weight:400}.portal-nav[_ngcontent-%COMP%] .portal-nav-link.portal-nav-link-disabled[_ngcontent-%COMP%]{color:#9aa0ad;cursor:not-allowed}.portal-nav[_ngcontent-%COMP%] .portal-nav-link.portal-nav-link-disabled[_ngcontent-%COMP%]:hover{color:#9aa0ad}.portal-nav[_ngcontent-%COMP%] .portal-nav-user[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center;gap:4px}.portal-nav[_ngcontent-%COMP%] .portal-nav-mobile-toggle[_ngcontent-%COMP%]{display:none}.portal-nav[_ngcontent-%COMP%] .user-avatar-button[_ngcontent-%COMP%]{width:40px;height:40px;padding:0}.portal-nav[_ngcontent-%COMP%] .user-avatar-button[_ngcontent-%COMP%] .user-avatar-initials[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background-color:#fafcfe;border:1px solid #b9d7ec;color:var(--%NS%red-primary-blue, #177ABF);font-size:.9rem;font-weight:400;letter-spacing:.5px}.menu-header[_ngcontent-%COMP%]{padding:12px 16px;display:flex;flex-direction:column;gap:4px}.menu-header[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:#0009}.menu-header[_ngcontent-%COMP%] .partner-company-label[_ngcontent-%COMP%]{color:var(--%NS%red-primary-blue, #177ABF);font-weight:500}.partner-bar[_ngcontent-%COMP%]{max-width:1200px;margin:0 auto;padding:1.25rem 1.5rem 0;display:flex;align-items:center;justify-content:center}.app-content[_ngcontent-%COMP%]{padding:1.5rem;max-width:1200px;margin:0 auto}@media(max-width:960px){.portal-nav[_ngcontent-%COMP%] .portal-nav-inner[_ngcontent-%COMP%]{justify-content:space-between;gap:12px;padding:0 16px}.portal-nav[_ngcontent-%COMP%] .portal-nav-brand[_ngcontent-%COMP%]{min-width:0}.portal-nav[_ngcontent-%COMP%] .portal-nav-title[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.portal-nav[_ngcontent-%COMP%] .portal-nav-links[_ngcontent-%COMP%]{display:none}.portal-nav[_ngcontent-%COMP%] .portal-nav-mobile-toggle[_ngcontent-%COMP%]{display:inline-flex}.partner-bar[_ngcontent-%COMP%]{padding:1rem 1rem 0;justify-content:flex-start}.app-content[_ngcontent-%COMP%]{padding:1rem}}@media(max-width:430px){.portal-nav[_ngcontent-%COMP%] .portal-nav-brand[_ngcontent-%COMP%]{flex-shrink:1;gap:8px}.portal-nav[_ngcontent-%COMP%] .portal-nav-logo[_ngcontent-%COMP%]{height:32px}.portal-nav[_ngcontent-%COMP%] .portal-nav-title[_ngcontent-%COMP%]{font-size:1rem}.portal-nav[_ngcontent-%COMP%] .portal-nav-user[_ngcontent-%COMP%]{flex-shrink:0}}`]})};b_(A,we).catch(e=>console.error(e));export{zt$1 as C,te$1 as S,et$4 as _,Vt as a,rt$1 as b,At$1 as c,P$1 as d,D$1 as f,Zt as g,W$1 as h,qt as i,G$1 as l,Qt as m,W as n,_t$1 as o,Lt$1 as p,da as r,d as s,H as t,Ot$1 as u,it$1 as v,c$1 as w,st as x,nt as y};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.