diff --git a/index.html b/index.html index cd33743..65b31a2 100644 --- a/index.html +++ b/index.html @@ -12,5 +12,5 @@ - + diff --git a/main-S4TUXNJ3.js b/main-H6JHMZPB.js similarity index 99% rename from main-S4TUXNJ3.js rename to main-H6JHMZPB.js index 9622b4c..96c4dc4 100644 --- a/main-S4TUXNJ3.js +++ b/main-H6JHMZPB.js @@ -1,2 +1,2 @@ import{$ as Ie,$a as St,$b as Fi,A as _i,Aa as br,Ab as Mr,B as wi,Ba as gr,Bb as Y,C as ot,Ca as vr,Cb as kr,D as ir,Da as yr,Db as ki,E as or,Ea as _r,Eb as Or,F as rr,Fa as wr,Fb as Nr,G as mt,Ga as Z,Gb as T,H as It,Ha as xr,Hb as Fr,I as xi,Ia as Ce,Ib as ae,J as ar,Ja as Et,Jb as Pr,K as sr,Ka as _,Kb as Oi,L as cr,La as oe,Lb as Re,M as ln,Ma as Ir,Mb as Sn,N as un,Na as bn,Nb as jr,O as B,Oa as Er,Ob as se,P as ee,Pa as Si,Pb as bt,Q as A,Qa as R,Qb as Lr,R as S,Ra as Cr,Rb as Ur,S as b,Sa as Tr,Sb as Rn,T as O,Ta as Sr,Tb as zr,U as dr,Ua as Ct,Ub as An,V as w,Va as Rr,W as Ii,Wa as Ri,X as u,Xa as Te,Xb as $r,Y as m,Ya as Ai,Yb as Br,Z as mn,Za as Tt,_ as Ei,_a as pt,_b as Ni,a as h,aa as k,ab as re,ac as Vr,b as U,ba as N,bb as q,ca as F,cb as tt,d as xe,da as rt,db as z,e as Qo,ea as Lt,eb as Ar,f as dn,fa as lr,fb as Vt,g as bi,ga as Ut,gb as gn,h as gi,ha as ct,hb as Wt,i as G,ia as hn,ib as Rt,j as M,ja as ur,jb as Di,k as yt,ka as mr,kb as vn,l as $,la as Ci,lb as yn,m as p,ma as pn,mb as ft,n as jt,na as Ti,nb as _n,o as tr,oa as zt,ob as Mi,p as er,pa as V,pb as P,q as v,qa as $t,qb as wn,r as te,ra as hr,rb as Ht,s as K,sa as fn,sb as qt,t as vi,ta as pr,tb as xn,u as _t,ua as ht,ub as Dr,v as yi,va as Bt,vb as Se,w as nr,wa as Ee,wb as In,x as st,xa as ne,xb as En,y as wt,ya as ie,yb as Cn,z as xt,za as fr,zb as Tn}from"./chunk-GDNFBKLY.js";var De=class{},Mn=class{},Gt=class n{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` -`).forEach(o=>{let e=o.indexOf(":");if(e>0){let i=o.slice(0,e),r=i.toLowerCase(),a=o.slice(e+1).trim();this.maybeSetNormalizedName(i,r),this.headers.has(r)?this.headers.get(r).push(a):this.headers.set(r,[a])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((o,e)=>{this.setHeaderEntries(e,o)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([o,e])=>{this.setHeaderEntries(o,e)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let o=this.headers.get(t.toLowerCase());return o&&o.length>0?o[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,o){return this.clone({name:t,value:o,op:"a"})}set(t,o){return this.clone({name:t,value:o,op:"s"})}delete(t,o){return this.clone({name:t,value:o,op:"d"})}maybeSetNormalizedName(t,o){this.normalizedNames.has(o)||this.normalizedNames.set(o,t)}init(){this.lazyInit&&(this.lazyInit instanceof n?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(o=>{this.headers.set(o,t.headers.get(o)),this.normalizedNames.set(o,t.normalizedNames.get(o))})}clone(t){let o=new n;return o.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,o.lazyUpdate=(this.lazyUpdate||[]).concat([t]),o}applyUpdate(t){let o=t.name.toLowerCase();switch(t.op){case"a":case"s":let e=t.value;if(typeof e=="string"&&(e=[e]),e.length===0)return;this.maybeSetNormalizedName(t.name,o);let i=(t.op==="a"?this.headers.get(o):void 0)||[];i.push(...e),this.headers.set(o,i);break;case"d":let r=t.value;if(!r)this.headers.delete(o),this.normalizedNames.delete(o);else{let a=this.headers.get(o);if(!a)return;a=a.filter(s=>r.indexOf(s)===-1),a.length===0?(this.headers.delete(o),this.normalizedNames.delete(o)):this.headers.set(o,a)}break}}setHeaderEntries(t,o){let e=(Array.isArray(o)?o:[o]).map(r=>r.toString()),i=t.toLowerCase();this.headers.set(i,e),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(o=>t(this.normalizedNames.get(o),this.headers.get(o)))}};var ji=class{encodeKey(t){return Wr(t)}encodeValue(t){return Wr(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Xs(n,t){let o=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{let r=i.indexOf("="),[a,s]=r==-1?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,r)),t.decodeValue(i.slice(r+1))],d=o.get(a)||[];d.push(s),o.set(a,d)}),o}var Qs=/%(\d[a-f0-9])/gi,tc={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Wr(n){return encodeURIComponent(n).replace(Qs,(t,o)=>tc[o]??t)}function Dn(n){return`${n}`}var At=class n{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new ji,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Xs(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(o=>{let e=t.fromObject[o],i=Array.isArray(e)?e.map(Dn):[Dn(e)];this.map.set(o,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let o=this.map.get(t);return o?o[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,o){return this.clone({param:t,value:o,op:"a"})}appendAll(t){let o=[];return Object.keys(t).forEach(e=>{let i=t[e];Array.isArray(i)?i.forEach(r=>{o.push({param:e,value:r,op:"a"})}):o.push({param:e,value:i,op:"a"})}),this.clone(o)}set(t,o){return this.clone({param:t,value:o,op:"s"})}delete(t,o){return this.clone({param:t,value:o,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let o=this.encoder.encodeKey(t);return this.map.get(t).map(e=>o+"="+this.encoder.encodeValue(e)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let o=new n({encoder:this.encoder});return o.cloneFrom=this.cloneFrom||this,o.updates=(this.updates||[]).concat(t),o}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let o=(t.op==="a"?this.map.get(t.param):void 0)||[];o.push(Dn(t.value)),this.map.set(t.param,o);break;case"d":if(t.value!==void 0){let e=this.map.get(t.param)||[],i=e.indexOf(Dn(t.value));i!==-1&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var Li=class{constructor(){this.map=new Map}set(t,o){return this.map.set(t,o),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function ec(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Hr(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function qr(n){return typeof Blob<"u"&&n instanceof Blob}function Gr(n){return typeof FormData<"u"&&n instanceof FormData}function nc(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var Ae=class n{constructor(t,o,e,i){this.url=o,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let r;if(ec(this.method)||i?(this.body=e!==void 0?e:null,r=i):r=e,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new Gt,this.context??=new Li,!this.params)this.params=new At,this.urlWithParams=o;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=o;else{let s=o.indexOf("?"),d=s===-1?"?":sg.set(x,t.setHeaders[x]),c)),t.setParams&&(l=Object.keys(t.setParams).reduce((g,x)=>g.set(x,t.setParams[x]),l)),new n(o,e,a,{params:l,headers:c,context:f,reportProgress:d,responseType:i,withCredentials:s,transferCache:r})}},ce=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}(ce||{}),Me=class{constructor(t,o=Nn.Ok,e="OK"){this.headers=t.headers||new Gt,this.status=t.status!==void 0?t.status:o,this.statusText=t.statusText||e,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},Ui=class n extends Me{constructor(t={}){super(t),this.type=ce.ResponseHeader}clone(t={}){return new n({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},kn=class n extends Me{constructor(t={}){super(t),this.type=ce.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new n({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},On=class extends Me{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},Nn=function(n){return n[n.Continue=100]="Continue",n[n.SwitchingProtocols=101]="SwitchingProtocols",n[n.Processing=102]="Processing",n[n.EarlyHints=103]="EarlyHints",n[n.Ok=200]="Ok",n[n.Created=201]="Created",n[n.Accepted=202]="Accepted",n[n.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",n[n.NoContent=204]="NoContent",n[n.ResetContent=205]="ResetContent",n[n.PartialContent=206]="PartialContent",n[n.MultiStatus=207]="MultiStatus",n[n.AlreadyReported=208]="AlreadyReported",n[n.ImUsed=226]="ImUsed",n[n.MultipleChoices=300]="MultipleChoices",n[n.MovedPermanently=301]="MovedPermanently",n[n.Found=302]="Found",n[n.SeeOther=303]="SeeOther",n[n.NotModified=304]="NotModified",n[n.UseProxy=305]="UseProxy",n[n.Unused=306]="Unused",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",n[n.BadRequest=400]="BadRequest",n[n.Unauthorized=401]="Unauthorized",n[n.PaymentRequired=402]="PaymentRequired",n[n.Forbidden=403]="Forbidden",n[n.NotFound=404]="NotFound",n[n.MethodNotAllowed=405]="MethodNotAllowed",n[n.NotAcceptable=406]="NotAcceptable",n[n.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",n[n.RequestTimeout=408]="RequestTimeout",n[n.Conflict=409]="Conflict",n[n.Gone=410]="Gone",n[n.LengthRequired=411]="LengthRequired",n[n.PreconditionFailed=412]="PreconditionFailed",n[n.PayloadTooLarge=413]="PayloadTooLarge",n[n.UriTooLong=414]="UriTooLong",n[n.UnsupportedMediaType=415]="UnsupportedMediaType",n[n.RangeNotSatisfiable=416]="RangeNotSatisfiable",n[n.ExpectationFailed=417]="ExpectationFailed",n[n.ImATeapot=418]="ImATeapot",n[n.MisdirectedRequest=421]="MisdirectedRequest",n[n.UnprocessableEntity=422]="UnprocessableEntity",n[n.Locked=423]="Locked",n[n.FailedDependency=424]="FailedDependency",n[n.TooEarly=425]="TooEarly",n[n.UpgradeRequired=426]="UpgradeRequired",n[n.PreconditionRequired=428]="PreconditionRequired",n[n.TooManyRequests=429]="TooManyRequests",n[n.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",n[n.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",n[n.InternalServerError=500]="InternalServerError",n[n.NotImplemented=501]="NotImplemented",n[n.BadGateway=502]="BadGateway",n[n.ServiceUnavailable=503]="ServiceUnavailable",n[n.GatewayTimeout=504]="GatewayTimeout",n[n.HttpVersionNotSupported=505]="HttpVersionNotSupported",n[n.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",n[n.InsufficientStorage=507]="InsufficientStorage",n[n.LoopDetected=508]="LoopDetected",n[n.NotExtended=510]="NotExtended",n[n.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",n}(Nn||{});function Pi(n,t){return{body:t,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 Oe=(()=>{let t=class t{constructor(e){this.handler=e}request(e,i,r={}){let a;if(e instanceof Ae)a=e;else{let c;r.headers instanceof Gt?c=r.headers:c=new Gt(r.headers);let l;r.params&&(r.params instanceof At?l=r.params:l=new At({fromObject:r.params})),a=new Ae(e,i,r.body!==void 0?r.body:null,{headers:c,context:r.context,params:l,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let s=p(a).pipe(xt(c=>this.handler.handle(c)));if(e instanceof Ae||r.observe==="events")return s;let d=s.pipe(st(c=>c instanceof kn));switch(r.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return d.pipe(v(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return d.pipe(v(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return d.pipe(v(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return d.pipe(v(c=>c.body))}case"response":return d;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new At().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Pi(r,i))}post(e,i,r={}){return this.request("POST",e,Pi(r,i))}put(e,i,r={}){return this.request("PUT",e,Pi(r,i))}};t.\u0275fac=function(i){return new(i||t)(u(De))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function Jr(n,t){return t(n)}function ic(n,t){return(o,e)=>t.intercept(o,{handle:i=>n(i,e)})}function oc(n,t,o){return(e,i)=>ct(o,()=>t(e,r=>n(r,i)))}var rc=new w(""),zi=new w(""),ac=new w(""),sc=new w("");function cc(){let n=null;return(t,o)=>{n===null&&(n=(m(rc,{optional:!0})??[]).reduceRight(ic,Jr));let e=m(Te),i=e.add();return n(t,o).pipe(mt(()=>e.remove(i)))}}var Kr=(()=>{let t=class t extends De{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=m(Te);let r=m(sc,{optional:!0});this.backend=r??e}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(zi),...this.injector.get(ac,[])]));this.chain=r.reduceRight((a,s)=>oc(a,s,this.injector),Jr)}let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(mt(()=>this.pendingTasks.remove(i)))}};t.\u0275fac=function(i){return new(i||t)(u(Mn),u(Ut))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();var dc=/^\)\]\}',?\n/;function lc(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}var Zr=(()=>{let t=class t{constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new S(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?$(i.\u0275loadImpl()):p(null)).pipe(B(()=>new dn(a=>{let s=i.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((C,I)=>s.setRequestHeader(C,I.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let C=e.detectContentTypeHeader();C!==null&&s.setRequestHeader("Content-Type",C)}if(e.responseType){let C=e.responseType.toLowerCase();s.responseType=C!=="json"?C:"text"}let d=e.serializeBody(),c=null,l=()=>{if(c!==null)return c;let C=s.statusText||"OK",I=new Gt(s.getAllResponseHeaders()),it=lc(s)||e.url;return c=new Ui({headers:I,status:s.status,statusText:C,url:it}),c},f=()=>{let{headers:C,status:I,statusText:it,url:Xo}=l(),H=null;I!==Nn.NoContent&&(H=typeof s.response>"u"?s.responseText:s.response),I===0&&(I=H?Nn.Ok:0);let fi=I>=200&&I<300;if(e.responseType==="json"&&typeof H=="string"){let Gs=H;H=H.replace(dc,"");try{H=H!==""?JSON.parse(H):null}catch(Ks){H=Gs,fi&&(fi=!1,H={error:Ks,text:H})}}fi?(a.next(new kn({body:H,headers:C,status:I,statusText:it,url:Xo||void 0})),a.complete()):a.error(new On({error:H,headers:C,status:I,statusText:it,url:Xo||void 0}))},g=C=>{let{url:I}=l(),it=new On({error:C,status:s.status||0,statusText:s.statusText||"Unknown Error",url:I||void 0});a.error(it)},x=!1,Q=C=>{x||(a.next(l()),x=!0);let I={type:ce.DownloadProgress,loaded:C.loaded};C.lengthComputable&&(I.total=C.total),e.responseType==="text"&&s.responseText&&(I.partialText=s.responseText),a.next(I)},L=C=>{let I={type:ce.UploadProgress,loaded:C.loaded};C.lengthComputable&&(I.total=C.total),a.next(I)};return s.addEventListener("load",f),s.addEventListener("error",g),s.addEventListener("timeout",g),s.addEventListener("abort",g),e.reportProgress&&(s.addEventListener("progress",Q),d!==null&&s.upload&&s.upload.addEventListener("progress",L)),s.send(d),a.next({type:ce.Sent}),()=>{s.removeEventListener("error",g),s.removeEventListener("abort",g),s.removeEventListener("load",f),s.removeEventListener("timeout",g),e.reportProgress&&(s.removeEventListener("progress",Q),d!==null&&s.upload&&s.upload.removeEventListener("progress",L)),s.readyState!==s.DONE&&s.abort()}})))}};t.\u0275fac=function(i){return new(i||t)(u(An))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Xr=new w(""),uc="XSRF-TOKEN",mc=new w("",{providedIn:"root",factory:()=>uc}),hc="X-XSRF-TOKEN",pc=new w("",{providedIn:"root",factory:()=>hc}),Fn=class{},fc=(()=>{let t=class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Sn(e,this.cookieName),this.lastCookieString=e),this.lastToken}};t.\u0275fac=function(i){return new(i||t)(u(T),u(ht),u(mc))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function bc(n,t){let o=n.url.toLowerCase();if(!m(Xr)||n.method==="GET"||n.method==="HEAD"||o.startsWith("http://")||o.startsWith("https://"))return t(n);let e=m(Fn).getToken(),i=m(pc);return e!=null&&!n.headers.has(i)&&(n=n.clone({headers:n.headers.set(i,e)})),t(n)}var Qr=function(n){return n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch",n}(Qr||{});function gc(n,t){return{\u0275kind:n,\u0275providers:t}}function $i(...n){let t=[Oe,Zr,Kr,{provide:De,useExisting:Kr},{provide:Mn,useExisting:Zr},{provide:zi,useValue:bc,multi:!0},{provide:Xr,useValue:!0},{provide:Fn,useClass:fc}];for(let o of n)t.push(...o.\u0275providers);return Lt(t)}var Yr=new w("");function vc(){return gc(Qr.LegacyInterceptors,[{provide:Yr,useFactory:cc},{provide:zi,useExisting:Yr,multi:!0}])}var ta=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({providers:[$i(vc())]});let n=t;return n})();var Wi=class extends Nr{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Hi=class n extends Wi{static makeCurrent(){Or(new n)}onAndCancel(t,o,e){return t.addEventListener(o,e),()=>{t.removeEventListener(o,e)}}dispatchEvent(t,o){t.dispatchEvent(o)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,o){return o=o||this.getDefaultDocument(),o.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,o){return o==="window"?window:o==="document"?t:o==="body"?t.body:null}getBaseHref(t){let o=_c();return o==null?null:wc(o)}resetBaseElement(){Ne=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Sn(document.cookie,t)}},Ne=null;function _c(){return Ne=Ne||document.querySelector("base"),Ne?Ne.getAttribute("href"):null}function wc(n){return new URL(n,document.baseURI).pathname}var xc=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),qi=new w(""),ra=(()=>{let t=class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(a=>a.supports(e)),!i)throw new S(5101,!1);return this._eventNameToPlugin.set(e,i),i}};t.\u0275fac=function(i){return new(i||t)(u(qi),u(R))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Pn=class{constructor(t){this._doc=t}},Bi="ng-app-id",aa=(()=>{let t=class t{constructor(e,i,r,a={}){this.doc=e,this.appId=i,this.nonce=r,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Rn(a),this.resetHostNodes()}addStyles(e){for(let i of e)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(e){for(let i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){let i=this.styleRef;i.get(e)?.elements?.forEach(r=>r.remove()),i.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${Bi}="${this.appId}"]`);if(e?.length){let i=new Map;return e.forEach(r=>{r.textContent!=null&&i.set(r.textContent,r)}),i}return null}changeUsageCount(e,i){let r=this.styleRef;if(r.has(e)){let a=r.get(e);return a.usage+=i,a.usage}return r.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){let r=this.styleNodesInDOM,a=r?.get(i);if(a?.parentNode===e)return r.delete(i),a.removeAttribute(Bi),a;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(Bi,this.appId),e.appendChild(s),s}}addStyleToHost(e,i){let r=this.getStyleElement(e,i),a=this.styleRef,s=a.get(i)?.elements;s?s.push(r):a.set(i,{elements:[r],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}};t.\u0275fac=function(i){return new(i||t)(u(T),u(fn),u(Ee,8),u(ht))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Vi={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Ki=/%COMP%/g,sa="%COMP%",Ic=`_nghost-${sa}`,Ec=`_ngcontent-${sa}`,Cc=!0,Tc=new w("",{providedIn:"root",factory:()=>Cc});function Sc(n){return Ec.replace(Ki,n)}function Rc(n){return Ic.replace(Ki,n)}function ca(n,t){return t.map(o=>o.replace(Ki,n))}var jn=(()=>{let t=class t{constructor(e,i,r,a,s,d,c,l=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=a,this.doc=s,this.platformId=d,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Rn(d),this.defaultRenderer=new Fe(e,s,c,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Ie.ShadowDom&&(i=U(h({},i),{encapsulation:Ie.Emulated}));let r=this.getOrCreateRenderer(e,i);return r instanceof Ln?r.applyToHost(e):r instanceof Pe&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,a=r.get(i.id);if(!a){let s=this.doc,d=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,g=this.platformIsServer;switch(i.encapsulation){case Ie.Emulated:a=new Ln(c,l,i,this.appId,f,s,d,g);break;case Ie.ShadowDom:return new Gi(c,l,e,i,s,d,this.nonce,g);default:a=new Pe(c,l,i,f,s,d,g);break}r.set(i.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(i){return new(i||t)(u(ra),u(aa),u(fn),u(Tc),u(T),u(ht),u(R),u(Ee))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Fe=class{constructor(t,o,e,i){this.eventManager=t,this.doc=o,this.ngZone=e,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,o){return o?this.doc.createElementNS(Vi[o]||o,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,o){(na(t)?t.content:t).appendChild(o)}insertBefore(t,o,e){t&&(na(t)?t.content:t).insertBefore(o,e)}removeChild(t,o){t&&t.removeChild(o)}selectRootElement(t,o){let e=typeof t=="string"?this.doc.querySelector(t):t;if(!e)throw new S(-5104,!1);return o||(e.textContent=""),e}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,o,e,i){if(i){o=i+":"+o;let r=Vi[i];r?t.setAttributeNS(r,o,e):t.setAttribute(o,e)}else t.setAttribute(o,e)}removeAttribute(t,o,e){if(e){let i=Vi[e];i?t.removeAttributeNS(i,o):t.removeAttribute(`${e}:${o}`)}else t.removeAttribute(o)}addClass(t,o){t.classList.add(o)}removeClass(t,o){t.classList.remove(o)}setStyle(t,o,e,i){i&(Ce.DashCase|Ce.Important)?t.style.setProperty(o,e,i&Ce.Important?"important":""):t.style[o]=e}removeStyle(t,o,e){e&Ce.DashCase?t.style.removeProperty(o):t.style[o]=""}setProperty(t,o,e){t!=null&&(t[o]=e)}setValue(t,o){t.nodeValue=o}listen(t,o,e){if(typeof t=="string"&&(t=ki().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${o}`);return this.eventManager.addEventListener(t,o,this.decoratePreventDefault(e))}decoratePreventDefault(t){return o=>{if(o==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(o)):t(o))===!1&&o.preventDefault()}}};function na(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var Gi=class extends Fe{constructor(t,o,e,i,r,a,s,d){super(t,r,a,d),this.sharedStylesHost=o,this.hostEl=e,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=ca(i.id,i.styles);for(let l of c){let f=document.createElement("style");s&&f.setAttribute("nonce",s),f.textContent=l,this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,o){return super.appendChild(this.nodeOrShadowRoot(t),o)}insertBefore(t,o,e){return super.insertBefore(this.nodeOrShadowRoot(t),o,e)}removeChild(t,o){return super.removeChild(this.nodeOrShadowRoot(t),o)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Pe=class extends Fe{constructor(t,o,e,i,r,a,s,d){super(t,r,a,s),this.sharedStylesHost=o,this.removeStylesOnCompDestroy=i,this.styles=d?ca(d,e.styles):e.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Ln=class extends Pe{constructor(t,o,e,i,r,a,s,d){let c=i+"-"+e.id;super(t,o,e,r,a,s,d,c),this.contentAttr=Sc(c),this.hostAttr=Rc(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,o){let e=super.createElement(t,o);return super.setAttribute(e,this.contentAttr,""),e}},Ac=(()=>{let t=class t extends Pn{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}};t.\u0275fac=function(i){return new(i||t)(u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),ia=["alt","control","meta","shift"],Dc={"\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"},Mc={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},kc=(()=>{let t=class t extends Pn{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r){let a=t.parseEventName(i),s=t.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ki().onAndCancel(e,a.domEventName,s))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let a=t._normalizeKey(i.pop()),s="",d=i.indexOf("code");if(d>-1&&(i.splice(d,1),s="code."),ia.forEach(l=>{let f=i.indexOf(l);f>-1&&(i.splice(f,1),s+=l+".")}),s+=a,i.length!=0||a.length===0)return null;let c={};return c.domEventName=r,c.fullKey=s,c}static matchEventFullKeyCode(e,i){let r=Dc[e.key]||e.key,a="";return i.indexOf("code.")>-1&&(r=e.code,a="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),ia.forEach(s=>{if(s!==r){let d=Mc[s];d(e)&&(a+=s+".")}}),a+=r,a===i)}static eventCallback(e,i,r){return a=>{t.matchEventFullKeyCode(a,e)&&r.runGuarded(()=>i(a))}}static _normalizeKey(e){return e==="esc"?"escape":e}};t.\u0275fac=function(i){return new(i||t)(u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function da(n,t){return Mr(h({rootComponent:n},Oc(t)))}function Oc(n){return{appProviders:[...Lc,...n?.providers??[]],platformProviders:jc}}function Nc(){Hi.makeCurrent()}function Fc(){return new zt}function Pc(){return hr(document),document}var jc=[{provide:ht,useValue:Lr},{provide:pr,useValue:Nc,multi:!0},{provide:T,useFactory:Pc,deps:[]}];var Lc=[{provide:lr,useValue:"root"},{provide:zt,useFactory:Fc,deps:[]},{provide:qi,useClass:Ac,multi:!0,deps:[T,R,ht]},{provide:qi,useClass:kc,multi:!0,deps:[T]},jn,aa,ra,{provide:bn,useExisting:jn},{provide:An,useClass:xc,deps:[]},[]];var la=(()=>{let t=class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}};t.\u0275fac=function(i){return new(i||t)(u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Zi=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=u(Uc),r},providedIn:"root"});let n=t;return n})(),Uc=(()=>{let t=class t extends Zi{constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case Z.NONE:return i;case Z.HTML:return ie(i,"HTML")?ne(i):wr(this._doc,String(i)).toString();case Z.STYLE:return ie(i,"Style")?ne(i):i;case Z.SCRIPT:if(ie(i,"Script"))return ne(i);throw new S(5200,!1);case Z.URL:return ie(i,"URL")?ne(i):_r(String(i));case Z.RESOURCE_URL:if(ie(i,"ResourceURL"))return ne(i);throw new S(5201,!1);default:throw new S(5202,!1)}}bypassSecurityTrustHtml(e){return fr(e)}bypassSecurityTrustStyle(e){return br(e)}bypassSecurityTrustScript(e){return gr(e)}bypassSecurityTrustUrl(e){return vr(e)}bypassSecurityTrustResourceUrl(e){return yr(e)}};t.\u0275fac=function(i){return new(i||t)(u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var y="primary",Xe=Symbol("RouteTitle"),to=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let o=this.params[t];return Array.isArray(o)?o[0]:o}return null}getAll(t){if(this.has(t)){let o=this.params[t];return Array.isArray(o)?o:[o]}return[]}get keys(){return Object.keys(this.params)}};function he(n){return new to(n)}function zc(n,t,o){let e=o.path.split("/");if(e.length>n.length||o.pathMatch==="full"&&(t.hasChildren()||e.lengthe[r]===i)}else return n===t}function wa(n){return n.length>0?n[n.length-1]:null}function Nt(n){return tr(n)?n:Dr(n)?$(Promise.resolve(n)):p(n)}var Bc={exact:Ia,subset:Ea},xa={exact:Vc,subset:Wc,ignored:()=>!0};function ma(n,t,o){return Bc[o.paths](n.root,t.root,o.matrixParams)&&xa[o.queryParams](n.queryParams,t.queryParams)&&!(o.fragment==="exact"&&n.fragment!==t.fragment)}function Vc(n,t){return dt(n,t)}function Ia(n,t,o){if(!Zt(n.segments,t.segments)||!$n(n.segments,t.segments,o)||n.numberOfChildren!==t.numberOfChildren)return!1;for(let e in t.children)if(!n.children[e]||!Ia(n.children[e],t.children[e],o))return!1;return!0}function Wc(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(o=>_a(n[o],t[o]))}function Ea(n,t,o){return Ca(n,t,t.segments,o)}function Ca(n,t,o,e){if(n.segments.length>o.length){let i=n.segments.slice(0,o.length);return!(!Zt(i,o)||t.hasChildren()||!$n(i,o,e))}else if(n.segments.length===o.length){if(!Zt(n.segments,o)||!$n(n.segments,o,e))return!1;for(let i in t.children)if(!n.children[i]||!Ea(n.children[i],t.children[i],e))return!1;return!0}else{let i=o.slice(0,n.segments.length),r=o.slice(n.segments.length);return!Zt(n.segments,i)||!$n(n.segments,i,e)||!n.children[y]?!1:Ca(n.children[y],t,r,e)}}function $n(n,t,o){return t.every((e,i)=>xa[o](n[i].parameters,e.parameters))}var Dt=class{constructor(t=new E([],{}),o={},e=null){this.root=t,this.queryParams=o,this.fragment=e}get queryParamMap(){return this._queryParamMap??=he(this.queryParams),this._queryParamMap}toString(){return Gc.serialize(this)}},E=class{constructor(t,o){this.segments=t,this.children=o,this.parent=null,Object.values(o).forEach(e=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Bn(this)}},Kt=class{constructor(t,o){this.path=t,this.parameters=o}get parameterMap(){return this._parameterMap??=he(this.parameters),this._parameterMap}toString(){return Sa(this)}};function Hc(n,t){return Zt(n,t)&&n.every((o,e)=>dt(o.parameters,t[e].parameters))}function Zt(n,t){return n.length!==t.length?!1:n.every((o,e)=>o.path===t[e].path)}function qc(n,t){let o=[];return Object.entries(n.children).forEach(([e,i])=>{e===y&&(o=o.concat(t(i,e)))}),Object.entries(n.children).forEach(([e,i])=>{e!==y&&(o=o.concat(t(i,e)))}),o}var Qe=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>new Ve,providedIn:"root"});let n=t;return n})(),Ve=class{parse(t){let o=new io(t);return new Dt(o.parseRootSegment(),o.parseQueryParams(),o.parseFragment())}serialize(t){let o=`/${je(t.root,!0)}`,e=Yc(t.queryParams),i=typeof t.fragment=="string"?`#${Kc(t.fragment)}`:"";return`${o}${e}${i}`}},Gc=new Ve;function Bn(n){return n.segments.map(t=>Sa(t)).join("/")}function je(n,t){if(!n.hasChildren())return Bn(n);if(t){let o=n.children[y]?je(n.children[y],!1):"",e=[];return Object.entries(n.children).forEach(([i,r])=>{i!==y&&e.push(`${i}:${je(r,!1)}`)}),e.length>0?`${o}(${e.join("//")})`:o}else{let o=qc(n,(e,i)=>i===y?[je(n.children[y],!1)]:[`${i}:${je(e,!1)}`]);return Object.keys(n.children).length===1&&n.children[y]!=null?`${Bn(n)}/${o[0]}`:`${Bn(n)}/(${o.join("//")})`}}function Ta(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Un(n){return Ta(n).replace(/%3B/gi,";")}function Kc(n){return encodeURI(n)}function no(n){return Ta(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Vn(n){return decodeURIComponent(n)}function ha(n){return Vn(n.replace(/\+/g,"%20"))}function Sa(n){return`${no(n.path)}${Zc(n.parameters)}`}function Zc(n){return Object.entries(n).map(([t,o])=>`;${no(t)}=${no(o)}`).join("")}function Yc(n){let t=Object.entries(n).map(([o,e])=>Array.isArray(e)?e.map(i=>`${Un(o)}=${Un(i)}`).join("&"):`${Un(o)}=${Un(e)}`).filter(o=>o);return t.length?`?${t.join("&")}`:""}var Jc=/^[^\/()?;#]+/;function Yi(n){let t=n.match(Jc);return t?t[0]:""}var Xc=/^[^\/()?;=#]+/;function Qc(n){let t=n.match(Xc);return t?t[0]:""}var td=/^[^=?&#]+/;function ed(n){let t=n.match(td);return t?t[0]:""}var nd=/^[^&#]+/;function id(n){let t=n.match(nd);return t?t[0]:""}var io=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new E([],{}):new E([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let o={};this.peekStartsWith("/(")&&(this.capture("/"),o=this.parseParens(!0));let e={};return this.peekStartsWith("(")&&(e=this.parseParens(!1)),(t.length>0||Object.keys(o).length>0)&&(e[y]=new E(t,o)),e}parseSegment(){let t=Yi(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(t),new Kt(Vn(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let o=Qc(this.remaining);if(!o)return;this.capture(o);let e="";if(this.consumeOptional("=")){let i=Yi(this.remaining);i&&(e=i,this.capture(e))}t[Vn(o)]=Vn(e)}parseQueryParam(t){let o=ed(this.remaining);if(!o)return;this.capture(o);let e="";if(this.consumeOptional("=")){let a=id(this.remaining);a&&(e=a,this.capture(e))}let i=ha(o),r=ha(e);if(t.hasOwnProperty(i)){let a=t[i];Array.isArray(a)||(a=[a],t[i]=a),a.push(r)}else t[i]=r}parseParens(t){let o={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let e=Yi(this.remaining),i=this.remaining[e.length];if(i!=="/"&&i!==")"&&i!==";")throw new S(4010,!1);let r;e.indexOf(":")>-1?(r=e.slice(0,e.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=y);let a=this.parseChildren();o[r]=Object.keys(a).length===1?a[y]:new E([],a),this.consumeOptional("//")}return o}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new S(4011,!1)}};function Ra(n){return n.segments.length>0?new E([],{[y]:n}):n}function Aa(n){let t={};for(let[e,i]of Object.entries(n.children)){let r=Aa(i);if(e===y&&r.segments.length===0&&r.hasChildren())for(let[a,s]of Object.entries(r.children))t[a]=s;else(r.segments.length>0||r.hasChildren())&&(t[e]=r)}let o=new E(n.segments,t);return od(o)}function od(n){if(n.numberOfChildren===1&&n.children[y]){let t=n.children[y];return new E(n.segments.concat(t.segments),t.children)}return n}function pe(n){return n instanceof Dt}function rd(n,t,o=null,e=null){let i=Da(n);return Ma(i,t,o,e)}function Da(n){let t;function o(r){let a={};for(let d of r.children){let c=o(d);a[d.outlet]=c}let s=new E(r.url,a);return r===n&&(t=s),s}let e=o(n.root),i=Ra(e);return t??i}function Ma(n,t,o,e){let i=n;for(;i.parent;)i=i.parent;if(t.length===0)return Ji(i,i,i,o,e);let r=ad(t);if(r.toRoot())return Ji(i,i,new E([],{}),o,e);let a=sd(r,i,n),s=a.processChildren?ze(a.segmentGroup,a.index,r.commands):Oa(a.segmentGroup,a.index,r.commands);return Ji(i,a.segmentGroup,s,o,e)}function Wn(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function We(n){return typeof n=="object"&&n!=null&&n.outlets}function Ji(n,t,o,e,i){let r={};e&&Object.entries(e).forEach(([d,c])=>{r[d]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let a;n===t?a=o:a=ka(n,t,o);let s=Ra(Aa(a));return new Dt(s,r,i)}function ka(n,t,o){let e={};return Object.entries(n.children).forEach(([i,r])=>{r===t?e[i]=o:e[i]=ka(r,t,o)}),new E(n.segments,e)}var Hn=class{constructor(t,o,e){if(this.isAbsolute=t,this.numberOfDoubleDots=o,this.commands=e,t&&e.length>0&&Wn(e[0]))throw new S(4003,!1);let i=e.find(We);if(i&&i!==wa(e))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function ad(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new Hn(!0,0,n);let t=0,o=!1,e=n.reduce((i,r,a)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let s={};return Object.entries(r.outlets).forEach(([d,c])=>{s[d]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:s}]}if(r.segmentPath)return[...i,r.segmentPath]}return typeof r!="string"?[...i,r]:a===0?(r.split("/").forEach((s,d)=>{d==0&&s==="."||(d==0&&s===""?o=!0:s===".."?t++:s!=""&&i.push(s))}),i):[...i,r]},[]);return new Hn(o,t,e)}var ue=class{constructor(t,o,e){this.segmentGroup=t,this.processChildren=o,this.index=e}};function sd(n,t,o){if(n.isAbsolute)return new ue(t,!0,0);if(!o)return new ue(t,!1,NaN);if(o.parent===null)return new ue(o,!0,0);let e=Wn(n.commands[0])?0:1,i=o.segments.length-1+e;return cd(o,i,n.numberOfDoubleDots)}function cd(n,t,o){let e=n,i=t,r=o;for(;r>i;){if(r-=i,e=e.parent,!e)throw new S(4005,!1);i=e.segments.length}return new ue(e,!1,i-r)}function dd(n){return We(n[0])?n[0].outlets:{[y]:n}}function Oa(n,t,o){if(n??=new E([],{}),n.segments.length===0&&n.hasChildren())return ze(n,t,o);let e=ld(n,t,o),i=o.slice(e.commandIndex);if(e.match&&e.pathIndexr!==y)&&n.children[y]&&n.numberOfChildren===1&&n.children[y].segments.length===0){let r=ze(n.children[y],t,o);return new E(n.segments,r.children)}return Object.entries(e).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[r]=Oa(n.children[r],t,a))}),Object.entries(n.children).forEach(([r,a])=>{e[r]===void 0&&(i[r]=a)}),new E(n.segments,i)}}function ld(n,t,o){let e=0,i=t,r={match:!1,pathIndex:0,commandIndex:0};for(;i=o.length)return r;let a=n.segments[i],s=o[e];if(We(s))break;let d=`${s}`,c=e0&&d===void 0)break;if(d&&c&&typeof c=="object"&&c.outlets===void 0){if(!fa(d,c,a))return r;e+=2}else{if(!fa(d,{},a))return r;e++}i++}return{match:!0,pathIndex:i,commandIndex:e}}function oo(n,t,o){let e=n.segments.slice(0,t),i=0;for(;i{typeof e=="string"&&(e=[e]),e!==null&&(t[o]=oo(new E([],{}),0,e))}),t}function pa(n){let t={};return Object.entries(n).forEach(([o,e])=>t[o]=`${e}`),t}function fa(n,t,o){return n==o.path&&dt(t,o.parameters)}var $e="imperative",j=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}(j||{}),et=class{constructor(t,o){this.id=t,this.url=o}},fe=class extends et{constructor(t,o,e="imperative",i=null){super(t,o),this.type=j.NavigationStart,this.navigationTrigger=e,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},lt=class extends et{constructor(t,o,e){super(t,o),this.urlAfterRedirects=e,this.type=j.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},X=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(X||{}),qn=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(qn||{}),Mt=class extends et{constructor(t,o,e,i){super(t,o),this.reason=e,this.code=i,this.type=j.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},kt=class extends et{constructor(t,o,e,i){super(t,o),this.reason=e,this.code=i,this.type=j.NavigationSkipped}},He=class extends et{constructor(t,o,e,i){super(t,o),this.error=e,this.target=i,this.type=j.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Gn=class extends et{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ro=class extends et{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ao=class extends et{constructor(t,o,e,i,r){super(t,o),this.urlAfterRedirects=e,this.state=i,this.shouldActivate=r,this.type=j.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},so=class extends et{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},co=class extends et{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},lo=class{constructor(t){this.route=t,this.type=j.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},uo=class{constructor(t){this.route=t,this.type=j.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},mo=class{constructor(t){this.snapshot=t,this.type=j.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ho=class{constructor(t){this.snapshot=t,this.type=j.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},po=class{constructor(t){this.snapshot=t,this.type=j.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},fo=class{constructor(t){this.snapshot=t,this.type=j.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Kn=class{constructor(t,o,e){this.routerEvent=t,this.position=o,this.anchor=e,this.type=j.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},qe=class{},Ge=class{constructor(t){this.url=t}};var bo=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new tn,this.attachRef=null}},tn=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new bo,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Zn=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let o=this.pathFromRoot(t);return o.length>1?o[o.length-2]:null}children(t){let o=go(t,this._root);return o?o.children.map(e=>e.value):[]}firstChild(t){let o=go(t,this._root);return o&&o.children.length>0?o.children[0].value:null}siblings(t){let o=vo(t,this._root);return o.length<2?[]:o[o.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return vo(t,this._root).map(o=>o.value)}};function go(n,t){if(n===t.value)return t;for(let o of t.children){let e=go(n,o);if(e)return e}return null}function vo(n,t){if(n===t.value)return[t];for(let o of t.children){let e=vo(n,o);if(e.length)return e.unshift(t),e}return[]}var J=class{constructor(t,o){this.value=t,this.children=o}toString(){return`TreeNode(${this.value})`}};function le(n){let t={};return n&&n.children.forEach(o=>t[o.value.outlet]=o),t}var Yn=class extends Zn{constructor(t,o){super(t),this.snapshot=o,Ro(this,t)}toString(){return this.snapshot.toString()}};function Na(n){let t=md(n),o=new M([new Kt("",{})]),e=new M({}),i=new M({}),r=new M({}),a=new M(""),s=new Ot(o,e,r,a,i,y,n,t.root);return s.snapshot=t.root,new Yn(new J(s,[]),t)}function md(n){let t={},o={},e={},i="",r=new Ke([],t,e,i,o,y,n,null,{});return new Jn("",new J(r,[]))}var Ot=class{constructor(t,o,e,i,r,a,s,d){this.urlSubject=t,this.paramsSubject=o,this.queryParamsSubject=e,this.fragmentSubject=i,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=d,this.title=this.dataSubject?.pipe(v(c=>c[Xe]))??p(void 0),this.url=t,this.params=o,this.queryParams=e,this.fragment=i,this.data=r}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(v(t=>he(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(v(t=>he(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function So(n,t,o="emptyOnly"){let e,{routeConfig:i}=n;return t!==null&&(o==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?e={params:h(h({},t.params),n.params),data:h(h({},t.data),n.data),resolve:h(h(h(h({},n.data),t.data),i?.data),n._resolvedData)}:e={params:h({},n.params),data:h({},n.data),resolve:h(h({},n.data),n._resolvedData??{})},i&&Pa(i)&&(e.resolve[Xe]=i.title),e}var Ke=class{get title(){return this.data?.[Xe]}constructor(t,o,e,i,r,a,s,d,c){this.url=t,this.params=o,this.queryParams=e,this.fragment=i,this.data=r,this.outlet=a,this.component=s,this.routeConfig=d,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??=he(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=he(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(e=>e.toString()).join("/"),o=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${o}')`}},Jn=class extends Zn{constructor(t,o){super(o),this.url=t,Ro(this,o)}toString(){return Fa(this._root)}};function Ro(n,t){t.value._routerState=n,t.children.forEach(o=>Ro(n,o))}function Fa(n){let t=n.children.length>0?` { ${n.children.map(Fa).join(", ")} } `:"";return`${n.value}${t}`}function Xi(n){if(n.snapshot){let t=n.snapshot,o=n._futureSnapshot;n.snapshot=o,dt(t.queryParams,o.queryParams)||n.queryParamsSubject.next(o.queryParams),t.fragment!==o.fragment&&n.fragmentSubject.next(o.fragment),dt(t.params,o.params)||n.paramsSubject.next(o.params),$c(t.url,o.url)||n.urlSubject.next(o.url),dt(t.data,o.data)||n.dataSubject.next(o.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function yo(n,t){let o=dt(n.params,t.params)&&Hc(n.url,t.url),e=!n.parent!=!t.parent;return o&&!e&&(!n.parent||yo(n.parent,t.parent))}function Pa(n){return typeof n.title=="string"||n.title===null}var Ao=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=y,this.activateEvents=new $t,this.deactivateEvents=new $t,this.attachEvents=new $t,this.detachEvents=new $t,this.parentContexts=m(tn),this.location=m(Tr),this.changeDetector=m(Tn),this.environmentInjector=m(Ut),this.inputBinder=m(ei,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=e;let r=this.location,s=e.snapshot.component,d=this.parentContexts.getOrCreateContext(this.name).children,c=new _o(e,d,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=rt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[hn]});let n=t;return n})(),_o=class n{__ngOutletInjector(t){return new n(this.route,this.childContexts,t)}constructor(t,o,e){this.route=t,this.childContexts=o,this.parent=e}get(t,o){return t===Ot?this.route:t===tn?this.childContexts:this.parent.get(t,o)}},ei=new w(""),ba=(()=>{let t=class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:i}=e,r=te([i.queryParams,i.params,i.data]).pipe(B(([a,s,d],c)=>(d=h(h(h({},a),s),d),c===0?p(d):Promise.resolve(d)))).subscribe(a=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let s=kr(i.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:d}of s.inputs)e.activatedComponentRef.setInput(d,a[d])});this.outletDataSubscriptions.set(e,r)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function hd(n,t,o){let e=Ze(n,t._root,o?o._root:void 0);return new Yn(e,t)}function Ze(n,t,o){if(o&&n.shouldReuseRoute(t.value,o.value.snapshot)){let e=o.value;e._futureSnapshot=t.value;let i=pd(n,t,o);return new J(e,i)}else{if(n.shouldAttach(t.value)){let r=n.retrieve(t.value);if(r!==null){let a=r.route;return a.value._futureSnapshot=t.value,a.children=t.children.map(s=>Ze(n,s)),a}}let e=fd(t.value),i=t.children.map(r=>Ze(n,r));return new J(e,i)}}function pd(n,t,o){return t.children.map(e=>{for(let i of o.children)if(n.shouldReuseRoute(e.value,i.value.snapshot))return Ze(n,e,i);return Ze(n,e)})}function fd(n){return new Ot(new M(n.url),new M(n.params),new M(n.queryParams),new M(n.fragment),new M(n.data),n.outlet,n.component,n)}var ja="ngNavigationCancelingError";function La(n,t){let{redirectTo:o,navigationBehaviorOptions:e}=pe(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=Ua(!1,X.Redirect);return i.url=o,i.navigationBehaviorOptions=e,i}function Ua(n,t){let o=new Error(`NavigationCancelingError: ${n||""}`);return o[ja]=!0,o.cancellationCode=t,o}function bd(n){return za(n)&&pe(n.url)}function za(n){return!!n&&n[ja]}var gd=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=N({type:t,selectors:[["ng-component"]],standalone:!0,features:[P],decls:1,vars:0,template:function(i,r){i&1&&z(0,"router-outlet")},dependencies:[Ao],encapsulation:2});let n=t;return n})();function vd(n,t){return n.providers&&!n._injector&&(n._injector=Ri(n.providers,t,`Route: ${n.path}`)),n._injector??t}function Do(n){let t=n.children&&n.children.map(Do),o=t?U(h({},n),{children:t}):h({},n);return!o.component&&!o.loadComponent&&(t||o.loadChildren)&&o.outlet&&o.outlet!==y&&(o.component=gd),o}function ut(n){return n.outlet||y}function yd(n,t){let o=n.filter(e=>ut(e)===t);return o.push(...n.filter(e=>ut(e)!==t)),o}function en(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){let o=t.routeConfig;if(o?._loadedInjector)return o._loadedInjector;if(o?._injector)return o._injector}return null}var _d=(n,t,o,e)=>v(i=>(new wo(t,i.targetRouterState,i.currentRouterState,o,e).activate(n),i)),wo=class{constructor(t,o,e,i,r){this.routeReuseStrategy=t,this.futureState=o,this.currState=e,this.forwardEvent=i,this.inputBindingEnabled=r}activate(t){let o=this.futureState._root,e=this.currState?this.currState._root:null;this.deactivateChildRoutes(o,e,t),Xi(this.futureState.root),this.activateChildRoutes(o,e,t)}deactivateChildRoutes(t,o,e){let i=le(o);t.children.forEach(r=>{let a=r.value.outlet;this.deactivateRoutes(r,i[a],e),delete i[a]}),Object.values(i).forEach(r=>{this.deactivateRouteAndItsChildren(r,e)})}deactivateRoutes(t,o,e){let i=t.value,r=o?o.value:null;if(i===r)if(i.component){let a=e.getContext(i.outlet);a&&this.deactivateChildRoutes(t,o,a.children)}else this.deactivateChildRoutes(t,o,e);else r&&this.deactivateRouteAndItsChildren(o,e)}deactivateRouteAndItsChildren(t,o){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,o):this.deactivateRouteAndOutlet(t,o)}detachAndStoreRouteSubtree(t,o){let e=o.getContext(t.value.outlet),i=e&&t.value.component?e.children:o,r=le(t);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,i);if(e&&e.outlet){let a=e.outlet.detach(),s=e.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:a,route:t,contexts:s})}}deactivateRouteAndOutlet(t,o){let e=o.getContext(t.value.outlet),i=e&&t.value.component?e.children:o,r=le(t);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,i);e&&(e.outlet&&(e.outlet.deactivate(),e.children.onOutletDeactivated()),e.attachRef=null,e.route=null)}activateChildRoutes(t,o,e){let i=le(o);t.children.forEach(r=>{this.activateRoutes(r,i[r.value.outlet],e),this.forwardEvent(new fo(r.value.snapshot))}),t.children.length&&this.forwardEvent(new ho(t.value.snapshot))}activateRoutes(t,o,e){let i=t.value,r=o?o.value:null;if(Xi(i),i===r)if(i.component){let a=e.getOrCreateContext(i.outlet);this.activateChildRoutes(t,o,a.children)}else this.activateChildRoutes(t,o,e);else if(i.component){let a=e.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),Xi(s.route.value),this.activateChildRoutes(t,null,a.children)}else{let s=en(i.snapshot);a.attachRef=null,a.route=i,a.injector=s,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(t,null,a.children)}}else this.activateChildRoutes(t,null,e)}},Xn=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},me=class{constructor(t,o){this.component=t,this.route=o}};function wd(n,t,o){let e=n._root,i=t?t._root:null;return Le(e,i,o,[e.value])}function xd(n){let t=n.routeConfig?n.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:n,guards:t}}function ge(n,t){let o=Symbol(),e=t.get(n,o);return e===o?typeof n=="function"&&!dr(n)?n:t.get(n):e}function Le(n,t,o,e,i={canDeactivateChecks:[],canActivateChecks:[]}){let r=le(t);return n.children.forEach(a=>{Id(a,r[a.value.outlet],o,e.concat([a.value]),i),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>Be(s,o.getContext(a),i)),i}function Id(n,t,o,e,i={canDeactivateChecks:[],canActivateChecks:[]}){let r=n.value,a=t?t.value:null,s=o?o.getContext(n.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){let d=Ed(a,r,r.routeConfig.runGuardsAndResolvers);d?i.canActivateChecks.push(new Xn(e)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?Le(n,t,s?s.children:null,e,i):Le(n,t,o,e,i),d&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new me(s.outlet.component,a))}else a&&Be(t,s,i),i.canActivateChecks.push(new Xn(e)),r.component?Le(n,null,s?s.children:null,e,i):Le(n,null,o,e,i);return i}function Ed(n,t,o){if(typeof o=="function")return o(n,t);switch(o){case"pathParamsChange":return!Zt(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Zt(n.url,t.url)||!dt(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!yo(n,t)||!dt(n.queryParams,t.queryParams);case"paramsChange":default:return!yo(n,t)}}function Be(n,t,o){let e=le(n),i=n.value;Object.entries(e).forEach(([r,a])=>{i.component?t?Be(a,t.children.getContext(r),o):Be(a,null,o):Be(a,t,o)}),i.component?t&&t.outlet&&t.outlet.isActivated?o.canDeactivateChecks.push(new me(t.outlet.component,i)):o.canDeactivateChecks.push(new me(null,i)):o.canDeactivateChecks.push(new me(null,i))}function nn(n){return typeof n=="function"}function Cd(n){return typeof n=="boolean"}function Td(n){return n&&nn(n.canLoad)}function Sd(n){return n&&nn(n.canActivate)}function Rd(n){return n&&nn(n.canActivateChild)}function Ad(n){return n&&nn(n.canDeactivate)}function Dd(n){return n&&nn(n.canMatch)}function $a(n){return n instanceof er||n?.name==="EmptyError"}var zn=Symbol("INITIAL_VALUE");function be(){return B(n=>te(n.map(t=>t.pipe(ot(1),un(zn)))).pipe(v(t=>{for(let o of t)if(o!==!0){if(o===zn)return zn;if(o===!1||o instanceof Dt)return o}return!0}),st(t=>t!==zn),ot(1)))}function Md(n,t){return K(o=>{let{targetSnapshot:e,currentSnapshot:i,guards:{canActivateChecks:r,canDeactivateChecks:a}}=o;return a.length===0&&r.length===0?p(U(h({},o),{guardsResult:!0})):kd(a,e,i,n).pipe(K(s=>s&&Cd(s)?Od(e,r,n,t):p(s)),v(s=>U(h({},o),{guardsResult:s})))})}function kd(n,t,o,e){return $(n).pipe(K(i=>Ld(i.component,i.route,o,t,e)),It(i=>i!==!0,!0))}function Od(n,t,o,e){return $(t).pipe(xt(i=>_t(Fd(i.route.parent,e),Nd(i.route,e),jd(n,i.path,o),Pd(n,i.route,o))),It(i=>i!==!0,!0))}function Nd(n,t){return n!==null&&t&&t(new po(n)),p(!0)}function Fd(n,t){return n!==null&&t&&t(new mo(n)),p(!0)}function Pd(n,t,o){let e=t.routeConfig?t.routeConfig.canActivate:null;if(!e||e.length===0)return p(!0);let i=e.map(r=>yi(()=>{let a=en(t)??o,s=ge(r,a),d=Sd(s)?s.canActivate(t,n):ct(a,()=>s(t,n));return Nt(d).pipe(It())}));return p(i).pipe(be())}function jd(n,t,o){let e=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(a=>xd(a)).filter(a=>a!==null).map(a=>yi(()=>{let s=a.guards.map(d=>{let c=en(a.node)??o,l=ge(d,c),f=Rd(l)?l.canActivateChild(e,n):ct(c,()=>l(e,n));return Nt(f).pipe(It())});return p(s).pipe(be())}));return p(r).pipe(be())}function Ld(n,t,o,e,i){let r=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!r||r.length===0)return p(!0);let a=r.map(s=>{let d=en(t)??i,c=ge(s,d),l=Ad(c)?c.canDeactivate(n,t,o,e):ct(d,()=>c(n,t,o,e));return Nt(l).pipe(It())});return p(a).pipe(be())}function Ud(n,t,o,e){let i=t.canLoad;if(i===void 0||i.length===0)return p(!0);let r=i.map(a=>{let s=ge(a,n),d=Td(s)?s.canLoad(t,o):ct(n,()=>s(t,o));return Nt(d)});return p(r).pipe(be(),Ba(e))}function Ba(n){return Qo(A(t=>{if(pe(t))throw La(n,t)}),v(t=>t===!0))}function zd(n,t,o,e){let i=t.canMatch;if(!i||i.length===0)return p(!0);let r=i.map(a=>{let s=ge(a,n),d=Dd(s)?s.canMatch(t,o):ct(n,()=>s(t,o));return Nt(d)});return p(r).pipe(be(),Ba(e))}var Ye=class{constructor(t){this.segmentGroup=t||null}},Qn=class extends Error{constructor(t){super(),this.urlTree=t}};function de(n){return jt(new Ye(n))}function $d(n){return jt(new S(4e3,!1))}function Bd(n){return jt(Ua(!1,X.GuardRejected))}var xo=class{constructor(t,o){this.urlSerializer=t,this.urlTree=o}lineralizeSegments(t,o){let e=[],i=o.root;for(;;){if(e=e.concat(i.segments),i.numberOfChildren===0)return p(e);if(i.numberOfChildren>1||!i.children[y])return $d(t.redirectTo);i=i.children[y]}}applyRedirectCommands(t,o,e){let i=this.applyRedirectCreateUrlTree(o,this.urlSerializer.parse(o),t,e);if(o.startsWith("/"))throw new Qn(i);return i}applyRedirectCreateUrlTree(t,o,e,i){let r=this.createSegmentGroup(t,o.root,e,i);return new Dt(r,this.createQueryParams(o.queryParams,this.urlTree.queryParams),o.fragment)}createQueryParams(t,o){let e={};return Object.entries(t).forEach(([i,r])=>{if(typeof r=="string"&&r.startsWith(":")){let s=r.substring(1);e[i]=o[s]}else e[i]=r}),e}createSegmentGroup(t,o,e,i){let r=this.createSegments(t,o.segments,e,i),a={};return Object.entries(o.children).forEach(([s,d])=>{a[s]=this.createSegmentGroup(t,d,e,i)}),new E(r,a)}createSegments(t,o,e,i){return o.map(r=>r.path.startsWith(":")?this.findPosParam(t,r,i):this.findOrReturn(r,e))}findPosParam(t,o,e){let i=e[o.path.substring(1)];if(!i)throw new S(4001,!1);return i}findOrReturn(t,o){let e=0;for(let i of o){if(i.path===t.path)return o.splice(e),i;e++}return t}},Io={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Vd(n,t,o,e,i){let r=Mo(n,t,o);return r.matched?(e=vd(t,e),zd(e,t,o,i).pipe(v(a=>a===!0?r:h({},Io)))):p(r)}function Mo(n,t,o){if(t.path==="**")return Wd(o);if(t.path==="")return t.pathMatch==="full"&&(n.hasChildren()||o.length>0)?h({},Io):{matched:!0,consumedSegments:[],remainingSegments:o,parameters:{},positionalParamSegments:{}};let i=(t.matcher||zc)(o,n,t);if(!i)return h({},Io);let r={};Object.entries(i.posParams??{}).forEach(([s,d])=>{r[s]=d.path});let a=i.consumed.length>0?h(h({},r),i.consumed[i.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:i.consumed,remainingSegments:o.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function Wd(n){return{matched:!0,parameters:n.length>0?wa(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function ga(n,t,o,e){return o.length>0&&Gd(n,o,e)?{segmentGroup:new E(t,qd(e,new E(o,n.children))),slicedSegments:[]}:o.length===0&&Kd(n,o,e)?{segmentGroup:new E(n.segments,Hd(n,o,e,n.children)),slicedSegments:o}:{segmentGroup:new E(n.segments,n.children),slicedSegments:o}}function Hd(n,t,o,e){let i={};for(let r of o)if(ni(n,t,r)&&!e[ut(r)]){let a=new E([],{});i[ut(r)]=a}return h(h({},e),i)}function qd(n,t){let o={};o[y]=t;for(let e of n)if(e.path===""&&ut(e)!==y){let i=new E([],{});o[ut(e)]=i}return o}function Gd(n,t,o){return o.some(e=>ni(n,t,e)&&ut(e)!==y)}function Kd(n,t,o){return o.some(e=>ni(n,t,e))}function ni(n,t,o){return(n.hasChildren()||t.length>0)&&o.pathMatch==="full"?!1:o.path===""}function Zd(n,t,o,e){return ut(n)!==e&&(e===y||!ni(t,o,n))?!1:Mo(t,n,o).matched}function Yd(n,t,o){return t.length===0&&!n.children[o]}var Eo=class{};function Jd(n,t,o,e,i,r,a="emptyOnly"){return new Co(n,t,o,e,i,a,r).recognize()}var Xd=31,Co=class{constructor(t,o,e,i,r,a,s){this.injector=t,this.configLoader=o,this.rootComponentType=e,this.config=i,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new xo(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new S(4002,`'${t.segmentGroup}'`)}recognize(){let t=ga(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(v(o=>{let e=new Ke([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,{},y,this.rootComponentType,null,{}),i=new J(e,o),r=new Jn("",i),a=rd(e,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(r._root,null),{state:r,tree:a}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,y).pipe(wt(e=>{if(e instanceof Qn)return this.urlTree=e.urlTree,this.match(e.urlTree.root);throw e instanceof Ye?this.noMatchError(e):e}))}inheritParamsAndData(t,o){let e=t.value,i=So(e,o,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r,e))}processSegmentGroup(t,o,e,i){return e.segments.length===0&&e.hasChildren()?this.processChildren(t,o,e):this.processSegment(t,o,e,e.segments,i,!0).pipe(v(r=>r instanceof J?[r]:[]))}processChildren(t,o,e){let i=[];for(let r of Object.keys(e.children))r==="primary"?i.unshift(r):i.push(r);return $(i).pipe(xt(r=>{let a=e.children[r],s=yd(o,r);return this.processSegmentGroup(t,s,a,r)}),sr((r,a)=>(r.push(...a),r)),wi(null),ar(),K(r=>{if(r===null)return de(e);let a=Va(r);return Qd(a),p(a)}))}processSegment(t,o,e,i,r,a){return $(o).pipe(xt(s=>this.processSegmentAgainstRoute(s._injector??t,o,s,e,i,r,a).pipe(wt(d=>{if(d instanceof Ye)return p(null);throw d}))),It(s=>!!s),wt(s=>{if($a(s))return Yd(e,i,r)?p(new Eo):de(e);throw s}))}processSegmentAgainstRoute(t,o,e,i,r,a,s){return Zd(e,i,r,a)?e.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,e,r,a):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(t,i,o,e,r,a):de(i):de(i)}expandSegmentAgainstRouteUsingRedirect(t,o,e,i,r,a){let{matched:s,consumedSegments:d,positionalParamSegments:c,remainingSegments:l}=Mo(o,i,r);if(!s)return de(o);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Xd&&(this.allowRedirects=!1));let f=this.applyRedirects.applyRedirectCommands(d,i.redirectTo,c);return this.applyRedirects.lineralizeSegments(i,f).pipe(K(g=>this.processSegment(t,e,o,g.concat(l),a,!1)))}matchSegmentAgainstRoute(t,o,e,i,r){let a=Vd(o,e,i,t,this.urlSerializer);return e.path==="**"&&(o.children={}),a.pipe(B(s=>s.matched?(t=e._injector??t,this.getChildConfig(t,e,i).pipe(B(({routes:d})=>{let c=e._loadedInjector??t,{consumedSegments:l,remainingSegments:f,parameters:g}=s,x=new Ke(l,g,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,el(e),ut(e),e.component??e._loadedComponent??null,e,nl(e)),{segmentGroup:Q,slicedSegments:L}=ga(o,l,f,d);if(L.length===0&&Q.hasChildren())return this.processChildren(c,d,Q).pipe(v(I=>I===null?null:new J(x,I)));if(d.length===0&&L.length===0)return p(new J(x,[]));let C=ut(e)===r;return this.processSegment(c,d,Q,L,C?y:r,!0).pipe(v(I=>new J(x,I instanceof J?[I]:[])))}))):de(o)))}getChildConfig(t,o,e){return o.children?p({routes:o.children,injector:t}):o.loadChildren?o._loadedRoutes!==void 0?p({routes:o._loadedRoutes,injector:o._loadedInjector}):Ud(t,o,e,this.urlSerializer).pipe(K(i=>i?this.configLoader.loadChildren(t,o).pipe(A(r=>{o._loadedRoutes=r.routes,o._loadedInjector=r.injector})):Bd(o))):p({routes:[],injector:t})}};function Qd(n){n.sort((t,o)=>t.value.outlet===y?-1:o.value.outlet===y?1:t.value.outlet.localeCompare(o.value.outlet))}function tl(n){let t=n.value.routeConfig;return t&&t.path===""}function Va(n){let t=[],o=new Set;for(let e of n){if(!tl(e)){t.push(e);continue}let i=t.find(r=>e.value.routeConfig===r.value.routeConfig);i!==void 0?(i.children.push(...e.children),o.add(i)):t.push(e)}for(let e of o){let i=Va(e.children);t.push(new J(e.value,i))}return t.filter(e=>!o.has(e))}function el(n){return n.data||{}}function nl(n){return n.resolve||{}}function il(n,t,o,e,i,r){return K(a=>Jd(n,t,o,e,a.extractedUrl,i,r).pipe(v(({state:s,tree:d})=>U(h({},a),{targetSnapshot:s,urlAfterRedirects:d}))))}function ol(n,t){return K(o=>{let{targetSnapshot:e,guards:{canActivateChecks:i}}=o;if(!i.length)return p(o);let r=new Set(i.map(d=>d.route)),a=new Set;for(let d of r)if(!a.has(d))for(let c of Wa(d))a.add(c);let s=0;return $(a).pipe(xt(d=>r.has(d)?rl(d,e,n,t):(d.data=So(d,d.parent,n).resolve,p(void 0))),A(()=>s++),xi(1),K(d=>s===a.size?p(o):yt))})}function Wa(n){let t=n.children.map(o=>Wa(o)).flat();return[n,...t]}function rl(n,t,o,e){let i=n.routeConfig,r=n._resolve;return i?.title!==void 0&&!Pa(i)&&(r[Xe]=i.title),al(r,n,t,e).pipe(v(a=>(n._resolvedData=a,n.data=So(n,n.parent,o).resolve,null)))}function al(n,t,o,e){let i=eo(n);if(i.length===0)return p({});let r={};return $(i).pipe(K(a=>sl(n[a],t,o,e).pipe(It(),A(s=>{r[a]=s}))),xi(1),ir(r),wt(a=>$a(a)?yt:jt(a)))}function sl(n,t,o,e){let i=en(t)??e,r=ge(n,i),a=r.resolve?r.resolve(t,o):ct(i,()=>r(t,o));return Nt(a)}function Qi(n){return B(t=>{let o=n(t);return o?$(o).pipe(v(()=>t)):p(t)})}var Ha=(()=>{let t=class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(a=>a.outlet===y);return i}getResolvedTitleForRoute(e){return e.data[Xe]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>m(cl),providedIn:"root"});let n=t;return n})(),cl=(()=>{let t=class t extends Ha{constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}};t.\u0275fac=function(i){return new(i||t)(u(la))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),on=new w("",{providedIn:"root",factory:()=>({})}),Je=new w(""),ko=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=m(Cn)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return p(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let i=Nt(e.loadComponent()).pipe(v(qa),A(a=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=a}),mt(()=>{this.componentLoaders.delete(e)})),r=new gi(i,()=>new G).pipe(bi());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return p({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let a=dl(i,this.compiler,e,this.onLoadEndListener).pipe(mt(()=>{this.childrenLoaders.delete(i)})),s=new gi(a,()=>new G).pipe(bi());return this.childrenLoaders.set(i,s),s}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function dl(n,t,o,e){return Nt(n.loadChildren()).pipe(v(qa),K(i=>i instanceof Rr||Array.isArray(i)?p(i):$(t.compileModuleAsync(i))),v(i=>{e&&e(n);let r,a,s=!1;return Array.isArray(i)?(a=i,s=!0):(r=i.create(o).injector,a=r.get(Je,[],{optional:!0,self:!0}).flat()),{routes:a.map(Do),injector:r}}))}function ll(n){return n&&typeof n=="object"&&"default"in n}function qa(n){return ll(n)?n.default:n}var Oo=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>m(ul),providedIn:"root"});let n=t;return n})(),ul=(()=>{let t=class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Ga=new w(""),Ka=new w("");function ml(n,t,o){let e=n.get(Ka),i=n.get(T);return n.get(R).runOutsideAngular(()=>{if(!i.startViewTransition||e.skipNextTransition)return e.skipNextTransition=!1,Promise.resolve();let r,a=new Promise(c=>{r=c}),s=i.startViewTransition(()=>(r(),hl(n))),{onViewTransitionCreated:d}=e;return d&&ct(n,()=>d({transition:s,from:t,to:o})),a})}function hl(n){return new Promise(t=>{Cr(t,{injector:n})})}var No=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new G,this.transitionAbortSubject=new G,this.configLoader=m(ko),this.environmentInjector=m(Ut),this.urlSerializer=m(Qe),this.rootContexts=m(tn),this.location=m(Re),this.inputBindingEnabled=m(ei,{optional:!0})!==null,this.titleStrategy=m(Ha),this.options=m(on,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=m(Oo),this.createViewTransition=m(Ga,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>p(void 0),this.rootComponentType=null;let e=r=>this.events.next(new lo(r)),i=r=>this.events.next(new uo(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;this.transitions?.next(U(h(h({},this.transitions.value),e),{id:i}))}setupNavigations(e,i,r){return this.transitions=new M({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:$e,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(st(a=>a.id!==0),v(a=>U(h({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),B(a=>{let s=!1,d=!1;return p(a).pipe(B(c=>{if(this.navigationId>a.id)return this.cancelNavigationTransition(a,"",X.SupersededByNewNavigation),yt;this.currentTransition=a,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?U(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),f=c.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!l&&f!=="reload"){let g="";return this.events.next(new kt(c.id,this.urlSerializer.serialize(c.rawUrl),g,qn.IgnoredSameUrlNavigation)),c.resolve(null),yt}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return p(c).pipe(B(g=>{let x=this.transitions?.getValue();return this.events.next(new fe(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),x!==this.transitions?.getValue()?yt:Promise.resolve(g)}),il(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),A(g=>{a.targetSnapshot=g.targetSnapshot,a.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation=U(h({},this.currentNavigation),{finalUrl:g.urlAfterRedirects});let x=new Gn(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);this.events.next(x)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:g,extractedUrl:x,source:Q,restoredState:L,extras:C}=c,I=new fe(g,this.urlSerializer.serialize(x),Q,L);this.events.next(I);let it=Na(this.rootComponentType).snapshot;return this.currentTransition=a=U(h({},c),{targetSnapshot:it,urlAfterRedirects:x,extras:U(h({},C),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=x,p(a)}else{let g="";return this.events.next(new kt(c.id,this.urlSerializer.serialize(c.extractedUrl),g,qn.IgnoredByUrlHandlingStrategy)),c.resolve(null),yt}}),A(c=>{let l=new ro(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),v(c=>(this.currentTransition=a=U(h({},c),{guards:wd(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),a)),Md(this.environmentInjector,c=>this.events.next(c)),A(c=>{if(a.guardsResult=c.guardsResult,pe(c.guardsResult))throw La(this.urlSerializer,c.guardsResult);let l=new ao(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),st(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",X.GuardRejected),!1)),Qi(c=>{if(c.guards.canActivateChecks.length)return p(c).pipe(A(l=>{let f=new so(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(f)}),B(l=>{let f=!1;return p(l).pipe(ol(this.paramsInheritanceStrategy,this.environmentInjector),A({next:()=>f=!0,complete:()=>{f||this.cancelNavigationTransition(l,"",X.NoDataFromResolver)}}))}),A(l=>{let f=new co(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(f)}))}),Qi(c=>{let l=f=>{let g=[];f.routeConfig?.loadComponent&&!f.routeConfig._loadedComponent&&g.push(this.configLoader.loadComponent(f.routeConfig).pipe(A(x=>{f.component=x}),v(()=>{})));for(let x of f.children)g.push(...l(x));return g};return te(l(c.targetSnapshot.root)).pipe(wi(null),ot(1))}),Qi(()=>this.afterPreactivation()),B(()=>{let{currentSnapshot:c,targetSnapshot:l}=a,f=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return f?$(f).pipe(v(()=>a)):p(a)}),v(c=>{let l=hd(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=a=U(h({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,a}),A(()=>{this.events.next(new qe)}),_d(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),ot(1),A({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new lt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),ee(this.transitionAbortSubject.pipe(A(c=>{throw c}))),mt(()=>{!s&&!d&&this.cancelNavigationTransition(a,"",X.SupersededByNewNavigation),this.currentTransition?.id===a.id&&(this.currentNavigation=null,this.currentTransition=null)}),wt(c=>{if(d=!0,za(c))this.events.next(new Mt(a.id,this.urlSerializer.serialize(a.extractedUrl),c.message,c.cancellationCode)),bd(c)?this.events.next(new Ge(c.url)):a.resolve(!1);else{this.events.next(new He(a.id,this.urlSerializer.serialize(a.extractedUrl),c,a.targetSnapshot??void 0));try{a.resolve(e.errorHandler(c))}catch(l){this.options.resolveNavigationPromiseOnError?a.resolve(!1):a.reject(l)}}return yt}))}))}cancelNavigationTransition(e,i,r){let a=new Mt(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(a),e.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}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function pl(n){return n!==$e}var fl=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>m(bl),providedIn:"root"});let n=t;return n})(),To=class{shouldDetach(t){return!1}store(t,o){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,o){return t.routeConfig===o.routeConfig}},bl=(()=>{let t=class t extends To{};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ci(t)))(r||t)}})(),t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Za=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>m(gl),providedIn:"root"});let n=t;return n})(),gl=(()=>{let t=class t extends Za{constructor(){super(...arguments),this.location=m(Re),this.urlSerializer=m(Qe),this.options=m(on,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=m(Oo),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Dt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Na(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(e){return this.location.subscribe(i=>{i.type==="popstate"&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof fe)this.stateMemento=this.createStateMemento();else if(e instanceof kt)this.rawUrlTree=i.initialUrl;else if(e instanceof Gn){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(r,i)}}else e instanceof qe?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):e instanceof Mt&&(e.code===X.GuardRejected||e.code===X.NoDataFromResolver)?this.restoreHistory(i):e instanceof He?this.restoreHistory(i,!0):e instanceof lt&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){let r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){let a=this.browserPageId,s=h(h({},i.extras.state),this.generateNgRouterState(i.id,a));this.location.replaceState(r,"",s)}else{let a=h(h({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(r,"",a)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,a=this.currentPageId-r;a!==0?this.location.historyGo(a):this.currentUrlTree===e.finalUrl&&a===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ci(t)))(r||t)}})(),t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Ue=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(Ue||{});function Ya(n,t){n.events.pipe(st(o=>o instanceof lt||o instanceof Mt||o instanceof He||o instanceof kt),v(o=>o instanceof lt||o instanceof kt?Ue.COMPLETE:(o instanceof Mt?o.code===X.Redirect||o.code===X.SupersededByNewNavigation:!1)?Ue.REDIRECTING:Ue.FAILED),st(o=>o!==Ue.REDIRECTING),ot(1)).subscribe(()=>{t()})}function vl(n){throw n}var yl={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_l={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},gt=(()=>{let t=class t{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.isNgZoneEnabled=!1,this.console=m(xn),this.stateManager=m(Za),this.options=m(on,{optional:!0})||{},this.pendingTasks=m(Te),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=m(No),this.urlSerializer=m(Qe),this.location=m(Re),this.urlHandlingStrategy=m(Oo),this._events=new G,this.errorHandler=this.options.errorHandler||vl,this.navigated=!1,this.routeReuseStrategy=m(fl),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=m(Je,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!m(ei,{optional:!0}),this.eventsSubscription=new xe,this.isNgZoneEnabled=m(R)instanceof R&&R.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(r!==null&&a!==null){if(this.stateManager.handleRouterEvent(i,a),i instanceof Mt&&i.code!==X.Redirect&&i.code!==X.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof lt)this.navigated=!0;else if(i instanceof Ge){let s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),d={info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||pl(r.source)};this.scheduleNavigation(s,$e,null,d,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}xl(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),$e,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,r){let a={replaceUrl:!0},s=r?.navigationId?r:null;if(r){let c=h({},r);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(a.state=c)}let d=this.parseUrl(e);this.scheduleNavigation(d,i,s,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Do),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(e,i={}){let{relativeTo:r,queryParams:a,fragment:s,queryParamsHandling:d,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:s,f=null;switch(d){case"merge":f=h(h({},this.currentUrlTree.queryParams),a);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=a||null}f!==null&&(f=this.removeEmptyProps(f));let g;try{let x=r?r.snapshot:this.routerState.snapshot.root;g=Da(x)}catch{(typeof e[0]!="string"||!e[0].startsWith("/"))&&(e=[]),g=this.currentUrlTree.root}return Ma(g,e,f,l??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=pe(e)?e:this.parseUrl(e),a=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(a,$e,null,i)}navigate(e,i={skipLocationChange:!1}){return wl(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=h({},yl):i===!1?r=h({},_l):r=i,pe(e))return ma(this.currentUrlTree,e,r);let a=this.parseUrl(e);return ma(this.currentUrlTree,a,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,a])=>(a!=null&&(i[r]=a),i),{})}scheduleNavigation(e,i,r,a,s){if(this.disposed)return Promise.resolve(!1);let d,c,l;s?(d=s.resolve,c=s.reject,l=s.promise):l=new Promise((g,x)=>{d=g,c=x});let f=this.pendingTasks.add();return Ya(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(f))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:a,resolve:d,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(g=>Promise.reject(g))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function wl(n){for(let t=0;t{let t=class t{constructor(e,i,r,a,s,d){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=a,this.el=s,this.locationStrategy=d,this.href=null,this.commands=null,this.onChanges=new G,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=e.events.subscribe(l=>{l instanceof lt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){e!=null?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,r,a,s){let d=this.urlTree;if(d===null||this.isAnchorElement&&(e!==0||i||r||a||s||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(d,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let i=this.href===null?null:xr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){let r=this.renderer,a=this.el.nativeElement;i!==null?r.setAttribute(a,e,i):r.removeAttribute(a,e)}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})}};t.\u0275fac=function(i){return new(i||t)(_(gt),_(Ot),pn("tabindex"),_(Er),_(V),_(ae))},t.\u0275dir=rt({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){i&1&&Vt("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),i&2&&Tt("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[k.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Y],skipLocationChange:[k.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Y],replaceUrl:[k.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Y],routerLink:"routerLink"},standalone:!0,features:[Ct,hn]});let n=t;return n})();var ti=class{};var Il=(()=>{let t=class t{constructor(e,i,r,a,s){this.router=e,this.injector=r,this.preloadingStrategy=a,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(st(e=>e instanceof lt),xt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let a of i){a.providers&&!a._injector&&(a._injector=Ri(a.providers,e,`Route: ${a.path}`));let s=a._injector??e,d=a._loadedInjector??s;(a.loadChildren&&!a._loadedRoutes&&a.canLoad===void 0||a.loadComponent&&!a._loadedComponent)&&r.push(this.preloadConfig(s,a)),(a.children||a._loadedRoutes)&&r.push(this.processRoutes(d,a.children??a._loadedRoutes))}return $(r).pipe(vi())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=p(null);let a=r.pipe(K(s=>s===null?p(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(i.loadComponent&&!i._loadedComponent){let s=this.loader.loadComponent(i);return $([a,s]).pipe(vi())}else return a})}};t.\u0275fac=function(i){return new(i||t)(u(gt),u(Cn),u(Ut),u(ti),u(ko))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Xa=new w(""),El=(()=>{let t=class t{constructor(e,i,r,a,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=a,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof fe?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof lt?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof kt&&e.code===qn.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Kn&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Kn(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};t.\u0275fac=function(i){oe()},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function Qa(n,...t){return Lt([{provide:Je,multi:!0,useValue:n},[],{provide:Ot,useFactory:ts,deps:[gt]},{provide:In,multi:!0,useFactory:es},t.map(o=>o.\u0275providers)])}function ts(n){return n.routerState.root}function ve(n,t){return{\u0275kind:n,\u0275providers:t}}function es(){let n=m(Ti);return t=>{let o=n.get(En);if(t!==o.components[0])return;let e=n.get(gt),i=n.get(ns);n.get(Fo)===1&&e.initialNavigation(),n.get(is,null,Ii.Optional)?.setUpPreloading(),n.get(Xa,null,Ii.Optional)?.init(),e.resetRootComponentType(o.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ns=new w("",{factory:()=>new G}),Fo=new w("",{providedIn:"root",factory:()=>1});function Cl(){return ve(2,[{provide:Fo,useValue:0},{provide:Se,multi:!0,deps:[Ti],useFactory:t=>{let o=t.get(Fr,Promise.resolve());return()=>o.then(()=>new Promise(e=>{let i=t.get(gt),r=t.get(ns);Ya(i,()=>{e(!0)}),t.get(No).afterPreactivation=()=>(e(!0),r.closed?p(void 0):r),i.initialNavigation()}))}}])}function Tl(){return ve(3,[{provide:Se,multi:!0,useFactory:()=>{let t=m(gt);return()=>{t.setUpLocationChangeListener()}}},{provide:Fo,useValue:2}])}var is=new w("");function Sl(n){return ve(0,[{provide:is,useExisting:Il},{provide:ti,useExisting:n}])}function os(){return ve(6,[{provide:ae,useClass:Oi}])}function Rl(){return ve(8,[ba,{provide:ei,useExisting:ba}])}function Al(n){let t=[{provide:Ga,useValue:ml},{provide:Ka,useValue:h({skipNextTransition:!!n?.skipInitialTransition},n)}];return ve(9,t)}var va=new w("ROUTER_FORROOT_GUARD"),Dl=[Re,{provide:Qe,useClass:Ve},gt,tn,{provide:Ot,useFactory:ts,deps:[gt]},ko,[]],rs=(()=>{let t=class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[Dl,[],{provide:Je,multi:!0,useValue:e},{provide:va,useFactory:Nl,deps:[[gt,new mn,new Ei]]},{provide:on,useValue:i||{}},i?.useHash?kl():Ol(),Ml(),i?.preloadingStrategy?Sl(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?Fl(i):[],i?.bindToComponentInputs?Rl().\u0275providers:[],i?.enableViewTransitions?Al().\u0275providers:[],Pl()]}}static forChild(e){return{ngModule:t,providers:[{provide:Je,multi:!0,useValue:e}]}}};t.\u0275fac=function(i){return new(i||t)(u(va,8))},t.\u0275mod=F({type:t}),t.\u0275inj=O({});let n=t;return n})();function Ml(){return{provide:Xa,useFactory:()=>{let n=m(zr),t=m(R),o=m(on),e=m(No),i=m(Qe);return o.scrollOffset&&n.setOffset(o.scrollOffset),new El(i,e,n,t,o)}}}function kl(){return{provide:ae,useClass:Oi}}function Ol(){return{provide:ae,useClass:Pr}}function Nl(n){return"guarded"}function Fl(n){return[n.initialNavigation==="disabled"?Tl().\u0275providers:[],n.initialNavigation==="enabledBlocking"?Cl().\u0275providers:[]]}var ya=new w("");function Pl(){return[{provide:ya,useFactory:es},{provide:In,multi:!0,useExisting:ya}]}var jo;try{jo=typeof Intl<"u"&&Intl.v8BreakIterator}catch{jo=!1}var W=(()=>{let t=class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Ur(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||jo)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};t.\u0275fac=function(i){return new(i||t)(u(ht))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var rn;function Ll(){if(rn==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>rn=!0}))}finally{rn=rn||!1}return rn}function ye(n){return Ll()?n:!!n.capture}var Po;function Ul(){if(Po==null){let n=typeof document<"u"?document.head:null;Po=!!(n&&(n.createShadowRoot||n.attachShadow))}return Po}function as(n){if(Ul()){let t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Ft(n){return n.composedPath?n.composedPath()[0]:n.target}function ss(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Lo(n){return Array.isArray(n)?n:[n]}function Yt(n){return n instanceof V?n.nativeElement:n}var cs=new Set,Jt,zl=(()=>{let t=class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Bl}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&$l(e,this._nonce),this._matchMedia(e)}};t.\u0275fac=function(i){return new(i||t)(u(W),u(Ee,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function $l(n,t){if(!cs.has(n))try{Jt||(Jt=document.createElement("style"),t&&Jt.setAttribute("nonce",t),Jt.setAttribute("type","text/css"),document.head.appendChild(Jt)),Jt.sheet&&(Jt.sheet.insertRule(`@media ${n} {body{ }}`,0),cs.add(n))}catch(o){console.error(o)}}function Bl(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var ls=(()=>{let t=class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new G}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return ds(Lo(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=ds(Lo(e)).map(s=>this._registerQuery(s).observable),a=te(r);return a=_t(a.pipe(ot(1)),a.pipe(ln(1),_i(0))),a.pipe(v(s=>{let d={matches:!1,breakpoints:{}};return s.forEach(({matches:c,query:l})=>{d.matches=d.matches||c,d.breakpoints[l]=c}),d}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),a={observable:new dn(s=>{let d=c=>this._zone.run(()=>s.next(c));return i.addListener(d),()=>{i.removeListener(d)}}).pipe(un(i),v(({matches:s})=>({query:e,matches:s})),ee(this._destroySubject)),mql:i};return this._queries.set(e,a),a}};t.\u0275fac=function(i){return new(i||t)(u(zl),u(R))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function ds(n){return n.map(t=>t.split(",")).reduce((t,o)=>t.concat(o)).map(t=>t.trim())}function zo(n){return n.buttons===0||n.detail===0}function $o(n){let t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}var Vl=new w("cdk-input-modality-detector-options"),Wl={ignoreKeys:[18,17,224,91,16]},hs=650,_e=ye({passive:!0,capture:!0}),Hl=(()=>{let t=class t{get mostRecentModality(){return this._modality.value}constructor(e,i,r,a){this._platform=e,this._mostRecentTarget=null,this._modality=new M(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(d=>d===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ft(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs{if($o(s)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ft(s)},this._options=h(h({},Wl),a),this.modalityDetected=this._modality.pipe(ln(1)),this.modalityChanged=this.modalityDetected.pipe(rr()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,_e),r.addEventListener("mousedown",this._onMousedown,_e),r.addEventListener("touchstart",this._onTouchstart,_e)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,_e),document.removeEventListener("mousedown",this._onMousedown,_e),document.removeEventListener("touchstart",this._onTouchstart,_e))}};t.\u0275fac=function(i){return new(i||t)(u(W),u(R),u(T),u(Vl,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var oi=function(n){return n[n.IMMEDIATE=0]="IMMEDIATE",n[n.EVENTUAL=1]="EVENTUAL",n}(oi||{}),ql=new w("cdk-focus-monitor-default-options"),ii=ye({passive:!0,capture:!0}),ps=(()=>{let t=class t{constructor(e,i,r,a,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new G,this._rootNodeFocusAndBlurListener=d=>{let c=Ft(d);for(let l=c;l;l=l.parentElement)d.type==="focus"?this._onFocus(d,l):this._onBlur(d,l)},this._document=a,this._detectionMode=s?.detectionMode||oi.IMMEDIATE}monitor(e,i=!1){let r=Yt(e);if(!this._platform.isBrowser||r.nodeType!==1)return p();let a=as(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;let d={checkChildren:i,subject:new G,rootNode:a};return this._elementInfo.set(r,d),this._registerGlobalListeners(d),d.subject}stopMonitoring(e){let i=Yt(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let a=Yt(e),s=this._getDocument().activeElement;a===s?this._getClosestElementsInfo(a).forEach(([d,c])=>this._originChanged(d,i,c)):(this._setOrigin(i),typeof a.focus=="function"&&a.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===oi.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===oi.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?hs:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),a=Ft(e);!r||!r.checkChildren&&i!==a||this._originChanged(i,this._getFocusOrigin(a),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,ii),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,ii)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ee(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ii),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ii),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,a)=>{(a===e||r.checkChildren&&a.contains(e))&&i.push([a,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let a=e.labels;if(a){for(let s=0;s{let t=class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=m(ls).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Xt.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,a=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),a){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Xt.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Xt.BLACK_ON_WHITE}return Xt.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(Uo,us,ms),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===Xt.BLACK_ON_WHITE?e.add(Uo,us):i===Xt.WHITE_ON_BLACK&&e.add(Uo,ms)}}};t.\u0275fac=function(i){return new(i||t)(u(W),u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Bo=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({});let n=t;return n})();function Zl(){return!0}var Yl=new w("mat-sanity-checks",{providedIn:"root",factory:Zl}),at=(()=>{let t=class t{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return ss()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[e]}};t.\u0275fac=function(i){return new(i||t)(u(fs),u(Yl,8),u(T))},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[Bo,Bo]});let n=t;return n})();var nt=function(n){return n[n.FADING_IN=0]="FADING_IN",n[n.VISIBLE=1]="VISIBLE",n[n.FADING_OUT=2]="FADING_OUT",n[n.HIDDEN=3]="HIDDEN",n}(nt||{}),Ho=class{constructor(t,o,e,i=!1){this._renderer=t,this.element=o,this.config=e,this._animationForciblyDisabledThroughCss=i,this.state=nt.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},bs=ye({passive:!0,capture:!0}),qo=class{constructor(){this._events=new Map,this._delegateEventHandler=t=>{let o=Ft(t);o&&this._events.get(t.type)?.forEach((e,i)=>{(i===o||i.contains(o))&&e.forEach(r=>r.handleEvent(t))})}}addHandler(t,o,e,i){let r=this._events.get(o);if(r){let a=r.get(e);a?a.add(i):r.set(e,new Set([i]))}else this._events.set(o,new Map([[e,new Set([i])]])),t.runOutsideAngular(()=>{document.addEventListener(o,this._delegateEventHandler,bs)})}removeHandler(t,o,e){let i=this._events.get(t);if(!i)return;let r=i.get(o);r&&(r.delete(e),r.size===0&&i.delete(o),i.size===0&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,bs)))}},gs={enterDuration:225,exitDuration:150},Jl=800,vs=ye({passive:!0,capture:!0}),ys=["mousedown","touchstart"],_s=["mouseup","mouseleave","touchend","touchcancel"],sn=class sn{constructor(t,o,e,i){this._target=t,this._ngZone=o,this._platform=i,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=Yt(e))}fadeInRipple(t,o,e={}){let i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=h(h({},gs),e.animation);e.centered&&(t=i.left+i.width/2,o=i.top+i.height/2);let a=e.radius||Xl(t,o,i),s=t-i.left,d=o-i.top,c=r.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=`${s-a}px`,l.style.top=`${d-a}px`,l.style.height=`${a*2}px`,l.style.width=`${a*2}px`,e.color!=null&&(l.style.backgroundColor=e.color),l.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(l);let f=window.getComputedStyle(l),g=f.transitionProperty,x=f.transitionDuration,Q=g==="none"||x==="0s"||x==="0s, 0s"||i.width===0&&i.height===0,L=new Ho(this,l,e,Q);l.style.transform="scale3d(1, 1, 1)",L.state=nt.FADING_IN,e.persistent||(this._mostRecentTransientRipple=L);let C=null;return!Q&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let I=()=>this._finishRippleTransition(L),it=()=>this._destroyRipple(L);l.addEventListener("transitionend",I),l.addEventListener("transitioncancel",it),C={onTransitionEnd:I,onTransitionCancel:it}}),this._activeRipples.set(L,C),(Q||!c)&&this._finishRippleTransition(L),L}fadeOutRipple(t){if(t.state===nt.FADING_OUT||t.state===nt.HIDDEN)return;let o=t.element,e=h(h({},gs),t.config.animation);o.style.transitionDuration=`${e.exitDuration}ms`,o.style.opacity="0",t.state=nt.FADING_OUT,(t._animationForciblyDisabledThroughCss||!e.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){let o=Yt(t);!this._platform.isBrowser||!o||o===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=o,ys.forEach(e=>{sn._eventManager.addHandler(this._ngZone,e,o,this)}))}handleEvent(t){t.type==="mousedown"?this._onMousedown(t):t.type==="touchstart"?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{_s.forEach(o=>{this._triggerElement.addEventListener(o,this,vs)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){t.state===nt.FADING_IN?this._startFadeOutTransition(t):t.state===nt.FADING_OUT&&this._destroyRipple(t)}_startFadeOutTransition(t){let o=t===this._mostRecentTransientRipple,{persistent:e}=t.config;t.state=nt.VISIBLE,!e&&(!o||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){let o=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=nt.HIDDEN,o!==null&&(t.element.removeEventListener("transitionend",o.onTransitionEnd),t.element.removeEventListener("transitioncancel",o.onTransitionCancel)),t.element.remove()}_onMousedown(t){let o=zo(t),e=this._lastTouchStartEvent&&Date.now(){let o=t.state===nt.VISIBLE||t.config.terminateOnPointerUp&&t.state===nt.FADING_IN;!t.config.persistent&&o&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let t=this._triggerElement;t&&(ys.forEach(o=>sn._eventManager.removeHandler(o,t,this)),this._pointerUpEventsRegistered&&_s.forEach(o=>t.removeEventListener(o,this,vs)))}};sn._eventManager=new qo;var Go=sn;function Xl(n,t,o){let e=Math.max(Math.abs(n-o.left),Math.abs(n-o.right)),i=Math.max(Math.abs(t-o.top),Math.abs(t-o.bottom));return Math.sqrt(e*e+i*i)}var Es=new w("mat-ripple-global-options"),Ql=(()=>{let t=class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,r,a,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new Go(this,i,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:h(h(h({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,h(h({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,h(h({},this.rippleConfig),e))}};t.\u0275fac=function(i){return new(i||t)(_(V),_(R),_(W),_(Es,8),_(Bt,8))},t.\u0275dir=rt({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&St("mat-ripple-unbounded",r.unbounded)},inputs:{color:[k.None,"matRippleColor","color"],unbounded:[k.None,"matRippleUnbounded","unbounded"],centered:[k.None,"matRippleCentered","centered"],radius:[k.None,"matRippleRadius","radius"],animation:[k.None,"matRippleAnimation","animation"],disabled:[k.None,"matRippleDisabled","disabled"],trigger:[k.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let n=t;return n})(),Cs=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[at,at]});let n=t;return n})();var ws={capture:!0},xs=["focus","click","mouseenter","touchstart"],Vo="mat-ripple-loader-uninitialized",Wo="mat-ripple-loader-class-name",Is="mat-ripple-loader-centered",ri="mat-ripple-loader-disabled",Ts=(()=>{let t=class t{constructor(){this._document=m(T,{optional:!0}),this._animationMode=m(Bt,{optional:!0}),this._globalRippleOptions=m(Es,{optional:!0}),this._platform=m(W),this._ngZone=m(R),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;let r=e.target.closest(`[${Vo}]`);r&&this._createRipple(r)},this._ngZone.runOutsideAngular(()=>{for(let e of xs)this._document?.addEventListener(e,this._onInteraction,ws)})}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);for(let i of xs)this._document?.removeEventListener(i,this._onInteraction,ws)}configureRipple(e,i){e.setAttribute(Vo,""),(i.className||!e.hasAttribute(Wo))&&e.setAttribute(Wo,i.className||""),i.centered&&e.setAttribute(Is,""),i.disabled&&e.setAttribute(ri,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){let r=this._hosts.get(e);if(r){r.disabled=i;return}i?e.setAttribute(ri,""):e.removeAttribute(ri)}_createRipple(e){if(!this._document)return;let i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();let r=this._document.createElement("span");r.classList.add("mat-ripple",e.getAttribute(Wo)),e.append(r);let a=new Ql(new V(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return a._isInitialized=!0,a.trigger=e,a.centered=e.hasAttribute(Is),a.disabled=e.hasAttribute(ri),this.attachRipple(e,a),a}attachRipple(e,i){e.removeAttribute(Vo),this._hosts.set(e,i)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var tu=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var eu=["mat-icon-button",""],nu=["*"];var iu=new w("MAT_BUTTON_CONFIG");var ou=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],ru=(()=>{let t=class t{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,i,r,a){this._elementRef=e,this._platform=i,this._ngZone=r,this._animationMode=a,this._focusMonitor=m(ps),this._rippleLoader=m(Ts),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let s=m(iu,{optional:!0}),d=e.nativeElement,c=d.classList;this.disabledInteractive=s?.disabledInteractive??!1,this._rippleLoader?.configureRipple(d,{className:"mat-mdc-button-ripple"});for(let{attribute:l,mdcClasses:f}of ou)d.hasAttribute(l)&&c.add(...f)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};t.\u0275fac=function(i){oe()},t.\u0275dir=rt({type:t,inputs:{color:"color",disableRipple:[k.HasDecoratorInputTransform,"disableRipple","disableRipple",Y],disabled:[k.HasDecoratorInputTransform,"disabled","disabled",Y],ariaDisabled:[k.HasDecoratorInputTransform,"aria-disabled","ariaDisabled",Y],disabledInteractive:[k.HasDecoratorInputTransform,"disabledInteractive","disabledInteractive",Y]},features:[Ct]});let n=t;return n})();var ai=(()=>{let t=class t extends ru{constructor(e,i,r,a){super(e,i,r,a),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};t.\u0275fac=function(i){return new(i||t)(_(V),_(W),_(R),_(Bt,8))},t.\u0275cmp=N({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,r){i&2&&(Tt("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),re(r.color?"mat-"+r.color:""),St("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[Sr,P],attrs:eu,ngContentSelectors:nu,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(Wt(),z(0,"span",0),Rt(1),z(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',tu],encapsulation:2,changeDetection:0});let n=t;return n})();var si=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[at,Cs,at]});let n=t;return n})();var au=["*"],ci;function su(){if(ci===void 0&&(ci=null,typeof window<"u")){let n=window;n.trustedTypes!==void 0&&(ci=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return ci}function cn(n){return su()?.createHTML(n)||n}function Rs(n){return Error(`Unable to find icon with the name "${n}"`)}function cu(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function As(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Ds(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}var vt=class{constructor(t,o,e){this.url=t,this.svgText=o,this.options=e}},du=(()=>{let t=class t{constructor(e,i,r,a){this._httpClient=e,this._sanitizer=i,this._errorHandler=a,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,a){return this._addSvgIconConfig(e,i,new vt(r,null,a))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,a){let s=this._sanitizer.sanitize(Z.HTML,r);if(!s)throw Ds(r);let d=cn(s);return this._addSvgIconConfig(e,i,new vt("",d,a))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new vt(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){let a=this._sanitizer.sanitize(Z.HTML,i);if(!a)throw Ds(i);let s=cn(a);return this._addSvgIconSetConfig(e,new vt("",s,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(Z.RESOURCE_URL,e);if(!i)throw As(e);let r=this._cachedIconsByUrl.get(i);return r?p(di(r)):this._loadSvgIconFromConfig(new vt(e,null)).pipe(A(a=>this._cachedIconsByUrl.set(i,a)),v(a=>di(a)))}getNamedSvgIcon(e,i=""){let r=Ms(i,e),a=this._svgIconConfigs.get(r);if(a)return this._getSvgFromConfig(a);if(a=this._getIconConfigFromResolvers(i,e),a)return this._svgIconConfigs.set(r,a),this._getSvgFromConfig(a);let s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):jt(Rs(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?p(di(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(v(i=>di(i)))}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return p(r);let a=i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(wt(d=>{let l=`Loading icon set URL: ${this._sanitizer.sanitize(Z.RESOURCE_URL,s.url)} failed: ${d.message}`;return this._errorHandler.handleError(new Error(l)),p(null)})));return nr(a).pipe(v(()=>{let s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw Rs(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let a=i[r];if(a.svgText&&a.svgText.toString().indexOf(e)>-1){let s=this._svgElementFromConfig(a),d=this._extractSvgIconFromSet(s,e,a.options);if(d)return d}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(A(i=>e.svgText=i),v(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?p(null):this._fetchIcon(e).pipe(A(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){let a=e.querySelector(`[id="${i}"]`);if(!a)return null;let s=a.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,r);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),r);let d=this._svgElementFromString(cn(""));return d.appendChild(s),this._setSvgAttributes(d,r)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){let i=this._svgElementFromString(cn("")),r=e.attributes;for(let a=0;acn(l)),mt(()=>this._inProgressUrlFetches.delete(s)),cr());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(Ms(e,i),r),this}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}var ks=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],pu=ks.map(n=>`[${n}]`).join(", "),fu=/^url\(['"]?#(.*?)['"]?\)$/,li=(()=>{let t=class t{get color(){return this._color||this._defaultColor}set color(e){this._color=e}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){let i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(e,i,r,a,s,d){this._elementRef=e,this._iconRegistry=i,this._location=a,this._errorHandler=s,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=xe.EMPTY,d&&(d.color&&(this.color=this._defaultColor=d.color),d.fontSet&&(this.fontSet=d.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let i=this._elementsWithExternalReferences;i&&i.forEach((r,a)=>{r.forEach(s=>{a.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(pu),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let a=0;a{let d=i[a],c=d.getAttribute(s),l=c?c.match(fu):null;if(l){let f=r.get(d);f||(f=[],r.set(d,f)),f.push({name:s,value:l[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(ot(1)).subscribe(a=>this._setSvgElement(a),a=>{let s=`Error retrieving icon ${i}:${r}! ${a.message}`;this._errorHandler.handleError(new Error(s))})}}};t.\u0275fac=function(i){return new(i||t)(_(V),_(du),pn("aria-hidden"),_(mu),_(zt),_(uu,8))},t.\u0275cmp=N({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(Tt("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),re(r.color?"mat-"+r.color:""),St("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[k.HasDecoratorInputTransform,"inline","inline",Y],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[Ct,P],ngContentSelectors:au,decls:1,vars:0,template:function(i,r){i&1&&(Wt(),Rt(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});let n=t;return n})(),ui=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[at,at]});let n=t;return n})();var Ko=function(n){return n.Favourite="favorite",n.FavouriteBorder="favorite_border",n}(Ko||{}),Zo=function(n){return n.Empty="hourglass_empty",n.Full="hourglass_full",n}(Zo||{});var Qt=function(n){return n.favourites="favourites",n.interval="interval",n}(Qt||{});var mi=(()=>{let t=class t{saveToLocalStorage(e,i){localStorage.setItem(e,i)}getFromLocalStorage(e){return localStorage.getItem(e)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var we=(()=>{let t=class t{constructor(e){this.localStorageService=e,this._favourites$=new M([]),this.favourites$=this._favourites$.asObservable()}addFavourite(e){e.isFavourite=!0,this._favourites$.next([...this._favourites$.value,e]),this.persistToLocalStorage()}removeFavourite(e){e.isFavourite=!1,this._favourites$.next(this._favourites$.value.filter(i=>i.value!==e.value)),this.persistToLocalStorage()}initStore(){let e=this.localStorageService.getFromLocalStorage(Qt.favourites);e&&this._favourites$.next(JSON.parse(e))}toggleFavourite(e){this.isFavourite(e)?this.removeFavourite(e):this.addFavourite(e)}persistToLocalStorage(){this.localStorageService.saveToLocalStorage(Qt.favourites,JSON.stringify(this._favourites$.value))}isFavourite(e){return this._favourites$.value.includes(e)}};t.\u0275fac=function(i){return new(i||t)(u(mi))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function bu(n,t){if(n&1){let o=Ar();q(0,"li")(1,"button",1),Vt("click",function(){let i=ur(o).$implicit,r=gn();return mr(r.favouritesStoreService.toggleFavourite(i))}),q(2,"mat-icon"),ft(3),tt()(),ft(4),tt()}if(n&2){let o=t.$implicit,e=gn();Et(3),_n(o.isFavourite?e.favouriteIcon.Favourite:e.favouriteIcon.FavouriteBorder),Et(),Mi(" ",o.value," ")}}var hi=(()=>{let t=class t{constructor(e){this.favouritesStoreService=e,this.favouriteIcon=Ko,this.jokes=[]}};t.\u0275fac=function(i){return new(i||t)(_(we))},t.\u0275cmp=N({type:t,selectors:[["cnjg-joke-list"]],inputs:{jokes:"jokes"},standalone:!0,features:[P],decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["mat-icon-button","","title","Favourites",3,"click"]],template:function(i,r){i&1&&(q(0,"ul"),Ai(1,bu,5,2,"li",0),tt()),i&2&&(Et(),pt("ngForOf",r.jokes))},dependencies:[bt,jr,ui,li,si,ai],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%}[_nghost-%COMP%] ul[_ngcontent-%COMP%]{margin-top:11px;margin-bottom:11px;width:98%;height:100%;justify-content:space-evenly;display:flex;flex-direction:column;align-items:center;padding-inline-start:0px}@media (min-width: 390px){[_nghost-%COMP%] ul[_ngcontent-%COMP%]{width:95%}}@media (min-width: 500px){[_nghost-%COMP%] ul[_ngcontent-%COMP%]{width:80%}}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;margin-bottom:10px}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2n){color:orange}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(odd){color:#add8e6}li[_ngcontent-%COMP%]{font-size:.75em;line-height:normal;display:flex;align-items:center}@media (min-width: 390px){li[_ngcontent-%COMP%]{font-size:1.2em}}@media (min-width: 500px){li[_ngcontent-%COMP%]{font-size:1.5em}}"],changeDetection:0});let n=t;return n})();var gu=()=>[],Ps=(()=>{let t=class t{constructor(e){this.favouritesStoreService=e}};t.\u0275fac=function(i){return new(i||t)(_(we))},t.\u0275cmp=N({type:t,selectors:[["cnjg-favourites"]],standalone:!0,features:[P],decls:2,vars:4,consts:[[3,"jokes"]],template:function(i,r){i&1&&(z(0,"cnjg-joke-list",0),Ht(1,"async")),i&2&&pt("jokes",qt(1,1,r.favouritesStoreService.favourites$)||wn(3,gu))},dependencies:[bt,se,hi],styles:["[_nghost-%COMP%]{height:100%}"],changeDetection:0});let n=t;return n})();var js="https://api.chucknorris.io/jokes/random";var Ls=(()=>{let t=class t{constructor(e){this.httpClient=e}getJoke(){return this.httpClient.get(js).pipe(v(e=>({value:e.value,isFavourite:!1})))}};t.\u0275fac=function(i){return new(i||t)(u(Oe))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Pt=(()=>{let t=class t{constructor(e){this.chuckNorrisJokeGeneratorService=e,this._jokes$=new M([]),this.jokes$=this._jokes$.asObservable()}initStore(){let e=Array(10).fill(this.chuckNorrisJokeGeneratorService.getJoke());_t(...e).subscribe(i=>this._jokes$.next([...this._jokes$.value,i]))}triggerNewJoke(){this.chuckNorrisJokeGeneratorService.getJoke().subscribe(e=>this._jokes$.next([e,...this._jokes$.value.splice(0,9)]))}};t.\u0275fac=function(i){return new(i||t)(u(Ls))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var yu=()=>[],Us=(()=>{let t=class t{constructor(e){this.jokeStoreService=e}};t.\u0275fac=function(i){return new(i||t)(_(Pt))},t.\u0275cmp=N({type:t,selectors:[["cnjg-jokes"]],standalone:!0,features:[P],decls:2,vars:4,consts:[[3,"jokes"]],template:function(i,r){i&1&&(z(0,"cnjg-joke-list",0),Ht(1,"async")),i&2&&pt("jokes",qt(1,1,r.jokeStoreService.jokes$)||wn(3,yu))},dependencies:[bt,se,hi],styles:["[_nghost-%COMP%]{height:100%}"],changeDetection:0});let n=t;return n})();var zs=[{path:"",redirectTo:"jokes",pathMatch:"full"},{path:"jokes",component:Us},{path:"favourites",component:Ps}];var _u="@",wu=(()=>{let t=class t{constructor(e,i,r,a,s){this.doc=e,this.delegate=i,this.zone=r,this.animationType=a,this.moduleImpl=s,this._rendererFactoryPromise=null,this.scheduler=m(Ir,{optional:!0})}ngOnDestroy(){this._engine?.flush()}loadImpl(){return(this.moduleImpl??import("./chunk-MW4VSIG3.js")).catch(i=>{throw new S(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:r})=>{this._engine=i(this.animationType,this.doc,this.scheduler);let a=new r(this.delegate,this._engine,this.zone);return this.delegate=a,a})}createRenderer(e,i){let r=this.delegate.createRenderer(e,i);if(r.\u0275type===0)return r;typeof r.throwOnSyntheticProps=="boolean"&&(r.throwOnSyntheticProps=!1);let a=new Jo(r);return i?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(s=>{let d=s.createRenderer(e,i);a.use(d)}).catch(s=>{a.use(r)}),a}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}};t.\u0275fac=function(i){oe()},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Jo=class{constructor(t){this.delegate=t,this.replay=[],this.\u0275type=1}use(t){if(this.delegate=t,this.replay!==null){for(let o of this.replay)o(t);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(t,o){return this.delegate.createElement(t,o)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}get destroyNode(){return this.delegate.destroyNode}appendChild(t,o){this.delegate.appendChild(t,o)}insertBefore(t,o,e,i){this.delegate.insertBefore(t,o,e,i)}removeChild(t,o,e){this.delegate.removeChild(t,o,e)}selectRootElement(t,o){return this.delegate.selectRootElement(t,o)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,o,e,i){this.delegate.setAttribute(t,o,e,i)}removeAttribute(t,o,e){this.delegate.removeAttribute(t,o,e)}addClass(t,o){this.delegate.addClass(t,o)}removeClass(t,o){this.delegate.removeClass(t,o)}setStyle(t,o,e,i){this.delegate.setStyle(t,o,e,i)}removeStyle(t,o,e){this.delegate.removeStyle(t,o,e)}setProperty(t,o,e){this.shouldReplay(o)&&this.replay.push(i=>i.setProperty(t,o,e)),this.delegate.setProperty(t,o,e)}setValue(t,o){this.delegate.setValue(t,o)}listen(t,o,e){return this.shouldReplay(o)&&this.replay.push(i=>i.listen(t,o,e)),this.delegate.listen(t,o,e)}shouldReplay(t){return this.replay!==null&&t.startsWith(_u)}};function $s(n="animations"){return Si("NgAsyncAnimations"),Lt([{provide:bn,useFactory:(t,o,e)=>new wu(t,o,e,n),deps:[T,jn,R]},{provide:Bt,useValue:n==="noop"?"NoopAnimations":"BrowserAnimations"}])}var pi=(()=>{let t=class t{constructor(e,i){this.jokeStoreService=e,this.localStorageService=i,this.intervalMs=5e3,this._isNewJokeIntervalRunning$=new M(!0),this.isNewJokeIntervalRunning$=this._isNewJokeIntervalRunning$.asObservable()}initStore(){this.loadIntervalStateFromLocalStorage()}toggleInterval(){this._isNewJokeIntervalRunning$.value?(this.cancelNewJokeTimer(),this._isNewJokeIntervalRunning$.next(!1)):(this.newJokeIntervalId=this.startNewJokeTimer(),this._isNewJokeIntervalRunning$.next(!0)),this.persistIntervalStateToLocalStorage()}cancelNewJokeTimer(){window.clearInterval(this.newJokeIntervalId),this.newJokeIntervalId=void 0,this._isNewJokeIntervalRunning$.next(!1)}startNewJokeTimer(){return this._isNewJokeIntervalRunning$.next(!0),window.setInterval(()=>{this.jokeStoreService.triggerNewJoke()},this.intervalMs)}persistIntervalStateToLocalStorage(){this.localStorageService.saveToLocalStorage(Qt.interval,JSON.stringify(this._isNewJokeIntervalRunning$.value))}loadIntervalStateFromLocalStorage(){let e=this.localStorageService.getFromLocalStorage(Qt.interval);e&&this._isNewJokeIntervalRunning$.next(JSON.parse(e)),this._isNewJokeIntervalRunning$.value&&(this.newJokeIntervalId=this.startNewJokeTimer())}};t.\u0275fac=function(i){return new(i||t)(u(Pt),u(mi))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Bs={providers:[Qa(zs,os()),$s(),$i(),{provide:Se,useFactory:(n,t,o)=>{n.initStore(),t.initStore(),o.initStore()},deps:[Pt,we,pi]}]};var Iu=["*",[["mat-toolbar-row"]]],Eu=["*","mat-toolbar-row"],Cu=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=rt({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0});let n=t;return n})(),Vs=(()=>{let t=class t{constructor(e,i,r){this._elementRef=e,this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}};t.\u0275fac=function(i){return new(i||t)(_(V),_(W),_(T))},t.\u0275cmp=N({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,r,a){if(i&1&&Di(a,Cu,5),i&2){let s;vn(s=yn())&&(r._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){i&2&&(re(r.color?"mat-"+r.color:""),St("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",r._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[P],ngContentSelectors:Eu,decls:2,vars:0,template:function(i,r){i&1&&(Wt(Iu),Rt(0),Rt(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0});let n=t;return n})();var Ws=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[at,at]});let n=t;return n})();var Hs=(()=>{let t=class t{constructor(e,i){this.jokeStoreService=e,this.intervalRunningStoreService=i,this.hourGlass=Zo,this.isSpin$=this.jokeStoreService.jokes$.pipe(B(()=>_t(p("spin"),p("stop").pipe(or(500)))))}};t.\u0275fac=function(i){return new(i||t)(_(Pt),_(pi))},t.\u0275cmp=N({type:t,selectors:[["cnjg-home"]],standalone:!0,features:[P],decls:18,vars:6,consts:[["color","primary",1,"sticky-toolbar"],["src","favicon.ico","alt","Chuck Norris Pixel Image","height","35"],[1,"header"],[1,"spacer"],["color","accent","mat-icon-button","","title","Jokes","routerLink","/jokes"],["color","accent","mat-icon-button","","title","Favourites","routerLink","/favourites"],["mat-icon-button","","title","Toggle Interval","color","warn","id","toggle-interval-button",3,"click"],[1,"content"]],template:function(i,r){i&1&&(q(0,"mat-toolbar",0),z(1,"img",1),q(2,"span",2),ft(3,"Chuck Norris Jokes"),tt(),z(4,"span",3),q(5,"button",4)(6,"mat-icon"),ft(7,"home"),tt()(),q(8,"button",5)(9,"mat-icon"),ft(10,"favorite"),tt()(),q(11,"button",6),Ht(12,"async"),Vt("click",function(){return r.intervalRunningStoreService.toggleInterval()}),q(13,"mat-icon"),ft(14),Ht(15,"async"),tt()()(),q(16,"main",7),z(17,"router-outlet"),tt()),i&2&&(Et(11),pt("@spinAnimation",qt(12,2,r.isSpin$)),Et(3),_n(qt(15,4,r.intervalRunningStoreService.isNewJokeIntervalRunning$)?r.hourGlass.Full:r.hourGlass.Empty))},dependencies:[ui,li,si,ai,Ws,Vs,bt,se,rs,Ao,Ja],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.header[_ngcontent-%COMP%]{padding-left:5px}mat-toolbar[_ngcontent-%COMP%]{padding:0 0 0 5px}.sticky-toolbar[_ngcontent-%COMP%]{position:sticky;top:0;z-index:1000;height:50px}.content[_ngcontent-%COMP%]{padding-top:1px}@media (max-width: 500px){.header[_ngcontent-%COMP%]{font-size:90%}}main[_ngcontent-%COMP%]{height:100%}"],data:{animation:[$r("spinAnimation",[Fi("spin",Ni({transform:"rotate(360deg)"})),Fi("stop",Ni({transform:"rotate(0)"})),Vr("spin <=> stop",[Br("0.5s")])])]},changeDetection:0});let n=t;return n})();var qs=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=N({type:t,selectors:[["cnjg-root"]],standalone:!0,features:[P],decls:1,vars:0,template:function(i,r){i&1&&z(0,"cnjg-home")},dependencies:[ta,Hs],encapsulation:2});let n=t;return n})();da(qs,Bs).catch(n=>console.error(n)); +`).forEach(o=>{let e=o.indexOf(":");if(e>0){let i=o.slice(0,e),r=i.toLowerCase(),a=o.slice(e+1).trim();this.maybeSetNormalizedName(i,r),this.headers.has(r)?this.headers.get(r).push(a):this.headers.set(r,[a])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((o,e)=>{this.setHeaderEntries(e,o)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([o,e])=>{this.setHeaderEntries(o,e)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let o=this.headers.get(t.toLowerCase());return o&&o.length>0?o[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,o){return this.clone({name:t,value:o,op:"a"})}set(t,o){return this.clone({name:t,value:o,op:"s"})}delete(t,o){return this.clone({name:t,value:o,op:"d"})}maybeSetNormalizedName(t,o){this.normalizedNames.has(o)||this.normalizedNames.set(o,t)}init(){this.lazyInit&&(this.lazyInit instanceof n?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(o=>{this.headers.set(o,t.headers.get(o)),this.normalizedNames.set(o,t.normalizedNames.get(o))})}clone(t){let o=new n;return o.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,o.lazyUpdate=(this.lazyUpdate||[]).concat([t]),o}applyUpdate(t){let o=t.name.toLowerCase();switch(t.op){case"a":case"s":let e=t.value;if(typeof e=="string"&&(e=[e]),e.length===0)return;this.maybeSetNormalizedName(t.name,o);let i=(t.op==="a"?this.headers.get(o):void 0)||[];i.push(...e),this.headers.set(o,i);break;case"d":let r=t.value;if(!r)this.headers.delete(o),this.normalizedNames.delete(o);else{let a=this.headers.get(o);if(!a)return;a=a.filter(s=>r.indexOf(s)===-1),a.length===0?(this.headers.delete(o),this.normalizedNames.delete(o)):this.headers.set(o,a)}break}}setHeaderEntries(t,o){let e=(Array.isArray(o)?o:[o]).map(r=>r.toString()),i=t.toLowerCase();this.headers.set(i,e),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(o=>t(this.normalizedNames.get(o),this.headers.get(o)))}};var ji=class{encodeKey(t){return Wr(t)}encodeValue(t){return Wr(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Xs(n,t){let o=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{let r=i.indexOf("="),[a,s]=r==-1?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,r)),t.decodeValue(i.slice(r+1))],d=o.get(a)||[];d.push(s),o.set(a,d)}),o}var Qs=/%(\d[a-f0-9])/gi,tc={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Wr(n){return encodeURIComponent(n).replace(Qs,(t,o)=>tc[o]??t)}function Dn(n){return`${n}`}var At=class n{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new ji,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Xs(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(o=>{let e=t.fromObject[o],i=Array.isArray(e)?e.map(Dn):[Dn(e)];this.map.set(o,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let o=this.map.get(t);return o?o[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,o){return this.clone({param:t,value:o,op:"a"})}appendAll(t){let o=[];return Object.keys(t).forEach(e=>{let i=t[e];Array.isArray(i)?i.forEach(r=>{o.push({param:e,value:r,op:"a"})}):o.push({param:e,value:i,op:"a"})}),this.clone(o)}set(t,o){return this.clone({param:t,value:o,op:"s"})}delete(t,o){return this.clone({param:t,value:o,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let o=this.encoder.encodeKey(t);return this.map.get(t).map(e=>o+"="+this.encoder.encodeValue(e)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let o=new n({encoder:this.encoder});return o.cloneFrom=this.cloneFrom||this,o.updates=(this.updates||[]).concat(t),o}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let o=(t.op==="a"?this.map.get(t.param):void 0)||[];o.push(Dn(t.value)),this.map.set(t.param,o);break;case"d":if(t.value!==void 0){let e=this.map.get(t.param)||[],i=e.indexOf(Dn(t.value));i!==-1&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var Li=class{constructor(){this.map=new Map}set(t,o){return this.map.set(t,o),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function ec(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Hr(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function qr(n){return typeof Blob<"u"&&n instanceof Blob}function Gr(n){return typeof FormData<"u"&&n instanceof FormData}function nc(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var Ae=class n{constructor(t,o,e,i){this.url=o,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let r;if(ec(this.method)||i?(this.body=e!==void 0?e:null,r=i):r=e,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new Gt,this.context??=new Li,!this.params)this.params=new At,this.urlWithParams=o;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=o;else{let s=o.indexOf("?"),d=s===-1?"?":sg.set(x,t.setHeaders[x]),c)),t.setParams&&(l=Object.keys(t.setParams).reduce((g,x)=>g.set(x,t.setParams[x]),l)),new n(o,e,a,{params:l,headers:c,context:f,reportProgress:d,responseType:i,withCredentials:s,transferCache:r})}},ce=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}(ce||{}),Me=class{constructor(t,o=Nn.Ok,e="OK"){this.headers=t.headers||new Gt,this.status=t.status!==void 0?t.status:o,this.statusText=t.statusText||e,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},Ui=class n extends Me{constructor(t={}){super(t),this.type=ce.ResponseHeader}clone(t={}){return new n({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},kn=class n extends Me{constructor(t={}){super(t),this.type=ce.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new n({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},On=class extends Me{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},Nn=function(n){return n[n.Continue=100]="Continue",n[n.SwitchingProtocols=101]="SwitchingProtocols",n[n.Processing=102]="Processing",n[n.EarlyHints=103]="EarlyHints",n[n.Ok=200]="Ok",n[n.Created=201]="Created",n[n.Accepted=202]="Accepted",n[n.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",n[n.NoContent=204]="NoContent",n[n.ResetContent=205]="ResetContent",n[n.PartialContent=206]="PartialContent",n[n.MultiStatus=207]="MultiStatus",n[n.AlreadyReported=208]="AlreadyReported",n[n.ImUsed=226]="ImUsed",n[n.MultipleChoices=300]="MultipleChoices",n[n.MovedPermanently=301]="MovedPermanently",n[n.Found=302]="Found",n[n.SeeOther=303]="SeeOther",n[n.NotModified=304]="NotModified",n[n.UseProxy=305]="UseProxy",n[n.Unused=306]="Unused",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",n[n.BadRequest=400]="BadRequest",n[n.Unauthorized=401]="Unauthorized",n[n.PaymentRequired=402]="PaymentRequired",n[n.Forbidden=403]="Forbidden",n[n.NotFound=404]="NotFound",n[n.MethodNotAllowed=405]="MethodNotAllowed",n[n.NotAcceptable=406]="NotAcceptable",n[n.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",n[n.RequestTimeout=408]="RequestTimeout",n[n.Conflict=409]="Conflict",n[n.Gone=410]="Gone",n[n.LengthRequired=411]="LengthRequired",n[n.PreconditionFailed=412]="PreconditionFailed",n[n.PayloadTooLarge=413]="PayloadTooLarge",n[n.UriTooLong=414]="UriTooLong",n[n.UnsupportedMediaType=415]="UnsupportedMediaType",n[n.RangeNotSatisfiable=416]="RangeNotSatisfiable",n[n.ExpectationFailed=417]="ExpectationFailed",n[n.ImATeapot=418]="ImATeapot",n[n.MisdirectedRequest=421]="MisdirectedRequest",n[n.UnprocessableEntity=422]="UnprocessableEntity",n[n.Locked=423]="Locked",n[n.FailedDependency=424]="FailedDependency",n[n.TooEarly=425]="TooEarly",n[n.UpgradeRequired=426]="UpgradeRequired",n[n.PreconditionRequired=428]="PreconditionRequired",n[n.TooManyRequests=429]="TooManyRequests",n[n.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",n[n.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",n[n.InternalServerError=500]="InternalServerError",n[n.NotImplemented=501]="NotImplemented",n[n.BadGateway=502]="BadGateway",n[n.ServiceUnavailable=503]="ServiceUnavailable",n[n.GatewayTimeout=504]="GatewayTimeout",n[n.HttpVersionNotSupported=505]="HttpVersionNotSupported",n[n.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",n[n.InsufficientStorage=507]="InsufficientStorage",n[n.LoopDetected=508]="LoopDetected",n[n.NotExtended=510]="NotExtended",n[n.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",n}(Nn||{});function Pi(n,t){return{body:t,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 Oe=(()=>{let t=class t{constructor(e){this.handler=e}request(e,i,r={}){let a;if(e instanceof Ae)a=e;else{let c;r.headers instanceof Gt?c=r.headers:c=new Gt(r.headers);let l;r.params&&(r.params instanceof At?l=r.params:l=new At({fromObject:r.params})),a=new Ae(e,i,r.body!==void 0?r.body:null,{headers:c,context:r.context,params:l,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let s=p(a).pipe(xt(c=>this.handler.handle(c)));if(e instanceof Ae||r.observe==="events")return s;let d=s.pipe(st(c=>c instanceof kn));switch(r.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return d.pipe(v(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return d.pipe(v(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return d.pipe(v(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return d.pipe(v(c=>c.body))}case"response":return d;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new At().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Pi(r,i))}post(e,i,r={}){return this.request("POST",e,Pi(r,i))}put(e,i,r={}){return this.request("PUT",e,Pi(r,i))}};t.\u0275fac=function(i){return new(i||t)(u(De))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function Jr(n,t){return t(n)}function ic(n,t){return(o,e)=>t.intercept(o,{handle:i=>n(i,e)})}function oc(n,t,o){return(e,i)=>ct(o,()=>t(e,r=>n(r,i)))}var rc=new w(""),zi=new w(""),ac=new w(""),sc=new w("");function cc(){let n=null;return(t,o)=>{n===null&&(n=(m(rc,{optional:!0})??[]).reduceRight(ic,Jr));let e=m(Te),i=e.add();return n(t,o).pipe(mt(()=>e.remove(i)))}}var Kr=(()=>{let t=class t extends De{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=m(Te);let r=m(sc,{optional:!0});this.backend=r??e}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(zi),...this.injector.get(ac,[])]));this.chain=r.reduceRight((a,s)=>oc(a,s,this.injector),Jr)}let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(mt(()=>this.pendingTasks.remove(i)))}};t.\u0275fac=function(i){return new(i||t)(u(Mn),u(Ut))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();var dc=/^\)\]\}',?\n/;function lc(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}var Zr=(()=>{let t=class t{constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new S(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?$(i.\u0275loadImpl()):p(null)).pipe(B(()=>new dn(a=>{let s=i.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((C,I)=>s.setRequestHeader(C,I.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let C=e.detectContentTypeHeader();C!==null&&s.setRequestHeader("Content-Type",C)}if(e.responseType){let C=e.responseType.toLowerCase();s.responseType=C!=="json"?C:"text"}let d=e.serializeBody(),c=null,l=()=>{if(c!==null)return c;let C=s.statusText||"OK",I=new Gt(s.getAllResponseHeaders()),it=lc(s)||e.url;return c=new Ui({headers:I,status:s.status,statusText:C,url:it}),c},f=()=>{let{headers:C,status:I,statusText:it,url:Xo}=l(),H=null;I!==Nn.NoContent&&(H=typeof s.response>"u"?s.responseText:s.response),I===0&&(I=H?Nn.Ok:0);let fi=I>=200&&I<300;if(e.responseType==="json"&&typeof H=="string"){let Gs=H;H=H.replace(dc,"");try{H=H!==""?JSON.parse(H):null}catch(Ks){H=Gs,fi&&(fi=!1,H={error:Ks,text:H})}}fi?(a.next(new kn({body:H,headers:C,status:I,statusText:it,url:Xo||void 0})),a.complete()):a.error(new On({error:H,headers:C,status:I,statusText:it,url:Xo||void 0}))},g=C=>{let{url:I}=l(),it=new On({error:C,status:s.status||0,statusText:s.statusText||"Unknown Error",url:I||void 0});a.error(it)},x=!1,Q=C=>{x||(a.next(l()),x=!0);let I={type:ce.DownloadProgress,loaded:C.loaded};C.lengthComputable&&(I.total=C.total),e.responseType==="text"&&s.responseText&&(I.partialText=s.responseText),a.next(I)},L=C=>{let I={type:ce.UploadProgress,loaded:C.loaded};C.lengthComputable&&(I.total=C.total),a.next(I)};return s.addEventListener("load",f),s.addEventListener("error",g),s.addEventListener("timeout",g),s.addEventListener("abort",g),e.reportProgress&&(s.addEventListener("progress",Q),d!==null&&s.upload&&s.upload.addEventListener("progress",L)),s.send(d),a.next({type:ce.Sent}),()=>{s.removeEventListener("error",g),s.removeEventListener("abort",g),s.removeEventListener("load",f),s.removeEventListener("timeout",g),e.reportProgress&&(s.removeEventListener("progress",Q),d!==null&&s.upload&&s.upload.removeEventListener("progress",L)),s.readyState!==s.DONE&&s.abort()}})))}};t.\u0275fac=function(i){return new(i||t)(u(An))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Xr=new w(""),uc="XSRF-TOKEN",mc=new w("",{providedIn:"root",factory:()=>uc}),hc="X-XSRF-TOKEN",pc=new w("",{providedIn:"root",factory:()=>hc}),Fn=class{},fc=(()=>{let t=class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Sn(e,this.cookieName),this.lastCookieString=e),this.lastToken}};t.\u0275fac=function(i){return new(i||t)(u(T),u(ht),u(mc))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function bc(n,t){let o=n.url.toLowerCase();if(!m(Xr)||n.method==="GET"||n.method==="HEAD"||o.startsWith("http://")||o.startsWith("https://"))return t(n);let e=m(Fn).getToken(),i=m(pc);return e!=null&&!n.headers.has(i)&&(n=n.clone({headers:n.headers.set(i,e)})),t(n)}var Qr=function(n){return n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch",n}(Qr||{});function gc(n,t){return{\u0275kind:n,\u0275providers:t}}function $i(...n){let t=[Oe,Zr,Kr,{provide:De,useExisting:Kr},{provide:Mn,useExisting:Zr},{provide:zi,useValue:bc,multi:!0},{provide:Xr,useValue:!0},{provide:Fn,useClass:fc}];for(let o of n)t.push(...o.\u0275providers);return Lt(t)}var Yr=new w("");function vc(){return gc(Qr.LegacyInterceptors,[{provide:Yr,useFactory:cc},{provide:zi,useExisting:Yr,multi:!0}])}var ta=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({providers:[$i(vc())]});let n=t;return n})();var Wi=class extends Nr{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Hi=class n extends Wi{static makeCurrent(){Or(new n)}onAndCancel(t,o,e){return t.addEventListener(o,e),()=>{t.removeEventListener(o,e)}}dispatchEvent(t,o){t.dispatchEvent(o)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,o){return o=o||this.getDefaultDocument(),o.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,o){return o==="window"?window:o==="document"?t:o==="body"?t.body:null}getBaseHref(t){let o=_c();return o==null?null:wc(o)}resetBaseElement(){Ne=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Sn(document.cookie,t)}},Ne=null;function _c(){return Ne=Ne||document.querySelector("base"),Ne?Ne.getAttribute("href"):null}function wc(n){return new URL(n,document.baseURI).pathname}var xc=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),qi=new w(""),ra=(()=>{let t=class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(a=>a.supports(e)),!i)throw new S(5101,!1);return this._eventNameToPlugin.set(e,i),i}};t.\u0275fac=function(i){return new(i||t)(u(qi),u(R))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Pn=class{constructor(t){this._doc=t}},Bi="ng-app-id",aa=(()=>{let t=class t{constructor(e,i,r,a={}){this.doc=e,this.appId=i,this.nonce=r,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Rn(a),this.resetHostNodes()}addStyles(e){for(let i of e)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(e){for(let i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){let i=this.styleRef;i.get(e)?.elements?.forEach(r=>r.remove()),i.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${Bi}="${this.appId}"]`);if(e?.length){let i=new Map;return e.forEach(r=>{r.textContent!=null&&i.set(r.textContent,r)}),i}return null}changeUsageCount(e,i){let r=this.styleRef;if(r.has(e)){let a=r.get(e);return a.usage+=i,a.usage}return r.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){let r=this.styleNodesInDOM,a=r?.get(i);if(a?.parentNode===e)return r.delete(i),a.removeAttribute(Bi),a;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(Bi,this.appId),e.appendChild(s),s}}addStyleToHost(e,i){let r=this.getStyleElement(e,i),a=this.styleRef,s=a.get(i)?.elements;s?s.push(r):a.set(i,{elements:[r],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}};t.\u0275fac=function(i){return new(i||t)(u(T),u(fn),u(Ee,8),u(ht))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Vi={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Ki=/%COMP%/g,sa="%COMP%",Ic=`_nghost-${sa}`,Ec=`_ngcontent-${sa}`,Cc=!0,Tc=new w("",{providedIn:"root",factory:()=>Cc});function Sc(n){return Ec.replace(Ki,n)}function Rc(n){return Ic.replace(Ki,n)}function ca(n,t){return t.map(o=>o.replace(Ki,n))}var jn=(()=>{let t=class t{constructor(e,i,r,a,s,d,c,l=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=a,this.doc=s,this.platformId=d,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Rn(d),this.defaultRenderer=new Fe(e,s,c,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Ie.ShadowDom&&(i=U(h({},i),{encapsulation:Ie.Emulated}));let r=this.getOrCreateRenderer(e,i);return r instanceof Ln?r.applyToHost(e):r instanceof Pe&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,a=r.get(i.id);if(!a){let s=this.doc,d=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,g=this.platformIsServer;switch(i.encapsulation){case Ie.Emulated:a=new Ln(c,l,i,this.appId,f,s,d,g);break;case Ie.ShadowDom:return new Gi(c,l,e,i,s,d,this.nonce,g);default:a=new Pe(c,l,i,f,s,d,g);break}r.set(i.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(i){return new(i||t)(u(ra),u(aa),u(fn),u(Tc),u(T),u(ht),u(R),u(Ee))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Fe=class{constructor(t,o,e,i){this.eventManager=t,this.doc=o,this.ngZone=e,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,o){return o?this.doc.createElementNS(Vi[o]||o,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,o){(na(t)?t.content:t).appendChild(o)}insertBefore(t,o,e){t&&(na(t)?t.content:t).insertBefore(o,e)}removeChild(t,o){t&&t.removeChild(o)}selectRootElement(t,o){let e=typeof t=="string"?this.doc.querySelector(t):t;if(!e)throw new S(-5104,!1);return o||(e.textContent=""),e}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,o,e,i){if(i){o=i+":"+o;let r=Vi[i];r?t.setAttributeNS(r,o,e):t.setAttribute(o,e)}else t.setAttribute(o,e)}removeAttribute(t,o,e){if(e){let i=Vi[e];i?t.removeAttributeNS(i,o):t.removeAttribute(`${e}:${o}`)}else t.removeAttribute(o)}addClass(t,o){t.classList.add(o)}removeClass(t,o){t.classList.remove(o)}setStyle(t,o,e,i){i&(Ce.DashCase|Ce.Important)?t.style.setProperty(o,e,i&Ce.Important?"important":""):t.style[o]=e}removeStyle(t,o,e){e&Ce.DashCase?t.style.removeProperty(o):t.style[o]=""}setProperty(t,o,e){t!=null&&(t[o]=e)}setValue(t,o){t.nodeValue=o}listen(t,o,e){if(typeof t=="string"&&(t=ki().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${o}`);return this.eventManager.addEventListener(t,o,this.decoratePreventDefault(e))}decoratePreventDefault(t){return o=>{if(o==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(o)):t(o))===!1&&o.preventDefault()}}};function na(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var Gi=class extends Fe{constructor(t,o,e,i,r,a,s,d){super(t,r,a,d),this.sharedStylesHost=o,this.hostEl=e,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=ca(i.id,i.styles);for(let l of c){let f=document.createElement("style");s&&f.setAttribute("nonce",s),f.textContent=l,this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,o){return super.appendChild(this.nodeOrShadowRoot(t),o)}insertBefore(t,o,e){return super.insertBefore(this.nodeOrShadowRoot(t),o,e)}removeChild(t,o){return super.removeChild(this.nodeOrShadowRoot(t),o)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Pe=class extends Fe{constructor(t,o,e,i,r,a,s,d){super(t,r,a,s),this.sharedStylesHost=o,this.removeStylesOnCompDestroy=i,this.styles=d?ca(d,e.styles):e.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Ln=class extends Pe{constructor(t,o,e,i,r,a,s,d){let c=i+"-"+e.id;super(t,o,e,r,a,s,d,c),this.contentAttr=Sc(c),this.hostAttr=Rc(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,o){let e=super.createElement(t,o);return super.setAttribute(e,this.contentAttr,""),e}},Ac=(()=>{let t=class t extends Pn{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}};t.\u0275fac=function(i){return new(i||t)(u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),ia=["alt","control","meta","shift"],Dc={"\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"},Mc={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},kc=(()=>{let t=class t extends Pn{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r){let a=t.parseEventName(i),s=t.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ki().onAndCancel(e,a.domEventName,s))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let a=t._normalizeKey(i.pop()),s="",d=i.indexOf("code");if(d>-1&&(i.splice(d,1),s="code."),ia.forEach(l=>{let f=i.indexOf(l);f>-1&&(i.splice(f,1),s+=l+".")}),s+=a,i.length!=0||a.length===0)return null;let c={};return c.domEventName=r,c.fullKey=s,c}static matchEventFullKeyCode(e,i){let r=Dc[e.key]||e.key,a="";return i.indexOf("code.")>-1&&(r=e.code,a="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),ia.forEach(s=>{if(s!==r){let d=Mc[s];d(e)&&(a+=s+".")}}),a+=r,a===i)}static eventCallback(e,i,r){return a=>{t.matchEventFullKeyCode(a,e)&&r.runGuarded(()=>i(a))}}static _normalizeKey(e){return e==="esc"?"escape":e}};t.\u0275fac=function(i){return new(i||t)(u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function da(n,t){return Mr(h({rootComponent:n},Oc(t)))}function Oc(n){return{appProviders:[...Lc,...n?.providers??[]],platformProviders:jc}}function Nc(){Hi.makeCurrent()}function Fc(){return new zt}function Pc(){return hr(document),document}var jc=[{provide:ht,useValue:Lr},{provide:pr,useValue:Nc,multi:!0},{provide:T,useFactory:Pc,deps:[]}];var Lc=[{provide:lr,useValue:"root"},{provide:zt,useFactory:Fc,deps:[]},{provide:qi,useClass:Ac,multi:!0,deps:[T,R,ht]},{provide:qi,useClass:kc,multi:!0,deps:[T]},jn,aa,ra,{provide:bn,useExisting:jn},{provide:An,useClass:xc,deps:[]},[]];var la=(()=>{let t=class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}};t.\u0275fac=function(i){return new(i||t)(u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Zi=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=u(Uc),r},providedIn:"root"});let n=t;return n})(),Uc=(()=>{let t=class t extends Zi{constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case Z.NONE:return i;case Z.HTML:return ie(i,"HTML")?ne(i):wr(this._doc,String(i)).toString();case Z.STYLE:return ie(i,"Style")?ne(i):i;case Z.SCRIPT:if(ie(i,"Script"))return ne(i);throw new S(5200,!1);case Z.URL:return ie(i,"URL")?ne(i):_r(String(i));case Z.RESOURCE_URL:if(ie(i,"ResourceURL"))return ne(i);throw new S(5201,!1);default:throw new S(5202,!1)}}bypassSecurityTrustHtml(e){return fr(e)}bypassSecurityTrustStyle(e){return br(e)}bypassSecurityTrustScript(e){return gr(e)}bypassSecurityTrustUrl(e){return vr(e)}bypassSecurityTrustResourceUrl(e){return yr(e)}};t.\u0275fac=function(i){return new(i||t)(u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var y="primary",Xe=Symbol("RouteTitle"),to=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let o=this.params[t];return Array.isArray(o)?o[0]:o}return null}getAll(t){if(this.has(t)){let o=this.params[t];return Array.isArray(o)?o:[o]}return[]}get keys(){return Object.keys(this.params)}};function he(n){return new to(n)}function zc(n,t,o){let e=o.path.split("/");if(e.length>n.length||o.pathMatch==="full"&&(t.hasChildren()||e.lengthe[r]===i)}else return n===t}function wa(n){return n.length>0?n[n.length-1]:null}function Nt(n){return tr(n)?n:Dr(n)?$(Promise.resolve(n)):p(n)}var Bc={exact:Ia,subset:Ea},xa={exact:Vc,subset:Wc,ignored:()=>!0};function ma(n,t,o){return Bc[o.paths](n.root,t.root,o.matrixParams)&&xa[o.queryParams](n.queryParams,t.queryParams)&&!(o.fragment==="exact"&&n.fragment!==t.fragment)}function Vc(n,t){return dt(n,t)}function Ia(n,t,o){if(!Zt(n.segments,t.segments)||!$n(n.segments,t.segments,o)||n.numberOfChildren!==t.numberOfChildren)return!1;for(let e in t.children)if(!n.children[e]||!Ia(n.children[e],t.children[e],o))return!1;return!0}function Wc(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(o=>_a(n[o],t[o]))}function Ea(n,t,o){return Ca(n,t,t.segments,o)}function Ca(n,t,o,e){if(n.segments.length>o.length){let i=n.segments.slice(0,o.length);return!(!Zt(i,o)||t.hasChildren()||!$n(i,o,e))}else if(n.segments.length===o.length){if(!Zt(n.segments,o)||!$n(n.segments,o,e))return!1;for(let i in t.children)if(!n.children[i]||!Ea(n.children[i],t.children[i],e))return!1;return!0}else{let i=o.slice(0,n.segments.length),r=o.slice(n.segments.length);return!Zt(n.segments,i)||!$n(n.segments,i,e)||!n.children[y]?!1:Ca(n.children[y],t,r,e)}}function $n(n,t,o){return t.every((e,i)=>xa[o](n[i].parameters,e.parameters))}var Dt=class{constructor(t=new E([],{}),o={},e=null){this.root=t,this.queryParams=o,this.fragment=e}get queryParamMap(){return this._queryParamMap??=he(this.queryParams),this._queryParamMap}toString(){return Gc.serialize(this)}},E=class{constructor(t,o){this.segments=t,this.children=o,this.parent=null,Object.values(o).forEach(e=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Bn(this)}},Kt=class{constructor(t,o){this.path=t,this.parameters=o}get parameterMap(){return this._parameterMap??=he(this.parameters),this._parameterMap}toString(){return Sa(this)}};function Hc(n,t){return Zt(n,t)&&n.every((o,e)=>dt(o.parameters,t[e].parameters))}function Zt(n,t){return n.length!==t.length?!1:n.every((o,e)=>o.path===t[e].path)}function qc(n,t){let o=[];return Object.entries(n.children).forEach(([e,i])=>{e===y&&(o=o.concat(t(i,e)))}),Object.entries(n.children).forEach(([e,i])=>{e!==y&&(o=o.concat(t(i,e)))}),o}var Qe=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>new Ve,providedIn:"root"});let n=t;return n})(),Ve=class{parse(t){let o=new io(t);return new Dt(o.parseRootSegment(),o.parseQueryParams(),o.parseFragment())}serialize(t){let o=`/${je(t.root,!0)}`,e=Yc(t.queryParams),i=typeof t.fragment=="string"?`#${Kc(t.fragment)}`:"";return`${o}${e}${i}`}},Gc=new Ve;function Bn(n){return n.segments.map(t=>Sa(t)).join("/")}function je(n,t){if(!n.hasChildren())return Bn(n);if(t){let o=n.children[y]?je(n.children[y],!1):"",e=[];return Object.entries(n.children).forEach(([i,r])=>{i!==y&&e.push(`${i}:${je(r,!1)}`)}),e.length>0?`${o}(${e.join("//")})`:o}else{let o=qc(n,(e,i)=>i===y?[je(n.children[y],!1)]:[`${i}:${je(e,!1)}`]);return Object.keys(n.children).length===1&&n.children[y]!=null?`${Bn(n)}/${o[0]}`:`${Bn(n)}/(${o.join("//")})`}}function Ta(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Un(n){return Ta(n).replace(/%3B/gi,";")}function Kc(n){return encodeURI(n)}function no(n){return Ta(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Vn(n){return decodeURIComponent(n)}function ha(n){return Vn(n.replace(/\+/g,"%20"))}function Sa(n){return`${no(n.path)}${Zc(n.parameters)}`}function Zc(n){return Object.entries(n).map(([t,o])=>`;${no(t)}=${no(o)}`).join("")}function Yc(n){let t=Object.entries(n).map(([o,e])=>Array.isArray(e)?e.map(i=>`${Un(o)}=${Un(i)}`).join("&"):`${Un(o)}=${Un(e)}`).filter(o=>o);return t.length?`?${t.join("&")}`:""}var Jc=/^[^\/()?;#]+/;function Yi(n){let t=n.match(Jc);return t?t[0]:""}var Xc=/^[^\/()?;=#]+/;function Qc(n){let t=n.match(Xc);return t?t[0]:""}var td=/^[^=?&#]+/;function ed(n){let t=n.match(td);return t?t[0]:""}var nd=/^[^&#]+/;function id(n){let t=n.match(nd);return t?t[0]:""}var io=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new E([],{}):new E([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let o={};this.peekStartsWith("/(")&&(this.capture("/"),o=this.parseParens(!0));let e={};return this.peekStartsWith("(")&&(e=this.parseParens(!1)),(t.length>0||Object.keys(o).length>0)&&(e[y]=new E(t,o)),e}parseSegment(){let t=Yi(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(t),new Kt(Vn(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let o=Qc(this.remaining);if(!o)return;this.capture(o);let e="";if(this.consumeOptional("=")){let i=Yi(this.remaining);i&&(e=i,this.capture(e))}t[Vn(o)]=Vn(e)}parseQueryParam(t){let o=ed(this.remaining);if(!o)return;this.capture(o);let e="";if(this.consumeOptional("=")){let a=id(this.remaining);a&&(e=a,this.capture(e))}let i=ha(o),r=ha(e);if(t.hasOwnProperty(i)){let a=t[i];Array.isArray(a)||(a=[a],t[i]=a),a.push(r)}else t[i]=r}parseParens(t){let o={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let e=Yi(this.remaining),i=this.remaining[e.length];if(i!=="/"&&i!==")"&&i!==";")throw new S(4010,!1);let r;e.indexOf(":")>-1?(r=e.slice(0,e.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=y);let a=this.parseChildren();o[r]=Object.keys(a).length===1?a[y]:new E([],a),this.consumeOptional("//")}return o}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new S(4011,!1)}};function Ra(n){return n.segments.length>0?new E([],{[y]:n}):n}function Aa(n){let t={};for(let[e,i]of Object.entries(n.children)){let r=Aa(i);if(e===y&&r.segments.length===0&&r.hasChildren())for(let[a,s]of Object.entries(r.children))t[a]=s;else(r.segments.length>0||r.hasChildren())&&(t[e]=r)}let o=new E(n.segments,t);return od(o)}function od(n){if(n.numberOfChildren===1&&n.children[y]){let t=n.children[y];return new E(n.segments.concat(t.segments),t.children)}return n}function pe(n){return n instanceof Dt}function rd(n,t,o=null,e=null){let i=Da(n);return Ma(i,t,o,e)}function Da(n){let t;function o(r){let a={};for(let d of r.children){let c=o(d);a[d.outlet]=c}let s=new E(r.url,a);return r===n&&(t=s),s}let e=o(n.root),i=Ra(e);return t??i}function Ma(n,t,o,e){let i=n;for(;i.parent;)i=i.parent;if(t.length===0)return Ji(i,i,i,o,e);let r=ad(t);if(r.toRoot())return Ji(i,i,new E([],{}),o,e);let a=sd(r,i,n),s=a.processChildren?ze(a.segmentGroup,a.index,r.commands):Oa(a.segmentGroup,a.index,r.commands);return Ji(i,a.segmentGroup,s,o,e)}function Wn(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function We(n){return typeof n=="object"&&n!=null&&n.outlets}function Ji(n,t,o,e,i){let r={};e&&Object.entries(e).forEach(([d,c])=>{r[d]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let a;n===t?a=o:a=ka(n,t,o);let s=Ra(Aa(a));return new Dt(s,r,i)}function ka(n,t,o){let e={};return Object.entries(n.children).forEach(([i,r])=>{r===t?e[i]=o:e[i]=ka(r,t,o)}),new E(n.segments,e)}var Hn=class{constructor(t,o,e){if(this.isAbsolute=t,this.numberOfDoubleDots=o,this.commands=e,t&&e.length>0&&Wn(e[0]))throw new S(4003,!1);let i=e.find(We);if(i&&i!==wa(e))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function ad(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new Hn(!0,0,n);let t=0,o=!1,e=n.reduce((i,r,a)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let s={};return Object.entries(r.outlets).forEach(([d,c])=>{s[d]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:s}]}if(r.segmentPath)return[...i,r.segmentPath]}return typeof r!="string"?[...i,r]:a===0?(r.split("/").forEach((s,d)=>{d==0&&s==="."||(d==0&&s===""?o=!0:s===".."?t++:s!=""&&i.push(s))}),i):[...i,r]},[]);return new Hn(o,t,e)}var ue=class{constructor(t,o,e){this.segmentGroup=t,this.processChildren=o,this.index=e}};function sd(n,t,o){if(n.isAbsolute)return new ue(t,!0,0);if(!o)return new ue(t,!1,NaN);if(o.parent===null)return new ue(o,!0,0);let e=Wn(n.commands[0])?0:1,i=o.segments.length-1+e;return cd(o,i,n.numberOfDoubleDots)}function cd(n,t,o){let e=n,i=t,r=o;for(;r>i;){if(r-=i,e=e.parent,!e)throw new S(4005,!1);i=e.segments.length}return new ue(e,!1,i-r)}function dd(n){return We(n[0])?n[0].outlets:{[y]:n}}function Oa(n,t,o){if(n??=new E([],{}),n.segments.length===0&&n.hasChildren())return ze(n,t,o);let e=ld(n,t,o),i=o.slice(e.commandIndex);if(e.match&&e.pathIndexr!==y)&&n.children[y]&&n.numberOfChildren===1&&n.children[y].segments.length===0){let r=ze(n.children[y],t,o);return new E(n.segments,r.children)}return Object.entries(e).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[r]=Oa(n.children[r],t,a))}),Object.entries(n.children).forEach(([r,a])=>{e[r]===void 0&&(i[r]=a)}),new E(n.segments,i)}}function ld(n,t,o){let e=0,i=t,r={match:!1,pathIndex:0,commandIndex:0};for(;i=o.length)return r;let a=n.segments[i],s=o[e];if(We(s))break;let d=`${s}`,c=e0&&d===void 0)break;if(d&&c&&typeof c=="object"&&c.outlets===void 0){if(!fa(d,c,a))return r;e+=2}else{if(!fa(d,{},a))return r;e++}i++}return{match:!0,pathIndex:i,commandIndex:e}}function oo(n,t,o){let e=n.segments.slice(0,t),i=0;for(;i{typeof e=="string"&&(e=[e]),e!==null&&(t[o]=oo(new E([],{}),0,e))}),t}function pa(n){let t={};return Object.entries(n).forEach(([o,e])=>t[o]=`${e}`),t}function fa(n,t,o){return n==o.path&&dt(t,o.parameters)}var $e="imperative",j=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}(j||{}),et=class{constructor(t,o){this.id=t,this.url=o}},fe=class extends et{constructor(t,o,e="imperative",i=null){super(t,o),this.type=j.NavigationStart,this.navigationTrigger=e,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},lt=class extends et{constructor(t,o,e){super(t,o),this.urlAfterRedirects=e,this.type=j.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},X=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(X||{}),qn=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(qn||{}),Mt=class extends et{constructor(t,o,e,i){super(t,o),this.reason=e,this.code=i,this.type=j.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},kt=class extends et{constructor(t,o,e,i){super(t,o),this.reason=e,this.code=i,this.type=j.NavigationSkipped}},He=class extends et{constructor(t,o,e,i){super(t,o),this.error=e,this.target=i,this.type=j.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Gn=class extends et{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ro=class extends et{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ao=class extends et{constructor(t,o,e,i,r){super(t,o),this.urlAfterRedirects=e,this.state=i,this.shouldActivate=r,this.type=j.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},so=class extends et{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},co=class extends et{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},lo=class{constructor(t){this.route=t,this.type=j.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},uo=class{constructor(t){this.route=t,this.type=j.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},mo=class{constructor(t){this.snapshot=t,this.type=j.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ho=class{constructor(t){this.snapshot=t,this.type=j.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},po=class{constructor(t){this.snapshot=t,this.type=j.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},fo=class{constructor(t){this.snapshot=t,this.type=j.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Kn=class{constructor(t,o,e){this.routerEvent=t,this.position=o,this.anchor=e,this.type=j.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},qe=class{},Ge=class{constructor(t){this.url=t}};var bo=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new tn,this.attachRef=null}},tn=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new bo,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Zn=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let o=this.pathFromRoot(t);return o.length>1?o[o.length-2]:null}children(t){let o=go(t,this._root);return o?o.children.map(e=>e.value):[]}firstChild(t){let o=go(t,this._root);return o&&o.children.length>0?o.children[0].value:null}siblings(t){let o=vo(t,this._root);return o.length<2?[]:o[o.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return vo(t,this._root).map(o=>o.value)}};function go(n,t){if(n===t.value)return t;for(let o of t.children){let e=go(n,o);if(e)return e}return null}function vo(n,t){if(n===t.value)return[t];for(let o of t.children){let e=vo(n,o);if(e.length)return e.unshift(t),e}return[]}var J=class{constructor(t,o){this.value=t,this.children=o}toString(){return`TreeNode(${this.value})`}};function le(n){let t={};return n&&n.children.forEach(o=>t[o.value.outlet]=o),t}var Yn=class extends Zn{constructor(t,o){super(t),this.snapshot=o,Ro(this,t)}toString(){return this.snapshot.toString()}};function Na(n){let t=md(n),o=new M([new Kt("",{})]),e=new M({}),i=new M({}),r=new M({}),a=new M(""),s=new Ot(o,e,r,a,i,y,n,t.root);return s.snapshot=t.root,new Yn(new J(s,[]),t)}function md(n){let t={},o={},e={},i="",r=new Ke([],t,e,i,o,y,n,null,{});return new Jn("",new J(r,[]))}var Ot=class{constructor(t,o,e,i,r,a,s,d){this.urlSubject=t,this.paramsSubject=o,this.queryParamsSubject=e,this.fragmentSubject=i,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=d,this.title=this.dataSubject?.pipe(v(c=>c[Xe]))??p(void 0),this.url=t,this.params=o,this.queryParams=e,this.fragment=i,this.data=r}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(v(t=>he(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(v(t=>he(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function So(n,t,o="emptyOnly"){let e,{routeConfig:i}=n;return t!==null&&(o==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?e={params:h(h({},t.params),n.params),data:h(h({},t.data),n.data),resolve:h(h(h(h({},n.data),t.data),i?.data),n._resolvedData)}:e={params:h({},n.params),data:h({},n.data),resolve:h(h({},n.data),n._resolvedData??{})},i&&Pa(i)&&(e.resolve[Xe]=i.title),e}var Ke=class{get title(){return this.data?.[Xe]}constructor(t,o,e,i,r,a,s,d,c){this.url=t,this.params=o,this.queryParams=e,this.fragment=i,this.data=r,this.outlet=a,this.component=s,this.routeConfig=d,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??=he(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=he(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(e=>e.toString()).join("/"),o=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${o}')`}},Jn=class extends Zn{constructor(t,o){super(o),this.url=t,Ro(this,o)}toString(){return Fa(this._root)}};function Ro(n,t){t.value._routerState=n,t.children.forEach(o=>Ro(n,o))}function Fa(n){let t=n.children.length>0?` { ${n.children.map(Fa).join(", ")} } `:"";return`${n.value}${t}`}function Xi(n){if(n.snapshot){let t=n.snapshot,o=n._futureSnapshot;n.snapshot=o,dt(t.queryParams,o.queryParams)||n.queryParamsSubject.next(o.queryParams),t.fragment!==o.fragment&&n.fragmentSubject.next(o.fragment),dt(t.params,o.params)||n.paramsSubject.next(o.params),$c(t.url,o.url)||n.urlSubject.next(o.url),dt(t.data,o.data)||n.dataSubject.next(o.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function yo(n,t){let o=dt(n.params,t.params)&&Hc(n.url,t.url),e=!n.parent!=!t.parent;return o&&!e&&(!n.parent||yo(n.parent,t.parent))}function Pa(n){return typeof n.title=="string"||n.title===null}var Ao=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=y,this.activateEvents=new $t,this.deactivateEvents=new $t,this.attachEvents=new $t,this.detachEvents=new $t,this.parentContexts=m(tn),this.location=m(Tr),this.changeDetector=m(Tn),this.environmentInjector=m(Ut),this.inputBinder=m(ei,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=e;let r=this.location,s=e.snapshot.component,d=this.parentContexts.getOrCreateContext(this.name).children,c=new _o(e,d,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=rt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[hn]});let n=t;return n})(),_o=class n{__ngOutletInjector(t){return new n(this.route,this.childContexts,t)}constructor(t,o,e){this.route=t,this.childContexts=o,this.parent=e}get(t,o){return t===Ot?this.route:t===tn?this.childContexts:this.parent.get(t,o)}},ei=new w(""),ba=(()=>{let t=class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:i}=e,r=te([i.queryParams,i.params,i.data]).pipe(B(([a,s,d],c)=>(d=h(h(h({},a),s),d),c===0?p(d):Promise.resolve(d)))).subscribe(a=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let s=kr(i.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:d}of s.inputs)e.activatedComponentRef.setInput(d,a[d])});this.outletDataSubscriptions.set(e,r)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function hd(n,t,o){let e=Ze(n,t._root,o?o._root:void 0);return new Yn(e,t)}function Ze(n,t,o){if(o&&n.shouldReuseRoute(t.value,o.value.snapshot)){let e=o.value;e._futureSnapshot=t.value;let i=pd(n,t,o);return new J(e,i)}else{if(n.shouldAttach(t.value)){let r=n.retrieve(t.value);if(r!==null){let a=r.route;return a.value._futureSnapshot=t.value,a.children=t.children.map(s=>Ze(n,s)),a}}let e=fd(t.value),i=t.children.map(r=>Ze(n,r));return new J(e,i)}}function pd(n,t,o){return t.children.map(e=>{for(let i of o.children)if(n.shouldReuseRoute(e.value,i.value.snapshot))return Ze(n,e,i);return Ze(n,e)})}function fd(n){return new Ot(new M(n.url),new M(n.params),new M(n.queryParams),new M(n.fragment),new M(n.data),n.outlet,n.component,n)}var ja="ngNavigationCancelingError";function La(n,t){let{redirectTo:o,navigationBehaviorOptions:e}=pe(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=Ua(!1,X.Redirect);return i.url=o,i.navigationBehaviorOptions=e,i}function Ua(n,t){let o=new Error(`NavigationCancelingError: ${n||""}`);return o[ja]=!0,o.cancellationCode=t,o}function bd(n){return za(n)&&pe(n.url)}function za(n){return!!n&&n[ja]}var gd=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=N({type:t,selectors:[["ng-component"]],standalone:!0,features:[P],decls:1,vars:0,template:function(i,r){i&1&&z(0,"router-outlet")},dependencies:[Ao],encapsulation:2});let n=t;return n})();function vd(n,t){return n.providers&&!n._injector&&(n._injector=Ri(n.providers,t,`Route: ${n.path}`)),n._injector??t}function Do(n){let t=n.children&&n.children.map(Do),o=t?U(h({},n),{children:t}):h({},n);return!o.component&&!o.loadComponent&&(t||o.loadChildren)&&o.outlet&&o.outlet!==y&&(o.component=gd),o}function ut(n){return n.outlet||y}function yd(n,t){let o=n.filter(e=>ut(e)===t);return o.push(...n.filter(e=>ut(e)!==t)),o}function en(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){let o=t.routeConfig;if(o?._loadedInjector)return o._loadedInjector;if(o?._injector)return o._injector}return null}var _d=(n,t,o,e)=>v(i=>(new wo(t,i.targetRouterState,i.currentRouterState,o,e).activate(n),i)),wo=class{constructor(t,o,e,i,r){this.routeReuseStrategy=t,this.futureState=o,this.currState=e,this.forwardEvent=i,this.inputBindingEnabled=r}activate(t){let o=this.futureState._root,e=this.currState?this.currState._root:null;this.deactivateChildRoutes(o,e,t),Xi(this.futureState.root),this.activateChildRoutes(o,e,t)}deactivateChildRoutes(t,o,e){let i=le(o);t.children.forEach(r=>{let a=r.value.outlet;this.deactivateRoutes(r,i[a],e),delete i[a]}),Object.values(i).forEach(r=>{this.deactivateRouteAndItsChildren(r,e)})}deactivateRoutes(t,o,e){let i=t.value,r=o?o.value:null;if(i===r)if(i.component){let a=e.getContext(i.outlet);a&&this.deactivateChildRoutes(t,o,a.children)}else this.deactivateChildRoutes(t,o,e);else r&&this.deactivateRouteAndItsChildren(o,e)}deactivateRouteAndItsChildren(t,o){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,o):this.deactivateRouteAndOutlet(t,o)}detachAndStoreRouteSubtree(t,o){let e=o.getContext(t.value.outlet),i=e&&t.value.component?e.children:o,r=le(t);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,i);if(e&&e.outlet){let a=e.outlet.detach(),s=e.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:a,route:t,contexts:s})}}deactivateRouteAndOutlet(t,o){let e=o.getContext(t.value.outlet),i=e&&t.value.component?e.children:o,r=le(t);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,i);e&&(e.outlet&&(e.outlet.deactivate(),e.children.onOutletDeactivated()),e.attachRef=null,e.route=null)}activateChildRoutes(t,o,e){let i=le(o);t.children.forEach(r=>{this.activateRoutes(r,i[r.value.outlet],e),this.forwardEvent(new fo(r.value.snapshot))}),t.children.length&&this.forwardEvent(new ho(t.value.snapshot))}activateRoutes(t,o,e){let i=t.value,r=o?o.value:null;if(Xi(i),i===r)if(i.component){let a=e.getOrCreateContext(i.outlet);this.activateChildRoutes(t,o,a.children)}else this.activateChildRoutes(t,o,e);else if(i.component){let a=e.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),Xi(s.route.value),this.activateChildRoutes(t,null,a.children)}else{let s=en(i.snapshot);a.attachRef=null,a.route=i,a.injector=s,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(t,null,a.children)}}else this.activateChildRoutes(t,null,e)}},Xn=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},me=class{constructor(t,o){this.component=t,this.route=o}};function wd(n,t,o){let e=n._root,i=t?t._root:null;return Le(e,i,o,[e.value])}function xd(n){let t=n.routeConfig?n.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:n,guards:t}}function ge(n,t){let o=Symbol(),e=t.get(n,o);return e===o?typeof n=="function"&&!dr(n)?n:t.get(n):e}function Le(n,t,o,e,i={canDeactivateChecks:[],canActivateChecks:[]}){let r=le(t);return n.children.forEach(a=>{Id(a,r[a.value.outlet],o,e.concat([a.value]),i),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>Be(s,o.getContext(a),i)),i}function Id(n,t,o,e,i={canDeactivateChecks:[],canActivateChecks:[]}){let r=n.value,a=t?t.value:null,s=o?o.getContext(n.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){let d=Ed(a,r,r.routeConfig.runGuardsAndResolvers);d?i.canActivateChecks.push(new Xn(e)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?Le(n,t,s?s.children:null,e,i):Le(n,t,o,e,i),d&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new me(s.outlet.component,a))}else a&&Be(t,s,i),i.canActivateChecks.push(new Xn(e)),r.component?Le(n,null,s?s.children:null,e,i):Le(n,null,o,e,i);return i}function Ed(n,t,o){if(typeof o=="function")return o(n,t);switch(o){case"pathParamsChange":return!Zt(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Zt(n.url,t.url)||!dt(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!yo(n,t)||!dt(n.queryParams,t.queryParams);case"paramsChange":default:return!yo(n,t)}}function Be(n,t,o){let e=le(n),i=n.value;Object.entries(e).forEach(([r,a])=>{i.component?t?Be(a,t.children.getContext(r),o):Be(a,null,o):Be(a,t,o)}),i.component?t&&t.outlet&&t.outlet.isActivated?o.canDeactivateChecks.push(new me(t.outlet.component,i)):o.canDeactivateChecks.push(new me(null,i)):o.canDeactivateChecks.push(new me(null,i))}function nn(n){return typeof n=="function"}function Cd(n){return typeof n=="boolean"}function Td(n){return n&&nn(n.canLoad)}function Sd(n){return n&&nn(n.canActivate)}function Rd(n){return n&&nn(n.canActivateChild)}function Ad(n){return n&&nn(n.canDeactivate)}function Dd(n){return n&&nn(n.canMatch)}function $a(n){return n instanceof er||n?.name==="EmptyError"}var zn=Symbol("INITIAL_VALUE");function be(){return B(n=>te(n.map(t=>t.pipe(ot(1),un(zn)))).pipe(v(t=>{for(let o of t)if(o!==!0){if(o===zn)return zn;if(o===!1||o instanceof Dt)return o}return!0}),st(t=>t!==zn),ot(1)))}function Md(n,t){return K(o=>{let{targetSnapshot:e,currentSnapshot:i,guards:{canActivateChecks:r,canDeactivateChecks:a}}=o;return a.length===0&&r.length===0?p(U(h({},o),{guardsResult:!0})):kd(a,e,i,n).pipe(K(s=>s&&Cd(s)?Od(e,r,n,t):p(s)),v(s=>U(h({},o),{guardsResult:s})))})}function kd(n,t,o,e){return $(n).pipe(K(i=>Ld(i.component,i.route,o,t,e)),It(i=>i!==!0,!0))}function Od(n,t,o,e){return $(t).pipe(xt(i=>_t(Fd(i.route.parent,e),Nd(i.route,e),jd(n,i.path,o),Pd(n,i.route,o))),It(i=>i!==!0,!0))}function Nd(n,t){return n!==null&&t&&t(new po(n)),p(!0)}function Fd(n,t){return n!==null&&t&&t(new mo(n)),p(!0)}function Pd(n,t,o){let e=t.routeConfig?t.routeConfig.canActivate:null;if(!e||e.length===0)return p(!0);let i=e.map(r=>yi(()=>{let a=en(t)??o,s=ge(r,a),d=Sd(s)?s.canActivate(t,n):ct(a,()=>s(t,n));return Nt(d).pipe(It())}));return p(i).pipe(be())}function jd(n,t,o){let e=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(a=>xd(a)).filter(a=>a!==null).map(a=>yi(()=>{let s=a.guards.map(d=>{let c=en(a.node)??o,l=ge(d,c),f=Rd(l)?l.canActivateChild(e,n):ct(c,()=>l(e,n));return Nt(f).pipe(It())});return p(s).pipe(be())}));return p(r).pipe(be())}function Ld(n,t,o,e,i){let r=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!r||r.length===0)return p(!0);let a=r.map(s=>{let d=en(t)??i,c=ge(s,d),l=Ad(c)?c.canDeactivate(n,t,o,e):ct(d,()=>c(n,t,o,e));return Nt(l).pipe(It())});return p(a).pipe(be())}function Ud(n,t,o,e){let i=t.canLoad;if(i===void 0||i.length===0)return p(!0);let r=i.map(a=>{let s=ge(a,n),d=Td(s)?s.canLoad(t,o):ct(n,()=>s(t,o));return Nt(d)});return p(r).pipe(be(),Ba(e))}function Ba(n){return Qo(A(t=>{if(pe(t))throw La(n,t)}),v(t=>t===!0))}function zd(n,t,o,e){let i=t.canMatch;if(!i||i.length===0)return p(!0);let r=i.map(a=>{let s=ge(a,n),d=Dd(s)?s.canMatch(t,o):ct(n,()=>s(t,o));return Nt(d)});return p(r).pipe(be(),Ba(e))}var Ye=class{constructor(t){this.segmentGroup=t||null}},Qn=class extends Error{constructor(t){super(),this.urlTree=t}};function de(n){return jt(new Ye(n))}function $d(n){return jt(new S(4e3,!1))}function Bd(n){return jt(Ua(!1,X.GuardRejected))}var xo=class{constructor(t,o){this.urlSerializer=t,this.urlTree=o}lineralizeSegments(t,o){let e=[],i=o.root;for(;;){if(e=e.concat(i.segments),i.numberOfChildren===0)return p(e);if(i.numberOfChildren>1||!i.children[y])return $d(t.redirectTo);i=i.children[y]}}applyRedirectCommands(t,o,e){let i=this.applyRedirectCreateUrlTree(o,this.urlSerializer.parse(o),t,e);if(o.startsWith("/"))throw new Qn(i);return i}applyRedirectCreateUrlTree(t,o,e,i){let r=this.createSegmentGroup(t,o.root,e,i);return new Dt(r,this.createQueryParams(o.queryParams,this.urlTree.queryParams),o.fragment)}createQueryParams(t,o){let e={};return Object.entries(t).forEach(([i,r])=>{if(typeof r=="string"&&r.startsWith(":")){let s=r.substring(1);e[i]=o[s]}else e[i]=r}),e}createSegmentGroup(t,o,e,i){let r=this.createSegments(t,o.segments,e,i),a={};return Object.entries(o.children).forEach(([s,d])=>{a[s]=this.createSegmentGroup(t,d,e,i)}),new E(r,a)}createSegments(t,o,e,i){return o.map(r=>r.path.startsWith(":")?this.findPosParam(t,r,i):this.findOrReturn(r,e))}findPosParam(t,o,e){let i=e[o.path.substring(1)];if(!i)throw new S(4001,!1);return i}findOrReturn(t,o){let e=0;for(let i of o){if(i.path===t.path)return o.splice(e),i;e++}return t}},Io={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Vd(n,t,o,e,i){let r=Mo(n,t,o);return r.matched?(e=vd(t,e),zd(e,t,o,i).pipe(v(a=>a===!0?r:h({},Io)))):p(r)}function Mo(n,t,o){if(t.path==="**")return Wd(o);if(t.path==="")return t.pathMatch==="full"&&(n.hasChildren()||o.length>0)?h({},Io):{matched:!0,consumedSegments:[],remainingSegments:o,parameters:{},positionalParamSegments:{}};let i=(t.matcher||zc)(o,n,t);if(!i)return h({},Io);let r={};Object.entries(i.posParams??{}).forEach(([s,d])=>{r[s]=d.path});let a=i.consumed.length>0?h(h({},r),i.consumed[i.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:i.consumed,remainingSegments:o.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function Wd(n){return{matched:!0,parameters:n.length>0?wa(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function ga(n,t,o,e){return o.length>0&&Gd(n,o,e)?{segmentGroup:new E(t,qd(e,new E(o,n.children))),slicedSegments:[]}:o.length===0&&Kd(n,o,e)?{segmentGroup:new E(n.segments,Hd(n,o,e,n.children)),slicedSegments:o}:{segmentGroup:new E(n.segments,n.children),slicedSegments:o}}function Hd(n,t,o,e){let i={};for(let r of o)if(ni(n,t,r)&&!e[ut(r)]){let a=new E([],{});i[ut(r)]=a}return h(h({},e),i)}function qd(n,t){let o={};o[y]=t;for(let e of n)if(e.path===""&&ut(e)!==y){let i=new E([],{});o[ut(e)]=i}return o}function Gd(n,t,o){return o.some(e=>ni(n,t,e)&&ut(e)!==y)}function Kd(n,t,o){return o.some(e=>ni(n,t,e))}function ni(n,t,o){return(n.hasChildren()||t.length>0)&&o.pathMatch==="full"?!1:o.path===""}function Zd(n,t,o,e){return ut(n)!==e&&(e===y||!ni(t,o,n))?!1:Mo(t,n,o).matched}function Yd(n,t,o){return t.length===0&&!n.children[o]}var Eo=class{};function Jd(n,t,o,e,i,r,a="emptyOnly"){return new Co(n,t,o,e,i,a,r).recognize()}var Xd=31,Co=class{constructor(t,o,e,i,r,a,s){this.injector=t,this.configLoader=o,this.rootComponentType=e,this.config=i,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new xo(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new S(4002,`'${t.segmentGroup}'`)}recognize(){let t=ga(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(v(o=>{let e=new Ke([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,{},y,this.rootComponentType,null,{}),i=new J(e,o),r=new Jn("",i),a=rd(e,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(r._root,null),{state:r,tree:a}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,y).pipe(wt(e=>{if(e instanceof Qn)return this.urlTree=e.urlTree,this.match(e.urlTree.root);throw e instanceof Ye?this.noMatchError(e):e}))}inheritParamsAndData(t,o){let e=t.value,i=So(e,o,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r,e))}processSegmentGroup(t,o,e,i){return e.segments.length===0&&e.hasChildren()?this.processChildren(t,o,e):this.processSegment(t,o,e,e.segments,i,!0).pipe(v(r=>r instanceof J?[r]:[]))}processChildren(t,o,e){let i=[];for(let r of Object.keys(e.children))r==="primary"?i.unshift(r):i.push(r);return $(i).pipe(xt(r=>{let a=e.children[r],s=yd(o,r);return this.processSegmentGroup(t,s,a,r)}),sr((r,a)=>(r.push(...a),r)),wi(null),ar(),K(r=>{if(r===null)return de(e);let a=Va(r);return Qd(a),p(a)}))}processSegment(t,o,e,i,r,a){return $(o).pipe(xt(s=>this.processSegmentAgainstRoute(s._injector??t,o,s,e,i,r,a).pipe(wt(d=>{if(d instanceof Ye)return p(null);throw d}))),It(s=>!!s),wt(s=>{if($a(s))return Yd(e,i,r)?p(new Eo):de(e);throw s}))}processSegmentAgainstRoute(t,o,e,i,r,a,s){return Zd(e,i,r,a)?e.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,e,r,a):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(t,i,o,e,r,a):de(i):de(i)}expandSegmentAgainstRouteUsingRedirect(t,o,e,i,r,a){let{matched:s,consumedSegments:d,positionalParamSegments:c,remainingSegments:l}=Mo(o,i,r);if(!s)return de(o);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Xd&&(this.allowRedirects=!1));let f=this.applyRedirects.applyRedirectCommands(d,i.redirectTo,c);return this.applyRedirects.lineralizeSegments(i,f).pipe(K(g=>this.processSegment(t,e,o,g.concat(l),a,!1)))}matchSegmentAgainstRoute(t,o,e,i,r){let a=Vd(o,e,i,t,this.urlSerializer);return e.path==="**"&&(o.children={}),a.pipe(B(s=>s.matched?(t=e._injector??t,this.getChildConfig(t,e,i).pipe(B(({routes:d})=>{let c=e._loadedInjector??t,{consumedSegments:l,remainingSegments:f,parameters:g}=s,x=new Ke(l,g,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,el(e),ut(e),e.component??e._loadedComponent??null,e,nl(e)),{segmentGroup:Q,slicedSegments:L}=ga(o,l,f,d);if(L.length===0&&Q.hasChildren())return this.processChildren(c,d,Q).pipe(v(I=>I===null?null:new J(x,I)));if(d.length===0&&L.length===0)return p(new J(x,[]));let C=ut(e)===r;return this.processSegment(c,d,Q,L,C?y:r,!0).pipe(v(I=>new J(x,I instanceof J?[I]:[])))}))):de(o)))}getChildConfig(t,o,e){return o.children?p({routes:o.children,injector:t}):o.loadChildren?o._loadedRoutes!==void 0?p({routes:o._loadedRoutes,injector:o._loadedInjector}):Ud(t,o,e,this.urlSerializer).pipe(K(i=>i?this.configLoader.loadChildren(t,o).pipe(A(r=>{o._loadedRoutes=r.routes,o._loadedInjector=r.injector})):Bd(o))):p({routes:[],injector:t})}};function Qd(n){n.sort((t,o)=>t.value.outlet===y?-1:o.value.outlet===y?1:t.value.outlet.localeCompare(o.value.outlet))}function tl(n){let t=n.value.routeConfig;return t&&t.path===""}function Va(n){let t=[],o=new Set;for(let e of n){if(!tl(e)){t.push(e);continue}let i=t.find(r=>e.value.routeConfig===r.value.routeConfig);i!==void 0?(i.children.push(...e.children),o.add(i)):t.push(e)}for(let e of o){let i=Va(e.children);t.push(new J(e.value,i))}return t.filter(e=>!o.has(e))}function el(n){return n.data||{}}function nl(n){return n.resolve||{}}function il(n,t,o,e,i,r){return K(a=>Jd(n,t,o,e,a.extractedUrl,i,r).pipe(v(({state:s,tree:d})=>U(h({},a),{targetSnapshot:s,urlAfterRedirects:d}))))}function ol(n,t){return K(o=>{let{targetSnapshot:e,guards:{canActivateChecks:i}}=o;if(!i.length)return p(o);let r=new Set(i.map(d=>d.route)),a=new Set;for(let d of r)if(!a.has(d))for(let c of Wa(d))a.add(c);let s=0;return $(a).pipe(xt(d=>r.has(d)?rl(d,e,n,t):(d.data=So(d,d.parent,n).resolve,p(void 0))),A(()=>s++),xi(1),K(d=>s===a.size?p(o):yt))})}function Wa(n){let t=n.children.map(o=>Wa(o)).flat();return[n,...t]}function rl(n,t,o,e){let i=n.routeConfig,r=n._resolve;return i?.title!==void 0&&!Pa(i)&&(r[Xe]=i.title),al(r,n,t,e).pipe(v(a=>(n._resolvedData=a,n.data=So(n,n.parent,o).resolve,null)))}function al(n,t,o,e){let i=eo(n);if(i.length===0)return p({});let r={};return $(i).pipe(K(a=>sl(n[a],t,o,e).pipe(It(),A(s=>{r[a]=s}))),xi(1),ir(r),wt(a=>$a(a)?yt:jt(a)))}function sl(n,t,o,e){let i=en(t)??e,r=ge(n,i),a=r.resolve?r.resolve(t,o):ct(i,()=>r(t,o));return Nt(a)}function Qi(n){return B(t=>{let o=n(t);return o?$(o).pipe(v(()=>t)):p(t)})}var Ha=(()=>{let t=class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(a=>a.outlet===y);return i}getResolvedTitleForRoute(e){return e.data[Xe]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>m(cl),providedIn:"root"});let n=t;return n})(),cl=(()=>{let t=class t extends Ha{constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}};t.\u0275fac=function(i){return new(i||t)(u(la))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),on=new w("",{providedIn:"root",factory:()=>({})}),Je=new w(""),ko=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=m(Cn)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return p(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let i=Nt(e.loadComponent()).pipe(v(qa),A(a=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=a}),mt(()=>{this.componentLoaders.delete(e)})),r=new gi(i,()=>new G).pipe(bi());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return p({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let a=dl(i,this.compiler,e,this.onLoadEndListener).pipe(mt(()=>{this.childrenLoaders.delete(i)})),s=new gi(a,()=>new G).pipe(bi());return this.childrenLoaders.set(i,s),s}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function dl(n,t,o,e){return Nt(n.loadChildren()).pipe(v(qa),K(i=>i instanceof Rr||Array.isArray(i)?p(i):$(t.compileModuleAsync(i))),v(i=>{e&&e(n);let r,a,s=!1;return Array.isArray(i)?(a=i,s=!0):(r=i.create(o).injector,a=r.get(Je,[],{optional:!0,self:!0}).flat()),{routes:a.map(Do),injector:r}}))}function ll(n){return n&&typeof n=="object"&&"default"in n}function qa(n){return ll(n)?n.default:n}var Oo=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>m(ul),providedIn:"root"});let n=t;return n})(),ul=(()=>{let t=class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Ga=new w(""),Ka=new w("");function ml(n,t,o){let e=n.get(Ka),i=n.get(T);return n.get(R).runOutsideAngular(()=>{if(!i.startViewTransition||e.skipNextTransition)return e.skipNextTransition=!1,Promise.resolve();let r,a=new Promise(c=>{r=c}),s=i.startViewTransition(()=>(r(),hl(n))),{onViewTransitionCreated:d}=e;return d&&ct(n,()=>d({transition:s,from:t,to:o})),a})}function hl(n){return new Promise(t=>{Cr(t,{injector:n})})}var No=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new G,this.transitionAbortSubject=new G,this.configLoader=m(ko),this.environmentInjector=m(Ut),this.urlSerializer=m(Qe),this.rootContexts=m(tn),this.location=m(Re),this.inputBindingEnabled=m(ei,{optional:!0})!==null,this.titleStrategy=m(Ha),this.options=m(on,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=m(Oo),this.createViewTransition=m(Ga,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>p(void 0),this.rootComponentType=null;let e=r=>this.events.next(new lo(r)),i=r=>this.events.next(new uo(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;this.transitions?.next(U(h(h({},this.transitions.value),e),{id:i}))}setupNavigations(e,i,r){return this.transitions=new M({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:$e,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(st(a=>a.id!==0),v(a=>U(h({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),B(a=>{let s=!1,d=!1;return p(a).pipe(B(c=>{if(this.navigationId>a.id)return this.cancelNavigationTransition(a,"",X.SupersededByNewNavigation),yt;this.currentTransition=a,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?U(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),f=c.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!l&&f!=="reload"){let g="";return this.events.next(new kt(c.id,this.urlSerializer.serialize(c.rawUrl),g,qn.IgnoredSameUrlNavigation)),c.resolve(null),yt}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return p(c).pipe(B(g=>{let x=this.transitions?.getValue();return this.events.next(new fe(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),x!==this.transitions?.getValue()?yt:Promise.resolve(g)}),il(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),A(g=>{a.targetSnapshot=g.targetSnapshot,a.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation=U(h({},this.currentNavigation),{finalUrl:g.urlAfterRedirects});let x=new Gn(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);this.events.next(x)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:g,extractedUrl:x,source:Q,restoredState:L,extras:C}=c,I=new fe(g,this.urlSerializer.serialize(x),Q,L);this.events.next(I);let it=Na(this.rootComponentType).snapshot;return this.currentTransition=a=U(h({},c),{targetSnapshot:it,urlAfterRedirects:x,extras:U(h({},C),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=x,p(a)}else{let g="";return this.events.next(new kt(c.id,this.urlSerializer.serialize(c.extractedUrl),g,qn.IgnoredByUrlHandlingStrategy)),c.resolve(null),yt}}),A(c=>{let l=new ro(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),v(c=>(this.currentTransition=a=U(h({},c),{guards:wd(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),a)),Md(this.environmentInjector,c=>this.events.next(c)),A(c=>{if(a.guardsResult=c.guardsResult,pe(c.guardsResult))throw La(this.urlSerializer,c.guardsResult);let l=new ao(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),st(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",X.GuardRejected),!1)),Qi(c=>{if(c.guards.canActivateChecks.length)return p(c).pipe(A(l=>{let f=new so(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(f)}),B(l=>{let f=!1;return p(l).pipe(ol(this.paramsInheritanceStrategy,this.environmentInjector),A({next:()=>f=!0,complete:()=>{f||this.cancelNavigationTransition(l,"",X.NoDataFromResolver)}}))}),A(l=>{let f=new co(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(f)}))}),Qi(c=>{let l=f=>{let g=[];f.routeConfig?.loadComponent&&!f.routeConfig._loadedComponent&&g.push(this.configLoader.loadComponent(f.routeConfig).pipe(A(x=>{f.component=x}),v(()=>{})));for(let x of f.children)g.push(...l(x));return g};return te(l(c.targetSnapshot.root)).pipe(wi(null),ot(1))}),Qi(()=>this.afterPreactivation()),B(()=>{let{currentSnapshot:c,targetSnapshot:l}=a,f=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return f?$(f).pipe(v(()=>a)):p(a)}),v(c=>{let l=hd(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=a=U(h({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,a}),A(()=>{this.events.next(new qe)}),_d(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),ot(1),A({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new lt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),ee(this.transitionAbortSubject.pipe(A(c=>{throw c}))),mt(()=>{!s&&!d&&this.cancelNavigationTransition(a,"",X.SupersededByNewNavigation),this.currentTransition?.id===a.id&&(this.currentNavigation=null,this.currentTransition=null)}),wt(c=>{if(d=!0,za(c))this.events.next(new Mt(a.id,this.urlSerializer.serialize(a.extractedUrl),c.message,c.cancellationCode)),bd(c)?this.events.next(new Ge(c.url)):a.resolve(!1);else{this.events.next(new He(a.id,this.urlSerializer.serialize(a.extractedUrl),c,a.targetSnapshot??void 0));try{a.resolve(e.errorHandler(c))}catch(l){this.options.resolveNavigationPromiseOnError?a.resolve(!1):a.reject(l)}}return yt}))}))}cancelNavigationTransition(e,i,r){let a=new Mt(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(a),e.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}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function pl(n){return n!==$e}var fl=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>m(bl),providedIn:"root"});let n=t;return n})(),To=class{shouldDetach(t){return!1}store(t,o){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,o){return t.routeConfig===o.routeConfig}},bl=(()=>{let t=class t extends To{};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ci(t)))(r||t)}})(),t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Za=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>m(gl),providedIn:"root"});let n=t;return n})(),gl=(()=>{let t=class t extends Za{constructor(){super(...arguments),this.location=m(Re),this.urlSerializer=m(Qe),this.options=m(on,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=m(Oo),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Dt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Na(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(e){return this.location.subscribe(i=>{i.type==="popstate"&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof fe)this.stateMemento=this.createStateMemento();else if(e instanceof kt)this.rawUrlTree=i.initialUrl;else if(e instanceof Gn){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(r,i)}}else e instanceof qe?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):e instanceof Mt&&(e.code===X.GuardRejected||e.code===X.NoDataFromResolver)?this.restoreHistory(i):e instanceof He?this.restoreHistory(i,!0):e instanceof lt&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){let r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){let a=this.browserPageId,s=h(h({},i.extras.state),this.generateNgRouterState(i.id,a));this.location.replaceState(r,"",s)}else{let a=h(h({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(r,"",a)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,a=this.currentPageId-r;a!==0?this.location.historyGo(a):this.currentUrlTree===e.finalUrl&&a===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ci(t)))(r||t)}})(),t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Ue=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(Ue||{});function Ya(n,t){n.events.pipe(st(o=>o instanceof lt||o instanceof Mt||o instanceof He||o instanceof kt),v(o=>o instanceof lt||o instanceof kt?Ue.COMPLETE:(o instanceof Mt?o.code===X.Redirect||o.code===X.SupersededByNewNavigation:!1)?Ue.REDIRECTING:Ue.FAILED),st(o=>o!==Ue.REDIRECTING),ot(1)).subscribe(()=>{t()})}function vl(n){throw n}var yl={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_l={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},gt=(()=>{let t=class t{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.isNgZoneEnabled=!1,this.console=m(xn),this.stateManager=m(Za),this.options=m(on,{optional:!0})||{},this.pendingTasks=m(Te),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=m(No),this.urlSerializer=m(Qe),this.location=m(Re),this.urlHandlingStrategy=m(Oo),this._events=new G,this.errorHandler=this.options.errorHandler||vl,this.navigated=!1,this.routeReuseStrategy=m(fl),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=m(Je,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!m(ei,{optional:!0}),this.eventsSubscription=new xe,this.isNgZoneEnabled=m(R)instanceof R&&R.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(r!==null&&a!==null){if(this.stateManager.handleRouterEvent(i,a),i instanceof Mt&&i.code!==X.Redirect&&i.code!==X.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof lt)this.navigated=!0;else if(i instanceof Ge){let s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),d={info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||pl(r.source)};this.scheduleNavigation(s,$e,null,d,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}xl(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),$e,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,r){let a={replaceUrl:!0},s=r?.navigationId?r:null;if(r){let c=h({},r);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(a.state=c)}let d=this.parseUrl(e);this.scheduleNavigation(d,i,s,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Do),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(e,i={}){let{relativeTo:r,queryParams:a,fragment:s,queryParamsHandling:d,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:s,f=null;switch(d){case"merge":f=h(h({},this.currentUrlTree.queryParams),a);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=a||null}f!==null&&(f=this.removeEmptyProps(f));let g;try{let x=r?r.snapshot:this.routerState.snapshot.root;g=Da(x)}catch{(typeof e[0]!="string"||!e[0].startsWith("/"))&&(e=[]),g=this.currentUrlTree.root}return Ma(g,e,f,l??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=pe(e)?e:this.parseUrl(e),a=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(a,$e,null,i)}navigate(e,i={skipLocationChange:!1}){return wl(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=h({},yl):i===!1?r=h({},_l):r=i,pe(e))return ma(this.currentUrlTree,e,r);let a=this.parseUrl(e);return ma(this.currentUrlTree,a,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,a])=>(a!=null&&(i[r]=a),i),{})}scheduleNavigation(e,i,r,a,s){if(this.disposed)return Promise.resolve(!1);let d,c,l;s?(d=s.resolve,c=s.reject,l=s.promise):l=new Promise((g,x)=>{d=g,c=x});let f=this.pendingTasks.add();return Ya(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(f))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:a,resolve:d,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(g=>Promise.reject(g))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function wl(n){for(let t=0;t{let t=class t{constructor(e,i,r,a,s,d){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=a,this.el=s,this.locationStrategy=d,this.href=null,this.commands=null,this.onChanges=new G,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=e.events.subscribe(l=>{l instanceof lt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){e!=null?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,r,a,s){let d=this.urlTree;if(d===null||this.isAnchorElement&&(e!==0||i||r||a||s||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(d,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let i=this.href===null?null:xr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){let r=this.renderer,a=this.el.nativeElement;i!==null?r.setAttribute(a,e,i):r.removeAttribute(a,e)}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})}};t.\u0275fac=function(i){return new(i||t)(_(gt),_(Ot),pn("tabindex"),_(Er),_(V),_(ae))},t.\u0275dir=rt({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){i&1&&Vt("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),i&2&&Tt("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[k.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Y],skipLocationChange:[k.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Y],replaceUrl:[k.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Y],routerLink:"routerLink"},standalone:!0,features:[Ct,hn]});let n=t;return n})();var ti=class{};var Il=(()=>{let t=class t{constructor(e,i,r,a,s){this.router=e,this.injector=r,this.preloadingStrategy=a,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(st(e=>e instanceof lt),xt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let a of i){a.providers&&!a._injector&&(a._injector=Ri(a.providers,e,`Route: ${a.path}`));let s=a._injector??e,d=a._loadedInjector??s;(a.loadChildren&&!a._loadedRoutes&&a.canLoad===void 0||a.loadComponent&&!a._loadedComponent)&&r.push(this.preloadConfig(s,a)),(a.children||a._loadedRoutes)&&r.push(this.processRoutes(d,a.children??a._loadedRoutes))}return $(r).pipe(vi())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=p(null);let a=r.pipe(K(s=>s===null?p(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(i.loadComponent&&!i._loadedComponent){let s=this.loader.loadComponent(i);return $([a,s]).pipe(vi())}else return a})}};t.\u0275fac=function(i){return new(i||t)(u(gt),u(Cn),u(Ut),u(ti),u(ko))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Xa=new w(""),El=(()=>{let t=class t{constructor(e,i,r,a,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=a,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof fe?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof lt?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof kt&&e.code===qn.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Kn&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Kn(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};t.\u0275fac=function(i){oe()},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function Qa(n,...t){return Lt([{provide:Je,multi:!0,useValue:n},[],{provide:Ot,useFactory:ts,deps:[gt]},{provide:In,multi:!0,useFactory:es},t.map(o=>o.\u0275providers)])}function ts(n){return n.routerState.root}function ve(n,t){return{\u0275kind:n,\u0275providers:t}}function es(){let n=m(Ti);return t=>{let o=n.get(En);if(t!==o.components[0])return;let e=n.get(gt),i=n.get(ns);n.get(Fo)===1&&e.initialNavigation(),n.get(is,null,Ii.Optional)?.setUpPreloading(),n.get(Xa,null,Ii.Optional)?.init(),e.resetRootComponentType(o.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ns=new w("",{factory:()=>new G}),Fo=new w("",{providedIn:"root",factory:()=>1});function Cl(){return ve(2,[{provide:Fo,useValue:0},{provide:Se,multi:!0,deps:[Ti],useFactory:t=>{let o=t.get(Fr,Promise.resolve());return()=>o.then(()=>new Promise(e=>{let i=t.get(gt),r=t.get(ns);Ya(i,()=>{e(!0)}),t.get(No).afterPreactivation=()=>(e(!0),r.closed?p(void 0):r),i.initialNavigation()}))}}])}function Tl(){return ve(3,[{provide:Se,multi:!0,useFactory:()=>{let t=m(gt);return()=>{t.setUpLocationChangeListener()}}},{provide:Fo,useValue:2}])}var is=new w("");function Sl(n){return ve(0,[{provide:is,useExisting:Il},{provide:ti,useExisting:n}])}function os(){return ve(6,[{provide:ae,useClass:Oi}])}function Rl(){return ve(8,[ba,{provide:ei,useExisting:ba}])}function Al(n){let t=[{provide:Ga,useValue:ml},{provide:Ka,useValue:h({skipNextTransition:!!n?.skipInitialTransition},n)}];return ve(9,t)}var va=new w("ROUTER_FORROOT_GUARD"),Dl=[Re,{provide:Qe,useClass:Ve},gt,tn,{provide:Ot,useFactory:ts,deps:[gt]},ko,[]],rs=(()=>{let t=class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[Dl,[],{provide:Je,multi:!0,useValue:e},{provide:va,useFactory:Nl,deps:[[gt,new mn,new Ei]]},{provide:on,useValue:i||{}},i?.useHash?kl():Ol(),Ml(),i?.preloadingStrategy?Sl(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?Fl(i):[],i?.bindToComponentInputs?Rl().\u0275providers:[],i?.enableViewTransitions?Al().\u0275providers:[],Pl()]}}static forChild(e){return{ngModule:t,providers:[{provide:Je,multi:!0,useValue:e}]}}};t.\u0275fac=function(i){return new(i||t)(u(va,8))},t.\u0275mod=F({type:t}),t.\u0275inj=O({});let n=t;return n})();function Ml(){return{provide:Xa,useFactory:()=>{let n=m(zr),t=m(R),o=m(on),e=m(No),i=m(Qe);return o.scrollOffset&&n.setOffset(o.scrollOffset),new El(i,e,n,t,o)}}}function kl(){return{provide:ae,useClass:Oi}}function Ol(){return{provide:ae,useClass:Pr}}function Nl(n){return"guarded"}function Fl(n){return[n.initialNavigation==="disabled"?Tl().\u0275providers:[],n.initialNavigation==="enabledBlocking"?Cl().\u0275providers:[]]}var ya=new w("");function Pl(){return[{provide:ya,useFactory:es},{provide:In,multi:!0,useExisting:ya}]}var jo;try{jo=typeof Intl<"u"&&Intl.v8BreakIterator}catch{jo=!1}var W=(()=>{let t=class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Ur(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||jo)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};t.\u0275fac=function(i){return new(i||t)(u(ht))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var rn;function Ll(){if(rn==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>rn=!0}))}finally{rn=rn||!1}return rn}function ye(n){return Ll()?n:!!n.capture}var Po;function Ul(){if(Po==null){let n=typeof document<"u"?document.head:null;Po=!!(n&&(n.createShadowRoot||n.attachShadow))}return Po}function as(n){if(Ul()){let t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Ft(n){return n.composedPath?n.composedPath()[0]:n.target}function ss(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Lo(n){return Array.isArray(n)?n:[n]}function Yt(n){return n instanceof V?n.nativeElement:n}var cs=new Set,Jt,zl=(()=>{let t=class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Bl}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&$l(e,this._nonce),this._matchMedia(e)}};t.\u0275fac=function(i){return new(i||t)(u(W),u(Ee,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function $l(n,t){if(!cs.has(n))try{Jt||(Jt=document.createElement("style"),t&&Jt.setAttribute("nonce",t),Jt.setAttribute("type","text/css"),document.head.appendChild(Jt)),Jt.sheet&&(Jt.sheet.insertRule(`@media ${n} {body{ }}`,0),cs.add(n))}catch(o){console.error(o)}}function Bl(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var ls=(()=>{let t=class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new G}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return ds(Lo(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=ds(Lo(e)).map(s=>this._registerQuery(s).observable),a=te(r);return a=_t(a.pipe(ot(1)),a.pipe(ln(1),_i(0))),a.pipe(v(s=>{let d={matches:!1,breakpoints:{}};return s.forEach(({matches:c,query:l})=>{d.matches=d.matches||c,d.breakpoints[l]=c}),d}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),a={observable:new dn(s=>{let d=c=>this._zone.run(()=>s.next(c));return i.addListener(d),()=>{i.removeListener(d)}}).pipe(un(i),v(({matches:s})=>({query:e,matches:s})),ee(this._destroySubject)),mql:i};return this._queries.set(e,a),a}};t.\u0275fac=function(i){return new(i||t)(u(zl),u(R))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function ds(n){return n.map(t=>t.split(",")).reduce((t,o)=>t.concat(o)).map(t=>t.trim())}function zo(n){return n.buttons===0||n.detail===0}function $o(n){let t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}var Vl=new w("cdk-input-modality-detector-options"),Wl={ignoreKeys:[18,17,224,91,16]},hs=650,_e=ye({passive:!0,capture:!0}),Hl=(()=>{let t=class t{get mostRecentModality(){return this._modality.value}constructor(e,i,r,a){this._platform=e,this._mostRecentTarget=null,this._modality=new M(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(d=>d===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ft(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs{if($o(s)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ft(s)},this._options=h(h({},Wl),a),this.modalityDetected=this._modality.pipe(ln(1)),this.modalityChanged=this.modalityDetected.pipe(rr()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,_e),r.addEventListener("mousedown",this._onMousedown,_e),r.addEventListener("touchstart",this._onTouchstart,_e)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,_e),document.removeEventListener("mousedown",this._onMousedown,_e),document.removeEventListener("touchstart",this._onTouchstart,_e))}};t.\u0275fac=function(i){return new(i||t)(u(W),u(R),u(T),u(Vl,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var oi=function(n){return n[n.IMMEDIATE=0]="IMMEDIATE",n[n.EVENTUAL=1]="EVENTUAL",n}(oi||{}),ql=new w("cdk-focus-monitor-default-options"),ii=ye({passive:!0,capture:!0}),ps=(()=>{let t=class t{constructor(e,i,r,a,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new G,this._rootNodeFocusAndBlurListener=d=>{let c=Ft(d);for(let l=c;l;l=l.parentElement)d.type==="focus"?this._onFocus(d,l):this._onBlur(d,l)},this._document=a,this._detectionMode=s?.detectionMode||oi.IMMEDIATE}monitor(e,i=!1){let r=Yt(e);if(!this._platform.isBrowser||r.nodeType!==1)return p();let a=as(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;let d={checkChildren:i,subject:new G,rootNode:a};return this._elementInfo.set(r,d),this._registerGlobalListeners(d),d.subject}stopMonitoring(e){let i=Yt(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let a=Yt(e),s=this._getDocument().activeElement;a===s?this._getClosestElementsInfo(a).forEach(([d,c])=>this._originChanged(d,i,c)):(this._setOrigin(i),typeof a.focus=="function"&&a.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===oi.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===oi.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?hs:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),a=Ft(e);!r||!r.checkChildren&&i!==a||this._originChanged(i,this._getFocusOrigin(a),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,ii),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,ii)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ee(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ii),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ii),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,a)=>{(a===e||r.checkChildren&&a.contains(e))&&i.push([a,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let a=e.labels;if(a){for(let s=0;s{let t=class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=m(ls).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Xt.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,a=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),a){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Xt.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Xt.BLACK_ON_WHITE}return Xt.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(Uo,us,ms),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===Xt.BLACK_ON_WHITE?e.add(Uo,us):i===Xt.WHITE_ON_BLACK&&e.add(Uo,ms)}}};t.\u0275fac=function(i){return new(i||t)(u(W),u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Bo=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({});let n=t;return n})();function Zl(){return!0}var Yl=new w("mat-sanity-checks",{providedIn:"root",factory:Zl}),at=(()=>{let t=class t{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return ss()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[e]}};t.\u0275fac=function(i){return new(i||t)(u(fs),u(Yl,8),u(T))},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[Bo,Bo]});let n=t;return n})();var nt=function(n){return n[n.FADING_IN=0]="FADING_IN",n[n.VISIBLE=1]="VISIBLE",n[n.FADING_OUT=2]="FADING_OUT",n[n.HIDDEN=3]="HIDDEN",n}(nt||{}),Ho=class{constructor(t,o,e,i=!1){this._renderer=t,this.element=o,this.config=e,this._animationForciblyDisabledThroughCss=i,this.state=nt.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},bs=ye({passive:!0,capture:!0}),qo=class{constructor(){this._events=new Map,this._delegateEventHandler=t=>{let o=Ft(t);o&&this._events.get(t.type)?.forEach((e,i)=>{(i===o||i.contains(o))&&e.forEach(r=>r.handleEvent(t))})}}addHandler(t,o,e,i){let r=this._events.get(o);if(r){let a=r.get(e);a?a.add(i):r.set(e,new Set([i]))}else this._events.set(o,new Map([[e,new Set([i])]])),t.runOutsideAngular(()=>{document.addEventListener(o,this._delegateEventHandler,bs)})}removeHandler(t,o,e){let i=this._events.get(t);if(!i)return;let r=i.get(o);r&&(r.delete(e),r.size===0&&i.delete(o),i.size===0&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,bs)))}},gs={enterDuration:225,exitDuration:150},Jl=800,vs=ye({passive:!0,capture:!0}),ys=["mousedown","touchstart"],_s=["mouseup","mouseleave","touchend","touchcancel"],sn=class sn{constructor(t,o,e,i){this._target=t,this._ngZone=o,this._platform=i,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=Yt(e))}fadeInRipple(t,o,e={}){let i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=h(h({},gs),e.animation);e.centered&&(t=i.left+i.width/2,o=i.top+i.height/2);let a=e.radius||Xl(t,o,i),s=t-i.left,d=o-i.top,c=r.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=`${s-a}px`,l.style.top=`${d-a}px`,l.style.height=`${a*2}px`,l.style.width=`${a*2}px`,e.color!=null&&(l.style.backgroundColor=e.color),l.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(l);let f=window.getComputedStyle(l),g=f.transitionProperty,x=f.transitionDuration,Q=g==="none"||x==="0s"||x==="0s, 0s"||i.width===0&&i.height===0,L=new Ho(this,l,e,Q);l.style.transform="scale3d(1, 1, 1)",L.state=nt.FADING_IN,e.persistent||(this._mostRecentTransientRipple=L);let C=null;return!Q&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let I=()=>this._finishRippleTransition(L),it=()=>this._destroyRipple(L);l.addEventListener("transitionend",I),l.addEventListener("transitioncancel",it),C={onTransitionEnd:I,onTransitionCancel:it}}),this._activeRipples.set(L,C),(Q||!c)&&this._finishRippleTransition(L),L}fadeOutRipple(t){if(t.state===nt.FADING_OUT||t.state===nt.HIDDEN)return;let o=t.element,e=h(h({},gs),t.config.animation);o.style.transitionDuration=`${e.exitDuration}ms`,o.style.opacity="0",t.state=nt.FADING_OUT,(t._animationForciblyDisabledThroughCss||!e.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){let o=Yt(t);!this._platform.isBrowser||!o||o===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=o,ys.forEach(e=>{sn._eventManager.addHandler(this._ngZone,e,o,this)}))}handleEvent(t){t.type==="mousedown"?this._onMousedown(t):t.type==="touchstart"?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{_s.forEach(o=>{this._triggerElement.addEventListener(o,this,vs)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){t.state===nt.FADING_IN?this._startFadeOutTransition(t):t.state===nt.FADING_OUT&&this._destroyRipple(t)}_startFadeOutTransition(t){let o=t===this._mostRecentTransientRipple,{persistent:e}=t.config;t.state=nt.VISIBLE,!e&&(!o||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){let o=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=nt.HIDDEN,o!==null&&(t.element.removeEventListener("transitionend",o.onTransitionEnd),t.element.removeEventListener("transitioncancel",o.onTransitionCancel)),t.element.remove()}_onMousedown(t){let o=zo(t),e=this._lastTouchStartEvent&&Date.now(){let o=t.state===nt.VISIBLE||t.config.terminateOnPointerUp&&t.state===nt.FADING_IN;!t.config.persistent&&o&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let t=this._triggerElement;t&&(ys.forEach(o=>sn._eventManager.removeHandler(o,t,this)),this._pointerUpEventsRegistered&&_s.forEach(o=>t.removeEventListener(o,this,vs)))}};sn._eventManager=new qo;var Go=sn;function Xl(n,t,o){let e=Math.max(Math.abs(n-o.left),Math.abs(n-o.right)),i=Math.max(Math.abs(t-o.top),Math.abs(t-o.bottom));return Math.sqrt(e*e+i*i)}var Es=new w("mat-ripple-global-options"),Ql=(()=>{let t=class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,r,a,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new Go(this,i,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:h(h(h({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,h(h({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,h(h({},this.rippleConfig),e))}};t.\u0275fac=function(i){return new(i||t)(_(V),_(R),_(W),_(Es,8),_(Bt,8))},t.\u0275dir=rt({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&St("mat-ripple-unbounded",r.unbounded)},inputs:{color:[k.None,"matRippleColor","color"],unbounded:[k.None,"matRippleUnbounded","unbounded"],centered:[k.None,"matRippleCentered","centered"],radius:[k.None,"matRippleRadius","radius"],animation:[k.None,"matRippleAnimation","animation"],disabled:[k.None,"matRippleDisabled","disabled"],trigger:[k.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let n=t;return n})(),Cs=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[at,at]});let n=t;return n})();var ws={capture:!0},xs=["focus","click","mouseenter","touchstart"],Vo="mat-ripple-loader-uninitialized",Wo="mat-ripple-loader-class-name",Is="mat-ripple-loader-centered",ri="mat-ripple-loader-disabled",Ts=(()=>{let t=class t{constructor(){this._document=m(T,{optional:!0}),this._animationMode=m(Bt,{optional:!0}),this._globalRippleOptions=m(Es,{optional:!0}),this._platform=m(W),this._ngZone=m(R),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;let r=e.target.closest(`[${Vo}]`);r&&this._createRipple(r)},this._ngZone.runOutsideAngular(()=>{for(let e of xs)this._document?.addEventListener(e,this._onInteraction,ws)})}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);for(let i of xs)this._document?.removeEventListener(i,this._onInteraction,ws)}configureRipple(e,i){e.setAttribute(Vo,""),(i.className||!e.hasAttribute(Wo))&&e.setAttribute(Wo,i.className||""),i.centered&&e.setAttribute(Is,""),i.disabled&&e.setAttribute(ri,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){let r=this._hosts.get(e);if(r){r.disabled=i;return}i?e.setAttribute(ri,""):e.removeAttribute(ri)}_createRipple(e){if(!this._document)return;let i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();let r=this._document.createElement("span");r.classList.add("mat-ripple",e.getAttribute(Wo)),e.append(r);let a=new Ql(new V(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return a._isInitialized=!0,a.trigger=e,a.centered=e.hasAttribute(Is),a.disabled=e.hasAttribute(ri),this.attachRipple(e,a),a}attachRipple(e,i){e.removeAttribute(Vo),this._hosts.set(e,i)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var tu=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var eu=["mat-icon-button",""],nu=["*"];var iu=new w("MAT_BUTTON_CONFIG");var ou=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],ru=(()=>{let t=class t{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,i,r,a){this._elementRef=e,this._platform=i,this._ngZone=r,this._animationMode=a,this._focusMonitor=m(ps),this._rippleLoader=m(Ts),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let s=m(iu,{optional:!0}),d=e.nativeElement,c=d.classList;this.disabledInteractive=s?.disabledInteractive??!1,this._rippleLoader?.configureRipple(d,{className:"mat-mdc-button-ripple"});for(let{attribute:l,mdcClasses:f}of ou)d.hasAttribute(l)&&c.add(...f)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};t.\u0275fac=function(i){oe()},t.\u0275dir=rt({type:t,inputs:{color:"color",disableRipple:[k.HasDecoratorInputTransform,"disableRipple","disableRipple",Y],disabled:[k.HasDecoratorInputTransform,"disabled","disabled",Y],ariaDisabled:[k.HasDecoratorInputTransform,"aria-disabled","ariaDisabled",Y],disabledInteractive:[k.HasDecoratorInputTransform,"disabledInteractive","disabledInteractive",Y]},features:[Ct]});let n=t;return n})();var ai=(()=>{let t=class t extends ru{constructor(e,i,r,a){super(e,i,r,a),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};t.\u0275fac=function(i){return new(i||t)(_(V),_(W),_(R),_(Bt,8))},t.\u0275cmp=N({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,r){i&2&&(Tt("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),re(r.color?"mat-"+r.color:""),St("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[Sr,P],attrs:eu,ngContentSelectors:nu,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(Wt(),z(0,"span",0),Rt(1),z(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',tu],encapsulation:2,changeDetection:0});let n=t;return n})();var si=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[at,Cs,at]});let n=t;return n})();var au=["*"],ci;function su(){if(ci===void 0&&(ci=null,typeof window<"u")){let n=window;n.trustedTypes!==void 0&&(ci=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return ci}function cn(n){return su()?.createHTML(n)||n}function Rs(n){return Error(`Unable to find icon with the name "${n}"`)}function cu(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function As(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Ds(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}var vt=class{constructor(t,o,e){this.url=t,this.svgText=o,this.options=e}},du=(()=>{let t=class t{constructor(e,i,r,a){this._httpClient=e,this._sanitizer=i,this._errorHandler=a,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,a){return this._addSvgIconConfig(e,i,new vt(r,null,a))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,a){let s=this._sanitizer.sanitize(Z.HTML,r);if(!s)throw Ds(r);let d=cn(s);return this._addSvgIconConfig(e,i,new vt("",d,a))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new vt(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){let a=this._sanitizer.sanitize(Z.HTML,i);if(!a)throw Ds(i);let s=cn(a);return this._addSvgIconSetConfig(e,new vt("",s,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(Z.RESOURCE_URL,e);if(!i)throw As(e);let r=this._cachedIconsByUrl.get(i);return r?p(di(r)):this._loadSvgIconFromConfig(new vt(e,null)).pipe(A(a=>this._cachedIconsByUrl.set(i,a)),v(a=>di(a)))}getNamedSvgIcon(e,i=""){let r=Ms(i,e),a=this._svgIconConfigs.get(r);if(a)return this._getSvgFromConfig(a);if(a=this._getIconConfigFromResolvers(i,e),a)return this._svgIconConfigs.set(r,a),this._getSvgFromConfig(a);let s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):jt(Rs(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?p(di(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(v(i=>di(i)))}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return p(r);let a=i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(wt(d=>{let l=`Loading icon set URL: ${this._sanitizer.sanitize(Z.RESOURCE_URL,s.url)} failed: ${d.message}`;return this._errorHandler.handleError(new Error(l)),p(null)})));return nr(a).pipe(v(()=>{let s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw Rs(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let a=i[r];if(a.svgText&&a.svgText.toString().indexOf(e)>-1){let s=this._svgElementFromConfig(a),d=this._extractSvgIconFromSet(s,e,a.options);if(d)return d}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(A(i=>e.svgText=i),v(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?p(null):this._fetchIcon(e).pipe(A(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){let a=e.querySelector(`[id="${i}"]`);if(!a)return null;let s=a.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,r);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),r);let d=this._svgElementFromString(cn(""));return d.appendChild(s),this._setSvgAttributes(d,r)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){let i=this._svgElementFromString(cn("")),r=e.attributes;for(let a=0;acn(l)),mt(()=>this._inProgressUrlFetches.delete(s)),cr());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(Ms(e,i),r),this}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}var ks=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],pu=ks.map(n=>`[${n}]`).join(", "),fu=/^url\(['"]?#(.*?)['"]?\)$/,li=(()=>{let t=class t{get color(){return this._color||this._defaultColor}set color(e){this._color=e}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){let i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(e,i,r,a,s,d){this._elementRef=e,this._iconRegistry=i,this._location=a,this._errorHandler=s,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=xe.EMPTY,d&&(d.color&&(this.color=this._defaultColor=d.color),d.fontSet&&(this.fontSet=d.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let i=this._elementsWithExternalReferences;i&&i.forEach((r,a)=>{r.forEach(s=>{a.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(pu),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let a=0;a{let d=i[a],c=d.getAttribute(s),l=c?c.match(fu):null;if(l){let f=r.get(d);f||(f=[],r.set(d,f)),f.push({name:s,value:l[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(ot(1)).subscribe(a=>this._setSvgElement(a),a=>{let s=`Error retrieving icon ${i}:${r}! ${a.message}`;this._errorHandler.handleError(new Error(s))})}}};t.\u0275fac=function(i){return new(i||t)(_(V),_(du),pn("aria-hidden"),_(mu),_(zt),_(uu,8))},t.\u0275cmp=N({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(Tt("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),re(r.color?"mat-"+r.color:""),St("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[k.HasDecoratorInputTransform,"inline","inline",Y],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[Ct,P],ngContentSelectors:au,decls:1,vars:0,template:function(i,r){i&1&&(Wt(),Rt(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});let n=t;return n})(),ui=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[at,at]});let n=t;return n})();var Ko=function(n){return n.Favourite="favorite",n.FavouriteBorder="favorite_border",n}(Ko||{}),Zo=function(n){return n.Empty="hourglass_empty",n.Full="hourglass_full",n}(Zo||{});var Qt=function(n){return n.favourites="favourites",n.interval="interval",n}(Qt||{});var mi=(()=>{let t=class t{saveToLocalStorage(e,i){localStorage.setItem(e,i)}getFromLocalStorage(e){return localStorage.getItem(e)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var we=(()=>{let t=class t{constructor(e){this.localStorageService=e,this._favourites$=new M([]),this.favourites$=this._favourites$.asObservable()}initStore(){let e=this.localStorageService.getFromLocalStorage(Qt.favourites);e&&this._favourites$.next(JSON.parse(e))}addFavourite(e){e.isFavourite=!0,this._favourites$.next([...this._favourites$.value,e]),this.persistToLocalStorage()}removeFavourite(e){e.isFavourite=!1,this._favourites$.next(this._favourites$.value.filter(i=>i.value!==e.value)),this.persistToLocalStorage()}toggleFavourite(e){this.isFavourite(e)?this.removeFavourite(e):this.addFavourite(e)}persistToLocalStorage(){this.localStorageService.saveToLocalStorage(Qt.favourites,JSON.stringify(this._favourites$.value))}isFavourite(e){return this._favourites$.value.includes(e)}};t.\u0275fac=function(i){return new(i||t)(u(mi))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function bu(n,t){if(n&1){let o=Ar();q(0,"li")(1,"button",1),Vt("click",function(){let i=ur(o).$implicit,r=gn();return mr(r.favouritesStoreService.toggleFavourite(i))}),q(2,"mat-icon"),ft(3),tt()(),ft(4),tt()}if(n&2){let o=t.$implicit,e=gn();Et(3),_n(o.isFavourite?e.favouriteIcon.Favourite:e.favouriteIcon.FavouriteBorder),Et(),Mi(" ",o.value," ")}}var hi=(()=>{let t=class t{constructor(e){this.favouritesStoreService=e,this.favouriteIcon=Ko,this.jokes=[]}};t.\u0275fac=function(i){return new(i||t)(_(we))},t.\u0275cmp=N({type:t,selectors:[["cnjg-joke-list"]],inputs:{jokes:"jokes"},standalone:!0,features:[P],decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["mat-icon-button","","title","Favourites",3,"click"]],template:function(i,r){i&1&&(q(0,"ul"),Ai(1,bu,5,2,"li",0),tt()),i&2&&(Et(),pt("ngForOf",r.jokes))},dependencies:[bt,jr,ui,li,si,ai],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%}[_nghost-%COMP%] ul[_ngcontent-%COMP%]{margin-top:11px;margin-bottom:11px;width:98%;height:100%;justify-content:space-evenly;display:flex;flex-direction:column;align-items:center;padding-inline-start:0px}@media (min-width: 390px){[_nghost-%COMP%] ul[_ngcontent-%COMP%]{width:95%}}@media (min-width: 500px){[_nghost-%COMP%] ul[_ngcontent-%COMP%]{width:80%}}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;margin-bottom:10px}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2n){color:orange}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(odd){color:#add8e6}li[_ngcontent-%COMP%]{font-size:.75em;line-height:normal;display:flex;align-items:center}@media (min-width: 390px){li[_ngcontent-%COMP%]{font-size:1.2em}}@media (min-width: 500px){li[_ngcontent-%COMP%]{font-size:1.5em}}"],changeDetection:0});let n=t;return n})();var gu=()=>[],Ps=(()=>{let t=class t{constructor(e){this.favouritesStoreService=e}};t.\u0275fac=function(i){return new(i||t)(_(we))},t.\u0275cmp=N({type:t,selectors:[["cnjg-favourites"]],standalone:!0,features:[P],decls:2,vars:4,consts:[[3,"jokes"]],template:function(i,r){i&1&&(z(0,"cnjg-joke-list",0),Ht(1,"async")),i&2&&pt("jokes",qt(1,1,r.favouritesStoreService.favourites$)||wn(3,gu))},dependencies:[bt,se,hi],styles:["[_nghost-%COMP%]{height:100%}"],changeDetection:0});let n=t;return n})();var js="https://api.chucknorris.io/jokes/random";var Ls=(()=>{let t=class t{constructor(e){this.httpClient=e}getJoke(){return this.httpClient.get(js).pipe(v(e=>({value:e.value,isFavourite:!1})))}};t.\u0275fac=function(i){return new(i||t)(u(Oe))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Pt=(()=>{let t=class t{constructor(e){this.chuckNorrisJokeGeneratorService=e,this._jokes$=new M([]),this.jokes$=this._jokes$.asObservable()}initStore(){let e=Array(10).fill(this.chuckNorrisJokeGeneratorService.getJoke());_t(...e).subscribe(i=>this._jokes$.next([...this._jokes$.value,i]))}triggerNewJoke(){this.chuckNorrisJokeGeneratorService.getJoke().subscribe(e=>this._jokes$.next([e,...this._jokes$.value.splice(0,9)]))}};t.\u0275fac=function(i){return new(i||t)(u(Ls))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var yu=()=>[],Us=(()=>{let t=class t{constructor(e){this.jokeStoreService=e}};t.\u0275fac=function(i){return new(i||t)(_(Pt))},t.\u0275cmp=N({type:t,selectors:[["cnjg-jokes"]],standalone:!0,features:[P],decls:2,vars:4,consts:[[3,"jokes"]],template:function(i,r){i&1&&(z(0,"cnjg-joke-list",0),Ht(1,"async")),i&2&&pt("jokes",qt(1,1,r.jokeStoreService.jokes$)||wn(3,yu))},dependencies:[bt,se,hi],styles:["[_nghost-%COMP%]{height:100%}"],changeDetection:0});let n=t;return n})();var zs=[{path:"",redirectTo:"jokes",pathMatch:"full"},{path:"jokes",component:Us},{path:"favourites",component:Ps}];var _u="@",wu=(()=>{let t=class t{constructor(e,i,r,a,s){this.doc=e,this.delegate=i,this.zone=r,this.animationType=a,this.moduleImpl=s,this._rendererFactoryPromise=null,this.scheduler=m(Ir,{optional:!0})}ngOnDestroy(){this._engine?.flush()}loadImpl(){return(this.moduleImpl??import("./chunk-MW4VSIG3.js")).catch(i=>{throw new S(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:r})=>{this._engine=i(this.animationType,this.doc,this.scheduler);let a=new r(this.delegate,this._engine,this.zone);return this.delegate=a,a})}createRenderer(e,i){let r=this.delegate.createRenderer(e,i);if(r.\u0275type===0)return r;typeof r.throwOnSyntheticProps=="boolean"&&(r.throwOnSyntheticProps=!1);let a=new Jo(r);return i?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(s=>{let d=s.createRenderer(e,i);a.use(d)}).catch(s=>{a.use(r)}),a}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}};t.\u0275fac=function(i){oe()},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Jo=class{constructor(t){this.delegate=t,this.replay=[],this.\u0275type=1}use(t){if(this.delegate=t,this.replay!==null){for(let o of this.replay)o(t);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(t,o){return this.delegate.createElement(t,o)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}get destroyNode(){return this.delegate.destroyNode}appendChild(t,o){this.delegate.appendChild(t,o)}insertBefore(t,o,e,i){this.delegate.insertBefore(t,o,e,i)}removeChild(t,o,e){this.delegate.removeChild(t,o,e)}selectRootElement(t,o){return this.delegate.selectRootElement(t,o)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,o,e,i){this.delegate.setAttribute(t,o,e,i)}removeAttribute(t,o,e){this.delegate.removeAttribute(t,o,e)}addClass(t,o){this.delegate.addClass(t,o)}removeClass(t,o){this.delegate.removeClass(t,o)}setStyle(t,o,e,i){this.delegate.setStyle(t,o,e,i)}removeStyle(t,o,e){this.delegate.removeStyle(t,o,e)}setProperty(t,o,e){this.shouldReplay(o)&&this.replay.push(i=>i.setProperty(t,o,e)),this.delegate.setProperty(t,o,e)}setValue(t,o){this.delegate.setValue(t,o)}listen(t,o,e){return this.shouldReplay(o)&&this.replay.push(i=>i.listen(t,o,e)),this.delegate.listen(t,o,e)}shouldReplay(t){return this.replay!==null&&t.startsWith(_u)}};function $s(n="animations"){return Si("NgAsyncAnimations"),Lt([{provide:bn,useFactory:(t,o,e)=>new wu(t,o,e,n),deps:[T,jn,R]},{provide:Bt,useValue:n==="noop"?"NoopAnimations":"BrowserAnimations"}])}var pi=(()=>{let t=class t{constructor(e,i){this.jokeStoreService=e,this.localStorageService=i,this.intervalMs=5e3,this._isNewJokeIntervalRunning$=new M(!0),this.isNewJokeIntervalRunning$=this._isNewJokeIntervalRunning$.asObservable()}initStore(){this.loadIntervalStateFromLocalStorage()}toggleInterval(){this._isNewJokeIntervalRunning$.value?(this.cancelNewJokeTimer(),this._isNewJokeIntervalRunning$.next(!1)):(this.newJokeIntervalId=this.startNewJokeTimer(),this._isNewJokeIntervalRunning$.next(!0)),this.persistIntervalStateToLocalStorage()}cancelNewJokeTimer(){window.clearInterval(this.newJokeIntervalId),this.newJokeIntervalId=void 0,this._isNewJokeIntervalRunning$.next(!1)}startNewJokeTimer(){return this._isNewJokeIntervalRunning$.next(!0),window.setInterval(()=>{this.jokeStoreService.triggerNewJoke()},this.intervalMs)}persistIntervalStateToLocalStorage(){this.localStorageService.saveToLocalStorage(Qt.interval,JSON.stringify(this._isNewJokeIntervalRunning$.value))}loadIntervalStateFromLocalStorage(){let e=this.localStorageService.getFromLocalStorage(Qt.interval);e&&this._isNewJokeIntervalRunning$.next(JSON.parse(e)),this._isNewJokeIntervalRunning$.value&&(this.newJokeIntervalId=this.startNewJokeTimer())}};t.\u0275fac=function(i){return new(i||t)(u(Pt),u(mi))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Bs={providers:[Qa(zs,os()),$s(),$i(),{provide:Se,useFactory:(n,t,o)=>{n.initStore(),t.initStore(),o.initStore()},deps:[Pt,we,pi]}]};var Iu=["*",[["mat-toolbar-row"]]],Eu=["*","mat-toolbar-row"],Cu=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=rt({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0});let n=t;return n})(),Vs=(()=>{let t=class t{constructor(e,i,r){this._elementRef=e,this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}};t.\u0275fac=function(i){return new(i||t)(_(V),_(W),_(T))},t.\u0275cmp=N({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,r,a){if(i&1&&Di(a,Cu,5),i&2){let s;vn(s=yn())&&(r._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){i&2&&(re(r.color?"mat-"+r.color:""),St("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",r._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[P],ngContentSelectors:Eu,decls:2,vars:0,template:function(i,r){i&1&&(Wt(Iu),Rt(0),Rt(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0});let n=t;return n})();var Ws=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[at,at]});let n=t;return n})();var Hs=(()=>{let t=class t{constructor(e,i){this.jokeStoreService=e,this.intervalRunningStoreService=i,this.hourGlass=Zo,this.isSpin$=this.jokeStoreService.jokes$.pipe(B(()=>_t(p("spin"),p("stop").pipe(or(500)))))}};t.\u0275fac=function(i){return new(i||t)(_(Pt),_(pi))},t.\u0275cmp=N({type:t,selectors:[["cnjg-home"]],standalone:!0,features:[P],decls:18,vars:6,consts:[["color","primary",1,"sticky-toolbar"],["src","favicon.ico","alt","Chuck Norris Pixel Image","height","35"],[1,"header"],[1,"spacer"],["color","accent","mat-icon-button","","title","Jokes","routerLink","/jokes"],["color","accent","mat-icon-button","","title","Favourites","routerLink","/favourites"],["mat-icon-button","","title","Toggle Interval","color","warn","id","toggle-interval-button",3,"click"],[1,"content"]],template:function(i,r){i&1&&(q(0,"mat-toolbar",0),z(1,"img",1),q(2,"span",2),ft(3,"Chuck Norris Jokes"),tt(),z(4,"span",3),q(5,"button",4)(6,"mat-icon"),ft(7,"home"),tt()(),q(8,"button",5)(9,"mat-icon"),ft(10,"favorite"),tt()(),q(11,"button",6),Ht(12,"async"),Vt("click",function(){return r.intervalRunningStoreService.toggleInterval()}),q(13,"mat-icon"),ft(14),Ht(15,"async"),tt()()(),q(16,"main",7),z(17,"router-outlet"),tt()),i&2&&(Et(11),pt("@spinAnimation",qt(12,2,r.isSpin$)),Et(3),_n(qt(15,4,r.intervalRunningStoreService.isNewJokeIntervalRunning$)?r.hourGlass.Full:r.hourGlass.Empty))},dependencies:[ui,li,si,ai,Ws,Vs,bt,se,rs,Ao,Ja],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.header[_ngcontent-%COMP%]{padding-left:5px}mat-toolbar[_ngcontent-%COMP%]{padding:0 0 0 5px}.sticky-toolbar[_ngcontent-%COMP%]{position:sticky;top:0;z-index:1000;height:50px}.content[_ngcontent-%COMP%]{padding-top:1px}@media (max-width: 500px){.header[_ngcontent-%COMP%]{font-size:90%}}main[_ngcontent-%COMP%]{height:100%}"],data:{animation:[$r("spinAnimation",[Fi("spin",Ni({transform:"rotate(360deg)"})),Fi("stop",Ni({transform:"rotate(0)"})),Vr("spin <=> stop",[Br("0.5s")])])]},changeDetection:0});let n=t;return n})();var qs=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=N({type:t,selectors:[["cnjg-root"]],standalone:!0,features:[P],decls:1,vars:0,template:function(i,r){i&1&&z(0,"cnjg-home")},dependencies:[ta,Hs],encapsulation:2});let n=t;return n})();da(qs,Bs).catch(n=>console.error(n));