import{$ as an,A as K,Aa as jr,Ba as pn,C as ge,Ca as Lr,D as Q,Da as ne,F as sn,Fa as gn,G as me,Ga as mn,Gb as Hr,H as Er,J as ve,Ja as kr,K as ee,Ka as Le,L as on,M as Cr,Ma as we,N as Ir,Na as Fr,Nb as Rt,Ob as Jr,Pb as wn,Q as Ar,Qb as ke,R as k,Ra as $r,Rb as Fe,S as Mr,Sa as _r,Sb as Zr,Ta as zr,Tb as Tt,U as M,Ua as q,V as A,Va as Br,Vb as Rn,Wb as Yr,X as S,Xa as vn,Xb as Qr,Y as vt,Ya as Vr,Yb as St,Z as Dr,_ as C,a as p,aa as R,ab as qr,b as P,ba as f,bb as Gr,bc as ei,c as yr,ca as cn,cb as yn,cc as bt,d as Ne,da as Or,dc as ti,e as wr,ea as Ue,eb as Wr,ec as ni,f as Rr,fa as Pr,fc as U,g as Qt,ga as yt,gc as ri,h as en,ha as un,hc as $e,i as tn,ic as ii,j as Z,ja as ye,jc as si,k as _,ka as Nr,kc as _e,l as Y,la as te,lc as Et,m as N,ma as z,mb as Xr,n as g,na as ln,o as xe,p as Tr,pb as Kr,q as Sr,r as b,s as mt,sa as hn,sc as oi,t as L,ta as xr,u as nn,ua as dn,uc as ze,v as br,va as fn,vc as ai,w as rn,wa as Ur,wc as Ct,xa as wt,ya as je}from"./chunk-45KQTMU2.js";var Ve=class{},Mt=class{},G=class n{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
`).forEach(i=>{let t=i.indexOf(":");if(t>0){let r=i.slice(0,t),s=r.toLowerCase(),o=i.slice(t+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((i,t)=>{this.setHeaderEntries(t,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([i,t])=>{this.setHeaderEntries(i,t)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let i=this.headers.get(e.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,i){return this.clone({name:e,value:i,op:"a"})}set(e,i){return this.clone({name:e,value:i,op:"s"})}delete(e,i){return this.clone({name:e,value:i,op:"d"})}maybeSetNormalizedName(e,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,e)}init(){this.lazyInit&&(this.lazyInit instanceof n?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(i=>{this.headers.set(i,e.headers.get(i)),this.normalizedNames.set(i,e.normalizedNames.get(i))})}clone(e){let i=new n;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}applyUpdate(e){let i=e.name.toLowerCase();switch(e.op){case"a":case"s":let t=e.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(e.name,i);let r=(e.op==="a"?this.headers.get(i):void 0)||[];r.push(...t),this.headers.set(i,r);break;case"d":let s=e.value;if(!s)this.headers.delete(i),this.normalizedNames.delete(i);else{let o=this.headers.get(i);if(!o)return;o=o.filter(a=>s.indexOf(a)===-1),o.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,o)}break}}setHeaderEntries(e,i){let t=(Array.isArray(i)?i:[i]).map(s=>s.toString()),r=e.toLowerCase();this.headers.set(r,t),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>e(this.normalizedNames.get(i),this.headers.get(i)))}};var Sn=class{encodeKey(e){return ci(e)}encodeValue(e){return ci(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function Ms(n,e){let i=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{let s=r.indexOf("="),[o,a]=s==-1?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,s)),e.decodeValue(r.slice(s+1))],u=i.get(o)||[];u.push(a),i.set(o,u)}),i}var Ds=/%(\d[a-f0-9])/gi,Os={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ci(n){return encodeURIComponent(n).replace(Ds,(e,i)=>Os[i]??e)}function It(n){return`${n}`}var ie=class n{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Sn,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Ms(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(i=>{let t=e.fromObject[i],r=Array.isArray(t)?t.map(It):[It(t)];this.map.set(i,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let i=this.map.get(e);return i?i[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,i){return this.clone({param:e,value:i,op:"a"})}appendAll(e){let i=[];return Object.keys(e).forEach(t=>{let r=e[t];Array.isArray(r)?r.forEach(s=>{i.push({param:t,value:s,op:"a"})}):i.push({param:t,value:r,op:"a"})}),this.clone(i)}set(e,i){return this.clone({param:e,value:i,op:"s"})}delete(e,i){return this.clone({param:e,value:i,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let i=this.encoder.encodeKey(e);return this.map.get(e).map(t=>i+"="+this.encoder.encodeValue(t)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let i=new n({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let i=(e.op==="a"?this.map.get(e.param):void 0)||[];i.push(It(e.value)),this.map.set(e.param,i);break;case"d":if(e.value!==void 0){let t=this.map.get(e.param)||[],r=t.indexOf(It(e.value));r!==-1&&t.splice(r,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var bn=class{constructor(){this.map=new Map}set(e,i){return this.map.set(e,i),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function Ps(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ui(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function li(n){return typeof Blob<"u"&&n instanceof Blob}function hi(n){return typeof FormData<"u"&&n instanceof FormData}function Ns(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var Be=class n{constructor(e,i,t,r){this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let s;if(Ps(this.method)||r?(this.body=t!==void 0?t:null,s=r):s=t,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),this.transferCache=s.transferCache),this.headers??=new G,this.context??=new bn,!this.params)this.params=new ie,this.urlWithParams=i;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=i;else{let a=i.indexOf("?"),u=a===-1?"?":a<i.length-1?"&":"";this.urlWithParams=i+u+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||ui(this.body)||li(this.body)||hi(this.body)||Ns(this.body)?this.body:this.body instanceof ie?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||hi(this.body)?null:li(this.body)?this.body.type||null:ui(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof ie?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let i=e.method||this.method,t=e.url||this.url,r=e.responseType||this.responseType,s=e.transferCache??this.transferCache,o=e.body!==void 0?e.body:this.body,a=e.withCredentials??this.withCredentials,u=e.reportProgress??this.reportProgress,c=e.headers||this.headers,l=e.params||this.params,h=e.context??this.context;return e.setHeaders!==void 0&&(c=Object.keys(e.setHeaders).reduce((d,v)=>d.set(v,e.setHeaders[v]),c)),e.setParams&&(l=Object.keys(e.setParams).reduce((d,v)=>d.set(v,e.setParams[v]),l)),new n(i,t,o,{params:l,headers:c,context:h,reportProgress:u,responseType:r,withCredentials:a,transferCache:s})}},se=function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n}(se||{}),qe=class{constructor(e,i=200,t="OK"){this.headers=e.headers||new G,this.status=e.status!==void 0?e.status:i,this.statusText=e.statusText||t,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Dt=class n extends qe{constructor(e={}){super(e),this.type=se.ResponseHeader}clone(e={}){return new n({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},de=class n extends qe{constructor(e={}){super(e),this.type=se.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new n({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},re=class extends qe{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},bi=200,xs=204;function Tn(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials,transferCache:n.transferCache}}var Us=(()=>{let e=class e{constructor(t){this.handler=t}request(t,r,s={}){let o;if(t instanceof Be)o=t;else{let c;s.headers instanceof G?c=s.headers:c=new G(s.headers);let l;s.params&&(s.params instanceof ie?l=s.params:l=new ie({fromObject:s.params})),o=new Be(t,r,s.body!==void 0?s.body:null,{headers:c,context:s.context,params:l,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let a=g(o).pipe(Q(c=>this.handler.handle(c)));if(t instanceof Be||s.observe==="events")return a;let u=a.pipe(K(c=>c instanceof de));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return u.pipe(b(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return u.pipe(b(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return u.pipe(b(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return u.pipe(b(c=>c.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:new ie().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,s={}){return this.request("PATCH",t,Tn(s,r))}post(t,r,s={}){return this.request("POST",t,Tn(s,r))}put(t,r,s={}){return this.request("PUT",t,Tn(s,r))}};e.\u0275fac=function(r){return new(r||e)(R(Ve))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let n=e;return n})(),js=/^\)\]\}',?\n/,Ls="X-Request-URL";function di(n){if(n.url)return n.url;let e=Ls.toLocaleLowerCase();return n.headers.get(e)}var ks=(()=>{let e=class e{constructor(){this.fetchImpl=f(En,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=f(q)}handle(t){return new Qt(r=>{let s=new AbortController;return this.doRequest(t,s.signal,r).then(Cn,o=>r.error(new re({error:o}))),()=>s.abort()})}doRequest(t,r,s){return Ne(this,null,function*(){let o=this.createRequestInit(t),a;try{let y=this.fetchImpl(t.urlWithParams,p({signal:r},o));Fs(y),s.next({type:se.Sent}),a=yield y}catch(y){s.error(new re({error:y,status:y.status??0,statusText:y.statusText,url:t.urlWithParams,headers:y.headers}));return}let u=new G(a.headers),c=a.statusText,l=di(a)??t.urlWithParams,h=a.status,d=null;if(t.reportProgress&&s.next(new Dt({headers:u,status:h,statusText:c,url:l})),a.body){let y=a.headers.get("content-length"),O=[],w=a.body.getReader(),T=0,x,j,I=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Ne(this,null,function*(){for(;;){let{done:he,value:Pe}=yield w.read();if(he)break;if(O.push(Pe),T+=Pe.length,t.reportProgress){j=t.responseType==="text"?(j??"")+(x??=new TextDecoder).decode(Pe,{stream:!0}):void 0;let vr=()=>s.next({type:se.DownloadProgress,total:y?+y:void 0,loaded:T,partialText:j});I?I.run(vr):vr()}}}));let le=this.concatChunks(O,T);try{let he=a.headers.get("Content-Type")??"";d=this.parseBody(t,le,he)}catch(he){s.error(new re({error:he,headers:new G(a.headers),status:a.status,statusText:a.statusText,url:di(a)??t.urlWithParams}));return}}h===0&&(h=d?bi:0),h>=200&&h<300?(s.next(new de({body:d,headers:u,status:h,statusText:c,url:l})),s.complete()):s.error(new re({error:d,headers:u,status:h,statusText:c,url:l}))})}parseBody(t,r,s){switch(t.responseType){case"json":let o=new TextDecoder().decode(r).replace(js,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:s});case"arraybuffer":return r.buffer}}createRequestInit(t){let r={},s=t.withCredentials?"include":void 0;if(t.headers.forEach((o,a)=>r[o]=a.join(",")),r.Accept??="application/json, text/plain, */*",!r["Content-Type"]){let o=t.detectContentTypeHeader();o!==null&&(r["Content-Type"]=o)}return{body:t.serializeBody(),method:t.method,headers:r,credentials:s}}concatChunks(t,r){let s=new Uint8Array(r),o=0;for(let a of t)s.set(a,o),o+=a.length;return s}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac});let n=e;return n})(),En=class{};function Cn(){}function Fs(n){n.then(Cn,Cn)}function $s(n,e){return e(n)}function _s(n,e,i){return(t,r)=>z(i,()=>e(t,s=>n(s,r)))}var Ei=new C(""),Ci=new C(""),zs=new C("",{providedIn:"root",factory:()=>!0});var fi=(()=>{let e=class e extends Ve{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=f(wt),this.contributeToStability=f(zs)}handle(t){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Ei),...this.injector.get(Ci,[])]));this.chain=r.reduceRight((s,o)=>_s(s,o,this.injector),$s)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(t,s=>this.backend.handle(s)).pipe(ve(()=>this.pendingTasks.remove(r)))}else return this.chain(t,r=>this.backend.handle(r))}};e.\u0275fac=function(r){return new(r||e)(R(Mt),R(te))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let n=e;return n})();var Bs=/^\)\]\}',?\n/;function Vs(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}var pi=(()=>{let e=class e{constructor(t){this.xhrFactory=t}handle(t){if(t.method==="JSONP")throw new A(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?N(r.\u0275loadImpl()):g(null)).pipe(k(()=>new Qt(o=>{let a=r.build();if(a.open(t.method,t.urlWithParams),t.withCredentials&&(a.withCredentials=!0),t.headers.forEach((w,T)=>a.setRequestHeader(w,T.join(","))),t.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){let w=t.detectContentTypeHeader();w!==null&&a.setRequestHeader("Content-Type",w)}if(t.responseType){let w=t.responseType.toLowerCase();a.responseType=w!=="json"?w:"text"}let u=t.serializeBody(),c=null,l=()=>{if(c!==null)return c;let w=a.statusText||"OK",T=new G(a.getAllResponseHeaders()),x=Vs(a)||t.url;return c=new Dt({headers:T,status:a.status,statusText:w,url:x}),c},h=()=>{let{headers:w,status:T,statusText:x,url:j}=l(),I=null;T!==xs&&(I=typeof a.response>"u"?a.responseText:a.response),T===0&&(T=I?bi:0);let le=T>=200&&T<300;if(t.responseType==="json"&&typeof I=="string"){let he=I;I=I.replace(Bs,"");try{I=I!==""?JSON.parse(I):null}catch(Pe){I=he,le&&(le=!1,I={error:Pe,text:I})}}le?(o.next(new de({body:I,headers:w,status:T,statusText:x,url:j||void 0})),o.complete()):o.error(new re({error:I,headers:w,status:T,statusText:x,url:j||void 0}))},d=w=>{let{url:T}=l(),x=new re({error:w,status:a.status||0,statusText:a.statusText||"Unknown Error",url:T||void 0});o.error(x)},v=!1,y=w=>{v||(o.next(l()),v=!0);let T={type:se.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(T.total=w.total),t.responseType==="text"&&a.responseText&&(T.partialText=a.responseText),o.next(T)},O=w=>{let T={type:se.UploadProgress,loaded:w.loaded};w.lengthComputable&&(T.total=w.total),o.next(T)};return a.addEventListener("load",h),a.addEventListener("error",d),a.addEventListener("timeout",d),a.addEventListener("abort",d),t.reportProgress&&(a.addEventListener("progress",y),u!==null&&a.upload&&a.upload.addEventListener("progress",O)),a.send(u),o.next({type:se.Sent}),()=>{a.removeEventListener("error",d),a.removeEventListener("abort",d),a.removeEventListener("load",h),a.removeEventListener("timeout",d),t.reportProgress&&(a.removeEventListener("progress",y),u!==null&&a.upload&&a.upload.removeEventListener("progress",O)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(R(Ct))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let n=e;return n})(),Ii=new C(""),qs="XSRF-TOKEN",Gs=new C("",{providedIn:"root",factory:()=>qs}),Ws="X-XSRF-TOKEN",Xs=new C("",{providedIn:"root",factory:()=>Ws}),Ot=class{},Ks=(()=>{let e=class e{constructor(t,r,s){this.doc=t,this.platform=r,this.cookieName=s,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Et(t,this.cookieName),this.lastCookieString=t),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(R(U),R(ne),R(Gs))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let n=e;return n})();function Hs(n,e){let i=n.url.toLowerCase();if(!f(Ii)||n.method==="GET"||n.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(n);let t=f(Ot).getToken(),r=f(Xs);return t!=null&&!n.headers.has(r)&&(n=n.clone({headers:n.headers.set(r,t)})),e(n)}function kc(...n){let e=[Us,pi,fi,{provide:Ve,useExisting:fi},{provide:Mt,useFactory:()=>f(ks,{optional:!0})??f(pi)},{provide:Ei,useValue:Hs,multi:!0},{provide:Ii,useValue:!0},{provide:Ot,useClass:Ks}];for(let i of n)e.push(...i.\u0275providers);return ye(e)}var Js=new C(""),gi="b",mi="h",vi="s",yi="st",wi="u",Ri="rt",At=new C(""),Zs=["GET","HEAD"];function Ys(n,e){let v=f(At),{isCacheActive:i}=v,t=yr(v,["isCacheActive"]),{transferCache:r,method:s}=n;if(!i||r===!1||s==="POST"&&!t.includePostRequests&&!r||s!=="POST"&&!Zs.includes(s)||!t.includeRequestsWithAuthHeaders&&Qs(n)||t.filter?.(n)===!1)return e(n);let o=f(mn),a=f(Js,{optional:!0}),u=ze(f(ne));if(a&&!u)throw new A(2803,!1);let c=u&&a?ro(n.url,a):n.url,l=to(n,c),h=o.get(l,null),d=t.includeHeaders;if(typeof r=="object"&&r.includeHeaders&&(d=r.includeHeaders),h){let{[gi]:y,[Ri]:O,[mi]:w,[vi]:T,[yi]:x,[wi]:j}=h,I=y;switch(O){case"arraybuffer":I=new TextEncoder().encode(y).buffer;break;case"blob":I=new Blob([y]);break}let le=new G(w);return g(new de({body:I,headers:le,status:T,statusText:x,url:j}))}return e(n).pipe(M(y=>{y instanceof de&&u&&o.set(l,{[gi]:y.body,[mi]:eo(y.headers,d),[vi]:y.status,[yi]:y.statusText,[wi]:c,[Ri]:n.responseType})}))}function Qs(n){return n.headers.has("authorization")||n.headers.has("proxy-authorization")}function eo(n,e){if(!e)return{};let i={};for(let t of e){let r=n.getAll(t);r!==null&&(i[t]=r)}return i}function Ti(n){return[...n.keys()].sort().map(e=>`${e}=${n.getAll(e)}`).join("&")}function to(n,e){let{params:i,method:t,responseType:r}=n,s=Ti(i),o=n.serializeBody();o instanceof URLSearchParams?o=Ti(o):typeof o!="string"&&(o="");let a=[t,r,e,o,s].join("|"),u=no(a);return u}function no(n){let e=0;for(let i of n)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,e.toString()}function In(n){return[{provide:At,useFactory:()=>(zr("NgHttpTransferCache"),p({isCacheActive:!0},n))},{provide:Ci,useValue:Ys,multi:!0,deps:[mn,At]},{provide:ke,multi:!0,useFactory:()=>{let e=f(Fe),i=f(At);return()=>{Zr(e).then(()=>{i.isCacheActive=!1})}}}]}function ro(n,e){let i=new URL(n,"resolve://").origin,t=e[i];return t?n.replace(i,t):n}var Dn=class extends ni{constructor(){super(...arguments),this.supportsDOMEvents=!0}},On=class n extends Dn{static makeCurrent(){ti(new n)}onAndCancel(e,i,t){return e.addEventListener(i,t),()=>{e.removeEventListener(i,t)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=oo();return i==null?null:ao(i)}resetBaseElement(){Ge=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Et(document.cookie,e)}},Ge=null;function oo(){return Ge=Ge||document.querySelector("base"),Ge?Ge.getAttribute("href"):null}function ao(n){return new URL(n,document.baseURI).pathname}var co=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac});let n=e;return n})(),Pn=new C(""),Oi=(()=>{let e=class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(s=>{s.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,s){return this._findPluginFor(r).addEventListener(t,r,s)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(o=>o.supports(t)),!r)throw new A(5101,!1);return this._eventNameToPlugin.set(t,r),r}};e.\u0275fac=function(r){return new(r||e)(R(Pn),R(q))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let n=e;return n})(),Pt=class{constructor(e){this._doc=e}},An="ng-app-id",Pi=(()=>{let e=class e{constructor(t,r,s,o={}){this.doc=t,this.appId=r,this.nonce=s,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=ze(o),this.resetHostNodes()}addStyles(t){for(let r of t)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(t){for(let r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(let r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(let r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){let r=this.styleRef;r.get(t)?.elements?.forEach(s=>s.remove()),r.delete(t)}collectServerRenderedStyles(){let t=this.doc.head?.querySelectorAll(`style[${An}="${this.appId}"]`);if(t?.length){let r=new Map;return t.forEach(s=>{s.textContent!=null&&r.set(s.textContent,s)}),r}return null}changeUsageCount(t,r){let s=this.styleRef;if(s.has(t)){let o=s.get(t);return o.usage+=r,o.usage}return s.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){let s=this.styleNodesInDOM,o=s?.get(r);if(o?.parentNode===t)return s.delete(r),o.removeAttribute(An),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(An,this.appId),t.appendChild(a),a}}addStyleToHost(t,r){let s=this.getStyleElement(t,r),o=this.styleRef,a=o.get(r)?.elements;a?a.push(s):o.set(r,{elements:[s],usage:1})}resetHostNodes(){let t=this.hostNodes;t.clear(),t.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(R(U),R(pn),R(gn,8),R(ne))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let n=e;return n})(),Mn={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"},xn=/%COMP%/g,Ni="%COMP%",uo=`_nghost-${Ni}`,lo=`_ngcontent-${Ni}`,ho=!0,fo=new C("",{providedIn:"root",factory:()=>ho});function po(n){return lo.replace(xn,n)}function go(n){return uo.replace(xn,n)}function xi(n,e){return e.map(i=>i.replace(xn,n))}var Ai=(()=>{let e=class e{constructor(t,r,s,o,a,u,c,l=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=u,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=ze(u),this.defaultRenderer=new We(t,a,c,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ue.ShadowDom&&(r=P(p({},r),{encapsulation:Ue.Emulated}));let s=this.getOrCreateRenderer(t,r);return s instanceof Nt?s.applyToHost(t):s instanceof Xe&&s.applyStyles(),s}getOrCreateRenderer(t,r){let s=this.rendererByCompId,o=s.get(r.id);if(!o){let a=this.doc,u=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Ue.Emulated:o=new Nt(c,l,r,this.appId,h,a,u,d);break;case Ue.ShadowDom:return new Nn(c,l,t,r,a,u,this.nonce,d);default:o=new Xe(c,l,r,h,a,u,d);break}s.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(R(Oi),R(Pi),R(pn),R(fo),R(U),R(ne),R(q),R(gn))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let n=e;return n})(),We=class{constructor(e,i,t,r){this.eventManager=e,this.doc=i,this.ngZone=t,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(Mn[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(Mi(e)?e.content:e).appendChild(i)}insertBefore(e,i,t){e&&(Mi(e)?e.content:e).insertBefore(i,t)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let t=typeof e=="string"?this.doc.querySelector(e):e;if(!t)throw new A(-5104,!1);return i||(t.textContent=""),t}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,t,r){if(r){i=r+":"+i;let s=Mn[r];s?e.setAttributeNS(s,i,t):e.setAttribute(i,t)}else e.setAttribute(i,t)}removeAttribute(e,i,t){if(t){let r=Mn[t];r?e.removeAttributeNS(r,i):e.removeAttribute(`${t}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,t,r){r&(Le.DashCase|Le.Important)?e.style.setProperty(i,t,r&Le.Important?"important":""):e.style[i]=t}removeStyle(e,i,t){t&Le.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,t){e!=null&&(e[i]=t)}setValue(e,i){e.nodeValue=i}listen(e,i,t){if(typeof e=="string"&&(e=bt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(t))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function Mi(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var Nn=class extends We{constructor(e,i,t,r,s,o,a,u){super(e,s,o,u),this.sharedStylesHost=i,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=xi(r.id,r.styles);for(let l of c){let h=document.createElement("style");a&&h.setAttribute("nonce",a),h.textContent=l,this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,t){return super.insertBefore(this.nodeOrShadowRoot(e),i,t)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Xe=class extends We{constructor(e,i,t,r,s,o,a,u){super(e,s,o,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=u?xi(u,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Nt=class extends Xe{constructor(e,i,t,r,s,o,a,u){let c=r+"-"+t.id;super(e,i,t,s,o,a,u,c),this.contentAttr=po(c),this.hostAttr=go(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let t=super.createElement(e,i);return super.setAttribute(t,this.contentAttr,""),t}},mo=(()=>{let e=class e extends Pt{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,s){return t.addEventListener(r,s,!1),()=>this.removeEventListener(t,r,s)}removeEventListener(t,r,s){return t.removeEventListener(r,s)}};e.\u0275fac=function(r){return new(r||e)(R(U))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let n=e;return n})(),Di=["alt","control","meta","shift"],vo={"\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"},yo={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},wo=(()=>{let e=class e extends Pt{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,r,s){let o=e.parseEventName(r),a=e.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>bt().onAndCancel(t,o.domEventName,a))}static parseEventName(t){let r=t.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let o=e._normalizeKey(r.pop()),a="",u=r.indexOf("code");if(u>-1&&(r.splice(u,1),a="code."),Di.forEach(l=>{let h=r.indexOf(l);h>-1&&(r.splice(h,1),a+=l+".")}),a+=o,r.length!=0||o.length===0)return null;let c={};return c.domEventName=s,c.fullKey=a,c}static matchEventFullKeyCode(t,r){let s=vo[t.key]||t.key,o="";return r.indexOf("code.")>-1&&(s=t.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),Di.forEach(a=>{if(a!==s){let u=yo[a];u(t)&&(o+=a+".")}}),o+=s,o===r)}static eventCallback(t,r,s){return o=>{e.matchEventFullKeyCode(o,t)&&s.runGuarded(()=>r(o))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(r){return new(r||e)(R(U))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let n=e;return n})();function mu(n,e){return Yr(p({rootComponent:n},Ro(e)))}function Ro(n){return{appProviders:[...Co,...n?.providers??[]],platformProviders:Eo}}function To(){On.makeCurrent()}function So(){return new fn}function bo(){return jr(document),document}var Eo=[{provide:ne,useValue:oi},{provide:Lr,useValue:To,multi:!0},{provide:U,useFactory:bo,deps:[]}];var Co=[{provide:Nr,useValue:"root"},{provide:fn,useFactory:So,deps:[]},{provide:Pn,useClass:mo,multi:!0,deps:[U,q,ne]},{provide:Pn,useClass:wo,multi:!0,deps:[U]},Ai,Pi,Oi,{provide:$r,useExisting:Ai},{provide:Ct,useClass:co,deps:[]},[]];var vu=(()=>{let e=class e{constructor(t){this._doc=t,this._dom=bt()}addTag(t,r=!1){return t?this._getOrCreateElement(t,r):null}addTags(t,r=!1){return t?t.reduce((s,o)=>(o&&s.push(this._getOrCreateElement(o,r)),s),[]):[]}getTag(t){return t&&this._doc.querySelector(`meta[${t}]`)||null}getTags(t){if(!t)return[];let r=this._doc.querySelectorAll(`meta[${t}]`);return r?[].slice.call(r):[]}updateTag(t,r){if(!t)return null;r=r||this._parseSelector(t);let s=this.getTag(r);return s?this._setMetaElementAttributes(t,s):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,r=!1){if(!r){let a=this._parseSelector(t),u=this.getTags(a).filter(c=>this._containsAttributes(t,c))[0];if(u!==void 0)return u}let s=this._dom.createElement("meta");return this._setMetaElementAttributes(t,s),this._doc.getElementsByTagName("head")[0].appendChild(s),s}_setMetaElementAttributes(t,r){return Object.keys(t).forEach(s=>r.setAttribute(this._getMetaKeyMap(s),t[s])),r}_parseSelector(t){let r=t.name?"name":"property";return`${r}="${t[r]}"`}_containsAttributes(t,r){return Object.keys(t).every(s=>r.getAttribute(this._getMetaKeyMap(s))===t[s])}_getMetaKeyMap(t){return Io[t]||t}};e.\u0275fac=function(r){return new(r||e)(R(U))},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Io={httpEquiv:"http-equiv"},Ui=(()=>{let e=class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}};e.\u0275fac=function(r){return new(r||e)(R(U))},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var xt=function(n){return n[n.NoHttpTransferCache=0]="NoHttpTransferCache",n[n.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",n[n.I18nSupport=2]="I18nSupport",n[n.EventReplay=3]="EventReplay",n}(xt||{});function Ao(n,e=[],i={}){return{\u0275kind:n,\u0275providers:e}}function yu(n){return Ao(xt.HttpTransferCacheOptions,In(n))}function wu(...n){let e=[],i=new Set,t=i.has(xt.HttpTransferCacheOptions);for(let{\u0275providers:r,\u0275kind:s}of n)i.add(s),r.length&&e.push(r);return ye([[],Qr(),i.has(xt.NoHttpTransferCache)||t?[]:In({}),e])}var m="primary",ut=Symbol("RouteTitle"),Fn=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function Ce(n){return new Fn(n)}function Do(n,e,i){let t=i.path.split("/");if(t.length>n.length||i.pathMatch==="full"&&(e.hasChildren()||t.length<n.length))return null;let r={};for(let s=0;s<t.length;s++){let o=t[s],a=n[s];if(o[0]===":")r[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:n.slice(0,t.length),posParams:r}}function Oo(n,e){if(n.length!==e.length)return!1;for(let i=0;i<n.length;++i)if(!W(n[i],e[i]))return!1;return!0}function W(n,e){let i=n?$n(n):void 0,t=e?$n(e):void 0;if(!i||!t||i.length!=t.length)return!1;let r;for(let s=0;s<i.length;s++)if(r=i[s],!Gi(n[r],e[r]))return!1;return!0}function $n(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function Gi(n,e){if(Array.isArray(n)&&Array.isArray(e)){if(n.length!==e.length)return!1;let i=[...n].sort(),t=[...e].sort();return i.every((r,s)=>t[s]===r)}else return n===e}function Wi(n){return n.length>0?n[n.length-1]:null}function ue(n){return Tr(n)?n:Jr(n)?N(Promise.resolve(n)):g(n)}var Po={exact:Ki,subset:Hi},Xi={exact:No,subset:xo,ignored:()=>!0};function ji(n,e,i){return Po[i.paths](n.root,e.root,i.matrixParams)&&Xi[i.queryParams](n.queryParams,e.queryParams)&&!(i.fragment==="exact"&&n.fragment!==e.fragment)}function No(n,e){return W(n,e)}function Ki(n,e,i){if(!pe(n.segments,e.segments)||!Lt(n.segments,e.segments,i)||n.numberOfChildren!==e.numberOfChildren)return!1;for(let t in e.children)if(!n.children[t]||!Ki(n.children[t],e.children[t],i))return!1;return!0}function xo(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(i=>Gi(n[i],e[i]))}function Hi(n,e,i){return Ji(n,e,e.segments,i)}function Ji(n,e,i,t){if(n.segments.length>i.length){let r=n.segments.slice(0,i.length);return!(!pe(r,i)||e.hasChildren()||!Lt(r,i,t))}else if(n.segments.length===i.length){if(!pe(n.segments,i)||!Lt(n.segments,i,t))return!1;for(let r in e.children)if(!n.children[r]||!Hi(n.children[r],e.children[r],t))return!1;return!0}else{let r=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!pe(n.segments,r)||!Lt(n.segments,r,t)||!n.children[m]?!1:Ji(n.children[m],e,s,t)}}function Lt(n,e,i){return e.every((t,r)=>Xi[i](n[r].parameters,t.parameters))}var oe=class{constructor(e=new E([],{}),i={},t=null){this.root=e,this.queryParams=i,this.fragment=t}get queryParamMap(){return this._queryParamMap??=Ce(this.queryParams),this._queryParamMap}toString(){return Lo.serialize(this)}},E=class{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return kt(this)}},fe=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap??=Ce(this.parameters),this._parameterMap}toString(){return Yi(this)}};function Uo(n,e){return pe(n,e)&&n.every((i,t)=>W(i.parameters,e[t].parameters))}function pe(n,e){return n.length!==e.length?!1:n.every((i,t)=>i.path===e[t].path)}function jo(n,e){let i=[];return Object.entries(n.children).forEach(([t,r])=>{t===m&&(i=i.concat(e(r,t)))}),Object.entries(n.children).forEach(([t,r])=>{t!==m&&(i=i.concat(e(r,t)))}),i}var lt=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=S({token:e,factory:()=>new Ie,providedIn:"root"});let n=e;return n})(),Ie=class{parse(e){let i=new zn(e);return new oe(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${Ke(e.root,!0)}`,t=$o(e.queryParams),r=typeof e.fragment=="string"?`#${ko(e.fragment)}`:"";return`${i}${t}${r}`}},Lo=new Ie;function kt(n){return n.segments.map(e=>Yi(e)).join("/")}function Ke(n,e){if(!n.hasChildren())return kt(n);if(e){let i=n.children[m]?Ke(n.children[m],!1):"",t=[];return Object.entries(n.children).forEach(([r,s])=>{r!==m&&t.push(`${r}:${Ke(s,!1)}`)}),t.length>0?`${i}(${t.join("//")})`:i}else{let i=jo(n,(t,r)=>r===m?[Ke(n.children[m],!1)]:[`${r}:${Ke(t,!1)}`]);return Object.keys(n.children).length===1&&n.children[m]!=null?`${kt(n)}/${i[0]}`:`${kt(n)}/(${i.join("//")})`}}function Zi(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ut(n){return Zi(n).replace(/%3B/gi,";")}function ko(n){return encodeURI(n)}function _n(n){return Zi(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ft(n){return decodeURIComponent(n)}function Li(n){return Ft(n.replace(/\+/g,"%20"))}function Yi(n){return`${_n(n.path)}${Fo(n.parameters)}`}function Fo(n){return Object.entries(n).map(([e,i])=>`;${_n(e)}=${_n(i)}`).join("")}function $o(n){let e=Object.entries(n).map(([i,t])=>Array.isArray(t)?t.map(r=>`${Ut(i)}=${Ut(r)}`).join("&"):`${Ut(i)}=${Ut(t)}`).filter(i=>i);return e.length?`?${e.join("&")}`:""}var _o=/^[^\/()?;#]+/;function Un(n){let e=n.match(_o);return e?e[0]:""}var zo=/^[^\/()?;=#]+/;function Bo(n){let e=n.match(zo);return e?e[0]:""}var Vo=/^[^=?&#]+/;function qo(n){let e=n.match(Vo);return e?e[0]:""}var Go=/^[^&#]+/;function Wo(n){let e=n.match(Go);return e?e[0]:""}var zn=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new E([],{}):new E([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(t[m]=new E(e,i)),t}parseSegment(){let e=Un(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new A(4009,!1);return this.capture(e),new fe(Ft(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=Bo(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let r=Un(this.remaining);r&&(t=r,this.capture(t))}e[Ft(i)]=Ft(t)}parseQueryParam(e){let i=qo(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let o=Wo(this.remaining);o&&(t=o,this.capture(t))}let r=Li(i),s=Li(t);if(e.hasOwnProperty(r)){let o=e[r];Array.isArray(o)||(o=[o],e[r]=o),o.push(s)}else e[r]=s}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=Un(this.remaining),r=this.remaining[t.length];if(r!=="/"&&r!==")"&&r!==";")throw new A(4010,!1);let s;t.indexOf(":")>-1?(s=t.slice(0,t.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=m);let o=this.parseChildren();i[s]=Object.keys(o).length===1?o[m]:new E([],o),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new A(4011,!1)}};function Qi(n){return n.segments.length>0?new E([],{[m]:n}):n}function es(n){let e={};for(let[t,r]of Object.entries(n.children)){let s=es(r);if(t===m&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))e[o]=a;else(s.segments.length>0||s.hasChildren())&&(e[t]=s)}let i=new E(n.segments,e);return Xo(i)}function Xo(n){if(n.numberOfChildren===1&&n.children[m]){let e=n.children[m];return new E(n.segments.concat(e.segments),e.children)}return n}function et(n){return n instanceof oe}function Ko(n,e,i=null,t=null){let r=ts(n);return ns(r,e,i,t)}function ts(n){let e;function i(s){let o={};for(let u of s.children){let c=i(u);o[u.outlet]=c}let a=new E(s.url,o);return s===n&&(e=a),a}let t=i(n.root),r=Qi(t);return e??r}function ns(n,e,i,t){let r=n;for(;r.parent;)r=r.parent;if(e.length===0)return jn(r,r,r,i,t);let s=Ho(e);if(s.toRoot())return jn(r,r,new E([],{}),i,t);let o=Jo(s,r,n),a=o.processChildren?Ze(o.segmentGroup,o.index,s.commands):is(o.segmentGroup,o.index,s.commands);return jn(r,o.segmentGroup,a,i,t)}function $t(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function tt(n){return typeof n=="object"&&n!=null&&n.outlets}function jn(n,e,i,t,r){let s={};t&&Object.entries(t).forEach(([u,c])=>{s[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let o;n===e?o=i:o=rs(n,e,i);let a=Qi(es(o));return new oe(a,s,r)}function rs(n,e,i){let t={};return Object.entries(n.children).forEach(([r,s])=>{s===e?t[r]=i:t[r]=rs(s,e,i)}),new E(n.segments,t)}var _t=class{constructor(e,i,t){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=t,e&&t.length>0&&$t(t[0]))throw new A(4003,!1);let r=t.find(tt);if(r&&r!==Wi(t))throw new A(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Ho(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new _t(!0,0,n);let e=0,i=!1,t=n.reduce((r,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:o===0?(s.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?i=!0:a===".."?e++:a!=""&&r.push(a))}),r):[...r,s]},[]);return new _t(i,e,t)}var Se=class{constructor(e,i,t){this.segmentGroup=e,this.processChildren=i,this.index=t}};function Jo(n,e,i){if(n.isAbsolute)return new Se(e,!0,0);if(!i)return new Se(e,!1,NaN);if(i.parent===null)return new Se(i,!0,0);let t=$t(n.commands[0])?0:1,r=i.segments.length-1+t;return Zo(i,r,n.numberOfDoubleDots)}function Zo(n,e,i){let t=n,r=e,s=i;for(;s>r;){if(s-=r,t=t.parent,!t)throw new A(4005,!1);r=t.segments.length}return new Se(t,!1,r-s)}function Yo(n){return tt(n[0])?n[0].outlets:{[m]:n}}function is(n,e,i){if(n??=new E([],{}),n.segments.length===0&&n.hasChildren())return Ze(n,e,i);let t=Qo(n,e,i),r=i.slice(t.commandIndex);if(t.match&&t.pathIndex<n.segments.length){let s=new E(n.segments.slice(0,t.pathIndex),{});return s.children[m]=new E(n.segments.slice(t.pathIndex),n.children),Ze(s,0,r)}else return t.match&&r.length===0?new E(n.segments,{}):t.match&&!n.hasChildren()?Bn(n,e,i):t.match?Ze(n,0,r):Bn(n,e,i)}function Ze(n,e,i){if(i.length===0)return new E(n.segments,{});{let t=Yo(i),r={};if(Object.keys(t).some(s=>s!==m)&&n.children[m]&&n.numberOfChildren===1&&n.children[m].segments.length===0){let s=Ze(n.children[m],e,i);return new E(n.segments,s.children)}return Object.entries(t).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(r[s]=is(n.children[s],e,o))}),Object.entries(n.children).forEach(([s,o])=>{t[s]===void 0&&(r[s]=o)}),new E(n.segments,r)}}function Qo(n,e,i){let t=0,r=e,s={match:!1,pathIndex:0,commandIndex:0};for(;r<n.segments.length;){if(t>=i.length)return s;let o=n.segments[r],a=i[t];if(tt(a))break;let u=`${a}`,c=t<i.length-1?i[t+1]:null;if(r>0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Fi(u,c,o))return s;t+=2}else{if(!Fi(u,{},o))return s;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}function Bn(n,e,i){let t=n.segments.slice(0,e),r=0;for(;r<i.length;){let s=i[r];if(tt(s)){let u=ea(s.outlets);return new E(t,u)}if(r===0&&$t(i[0])){let u=n.segments[e];t.push(new fe(u.path,ki(i[0]))),r++;continue}let o=tt(s)?s.outlets[m]:`${s}`,a=r<i.length-1?i[r+1]:null;o&&a&&$t(a)?(t.push(new fe(o,ki(a))),r+=2):(t.push(new fe(o,{})),r++)}return new E(t,{})}function ea(n){let e={};return Object.entries(n).forEach(([i,t])=>{typeof t=="string"&&(t=[t]),t!==null&&(e[i]=Bn(new E([],{}),0,t))}),e}function ki(n){let e={};return Object.entries(n).forEach(([i,t])=>e[i]=`${t}`),e}function Fi(n,e,i){return n==i.path&&W(e,i.parameters)}var Ye="imperative",D=function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n}(D||{}),B=class{constructor(e,i){this.id=e,this.url=i}},Ae=class extends B{constructor(e,i,t="imperative",r=null){super(e,i),this.type=D.NavigationStart,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},X=class extends B{constructor(e,i,t){super(e,i),this.urlAfterRedirects=t,this.type=D.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},$=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}($||{}),zt=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(zt||{}),H=class extends B{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=D.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},ae=class extends B{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=D.NavigationSkipped}},nt=class extends B{constructor(e,i,t,r){super(e,i),this.error=t,this.target=r,this.type=D.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Bt=class extends B{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=D.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Vn=class extends B{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=D.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qn=class extends B{constructor(e,i,t,r,s){super(e,i),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=s,this.type=D.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Gn=class extends B{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=D.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Wn=class extends B{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=D.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Xn=class{constructor(e){this.route=e,this.type=D.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Kn=class{constructor(e){this.route=e,this.type=D.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Hn=class{constructor(e){this.snapshot=e,this.type=D.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Jn=class{constructor(e){this.snapshot=e,this.type=D.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Zn=class{constructor(e){this.snapshot=e,this.type=D.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Yn=class{constructor(e){this.snapshot=e,this.type=D.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Vt=class{constructor(e,i,t){this.routerEvent=e,this.position=i,this.anchor=t,this.type=D.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},rt=class{},Me=class{constructor(e,i){this.url=e,this.navigationBehaviorOptions=i}};var Qn=class{constructor(e){this.injector=e,this.outlet=null,this.route=null,this.children=new ht(this.injector),this.attachRef=null}},ht=(()=>{let e=class e{constructor(t){this.parentInjector=t,this.contexts=new Map}onChildOutletCreated(t,r){let s=this.getOrCreateContext(t);s.outlet=r,this.contexts.set(t,s)}onChildOutletDestroyed(t){let r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new Qn(this.parentInjector),this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}};e.\u0275fac=function(r){return new(r||e)(R(te))},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),qt=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){let i=er(e,this._root);return i?i.children.map(t=>t.value):[]}firstChild(e){let i=er(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=tr(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return tr(e,this._root).map(i=>i.value)}};function er(n,e){if(n===e.value)return e;for(let i of e.children){let t=er(n,i);if(t)return t}return null}function tr(n,e){if(n===e.value)return[e];for(let i of e.children){let t=tr(n,i);if(t.length)return t.unshift(e),t}return[]}var F=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function Te(n){let e={};return n&&n.children.forEach(i=>e[i.value.outlet]=i),e}var Gt=class extends qt{constructor(e,i){super(e),this.snapshot=i,lr(this,e)}toString(){return this.snapshot.toString()}};function ss(n){let e=ta(n),i=new _([new fe("",{})]),t=new _({}),r=new _({}),s=new _({}),o=new _(""),a=new ce(i,t,s,o,r,m,n,e.root);return a.snapshot=e.root,new Gt(new F(a,[]),e)}function ta(n){let e={},i={},t={},r="",s=new be([],e,t,r,i,m,n,null,{});return new Xt("",new F(s,[]))}var ce=class{constructor(e,i,t,r,s,o,a,u){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=t,this.fragmentSubject=r,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(b(c=>c[ut]))??g(void 0),this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=s}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(b(e=>Ce(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(b(e=>Ce(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Wt(n,e,i="emptyOnly"){let t,{routeConfig:r}=n;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?t={params:p(p({},e.params),n.params),data:p(p({},e.data),n.data),resolve:p(p(p(p({},n.data),e.data),r?.data),n._resolvedData)}:t={params:p({},n.params),data:p({},n.data),resolve:p(p({},n.data),n._resolvedData??{})},r&&as(r)&&(t.resolve[ut]=r.title),t}var be=class{get title(){return this.data?.[ut]}constructor(e,i,t,r,s,o,a,u,c){this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=s,this.outlet=o,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??=Ce(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ce(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(t=>t.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${i}')`}},Xt=class extends qt{constructor(e,i){super(i),this.url=e,lr(this,i)}toString(){return os(this._root)}};function lr(n,e){e.value._routerState=n,e.children.forEach(i=>lr(n,i))}function os(n){let e=n.children.length>0?` { ${n.children.map(os).join(", ")} } `:"";return`${n.value}${e}`}function Ln(n){if(n.snapshot){let e=n.snapshot,i=n._futureSnapshot;n.snapshot=i,W(e.queryParams,i.queryParams)||n.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&n.fragmentSubject.next(i.fragment),W(e.params,i.params)||n.paramsSubject.next(i.params),Oo(e.url,i.url)||n.urlSubject.next(i.url),W(e.data,i.data)||n.dataSubject.next(i.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function nr(n,e){let i=W(n.params,e.params)&&Uo(n.url,e.url),t=!n.parent!=!e.parent;return i&&!t&&(!n.parent||nr(n.parent,e.parent))}function as(n){return typeof n.title=="string"||n.title===null}var na=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=m,this.activateEvents=new je,this.deactivateEvents=new je,this.attachEvents=new je,this.detachEvents=new je,this.parentContexts=f(ht),this.location=f(Vr),this.changeDetector=f(Rn),this.inputBinder=f(Zt,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:r,previousValue:s}=t.name;if(r)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new A(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new A(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new A(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new A(4013,!1);this._activatedRoute=t;let s=this.location,a=t.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,c=new rr(t,u,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=un({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ln]});let n=e;return n})(),rr=class n{__ngOutletInjector(e){return new n(this.route,this.childContexts,e)}constructor(e,i,t){this.route=e,this.childContexts=i,this.parent=t}get(e,i){return e===ce?this.route:e===ht?this.childContexts:this.parent.get(e,i)}},Zt=new C(""),$i=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:r}=t,s=mt([r.queryParams,r.params,r.data]).pipe(k(([o,a,u],c)=>(u=p(p(p({},o),a),u),c===0?g(u):Promise.resolve(u)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(t);return}let a=ei(r.component);if(!a){this.unsubscribeFromRouteData(t);return}for(let{templateName:u}of a.inputs)t.activatedComponentRef.setInput(u,o[u])});this.outletDataSubscriptions.set(t,s)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac});let n=e;return n})();function ra(n,e,i){let t=it(n,e._root,i?i._root:void 0);return new Gt(t,e)}function it(n,e,i){if(i&&n.shouldReuseRoute(e.value,i.value.snapshot)){let t=i.value;t._futureSnapshot=e.value;let r=ia(n,e,i);return new F(t,r)}else{if(n.shouldAttach(e.value)){let s=n.retrieve(e.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=e.value,o.children=e.children.map(a=>it(n,a)),o}}let t=sa(e.value),r=e.children.map(s=>it(n,s));return new F(t,r)}}function ia(n,e,i){return e.children.map(t=>{for(let r of i.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return it(n,t,r);return it(n,t)})}function sa(n){return new ce(new _(n.url),new _(n.params),new _(n.queryParams),new _(n.fragment),new _(n.data),n.outlet,n.component,n)}var st=class{constructor(e,i){this.redirectTo=e,this.navigationBehaviorOptions=i}},cs="ngNavigationCancelingError";function Kt(n,e){let{redirectTo:i,navigationBehaviorOptions:t}=et(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=us(!1,$.Redirect);return r.url=i,r.navigationBehaviorOptions=t,r}function us(n,e){let i=new Error(`NavigationCancelingError: ${n||""}`);return i[cs]=!0,i.cancellationCode=e,i}function oa(n){return ls(n)&&et(n.url)}function ls(n){return!!n&&n[cs]}var aa=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Pr({type:e,selectors:[["ng-component"]],standalone:!0,features:[Hr],decls:1,vars:0,template:function(r,s){r&1&&Xr(0,"router-outlet")},dependencies:[na],encapsulation:2});let n=e;return n})();function ca(n,e){return n.providers&&!n._injector&&(n._injector=yn(n.providers,e,`Route: ${n.path}`)),n._injector??e}function hr(n){let e=n.children&&n.children.map(hr),i=e?P(p({},n),{children:e}):p({},n);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==m&&(i.component=aa),i}function V(n){return n.outlet||m}function ua(n,e){let i=n.filter(t=>V(t)===e);return i.push(...n.filter(t=>V(t)!==e)),i}function dt(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){let i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var la=(n,e,i,t)=>b(r=>(new ir(e,r.targetRouterState,r.currentRouterState,i,t).activate(n),r)),ir=class{constructor(e,i,t,r,s){this.routeReuseStrategy=e,this.futureState=i,this.currState=t,this.forwardEvent=r,this.inputBindingEnabled=s}activate(e){let i=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,t,e),Ln(this.futureState.root),this.activateChildRoutes(i,t,e)}deactivateChildRoutes(e,i,t){let r=Te(i);e.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,r[o],t),delete r[o]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,t)})}deactivateRoutes(e,i,t){let r=e.value,s=i?i.value:null;if(r===s)if(r.component){let o=t.getContext(r.outlet);o&&this.deactivateChildRoutes(e,i,o.children)}else this.deactivateChildRoutes(e,i,t);else s&&this.deactivateRouteAndItsChildren(i,t)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,s=Te(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);if(t&&t.outlet){let o=t.outlet.detach(),a=t.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}}deactivateRouteAndOutlet(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,s=Te(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(e,i,t){let r=Te(i);e.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],t),this.forwardEvent(new Yn(s.value.snapshot))}),e.children.length&&this.forwardEvent(new Jn(e.value.snapshot))}activateRoutes(e,i,t){let r=e.value,s=i?i.value:null;if(Ln(r),r===s)if(r.component){let o=t.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,o.children)}else this.activateChildRoutes(e,i,t);else if(r.component){let o=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),Ln(a.route.value),this.activateChildRoutes(e,null,o.children)}else{let a=dt(r.snapshot);o.attachRef=null,o.route=r,o.injector=a??o.injector,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,t)}},Ht=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Ee=class{constructor(e,i){this.component=e,this.route=i}};function ha(n,e,i){let t=n._root,r=e?e._root:null;return He(t,r,i,[t.value])}function da(n){let e=n.routeConfig?n.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:n,guards:e}}function Oe(n,e){let i=Symbol(),t=e.get(n,i);return t===i?typeof n=="function"&&!Dr(n)?n:e.get(n):t}function He(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=Te(e);return n.children.forEach(o=>{fa(o,s[o.value.outlet],i,t.concat([o.value]),r),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>Qe(a,i.getContext(o),r)),r}function fa(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=n.value,o=e?e.value:null,a=i?i.getContext(n.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let u=pa(o,s,s.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new Ht(t)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?He(n,e,a?a.children:null,t,r):He(n,e,i,t,r),u&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Ee(a.outlet.component,o))}else o&&Qe(e,a,r),r.canActivateChecks.push(new Ht(t)),s.component?He(n,null,a?a.children:null,t,r):He(n,null,i,t,r);return r}function pa(n,e,i){if(typeof i=="function")return i(n,e);switch(i){case"pathParamsChange":return!pe(n.url,e.url);case"pathParamsOrQueryParamsChange":return!pe(n.url,e.url)||!W(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!nr(n,e)||!W(n.queryParams,e.queryParams);case"paramsChange":default:return!nr(n,e)}}function Qe(n,e,i){let t=Te(n),r=n.value;Object.entries(t).forEach(([s,o])=>{r.component?e?Qe(o,e.children.getContext(s),i):Qe(o,null,i):Qe(o,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new Ee(e.outlet.component,r)):i.canDeactivateChecks.push(new Ee(null,r)):i.canDeactivateChecks.push(new Ee(null,r))}function ft(n){return typeof n=="function"}function ga(n){return typeof n=="boolean"}function ma(n){return n&&ft(n.canLoad)}function va(n){return n&&ft(n.canActivate)}function ya(n){return n&&ft(n.canActivateChild)}function wa(n){return n&&ft(n.canDeactivate)}function Ra(n){return n&&ft(n.canMatch)}function hs(n){return n instanceof Sr||n?.name==="EmptyError"}var jt=Symbol("INITIAL_VALUE");function De(){return k(n=>mt(n.map(e=>e.pipe(me(1),Ar(jt)))).pipe(b(e=>{for(let i of e)if(i!==!0){if(i===jt)return jt;if(i===!1||Ta(i))return i}return!0}),K(e=>e!==jt),me(1)))}function Ta(n){return et(n)||n instanceof st}function Sa(n,e){return L(i=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return o.length===0&&s.length===0?g(P(p({},i),{guardsResult:!0})):ba(o,t,r,n).pipe(L(a=>a&&ga(a)?Ea(t,s,n,e):g(a)),b(a=>P(p({},i),{guardsResult:a})))})}function ba(n,e,i,t){return N(n).pipe(L(r=>Da(r.component,r.route,i,e,t)),ee(r=>r!==!0,!0))}function Ea(n,e,i,t){return N(e).pipe(Q(r=>br(Ia(r.route.parent,t),Ca(r.route,t),Ma(n,r.path,i),Aa(n,r.route,i))),ee(r=>r!==!0,!0))}function Ca(n,e){return n!==null&&e&&e(new Zn(n)),g(!0)}function Ia(n,e){return n!==null&&e&&e(new Hn(n)),g(!0)}function Aa(n,e,i){let t=e.routeConfig?e.routeConfig.canActivate:null;if(!t||t.length===0)return g(!0);let r=t.map(s=>rn(()=>{let o=dt(e)??i,a=Oe(s,o),u=va(a)?a.canActivate(e,n):z(o,()=>a(e,n));return ue(u).pipe(ee())}));return g(r).pipe(De())}function Ma(n,e,i){let t=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>da(o)).filter(o=>o!==null).map(o=>rn(()=>{let a=o.guards.map(u=>{let c=dt(o.node)??i,l=Oe(u,c),h=ya(l)?l.canActivateChild(t,n):z(c,()=>l(t,n));return ue(h).pipe(ee())});return g(a).pipe(De())}));return g(s).pipe(De())}function Da(n,e,i,t,r){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return g(!0);let o=s.map(a=>{let u=dt(e)??r,c=Oe(a,u),l=wa(c)?c.canDeactivate(n,e,i,t):z(u,()=>c(n,e,i,t));return ue(l).pipe(ee())});return g(o).pipe(De())}function Oa(n,e,i,t){let r=e.canLoad;if(r===void 0||r.length===0)return g(!0);let s=r.map(o=>{let a=Oe(o,n),u=ma(a)?a.canLoad(e,i):z(n,()=>a(e,i));return ue(u)});return g(s).pipe(De(),ds(t))}function ds(n){return Rr(M(e=>{if(typeof e!="boolean")throw Kt(n,e)}),b(e=>e===!0))}function Pa(n,e,i,t){let r=e.canMatch;if(!r||r.length===0)return g(!0);let s=r.map(o=>{let a=Oe(o,n),u=Ra(a)?a.canMatch(e,i):z(n,()=>a(e,i));return ue(u)});return g(s).pipe(De(),ds(t))}var ot=class{constructor(e){this.segmentGroup=e||null}},at=class extends Error{constructor(e){super(),this.urlTree=e}};function Re(n){return xe(new ot(n))}function Na(n){return xe(new A(4e3,!1))}function xa(n){return xe(us(!1,$.GuardRejected))}var sr=class{constructor(e,i){this.urlSerializer=e,this.urlTree=i}lineralizeSegments(e,i){let t=[],r=i.root;for(;;){if(t=t.concat(r.segments),r.numberOfChildren===0)return g(t);if(r.numberOfChildren>1||!r.children[m])return Na(`${e.redirectTo}`);r=r.children[m]}}applyRedirectCommands(e,i,t,r,s){if(typeof i!="string"){let a=i,{queryParams:u,fragment:c,routeConfig:l,url:h,outlet:d,params:v,data:y,title:O}=r,w=z(s,()=>a({params:v,data:y,queryParams:u,fragment:c,routeConfig:l,url:h,outlet:d,title:O}));if(w instanceof oe)throw new at(w);i=w}let o=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,t);if(i[0]==="/")throw new at(o);return o}applyRedirectCreateUrlTree(e,i,t,r){let s=this.createSegmentGroup(e,i.root,t,r);return new oe(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let t={};return Object.entries(e).forEach(([r,s])=>{if(typeof s=="string"&&s[0]===":"){let a=s.substring(1);t[r]=i[a]}else t[r]=s}),t}createSegmentGroup(e,i,t,r){let s=this.createSegments(e,i.segments,t,r),o={};return Object.entries(i.children).forEach(([a,u])=>{o[a]=this.createSegmentGroup(e,u,t,r)}),new E(s,o)}createSegments(e,i,t,r){return i.map(s=>s.path[0]===":"?this.findPosParam(e,s,r):this.findOrReturn(s,t))}findPosParam(e,i,t){let r=t[i.path.substring(1)];if(!r)throw new A(4001,!1);return r}findOrReturn(e,i){let t=0;for(let r of i){if(r.path===e.path)return i.splice(t),r;t++}return e}},or={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ua(n,e,i,t,r){let s=dr(n,e,i);return s.matched?(t=ca(e,t),Pa(t,e,i,r).pipe(b(o=>o===!0?s:p({},or)))):g(s)}function dr(n,e,i){if(e.path==="**")return ja(i);if(e.path==="")return e.pathMatch==="full"&&(n.hasChildren()||i.length>0)?p({},or):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||Do)(i,n,e);if(!r)return p({},or);let s={};Object.entries(r.posParams??{}).forEach(([a,u])=>{s[a]=u.path});let o=r.consumed.length>0?p(p({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:o,positionalParamSegments:r.posParams??{}}}function ja(n){return{matched:!0,parameters:n.length>0?Wi(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function _i(n,e,i,t){return i.length>0&&Fa(n,i,t)?{segmentGroup:new E(e,ka(t,new E(i,n.children))),slicedSegments:[]}:i.length===0&&$a(n,i,t)?{segmentGroup:new E(n.segments,La(n,i,t,n.children)),slicedSegments:i}:{segmentGroup:new E(n.segments,n.children),slicedSegments:i}}function La(n,e,i,t){let r={};for(let s of i)if(Yt(n,e,s)&&!t[V(s)]){let o=new E([],{});r[V(s)]=o}return p(p({},t),r)}function ka(n,e){let i={};i[m]=e;for(let t of n)if(t.path===""&&V(t)!==m){let r=new E([],{});i[V(t)]=r}return i}function Fa(n,e,i){return i.some(t=>Yt(n,e,t)&&V(t)!==m)}function $a(n,e,i){return i.some(t=>Yt(n,e,t))}function Yt(n,e,i){return(n.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function _a(n,e,i,t){return V(n)!==t&&(t===m||!Yt(e,i,n))?!1:dr(e,n,i).matched}function za(n,e,i){return e.length===0&&!n.children[i]}var ar=class{};function Ba(n,e,i,t,r,s,o="emptyOnly"){return new cr(n,e,i,t,r,o,s).recognize()}var Va=31,cr=class{constructor(e,i,t,r,s,o,a){this.injector=e,this.configLoader=i,this.rootComponentType=t,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new sr(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new A(4002,`'${e.segmentGroup}'`)}recognize(){let e=_i(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(b(({children:i,rootSnapshot:t})=>{let r=new F(t,i),s=new Xt("",r),o=Ko(t,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(e){let i=new be([],Object.freeze({}),Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),m,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,m,i).pipe(b(t=>({children:t,rootSnapshot:i})),ge(t=>{if(t instanceof at)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof ot?this.noMatchError(t):t}))}processSegmentGroup(e,i,t,r,s){return t.segments.length===0&&t.hasChildren()?this.processChildren(e,i,t,s):this.processSegment(e,i,t,t.segments,r,!0,s).pipe(b(o=>o instanceof F?[o]:[]))}processChildren(e,i,t,r){let s=[];for(let o of Object.keys(t.children))o==="primary"?s.unshift(o):s.push(o);return N(s).pipe(Q(o=>{let a=t.children[o],u=ua(i,o);return this.processSegmentGroup(e,u,a,o,r)}),Ir((o,a)=>(o.push(...a),o)),sn(null),Cr(),L(o=>{if(o===null)return Re(t);let a=fs(o);return qa(a),g(a)}))}processSegment(e,i,t,r,s,o,a){return N(i).pipe(Q(u=>this.processSegmentAgainstRoute(u._injector??e,i,u,t,r,s,o,a).pipe(ge(c=>{if(c instanceof ot)return g(null);throw c}))),ee(u=>!!u),ge(u=>{if(hs(u))return za(t,r,s)?g(new ar):Re(t);throw u}))}processSegmentAgainstRoute(e,i,t,r,s,o,a,u){return _a(t,r,s,o)?t.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,t,s,o,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,t,s,o,u):Re(r):Re(r)}expandSegmentAgainstRouteUsingRedirect(e,i,t,r,s,o,a){let{matched:u,parameters:c,consumedSegments:l,positionalParamSegments:h,remainingSegments:d}=dr(i,r,s);if(!u)return Re(i);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Va&&(this.allowRedirects=!1));let v=new be(s,c,Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,zi(r),V(r),r.component??r._loadedComponent??null,r,Bi(r)),y=Wt(v,a,this.paramsInheritanceStrategy);v.params=Object.freeze(y.params),v.data=Object.freeze(y.data);let O=this.applyRedirects.applyRedirectCommands(l,r.redirectTo,h,v,e);return this.applyRedirects.lineralizeSegments(r,O).pipe(L(w=>this.processSegment(e,t,i,w.concat(d),o,!1,a)))}matchSegmentAgainstRoute(e,i,t,r,s,o){let a=Ua(i,t,r,e,this.urlSerializer);return t.path==="**"&&(i.children={}),a.pipe(k(u=>u.matched?(e=t._injector??e,this.getChildConfig(e,t,r).pipe(k(({routes:c})=>{let l=t._loadedInjector??e,{parameters:h,consumedSegments:d,remainingSegments:v}=u,y=new be(d,h,Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,zi(t),V(t),t.component??t._loadedComponent??null,t,Bi(t)),O=Wt(y,o,this.paramsInheritanceStrategy);y.params=Object.freeze(O.params),y.data=Object.freeze(O.data);let{segmentGroup:w,slicedSegments:T}=_i(i,d,v,c);if(T.length===0&&w.hasChildren())return this.processChildren(l,c,w,y).pipe(b(j=>new F(y,j)));if(c.length===0&&T.length===0)return g(new F(y,[]));let x=V(t)===s;return this.processSegment(l,c,w,T,x?m:s,!0,y).pipe(b(j=>new F(y,j instanceof F?[j]:[])))}))):Re(i)))}getChildConfig(e,i,t){return i.children?g({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?g({routes:i._loadedRoutes,injector:i._loadedInjector}):Oa(e,i,t,this.urlSerializer).pipe(L(r=>r?this.configLoader.loadChildren(e,i).pipe(M(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):xa(i))):g({routes:[],injector:e})}};function qa(n){n.sort((e,i)=>e.value.outlet===m?-1:i.value.outlet===m?1:e.value.outlet.localeCompare(i.value.outlet))}function Ga(n){let e=n.value.routeConfig;return e&&e.path===""}function fs(n){let e=[],i=new Set;for(let t of n){if(!Ga(t)){e.push(t);continue}let r=e.find(s=>t.value.routeConfig===s.value.routeConfig);r!==void 0?(r.children.push(...t.children),i.add(r)):e.push(t)}for(let t of i){let r=fs(t.children);e.push(new F(t.value,r))}return e.filter(t=>!i.has(t))}function zi(n){return n.data||{}}function Bi(n){return n.resolve||{}}function Wa(n,e,i,t,r,s){return L(o=>Ba(n,e,i,t,o.extractedUrl,r,s).pipe(b(({state:a,tree:u})=>P(p({},o),{targetSnapshot:a,urlAfterRedirects:u}))))}function Xa(n,e){return L(i=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=i;if(!r.length)return g(i);let s=new Set(r.map(u=>u.route)),o=new Set;for(let u of s)if(!o.has(u))for(let c of ps(u))o.add(c);let a=0;return N(o).pipe(Q(u=>s.has(u)?Ka(u,t,n,e):(u.data=Wt(u,u.parent,n).resolve,g(void 0))),M(()=>a++),on(1),L(u=>a===o.size?g(i):Y))})}function ps(n){let e=n.children.map(i=>ps(i)).flat();return[n,...e]}function Ka(n,e,i,t){let r=n.routeConfig,s=n._resolve;return r?.title!==void 0&&!as(r)&&(s[ut]=r.title),Ha(s,n,e,t).pipe(b(o=>(n._resolvedData=o,n.data=Wt(n,n.parent,i).resolve,null)))}function Ha(n,e,i,t){let r=$n(n);if(r.length===0)return g({});let s={};return N(r).pipe(L(o=>Ja(n[o],e,i,t).pipe(ee(),M(a=>{if(a instanceof st)throw Kt(new Ie,a);s[o]=a}))),on(1),Er(s),ge(o=>hs(o)?Y:xe(o)))}function Ja(n,e,i,t){let r=dt(e)??t,s=Oe(n,r),o=s.resolve?s.resolve(e,i):z(r,()=>s(e,i));return ue(o)}function kn(n){return k(e=>{let i=n(e);return i?N(i).pipe(b(()=>e)):g(e)})}var gs=(()=>{let e=class e{buildTitle(t){let r,s=t.root;for(;s!==void 0;)r=this.getResolvedTitleForRoute(s)??r,s=s.children.find(o=>o.outlet===m);return r}getResolvedTitleForRoute(t){return t.data[ut]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=S({token:e,factory:()=>f(Za),providedIn:"root"});let n=e;return n})(),Za=(()=>{let e=class e extends gs{constructor(t){super(),this.title=t}updateTitle(t){let r=this.buildTitle(t);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(R(Ui))},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),pt=new C("",{providedIn:"root",factory:()=>({})}),ct=new C(""),fr=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=f(Tt)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return g(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let r=ue(t.loadComponent()).pipe(b(ms),M(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),ve(()=>{this.componentLoaders.delete(t)})),s=new tn(r,()=>new Z).pipe(en());return this.componentLoaders.set(t,s),s}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return g({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=Ya(r,this.compiler,t,this.onLoadEndListener).pipe(ve(()=>{this.childrenLoaders.delete(r)})),a=new tn(o,()=>new Z).pipe(en());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Ya(n,e,i,t){return ue(n.loadChildren()).pipe(b(ms),L(r=>r instanceof Gr||Array.isArray(r)?g(r):N(e.compileModuleAsync(r))),b(r=>{t&&t(n);let s,o,a=!1;return Array.isArray(r)?(o=r,a=!0):(s=r.create(i).injector,o=s.get(ct,[],{optional:!0,self:!0}).flat()),{routes:o.map(hr),injector:s}}))}function Qa(n){return n&&typeof n=="object"&&"default"in n}function ms(n){return Qa(n)?n.default:n}var pr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=S({token:e,factory:()=>f(ec),providedIn:"root"});let n=e;return n})(),ec=(()=>{let e=class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),vs=new C(""),ys=new C("");function tc(n,e,i){let t=n.get(ys),r=n.get(U);return n.get(q).runOutsideAngular(()=>{if(!r.startViewTransition||t.skipNextTransition)return t.skipNextTransition=!1,new Promise(c=>setTimeout(c));let s,o=new Promise(c=>{s=c}),a=r.startViewTransition(()=>(s(),nc(n))),{onViewTransitionCreated:u}=t;return u&&z(n,()=>u({transition:a,from:e,to:i})),o})}function nc(n){return new Promise(e=>{vn(()=>setTimeout(e),{injector:n,phase:Br.Read})})}var rc=new C(""),gr=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Z,this.transitionAbortSubject=new Z,this.configLoader=f(fr),this.environmentInjector=f(te),this.urlSerializer=f(lt),this.rootContexts=f(ht),this.location=f(_e),this.inputBindingEnabled=f(Zt,{optional:!0})!==null,this.titleStrategy=f(gs),this.options=f(pt,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=f(pr),this.createViewTransition=f(vs,{optional:!0}),this.navigationErrorHandler=f(rc,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>g(void 0),this.rootComponentType=null;let t=s=>this.events.next(new Xn(s)),r=s=>this.events.next(new Kn(s));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;this.transitions?.next(P(p(p({},this.transitions.value),t),{id:r}))}setupNavigations(t,r,s){return this.transitions=new _({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Ye,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(K(o=>o.id!==0),b(o=>P(p({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),k(o=>{let a=!1,u=!1;return g(o).pipe(k(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",$.SupersededByNewNavigation),Y;this.currentTransition=o,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?P(p({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=c.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!l&&h!=="reload"){let d="";return this.events.next(new ae(c.id,this.urlSerializer.serialize(c.rawUrl),d,zt.IgnoredSameUrlNavigation)),c.resolve(!1),Y}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return g(c).pipe(k(d=>{let v=this.transitions?.getValue();return this.events.next(new Ae(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),v!==this.transitions?.getValue()?Y:Promise.resolve(d)}),Wa(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),M(d=>{o.targetSnapshot=d.targetSnapshot,o.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=P(p({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let v=new Bt(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(v)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:d,extractedUrl:v,source:y,restoredState:O,extras:w}=c,T=new Ae(d,this.urlSerializer.serialize(v),y,O);this.events.next(T);let x=ss(this.rootComponentType).snapshot;return this.currentTransition=o=P(p({},c),{targetSnapshot:x,urlAfterRedirects:v,extras:P(p({},w),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=v,g(o)}else{let d="";return this.events.next(new ae(c.id,this.urlSerializer.serialize(c.extractedUrl),d,zt.IgnoredByUrlHandlingStrategy)),c.resolve(!1),Y}}),M(c=>{let l=new Vn(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),b(c=>(this.currentTransition=o=P(p({},c),{guards:ha(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),o)),Sa(this.environmentInjector,c=>this.events.next(c)),M(c=>{if(o.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw Kt(this.urlSerializer,c.guardsResult);let l=new qn(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),K(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",$.GuardRejected),!1)),kn(c=>{if(c.guards.canActivateChecks.length)return g(c).pipe(M(l=>{let h=new Gn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(h)}),k(l=>{let h=!1;return g(l).pipe(Xa(this.paramsInheritanceStrategy,this.environmentInjector),M({next:()=>h=!0,complete:()=>{h||this.cancelNavigationTransition(l,"",$.NoDataFromResolver)}}))}),M(l=>{let h=new Wn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(h)}))}),kn(c=>{let l=h=>{let d=[];h.routeConfig?.loadComponent&&!h.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(h.routeConfig).pipe(M(v=>{h.component=v}),b(()=>{})));for(let v of h.children)d.push(...l(v));return d};return mt(l(c.targetSnapshot.root)).pipe(sn(null),me(1))}),kn(()=>this.afterPreactivation()),k(()=>{let{currentSnapshot:c,targetSnapshot:l}=o,h=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return h?N(h).pipe(b(()=>o)):g(o)}),b(c=>{let l=ra(t.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o=P(p({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,o}),M(()=>{this.events.next(new rt)}),la(this.rootContexts,t.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),me(1),M({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new X(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),Mr(this.transitionAbortSubject.pipe(M(c=>{throw c}))),ve(()=>{!a&&!u&&this.cancelNavigationTransition(o,"",$.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),ge(c=>{if(u=!0,ls(c))this.events.next(new H(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),oa(c)?this.events.next(new Me(c.url,c.navigationBehaviorOptions)):o.resolve(!1);else{let l=new nt(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0);try{let h=z(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(h instanceof st){let{message:d,cancellationCode:v}=Kt(this.urlSerializer,h);this.events.next(new H(o.id,this.urlSerializer.serialize(o.extractedUrl),d,v)),this.events.next(new Me(h.redirectTo,h.navigationBehaviorOptions))}else{this.events.next(l);let d=t.errorHandler(c);o.resolve(!!d)}}catch(h){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(h)}}return Y}))}))}cancelNavigationTransition(t,r,s){let o=new H(t.id,this.urlSerializer.serialize(t.extractedUrl),r,s);this.events.next(o),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function ic(n){return n!==Ye}var sc=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=S({token:e,factory:()=>f(oc),providedIn:"root"});let n=e;return n})(),ur=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},oc=(()=>{let e=class e extends ur{};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=hn(e)))(s||e)}})(),e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),ws=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=S({token:e,factory:()=>f(ac),providedIn:"root"});let n=e;return n})(),ac=(()=>{let e=class e extends ws{constructor(){super(...arguments),this.location=f(_e),this.urlSerializer=f(lt),this.options=f(pt,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=f(pr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new oe,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=ss(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(r=>{r.type==="popstate"&&t(r.url,r.state)})}handleRouterEvent(t,r){if(t instanceof Ae)this.stateMemento=this.createStateMemento();else if(t instanceof ae)this.rawUrlTree=r.initialUrl;else if(t instanceof Bt){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(s,r)}}else t instanceof rt?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):t instanceof H&&(t.code===$.GuardRejected||t.code===$.NoDataFromResolver)?this.restoreHistory(r):t instanceof nt?this.restoreHistory(r,!0):t instanceof X&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,r){let s=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(s)||r.extras.replaceUrl){let o=this.browserPageId,a=p(p({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(s,"",a)}else{let o=p(p({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(t,r=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===t.finalUrl&&o===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=hn(e)))(s||e)}})(),e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Je=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(Je||{});function Rs(n,e){n.events.pipe(K(i=>i instanceof X||i instanceof H||i instanceof nt||i instanceof ae),b(i=>i instanceof X||i instanceof ae?Je.COMPLETE:(i instanceof H?i.code===$.Redirect||i.code===$.SupersededByNewNavigation:!1)?Je.REDIRECTING:Je.FAILED),K(i=>i!==Je.REDIRECTING),me(1)).subscribe(()=>{e()})}function cc(n){throw n}var uc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},lc={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},J=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=f(Rt),this.stateManager=f(ws),this.options=f(pt,{optional:!0})||{},this.pendingTasks=f(wt),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=f(gr),this.urlSerializer=f(lt),this.location=f(_e),this.urlHandlingStrategy=f(pr),this._events=new Z,this.errorHandler=this.options.errorHandler||cc,this.navigated=!1,this.routeReuseStrategy=f(sc),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=f(ct,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!f(Zt,{optional:!0}),this.eventsSubscription=new wr,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(r=>{try{let s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof H&&r.code!==$.Redirect&&r.code!==$.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof X)this.navigated=!0;else if(r instanceof Me){let a=r.navigationBehaviorOptions,u=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),c=p({info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:s.extras.replaceUrl||this.urlUpdateStrategy==="eager"||ic(s.source)},a);this.scheduleNavigation(u,Ye,null,c,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}dc(r)&&this._events.next(r)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ye,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",r)},0)})}navigateToSyncWithBrowser(t,r,s){let o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let c=p({},s);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let u=this.parseUrl(t);this.scheduleNavigation(u,r,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(hr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){let{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:u,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:a,h=null;switch(u){case"merge":h=p(p({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}h!==null&&(h=this.removeEmptyProps(h));let d;try{let v=s?s.snapshot:this.routerState.snapshot.root;d=ts(v)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),d=this.currentUrlTree.root}return ns(d,t,h,l??null)}navigateByUrl(t,r={skipLocationChange:!1}){let s=et(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,Ye,null,r)}navigate(t,r={skipLocationChange:!1}){return hc(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,r){let s;if(r===!0?s=p({},uc):r===!1?s=p({},lc):s=r,et(t))return ji(this.currentUrlTree,t,s);let o=this.parseUrl(t);return ji(this.currentUrlTree,o,s)}removeEmptyProps(t){return Object.entries(t).reduce((r,[s,o])=>(o!=null&&(r[s]=o),r),{})}scheduleNavigation(t,r,s,o,a){if(this.disposed)return Promise.resolve(!1);let u,c,l;a?(u=a.resolve,c=a.reject,l=a.promise):l=new Promise((d,v)=>{u=d,c=v});let h=this.pendingTasks.add();return Rs(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:u,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function hc(n){for(let e=0;e<n.length;e++)if(n[e]==null)throw new A(4008,!1)}function dc(n){return!(n instanceof rt)&&!(n instanceof Me)}var zu=(()=>{let e=class e{constructor(t,r,s,o,a,u){this.router=t,this.route=r,this.tabIndexAttribute=s,this.renderer=o,this.el=a,this.locationStrategy=u,this.href=null,this.commands=null,this.onChanges=new Z,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=t.events.subscribe(l=>{l instanceof X&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){t!=null?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,r,s,o,a){let u=this.urlTree;if(u===null||this.isAnchorElement&&(t!==0||r||s||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let t=this.urlTree;this.href=t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;let r=this.href===null?null:kr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(t,r){let s=this.renderer,o=this.el.nativeElement;r!==null?s.setAttribute(o,t,r):s.removeAttribute(o,t)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(r){return new(r||e)(we(J),we(ce),xr("tabindex"),we(_r),we(Ur),we($e))},e.\u0275dir=un({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,s){r&1&&Kr("click",function(a){return s.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Wr("target",s.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",St],skipLocationChange:[2,"skipLocationChange","skipLocationChange",St],replaceUrl:[2,"replaceUrl","replaceUrl",St],routerLink:"routerLink"},standalone:!0,features:[qr,ln]});let n=e;return n})();var Jt=class{};var fc=(()=>{let e=class e{constructor(t,r,s,o,a){this.router=t,this.injector=s,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(K(t=>t instanceof X),Q(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){let s=[];for(let o of r){o.providers&&!o._injector&&(o._injector=yn(o.providers,t,`Route: ${o.path}`));let a=o._injector??t,u=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&s.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&s.push(this.processRoutes(u,o.children??o._loadedRoutes))}return N(s).pipe(nn())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let s;r.loadChildren&&r.canLoad===void 0?s=this.loader.loadChildren(t,r):s=g(null);let o=s.pipe(L(a=>a===null?g(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??t,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(r);return N([o,a]).pipe(nn())}else return o})}};e.\u0275fac=function(r){return new(r||e)(R(J),R(Tt),R(te),R(Jt),R(fr))},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Ts=new C(""),pc=(()=>{let e=class e{constructor(t,r,s,o,a={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=s,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=f(te),a.scrollPositionRestoration||="disabled",a.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(t=>{t instanceof Ae?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof X?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof ae&&t.code===zt.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof Vt&&(t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,r){this.zone.runOutsideAngular(()=>Ne(this,null,function*(){yield new Promise(s=>{setTimeout(()=>{s()}),vn(()=>{s()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new Vt(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(r){Fr()},e.\u0275prov=S({token:e,factory:e.\u0275fac});let n=e;return n})();function Bu(n,...e){return ye([{provide:ct,multi:!0,useValue:n},[],{provide:ce,useFactory:Ss,deps:[J]},{provide:ke,multi:!0,useFactory:bs},e.map(i=>i.\u0275providers)])}function Ss(n){return n.routerState.root}function gt(n,e){return{\u0275kind:n,\u0275providers:e}}function bs(){let n=f(dn);return e=>{let i=n.get(Fe);if(e!==i.components[0])return;let t=n.get(J),r=n.get(Es);n.get(mr)===1&&t.initialNavigation(),n.get(Cs,null,an.Optional)?.setUpPreloading(),n.get(Ts,null,an.Optional)?.init(),t.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var Es=new C("",{factory:()=>new Z}),mr=new C("",{providedIn:"root",factory:()=>1});function gc(){return gt(2,[{provide:mr,useValue:0},{provide:wn,multi:!0,deps:[dn],useFactory:e=>{let i=e.get(ri,Promise.resolve());return()=>i.then(()=>new Promise(t=>{let r=e.get(J),s=e.get(Es);Rs(r,()=>{t(!0)}),e.get(gr).afterPreactivation=()=>(t(!0),s.closed?g(void 0):s),r.initialNavigation()}))}}])}function mc(){return gt(3,[{provide:wn,multi:!0,useFactory:()=>{let e=f(J);return()=>{e.setUpLocationChangeListener()}}},{provide:mr,useValue:2}])}var Cs=new C("");function vc(n){return gt(0,[{provide:Cs,useExisting:fc},{provide:Jt,useExisting:n}])}function yc(){return gt(8,[$i,{provide:Zt,useExisting:$i}])}function wc(n){let e=[{provide:vs,useValue:tc},{provide:ys,useValue:p({skipNextTransition:!!n?.skipInitialTransition},n)}];return gt(9,e)}var Vi=new C("ROUTER_FORROOT_GUARD"),Rc=[_e,{provide:lt,useClass:Ie},J,ht,{provide:ce,useFactory:Ss,deps:[J]},fr,[]],Vu=(()=>{let e=class e{constructor(t){}static forRoot(t,r){return{ngModule:e,providers:[Rc,[],{provide:ct,multi:!0,useValue:t},{provide:Vi,useFactory:Ec,deps:[[J,new cn,new Or]]},{provide:pt,useValue:r||{}},r?.useHash?Sc():bc(),Tc(),r?.preloadingStrategy?vc(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Cc(r):[],r?.bindToComponentInputs?yc().\u0275providers:[],r?.enableViewTransitions?wc().\u0275providers:[],Ic()]}}static forChild(t){return{ngModule:e,providers:[{provide:ct,multi:!0,useValue:t}]}}};e.\u0275fac=function(r){return new(r||e)(R(Vi,8))},e.\u0275mod=yt({type:e}),e.\u0275inj=vt({});let n=e;return n})();function Tc(){return{provide:Ts,useFactory:()=>{let n=f(ai),e=f(q),i=f(pt),t=f(gr),r=f(lt);return i.scrollOffset&&n.setOffset(i.scrollOffset),new pc(r,t,n,e,i)}}}function Sc(){return{provide:$e,useClass:si}}function bc(){return{provide:$e,useClass:ii}}function Ec(n){return"guarded"}function Cc(n){return[n.initialNavigation==="disabled"?mc().\u0275providers:[],n.initialNavigation==="enabledBlocking"?gc().\u0275providers:[]]}var qi=new C("");function Ic(){return[{provide:qi,useFactory:bs},{provide:ke,multi:!0,useExisting:qi}]}export{Us as a,kc as b,Ai as c,mu as d,vu as e,Ui as f,yu as g,wu as h,ce as i,na as j,zu as k,Bu as l,Vu as m};
