File: //usr/local/CyberCP/public/imunifyav/assets/static/shared-dependencies/router.min.3620fa413415.js
System.register(["@angular/core","rxjs","@angular/common","rxjs/operators"],function(t){"use strict";var e,r,n,s,i,o,a,u,c,l,h,d,p,g,f,m,v,S,y,w,C,R,b,A,T,E,_,I,x,U,k,j,P,O,L,N,$,M,H,z,D,F,q,G,W,B,V,K,Z,Q,Y,J,X,tt,et,rt,nt,st,it,ot,at,ut,ct,lt,ht,dt,pt,gt,ft,mt,vt,St,yt,wt,Ct,Rt,bt,At,Tt,Et,_t,It,xt,Ut,kt,jt,Pt,Ot,Lt,Nt,$t,Mt,Ht,zt,Dt,Ft,qt,Gt,Wt,Bt,Vt,Kt;return{setters:[function(t){e=t.InjectionToken,r=t,t.Injectable,t.Inject,n=t.APP_ID,s=t.createPlatformFactory,i=t.platformCore,o=t.ApplicationModule,t.NgModule,a=t.Optional,u=t.SkipSelf,c=t.inject,l=t["\u0275Console"],t.forwardRef,h=t.SecurityContext,d=t["\u0275allowSanitizationBypassAndThrow"],p=t["\u0275unwrapSafeValue"],g=t["\u0275_sanitizeUrl"],f=t["\u0275_sanitizeHtml"],m=t["\u0275bypassSanitizationTrustHtml"],v=t["\u0275bypassSanitizationTrustStyle"],S=t["\u0275bypassSanitizationTrustScript"],y=t["\u0275bypassSanitizationTrustUrl"],w=t["\u0275bypassSanitizationTrustResourceUrl"],C=t.Injector,R=t.Version,b=t.ViewEncapsulation,A=t.RendererStyleFlags2,T=t.PLATFORM_ID,E=t.PLATFORM_INITIALIZER,_=t["\u0275TESTABILITY_GETTER"],I=t["\u0275TESTABILITY"],x=t.Testability,U=t.NgZone,k=t.TestabilityRegistry,j=t["\u0275INJECTOR_SCOPE"],P=t.ErrorHandler,O=t.RendererFactory2,L=t["\u0275\u0275inject"],N=t.APP_INITIALIZER,$=t["\u0275global"],M=t["\u0275setDocument"],H=t.ApplicationInitStatus,z=t["\u0275RuntimeError"],t.Directive,t.Attribute,t.Output,t.Component,t.Input,t.HostListener,t.HostBinding,t.ContentChildren,D=t.EventEmitter,F=t.InjectFlags,q=t.NgModuleFactory,G=t.Compiler,W=t.NgModuleRef,B=t["\u0275coerceToBoolean"],V=t.createEnvironmentInjector,K=t.APP_BOOTSTRAP_LISTENER,Z=t.ApplicationRef,Q=t.NgProbeToken,Y=t["\u0275isObservable"],J=t["\u0275isPromise"],t["\u0275isStandalone"],X=t.ComponentFactoryResolver,tt=t["\u0275isInjectable"],et=t.ENVIRONMENT_INITIALIZER},function(t){rt=t.Subject,nt=t.of,st=t.ConnectableObservable,it=t.from,ot=t.BehaviorSubject,at=t.EMPTY,ut=t.concat,ct=t.defer,lt=t.combineLatest,ht=t.throwError,dt=t.EmptyError,pt=t.pipe,gt=t.Observable},function(t){ft=t.DOCUMENT,mt=t.CommonModule,vt=t["\u0275getDOM"],St=t["\u0275PLATFORM_BROWSER_ID"],yt=t.XhrFactory,wt=t["\u0275setRootDomAdapter"],Ct=t["\u0275parseCookieValue"],Rt=t["\u0275DomAdapter"],bt=t,At=t.Location,Tt=t.ViewportScroller,Et=t.LocationStrategy,_t=t.HashLocationStrategy,It=t.PathLocationStrategy,xt=t.LOCATION_INITIALIZED},function(t){Ut=t.map,kt=t.tap,jt=t.finalize,Pt=t.refCount,Ot=t.mergeMap,Lt=t.filter,Nt=t.switchMap,$t=t.catchError,Mt=t.mergeAll,Ht=t.concatMap,zt=t.first,Dt=t.defaultIfEmpty,Ft=t.take,qt=t.startWith,Gt=t.scan,Wt=t.last,Bt=t.takeWhile,Vt=t.takeLast,Kt=t.mapTo}],execute:function(){t({convertToParamMap:Qe,createUrlTreeFromSnapshot:function(t,e,r=null,n=null){return function(t,e,r,n){let s=t;for(;s.parent;)s=s.parent;if(0===e.length)return Mr(s,s,s,r,n);const i=Dr(e);if(i.toRoot())return Mr(s,s,new dr([],{}),r,n);const o=function(t,e,r){if(t.isAbsolute)return new Fr(e,!0,0);if(!r)return new Fr(e,!1,NaN);if(null===r.parent)return new Fr(r,!0,0);const n=Nr(t.commands[0])?0:1,s=r.segments.length-1+n;return qr(r,s,t.numberOfDoubleDots)}(i,s,t),a=o.processChildren?Wr(o.segmentGroup,o.index,i.commands):Gr(o.segmentGroup,o.index,i.commands);return Mr(s,o.segmentGroup,a,r,n)}(function(t){let e;function r(n){const s={};for(const t of n.children){const e=r(t);s[t.outlet]=e}const i=new dr(n.url,s);return n===t&&(e=i),i}const n=kr(r(t.root));return e??n}(t),e,r,n)},defaultUrlMatcher:Ye,provideRouter:function(t,...e){return[hi(t),{provide:Cn,useFactory:ci,deps:[Ys]},{provide:K,multi:!0,useFactory:di},e.map(t=>t.\u0275providers)]},provideRoutes:hi,withDebugTracing:vi,withDisabledInitialNavigation:mi,withEnabledBlockingInitialNavigation:fi,withInMemoryScrolling:function(t={}){return li(4,[{provide:oi,useFactory:()=>{const e=c(Ys),r=c(Tt);return new ai(e,r,t)}}])},withPreloading:yi,withRouterConfig:function(t){return li(5,[{provide:Hs,useValue:t}])},\u0275assignExtraOptionsToRouter:Zs,\u0275flatten:tr,\u0275withPreloading:yi});class Zt extends Rt{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Qt extends Zt{static makeCurrent(){wt(new Qt)}onAndCancel(t,e,r){return t.addEventListener(e,r,!1),()=>{t.removeEventListener(e,r,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(Jt=Jt||document.querySelector("base"),Jt?Jt.getAttribute("href"):null);return null==e?null:function(t){Yt=Yt||document.createElement("a"),Yt.setAttribute("href",t);const e=Yt.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){Jt=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Ct(document.cookie,t)}}let Yt,Jt=null;const Xt=new e("TRANSITION_ID");const te=[{provide:N,useFactory:function(t,e,r){return()=>{r.get(H).donePromise.then(()=>{const r=vt(),n=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let t=0;t<n.length;t++)r.remove(n[t])})}},deps:[Xt,ft,C],multi:!0}];class ee{build(){return new XMLHttpRequest}}ee.\u0275fac=function(t){return new(t||ee)},ee.\u0275prov=r.\u0275\u0275defineInjectable({token:ee,factory:ee.\u0275fac});const re=new e("EventManagerPlugins");class ne{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,r){return this._findPluginFor(e).addEventListener(t,e,r)}addGlobalEventListener(t,e,r){return this._findPluginFor(e).addGlobalEventListener(t,e,r)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const r=this._plugins;for(let e=0;e<r.length;e++){const n=r[e];if(n.supports(t))return this._eventNameToPlugin.set(t,n),n}throw new Error(`No event manager plugin found for event ${t}`)}}ne.\u0275fac=function(t){return new(t||ne)(r.\u0275\u0275inject(re),r.\u0275\u0275inject(r.NgZone))},ne.\u0275prov=r.\u0275\u0275defineInjectable({token:ne,factory:ne.\u0275fac});class se{constructor(t){this._doc=t}addGlobalEventListener(t,e,r){const n=vt().getGlobalEventTarget(this._doc,t);if(!n)throw new Error(`Unsupported event target ${n} for event ${e}`);return this.addEventListener(n,e,r)}}class ie{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}ie.\u0275fac=function(t){return new(t||ie)},ie.\u0275prov=r.\u0275\u0275defineInjectable({token:ie,factory:ie.\u0275fac});class oe extends ie{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,r){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,r.push(e.appendChild(n))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(ae),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,r)=>{this._addStylesToHost(t,r,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(ae))}}function ae(t){vt().remove(t)}oe.\u0275fac=function(t){return new(t||oe)(r.\u0275\u0275inject(ft))},oe.\u0275prov=r.\u0275\u0275defineInjectable({token:oe,factory:oe.\u0275fac});const ue={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ce=/%COMP%/g,le="%COMP%",he=`_nghost-${le}`,de=`_ngcontent-${le}`;function pe(t,e,r){for(let n=0;n<e.length;n++){let s=e[n];Array.isArray(s)?pe(t,s,r):(s=s.replace(ce,t),r.push(s))}return r}function ge(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}class fe{constructor(t,e,r){this.eventManager=t,this.sharedStylesHost=e,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new me(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case b.Emulated:{let r=this.rendererByCompId.get(e.id);return r||(r=new Se(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,r)),r.applyToHost(t),r}case 1:case b.ShadowDom:return new ye(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=pe(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}fe.\u0275fac=function(t){return new(t||fe)(r.\u0275\u0275inject(ne),r.\u0275\u0275inject(oe),r.\u0275\u0275inject(n))},fe.\u0275prov=r.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac});class me{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(ue[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(ve(t)?t.content:t).appendChild(e)}insertBefore(t,e,r){if(t){(ve(t)?t.content:t).insertBefore(e,r)}}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return e||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,r,n){if(n){e=n+":"+e;const s=ue[n];s?t.setAttributeNS(s,e,r):t.setAttribute(e,r)}else t.setAttribute(e,r)}removeAttribute(t,e,r){if(r){const n=ue[r];n?t.removeAttributeNS(n,e):t.removeAttribute(`${r}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,r,n){n&(A.DashCase|A.Important)?t.style.setProperty(e,r,n&A.Important?"important":""):t.style[e]=r}removeStyle(t,e,r){r&A.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,r){t[e]=r}setValue(t,e){t.nodeValue=e}listen(t,e,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,ge(r)):this.eventManager.addEventListener(t,e,ge(r))}}"@".charCodeAt(0);function ve(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class Se extends me{constructor(t,e,r,n){super(t),this.component=r;const s=pe(n+"-"+r.id,r.styles,[]);var i;e.addStyles(s),this.contentAttr=(i=n+"-"+r.id,de.replace(ce,i)),this.hostAttr=function(t){return he.replace(ce,t)}(n+"-"+r.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const r=super.createElement(t,e);return super.setAttribute(r,this.contentAttr,""),r}}class ye extends me{constructor(t,e,r,n){super(t),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=pe(n.id,n.styles,[]);for(let t=0;t<s.length;t++){const e=document.createElement("style");e.textContent=s[t],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,r){return super.insertBefore(this.nodeOrShadowRoot(t),e,r)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}class we extends se{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,r){return t.addEventListener(e,r,!1),()=>this.removeEventListener(t,e,r)}removeEventListener(t,e,r){return t.removeEventListener(e,r)}}we.\u0275fac=function(t){return new(t||we)(r.\u0275\u0275inject(ft))},we.\u0275prov=r.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac});const Ce=["alt","control","meta","shift"],Re={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},be={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};class Ae extends se{constructor(t){super(t)}supports(t){return null!=Ae.parseEventName(t)}addEventListener(t,e,r){const n=Ae.parseEventName(e),s=Ae.eventCallback(n.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vt().onAndCancel(t,n.domEventName,s))}static parseEventName(t){const e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;const n=Ae._normalizeKey(e.pop());let s="",i=e.indexOf("code");if(i>-1&&(e.splice(i,1),s="code."),Ce.forEach(t=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),s+=t+".")}),s+=n,0!=e.length||0===n.length)return null;const o={};return o.domEventName=r,o.fullKey=s,o}static matchEventFullKeyCode(t,e){let r=Re[t.key]||t.key,n="";return e.indexOf("code.")>-1&&(r=t.code,n="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Ce.forEach(e=>{if(e!==r){(0,be[e])(t)&&(n+=e+".")}}),n+=r,n===e)}static eventCallback(t,e,r){return n=>{Ae.matchEventFullKeyCode(n,t)&&r.runGuarded(()=>e(n))}}static _normalizeKey(t){return"esc"===t?"escape":t}}Ae.\u0275fac=function(t){return new(t||Ae)(r.\u0275\u0275inject(ft))},Ae.\u0275prov=r.\u0275\u0275defineInjectable({token:Ae,factory:Ae.\u0275fac});const Te=!1;s(i,"browser",[{provide:T,useValue:St},{provide:E,useValue:function(){Qt.makeCurrent()},multi:!0},{provide:ft,useFactory:function(){return M(document),document},deps:[]}]);const Ee=new e(""),_e=[{provide:_,useClass:class{addToWindow(t){$.getAngularTestability=(e,r=!0)=>{const n=t.findTestabilityInTree(e,r);if(null==n)throw new Error("Could not find testability for element.");return n},$.getAllAngularTestabilities=()=>t.getAllTestabilities(),$.getAllAngularRootElements=()=>t.getAllRootElements();$.frameworkStabilizers||($.frameworkStabilizers=[]),$.frameworkStabilizers.push(t=>{const e=$.getAllAngularTestabilities();let r=e.length,n=!1;const s=function(e){n=n||e,r--,0==r&&t(n)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,r){if(null==e)return null;const n=t.getTestability(e);return null!=n?n:r?vt().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}},deps:[]},{provide:I,useClass:x,deps:[U,k,_]},{provide:x,useClass:x,deps:[U,k,_]}],Ie=[{provide:j,useValue:"root"},{provide:P,useFactory:function(){return new P},deps:[]},{provide:re,useClass:we,multi:!0,deps:[ft,U,T]},{provide:re,useClass:Ae,multi:!0,deps:[ft]},{provide:fe,useClass:fe,deps:[ne,oe,n]},{provide:O,useExisting:fe},{provide:ie,useExisting:oe},{provide:oe,useClass:oe,deps:[ft]},{provide:ne,useClass:ne,deps:[re,U]},{provide:yt,useClass:ee,deps:[]},[]];class xe{constructor(t){Te}static withServerTransition(t){return{ngModule:xe,providers:[{provide:n,useValue:t.appId},{provide:Xt,useExisting:n},te]}}}function Ue(){return new ke(L(ft))}xe.\u0275fac=function(t){return new(t||xe)(r.\u0275\u0275inject(Ee,12))},xe.\u0275mod=r.\u0275\u0275defineNgModule({type:xe}),xe.\u0275inj=r.\u0275\u0275defineInjector({providers:[...Ie,..._e],imports:[mt,o]});class ke{constructor(t){this._doc=t,this._dom=vt()}addTag(t,e=!1){return t?this._getOrCreateElement(t,e):null}addTags(t,e=!1){return t?t.reduce((t,r)=>(r&&t.push(this._getOrCreateElement(r,e)),t),[]):[]}getTag(t){return t&&this._doc.querySelector(`meta[${t}]`)||null}getTags(t){if(!t)return[];const e=this._doc.querySelectorAll(`meta[${t}]`);return e?[].slice.call(e):[]}updateTag(t,e){if(!t)return null;e=e||this._parseSelector(t);const r=this.getTag(e);return r?this._setMetaElementAttributes(t,r):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,e=!1){if(!e){const e=this._parseSelector(t),r=this.getTags(e).filter(e=>this._containsAttributes(t,e))[0];if(void 0!==r)return r}const r=this._dom.createElement("meta");this._setMetaElementAttributes(t,r);return this._doc.getElementsByTagName("head")[0].appendChild(r),r}_setMetaElementAttributes(t,e){return Object.keys(t).forEach(r=>e.setAttribute(this._getMetaKeyMap(r),t[r])),e}_parseSelector(t){const e=t.name?"name":"property";return`${e}="${t[e]}"`}_containsAttributes(t,e){return Object.keys(t).every(r=>e.getAttribute(this._getMetaKeyMap(r))===t[r])}_getMetaKeyMap(t){return je[t]||t}}ke.\u0275fac=function(t){return new(t||ke)(r.\u0275\u0275inject(ft))},ke.\u0275prov=r.\u0275\u0275defineInjectable({token:ke,factory:function(t){let e=null;return e=t?new t:Ue(),e},providedIn:"root"});const je={httpEquiv:"http-equiv"};function Pe(){return new Oe(L(ft))}class Oe{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}Oe.\u0275fac=function(t){return new(t||Oe)(r.\u0275\u0275inject(ft))},Oe.\u0275prov=r.\u0275\u0275defineInjectable({token:Oe,factory:function(t){let e=null;return e=t?new t:Pe(),e},providedIn:"root"});class Le{constructor(){this.store={},this.onSerializeCallbacks={}}get(t,e){return void 0!==this.store[t]?this.store[t]:e}set(t,e){this.store[t]=e}remove(t){delete this.store[t]}hasKey(t){return this.store.hasOwnProperty(t)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(t,e){this.onSerializeCallbacks[t]=e}toJson(){for(const t in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(t))try{this.store[t]=this.onSerializeCallbacks[t]()}catch(t){console.warn("Exception in onSerialize callback: ",t)}return JSON.stringify(this.store)}}function Ne(t,e){const r=t.getElementById(e+"-state");let n={};if(r&&r.textContent)try{n=JSON.parse(function(t){const e={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return t.replace(/&[^;]+;/g,t=>e[t])}(r.textContent))}catch(t){console.warn("Exception while restoring TransferState for app "+e,t)}return n}Le.\u0275fac=function(t){return new(t||Le)},Le.\u0275prov=r.\u0275\u0275defineInjectable({token:Le,factory:function(){return(()=>{const t=c(ft),e=c(n),r=new Le;return r.store=Ne(t,e),r})()},providedIn:"root"});class $e{}$e.\u0275fac=function(t){return new(t||$e)},$e.\u0275mod=r.\u0275\u0275defineNgModule({type:$e}),$e.\u0275inj=r.\u0275\u0275defineInjector({});const Me={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},He=new e("HammerGestureConfig"),ze=new e("HammerLoader");class De{constructor(){this.events=[],this.overrides={}}buildHammer(t){const e=new Hammer(t,this.options);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(const t in this.overrides)e.get(t).set(this.overrides[t]);return e}}De.\u0275fac=function(t){return new(t||De)},De.\u0275prov=r.\u0275\u0275defineInjectable({token:De,factory:De.\u0275fac});class Fe extends se{constructor(t,e,r,n){super(t),this._config=e,this.console=r,this.loader=n,this._loaderPromise=null}supports(t){return!(!Me.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t))&&!(!window.Hammer&&!this.loader)}addEventListener(t,e,r){const n=this.manager.getZone();if(e=e.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||n.runOutsideAngular(()=>this.loader());let s=!1,i=()=>{s=!0};return n.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?s||(i=this.addEventListener(t,e,r)):i=()=>{}}).catch(()=>{i=()=>{}})),()=>{i()}}return n.runOutsideAngular(()=>{const s=this._config.buildHammer(t),i=function(t){n.runGuarded(function(){r(t)})};return s.on(e,i),()=>{s.off(e,i),"function"==typeof s.destroy&&s.destroy()}})}isCustomEvent(t){return this._config.events.indexOf(t)>-1}}Fe.\u0275fac=function(t){return new(t||Fe)(r.\u0275\u0275inject(ft),r.\u0275\u0275inject(He),r.\u0275\u0275inject(r.\u0275Console),r.\u0275\u0275inject(ze,8))},Fe.\u0275prov=r.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac});class qe{}qe.\u0275fac=function(t){return new(t||qe)},qe.\u0275mod=r.\u0275\u0275defineNgModule({type:qe}),qe.\u0275inj=r.\u0275\u0275defineInjector({providers:[{provide:re,useClass:Fe,multi:!0,deps:[ft,He,l,[new a,ze]]},{provide:He,useClass:De,deps:[]}]});class Ge{}function We(t){return new Be(t.get(ft))}Ge.\u0275fac=function(t){return new(t||Ge)},Ge.\u0275prov=r.\u0275\u0275defineInjectable({token:Ge,factory:function(t){let e=null;return e=t?new(t||Ge):r.\u0275\u0275inject(Be),e},providedIn:"root"});class Be extends Ge{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case h.NONE:return e;case h.HTML:return d(e,"HTML")?p(e):f(this._doc,String(e)).toString();case h.STYLE:return d(e,"Style")?p(e):e;case h.SCRIPT:if(d(e,"Script"))return p(e);throw new Error("unsafe value used in a script context");case h.URL:return d(e,"URL")?p(e):g(String(e));case h.RESOURCE_URL:if(d(e,"ResourceURL"))return p(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return m(t)}bypassSecurityTrustStyle(t){return v(t)}bypassSecurityTrustScript(t){return S(t)}bypassSecurityTrustUrl(t){return y(t)}bypassSecurityTrustResourceUrl(t){return w(t)}}Be.\u0275fac=function(t){return new(t||Be)(r.\u0275\u0275inject(ft))},Be.\u0275prov=r.\u0275\u0275defineInjectable({token:Be,factory:function(t){let e=null;return e=t?new t:We(r.\u0275\u0275inject(C)),e},providedIn:"root"}),new R("14.2.12");const Ve=t("PRIMARY_OUTLET","primary"),Ke=Symbol("RouteTitle");class Ze{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Qe(t){return new Ze(t)}function Ye(t,e,r){const n=r.path.split("/");if(n.length>t.length)return null;if("full"===r.pathMatch&&(e.hasChildren()||n.length<t.length))return null;const s={};for(let e=0;e<n.length;e++){const r=n[e],i=t[e];if(r.startsWith(":"))s[r.substring(1)]=i;else if(r!==i.path)return null}return{consumed:t.slice(0,n.length),posParams:s}}function Je(t,e){const r=t?Object.keys(t):void 0,n=e?Object.keys(e):void 0;if(!r||!n||r.length!=n.length)return!1;let s;for(let n=0;n<r.length;n++)if(s=r[n],!Xe(t[s],e[s]))return!1;return!0}function Xe(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;const r=[...t].sort(),n=[...e].sort();return r.every((t,e)=>n[e]===t)}return t===e}function tr(t){return Array.prototype.concat.apply([],t)}function er(t){return t.length>0?t[t.length-1]:null}function rr(t,e){for(const r in t)t.hasOwnProperty(r)&&e(t[r],r)}function nr(t){return Y(t)?t:J(t)?it(Promise.resolve(t)):nt(t)}const sr=!1;const ir={exact:function t(e,r,n){if(!gr(e.segments,r.segments))return!1;if(!lr(e.segments,r.segments,n))return!1;if(e.numberOfChildren!==r.numberOfChildren)return!1;for(const s in r.children){if(!e.children[s])return!1;if(!t(e.children[s],r.children[s],n))return!1}return!0},subset:ur},or={exact:function(t,e){return Je(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>Xe(t[r],e[r]))},ignored:()=>!0};function ar(t,e,r){return ir[r.paths](t.root,e.root,r.matrixParams)&&or[r.queryParams](t.queryParams,e.queryParams)&&!("exact"===r.fragment&&t.fragment!==e.fragment)}function ur(t,e,r){return cr(t,e,e.segments,r)}function cr(t,e,r,n){if(t.segments.length>r.length){const s=t.segments.slice(0,r.length);return!!gr(s,r)&&(!e.hasChildren()&&!!lr(s,r,n))}if(t.segments.length===r.length){if(!gr(t.segments,r))return!1;if(!lr(t.segments,r,n))return!1;for(const r in e.children){if(!t.children[r])return!1;if(!ur(t.children[r],e.children[r],n))return!1}return!0}{const s=r.slice(0,t.segments.length),i=r.slice(t.segments.length);return!!gr(t.segments,s)&&(!!lr(t.segments,s,n)&&(!!t.children[Ve]&&cr(t.children[Ve],e,i,n)))}}function lr(t,e,r){return e.every((e,n)=>or[r](t[n].parameters,e.parameters))}class hr{constructor(t,e,r){this.root=t,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Qe(this.queryParams)),this._queryParamMap}toString(){return vr.serialize(this)}}t("UrlTree",hr);class dr{constructor(t,e){this.segments=t,this.children=e,this.parent=null,rr(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Sr(this)}}t("UrlSegmentGroup",dr);class pr{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Qe(this.parameters)),this._parameterMap}toString(){return Tr(this)}}function gr(t,e){return t.length===e.length&&t.every((t,r)=>t.path===e[r].path)}t("UrlSegment",pr);class fr{}t("UrlSerializer",fr),fr.\u0275fac=function(t){return new(t||fr)},fr.\u0275prov=r.\u0275\u0275defineInjectable({token:fr,factory:function(){return new mr},providedIn:"root"});class mr{parse(t){const e=new Ur(t);return new hr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${yr(t.root,!0)}`,r=function(t){const e=Object.keys(t).map(e=>{const r=t[e];return Array.isArray(r)?r.map(t=>`${Cr(e)}=${Cr(t)}`).join("&"):`${Cr(e)}=${Cr(r)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams);var n;return`${e}${r}${"string"==typeof t.fragment?`#${n=t.fragment,encodeURI(n)}`:""}`}}t("DefaultUrlSerializer",mr);const vr=new mr;function Sr(t){return t.segments.map(t=>Tr(t)).join("/")}function yr(t,e){if(!t.hasChildren())return Sr(t);if(e){const e=t.children[Ve]?yr(t.children[Ve],!1):"",r=[];return rr(t.children,(t,e)=>{e!==Ve&&r.push(`${e}:${yr(t,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}{const e=function(t,e){let r=[];return rr(t.children,(t,n)=>{n===Ve&&(r=r.concat(e(t,n)))}),rr(t.children,(t,n)=>{n!==Ve&&(r=r.concat(e(t,n)))}),r}(t,(e,r)=>r===Ve?[yr(t.children[Ve],!1)]:[`${r}:${yr(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Ve]?`${Sr(t)}/${e[0]}`:`${Sr(t)}/(${e.join("//")})`}}function wr(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Cr(t){return wr(t).replace(/%3B/gi,";")}function Rr(t){return wr(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function br(t){return decodeURIComponent(t)}function Ar(t){return br(t.replace(/\+/g,"%20"))}function Tr(t){return`${Rr(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Rr(t)}=${Rr(e[t])}`).join("")}`;var e}const Er=/^[^\/()?;=#]+/;function _r(t){const e=t.match(Er);return e?e[0]:""}const Ir=/^[^=?&#]+/;const xr=/^[^&#]+/;class Ur{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new dr([],{}):new dr([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(r[Ve]=new dr(t,e)),r}parseSegment(){const t=_r(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new z(4009,sr);return this.capture(t),new pr(br(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=_r(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const t=_r(this.remaining);t&&(r=t,this.capture(r))}t[br(e)]=br(r)}parseQueryParam(t){const e=function(t){const e=t.match(Ir);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(xr);return e?e[0]:""}(this.remaining);t&&(r=t,this.capture(r))}const n=Ar(e),s=Ar(r);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=_r(this.remaining),n=this.remaining[r.length];if("/"!==n&&")"!==n&&";"!==n)throw new z(4010,sr);let s;r.indexOf(":")>-1?(s=r.slice(0,r.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=Ve);const i=this.parseChildren();e[s]=1===Object.keys(i).length?i[Ve]:new dr([],i),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new z(4011,sr)}}function kr(t){return t.segments.length>0?new dr([],{[Ve]:t}):t}function jr(t){const e={};for(const r of Object.keys(t.children)){const n=jr(t.children[r]);(n.segments.length>0||n.hasChildren())&&(e[r]=n)}return function(t){if(1===t.numberOfChildren&&t.children[Ve]){const e=t.children[Ve];return new dr(t.segments.concat(e.segments),e.children)}return t}(new dr(t.segments,e))}function Pr(t){return t instanceof hr}const Or=!1;function Lr(t,e,r,n,s){if(0===r.length)return Mr(e.root,e.root,e.root,n,s);const i=Dr(r);if(i.toRoot())return Mr(e.root,e.root,new dr([],{}),n,s);function o(r){const o=function(t,e,r,n){if(t.isAbsolute)return new Fr(e.root,!0,0);if(-1===n){const t=r===e.root;return new Fr(r,t,0)}const s=Nr(t.commands[0])?0:1,i=n+s;return qr(r,i,t.numberOfDoubleDots)}(i,e,t.snapshot?._urlSegment,r),a=o.processChildren?Wr(o.segmentGroup,o.index,i.commands):Gr(o.segmentGroup,o.index,i.commands);return Mr(e.root,o.segmentGroup,a,n,s)}const a=o(t.snapshot?._lastPathIndex);return a}function Nr(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function $r(t){return"object"==typeof t&&null!=t&&t.outlets}function Mr(t,e,r,n,s){let i,o={};n&&rr(n,(t,e)=>{o[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),i=t===e?r:Hr(t,e,r);const a=kr(jr(i));return new hr(a,o,s)}function Hr(t,e,r){const n={};return rr(t.children,(t,s)=>{n[s]=t===e?r:Hr(t,e,r)}),new dr(t.segments,n)}class zr{constructor(t,e,r){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=r,t&&r.length>0&&Nr(r[0]))throw new z(4003,Or&&"Root segment cannot have matrix parameters");const n=r.find($r);if(n&&n!==er(r))throw new z(4004,Or&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}function Dr(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new zr(!0,0,t);let e=0,r=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return rr(n.outlets,(t,r)=>{e[r]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?r=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new zr(r,e,n)}class Fr{constructor(t,e,r){this.segmentGroup=t,this.processChildren=e,this.index=r}}function qr(t,e,r){let n=t,s=e,i=r;for(;i>s;){if(i-=s,n=n.parent,!n)throw new z(4005,Or&&"Invalid number of '../'");s=n.segments.length}return new Fr(n,!1,s-i)}function Gr(t,e,r){if(t||(t=new dr([],{})),0===t.segments.length&&t.hasChildren())return Wr(t,e,r);const n=function(t,e,r){let n=0,s=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;s<t.segments.length;){if(n>=r.length)return i;const e=t.segments[s],o=r[n];if($r(o))break;const a=`${o}`,u=n<r.length-1?r[n+1]:null;if(s>0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!Zr(a,u,e))return i;n+=2}else{if(!Zr(a,{},e))return i;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,r),s=r.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){const e=new dr(t.segments.slice(0,n.pathIndex),{});return e.children[Ve]=new dr(t.segments.slice(n.pathIndex),t.children),Wr(e,0,s)}return n.match&&0===s.length?new dr(t.segments,{}):n.match&&!t.hasChildren()?Br(t,e,r):n.match?Wr(t,0,s):Br(t,e,r)}function Wr(t,e,r){if(0===r.length)return new dr(t.segments,{});{const n=function(t){return $r(t[0])?t[0].outlets:{[Ve]:t}}(r),s={};return rr(n,(r,n)=>{"string"==typeof r&&(r=[r]),null!==r&&(s[n]=Gr(t.children[n],e,r))}),rr(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new dr(t.segments,s)}}function Br(t,e,r){const n=t.segments.slice(0,e);let s=0;for(;s<r.length;){const i=r[s];if($r(i)){const t=Vr(i.outlets);return new dr(n,t)}if(0===s&&Nr(r[0])){const i=t.segments[e];n.push(new pr(i.path,Kr(r[0]))),s++;continue}const o=$r(i)?i.outlets[Ve]:`${i}`,a=s<r.length-1?r[s+1]:null;o&&a&&Nr(a)?(n.push(new pr(o,Kr(a))),s+=2):(n.push(new pr(o,{})),s++)}return new dr(n,{})}function Vr(t){const e={};return rr(t,(t,r)=>{"string"==typeof t&&(t=[t]),null!==t&&(e[r]=Br(new dr([],{}),0,t))}),e}function Kr(t){const e={};return rr(t,(t,r)=>e[r]=`${t}`),e}function Zr(t,e,r){return t==r.path&&Je(e,r.parameters)}class Qr{constructor(t,e){this.id=t,this.url=e}}t("RouterEvent",Qr);class Yr extends Qr{constructor(t,e,r="imperative",n=null){super(t,e),this.type=0,this.navigationTrigger=r,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}t("NavigationStart",Yr);class Jr extends Qr{constructor(t,e,r){super(t,e),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}t("NavigationEnd",Jr);class Xr extends Qr{constructor(t,e,r,n){super(t,e),this.reason=r,this.code=n,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}t("NavigationCancel",Xr);class tn extends Qr{constructor(t,e,r,n){super(t,e),this.error=r,this.target=n,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}t("NavigationError",tn);class en extends Qr{constructor(t,e,r,n){super(t,e),this.urlAfterRedirects=r,this.state=n,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}t("RoutesRecognized",en);class rn extends Qr{constructor(t,e,r,n){super(t,e),this.urlAfterRedirects=r,this.state=n,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}t("GuardsCheckStart",rn);class nn extends Qr{constructor(t,e,r,n,s){super(t,e),this.urlAfterRedirects=r,this.state=n,this.shouldActivate=s,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}t("GuardsCheckEnd",nn);class sn extends Qr{constructor(t,e,r,n){super(t,e),this.urlAfterRedirects=r,this.state=n,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}t("ResolveStart",sn);class on extends Qr{constructor(t,e,r,n){super(t,e),this.urlAfterRedirects=r,this.state=n,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}t("ResolveEnd",on);class an{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}t("RouteConfigLoadStart",an);class un{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}t("RouteConfigLoadEnd",un);class cn{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}t("ChildActivationStart",cn);class ln{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}t("ChildActivationEnd",ln);class hn{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}t("ActivationStart",hn);class dn{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}t("ActivationEnd",dn);class pn{constructor(t,e,r){this.routerEvent=t,this.position=e,this.anchor=r,this.type=15}toString(){const t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}}t("Scroll",pn);class gn{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=fn(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=fn(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=mn(t,this._root);if(e.length<2)return[];return e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return mn(t,this._root).map(t=>t.value)}}function fn(t,e){if(t===e.value)return e;for(const r of e.children){const e=fn(t,r);if(e)return e}return null}function mn(t,e){if(t===e.value)return[e];for(const r of e.children){const n=mn(t,r);if(n.length)return n.unshift(e),n}return[]}class vn{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Sn(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class yn extends gn{constructor(t,e){super(t),this.snapshot=e,Tn(this,t)}toString(){return this.snapshot.toString()}}function wn(t,e){const r=function(t,e){const r={},n={},s={},i="",o=new bn([],r,s,i,n,Ve,e,null,t.root,-1,{});return new An("",new vn(o,[]))}(t,e),n=new ot([new pr("",{})]),s=new ot({}),i=new ot({}),o=new ot({}),a=new ot(""),u=new Cn(n,s,o,a,i,Ve,e,r.root);return u.snapshot=r.root,new yn(new vn(u,[]),r)}t("RouterState",yn);class Cn{constructor(t,e,r,n,s,i,o,a){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=s,this.outlet=i,this.component=o,this.title=this.data?.pipe(Ut(t=>t[Ke]))??nt(void 0),this._futureSnapshot=a}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._paramMap=this.params.pipe(Ut(t=>Qe(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Ut(t=>Qe(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Rn(t,e="emptyOnly"){const r=t.pathFromRoot;let n=0;if("always"!==e)for(n=r.length-1;n>=1;){const t=r[n],e=r[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(r.slice(n))}t("ActivatedRoute",Cn);class bn{constructor(t,e,r,n,s,i,o,a,u,c,l,h){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=s,this.outlet=i,this.component=o,this.title=this.data?.[Ke],this.routeConfig=a,this._urlSegment=u,this._lastPathIndex=c,this._correctedLastPathIndex=h??c,this._resolve=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||(this._paramMap=Qe(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Qe(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}t("ActivatedRouteSnapshot",bn);class An extends gn{constructor(t,e){super(e),this.url=t,Tn(this,e)}toString(){return En(this._root)}}function Tn(t,e){e.value._routerState=t,e.children.forEach(e=>Tn(t,e))}function En(t){const e=t.children.length>0?` { ${t.children.map(En).join(", ")} } `:"";return`${t.value}${e}`}function _n(t){if(t.snapshot){const e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,Je(e.queryParams,r.queryParams)||t.queryParams.next(r.queryParams),e.fragment!==r.fragment&&t.fragment.next(r.fragment),Je(e.params,r.params)||t.params.next(r.params),function(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(!Je(t[r],e[r]))return!1;return!0}(e.url,r.url)||t.url.next(r.url),Je(e.data,r.data)||t.data.next(r.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function In(t,e){const r=Je(t.params,e.params)&&(n=t.url,s=e.url,gr(n,s)&&n.every((t,e)=>Je(t.parameters,s[e].parameters)));var n,s;const i=!t.parent!=!e.parent;return r&&!i&&(!t.parent||In(t.parent,e.parent))}function xn(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){const n=r.value;n._futureSnapshot=e.value;const s=function(t,e,r){return e.children.map(e=>{for(const n of r.children)if(t.shouldReuseRoute(e.value,n.value.snapshot))return xn(t,e,n);return xn(t,e)})}(t,e,r);return new vn(n,s)}{if(t.shouldAttach(e.value)){const r=t.retrieve(e.value);if(null!==r){const n=r.route;return n.value._futureSnapshot=e.value,n.children=e.children.map(e=>xn(t,e)),n}}const r=(n=e.value,new Cn(new ot(n.url),new ot(n.params),new ot(n.queryParams),new ot(n.fragment),new ot(n.data),n.outlet,n.component,n)),s=e.children.map(e=>xn(t,e));return new vn(r,s)}var n}t("RouterStateSnapshot",An);const Un="ngNavigationCancelingError";function kn(t,e){const{redirectTo:r,navigationBehaviorOptions:n}=Pr(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,s=jn(!1,0,e);return s.url=r,s.navigationBehaviorOptions=n,s}function jn(t,e,r){const n=new Error("NavigationCancelingError: "+(t||""));return n[Un]=!0,n.cancellationCode=e,r&&(n.url=r),n}function Pn(t){return On(t)&&Pr(t.url)}function On(t){return t&&t[Un]}class Ln{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Nn,this.attachRef=null}}t("OutletContext",Ln);class Nn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const r=this.getOrCreateContext(t);r.outlet=e,this.contexts.set(t,r)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Ln,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}t("ChildrenOutletContexts",Nn),Nn.\u0275fac=function(t){return new(t||Nn)},Nn.\u0275prov=r.\u0275\u0275defineInjectable({token:Nn,factory:Nn.\u0275fac,providedIn:"root"});const $n=!1;class Mn{constructor(t,e,r,n,s){this.parentContexts=t,this.location=e,this.changeDetector=n,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new D,this.deactivateEvents=new D,this.attachEvents=new D,this.detachEvents=new D,this.name=r||Ve,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new z(4012,$n);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new z(4012,$n);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new z(4012,$n);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new z(4013,$n);this._activatedRoute=t;const r=this.location,n=t._futureSnapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,i=new Hn(t,s,r.injector);if(e&&e.resolveComponentFactory){const t=e.resolveComponentFactory(n);this.activated=r.createComponent(t,r.length,i)}else{const t=e??this.environmentInjector;this.activated=r.createComponent(n,{index:r.length,injector:i,environmentInjector:t})}this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}t("RouterOutlet",Mn),Mn.\u0275fac=function(t){return new(t||Mn)(r.\u0275\u0275directiveInject(Nn),r.\u0275\u0275directiveInject(r.ViewContainerRef),r.\u0275\u0275injectAttribute("name"),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(r.EnvironmentInjector))},Mn.\u0275dir=r.\u0275\u0275defineDirective({type:Mn,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0});class Hn{constructor(t,e,r){this.route=t,this.childContexts=e,this.parent=r}get(t,e){return t===Cn?this.route:t===Nn?this.childContexts:this.parent.get(t,e)}}class zn{}function Dn(t,e){return t.providers&&!t._injector&&(t._injector=V(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Fn(t){const e=t.children&&t.children.map(Fn),r=e?{...t,children:e}:{...t};return r.component||r.loadComponent||!e&&!r.loadChildren||!r.outlet||r.outlet===Ve||(r.component=zn),r}function qn(t){return t.outlet||Ve}function Gn(t,e){const r=t.filter(t=>qn(t)===e);return r.push(...t.filter(t=>qn(t)!==e)),r}function Wn(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}t("\u0275EmptyOutletComponent",zn),zn.\u0275fac=function(t){return new(t||zn)},zn.\u0275cmp=r.\u0275\u0275defineComponent({type:zn,selectors:[["ng-component"]],standalone:!0,features:[r.\u0275\u0275StandaloneFeature],decls:1,vars:0,template:function(t,e){1&t&&r.\u0275\u0275element(0,"router-outlet")},dependencies:[Mn],encapsulation:2});class Bn{constructor(t,e,r,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=r,this.forwardEvent=n}activate(t){const e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,t),_n(this.futureState.root),this.activateChildRoutes(e,r,t)}deactivateChildRoutes(t,e,r){const n=Sn(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],r),delete n[e]}),rr(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,r)})}deactivateRoutes(t,e,r){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=r.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,r);else s&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const r=e.getContext(t.value.outlet),n=r&&t.value.component?r.children:e,s=Sn(t);for(const t of Object.keys(s))this.deactivateRouteAndItsChildren(s[t],n);if(r&&r.outlet){const e=r.outlet.detach(),n=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const r=e.getContext(t.value.outlet),n=r&&t.value.component?r.children:e,s=Sn(t);for(const t of Object.keys(s))this.deactivateRouteAndItsChildren(s[t],n);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(t,e,r){const n=Sn(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],r),this.forwardEvent(new dn(t.value.snapshot))}),t.children.length&&this.forwardEvent(new ln(t.value.snapshot))}activateRoutes(t,e,r){const n=t.value,s=e?e.value:null;if(_n(n),n===s)if(n.component){const s=r.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,r);else if(n.component){const e=r.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const r=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(r.contexts),e.attachRef=r.componentRef,e.route=r.route.value,e.outlet&&e.outlet.attach(r.componentRef,r.route.value),_n(r.route.value),this.activateChildRoutes(t,null,e.children)}else{const r=Wn(n.snapshot),s=r?.get(X)??null;e.attachRef=null,e.route=n,e.resolver=s,e.injector=r,e.outlet&&e.outlet.activateWith(n,e.injector),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,r)}}class Vn{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Kn{constructor(t,e){this.component=t,this.route=e}}function Zn(t,e,r){const n=t._root;return Yn(n,e?e._root:null,r,[n.value])}function Qn(t,e){const r=Symbol(),n=e.get(t,r);return n===r?"function"!=typeof t||tt(t)?e.get(t):t:n}function Yn(t,e,r,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=Sn(e);return t.children.forEach(t=>{!function(t,e,r,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=t.value,o=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){const u=function(t,e,r){if("function"==typeof r)return r(t,e);switch(r){case"pathParamsChange":return!gr(t.url,e.url);case"pathParamsOrQueryParamsChange":return!gr(t.url,e.url)||!Je(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!In(t,e)||!Je(t.queryParams,e.queryParams);default:return!In(t,e)}}(o,i,i.routeConfig.runGuardsAndResolvers);u?s.canActivateChecks.push(new Vn(n)):(i.data=o.data,i._resolvedData=o._resolvedData),i.component?Yn(t,e,a?a.children:null,n,s):Yn(t,e,r,n,s),u&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new Kn(a.outlet.component,o))}else o&&Jn(e,a,s),s.canActivateChecks.push(new Vn(n)),i.component?Yn(t,null,a?a.children:null,n,s):Yn(t,null,r,n,s)}(t,i[t.value.outlet],r,n.concat([t.value]),s),delete i[t.value.outlet]}),rr(i,(t,e)=>Jn(t,r.getContext(e),s)),s}function Jn(t,e,r){const n=Sn(t),s=t.value;rr(n,(t,n)=>{s.component?Jn(t,e?e.children.getContext(n):null,r):Jn(t,e,r)}),s.component&&e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new Kn(e.outlet.component,s)):r.canDeactivateChecks.push(new Kn(null,s))}function Xn(t){return"function"==typeof t}function ts(t){return t instanceof dt||"EmptyError"===t?.name}const es=Symbol("INITIAL_VALUE");function rs(){return Nt(t=>lt(t.map(t=>t.pipe(Ft(1),qt(es)))).pipe(Ut(t=>{for(const e of t)if(!0!==e){if(e===es)return es;if(!1===e||e instanceof hr)return e}return!0}),Lt(t=>t!==es),Ft(1)))}function ns(t,e){return Ot(r=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:i,canDeactivateChecks:o}}=r;return 0===o.length&&0===i.length?nt({...r,guardsResult:!0}):function(t,e,r,n){return it(t).pipe(Ot(t=>function(t,e,r,n,s){const i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!i||0===i.length)return nt(!0);const o=i.map(i=>{const o=Wn(e)??s,a=Qn(i,o);return nr(function(t){return t&&Xn(t.canDeactivate)}(a)?a.canDeactivate(t,e,r,n):o.runInContext(()=>a(t,e,r,n))).pipe(zt())});return nt(o).pipe(rs())}(t.component,t.route,r,e,n)),zt(t=>!0!==t,!0))}(o,n,s,t).pipe(Ot(r=>r&&"boolean"==typeof r?function(t,e,r,n){return it(e).pipe(Ht(e=>ut(function(t,e){null!==t&&e&&e(new cn(t));return nt(!0)}(e.route.parent,n),function(t,e){null!==t&&e&&e(new hn(t));return nt(!0)}(e.route,n),function(t,e,r){const n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>ct(()=>{const s=e.guards.map(s=>{const i=Wn(e.node)??r,o=Qn(s,i);return nr(function(t){return t&&Xn(t.canActivateChild)}(o)?o.canActivateChild(n,t):i.runInContext(()=>o(n,t))).pipe(zt())});return nt(s).pipe(rs())}));return nt(s).pipe(rs())}(t,e.path,r),function(t,e,r){const n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return nt(!0);const s=n.map(n=>ct(()=>{const s=Wn(e)??r,i=Qn(n,s);return nr(function(t){return t&&Xn(t.canActivate)}(i)?i.canActivate(e,t):s.runInContext(()=>i(e,t))).pipe(zt())}));return nt(s).pipe(rs())}(t,e.route,r))),zt(t=>!0!==t,!0))}(n,i,t,e):nt(r)),Ut(t=>({...r,guardsResult:t})))})}function ss(t,e,r,n){const s=e.canLoad;if(void 0===s||0===s.length)return nt(!0);const i=s.map(n=>{const s=Qn(n,t);return nr(function(t){return t&&Xn(t.canLoad)}(s)?s.canLoad(e,r):t.runInContext(()=>s(e,r)))});return nt(i).pipe(rs(),is(n))}function is(t){return pt(kt(t=>{if(Pr(t))throw kn(0,t)}),Ut(t=>!0===t))}function os(t,e,r,n){const s=e.canMatch;if(!s||0===s.length)return nt(!0);const i=s.map(n=>{const s=Qn(n,t);return nr(function(t){return t&&Xn(t.canMatch)}(s)?s.canMatch(e,r):t.runInContext(()=>s(e,r)))});return nt(i).pipe(rs(),is())}const as={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function us(t,e,r,n,s){const i=cs(t,e,r);return i.matched?os(n=Dn(e,n),e,r).pipe(Ut(t=>!0===t?i:{...as})):nt(i)}function cs(t,e,r){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||r.length>0)?{...as}:{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};const n=(e.matcher||Ye)(r,t,e);if(!n)return{...as};const s={};rr(n.posParams,(t,e)=>{s[e]=t.path});const i=n.consumed.length>0?{...s,...n.consumed[n.consumed.length-1].parameters}:s;return{matched:!0,consumedSegments:n.consumed,remainingSegments:r.slice(n.consumed.length),parameters:i,positionalParamSegments:n.posParams??{}}}function ls(t,e,r,n,s="corrected"){if(r.length>0&&function(t,e,r){return r.some(r=>hs(t,e,r)&&qn(r)!==Ve)}(t,r,n)){const s=new dr(e,function(t,e,r,n){const s={};s[Ve]=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const n of r)if(""===n.path&&qn(n)!==Ve){const r=new dr([],{});r._sourceSegment=t,r._segmentIndexShift=e.length,s[qn(n)]=r}return s}(t,e,n,new dr(r,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===r.length&&function(t,e,r){return r.some(r=>hs(t,e,r))}(t,r,n)){const i=new dr(t.segments,function(t,e,r,n,s,i){const o={};for(const a of n)if(hs(t,r,a)&&!s[qn(a)]){const r=new dr([],{});r._sourceSegment=t,r._segmentIndexShift="legacy"===i?t.segments.length:e.length,o[qn(a)]=r}return{...s,...o}}(t,e,r,n,t.children,s));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:r}}const i=new dr(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:r}}function hs(t,e,r){return(!(t.hasChildren()||e.length>0)||"full"!==r.pathMatch)&&""===r.path}function ds(t,e,r,n){return!!(qn(t)===n||n!==Ve&&hs(e,r,t))&&("**"===t.path||cs(e,t,r).matched)}function ps(t,e,r){return 0===e.length&&!t.children[r]}const gs=!1;class fs{constructor(t){this.segmentGroup=t||null}}class ms{constructor(t){this.urlTree=t}}function vs(t){return ht(new fs(t))}function Ss(t){return ht(new ms(t))}function ys(t){return ht(new z(4e3,gs))}class ws{constructor(t,e,r,n,s){this.injector=t,this.configLoader=e,this.urlSerializer=r,this.urlTree=n,this.config=s,this.allowRedirects=!0}apply(){const t=ls(this.urlTree.root,[],[],this.config).segmentGroup,e=new dr(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,Ve).pipe(Ut(t=>this.createUrlTree(jr(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe($t(t=>{if(t instanceof ms)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof fs)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,Ve).pipe(Ut(e=>this.createUrlTree(jr(e),t.queryParams,t.fragment))).pipe($t(t=>{if(t instanceof fs)throw this.noMatchError(t);throw t}))}noMatchError(t){return new z(4002,gs)}createUrlTree(t,e,r){const n=kr(t);return new hr(n,e,r)}expandSegmentGroup(t,e,r,n){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(t,e,r).pipe(Ut(t=>new dr([],t))):this.expandSegment(t,r,e,r.segments,n,!0)}expandChildren(t,e,r){const n=[];for(const t of Object.keys(r.children))"primary"===t?n.unshift(t):n.push(t);return it(n).pipe(Ht(n=>{const s=r.children[n],i=Gn(e,n);return this.expandSegmentGroup(t,i,s,n).pipe(Ut(t=>({segment:t,outlet:n})))}),Gt((t,e)=>(t[e.outlet]=e.segment,t),{}),Wt())}expandSegment(t,e,r,n,s,i){return it(r).pipe(Ht(o=>this.expandSegmentAgainstRoute(t,e,r,o,n,s,i).pipe($t(t=>{if(t instanceof fs)return nt(null);throw t}))),zt(t=>!!t),$t((t,r)=>{if(ts(t))return ps(e,n,s)?nt(new dr([],{})):vs(e);throw t}))}expandSegmentAgainstRoute(t,e,r,n,s,i,o){return ds(n,e,s,i)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,r,n,s,i):vs(e):vs(e)}expandSegmentAgainstRouteUsingRedirect(t,e,r,n,s,i){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,n,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,r,n,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,r,n){const s=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?Ss(s):this.lineralizeSegments(r,s).pipe(Ot(r=>{const s=new dr(r,{});return this.expandSegment(t,s,e,r,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,r,n,s,i){const{matched:o,consumedSegments:a,remainingSegments:u,positionalParamSegments:c}=cs(e,n,s);if(!o)return vs(e);const l=this.applyRedirectCommands(a,n.redirectTo,c);return n.redirectTo.startsWith("/")?Ss(l):this.lineralizeSegments(n,l).pipe(Ot(n=>this.expandSegment(t,e,r,n.concat(u),i,!1)))}matchSegmentAgainstRoute(t,e,r,n,s){if("**"===r.path){if(t=Dn(r,t),r.loadChildren){return(r._loadedRoutes?nt({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(t,r)).pipe(Ut(t=>(r._loadedRoutes=t.routes,r._loadedInjector=t.injector,new dr(n,{}))))}return nt(new dr(n,{}))}return us(e,r,n,t,this.urlSerializer).pipe(Nt(({matched:i,consumedSegments:o,remainingSegments:a})=>{if(!i)return vs(e);t=r._injector??t;return this.getChildConfig(t,r,n).pipe(Ot(n=>{const i=n.injector??t,u=n.routes,{segmentGroup:c,slicedSegments:l}=ls(e,o,a,u),h=new dr(c.segments,c.children);if(0===l.length&&h.hasChildren()){return this.expandChildren(i,u,h).pipe(Ut(t=>new dr(o,t)))}if(0===u.length&&0===l.length)return nt(new dr(o,{}));const d=qn(r)===s;return this.expandSegment(i,h,u,l,d?Ve:s,!0).pipe(Ut(t=>new dr(o.concat(t.segments),t.children)))}))}))}getChildConfig(t,e,r){return e.children?nt({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?nt({routes:e._loadedRoutes,injector:e._loadedInjector}):ss(t,e,r,this.urlSerializer).pipe(Ot(r=>r?this.configLoader.loadChildren(t,e).pipe(kt(t=>{e._loadedRoutes=t.routes,e._loadedInjector=t.injector})):ht(jn(gs,3)))):nt({routes:[],injector:t})}lineralizeSegments(t,e){let r=[],n=e.root;for(;;){if(r=r.concat(n.segments),0===n.numberOfChildren)return nt(r);if(n.numberOfChildren>1||!n.children[Ve])return ys(t.redirectTo);n=n.children[Ve]}}applyRedirectCommands(t,e,r){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,r)}applyRedirectCreateUrlTree(t,e,r,n){const s=this.createSegmentGroup(t,e.root,r,n);return new hr(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const r={};return rr(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);r[n]=e[s]}else r[n]=t}),r}createSegmentGroup(t,e,r,n){const s=this.createSegments(t,e.segments,r,n);let i={};return rr(e.children,(e,s)=>{i[s]=this.createSegmentGroup(t,e,r,n)}),new dr(s,i)}createSegments(t,e,r,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,r))}findPosParam(t,e,r){const n=r[e.path.substring(1)];if(!n)throw new z(4001,gs);return n}findOrReturn(t,e){let r=0;for(const n of e){if(n.path===t.path)return e.splice(r),n;r++}return t}}function Cs(t,e,r,n){return Nt(s=>function(t,e,r,n,s){return new ws(t,e,r,n,s).apply()}(t,e,r,s.extractedUrl,n).pipe(Ut(t=>({...s,urlAfterRedirects:t}))))}class Rs{}function bs(t,e,r,n,s,i,o="emptyOnly",a="legacy"){return new As(t,e,r,n,s,o,a,i).recognize().pipe(Nt(t=>{return null===t?(e=new Rs,new gt(t=>t.error(e))):nt(t);var e}))}class As{constructor(t,e,r,n,s,i,o,a){this.injector=t,this.rootComponentType=e,this.config=r,this.urlTree=n,this.url=s,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o,this.urlSerializer=a}recognize(){const t=ls(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,Ve).pipe(Ut(t=>{if(null===t)return null;const e=new bn([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ve,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new vn(e,t),n=new An(this.url,r);return this.inheritParamsAndData(n._root),n}))}inheritParamsAndData(t){const e=t.value,r=Rn(e,this.paramsInheritanceStrategy);e.params=Object.freeze(r.params),e.data=Object.freeze(r.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,r,n){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,e,r):this.processSegment(t,e,r,r.segments,n)}processChildren(t,e,r){return it(Object.keys(r.children)).pipe(Ht(n=>{const s=r.children[n],i=Gn(e,n);return this.processSegmentGroup(t,i,s,n)}),Gt((t,e)=>t&&e?(t.push(...e),t):null),Bt(t=>null!==t),Dt(null),Wt(),Ut(t=>{if(null===t)return null;const e=Es(t);return e.sort((t,e)=>t.value.outlet===Ve?-1:e.value.outlet===Ve?1:t.value.outlet.localeCompare(e.value.outlet)),e}))}processSegment(t,e,r,n,s){return it(e).pipe(Ht(e=>this.processSegmentAgainstRoute(e._injector??t,e,r,n,s)),zt(t=>!!t),$t(t=>{if(ts(t))return ps(r,n,s)?nt([]):nt(null);throw t}))}processSegmentAgainstRoute(t,e,r,n,s){if(e.redirectTo||!ds(e,r,n,s))return nt(null);let i;if("**"===e.path){const t=n.length>0?er(n).parameters:{},s=Is(r)+n.length,o=new bn(n,t,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,xs(e),qn(e),e.component??e._loadedComponent??null,e,_s(r),s,Us(e),s);i=nt({snapshot:o,consumedSegments:[],remainingSegments:[]})}else i=us(r,e,n,t,this.urlSerializer).pipe(Ut(({matched:t,consumedSegments:n,remainingSegments:s,parameters:i})=>{if(!t)return null;const o=Is(r)+n.length;return{snapshot:new bn(n,i,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,xs(e),qn(e),e.component??e._loadedComponent??null,e,_s(r),o,Us(e),o),consumedSegments:n,remainingSegments:s}}));return i.pipe(Nt(n=>{if(null===n)return nt(null);const{snapshot:i,consumedSegments:o,remainingSegments:a}=n;t=e._injector??t;const u=e._loadedInjector??t,c=function(t){if(t.children)return t.children;if(t.loadChildren)return t._loadedRoutes;return[]}(e),{segmentGroup:l,slicedSegments:h}=ls(r,o,a,c.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===h.length&&l.hasChildren())return this.processChildren(u,c,l).pipe(Ut(t=>null===t?null:[new vn(i,t)]));if(0===c.length&&0===h.length)return nt([new vn(i,[])]);const d=qn(e)===s;return this.processSegment(u,c,l,h,d?Ve:s).pipe(Ut(t=>null===t?null:[new vn(i,t)]))}))}}function Ts(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Es(t){const e=[],r=new Set;for(const n of t){if(!Ts(n)){e.push(n);continue}const t=e.find(t=>n.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...n.children),r.add(t)):e.push(n)}for(const t of r){const r=Es(t.children);e.push(new vn(t.value,r))}return e.filter(t=>!r.has(t))}function _s(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Is(t){let e=t,r=e._segmentIndexShift??0;for(;e._sourceSegment;)e=e._sourceSegment,r+=e._segmentIndexShift??0;return r-1}function xs(t){return t.data||{}}function Us(t){return t.resolve||{}}function ks(t,e){return Ot(r=>{const{targetSnapshot:n,guards:{canActivateChecks:s}}=r;if(!s.length)return nt(r);let i=0;return it(s).pipe(Ht(r=>function(t,e,r,n){const s=t.routeConfig,i=t._resolve;void 0===s?.title||js(s)||(i[Ke]=s.title);return function(t,e,r,n){const s=(i=t,[...Object.keys(i),...Object.getOwnPropertySymbols(i)]);var i;if(0===s.length)return nt({});const o={};return it(s).pipe(Ot(s=>function(t,e,r,n){const s=Wn(e)??n,i=Qn(t,s),o=i.resolve?i.resolve(e,r):s.runInContext(()=>i(e,r));return nr(o)}(t[s],e,r,n).pipe(zt(),kt(t=>{o[s]=t}))),Vt(1),Kt(o),$t(t=>ts(t)?at:ht(t)))}(i,t,e,n).pipe(Ut(e=>(t._resolvedData=e,t.data=Rn(t,r).resolve,s&&js(s)&&(t.data[Ke]=s.title),null)))}(r.route,n,t,e)),kt(()=>i++),Vt(1),Ot(t=>i===s.length?nt(r):at))})}function js(t){return"string"==typeof t.title||null===t.title}function Ps(t){return Nt(e=>{const r=t(e);return r?it(r).pipe(Ut(()=>e)):nt(e)})}class Os{buildTitle(t){let e,r=t.root;for(;void 0!==r;)e=this.getResolvedTitleForRoute(r)??e,r=r.children.find(t=>t.outlet===Ve);return e}getResolvedTitleForRoute(t){return t.data[Ke]}}t("TitleStrategy",Os),Os.\u0275fac=function(t){return new(t||Os)},Os.\u0275prov=r.\u0275\u0275defineInjectable({token:Os,factory:function(){return c(Ls)},providedIn:"root"});class Ls extends Os{constructor(t){super(),this.title=t}updateTitle(t){const e=this.buildTitle(t);void 0!==e&&this.title.setTitle(e)}}t("DefaultTitleStrategy",Ls),Ls.\u0275fac=function(t){return new(t||Ls)(r.\u0275\u0275inject(Oe))},Ls.\u0275prov=r.\u0275\u0275defineInjectable({token:Ls,factory:Ls.\u0275fac,providedIn:"root"});class Ns{}t("RouteReuseStrategy",Ns);class $s{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}t("BaseRouteReuseStrategy",$s);class Ms extends $s{}const Hs=t("ROUTER_CONFIGURATION",new e("",{providedIn:"root",factory:()=>({})})),zs=t("ROUTES",new e("ROUTES"));class Ds{constructor(t,e){this.injector=t,this.compiler=e,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return nt(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const e=nr(t.loadComponent()).pipe(kt(e=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=e}),jt(()=>{this.componentLoaders.delete(t)})),r=new st(e,()=>new rt).pipe(Pt());return this.componentLoaders.set(t,r),r}loadChildren(t,e){if(this.childrenLoaders.get(e))return this.childrenLoaders.get(e);if(e._loadedRoutes)return nt({routes:e._loadedRoutes,injector:e._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(e);const r=this.loadModuleFactoryOrRoutes(e.loadChildren).pipe(Ut(r=>{let n,s;this.onLoadEndListener&&this.onLoadEndListener(e);let i=!1;Array.isArray(r)?(s=r,i=!0):(n=r.create(t).injector,s=tr(n.get(zs,[],F.Self|F.Optional)));const o=s.map(Fn);return{routes:o,injector:n}}),jt(()=>{this.childrenLoaders.delete(e)})),n=new st(r,()=>new rt).pipe(Pt());return this.childrenLoaders.set(e,n),n}loadModuleFactoryOrRoutes(t){return nr(t()).pipe(Ot(t=>t instanceof q||Array.isArray(t)?nt(t):it(this.compiler.compileModuleAsync(t))))}}Ds.\u0275fac=function(t){return new(t||Ds)(r.\u0275\u0275inject(r.Injector),r.\u0275\u0275inject(r.Compiler))},Ds.\u0275prov=r.\u0275\u0275defineInjectable({token:Ds,factory:Ds.\u0275fac,providedIn:"root"});class Fs{}t("UrlHandlingStrategy",Fs);class qs{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}const Gs=!1;function Ws(t){throw t}function Bs(t,e,r){return e.parse("/")}const Vs={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ks={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Zs(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(e.canceledNavigationResolution=t.canceledNavigationResolution)}function Qs(){const t=c(fr),e=c(Nn),r=c(At),n=c(C),s=c(G),i=c(zs,{optional:!0})??[],o=c(Hs,{optional:!0})??{},a=c(Ls),u=c(Os,{optional:!0}),l=c(Fs,{optional:!0}),h=c(Ns,{optional:!0}),d=new Ys(null,t,e,r,n,s,tr(i));return l&&(d.urlHandlingStrategy=l),h&&(d.routeReuseStrategy=h),d.titleStrategy=u??a,Zs(o,d),d}class Ys{constructor(t,e,r,n,s,i,o){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=r,this.location=n,this.config=o,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new rt,this.errorHandler=Ws,this.malformedUriErrorHandler=Bs,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>nt(void 0),this.urlHandlingStrategy=new qs,this.routeReuseStrategy=new Ms,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace";this.configLoader=s.get(Ds),this.configLoader.onLoadEndListener=t=>this.triggerEvent(new un(t)),this.configLoader.onLoadStartListener=t=>this.triggerEvent(new an(t)),this.ngModule=s.get(W),this.console=s.get(l);const a=s.get(U);this.isNgZoneEnabled=a instanceof U&&U.isInAngularZone(),this.resetConfig(o),this.currentUrlTree=new hr(new dr([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=wn(this.currentUrlTree,this.rootComponentType),this.transitions=new ot({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(t){const e=this.events;return t.pipe(Lt(t=>0!==t.id),Ut(t=>({...t,extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Nt(t=>{let r=!1,n=!1;return nt(t).pipe(kt(t=>{this.currentNavigation={id:t.id,initialUrl:t.rawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Nt(r=>{const n=this.browserUrlTree.toString(),s=!this.navigated||r.extractedUrl.toString()!==n||n!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||s)&&this.urlHandlingStrategy.shouldProcessUrl(r.rawUrl))return Js(r.source)&&(this.browserUrlTree=r.extractedUrl),nt(r).pipe(Nt(t=>{const r=this.transitions.getValue();return e.next(new Yr(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==this.transitions.getValue()?at:Promise.resolve(t)}),Cs(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),kt(e=>{this.currentNavigation={...this.currentNavigation,finalUrl:e.urlAfterRedirects},t.urlAfterRedirects=e.urlAfterRedirects}),(i=this.ngModule.injector,o=this.rootComponentType,a=this.config,u=this.urlSerializer,c=this.paramsInheritanceStrategy,l=this.relativeLinkResolution,Ot(t=>bs(i,o,a,t.urlAfterRedirects,u.serialize(t.urlAfterRedirects),u,c,l).pipe(Ut(e=>({...t,targetSnapshot:e}))))),kt(r=>{if(t.targetSnapshot=r.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!r.extras.skipLocationChange){const t=this.urlHandlingStrategy.merge(r.urlAfterRedirects,r.rawUrl);this.setBrowserUrl(t,r)}this.browserUrlTree=r.urlAfterRedirects}const n=new en(r.id,this.serializeUrl(r.extractedUrl),this.serializeUrl(r.urlAfterRedirects),r.targetSnapshot);e.next(n)}));if(s&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:s,source:i,restoredState:o,extras:a}=r,u=new Yr(n,this.serializeUrl(s),i,o);e.next(u);const c=wn(s,this.rootComponentType).snapshot;return t={...r,targetSnapshot:c,urlAfterRedirects:s,extras:{...a,skipLocationChange:!1,replaceUrl:!1}},nt(t)}return this.rawUrlTree=r.rawUrl,r.resolve(null),at;var i,o,a,u,c,l}),kt(t=>{const e=new rn(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Ut(e=>t={...e,guards:Zn(e.targetSnapshot,e.currentSnapshot,this.rootContexts)}),ns(this.ngModule.injector,t=>this.triggerEvent(t)),kt(e=>{if(t.guardsResult=e.guardsResult,Pr(e.guardsResult))throw kn(this.urlSerializer,e.guardsResult);const r=new nn(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(r)}),Lt(t=>!!t.guardsResult||(this.restoreHistory(t),this.cancelNavigationTransition(t,"",3),!1)),Ps(t=>{if(t.guards.canActivateChecks.length)return nt(t).pipe(kt(t=>{const e=new sn(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Nt(t=>{let e=!1;return nt(t).pipe(ks(this.paramsInheritanceStrategy,this.ngModule.injector),kt({next:()=>e=!0,complete:()=>{e||(this.restoreHistory(t),this.cancelNavigationTransition(t,"",2))}}))}),kt(t=>{const e=new on(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Ps(t=>{const e=t=>{const r=[];t.routeConfig?.loadComponent&&!t.routeConfig._loadedComponent&&r.push(this.configLoader.loadComponent(t.routeConfig).pipe(kt(e=>{t.component=e}),Ut(()=>{})));for(const n of t.children)r.push(...e(n));return r};return lt(e(t.targetSnapshot.root)).pipe(Dt(),Ft(1))}),Ps(()=>this.afterPreactivation()),Ut(e=>{const r=function(t,e,r){const n=xn(t,e._root,r?r._root:void 0);return new yn(n,e)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return t={...e,targetRouterState:r}}),kt(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(t.urlAfterRedirects,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,i=this.routeReuseStrategy,o=t=>this.triggerEvent(t),Ut(t=>(new Bn(i,t.targetRouterState,t.currentRouterState,o).activate(s),t))),kt({next(){r=!0},complete(){r=!0}}),jt(()=>{if(!r&&!n){const e="";this.cancelNavigationTransition(t,e,1)}this.currentNavigation?.id===t.id&&(this.currentNavigation=null)}),$t(r=>{if(n=!0,On(r)){Pn(r)||(this.navigated=!0,this.restoreHistory(t,!0));const n=new Xr(t.id,this.serializeUrl(t.extractedUrl),r.message,r.cancellationCode);if(e.next(n),Pn(r)){const e=this.urlHandlingStrategy.merge(r.url,this.rawUrlTree),n={skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Js(t.source)};this.scheduleNavigation(e,"imperative",null,n,{resolve:t.resolve,reject:t.reject,promise:t.promise})}else t.resolve(!1)}else{this.restoreHistory(t,!0);const n=new tn(t.id,this.serializeUrl(t.extractedUrl),r,t.targetSnapshot??void 0);e.next(n);try{t.resolve(this.errorHandler(r))}catch(e){t.reject(e)}}return at}));var s,i,o}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}setTransition(t){this.transitions.next({...this.transitions.value,...t})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e="popstate"===t.type?"popstate":"hashchange";if("popstate"===e){const r={replaceUrl:!0},n=t.state?.navigationId?t.state:null;if(n){const t={...n};delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(r.state=t)}const s=this.parseUrl(t.url);this.scheduleNavigation(s,e,n,r)}}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){this.config=t.map(Fn),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:r,queryParams:n,fragment:s,queryParamsHandling:i,preserveFragment:o}=e,a=r||this.routerState.root,u=o?this.currentUrlTree.fragment:s;let c=null;switch(i){case"merge":c={...this.currentUrlTree.queryParams,...n};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=n||null}return null!==c&&(c=this.removeEmptyProps(c)),Lr(a,this.currentUrlTree,t,c,u??null)}navigateByUrl(t,e={skipLocationChange:!1}){const r=Pr(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const r=t[e];if(null==r)throw new z(4008,Gs)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(r){e=this.malformedUriErrorHandler(r,this.urlSerializer,t)}return e}isActive(t,e){let r;if(r=!0===e?{...Vs}:!1===e?{...Ks}:e,Pr(t))return ar(this.currentUrlTree,t,r);const n=this.parseUrl(t);return ar(this.currentUrlTree,n,r)}removeEmptyProps(t){return Object.keys(t).reduce((e,r)=>{const n=t[r];return null!=n&&(e[r]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new Jr(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,e,r,n,s){if(this.disposed)return Promise.resolve(!1);let i,o,a;s?(i=s.resolve,o=s.reject,a=s.promise):a=new Promise((t,e)=>{i=t,o=e});const u=++this.navigationId;let c;if("computed"===this.canceledNavigationResolution){0===this.currentPageId&&(r=this.location.getState()),c=r&&r.\u0275routerPageId?r.\u0275routerPageId:n.replaceUrl||n.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1}else c=0;return this.setTransition({id:u,targetPageId:c,source:e,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:i,reject:o,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const r=this.urlSerializer.serialize(t),n={...e.extras.state,...this.generateNgRouterState(e.id,e.targetPageId)};this.location.isCurrentPathEqualTo(r)||e.extras.replaceUrl?this.location.replaceState(r,"",n):this.location.go(r,"",n)}restoreHistory(t,e=!1){if("computed"===this.canceledNavigationResolution){const e=this.currentPageId-t.targetPageId;("popstate"===t.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===this.currentNavigation?.finalUrl)&&0!==e?this.location.historyGo(e):this.currentUrlTree===this.currentNavigation?.finalUrl&&0===e&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(e&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e,r){const n=new Xr(t.id,this.serializeUrl(t.extractedUrl),e,r);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:e}:{navigationId:t}}}function Js(t){return"imperative"!==t}t("Router",Ys),Ys.\u0275fac=function(t){r.\u0275\u0275invalidFactory()},Ys.\u0275prov=r.\u0275\u0275defineInjectable({token:Ys,factory:function(){return Qs()},providedIn:"root"});class Xs{constructor(t,e,r,n,s){this.router=t,this.route=e,this.tabIndexAttribute=r,this.renderer=n,this.el=s,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new rt,this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(t){this._preserveFragment=B(t)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(t){this._skipLocationChange=B(t)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(t){this._replaceUrl=B(t)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(t){if(null!=this.tabIndexAttribute)return;const e=this.renderer,r=this.el.nativeElement;null!==t?e.setAttribute(r,"tabindex",t):e.removeAttribute(r,"tabindex")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){null!=t?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const t={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}t("RouterLink",Xs),Xs.\u0275fac=function(t){return new(t||Xs)(r.\u0275\u0275directiveInject(Ys),r.\u0275\u0275directiveInject(Cn),r.\u0275\u0275injectAttribute("tabindex"),r.\u0275\u0275directiveInject(r.Renderer2),r.\u0275\u0275directiveInject(r.ElementRef))},Xs.\u0275dir=r.\u0275\u0275defineDirective({type:Xs,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&r.\u0275\u0275listener("click",function(){return e.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[r.\u0275\u0275NgOnChangesFeature]});class ti{constructor(t,e,r){this.router=t,this.route=e,this.locationStrategy=r,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new rt,this.subscription=t.events.subscribe(t=>{t instanceof Jr&&this.updateTargetUrlAndHref()})}set preserveFragment(t){this._preserveFragment=B(t)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(t){this._skipLocationChange=B(t)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(t){this._replaceUrl=B(t)}get replaceUrl(){return this._replaceUrl}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:null}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,r,n,s){if(0!==t||e||r||n||s)return!0;if("string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const i={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state};return this.router.navigateByUrl(this.urlTree,i),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}t("RouterLinkWithHref",ti),ti.\u0275fac=function(t){return new(t||ti)(r.\u0275\u0275directiveInject(Ys),r.\u0275\u0275directiveInject(Cn),r.\u0275\u0275directiveInject(bt.LocationStrategy))},ti.\u0275dir=r.\u0275\u0275defineDirective({type:ti,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.\u0275\u0275listener("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&r.\u0275\u0275attribute("target",e.target)("href",e.href,r.\u0275\u0275sanitizeUrl)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[r.\u0275\u0275NgOnChangesFeature]});class ei{constructor(t,e,r,n,s,i){this.router=t,this.element=e,this.renderer=r,this.cdr=n,this.link=s,this.linkWithHref=i,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new D,this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof Jr&&this.update()})}ngAfterContentInit(){nt(this.links.changes,this.linksWithHrefs.changes,nt(null)).pipe(Mt()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const t=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=it(t).pipe(Mt()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}),t&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(t))})}isLinkActive(t){const e=function(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&t.isActive(r.urlTree,e)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}t("RouterLinkActive",ei),ei.\u0275fac=function(t){return new(t||ei)(r.\u0275\u0275directiveInject(Ys),r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.Renderer2),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(Xs,8),r.\u0275\u0275directiveInject(ti,8))},ei.\u0275dir=r.\u0275\u0275defineDirective({type:ei,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){if(1&t&&(r.\u0275\u0275contentQuery(n,Xs,5),r.\u0275\u0275contentQuery(n,ti,5)),2&t){let t;r.\u0275\u0275queryRefresh(t=r.\u0275\u0275loadQuery())&&(e.links=t),r.\u0275\u0275queryRefresh(t=r.\u0275\u0275loadQuery())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[r.\u0275\u0275NgOnChangesFeature]});class ri{}t("PreloadingStrategy",ri);class ni{preload(t,e){return e().pipe($t(()=>nt(null)))}}t("PreloadAllModules",ni),ni.\u0275fac=function(t){return new(t||ni)},ni.\u0275prov=r.\u0275\u0275defineInjectable({token:ni,factory:ni.\u0275fac,providedIn:"root"});class si{preload(t,e){return nt(null)}}t("NoPreloading",si),si.\u0275fac=function(t){return new(t||si)},si.\u0275prov=r.\u0275\u0275defineInjectable({token:si,factory:si.\u0275fac,providedIn:"root"});class ii{constructor(t,e,r,n,s){this.router=t,this.injector=r,this.preloadingStrategy=n,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Lt(t=>t instanceof Jr),Ht(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const r=[];for(const n of e){n.providers&&!n._injector&&(n._injector=V(n.providers,t,`Route: ${n.path}`));const e=n._injector??t,s=n._loadedInjector??e;n.loadChildren&&!n._loadedRoutes&&void 0===n.canLoad||n.loadComponent&&!n._loadedComponent?r.push(this.preloadConfig(e,n)):(n.children||n._loadedRoutes)&&r.push(this.processRoutes(s,n.children??n._loadedRoutes))}return it(r).pipe(Mt())}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>{let r;r=e.loadChildren&&void 0===e.canLoad?this.loader.loadChildren(t,e):nt(null);const n=r.pipe(Ot(r=>null===r?nt(void 0):(e._loadedRoutes=r.routes,e._loadedInjector=r.injector,this.processRoutes(r.injector??t,r.routes))));if(e.loadComponent&&!e._loadedComponent){const t=this.loader.loadComponent(e);return it([n,t]).pipe(Mt())}return n})}}t("RouterPreloader",ii),ii.\u0275fac=function(t){return new(t||ii)(r.\u0275\u0275inject(Ys),r.\u0275\u0275inject(r.Compiler),r.\u0275\u0275inject(r.EnvironmentInjector),r.\u0275\u0275inject(ri),r.\u0275\u0275inject(Ds))},ii.\u0275prov=r.\u0275\u0275defineInjectable({token:ii,factory:ii.\u0275fac,providedIn:"root"});const oi=new e("");class ai{constructor(t,e,r={}){this.router=t,this.viewportScroller=e,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Yr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Jr&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof pn&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new pn(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}ai.\u0275fac=function(t){r.\u0275\u0275invalidFactory()},ai.\u0275prov=r.\u0275\u0275defineInjectable({token:ai,factory:ai.\u0275fac});const ui=!1;function ci(t){return t.routerState.root}function li(t,e){return{\u0275kind:t,\u0275providers:e}}function hi(t){return[{provide:zs,multi:!0,useValue:t}]}function di(){const t=c(C);return e=>{const r=t.get(Z);if(e!==r.components[0])return;const n=t.get(Ys),s=t.get(pi);1===t.get(gi)&&n.initialNavigation(),t.get(Si,null,F.Optional)?.setUpPreloading(),t.get(oi,null,F.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),s.closed||(s.next(),s.unsubscribe())}}const pi=new e(ui?"bootstrap done indicator":"",{factory:()=>new rt}),gi=new e(ui?"initial navigation":"",{providedIn:"root",factory:()=>1});function fi(){return li(2,[{provide:gi,useValue:0},{provide:N,multi:!0,deps:[C],useFactory:t=>{const e=t.get(xt,Promise.resolve());let r=!1;return()=>e.then(()=>new Promise(e=>{const n=t.get(Ys),s=t.get(pi);var i;i=()=>{e(!0),r=!0},t.get(Ys).events.pipe(Lt(t=>t instanceof Jr||t instanceof Xr||t instanceof tn),Ut(t=>t instanceof Jr||!(!(t instanceof Xr)||0!==t.code&&1!==t.code)&&null),Lt(t=>null!==t),Ft(1)).subscribe(()=>{i()}),n.afterPreactivation=()=>(e(!0),r||s.closed?nt(void 0):s),n.initialNavigation()}))}}])}function mi(){return li(3,[{provide:N,multi:!0,useFactory:()=>{const t=c(Ys);return()=>{t.setUpLocationChangeListener()}}},{provide:gi,useValue:2}])}function vi(){let t=[];return t=ui?[{provide:et,multi:!0,useFactory:()=>{const t=c(Ys);return()=>t.events.subscribe(t=>{console.group?.(`Router Event: ${t.constructor.name}`),console.log(function(t){if(!("type"in t))return`Unknown Router Event: ${t.constructor.name}`;switch(t.type){case 14:return`ActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state}, shouldActivate: ${t.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 2:return`NavigationCancel(id: ${t.id}, url: '${t.url}')`;case 1:return`NavigationEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${t.id}, url: '${t.url}', error: ${t.error})`;case 0:return`NavigationStart(id: ${t.id}, url: '${t.url}')`;case 6:return`ResolveEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 5:return`ResolveStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 10:return`RouteConfigLoadEnd(path: ${t.route.path})`;case 9:return`RouteConfigLoadStart(path: ${t.route.path})`;case 4:return`RoutesRecognized(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 15:const e=t.position?`${t.position[0]}, ${t.position[1]}`:null;return`Scroll(anchor: '${t.anchor}', position: '${e}')`}}(t)),console.log(t),console.groupEnd?.()})}}]:[],li(1,t)}const Si=new e(ui?"router preloader":"");function yi(t){return li(0,[{provide:Si,useExisting:ii},{provide:ri,useExisting:t}])}const wi=new e("ROUTER_FORROOT_GUARD"),Ci=t("\u0275ROUTER_PROVIDERS",[At,{provide:fr,useClass:mr},{provide:Ys,useFactory:Qs},Nn,{provide:Cn,useFactory:ci,deps:[Ys]},Ds]);function Ri(){return new Q("Router",Ys)}class bi{constructor(t){}static forRoot(t,e){return{ngModule:bi,providers:[Ci,[],hi(t),{provide:wi,useFactory:Ai,deps:[[Ys,new a,new u]]},{provide:Hs,useValue:e||{}},e?.useHash?{provide:Et,useClass:_t}:{provide:Et,useClass:It},{provide:oi,useFactory:()=>{const t=c(Ys),e=c(Tt),r=c(Hs);return r.scrollOffset&&e.setOffset(r.scrollOffset),new ai(t,e,r)}},e?.preloadingStrategy?yi(e.preloadingStrategy).\u0275providers:[],{provide:Q,multi:!0,useFactory:Ri},e?.initialNavigation?Ti(e):[],[{provide:Ei,useFactory:di},{provide:K,multi:!0,useExisting:Ei}]]}}static forChild(t){return{ngModule:bi,providers:[hi(t)]}}}function Ai(t){return"guarded"}function Ti(t){return["disabled"===t.initialNavigation?mi().\u0275providers:[],"enabledBlocking"===t.initialNavigation?fi().\u0275providers:[]]}t("RouterModule",bi),bi.\u0275fac=function(t){return new(t||bi)(r.\u0275\u0275inject(wi,8))},bi.\u0275mod=r.\u0275\u0275defineNgModule({type:bi}),bi.\u0275inj=r.\u0275\u0275defineInjector({imports:[zn]});const Ei=t("ROUTER_INITIALIZER",new e(""));t("VERSION",new R("14.2.12"))}}});