-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchunk-F6FOWJC3.js
More file actions
2 lines (2 loc) · 119 KB
/
chunk-F6FOWJC3.js
File metadata and controls
2 lines (2 loc) · 119 KB
1
2
import{$ as g,$a as dt,Ac as Se,B as W,Ba as si,Bc as Ni,Ca as qn,Cc as Li,D as De,Da as ai,Dc as ki,E as ae,Ea as lt,Ec as xi,Fc as gt,G as Un,Ga as Wn,H as Pe,Ha as ui,Ia as Yn,Ja as we,Jb as Ai,K as ye,Ka as Ue,L as ue,La as ci,M as Bn,Ma as li,N as ei,Na as di,Oa as hi,Pa as fi,Q as ti,Qa as pi,Qb as Ti,Ra as gi,Sa as Ce,U as ni,Ub as _i,V as x,Va as mi,W as jn,Wb as Ii,X as I,Xa as Be,Xb as Mi,Z as y,_a as vi,a as Zr,aa as Ne,ab as O,b as Kr,ba as ri,bb as Di,c as at,ca as C,cb as ht,d as Nn,da as v,db as Vt,e as Ln,ea as l,eb as yi,f as z,fa as Le,fb as wi,g as j,ga as ii,gb as Ci,ha as ce,hb as Zn,i as J,ia as V,ib as Ei,jb as je,kb as de,l as P,lb as Kn,m as f,ma as ke,n as ut,na as _,o as Xr,oa as zt,p as Jr,pa as $n,pb as Si,q as E,qa as xe,qb as Ee,r as kn,rb as Q,rc as Fi,s as k,sa as zn,t as xn,tb as Xn,tc as pt,u as Qr,ua as oi,ub as Ht,v as $t,va as Vn,vb as Ri,wa as le,wc as Oi,xa as Hn,xb as Gt,xc as Pi,ya as Gn,yb as ft,za as ct,zb as bi}from"./chunk-NL3GICOC.js";import{a as h,b as F,d as Yr,j as Oe}from"./chunk-TWZW5B45.js";var ji=null;function ee(){return ji}function Jn(t){ji??=t}var mt=class{},Qn=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:()=>l($i),providedIn:"platform"})}return t})();var $i=(()=>{class t extends Qn{_location;_history;_doc=l(_);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ee().getBaseHref(this._doc)}onPopState(e){let n=ee().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=ee().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,n,i){this._history.pushState(e,n,i)}replaceState(e,n,i){this._history.replaceState(e,n,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function zi(t,r){return t?r?t.endsWith("/")?r.startsWith("/")?t+r.slice(1):t+r:r.startsWith("/")?t+r:`${t}/${r}`:t:r}function Ui(t){let r=t.search(/#|\?|$/);return t[r-1]==="/"?t.slice(0,r-1)+t.slice(r):t}function he(t){return t&&t[0]!=="?"?`?${t}`:t}var be=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:()=>l(er),providedIn:"root"})}return t})(),Vi=new C(""),er=(()=>{class t extends be{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??l(_).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return zi(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+he(this._platformLocation.search),i=this._platformLocation.hash;return i&&e?`${n}${i}`:n}pushState(e,n,i,o){let s=this.prepareExternalUrl(i+he(o));this._platformLocation.pushState(e,n,s)}replaceState(e,n,i,o){let s=this.prepareExternalUrl(i+he(o));this._platformLocation.replaceState(e,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(v(Qn),v(Vi,8))};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ae=(()=>{class t{_subject=new z;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=gs(Ui(Bi(n))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+he(n))}normalize(e){return t.stripTrailingSlash(ps(this._basePath,Bi(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",i=null){this._locationStrategy.pushState(i,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+he(n)),i)}replaceState(e,n="",i=null){this._locationStrategy.replaceState(i,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+he(n)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(i=>i(e,n))}subscribe(e,n,i){return this._subject.subscribe({next:e,error:n??void 0,complete:i??void 0})}static normalizeQueryParams=he;static joinWithSlash=zi;static stripTrailingSlash=Ui;static \u0275fac=function(n){return new(n||t)(v(be))};static \u0275prov=g({token:t,factory:()=>fs(),providedIn:"root"})}return t})();function fs(){return new Ae(v(be))}function ps(t,r){if(!t||!r.startsWith(t))return r;let e=r.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:r}function Bi(t){return t.replace(/\/index.html$/,"")}function gs(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var ms=(()=>{class t{_viewContainerRef;ngComponentOutlet=null;ngComponentOutletInputs;ngComponentOutletInjector;ngComponentOutletContent;ngComponentOutletNgModule;ngComponentOutletNgModuleFactory;_componentRef;_moduleRef;_inputsUsed=new Map;get componentInstance(){return this._componentRef?.instance??null}constructor(e){this._viewContainerRef=e}_needToReCreateNgModuleInstance(e){return e.ngComponentOutletNgModule!==void 0||e.ngComponentOutletNgModuleFactory!==void 0}_needToReCreateComponentInstance(e){return e.ngComponentOutlet!==void 0||e.ngComponentOutletContent!==void 0||e.ngComponentOutletInjector!==void 0||this._needToReCreateNgModuleInstance(e)}ngOnChanges(e){if(this._needToReCreateComponentInstance(e)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){let n=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(e)&&(this._moduleRef?.destroy(),this.ngComponentOutletNgModule?this._moduleRef=Ci(this.ngComponentOutletNgModule,Hi(n)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(Hi(n)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:n,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(let e of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(e,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(e){for(let[n,i]of this._inputsUsed)i?(e.setInput(n,this.ngComponentOutletInputs[n]),this._inputsUsed.set(n,!1)):(e.setInput(n,void 0),this._inputsUsed.delete(n))}static \u0275fac=function(n){return new(n||t)(O(ht))};static \u0275dir=de({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},exportAs:["ngComponentOutlet"],features:[le]})}return t})();function Hi(t){return t.get(yi).injector}var vs=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,n,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,i):!1,get:(e,n,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,i)}})}static \u0275fac=function(n){return new(n||t)(O(ht))};static \u0275dir=de({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[le]})}return t})();function Ds(t,r){return new y(2100,!1)}var tr=class{createSubscription(r,e,n){return pt(()=>r.subscribe({next:e,error:n}))}dispose(r){pt(()=>r.unsubscribe())}},nr=class{createSubscription(r,e,n){return r.then(i=>e?.(i),i=>n?.(i)),{unsubscribe:()=>{e=null,n=null}}}dispose(r){r.unsubscribe()}},ys=new nr,ws=new tr,Cs=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=l(xe);constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n),n=>this.applicationErrorHandler(n))}_selectStrategy(e){if(Ht(e))return ys;if(Ri(e))return ws;throw Ds(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||t)(O(Se,16))};static \u0275pipe=Kn({name:"async",type:t,pure:!1})}return t})();function Es(t,r){return{key:t,value:r}}var Ss=(()=>{class t{differs;constructor(e){this.differs=e}differ;keyValues=[];compareFn=Gi;transform(e,n=Gi){if(!e||!(e instanceof Map)&&typeof e!="object")return null;this.differ??=this.differs.find(e).create();let i=this.differ.diff(e),o=n!==this.compareFn;return i&&(this.keyValues=[],i.forEachItem(s=>{this.keyValues.push(Es(s.key,s.currentValue))})),(i||o)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||t)(O(Ni,16))};static \u0275pipe=Kn({name:"keyvalue",type:t,pure:!1})}return t})();function Gi(t,r){let e=t.key,n=r.key;if(e===n)return 0;if(e==null)return 1;if(n==null)return-1;if(typeof e=="string"&&typeof n=="string")return e<n?-1:1;if(typeof e=="number"&&typeof n=="number")return e-n;if(typeof e=="boolean"&&typeof n=="boolean")return e<n?-1:1;let i=String(e),o=String(n);return i==o?0:i<o?-1:1}var qi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=je({type:t});static \u0275inj=Ne({})}return t})();function vt(t,r){r=encodeURIComponent(r);for(let e of t.split(";")){let n=e.indexOf("="),[i,o]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(i.trim()===r)return decodeURIComponent(o)}return null}var Te=class{};var or="browser",Is="server";function ud(t){return t===or}function Wi(t){return t===Is}var Yi=(()=>{class t{static \u0275prov=g({token:t,providedIn:"root",factory:()=>new ir(l(_),window)})}return t})(),ir=class{document;window;offset=()=>[0,0];constructor(r,e){this.document=r,this.window=e}setOffset(r){Array.isArray(r)?this.offset=()=>r:this.offset=r}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(r,e){this.window.scrollTo(F(h({},e),{left:r[0],top:r[1]}))}scrollToAnchor(r,e){let n=Ms(this.document,r);n&&(this.scrollToElement(n,e),n.focus())}setHistoryScrollRestoration(r){this.window.history.scrollRestoration=r}scrollToElement(r,e){let n=r.getBoundingClientRect(),i=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(F(h({},e),{left:i-s[0],top:o-s[1]}))}};function Ms(t,r){let e=t.getElementById(r)||t.getElementsByName(r)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(r)||o.querySelector(`[name="${r}"]`);if(s)return s}i=n.nextNode()}}return null}var Yt=new C(""),cr=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(i=>{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,i,o){return this._findPluginFor(n).addEventListener(e,n,i,o)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(o=>o.supports(e)),!n)throw new y(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(v(Yt),v(Q))};static \u0275prov=g({token:t,factory:t.\u0275fac})}return t})(),Dt=class{_doc;constructor(r){this._doc=r}manager},qt="ng-app-id";function Zi(t){for(let r of t)r.remove()}function Ki(t,r){let e=r.createElement("style");return e.textContent=t,e}function Os(t,r,e,n){let i=t.head?.querySelectorAll(`style[${qt}="${r}"],link[${qt}="${r}"]`);if(i)for(let o of i)o.removeAttribute(qt),o instanceof HTMLLinkElement?n.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function ar(t,r){let e=r.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var lr=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,n,i,o={}){this.doc=e,this.appId=n,this.nonce=i,this.isServer=Wi(o),Os(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let i of e)this.addUsage(i,this.inline,Ki);n?.forEach(i=>this.addUsage(i,this.external,ar))}removeStyles(e,n){for(let i of e)this.removeUsage(i,this.inline);n?.forEach(i=>this.removeUsage(i,this.external))}addUsage(e,n,i){let o=n.get(e);o?o.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(e,this.doc)))})}removeUsage(e,n){let i=n.get(e);i&&(i.usage--,i.usage<=0&&(Zi(i.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Zi(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:i}]of this.inline)i.push(this.addElement(e,Ki(n,this.doc)));for(let[n,{elements:i}]of this.external)i.push(this.addElement(e,ar(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),this.isServer&&n.setAttribute(qt,this.appId),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(v(_),v(qn),v(Wn,8),v(lt))};static \u0275prov=g({token:t,factory:t.\u0275fac})}return t})(),sr={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/Math/MathML"},dr=/%COMP%/g;var Ji="%COMP%",Ps=`_nghost-${Ji}`,Ns=`_ngcontent-${Ji}`,Ls=!0,ks=new C("",{providedIn:"root",factory:()=>Ls});function xs(t){return Ns.replace(dr,t)}function Us(t){return Ps.replace(dr,t)}function Qi(t,r){return r.map(e=>e.replace(dr,t))}var hr=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,n,i,o,s,a,u,c=null,d=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=c,this.tracingService=d,this.platformIsServer=!1,this.defaultRenderer=new yt(e,s,u,this.platformIsServer,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;let i=this.getOrCreateRenderer(e,n);return i instanceof Wt?i.applyToHost(e):i instanceof wt&&i.applyStyles(),i}getOrCreateRenderer(e,n){let i=this.rendererByCompId,o=i.get(n.id);if(!o){let s=this.doc,a=this.ngZone,u=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,p=this.platformIsServer,b=this.tracingService;switch(n.encapsulation){case Yn.Emulated:o=new Wt(u,c,n,this.appId,d,s,a,p,b);break;case Yn.ShadowDom:return new ur(u,c,e,n,s,a,this.nonce,p,b);default:o=new wt(u,c,n,d,s,a,p,b);break}i.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(v(cr),v(lr),v(qn),v(ks),v(_),v(lt),v(Q),v(Wn),v(Si,8))};static \u0275prov=g({token:t,factory:t.\u0275fac})}return t})(),yt=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(r,e,n,i,o){this.eventManager=r,this.doc=e,this.ngZone=n,this.platformIsServer=i,this.tracingService=o}destroy(){}destroyNode=null;createElement(r,e){return e?this.doc.createElementNS(sr[e]||e,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,e){(Xi(r)?r.content:r).appendChild(e)}insertBefore(r,e,n){r&&(Xi(r)?r.content:r).insertBefore(e,n)}removeChild(r,e){e.remove()}selectRootElement(r,e){let n=typeof r=="string"?this.doc.querySelector(r):r;if(!n)throw new y(-5104,!1);return e||(n.textContent=""),n}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,n,i){if(i){e=i+":"+e;let o=sr[i];o?r.setAttributeNS(o,e,n):r.setAttribute(e,n)}else r.setAttribute(e,n)}removeAttribute(r,e,n){if(n){let i=sr[n];i?r.removeAttributeNS(i,e):r.removeAttribute(`${n}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,n,i){i&(Be.DashCase|Be.Important)?r.style.setProperty(e,n,i&Be.Important?"important":""):r.style[e]=n}removeStyle(r,e,n){n&Be.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,n){r!=null&&(r[e]=n)}setValue(r,e){r.nodeValue=e}listen(r,e,n,i){if(typeof r=="string"&&(r=ee().getGlobalEventTarget(this.doc,r),!r))throw new y(5102,!1);let o=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(r,e,o)),this.eventManager.addEventListener(r,e,o,i)}decoratePreventDefault(r){return e=>{if(e==="__ngUnwrap__")return r;r(e)===!1&&e.preventDefault()}}};function Xi(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var ur=class extends yt{sharedStylesHost;hostEl;shadowRoot;constructor(r,e,n,i,o,s,a,u,c){super(r,o,s,u,c),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=i.styles;d=Qi(i.id,d);for(let b of d){let D=document.createElement("style");a&&D.setAttribute("nonce",a),D.textContent=b,this.shadowRoot.appendChild(D)}let p=i.getExternalStyles?.();if(p)for(let b of p){let D=ar(b,o);a&&D.setAttribute("nonce",a),this.shadowRoot.appendChild(D)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,e){return super.appendChild(this.nodeOrShadowRoot(r),e)}insertBefore(r,e,n){return super.insertBefore(this.nodeOrShadowRoot(r),e,n)}removeChild(r,e){return super.removeChild(null,e)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},wt=class extends yt{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(r,e,n,i,o,s,a,u,c){super(r,o,s,a,u),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let d=n.styles;this.styles=c?Qi(c,d):d,this.styleUrls=n.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Wt=class extends wt{contentAttr;hostAttr;constructor(r,e,n,i,o,s,a,u,c){let d=i+"-"+n.id;super(r,e,n,o,s,a,u,c,d),this.contentAttr=xs(d),this.hostAttr=Us(d)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,"")}createElement(r,e){let n=super.createElement(r,e);return super.setAttribute(n,this.contentAttr,""),n}};var Zt=class t extends mt{supportsDOMEvents=!0;static makeCurrent(){Jn(new t)}onAndCancel(r,e,n,i){return r.addEventListener(e,n,i),()=>{r.removeEventListener(e,n,i)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.remove()}createElement(r,e){return e=e||this.getDefaultDocument(),e.createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return e==="window"?window:e==="document"?r:e==="body"?r.body:null}getBaseHref(r){let e=js();return e==null?null:$s(e)}resetBaseElement(){Ct=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return vt(document.cookie,r)}},Ct=null;function js(){return Ct=Ct||document.head.querySelector("base"),Ct?Ct.getAttribute("href"):null}function $s(t){return new URL(t,document.baseURI).pathname}var zs=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:t.\u0275fac})}return t})(),to=(()=>{class t extends Dt{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,i,o){return e.addEventListener(n,i,o),()=>this.removeEventListener(e,n,i,o)}removeEventListener(e,n,i,o){return e.removeEventListener(n,i,o)}static \u0275fac=function(n){return new(n||t)(v(_))};static \u0275prov=g({token:t,factory:t.\u0275fac})}return t})(),eo=["alt","control","meta","shift"],Vs={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Hs={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},no=(()=>{class t extends Dt{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,i,o){let s=t.parseEventName(n),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ee().onAndCancel(e,s.domEventName,a,o))}static parseEventName(e){let n=e.toLowerCase().split("."),i=n.shift();if(n.length===0||!(i==="keydown"||i==="keyup"))return null;let o=t._normalizeKey(n.pop()),s="",a=n.indexOf("code");if(a>-1&&(n.splice(a,1),s="code."),eo.forEach(c=>{let d=n.indexOf(c);d>-1&&(n.splice(d,1),s+=c+".")}),s+=o,n.length!=0||o.length===0)return null;let u={};return u.domEventName=i,u.fullKey=s,u}static matchEventFullKeyCode(e,n){let i=Vs[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),eo.forEach(s=>{if(s!==i){let a=Hs[s];a(e)&&(o+=s+".")}}),o+=i,o===n)}static eventCallback(e,n,i){return o=>{t.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>n(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(v(_))};static \u0275prov=g({token:t,factory:t.\u0275fac})}return t})();function Gs(t,r){return Li(h({rootComponent:t},qs(r)))}function qs(t){return{appProviders:[...Xs,...t?.providers??[]],platformProviders:Ks}}function Ws(){Zt.makeCurrent()}function Ys(){return new $n}function Zs(){return si(document),document}var Ks=[{provide:lt,useValue:or},{provide:ai,useValue:Ws,multi:!0},{provide:_,useFactory:Zs}];var Xs=[{provide:ii,useValue:"root"},{provide:$n,useFactory:Ys},{provide:Yt,useClass:to,multi:!0,deps:[_]},{provide:Yt,useClass:no,multi:!0,deps:[_]},hr,lr,cr,{provide:vi,useExisting:hr},{provide:Te,useClass:zs},[]];var ze=class{},Ve=class{},H=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(r){r?typeof r=="string"?this.lazyInit=()=>{this.headers=new Map,r.split(`
`).forEach(e=>{let n=e.indexOf(":");if(n>0){let i=e.slice(0,n),o=e.slice(n+1).trim();this.addHeaderEntry(i,o)}})}:typeof Headers<"u"&&r instanceof Headers?(this.headers=new Map,r.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(r).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(r){return this.init(),this.headers.has(r.toLowerCase())}get(r){this.init();let e=this.headers.get(r.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(r){return this.init(),this.headers.get(r.toLowerCase())||null}append(r,e){return this.clone({name:r,value:e,op:"a"})}set(r,e){return this.clone({name:r,value:e,op:"s"})}delete(r,e){return this.clone({name:r,value:e,op:"d"})}maybeSetNormalizedName(r,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,r)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(r=>this.applyUpdate(r)),this.lazyUpdate=null))}copyFrom(r){r.init(),Array.from(r.headers.keys()).forEach(e=>{this.headers.set(e,r.headers.get(e)),this.normalizedNames.set(e,r.normalizedNames.get(e))})}clone(r){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([r]),e}applyUpdate(r){let e=r.name.toLowerCase();switch(r.op){case"a":case"s":let n=r.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(r.name,e);let i=(r.op==="a"?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":let o=r.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}addHeaderEntry(r,e){let n=r.toLowerCase();this.maybeSetNormalizedName(r,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(r,e){let n=(Array.isArray(e)?e:[e]).map(o=>o.toString()),i=r.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(r,i)}forEach(r){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>r(this.normalizedNames.get(e),this.headers.get(e)))}};var Jt=class{encodeKey(r){return ro(r)}encodeValue(r){return ro(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}};function Js(t,r){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[r.decodeKey(i),""]:[r.decodeKey(i.slice(0,o)),r.decodeValue(i.slice(o+1))],u=e.get(s)||[];u.push(a),e.set(s,u)}),e}var Qs=/%(\d[a-f0-9])/gi,ea={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ro(t){return encodeURIComponent(t).replace(Qs,(r,e)=>ea[e]??r)}function Kt(t){return`${t}`}var ne=class t{map;encoder;updates=null;cloneFrom=null;constructor(r={}){if(this.encoder=r.encoder||new Jt,r.fromString){if(r.fromObject)throw new y(2805,!1);this.map=Js(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(e=>{let n=r.fromObject[e],i=Array.isArray(n)?n.map(Kt):[Kt(n)];this.map.set(e,i)})):this.map=null}has(r){return this.init(),this.map.has(r)}get(r){this.init();let e=this.map.get(r);return e?e[0]:null}getAll(r){return this.init(),this.map.get(r)||null}keys(){return this.init(),Array.from(this.map.keys())}append(r,e){return this.clone({param:r,value:e,op:"a"})}appendAll(r){let e=[];return Object.keys(r).forEach(n=>{let i=r[n];Array.isArray(i)?i.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(r,e){return this.clone({param:r,value:e,op:"s"})}delete(r,e){return this.clone({param:r,value:e,op:"d"})}toString(){return this.init(),this.keys().map(r=>{let e=this.encoder.encodeKey(r);return this.map.get(r).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(r=>r!=="").join("&")}clone(r){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(r),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(r=>this.map.set(r,this.cloneFrom.map.get(r))),this.updates.forEach(r=>{switch(r.op){case"a":case"s":let e=(r.op==="a"?this.map.get(r.param):void 0)||[];e.push(Kt(r.value)),this.map.set(r.param,e);break;case"d":if(r.value!==void 0){let n=this.map.get(r.param)||[],i=n.indexOf(Kt(r.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(r.param,n):this.map.delete(r.param)}else{this.map.delete(r.param);break}}}),this.cloneFrom=this.updates=null)}};var Qt=class{map=new Map;set(r,e){return this.map.set(r,e),this}get(r){return this.map.has(r)||this.map.set(r,r.defaultValue()),this.map.get(r)}delete(r){return this.map.delete(r),this}has(r){return this.map.has(r)}keys(){return this.map.keys()}};function ta(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function io(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function oo(t){return typeof Blob<"u"&&t instanceof Blob}function so(t){return typeof FormData<"u"&&t instanceof FormData}function na(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Et="Content-Type",en="Accept",vr="X-Request-URL",co="text/plain",lo="application/json",ho=`${lo}, ${co}, */*`,$e=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;keepalive=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(r,e,n,i){this.url=e,this.method=r.toUpperCase();let o;if(ta(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new H,this.context??=new Qt,!this.params)this.params=new ne,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),u=a===-1?"?":a<e.length-1?"&":"";this.urlWithParams=e+u+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||io(this.body)||oo(this.body)||so(this.body)||na(this.body)?this.body:this.body instanceof ne?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||so(this.body)?null:oo(this.body)?this.body.type||null:io(this.body)?null:typeof this.body=="string"?co:this.body instanceof ne?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?lo:null}clone(r={}){let e=r.method||this.method,n=r.url||this.url,i=r.responseType||this.responseType,o=r.keepalive??this.keepalive,s=r.transferCache??this.transferCache,a=r.body!==void 0?r.body:this.body,u=r.withCredentials??this.withCredentials,c=r.reportProgress??this.reportProgress,d=r.headers||this.headers,p=r.params||this.params,b=r.context??this.context;return r.setHeaders!==void 0&&(d=Object.keys(r.setHeaders).reduce((D,A)=>D.set(A,r.setHeaders[A]),d)),r.setParams&&(p=Object.keys(r.setParams).reduce((D,A)=>D.set(A,r.setParams[A]),p)),new t(e,n,a,{params:p,headers:d,context:b,reportProgress:c,responseType:i,withCredentials:u,transferCache:s,keepalive:o})}},re=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(re||{}),He=class{headers;status;statusText;url;ok;type;constructor(r,e=200,n="OK"){this.headers=r.headers||new H,this.status=r.status!==void 0?r.status:e,this.statusText=r.statusText||n,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}},St=class t extends He{constructor(r={}){super(r)}type=re.ResponseHeader;clone(r={}){return new t({headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}},fe=class t extends He{body;constructor(r={}){super(r),this.body=r.body!==void 0?r.body:null}type=re.Response;clone(r={}){return new t({body:r.body!==void 0?r.body:this.body,headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}},te=class extends He{name="HttpErrorResponse";message;error;ok=!1;constructor(r){super(r,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${r.url||"(unknown url)"}`:this.message=`Http failure response for ${r.url||"(unknown url)"}: ${r.status} ${r.statusText}`,this.error=r.error||null}},fo=200,ra=204;function fr(t,r){return{body:r,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache,keepalive:t.keepalive}}var po=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,i={}){let o;if(e instanceof $e)o=e;else{let u;i.headers instanceof H?u=i.headers:u=new H(i.headers);let c;i.params&&(i.params instanceof ne?c=i.params:c=new ne({fromObject:i.params})),o=new $e(e,n,i.body!==void 0?i.body:null,{headers:u,context:i.context,params:c,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache,keepalive:i.keepalive})}let s=f(o).pipe(ae(u=>this.handler.handle(u)));if(e instanceof $e||i.observe==="events")return s;let a=s.pipe(W(u=>u instanceof fe));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(E(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new y(2806,!1);return u.body}));case"blob":return a.pipe(E(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new y(2807,!1);return u.body}));case"text":return a.pipe(E(u=>{if(u.body!==null&&typeof u.body!="string")throw new y(2808,!1);return u.body}));case"json":default:return a.pipe(E(u=>u.body))}case"response":return a;default:throw new y(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new ne().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,i={}){return this.request("PATCH",e,fr(i,n))}post(e,n,i={}){return this.request("POST",e,fr(i,n))}put(e,n,i={}){return this.request("PUT",e,fr(i,n))}static \u0275fac=function(n){return new(n||t)(v(ze))};static \u0275prov=g({token:t,factory:t.\u0275fac})}return t})(),ia=/^\)\]\}',?\n/;function ao(t){if(t.url)return t.url;let r=vr.toLocaleLowerCase();return t.headers.get(r)}var go=new C(""),Xt=(()=>{class t{fetchImpl=l(pr,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e));ngZone=l(Q);destroyRef=l(zt);destroyed=!1;constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0})}handle(e){return new at(n=>{let i=new AbortController;return this.doRequest(e,i.signal,n).then(gr,o=>n.error(new te({error:o}))),()=>i.abort()})}doRequest(e,n,i){return Oe(this,null,function*(){let o=this.createRequestInit(e),s;try{let D=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,h({signal:n},o)));oa(D),i.next({type:re.Sent}),s=yield D}catch(D){i.error(new te({error:D,status:D.status??0,statusText:D.statusText,url:e.urlWithParams,headers:D.headers}));return}let a=new H(s.headers),u=s.statusText,c=ao(s)??e.urlWithParams,d=s.status,p=null;if(e.reportProgress&&i.next(new St({headers:a,status:d,statusText:u,url:c})),s.body){let D=s.headers.get("content-length"),A=[],S=s.body.getReader(),w=0,L,q,T=typeof Zone<"u"&&Zone.current,se=!1;if(yield this.ngZone.runOutsideAngular(()=>Oe(this,null,function*(){for(;;){if(this.destroyed){yield S.cancel(),se=!0;break}let{done:ve,value:Pn}=yield S.read();if(ve)break;if(A.push(Pn),w+=Pn.length,e.reportProgress){q=e.responseType==="text"?(q??"")+(L??=new TextDecoder).decode(Pn,{stream:!0}):void 0;let Wr=()=>i.next({type:re.DownloadProgress,total:D?+D:void 0,loaded:w,partialText:q});T?T.run(Wr):Wr()}}})),se){i.complete();return}let On=this.concatChunks(A,w);try{let ve=s.headers.get(Et)??"";p=this.parseBody(e,On,ve)}catch(ve){i.error(new te({error:ve,headers:new H(s.headers),status:s.status,statusText:s.statusText,url:ao(s)??e.urlWithParams}));return}}d===0&&(d=p?fo:0),d>=200&&d<300?(i.next(new fe({body:p,headers:a,status:d,statusText:u,url:c})),i.complete()):i.error(new te({error:p,headers:a,status:d,statusText:u,url:c}))})}parseBody(e,n,i){switch(e.responseType){case"json":let o=new TextDecoder().decode(n).replace(ia,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(n);case"blob":return new Blob([n],{type:i});case"arraybuffer":return n.buffer}}createRequestInit(e){let n={},i=e.withCredentials?"include":void 0;if(e.headers.forEach((o,s)=>n[o]=s.join(",")),e.headers.has(en)||(n[en]=ho),!e.headers.has(Et)){let o=e.detectContentTypeHeader();o!==null&&(n[Et]=o)}return{body:e.serializeBody(),method:e.method,headers:n,credentials:i,keepalive:e.keepalive}}concatChunks(e,n){let i=new Uint8Array(n),o=0;for(let s of e)i.set(s,o),o+=s.length;return i}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:t.\u0275fac})}return t})(),pr=class{};function gr(){}function oa(t){t.then(gr,gr)}function mo(t,r){return r(t)}function sa(t,r){return(e,n)=>r.intercept(e,{handle:i=>t(i,n)})}function aa(t,r,e){return(n,i)=>V(e,()=>r(n,o=>t(o,i)))}var vo=new C(""),Dr=new C(""),yr=new C(""),wr=new C("",{providedIn:"root",factory:()=>!0});function ua(){let t=null;return(r,e)=>{t===null&&(t=(l(vo,{optional:!0})??[]).reduceRight(sa,mo));let n=l(Vn);if(l(wr)){let o=n.add();return t(r,e).pipe(ye(o))}else return t(r,e)}}var tn=(()=>{class t extends ze{backend;injector;chain=null;pendingTasks=l(Vn);contributeToStability=l(wr);constructor(e,n){super(),this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(Dr),...this.injector.get(yr,[])]));this.chain=n.reduceRight((i,o)=>aa(i,o,this.injector),mo)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe(ye(n))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(v(Ve),v(ce))};static \u0275prov=g({token:t,factory:t.\u0275fac})}return t})();var ca=/^\)\]\}',?\n/,la=RegExp(`^${vr}:`,"m");function da(t){return"responseURL"in t&&t.responseURL?t.responseURL:la.test(t.getAllResponseHeaders())?t.getResponseHeader(vr):null}var mr=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new y(-2800,!1);e.keepalive;let n=this.xhrFactory;return(n.\u0275loadImpl?P(n.\u0275loadImpl()):f(null)).pipe(x(()=>new at(o=>{let s=n.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((S,w)=>s.setRequestHeader(S,w.join(","))),e.headers.has(en)||s.setRequestHeader(en,ho),!e.headers.has(Et)){let S=e.detectContentTypeHeader();S!==null&&s.setRequestHeader(Et,S)}if(e.responseType){let S=e.responseType.toLowerCase();s.responseType=S!=="json"?S:"text"}let a=e.serializeBody(),u=null,c=()=>{if(u!==null)return u;let S=s.statusText||"OK",w=new H(s.getAllResponseHeaders()),L=da(s)||e.url;return u=new St({headers:w,status:s.status,statusText:S,url:L}),u},d=()=>{let{headers:S,status:w,statusText:L,url:q}=c(),T=null;w!==ra&&(T=typeof s.response>"u"?s.responseText:s.response),w===0&&(w=T?fo:0);let se=w>=200&&w<300;if(e.responseType==="json"&&typeof T=="string"){let On=T;T=T.replace(ca,"");try{T=T!==""?JSON.parse(T):null}catch(ve){T=On,se&&(se=!1,T={error:ve,text:T})}}se?(o.next(new fe({body:T,headers:S,status:w,statusText:L,url:q||void 0})),o.complete()):o.error(new te({error:T,headers:S,status:w,statusText:L,url:q||void 0}))},p=S=>{let{url:w}=c(),L=new te({error:S,status:s.status||0,statusText:s.statusText||"Unknown Error",url:w||void 0});o.error(L)},b=!1,D=S=>{b||(o.next(c()),b=!0);let w={type:re.DownloadProgress,loaded:S.loaded};S.lengthComputable&&(w.total=S.total),e.responseType==="text"&&s.responseText&&(w.partialText=s.responseText),o.next(w)},A=S=>{let w={type:re.UploadProgress,loaded:S.loaded};S.lengthComputable&&(w.total=S.total),o.next(w)};return s.addEventListener("load",d),s.addEventListener("error",p),s.addEventListener("timeout",p),s.addEventListener("abort",p),e.reportProgress&&(s.addEventListener("progress",D),a!==null&&s.upload&&s.upload.addEventListener("progress",A)),s.send(a),o.next({type:re.Sent}),()=>{s.removeEventListener("error",p),s.removeEventListener("abort",p),s.removeEventListener("load",d),s.removeEventListener("timeout",p),e.reportProgress&&(s.removeEventListener("progress",D),a!==null&&s.upload&&s.upload.removeEventListener("progress",A)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(n){return new(n||t)(v(Te))};static \u0275prov=g({token:t,factory:t.\u0275fac})}return t})(),Do=new C(""),ha="XSRF-TOKEN",fa=new C("",{providedIn:"root",factory:()=>ha}),pa="X-XSRF-TOKEN",ga=new C("",{providedIn:"root",factory:()=>pa}),Rt=class{},ma=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,n){this.doc=e,this.cookieName=n}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=vt(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(v(_),v(fa))};static \u0275prov=g({token:t,factory:t.\u0275fac})}return t})();function va(t,r){let e=t.url.toLowerCase();if(!l(Do)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return r(t);let n=l(Rt).getToken(),i=l(ga);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),r(t)}var nn=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(nn||{});function yo(t,r){return{\u0275kind:t,\u0275providers:r}}function Da(...t){let r=[po,mr,tn,{provide:ze,useExisting:tn},{provide:Ve,useFactory:()=>l(go,{optional:!0})??l(mr)},{provide:Dr,useValue:va,multi:!0},{provide:Do,useValue:!0},{provide:Rt,useClass:ma}];for(let e of t)r.push(...e.\u0275providers);return Le(r)}var uo=new C("");function ya(){return yo(nn.LegacyInterceptors,[{provide:uo,useFactory:ua},{provide:Dr,useExisting:uo,multi:!0}])}function wa(){return yo(nn.Fetch,[Xt,{provide:go,useExisting:Xt},{provide:Ve,useExisting:Xt}])}var Ca=new C(""),Ea="b",Sa="h",Ra="s",ba="st",Aa="u",Ta="rt",Cr=new C(""),_a=["GET","HEAD"];function Ia(t,r){let b=l(Cr),{isCacheActive:e}=b,n=Yr(b,["isCacheActive"]),{transferCache:i,method:o}=t;if(!e||i===!1||o==="POST"&&!n.includePostRequests&&!i||o!=="POST"&&!_a.includes(o)||!n.includeRequestsWithAuthHeaders&&Ma(t)||n.filter?.(t)===!1)return r(t);let s=l(ui);if(l(Ca,{optional:!0}))throw new y(2803,!1);let u=t.url,c=Fa(t,u),d=s.get(c,null),p=n.includeHeaders;if(typeof i=="object"&&i.includeHeaders&&(p=i.includeHeaders),d){let{[Ea]:D,[Ta]:A,[Sa]:S,[Ra]:w,[ba]:L,[Aa]:q}=d,T=D;switch(A){case"arraybuffer":T=new TextEncoder().encode(D).buffer;break;case"blob":T=new Blob([D]);break}let se=new H(S);return f(new fe({body:T,headers:se,status:w,statusText:L,url:q}))}return r(t).pipe(I(D=>{D instanceof fe}))}function Ma(t){return t.headers.has("authorization")||t.headers.has("proxy-authorization")}function wo(t){return[...t.keys()].sort().map(r=>`${r}=${t.getAll(r)}`).join("&")}function Fa(t,r){let{params:e,method:n,responseType:i}=t,o=wo(e),s=t.serializeBody();s instanceof URLSearchParams?s=wo(s):typeof s!="string"&&(s="");let a=[n,i,r,s,o].join("|"),u=Oa(a);return u}function Oa(t){let r=0;for(let e of t)r=Math.imul(31,r)+e.charCodeAt(0)<<0;return r+=2147483648,r.toString()}function Co(t){return[{provide:Cr,useFactory:()=>(Vt("NgHttpTransferCache"),h({isCacheActive:!0},t))},{provide:yr,useValue:Ia,multi:!0},{provide:Gt,multi:!0,useFactory:()=>{let r=l(ft),e=l(Cr);return()=>{r.whenStable().then(()=>{e.isCacheActive=!1})}}}]}var Eo=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(v(_))};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Na=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=v(La),i},providedIn:"root"})}return t})(),La=(()=>{class t extends Na{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Ce.NONE:return n;case Ce.HTML:return Ue(n,"HTML")?we(n):gi(this._doc,String(n)).toString();case Ce.STYLE:return Ue(n,"Style")?we(n):n;case Ce.SCRIPT:if(Ue(n,"Script"))return we(n);throw new y(5200,!1);case Ce.URL:return Ue(n,"URL")?we(n):pi(String(n));case Ce.RESOURCE_URL:if(Ue(n,"ResourceURL"))return we(n);throw new y(5201,!1);default:throw new y(5202,!1)}}bypassSecurityTrustHtml(e){return ci(e)}bypassSecurityTrustStyle(e){return li(e)}bypassSecurityTrustScript(e){return di(e)}bypassSecurityTrustUrl(e){return hi(e)}bypassSecurityTrustResourceUrl(e){return fi(e)}static \u0275fac=function(n){return new(n||t)(v(_))};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rn=function(t){return t[t.NoHttpTransferCache=0]="NoHttpTransferCache",t[t.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",t[t.I18nSupport=2]="I18nSupport",t[t.EventReplay=3]="EventReplay",t[t.IncrementalHydration=4]="IncrementalHydration",t}(rn||{});function ka(t,r=[],e={}){return{\u0275kind:t,\u0275providers:r}}function xh(){return ka(rn.EventReplay,ki())}function Uh(...t){let r=[],e=new Set;for(let{\u0275providers:i,\u0275kind:o}of t)e.add(o),i.length&&r.push(i);let n=e.has(rn.HttpTransferCacheOptions);return Le([[],xi(),e.has(rn.NoHttpTransferCache)||n?[]:Co({}),r])}var m="primary",xt=Symbol("RouteTitle"),Ar=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Me(t){return new Ar(t)}function Mo(t,r,e){let n=e.path.split("/");if(n.length>t.length||e.pathMatch==="full"&&(r.hasChildren()||n.length<t.length))return null;let i={};for(let o=0;o<n.length;o++){let s=n[o],a=t[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,n.length),posParams:i}}function Ua(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!Y(t[e],r[e]))return!1;return!0}function Y(t,r){let e=t?Tr(t):void 0,n=r?Tr(r):void 0;if(!e||!n||e.length!=n.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Fo(t[i],r[i]))return!1;return!0}function Tr(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Fo(t,r){if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;let e=[...t].sort(),n=[...r].sort();return e.every((i,o)=>n[o]===i)}else return t===r}function Oo(t){return t.length>0?t[t.length-1]:null}function oe(t){return Xr(t)?t:Ht(t)?P(Promise.resolve(t)):f(t)}var Ba={exact:No,subset:Lo},Po={exact:ja,subset:$a,ignored:()=>!0};function So(t,r,e){return Ba[e.paths](t.root,r.root,e.matrixParams)&&Po[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment==="exact"&&t.fragment!==r.fragment)}function ja(t,r){return Y(t,r)}function No(t,r,e){if(!_e(t.segments,r.segments)||!an(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!No(t.children[n],r.children[n],e))return!1;return!0}function $a(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>Fo(t[e],r[e]))}function Lo(t,r,e){return ko(t,r,r.segments,e)}function ko(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!_e(i,e)||r.hasChildren()||!an(i,e,n))}else if(t.segments.length===e.length){if(!_e(t.segments,e)||!an(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!Lo(t.children[i],r.children[i],n))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!_e(t.segments,i)||!an(t.segments,i,n)||!t.children[m]?!1:ko(t.children[m],r,o,n)}}function an(t,r,e){return r.every((n,i)=>Po[e](t[i].parameters,n.parameters))}var K=class{root;queryParams;fragment;_queryParamMap;constructor(r=new R([],{}),e={},n=null){this.root=r,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Me(this.queryParams),this._queryParamMap}toString(){return Ha.serialize(this)}},R=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return un(this)}},pe=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=Me(this.parameters),this._parameterMap}toString(){return Uo(this)}};function za(t,r){return _e(t,r)&&t.every((e,n)=>Y(e.parameters,r[n].parameters))}function _e(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function Va(t,r){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===m&&(e=e.concat(r(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==m&&(e=e.concat(r(i,n)))}),e}var nt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:()=>new Fe,providedIn:"root"})}return t})(),Fe=class{parse(r){let e=new Ir(r);return new K(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${bt(r.root,!0)}`,n=Wa(r.queryParams),i=typeof r.fragment=="string"?`#${Ga(r.fragment)}`:"";return`${e}${n}${i}`}},Ha=new Fe;function un(t){return t.segments.map(r=>Uo(r)).join("/")}function bt(t,r){if(!t.hasChildren())return un(t);if(r){let e=t.children[m]?bt(t.children[m],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==m&&n.push(`${i}:${bt(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=Va(t,(n,i)=>i===m?[bt(t.children[m],!1)]:[`${i}:${bt(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[m]!=null?`${un(t)}/${e[0]}`:`${un(t)}/(${e.join("//")})`}}function xo(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function on(t){return xo(t).replace(/%3B/gi,";")}function Ga(t){return encodeURI(t)}function _r(t){return xo(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function cn(t){return decodeURIComponent(t)}function Ro(t){return cn(t.replace(/\+/g,"%20"))}function Uo(t){return`${_r(t.path)}${qa(t.parameters)}`}function qa(t){return Object.entries(t).map(([r,e])=>`;${_r(r)}=${_r(e)}`).join("")}function Wa(t){let r=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(i=>`${on(e)}=${on(i)}`).join("&"):`${on(e)}=${on(n)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var Ya=/^[^\/()?;#]+/;function Er(t){let r=t.match(Ya);return r?r[0]:""}var Za=/^[^\/()?;=#]+/;function Ka(t){let r=t.match(Za);return r?r[0]:""}var Xa=/^[^=?&#]+/;function Ja(t){let r=t.match(Xa);return r?r[0]:""}var Qa=/^[^&#]+/;function eu(t){let r=t.match(Qa);return r?r[0]:""}var Ir=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new R([],{}):new R([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(n[m]=new R(r,e)),n}parseSegment(){let r=Er(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new y(4009,!1);return this.capture(r),new pe(cn(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=Ka(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let i=Er(this.remaining);i&&(n=i,this.capture(n))}r[cn(e)]=cn(n)}parseQueryParam(r){let e=Ja(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let s=eu(this.remaining);s&&(n=s,this.capture(n))}let i=Ro(e),o=Ro(n);if(r.hasOwnProperty(i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Er(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new y(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):r&&(o=m);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[m]:new R([],s),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new y(4011,!1)}};function Bo(t){return t.segments.length>0?new R([],{[m]:t}):t}function jo(t){let r={};for(let[n,i]of Object.entries(t.children)){let o=jo(i);if(n===m&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))r[s]=a;else(o.segments.length>0||o.hasChildren())&&(r[n]=o)}let e=new R(t.segments,r);return tu(e)}function tu(t){if(t.numberOfChildren===1&&t.children[m]){let r=t.children[m];return new R(t.segments.concat(r.segments),r.children)}return t}function ge(t){return t instanceof K}function $o(t,r,e=null,n=null){let i=zo(t);return Vo(i,r,e,n)}function zo(t){let r;function e(o){let s={};for(let u of o.children){let c=e(u);s[u.outlet]=c}let a=new R(o.url,s);return o===t&&(r=a),a}let n=e(t.root),i=Bo(n);return r??i}function Vo(t,r,e,n){let i=t;for(;i.parent;)i=i.parent;if(r.length===0)return Sr(i,i,i,e,n);let o=nu(r);if(o.toRoot())return Sr(i,i,new R([],{}),e,n);let s=ru(o,i,t),a=s.processChildren?Tt(s.segmentGroup,s.index,o.commands):Go(s.segmentGroup,s.index,o.commands);return Sr(i,s.segmentGroup,a,e,n)}function ln(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function It(t){return typeof t=="object"&&t!=null&&t.outlets}function Sr(t,r,e,n,i){let o={};n&&Object.entries(n).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let s;t===r?s=e:s=Ho(t,r,e);let a=Bo(jo(s));return new K(a,o,i)}function Ho(t,r,e){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===r?n[i]=e:n[i]=Ho(o,r,e)}),new R(t.segments,n)}var dn=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&ln(n[0]))throw new y(4003,!1);let i=n.find(It);if(i&&i!==Oo(n))throw new y(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function nu(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new dn(!0,0,t);let r=0,e=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?e=!0:a===".."?r++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new dn(e,r,n)}var We=class{segmentGroup;processChildren;index;constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};function ru(t,r,e){if(t.isAbsolute)return new We(r,!0,0);if(!e)return new We(r,!1,NaN);if(e.parent===null)return new We(e,!0,0);let n=ln(t.commands[0])?0:1,i=e.segments.length-1+n;return iu(e,i,t.numberOfDoubleDots)}function iu(t,r,e){let n=t,i=r,o=e;for(;o>i;){if(o-=i,n=n.parent,!n)throw new y(4005,!1);i=n.segments.length}return new We(n,!1,i-o)}function ou(t){return It(t[0])?t[0].outlets:{[m]:t}}function Go(t,r,e){if(t??=new R([],{}),t.segments.length===0&&t.hasChildren())return Tt(t,r,e);let n=su(t,r,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new R(t.segments.slice(0,n.pathIndex),{});return o.children[m]=new R(t.segments.slice(n.pathIndex),t.children),Tt(o,0,i)}else return n.match&&i.length===0?new R(t.segments,{}):n.match&&!t.hasChildren()?Mr(t,r,e):n.match?Tt(t,0,i):Mr(t,r,e)}function Tt(t,r,e){if(e.length===0)return new R(t.segments,{});{let n=ou(e),i={};if(Object.keys(n).some(o=>o!==m)&&t.children[m]&&t.numberOfChildren===1&&t.children[m].segments.length===0){let o=Tt(t.children[m],r,e);return new R(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Go(t.children[o],r,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new R(t.segments,i)}}function su(t,r,e){let n=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(n>=e.length)return o;let s=t.segments[i],a=e[n];if(It(a))break;let u=`${a}`,c=n<e.length-1?e[n+1]:null;if(i>0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Ao(u,c,s))return o;n+=2}else{if(!Ao(u,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function Mr(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i<e.length;){let o=e[i];if(It(o)){let u=au(o.outlets);return new R(n,u)}if(i===0&&ln(e[0])){let u=t.segments[r];n.push(new pe(u.path,bo(e[0]))),i++;continue}let s=It(o)?o.outlets[m]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&ln(a)?(n.push(new pe(s,bo(a))),i+=2):(n.push(new pe(s,{})),i++)}return new R(n,{})}function au(t){let r={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[e]=Mr(new R([],{}),0,n))}),r}function bo(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function Ao(t,r,e){return t==e.path&&Y(r,e.parameters)}var Ye="imperative",M=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(M||{}),B=class{id;url;constructor(r,e){this.id=r,this.url=e}},me=class extends B{type=M.NavigationStart;navigationTrigger;restoredState;constructor(r,e,n="imperative",i=null){super(r,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},$=class extends B{urlAfterRedirects;type=M.NavigationEnd;constructor(r,e,n){super(r,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},N=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t}(N||{}),Ke=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Ke||{}),Z=class extends B{reason;code;type=M.NavigationCancel;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},X=class extends B{reason;code;type=M.NavigationSkipped;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}},Xe=class extends B{error;target;type=M.NavigationError;constructor(r,e,n,i){super(r,e),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Mt=class extends B{urlAfterRedirects;state;type=M.RoutesRecognized;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},hn=class extends B{urlAfterRedirects;state;type=M.GuardsCheckStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},fn=class extends B{urlAfterRedirects;state;shouldActivate;type=M.GuardsCheckEnd;constructor(r,e,n,i,o){super(r,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},pn=class extends B{urlAfterRedirects;state;type=M.ResolveStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},gn=class extends B{urlAfterRedirects;state;type=M.ResolveEnd;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mn=class{route;type=M.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},vn=class{route;type=M.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Dn=class{snapshot;type=M.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yn=class{snapshot;type=M.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},wn=class{snapshot;type=M.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Cn=class{snapshot;type=M.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Je=class{routerEvent;position;anchor;type=M.Scroll;constructor(r,e,n){this.routerEvent=r,this.position=e,this.anchor=n}toString(){let r=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${r}')`}},Ft=class{},Qe=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function uu(t){return!(t instanceof Ft)&&!(t instanceof Qe)}function cu(t,r){return t.providers&&!t._injector&&(t._injector=Zn(t.providers,r,`Route: ${t.path}`)),t._injector??r}function G(t){return t.outlet||m}function lu(t,r){let e=t.filter(n=>G(n)===r);return e.push(...t.filter(n=>G(n)!==r)),e}function Ut(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let r=t.parent;r;r=r.parent){let e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var En=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Ut(this.route?.snapshot)??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new rt(this.rootInjector)}},rt=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let i=this.getOrCreateContext(e);i.outlet=n,this.contexts.set(e,i)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new En(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(v(ce))};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Sn=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=Fr(r,this._root);return e?e.children.map(n=>n.value):[]}firstChild(r){let e=Fr(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=Or(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return Or(r,this._root).map(e=>e.value)}};function Fr(t,r){if(t===r.value)return r;for(let e of r.children){let n=Fr(t,e);if(n)return n}return null}function Or(t,r){if(t===r.value)return[r];for(let e of r.children){let n=Or(t,e);if(n.length)return n.unshift(r),n}return[]}var U=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function qe(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}var Ot=class extends Sn{snapshot;constructor(r,e){super(r),this.snapshot=e,jr(this,r)}toString(){return this.snapshot.toString()}};function qo(t){let r=du(t),e=new j([new pe("",{})]),n=new j({}),i=new j({}),o=new j({}),s=new j(""),a=new ie(e,n,o,s,i,m,t,r.root);return a.snapshot=r.root,new Ot(new U(a,[]),r)}function du(t){let r={},e={},n={},i="",o=new Ie([],r,n,i,e,m,t,null,{});return new Pt("",new U(o,[]))}var ie=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,n,i,o,s,a,u){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(E(c=>c[xt]))??f(void 0),this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(E(r=>Me(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(E(r=>Me(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Rn(t,r,e="emptyOnly"){let n,{routeConfig:i}=t;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:h(h({},r.params),t.params),data:h(h({},r.data),t.data),resolve:h(h(h(h({},t.data),r.data),i?.data),t._resolvedData)}:n={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),t._resolvedData??{})},i&&Yo(i)&&(n.resolve[xt]=i.title),n}var Ie=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[xt]}constructor(r,e,n,i,o,s,a,u,c){this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}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??=Me(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Me(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},Pt=class extends Sn{url;constructor(r,e){super(e),this.url=r,jr(this,e)}toString(){return Wo(this._root)}};function jr(t,r){r.value._routerState=t,r.children.forEach(e=>jr(t,e))}function Wo(t){let r=t.children.length>0?` { ${t.children.map(Wo).join(", ")} } `:"";return`${t.value}${r}`}function Rr(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Y(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),Y(r.params,e.params)||t.paramsSubject.next(e.params),Ua(r.url,e.url)||t.urlSubject.next(e.url),Y(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Pr(t,r){let e=Y(t.params,r.params)&&za(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||Pr(t.parent,r.parent))}function Yo(t){return typeof t.title=="string"||t.title===null}var Zo=new C(""),$r=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=m;activateEvents=new Ee;deactivateEvents=new Ee;attachEvents=new Ee;detachEvents=new Ee;routerOutletData=Pi(void 0);parentContexts=l(rt);location=l(ht);changeDetector=l(Se);inputBinder=l(_n,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:i}=e.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new y(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new y(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new y(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new y(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new Nr(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:u,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=de({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[le]})}return t})(),Nr=class{route;childContexts;parent;outletData;constructor(r,e,n,i){this.route=r,this.childContexts=e,this.parent=n,this.outletData=i}get(r,e){return r===ie?this.route:r===rt?this.childContexts:r===Zo?this.outletData:this.parent.get(r,e)}},_n=new C("");var zr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Ei({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&Ai(0,"router-outlet")},dependencies:[$r],encapsulation:2})}return t})();function Vr(t){let r=t.children&&t.children.map(Vr),e=r?F(h({},t),{children:r}):h({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==m&&(e.component=zr),e}function hu(t,r,e){let n=Nt(t,r._root,e?e._root:void 0);return new Ot(n,r)}function Nt(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=r.value;let i=fu(t,r,e);return new U(n,i)}else{if(t.shouldAttach(r.value)){let o=t.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(a=>Nt(t,a)),s}}let n=pu(r.value),i=r.children.map(o=>Nt(t,o));return new U(n,i)}}function fu(t,r,e){return r.children.map(n=>{for(let i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Nt(t,n,i);return Nt(t,n)})}function pu(t){return new ie(new j(t.url),new j(t.params),new j(t.queryParams),new j(t.fragment),new j(t.data),t.outlet,t.component,t)}var et=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},Ko="ngNavigationCancelingError";function bn(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=ge(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=Xo(!1,N.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function Xo(t,r){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[Ko]=!0,e.cancellationCode=r,e}function gu(t){return Jo(t)&&ge(t.url)}function Jo(t){return!!t&&t[Ko]}var mu=(t,r,e,n)=>E(i=>(new Lr(r,i.targetRouterState,i.currentRouterState,e,n).activate(t),i)),Lr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,n,i,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,r),Rr(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=qe(e);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(r,e,s.children)}else this.deactivateChildRoutes(r,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=qe(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:a})}}deactivateRouteAndOutlet(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=qe(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,e,n){let i=qe(e);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Cn(o.value.snapshot))}),r.children.length&&this.forwardEvent(new yn(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(Rr(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,s.children)}else this.activateChildRoutes(r,e,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Rr(a.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,n)}},An=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},Ze=class{component;route;constructor(r,e){this.component=r,this.route=e}};function vu(t,r,e){let n=t._root,i=r?r._root:null;return At(n,i,e,[n.value])}function Du(t){let r=t.routeConfig?t.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:t,guards:r}}function it(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t=="function"&&!ri(t)?t:r.get(t):n}function At(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=qe(r);return t.children.forEach(s=>{yu(s,o[s.value.outlet],e,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>_t(a,e.getContext(s),i)),i}function yu(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=r?r.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=wu(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new An(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?At(t,r,a?a.children:null,n,i):At(t,r,e,n,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Ze(a.outlet.component,s))}else s&&_t(r,a,i),i.canActivateChecks.push(new An(n)),o.component?At(t,null,a?a.children:null,n,i):At(t,null,e,n,i);return i}function wu(t,r,e){if(typeof e=="function")return e(t,r);switch(e){case"pathParamsChange":return!_e(t.url,r.url);case"pathParamsOrQueryParamsChange":return!_e(t.url,r.url)||!Y(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Pr(t,r)||!Y(t.queryParams,r.queryParams);case"paramsChange":default:return!Pr(t,r)}}function _t(t,r,e){let n=qe(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?r?_t(s,r.children.getContext(o),e):_t(s,null,e):_t(s,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new Ze(r.outlet.component,i)):e.canDeactivateChecks.push(new Ze(null,i)):e.canDeactivateChecks.push(new Ze(null,i))}function Bt(t){return typeof t=="function"}function Cu(t){return typeof t=="boolean"}function Eu(t){return t&&Bt(t.canLoad)}function Su(t){return t&&Bt(t.canActivate)}function Ru(t){return t&&Bt(t.canActivateChild)}function bu(t){return t&&Bt(t.canDeactivate)}function Au(t){return t&&Bt(t.canMatch)}function Qo(t){return t instanceof Jr||t?.name==="EmptyError"}var sn=Symbol("INITIAL_VALUE");function tt(){return x(t=>kn(t.map(r=>r.pipe(Pe(1),ni(sn)))).pipe(E(r=>{for(let e of r)if(e!==!0){if(e===sn)return sn;if(e===!1||Tu(e))return e}return!0}),W(r=>r!==sn),Pe(1)))}function Tu(t){return ge(t)||t instanceof et}function _u(t,r){return k(e=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?f(F(h({},e),{guardsResult:!0})):Iu(s,n,i,t).pipe(k(a=>a&&Cu(a)?Mu(n,o,t,r):f(a)),E(a=>F(h({},e),{guardsResult:a})))})}function Iu(t,r,e,n){return P(t).pipe(k(i=>Lu(i.component,i.route,e,r,n)),ue(i=>i!==!0,!0))}function Mu(t,r,e,n){return P(r).pipe(ae(i=>Qr(Ou(i.route.parent,n),Fu(i.route,n),Nu(t,i.path,e),Pu(t,i.route,e))),ue(i=>i!==!0,!0))}function Fu(t,r){return t!==null&&r&&r(new wn(t)),f(!0)}function Ou(t,r){return t!==null&&r&&r(new Dn(t)),f(!0)}function Pu(t,r,e){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return f(!0);let i=n.map(o=>$t(()=>{let s=Ut(r)??e,a=it(o,s),u=Su(a)?a.canActivate(r,t):V(s,()=>a(r,t));return oe(u).pipe(ue())}));return f(i).pipe(tt())}function Nu(t,r,e){let n=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(s=>Du(s)).filter(s=>s!==null).map(s=>$t(()=>{let a=s.guards.map(u=>{let c=Ut(s.node)??e,d=it(u,c),p=Ru(d)?d.canActivateChild(n,t):V(c,()=>d(n,t));return oe(p).pipe(ue())});return f(a).pipe(tt())}));return f(o).pipe(tt())}function Lu(t,r,e,n,i){let o=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!o||o.length===0)return f(!0);let s=o.map(a=>{let u=Ut(r)??i,c=it(a,u),d=bu(c)?c.canDeactivate(t,r,e,n):V(u,()=>c(t,r,e,n));return oe(d).pipe(ue())});return f(s).pipe(tt())}function ku(t,r,e,n){let i=r.canLoad;if(i===void 0||i.length===0)return f(!0);let o=i.map(s=>{let a=it(s,t),u=Eu(a)?a.canLoad(r,e):V(t,()=>a(r,e));return oe(u)});return f(o).pipe(tt(),es(n))}function es(t){return Kr(I(r=>{if(typeof r!="boolean")throw bn(t,r)}),E(r=>r===!0))}function xu(t,r,e,n){let i=r.canMatch;if(!i||i.length===0)return f(!0);let o=i.map(s=>{let a=it(s,t),u=Au(a)?a.canMatch(r,e):V(t,()=>a(r,e));return oe(u)});return f(o).pipe(tt(),es(n))}var Lt=class{segmentGroup;constructor(r){this.segmentGroup=r||null}},kt=class extends Error{urlTree;constructor(r){super(),this.urlTree=r}};function Ge(t){return ut(new Lt(t))}function Uu(t){return ut(new y(4e3,!1))}function Bu(t){return ut(Xo(!1,N.GuardRejected))}var kr=class{urlSerializer;urlTree;constructor(r,e){this.urlSerializer=r,this.urlTree=e}lineralizeSegments(r,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return f(n);if(i.numberOfChildren>1||!i.children[m])return Uu(`${r.redirectTo}`);i=i.children[m]}}applyRedirectCommands(r,e,n,i,o){return ju(e,i,o).pipe(E(s=>{if(s instanceof K)throw new kt(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),r,n);if(s[0]==="/")throw new kt(a);return a}))}applyRedirectCreateUrlTree(r,e,n,i){let o=this.createSegmentGroup(r,e.root,n,i);return new K(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let n={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=e[a]}else n[i]=o}),n}createSegmentGroup(r,e,n,i){let o=this.createSegments(r,e.segments,n,i),s={};return Object.entries(e.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(r,u,n,i)}),new R(o,s)}createSegments(r,e,n,i){return e.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,n))}findPosParam(r,e,n){let i=n[e.path.substring(1)];if(!i)throw new y(4001,!1);return i}findOrReturn(r,e){let n=0;for(let i of e){if(i.path===r.path)return e.splice(n),i;n++}return r}};function ju(t,r,e){if(typeof t=="string")return f(t);let n=t,{queryParams:i,fragment:o,routeConfig:s,url:a,outlet:u,params:c,data:d,title:p}=r;return oe(V(e,()=>n({params:c,data:d,queryParams:i,fragment:o,routeConfig:s,url:a,outlet:u,title:p})))}var xr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function $u(t,r,e,n,i){let o=ts(t,r,e);return o.matched?(n=cu(r,n),xu(n,r,e,i).pipe(E(s=>s===!0?o:h({},xr)))):f(o)}function ts(t,r,e){if(r.path==="**")return zu(e);if(r.path==="")return r.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},xr):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||Mo)(e,t,r);if(!i)return h({},xr);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?h(h({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function zu(t){return{matched:!0,parameters:t.length>0?Oo(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function To(t,r,e,n){return e.length>0&&Gu(t,e,n)?{segmentGroup:new R(r,Hu(n,new R(e,t.children))),slicedSegments:[]}:e.length===0&&qu(t,e,n)?{segmentGroup:new R(t.segments,Vu(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new R(t.segments,t.children),slicedSegments:e}}function Vu(t,r,e,n){let i={};for(let o of e)if(In(t,r,o)&&!n[G(o)]){let s=new R([],{});i[G(o)]=s}return h(h({},n),i)}function Hu(t,r){let e={};e[m]=r;for(let n of t)if(n.path===""&&G(n)!==m){let i=new R([],{});e[G(n)]=i}return e}function Gu(t,r,e){return e.some(n=>In(t,r,n)&&G(n)!==m)}function qu(t,r,e){return e.some(n=>In(t,r,n))}function In(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Wu(t,r,e){return r.length===0&&!t.children[e]}var Ur=class{};function Yu(t,r,e,n,i,o,s="emptyOnly"){return new Br(t,r,e,n,i,s,o).recognize()}var Zu=31,Br=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,n,i,o,s,a){this.injector=r,this.configLoader=e,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new kr(this.urlSerializer,this.urlTree)}noMatchError(r){return new y(4002,`'${r.segmentGroup}'`)}recognize(){let r=To(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(E(({children:e,rootSnapshot:n})=>{let i=new U(n,e),o=new Pt("",i),s=$o(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(r){let e=new Ie([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),m,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,m,e).pipe(E(n=>({children:n,rootSnapshot:e})),De(n=>{if(n instanceof kt)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Lt?this.noMatchError(n):n}))}processSegmentGroup(r,e,n,i,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(r,e,n,o):this.processSegment(r,e,n,n.segments,i,!0,o).pipe(E(s=>s instanceof U?[s]:[]))}processChildren(r,e,n,i){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return P(o).pipe(ae(s=>{let a=n.children[s],u=lu(e,s);return this.processSegmentGroup(r,u,a,s,i)}),ti((s,a)=>(s.push(...a),s)),Un(null),ei(),k(s=>{if(s===null)return Ge(n);let a=ns(s);return Ku(a),f(a)}))}processSegment(r,e,n,i,o,s,a){return P(e).pipe(ae(u=>this.processSegmentAgainstRoute(u._injector??r,e,u,n,i,o,s,a).pipe(De(c=>{if(c instanceof Lt)return f(null);throw c}))),ue(u=>!!u),De(u=>{if(Qo(u))return Wu(n,i,o)?f(new Ur):Ge(n);throw u}))}processSegmentAgainstRoute(r,e,n,i,o,s,a,u){return G(n)!==s&&(s===m||!In(i,o,n))?Ge(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,n,o,s,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(r,i,e,n,o,s,u):Ge(i)}expandSegmentAgainstRouteUsingRedirect(r,e,n,i,o,s,a){let{matched:u,parameters:c,consumedSegments:d,positionalParamSegments:p,remainingSegments:b}=ts(e,i,o);if(!u)return Ge(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Zu&&(this.allowRedirects=!1));let D=new Ie(o,c,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,_o(i),G(i),i.component??i._loadedComponent??null,i,Io(i)),A=Rn(D,a,this.paramsInheritanceStrategy);return D.params=Object.freeze(A.params),D.data=Object.freeze(A.data),this.applyRedirects.applyRedirectCommands(d,i.redirectTo,p,D,r).pipe(x(w=>this.applyRedirects.lineralizeSegments(i,w)),k(w=>this.processSegment(r,n,e,w.concat(b),s,!1,a)))}matchSegmentAgainstRoute(r,e,n,i,o,s){let a=$u(e,n,i,r,this.urlSerializer);return n.path==="**"&&(e.children={}),a.pipe(x(u=>u.matched?(r=n._injector??r,this.getChildConfig(r,n,i).pipe(x(({routes:c})=>{let d=n._loadedInjector??r,{parameters:p,consumedSegments:b,remainingSegments:D}=u,A=new Ie(b,p,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,_o(n),G(n),n.component??n._loadedComponent??null,n,Io(n)),S=Rn(A,s,this.paramsInheritanceStrategy);A.params=Object.freeze(S.params),A.data=Object.freeze(S.data);let{segmentGroup:w,slicedSegments:L}=To(e,b,D,c);if(L.length===0&&w.hasChildren())return this.processChildren(d,c,w,A).pipe(E(T=>new U(A,T)));if(c.length===0&&L.length===0)return f(new U(A,[]));let q=G(n)===o;return this.processSegment(d,c,w,L,q?m:o,!0,A).pipe(E(T=>new U(A,T instanceof U?[T]:[])))}))):Ge(e)))}getChildConfig(r,e,n){return e.children?f({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?f({routes:e._loadedRoutes,injector:e._loadedInjector}):ku(r,e,n,this.urlSerializer).pipe(k(i=>i?this.configLoader.loadChildren(r,e).pipe(I(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):Bu(e))):f({routes:[],injector:r})}};function Ku(t){t.sort((r,e)=>r.value.outlet===m?-1:e.value.outlet===m?1:r.value.outlet.localeCompare(e.value.outlet))}function Xu(t){let r=t.value.routeConfig;return r&&r.path===""}function ns(t){let r=[],e=new Set;for(let n of t){if(!Xu(n)){r.push(n);continue}let i=r.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),e.add(i)):r.push(n)}for(let n of e){let i=ns(n.children);r.push(new U(n.value,i))}return r.filter(n=>!e.has(n))}function _o(t){return t.data||{}}function Io(t){return t.resolve||{}}function Ju(t,r,e,n,i,o){return k(s=>Yu(t,r,e,n,s.extractedUrl,i,o).pipe(E(({state:a,tree:u})=>F(h({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function Qu(t,r){return k(e=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=e;if(!i.length)return f(e);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let c of rs(u))s.add(c);let a=0;return P(s).pipe(ae(u=>o.has(u)?ec(u,n,t,r):(u.data=Rn(u,u.parent,t).resolve,f(void 0))),I(()=>a++),Bn(1),k(u=>a===s.size?f(e):J))})}function rs(t){let r=t.children.map(e=>rs(e)).flat();return[t,...r]}function ec(t,r,e,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!Yo(i)&&(o[xt]=i.title),$t(()=>(t.data=Rn(t,t.parent,e).resolve,tc(o,t,r,n).pipe(E(s=>(t._resolvedData=s,t.data=h(h({},t.data),s),null)))))}function tc(t,r,e,n){let i=Tr(t);if(i.length===0)return f({});let o={};return P(i).pipe(k(s=>nc(t[s],r,e,n).pipe(ue(),I(a=>{if(a instanceof et)throw bn(new Fe,a);o[s]=a}))),Bn(1),E(()=>o),De(s=>Qo(s)?J:ut(s)))}function nc(t,r,e,n){let i=Ut(r)??n,o=it(t,i),s=o.resolve?o.resolve(r,e):V(i,()=>o(r,e));return oe(s)}function br(t){return x(r=>{let e=t(r);return e?P(e).pipe(E(()=>r)):f(r)})}var Hr=(()=>{class t{buildTitle(e){let n,i=e.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(o=>o.outlet===m);return n}getResolvedTitleForRoute(e){return e.data[xt]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:()=>l(is),providedIn:"root"})}return t})(),is=(()=>{class t extends Hr{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(v(Eo))};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ot=new C("",{providedIn:"root",factory:()=>({})}),jt=new C(""),os=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=l(Fi);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return f(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let n=oe(e.loadComponent()).pipe(E(as),I(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),ye(()=>{this.componentLoaders.delete(e)})),i=new Ln(n,()=>new z).pipe(Nn());return this.componentLoaders.set(e,i),i}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return f({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=ss(n,this.compiler,e,this.onLoadEndListener).pipe(ye(()=>{this.childrenLoaders.delete(n)})),s=new Ln(o,()=>new z).pipe(Nn());return this.childrenLoaders.set(n,s),s}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ss(t,r,e,n){return oe(t.loadChildren()).pipe(E(as),k(i=>i instanceof wi||Array.isArray(i)?f(i):P(r.compileModuleAsync(i))),E(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(e).injector,s=o.get(jt,[],{optional:!0,self:!0}).flat()),{routes:s.map(Vr),injector:o}}))}function rc(t){return t&&typeof t=="object"&&"default"in t}function as(t){return rc(t)?t.default:t}var Mn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:()=>l(ic),providedIn:"root"})}return t})(),ic=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),us=new C("");var cs=new C(""),Gr=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new z;transitionAbortWithErrorSubject=new z;configLoader=l(os);environmentInjector=l(ce);destroyRef=l(zt);urlSerializer=l(nt);rootContexts=l(rt);location=l(Ae);inputBindingEnabled=l(_n,{optional:!0})!==null;titleStrategy=l(Hr);options=l(ot,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=l(Mn);createViewTransition=l(us,{optional:!0});navigationErrorHandler=l(cs,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>f(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new mn(i)),n=i=>this.events.next(new vn(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;this.transitions?.next(F(h({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:n}))}setupNavigations(e){return this.transitions=new j(null),this.transitions.pipe(W(n=>n!==null),x(n=>{let i=!1;return f(n).pipe(x(o=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",N.SupersededByNewNavigation),J;this.currentTransition=n,this.currentNavigation={id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?F(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()};let s=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),a=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!s&&a!=="reload"){let u="";return this.events.next(new X(o.id,this.urlSerializer.serialize(o.rawUrl),u,Ke.IgnoredSameUrlNavigation)),o.resolve(!1),J}if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return f(o).pipe(x(u=>(this.events.next(new me(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),u.id!==this.navigationId?J:Promise.resolve(u))),Ju(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),I(u=>{n.targetSnapshot=u.targetSnapshot,n.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation=F(h({},this.currentNavigation),{finalUrl:u.urlAfterRedirects});let c=new Mt(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:u,extractedUrl:c,source:d,restoredState:p,extras:b}=o,D=new me(u,this.urlSerializer.serialize(c),d,p);this.events.next(D);let A=qo(this.rootComponentType).snapshot;return this.currentTransition=n=F(h({},o),{targetSnapshot:A,urlAfterRedirects:c,extras:F(h({},b),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=c,f(n)}else{let u="";return this.events.next(new X(o.id,this.urlSerializer.serialize(o.extractedUrl),u,Ke.IgnoredByUrlHandlingStrategy)),o.resolve(!1),J}}),I(o=>{let s=new hn(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(s)}),E(o=>(this.currentTransition=n=F(h({},o),{guards:vu(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),n)),_u(this.environmentInjector,o=>this.events.next(o)),I(o=>{if(n.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw bn(this.urlSerializer,o.guardsResult);let s=new fn(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(s)}),W(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",N.GuardRejected),!1)),br(o=>{if(o.guards.canActivateChecks.length!==0)return f(o).pipe(I(s=>{let a=new pn(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),x(s=>{let a=!1;return f(s).pipe(Qu(this.paramsInheritanceStrategy,this.environmentInjector),I({next:()=>a=!0,complete:()=>{a||this.cancelNavigationTransition(s,"",N.NoDataFromResolver)}}))}),I(s=>{let a=new gn(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}))}),br(o=>{let s=a=>{let u=[];a.routeConfig?.loadComponent&&!a.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(a.routeConfig).pipe(I(c=>{a.component=c}),E(()=>{})));for(let c of a.children)u.push(...s(c));return u};return kn(s(o.targetSnapshot.root)).pipe(Un(null),Pe(1))}),br(()=>this.afterPreactivation()),x(()=>{let{currentSnapshot:o,targetSnapshot:s}=n,a=this.createViewTransition?.(this.environmentInjector,o.root,s.root);return a?P(a).pipe(E(()=>n)):f(n)}),E(o=>{let s=hu(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=n=F(h({},o),{targetRouterState:s}),this.currentNavigation.targetRouterState=s,n}),I(()=>{this.events.next(new Ft)}),mu(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),Pe(1),jn(new at(o=>{let s=n.abortController.signal,a=()=>o.next();return s.addEventListener("abort",a),()=>s.removeEventListener("abort",a)}).pipe(W(()=>!i&&!n.targetRouterState),I(()=>{this.cancelNavigationTransition(n,n.abortController.signal.reason+"",N.Aborted)}))),I({next:o=>{i=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new $(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{i=!0}}),jn(this.transitionAbortWithErrorSubject.pipe(I(o=>{throw o}))),ye(()=>{i||this.cancelNavigationTransition(n,"",N.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation=null,this.currentTransition=null)}),De(o=>{if(this.destroyed)return n.resolve(!1),J;if(i=!0,Jo(o))this.events.next(new Z(n.id,this.urlSerializer.serialize(n.extractedUrl),o.message,o.cancellationCode)),gu(o)?this.events.next(new Qe(o.url,o.navigationBehaviorOptions)):n.resolve(!1);else{let s=new Xe(n.id,this.urlSerializer.serialize(n.extractedUrl),o,n.targetSnapshot??void 0);try{let a=V(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(a instanceof et){let{message:u,cancellationCode:c}=bn(this.urlSerializer,a);this.events.next(new Z(n.id,this.urlSerializer.serialize(n.extractedUrl),u,c)),this.events.next(new Qe(a.redirectTo,a.navigationBehaviorOptions))}else throw this.events.next(s),o}catch(a){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(a)}}return J}))}))}cancelNavigationTransition(e,n,i){let o=new Z(e.id,this.urlSerializer.serialize(e.extractedUrl),n,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function oc(t){return t!==Ye}var ls=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:()=>l(sc),providedIn:"root"})}return t})(),Tn=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},sc=(()=>{class t extends Tn{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Hn(t)))(i||t)}})();static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ds=(()=>{class t{urlSerializer=l(nt);options=l(ot,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=l(Ae);urlHandlingStrategy=l(Mn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new K;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,s=i??o;return s instanceof K?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:i}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,i),this.routerState=e):this.rawUrlTree=i}routerState=qo(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:()=>l(ac),providedIn:"root"})}return t})(),ac=(()=>{class t extends ds{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate")})})}handleRouterEvent(e,n){e instanceof me?this.updateStateMemento():e instanceof X?this.commitTransition(n):e instanceof Mt?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Ft?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Z&&e.code!==N.SupersededByNewNavigation&&e.code!==N.Redirect?this.restoreHistory(n):e instanceof Xe?this.restoreHistory(n,!0):e instanceof $&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:n,id:i}){let{replaceUrl:o,state:s}=n;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,u=h(h({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",u)}else{let a=h(h({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Hn(t)))(i||t)}})();static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qr(t,r){t.events.pipe(W(e=>e instanceof $||e instanceof Z||e instanceof Xe||e instanceof X),E(e=>e instanceof $||e instanceof X?0:(e instanceof Z?e.code===N.Redirect||e.code===N.SupersededByNewNavigation:!1)?2:1),W(e=>e!==2),Pe(1)).subscribe(()=>{r()})}var uc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},cc={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},st=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=l(Xn);stateManager=l(ds);options=l(ot,{optional:!0})||{};pendingTasks=l(oi);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=l(Gr);urlSerializer=l(nt);location=l(Ae);urlHandlingStrategy=l(Mn);injector=l(ce);_events=new z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=l(ls);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=l(jt,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!l(_n,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Zr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof Z&&n.code!==N.Redirect&&n.code!==N.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof $)this.navigated=!0;else if(n instanceof Qe){let s=n.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),u=h({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||oc(i.source)},s);this.scheduleNavigation(a,Ye,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}uu(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ye,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,i)=>{this.navigateToSyncWithBrowser(e,i,n)})}navigateToSyncWithBrowser(e,n,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let u=h({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let a=this.parseUrl(e);this.scheduleNavigation(a,n,s,o).catch(u=>{this.injector.get(xe)(u)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Vr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:u}=n,c=u?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let p;try{let b=i?i.snapshot:this.routerState.snapshot.root;p=zo(b)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),p=this.currentUrlTree.root}return Vo(p,e,d,c??null)}navigateByUrl(e,n={skipLocationChange:!1}){let i=ge(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Ye,null,n)}navigate(e,n={skipLocationChange:!1}){return lc(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,n){let i;if(n===!0?i=h({},uc):n===!1?i=h({},cc):i=n,ge(e))return So(this.currentUrlTree,e,i);let o=this.parseUrl(e);return So(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((n,[i,o])=>(o!=null&&(n[i]=o),n),{})}scheduleNavigation(e,n,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,u,c;s?(a=s.resolve,u=s.reject,c=s.promise):c=new Promise((p,b)=>{a=p,u=b});let d=this.pendingTasks.add();return qr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(p=>Promise.reject(p))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function lc(t){for(let r=0;r<t.length;r++)if(t[r]==null)throw new y(4008,!1)}var Fn=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=zn(null);get href(){return pt(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new z;applicationErrorHandler=l(xe);options=l(ot,{optional:!0});constructor(e,n,i,o,s,a){this.router=e,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.reactiveHref.set(l(new Oi("href"),{optional:!0}));let u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area"||!!(typeof customElements=="object"&&customElements.get(u)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,n=i=>i==="merge"||i==="preserve";e||=n(this.queryParamsHandling),e||=!this.queryParamsHandling&&!n(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(i=>{i instanceof $&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ge(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||n||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,u)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,n){let i=this.renderer,o=this.el.nativeElement;n!==null?i.setAttribute(o,e,n):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:ge(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(n){return new(n||t)(O(st),O(ie),Gn("tabindex"),O(dt),O(ct),O(be))};static \u0275dir=de({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,i){n&1&&Ti("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&bi("href",i.reactiveHref(),mi)("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",gt],skipLocationChange:[2,"skipLocationChange","skipLocationChange",gt],replaceUrl:[2,"replaceUrl","replaceUrl",gt],routerLink:"routerLink"},features:[le]})}return t})(),dc=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new Ee;constructor(e,n,i,o,s){this.router=e,this.element=n,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof $&&this.update()})}ngAfterContentInit(){f(this.links.changes,f(null)).pipe(xn()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=P(e).pipe(xn()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){let n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let n=hc(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,n):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(n){return new(n||t)(O(st),O(ct),O(dt),O(Se),O(Fn,8))};static \u0275dir=de({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,o){if(n&1&&_i(o,Fn,5),n&2){let s;Ii(s=Mi())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[le]})}return t})();function hc(t){return!!t.paths}var hs=new C(""),fc=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Ye;restoredId=0;store={};constructor(e,n,i,o,s={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=i,this.zone=o,this.options=s,s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof me?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof $?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof X&&e.code===Ke.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Je&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>Oe(this,null,function*(){yield new Promise(i=>{setTimeout(i),typeof requestAnimationFrame<"u"&&requestAnimationFrame(i)}),this.zone.run(()=>{this.transitions.events.next(new Je(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){Di()};static \u0275prov=g({token:t,factory:t.\u0275fac})}return t})();function pc(t,...r){return Le([{provide:jt,multi:!0,useValue:t},[],{provide:ie,useFactory:gc,deps:[st]},{provide:Gt,multi:!0,useFactory:Dc},r.map(e=>e.\u0275providers)])}function gc(t){return t.routerState.root}function mc(t,r){return{\u0275kind:t,\u0275providers:r}}function vc(t={}){return mc(4,[{provide:hs,useFactory:()=>{let e=l(Yi),n=l(Q),i=l(Gr),o=l(nt);return new fc(o,i,e,n,t)}}])}function Dc(){let t=l(ke);return r=>{let e=t.get(ft);if(r!==e.components[0])return;let n=t.get(st),i=t.get(yc);t.get(wc)===1&&n.initialNavigation(),t.get(Cc,null,{optional:!0})?.setUpPreloading(),t.get(hs,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var yc=new C("",{factory:()=>new z}),wc=new C("",{providedIn:"root",factory:()=>1});var Cc=new C("");export{ee as a,Ae as b,ms as c,vs as d,Cs as e,Ss as f,qi as g,ud as h,Yi as i,hr as j,Gs as k,fe as l,po as m,vo as n,Da as o,ya as p,wa as q,Na as r,xh as s,Uh as t,$ as u,Je as v,ie as w,$r as x,st as y,Fn as z,dc as A,pc as B,vc as C};