import{$ as ki,$a as Yt,A as or,Aa as Xi,Ab as nn,B as Se,Ba as Yi,Bb as uo,C as Ce,Ca as G,Cb as ho,D as be,Da as Ye,Db as k,E as sr,Ea as ke,Eb as vr,F as Mi,Fa as Zi,Fb as rn,G as Ai,Ga as b,Gb as on,H as Di,Ha as ht,Hb as sn,I as xi,Ia as Wt,Ib as po,J as V,Ja as hr,Jb as yr,K as Oi,Ka as te,Kb as an,L as N,La as pr,M as E,Ma as Ji,N as m,Na as Qi,O as Pi,Oa as Ki,P as T,Pa as A,Q as ar,Qa as Ze,R as C,Ra as eo,S as u,Sa as Je,T as Re,Ta as ne,U as Ni,Ua as fr,V as Ve,Va as to,W as ee,Wa as Xt,X as Q,Xa as pt,Y as cr,Ya as Ie,Z as Li,Za as x,_ as qe,_a as no,a as p,aa as z,ab as re,b as $,ba as Ui,bb as ro,c as Ci,ca as qt,cb as io,d as Ht,da as se,db as g,e as bi,ea as _e,eb as y,f as Ri,fa as Le,fb as D,g as tr,ga as ji,gb as de,h as nr,ha as Te,hb as ie,i as ve,ia as Gt,ib as ft,j as Z,ja as q,jb as mt,k as ue,ka as Fi,kb as Zt,l as H,la as lr,lb as Jt,m as f,ma as zi,mb as Qt,n as Pe,na as Ge,nb as O,o as _i,oa as $i,ob as j,p as Ti,pa as ur,pb as mr,q as S,qa as dr,qb as Kt,r as Vt,ra as Bi,rb as en,s as J,sa as dt,sb as gr,t as rr,ta as We,tb as oo,u as Ii,ua as Xe,ub as tn,v as ir,va as Hi,vb as so,w as Ei,wa as Vi,wb as ao,x as ye,xa as qi,xb as co,y as we,ya as Gi,yb as Ee,z as Ne,za as Wi,zb as lo}from"./chunk-5TXYVMEP.js";var vt=class{},un=class{},Ae=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(n){n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(` `).forEach(e=>{let t=e.indexOf(":");if(t>0){let i=e.slice(0,t),o=e.slice(t+1).trim();this.addHeaderEntry(i,o)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,t)=>{this.addHeaderEntry(t,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,t])=>{this.setHeaderEntries(e,t)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof r?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){let e=new r;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof r?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){let e=n.name.toLowerCase();switch(n.op){case"a":case"s":let t=n.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(n.name,e);let i=(n.op==="a"?this.headers.get(e):void 0)||[];i.push(...t),this.headers.set(e,i);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(c=>o.indexOf(c)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}addHeaderEntry(n,e){let t=n.toLowerCase();this.maybeSetNormalizedName(n,t),this.headers.has(t)?this.headers.get(t).push(e):this.headers.set(t,[e])}setHeaderEntries(n,e){let t=(Array.isArray(e)?e:[e]).map(o=>o.toString()),i=n.toLowerCase();this.headers.set(i,t),this.maybeSetNormalizedName(n,i)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var Sr=class{encodeKey(n){return fo(n)}encodeValue(n){return fo(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function qs(r,n){let e=new Map;return r.length>0&&r.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,c]=o==-1?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,o)),n.decodeValue(i.slice(o+1))],a=e.get(s)||[];a.push(c),e.set(s,a)}),e}var Gs=/%(\d[a-f0-9])/gi,Ws={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function fo(r){return encodeURIComponent(r).replace(Gs,(n,e)=>Ws[e]??n)}function cn(r){return`${r}`}var Me=class r{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new Sr,n.fromString){if(n.fromObject)throw new E(2805,!1);this.map=qs(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let t=n.fromObject[e],i=Array.isArray(t)?t.map(cn):[cn(t)];this.map.set(e,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){let e=[];return Object.keys(n).forEach(t=>{let i=n[t];Array.isArray(i)?i.forEach(o=>{e.push({param:t,value:o,op:"a"})}):e.push({param:t,value:i,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let e=this.encoder.encodeKey(n);return this.map.get(n).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let e=new r({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(cn(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let t=this.map.get(n.param)||[],i=t.indexOf(cn(n.value));i!==-1&&t.splice(i,1),t.length>0?this.map.set(n.param,t):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var Cr=class{map=new Map;set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}};function Xs(r){switch(r){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function mo(r){return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer}function go(r){return typeof Blob<"u"&&r instanceof Blob}function vo(r){return typeof FormData<"u"&&r instanceof FormData}function Ys(r){return typeof URLSearchParams<"u"&&r instanceof URLSearchParams}var yo="Content-Type",wo="Accept",Ro="X-Request-URL",_o="text/plain",To="application/json",Zs=`${To}, ${_o}, */*`,gt=class r{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(n,e,t,i){this.url=e,this.method=n.toUpperCase();let o;if(Xs(this.method)||i?(this.body=t!==void 0?t:null,o=i):o=t,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Ae,this.context??=new Cr,!this.params)this.params=new Me,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let c=e.indexOf("?"),a=c===-1?"?":cv.set(I,n.setHeaders[I]),l)),n.setParams&&(d=Object.keys(n.setParams).reduce((v,I)=>v.set(I,n.setParams[I]),d)),new r(e,t,s,{params:d,headers:l,context:h,reportProgress:a,responseType:i,withCredentials:c,transferCache:o})}},Qe=function(r){return r[r.Sent=0]="Sent",r[r.UploadProgress=1]="UploadProgress",r[r.ResponseHeader=2]="ResponseHeader",r[r.DownloadProgress=3]="DownloadProgress",r[r.Response=4]="Response",r[r.User=5]="User",r}(Qe||{}),yt=class{headers;status;statusText;url;ok;type;constructor(n,e=200,t="OK"){this.headers=n.headers||new Ae,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||t,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}},br=class r extends yt{constructor(n={}){super(n)}type=Qe.ResponseHeader;clone(n={}){return new r({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},Ke=class r extends yt{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=Qe.Response;clone(n={}){return new r({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},dn=class extends yt{name="HttpErrorResponse";message;error;ok=!1;constructor(n){super(n,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},Js=200,Qs=204;function wr(r,n){return{body:n,headers:r.headers,context:r.context,observe:r.observe,params:r.params,reportProgress:r.reportProgress,responseType:r.responseType,withCredentials:r.withCredentials,transferCache:r.transferCache}}var W=(()=>{class r{handler;constructor(e){this.handler=e}request(e,t,i={}){let o;if(e instanceof gt)o=e;else{let a;i.headers instanceof Ae?a=i.headers:a=new Ae(i.headers);let l;i.params&&(i.params instanceof Me?l=i.params:l=new Me({fromObject:i.params})),o=new gt(e,t,i.body!==void 0?i.body:null,{headers:a,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let s=f(o).pipe(Ne(a=>this.handler.handle(a)));if(e instanceof gt||i.observe==="events")return s;let c=s.pipe(ye(a=>a instanceof Ke));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return c.pipe(S(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new E(2806,!1);return a.body}));case"blob":return c.pipe(S(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new E(2807,!1);return a.body}));case"text":return c.pipe(S(a=>{if(a.body!==null&&typeof a.body!="string")throw new E(2808,!1);return a.body}));case"json":default:return c.pipe(S(a=>a.body))}case"response":return c;default:throw new E(2809,!1)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:new Me().append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,i={}){return this.request("PATCH",e,wr(i,t))}post(e,t,i={}){return this.request("POST",e,wr(i,t))}put(e,t,i={}){return this.request("PUT",e,wr(i,t))}static \u0275fac=function(t){return new(t||r)(C(vt))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})();var Ks=new T("");function ea(r,n){return n(r)}function ta(r,n,e){return(t,i)=>ee(e,()=>n(t,o=>r(o,i)))}var Io=new T(""),Eo=new T(""),na=new T("",{providedIn:"root",factory:()=>!0});var So=(()=>{class r extends vt{backend;injector;chain=null;pendingTasks=u(qt);contributeToStability=u(na);constructor(e,t){super(),this.backend=e,this.injector=t}handle(e){if(this.chain===null){let t=Array.from(new Set([...this.injector.get(Io),...this.injector.get(Eo,[])]));this.chain=t.reduceRight((i,o)=>ta(i,o,this.injector),ea)}if(this.contributeToStability){let t=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe(Ce(()=>this.pendingTasks.remove(t)))}else return this.chain(e,t=>this.backend.handle(t))}static \u0275fac=function(t){return new(t||r)(C(un),C(Ve))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})();var ra=/^\)\]\}',?\n/,ia=RegExp(`^${Ro}:`,"m");function oa(r){return"responseURL"in r&&r.responseURL?r.responseURL:ia.test(r.getAllResponseHeaders())?r.getResponseHeader(Ro):null}var Co=(()=>{class r{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new E(-2800,!1);let t=this.xhrFactory;return(t.\u0275loadImpl?H(t.\u0275loadImpl()):f(null)).pipe(V(()=>new Ri(o=>{let s=t.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((_,R)=>s.setRequestHeader(_,R.join(","))),e.headers.has(wo)||s.setRequestHeader(wo,Zs),!e.headers.has(yo)){let _=e.detectContentTypeHeader();_!==null&&s.setRequestHeader(yo,_)}if(e.responseType){let _=e.responseType.toLowerCase();s.responseType=_!=="json"?_:"text"}let c=e.serializeBody(),a=null,l=()=>{if(a!==null)return a;let _=s.statusText||"OK",R=new Ae(s.getAllResponseHeaders()),B=oa(s)||e.url;return a=new br({headers:R,status:s.status,statusText:_,url:B}),a},d=()=>{let{headers:_,status:R,statusText:B,url:He}=l(),P=null;R!==Qs&&(P=typeof s.response>"u"?s.responseText:s.response),R===0&&(R=P?Js:0);let ut=R>=200&&R<300;if(e.responseType==="json"&&typeof P=="string"){let $s=P;P=P.replace(ra,"");try{P=P!==""?JSON.parse(P):null}catch(Bs){P=$s,ut&&(ut=!1,P={error:Bs,text:P})}}ut?(o.next(new Ke({body:P,headers:_,status:R,statusText:B,url:He||void 0})),o.complete()):o.error(new dn({error:P,headers:_,status:R,statusText:B,url:He||void 0}))},h=_=>{let{url:R}=l(),B=new dn({error:_,status:s.status||0,statusText:s.statusText||"Unknown Error",url:R||void 0});o.error(B)},v=!1,I=_=>{v||(o.next(l()),v=!0);let R={type:Qe.DownloadProgress,loaded:_.loaded};_.lengthComputable&&(R.total=_.total),e.responseType==="text"&&s.responseText&&(R.partialText=s.responseText),o.next(R)},U=_=>{let R={type:Qe.UploadProgress,loaded:_.loaded};_.lengthComputable&&(R.total=_.total),o.next(R)};return s.addEventListener("load",d),s.addEventListener("error",h),s.addEventListener("timeout",h),s.addEventListener("abort",h),e.reportProgress&&(s.addEventListener("progress",I),c!==null&&s.upload&&s.upload.addEventListener("progress",U)),s.send(c),o.next({type:Qe.Sent}),()=>{s.removeEventListener("error",h),s.removeEventListener("abort",h),s.removeEventListener("load",d),s.removeEventListener("timeout",h),e.reportProgress&&(s.removeEventListener("progress",I),c!==null&&s.upload&&s.upload.removeEventListener("progress",U)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(t){return new(t||r)(C(an))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),Mo=new T(""),sa="XSRF-TOKEN",aa=new T("",{providedIn:"root",factory:()=>sa}),ca="X-XSRF-TOKEN",la=new T("",{providedIn:"root",factory:()=>ca}),hn=class{},ua=(()=>{class r{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,t,i){this.doc=e,this.platform=t,this.cookieName=i}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=on(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(t){return new(t||r)(C(k),C(Ge),C(aa))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})();function da(r,n){let e=r.url.toLowerCase();if(!u(Mo)||r.method==="GET"||r.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return n(r);let t=u(hn).getToken(),i=u(la);return t!=null&&!r.headers.has(i)&&(r=r.clone({headers:r.headers.set(i,t)})),n(r)}function Ao(...r){let n=[W,Co,So,{provide:vt,useExisting:So},{provide:un,useFactory:()=>u(Ks,{optional:!0})??u(Co)},{provide:Io,useValue:da,multi:!0},{provide:Mo,useValue:!0},{provide:hn,useClass:ua}];for(let e of r)n.push(...e.\u0275providers);return Re(n)}var ha=new T(""),pa="b",fa="h",ma="s",ga="st",va="u",ya="rt",ln=new T(""),wa=["GET","HEAD"];function Sa(r,n){let v=u(ln),{isCacheActive:e}=v,t=Ci(v,["isCacheActive"]),{transferCache:i,method:o}=r;if(!e||i===!1||o==="POST"&&!t.includePostRequests&&!i||o!=="POST"&&!wa.includes(o)||!t.includeRequestsWithAuthHeaders&&Ca(r)||t.filter?.(r)===!1)return n(r);let s=u(dr);if(u(ha,{optional:!0}))throw new E(2803,!1);let a=r.url,l=ba(r,a),d=s.get(l,null),h=t.includeHeaders;if(typeof i=="object"&&i.includeHeaders&&(h=i.includeHeaders),d){let{[pa]:I,[ya]:U,[fa]:_,[ma]:R,[ga]:B,[va]:He}=d,P=I;switch(U){case"arraybuffer":P=new TextEncoder().encode(I).buffer;break;case"blob":P=new Blob([I]);break}let ut=new Ae(_);return f(new Ke({body:P,headers:ut,status:R,statusText:B,url:He}))}return n(r).pipe(N(I=>{I instanceof Ke}))}function Ca(r){return r.headers.has("authorization")||r.headers.has("proxy-authorization")}function bo(r){return[...r.keys()].sort().map(n=>`${n}=${r.getAll(n)}`).join("&")}function ba(r,n){let{params:e,method:t,responseType:i}=r,o=bo(e),s=r.serializeBody();s instanceof URLSearchParams?s=bo(s):typeof s!="string"&&(s="");let c=[t,i,n,s,o].join("|"),a=Ra(c);return a}function Ra(r){let n=0;for(let e of r)n=Math.imul(31,n)+e.charCodeAt(0)<<0;return n+=2147483648,n.toString()}function Do(r){return[{provide:ln,useFactory:()=>(Gt("NgHttpTransferCache"),p({isCacheActive:!0},r))},{provide:Eo,useValue:Sa,multi:!0,deps:[dr,ln]},{provide:Xt,multi:!0,useFactory:()=>{let n=u(pt),e=u(ln);return()=>{n.whenStable().then(()=>{e.isCacheActive=!1})}}}]}var _r=class extends ho{supportsDOMEvents=!0},Tr=class r extends _r{static makeCurrent(){uo(new r)}onAndCancel(n,e,t,i){return n.addEventListener(e,t,i),()=>{n.removeEventListener(e,t,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=Ma();return e==null?null:Aa(e)}resetBaseElement(){Ct=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return on(document.cookie,n)}},Ct=null;function Ma(){return Ct=Ct||document.querySelector("base"),Ct?Ct.getAttribute("href"):null}function Aa(r){return new URL(r,document.baseURI).pathname}var Da=(()=>{class r{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),Ir=new T(""),Lo=(()=>{class r{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(i=>{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,i,o){return this._findPluginFor(t).addEventListener(e,t,i,o)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(o=>o.supports(e)),!t)throw new E(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||r)(C(Ir),C(_e))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),fn=class{_doc;constructor(n){this._doc=n}manager},pn="ng-app-id";function xo(r){for(let n of r)n.remove()}function Oo(r,n){let e=n.createElement("style");return e.textContent=r,e}function xa(r,n,e,t){let i=r.head?.querySelectorAll(`style[${pn}="${n}"],link[${pn}="${n}"]`);if(i)for(let o of i)o.removeAttribute(pn),o instanceof HTMLLinkElement?t.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function Er(r,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",r),e}var ko=(()=>{class r{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,t,i,o={}){this.doc=e,this.appId=t,this.nonce=i,this.isServer=yr(o),xa(e,t,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,t){for(let i of e)this.addUsage(i,this.inline,Oo);t?.forEach(i=>this.addUsage(i,this.external,Er))}removeStyles(e,t){for(let i of e)this.removeUsage(i,this.inline);t?.forEach(i=>this.removeUsage(i,this.external))}addUsage(e,t,i){let o=t.get(e);o?o.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(e,this.doc)))})}removeUsage(e,t){let i=t.get(e);i&&(i.usage--,i.usage<=0&&(xo(i.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])xo(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:i}]of this.inline)i.push(this.addElement(e,Oo(t,this.doc)));for(let[t,{elements:i}]of this.external)i.push(this.addElement(e,Er(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),this.isServer&&t.setAttribute(pn,this.appId),e.appendChild(t)}static \u0275fac=function(t){return new(t||r)(C(k),C(lr),C(ur,8),C(Ge))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),Rr={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Ar=/%COMP%/g;var Uo="%COMP%",Oa=`_nghost-${Uo}`,Pa=`_ngcontent-${Uo}`,Na=!0,La=new T("",{providedIn:"root",factory:()=>Na});function ka(r){return Pa.replace(Ar,r)}function Ua(r){return Oa.replace(Ar,r)}function jo(r,n){return n.map(e=>e.replace(Ar,r))}var mn=(()=>{class r{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,t,i,o,s,c,a,l=null,d=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=c,this.ngZone=a,this.nonce=l,this.tracingService=d,this.platformIsServer=yr(c),this.defaultRenderer=new bt(e,s,a,this.platformIsServer,this.tracingService)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===dt.ShadowDom&&(t=$(p({},t),{encapsulation:dt.Emulated}));let i=this.getOrCreateRenderer(e,t);return i instanceof gn?i.applyToHost(e):i instanceof Rt&&i.applyStyles(),i}getOrCreateRenderer(e,t){let i=this.rendererByCompId,o=i.get(t.id);if(!o){let s=this.doc,c=this.ngZone,a=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer,v=this.tracingService;switch(t.encapsulation){case dt.Emulated:o=new gn(a,l,t,this.appId,d,s,c,h,v);break;case dt.ShadowDom:return new Mr(a,l,e,t,s,c,this.nonce,h,v);default:o=new Rt(a,l,t,d,s,c,h,v);break}i.set(t.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(t){return new(t||r)(C(Lo),C(ko),C(lr),C(La),C(k),C(Ge),C(_e),C(ur),C(Bi,8))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),bt=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,t,i,o){this.eventManager=n,this.doc=e,this.ngZone=t,this.platformIsServer=i,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(Rr[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(Po(n)?n.content:n).appendChild(e)}insertBefore(n,e,t){n&&(Po(n)?n.content:n).insertBefore(e,t)}removeChild(n,e){e.remove()}selectRootElement(n,e){let t=typeof n=="string"?this.doc.querySelector(n):n;if(!t)throw new E(-5104,!1);return e||(t.textContent=""),t}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,t,i){if(i){e=i+":"+e;let o=Rr[i];o?n.setAttributeNS(o,e,t):n.setAttribute(e,t)}else n.setAttribute(e,t)}removeAttribute(n,e,t){if(t){let i=Rr[t];i?n.removeAttributeNS(i,e):n.removeAttribute(`${t}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,t,i){i&(ht.DashCase|ht.Important)?n.style.setProperty(e,t,i&ht.Important?"important":""):n.style[e]=t}removeStyle(n,e,t){t&ht.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,t){n!=null&&(n[e]=t)}setValue(n,e){n.nodeValue=e}listen(n,e,t,i){if(typeof n=="string"&&(n=nn().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);let o=this.decoratePreventDefault(t);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,e,o)),this.eventManager.addEventListener(n,e,o,i)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function Po(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var Mr=class extends bt{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,t,i,o,s,c,a,l){super(n,o,s,a,l),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=i.styles;d=jo(i.id,d);for(let v of d){let I=document.createElement("style");c&&I.setAttribute("nonce",c),I.textContent=v,this.shadowRoot.appendChild(I)}let h=i.getExternalStyles?.();if(h)for(let v of h){let I=Er(v,o);c&&I.setAttribute("nonce",c),this.shadowRoot.appendChild(I)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,t){return super.insertBefore(this.nodeOrShadowRoot(n),e,t)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Rt=class extends bt{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,t,i,o,s,c,a,l){super(n,o,s,c,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let d=t.styles;this.styles=l?jo(l,d):d,this.styleUrls=t.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},gn=class extends Rt{contentAttr;hostAttr;constructor(n,e,t,i,o,s,c,a,l){let d=i+"-"+t.id;super(n,e,t,o,s,c,a,l,d),this.contentAttr=ka(d),this.hostAttr=Ua(d)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let t=super.createElement(n,e);return super.setAttribute(t,this.contentAttr,""),t}},ja=(()=>{class r extends fn{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,i,o){return e.addEventListener(t,i,o),()=>this.removeEventListener(e,t,i,o)}removeEventListener(e,t,i,o){return e.removeEventListener(t,i,o)}static \u0275fac=function(t){return new(t||r)(C(k))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),No=["alt","control","meta","shift"],Fa={"\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"},za={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},$a=(()=>{class r extends fn{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,t,i,o){let s=r.parseEventName(t),c=r.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>nn().onAndCancel(e,s.domEventName,c,o))}static parseEventName(e){let t=e.toLowerCase().split("."),i=t.shift();if(t.length===0||!(i==="keydown"||i==="keyup"))return null;let o=r._normalizeKey(t.pop()),s="",c=t.indexOf("code");if(c>-1&&(t.splice(c,1),s="code."),No.forEach(l=>{let d=t.indexOf(l);d>-1&&(t.splice(d,1),s+=l+".")}),s+=o,t.length!=0||o.length===0)return null;let a={};return a.domEventName=i,a.fullKey=s,a}static matchEventFullKeyCode(e,t){let i=Fa[e.key]||e.key,o="";return t.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),No.forEach(s=>{if(s!==i){let c=za[s];c(e)&&(o+=s+".")}}),o+=i,o===t)}static eventCallback(e,t,i){return o=>{r.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>t(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||r)(C(k))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})();function Fo(r,n){return so(p({rootComponent:r},Ba(n)))}function Ba(r){return{appProviders:[...Wa,...r?.providers??[]],platformProviders:Ga}}function Ha(){Tr.makeCurrent()}function Va(){return new Le}function qa(){return Fi(document),document}var Ga=[{provide:Ge,useValue:po},{provide:zi,useValue:Ha,multi:!0},{provide:k,useFactory:qa,deps:[]}];var Wa=[{provide:Ni,useValue:"root"},{provide:Le,useFactory:Va,deps:[]},{provide:Ir,useClass:ja,multi:!0,deps:[k]},{provide:Ir,useClass:$a,multi:!0,deps:[k]},mn,ko,Lo,{provide:Wt,useExisting:mn},{provide:an,useClass:Da,deps:[]},[]];var zo=(()=>{class r{_doc;_dom;constructor(e){this._doc=e,this._dom=nn()}addTag(e,t=!1){return e?this._getOrCreateElement(e,t):null}addTags(e,t=!1){return e?e.reduce((i,o)=>(o&&i.push(this._getOrCreateElement(o,t)),i),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];let t=this._doc.querySelectorAll(`meta[${e}]`);return t?[].slice.call(t):[]}updateTag(e,t){if(!e)return null;t=t||this._parseSelector(e);let i=this.getTag(t);return i?this._setMetaElementAttributes(e,i):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,t=!1){if(!t){let s=this._parseSelector(e),c=this.getTags(s).filter(a=>this._containsAttributes(e,a))[0];if(c!==void 0)return c}let i=this._dom.createElement("meta");return this._setMetaElementAttributes(e,i),this._doc.getElementsByTagName("head")[0].appendChild(i),i}_setMetaElementAttributes(e,t){return Object.keys(e).forEach(i=>t.setAttribute(this._getMetaKeyMap(i),e[i])),t}_parseSelector(e){let t=e.name?"name":"property";return`${t}="${e[t]}"`}_containsAttributes(e,t){return Object.keys(e).every(i=>t.getAttribute(this._getMetaKeyMap(i))===e[i])}_getMetaKeyMap(e){return Xa[e]||e}static \u0275fac=function(t){return new(t||r)(C(k))};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Xa={httpEquiv:"http-equiv"},yn=(()=>{class r{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||r)(C(k))};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var Dr=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:function(t){let i=null;return t?i=new(t||r):i=C(Ya),i},providedIn:"root"})}return r})(),Ya=(()=>{class r extends Dr{_doc;constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case G.NONE:return t;case G.HTML:return Xe(t,"HTML")?We(t):Yi(this._doc,String(t)).toString();case G.STYLE:return Xe(t,"Style")?We(t):t;case G.SCRIPT:if(Xe(t,"Script"))return We(t);throw new E(5200,!1);case G.URL:return Xe(t,"URL")?We(t):Xi(String(t));case G.RESOURCE_URL:if(Xe(t,"ResourceURL"))return We(t);throw new E(5201,!1);default:throw new E(5202,!1)}}bypassSecurityTrustHtml(e){return Hi(e)}bypassSecurityTrustStyle(e){return Vi(e)}bypassSecurityTrustScript(e){return qi(e)}bypassSecurityTrustUrl(e){return Gi(e)}bypassSecurityTrustResourceUrl(e){return Wi(e)}static \u0275fac=function(t){return new(t||r)(C(k))};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),vn=function(r){return r[r.NoHttpTransferCache=0]="NoHttpTransferCache",r[r.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",r[r.I18nSupport=2]="I18nSupport",r[r.EventReplay=3]="EventReplay",r[r.IncrementalHydration=4]="IncrementalHydration",r}(vn||{});function Za(r,n=[],e={}){return{\u0275kind:r,\u0275providers:n}}function $o(){return Za(vn.EventReplay,ao())}function Bo(...r){let n=[],e=new Set,t=e.has(vn.HttpTransferCacheOptions);for(let{\u0275providers:i,\u0275kind:o}of r)e.add(o),i.length&&n.push(i);return Re([[],co(),e.has(vn.NoHttpTransferCache)||t?[]:Do({}),n])}var w="primary",jt=Symbol("RouteTitle"),Lr=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ot(r){return new Lr(r)}function Ja(r,n,e){let t=e.path.split("/");if(t.length>r.length||e.pathMatch==="full"&&(n.hasChildren()||t.lengtht[o]===i)}else return r===n}function Ko(r){return r.length>0?r[r.length-1]:null}function xe(r){return _i(r)?r:to(r)?H(Promise.resolve(r)):f(r)}var Ka={exact:ts,subset:ns},es={exact:ec,subset:tc,ignored:()=>!0};function Vo(r,n,e){return Ka[e.paths](r.root,n.root,e.matrixParams)&&es[e.queryParams](r.queryParams,n.queryParams)&&!(e.fragment==="exact"&&r.fragment!==n.fragment)}function ec(r,n){return ae(r,n)}function ts(r,n,e){if(!je(r.segments,n.segments)||!Cn(r.segments,n.segments,e)||r.numberOfChildren!==n.numberOfChildren)return!1;for(let t in n.children)if(!r.children[t]||!ts(r.children[t],n.children[t],e))return!1;return!0}function tc(r,n){return Object.keys(n).length<=Object.keys(r).length&&Object.keys(n).every(e=>Qo(r[e],n[e]))}function ns(r,n,e){return rs(r,n,n.segments,e)}function rs(r,n,e,t){if(r.segments.length>e.length){let i=r.segments.slice(0,e.length);return!(!je(i,e)||n.hasChildren()||!Cn(i,e,t))}else if(r.segments.length===e.length){if(!je(r.segments,e)||!Cn(r.segments,e,t))return!1;for(let i in n.children)if(!r.children[i]||!ns(r.children[i],n.children[i],t))return!1;return!0}else{let i=e.slice(0,r.segments.length),o=e.slice(r.segments.length);return!je(r.segments,i)||!Cn(r.segments,i,t)||!r.children[w]?!1:rs(r.children[w],n,o,t)}}function Cn(r,n,e){return n.every((t,i)=>es[e](r[i].parameters,t.parameters))}var pe=class{root;queryParams;fragment;_queryParamMap;constructor(n=new M([],{}),e={},t=null){this.root=n,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap??=ot(this.queryParams),this._queryParamMap}toString(){return ic.serialize(this)}},M=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bn(this)}},Ue=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=ot(this.parameters),this._parameterMap}toString(){return os(this)}};function nc(r,n){return je(r,n)&&r.every((e,t)=>ae(e.parameters,n[t].parameters))}function je(r,n){return r.length!==n.length?!1:r.every((e,t)=>e.path===n[t].path)}function rc(r,n){let e=[];return Object.entries(r.children).forEach(([t,i])=>{t===w&&(e=e.concat(n(i,t)))}),Object.entries(r.children).forEach(([t,i])=>{t!==w&&(e=e.concat(n(i,t)))}),e}var ci=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:()=>new At,providedIn:"root"})}return r})(),At=class{parse(n){let e=new jr(n);return new pe(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${_t(n.root,!0)}`,t=ac(n.queryParams),i=typeof n.fragment=="string"?`#${oc(n.fragment)}`:"";return`${e}${t}${i}`}},ic=new At;function bn(r){return r.segments.map(n=>os(n)).join("/")}function _t(r,n){if(!r.hasChildren())return bn(r);if(n){let e=r.children[w]?_t(r.children[w],!1):"",t=[];return Object.entries(r.children).forEach(([i,o])=>{i!==w&&t.push(`${i}:${_t(o,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}else{let e=rc(r,(t,i)=>i===w?[_t(r.children[w],!1)]:[`${i}:${_t(t,!1)}`]);return Object.keys(r.children).length===1&&r.children[w]!=null?`${bn(r)}/${e[0]}`:`${bn(r)}/(${e.join("//")})`}}function is(r){return encodeURIComponent(r).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function wn(r){return is(r).replace(/%3B/gi,";")}function oc(r){return encodeURI(r)}function Ur(r){return is(r).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Rn(r){return decodeURIComponent(r)}function qo(r){return Rn(r.replace(/\+/g,"%20"))}function os(r){return`${Ur(r.path)}${sc(r.parameters)}`}function sc(r){return Object.entries(r).map(([n,e])=>`;${Ur(n)}=${Ur(e)}`).join("")}function ac(r){let n=Object.entries(r).map(([e,t])=>Array.isArray(t)?t.map(i=>`${wn(e)}=${wn(i)}`).join("&"):`${wn(e)}=${wn(t)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var cc=/^[^\/()?;#]+/;function xr(r){let n=r.match(cc);return n?n[0]:""}var lc=/^[^\/()?;=#]+/;function uc(r){let n=r.match(lc);return n?n[0]:""}var dc=/^[^=?&#]+/;function hc(r){let n=r.match(dc);return n?n[0]:""}var pc=/^[^&#]+/;function fc(r){let n=r.match(pc);return n?n[0]:""}var jr=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new M([],{}):new M([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(t[w]=new M(n,e)),t}parseSegment(){let n=xr(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new E(4009,!1);return this.capture(n),new Ue(Rn(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=uc(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let i=xr(this.remaining);i&&(t=i,this.capture(t))}n[Rn(e)]=Rn(t)}parseQueryParam(n){let e=hc(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let s=fc(this.remaining);s&&(t=s,this.capture(t))}let i=qo(e),o=qo(t);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=xr(this.remaining),i=this.remaining[t.length];if(i!=="/"&&i!==")"&&i!==";")throw new E(4010,!1);let o;t.indexOf(":")>-1?(o=t.slice(0,t.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=w);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[w]:new M([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new E(4011,!1)}};function ss(r){return r.segments.length>0?new M([],{[w]:r}):r}function as(r){let n={};for(let[t,i]of Object.entries(r.children)){let o=as(i);if(t===w&&o.segments.length===0&&o.hasChildren())for(let[s,c]of Object.entries(o.children))n[s]=c;else(o.segments.length>0||o.hasChildren())&&(n[t]=o)}let e=new M(r.segments,n);return mc(e)}function mc(r){if(r.numberOfChildren===1&&r.children[w]){let n=r.children[w];return new M(r.segments.concat(n.segments),n.children)}return r}function Fe(r){return r instanceof pe}function gc(r,n,e=null,t=null){let i=cs(r);return ls(i,n,e,t)}function cs(r){let n;function e(o){let s={};for(let a of o.children){let l=e(a);s[a.outlet]=l}let c=new M(o.url,s);return o===r&&(n=c),c}let t=e(r.root),i=ss(t);return n??i}function ls(r,n,e,t){let i=r;for(;i.parent;)i=i.parent;if(n.length===0)return Or(i,i,i,e,t);let o=vc(n);if(o.toRoot())return Or(i,i,new M([],{}),e,t);let s=yc(o,i,r),c=s.processChildren?It(s.segmentGroup,s.index,o.commands):ds(s.segmentGroup,s.index,o.commands);return Or(i,s.segmentGroup,c,e,t)}function _n(r){return typeof r=="object"&&r!=null&&!r.outlets&&!r.segmentPath}function Dt(r){return typeof r=="object"&&r!=null&&r.outlets}function Or(r,n,e,t,i){let o={};t&&Object.entries(t).forEach(([a,l])=>{o[a]=Array.isArray(l)?l.map(d=>`${d}`):`${l}`});let s;r===n?s=e:s=us(r,n,e);let c=ss(as(s));return new pe(c,o,i)}function us(r,n,e){let t={};return Object.entries(r.children).forEach(([i,o])=>{o===n?t[i]=e:t[i]=us(o,n,e)}),new M(r.segments,t)}var Tn=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,t){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=t,n&&t.length>0&&_n(t[0]))throw new E(4003,!1);let i=t.find(Dt);if(i&&i!==Ko(t))throw new E(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function vc(r){if(typeof r[0]=="string"&&r.length===1&&r[0]==="/")return new Tn(!0,0,r);let n=0,e=!1,t=r.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([a,l])=>{c[a]=typeof l=="string"?l.split("/"):l}),[...i,{outlets:c}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((c,a)=>{a==0&&c==="."||(a==0&&c===""?e=!0:c===".."?n++:c!=""&&i.push(c))}),i):[...i,o]},[]);return new Tn(e,n,t)}var nt=class{segmentGroup;processChildren;index;constructor(n,e,t){this.segmentGroup=n,this.processChildren=e,this.index=t}};function yc(r,n,e){if(r.isAbsolute)return new nt(n,!0,0);if(!e)return new nt(n,!1,NaN);if(e.parent===null)return new nt(e,!0,0);let t=_n(r.commands[0])?0:1,i=e.segments.length-1+t;return wc(e,i,r.numberOfDoubleDots)}function wc(r,n,e){let t=r,i=n,o=e;for(;o>i;){if(o-=i,t=t.parent,!t)throw new E(4005,!1);i=t.segments.length}return new nt(t,!1,i-o)}function Sc(r){return Dt(r[0])?r[0].outlets:{[w]:r}}function ds(r,n,e){if(r??=new M([],{}),r.segments.length===0&&r.hasChildren())return It(r,n,e);let t=Cc(r,n,e),i=e.slice(t.commandIndex);if(t.match&&t.pathIndexo!==w)&&r.children[w]&&r.numberOfChildren===1&&r.children[w].segments.length===0){let o=It(r.children[w],n,e);return new M(r.segments,o.children)}return Object.entries(t).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=ds(r.children[o],n,s))}),Object.entries(r.children).forEach(([o,s])=>{t[o]===void 0&&(i[o]=s)}),new M(r.segments,i)}}function Cc(r,n,e){let t=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i=e.length)return o;let s=r.segments[i],c=e[t];if(Dt(c))break;let a=`${c}`,l=t0&&a===void 0)break;if(a&&l&&typeof l=="object"&&l.outlets===void 0){if(!Wo(a,l,s))return o;t+=2}else{if(!Wo(a,{},s))return o;t++}i++}return{match:!0,pathIndex:i,commandIndex:t}}function Fr(r,n,e){let t=r.segments.slice(0,n),i=0;for(;i{typeof t=="string"&&(t=[t]),t!==null&&(n[e]=Fr(new M([],{}),0,t))}),n}function Go(r){let n={};return Object.entries(r).forEach(([e,t])=>n[e]=`${t}`),n}function Wo(r,n,e){return r==e.path&&ae(n,e.parameters)}var Et="imperative",F=function(r){return r[r.NavigationStart=0]="NavigationStart",r[r.NavigationEnd=1]="NavigationEnd",r[r.NavigationCancel=2]="NavigationCancel",r[r.NavigationError=3]="NavigationError",r[r.RoutesRecognized=4]="RoutesRecognized",r[r.ResolveStart=5]="ResolveStart",r[r.ResolveEnd=6]="ResolveEnd",r[r.GuardsCheckStart=7]="GuardsCheckStart",r[r.GuardsCheckEnd=8]="GuardsCheckEnd",r[r.RouteConfigLoadStart=9]="RouteConfigLoadStart",r[r.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",r[r.ChildActivationStart=11]="ChildActivationStart",r[r.ChildActivationEnd=12]="ChildActivationEnd",r[r.ActivationStart=13]="ActivationStart",r[r.ActivationEnd=14]="ActivationEnd",r[r.Scroll=15]="Scroll",r[r.NavigationSkipped=16]="NavigationSkipped",r}(F||{}),K=class{id;url;constructor(n,e){this.id=n,this.url=e}},xt=class extends K{type=F.NavigationStart;navigationTrigger;restoredState;constructor(n,e,t="imperative",i=null){super(n,e),this.navigationTrigger=t,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},fe=class extends K{urlAfterRedirects;type=F.NavigationEnd;constructor(n,e,t){super(n,e),this.urlAfterRedirects=t}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Y=function(r){return r[r.Redirect=0]="Redirect",r[r.SupersededByNewNavigation=1]="SupersededByNewNavigation",r[r.NoDataFromResolver=2]="NoDataFromResolver",r[r.GuardRejected=3]="GuardRejected",r}(Y||{}),zr=function(r){return r[r.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",r[r.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",r}(zr||{}),he=class extends K{reason;code;type=F.NavigationCancel;constructor(n,e,t,i){super(n,e),this.reason=t,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},ze=class extends K{reason;code;type=F.NavigationSkipped;constructor(n,e,t,i){super(n,e),this.reason=t,this.code=i}},Ot=class extends K{error;target;type=F.NavigationError;constructor(n,e,t,i){super(n,e),this.error=t,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},In=class extends K{urlAfterRedirects;state;type=F.RoutesRecognized;constructor(n,e,t,i){super(n,e),this.urlAfterRedirects=t,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$r=class extends K{urlAfterRedirects;state;type=F.GuardsCheckStart;constructor(n,e,t,i){super(n,e),this.urlAfterRedirects=t,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Br=class extends K{urlAfterRedirects;state;shouldActivate;type=F.GuardsCheckEnd;constructor(n,e,t,i,o){super(n,e),this.urlAfterRedirects=t,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Hr=class extends K{urlAfterRedirects;state;type=F.ResolveStart;constructor(n,e,t,i){super(n,e),this.urlAfterRedirects=t,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Vr=class extends K{urlAfterRedirects;state;type=F.ResolveEnd;constructor(n,e,t,i){super(n,e),this.urlAfterRedirects=t,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qr=class{route;type=F.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Gr=class{route;type=F.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Wr=class{snapshot;type=F.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Xr=class{snapshot;type=F.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Yr=class{snapshot;type=F.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Zr=class{snapshot;type=F.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Pt=class{},st=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Rc(r,n){return r.providers&&!r._injector&&(r._injector=Ki(r.providers,n,`Route: ${r.path}`)),r._injector??n}function oe(r){return r.outlet||w}function _c(r,n){let e=r.filter(t=>oe(t)===n);return e.push(...r.filter(t=>oe(t)!==n)),e}function Ft(r){if(!r)return null;if(r.routeConfig?._injector)return r.routeConfig._injector;for(let n=r.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Jr=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Ft(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Pn(this.rootInjector)}},Pn=(()=>{class r{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,t){let i=this.getOrCreateContext(e);i.outlet=t,this.contexts.set(e,i)}onChildOutletDestroyed(e){let t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Jr(this.rootInjector),this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(t){return new(t||r)(C(Ve))};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),En=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Qr(n,this._root);return e?e.children.map(t=>t.value):[]}firstChild(n){let e=Qr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=Kr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Kr(n,this._root).map(e=>e.value)}};function Qr(r,n){if(r===n.value)return n;for(let e of n.children){let t=Qr(r,e);if(t)return t}return null}function Kr(r,n){if(r===n.value)return[n];for(let e of n.children){let t=Kr(r,e);if(t.length)return t.unshift(n),t}return[]}var X=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function tt(r){let n={};return r&&r.children.forEach(e=>n[e.value.outlet]=e),n}var Mn=class extends En{snapshot;constructor(n,e){super(n),this.snapshot=e,li(this,n)}toString(){return this.snapshot.toString()}};function hs(r){let n=Tc(r),e=new Z([new Ue("",{})]),t=new Z({}),i=new Z({}),o=new Z({}),s=new Z(""),c=new $e(e,t,o,s,i,w,r,n.root);return c.snapshot=n.root,new Mn(new X(c,[]),n)}function Tc(r){let n={},e={},t={},i="",o=new rt([],n,t,i,e,w,r,null,{});return new Dn("",new X(o,[]))}var $e=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,t,i,o,s,c,a){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=t,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=c,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(S(l=>l[jt]))??f(void 0),this.url=n,this.params=e,this.queryParams=t,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(S(n=>ot(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(S(n=>ot(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function An(r,n,e="emptyOnly"){let t,{routeConfig:i}=r;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?t={params:p(p({},n.params),r.params),data:p(p({},n.data),r.data),resolve:p(p(p(p({},r.data),n.data),i?.data),r._resolvedData)}:t={params:p({},r.params),data:p({},r.data),resolve:p(p({},r.data),r._resolvedData??{})},i&&fs(i)&&(t.resolve[jt]=i.title),t}var rt=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[jt]}constructor(n,e,t,i,o,s,c,a,l){this.url=n,this.params=e,this.queryParams=t,this.fragment=i,this.data=o,this.outlet=s,this.component=c,this.routeConfig=a,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ot(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ot(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(t=>t.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Dn=class extends En{url;constructor(n,e){super(e),this.url=n,li(this,e)}toString(){return ps(this._root)}};function li(r,n){n.value._routerState=r,n.children.forEach(e=>li(r,e))}function ps(r){let n=r.children.length>0?` { ${r.children.map(ps).join(", ")} } `:"";return`${r.value}${n}`}function Pr(r){if(r.snapshot){let n=r.snapshot,e=r._futureSnapshot;r.snapshot=e,ae(n.queryParams,e.queryParams)||r.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&r.fragmentSubject.next(e.fragment),ae(n.params,e.params)||r.paramsSubject.next(e.params),Qa(n.url,e.url)||r.urlSubject.next(e.url),ae(n.data,e.data)||r.dataSubject.next(e.data)}else r.snapshot=r._futureSnapshot,r.dataSubject.next(r._futureSnapshot.data)}function ei(r,n){let e=ae(r.params,n.params)&&nc(r.url,n.url),t=!r.parent!=!n.parent;return e&&!t&&(!r.parent||ei(r.parent,n.parent))}function fs(r){return typeof r.title=="string"||r.title===null}var Ic=new T(""),ui=(()=>{class r{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=w;activateEvents=new se;deactivateEvents=new se;attachEvents=new se;detachEvents=new se;routerOutletData=ji(void 0);parentContexts=u(Pn);location=u(Ji);changeDetector=u(tn);inputBinder=u(Nn,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:t,previousValue:i}=e.name;if(t)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new E(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new E(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new E(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,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,t){if(this.isActivated)throw new E(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,a=new ti(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:a,environmentInjector:t}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(t){return new(t||r)};static \u0275dir=Ze({type:r,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Q]})}return r})(),ti=class r{route;childContexts;parent;outletData;__ngOutletInjector(n){return new r(this.route,this.childContexts,n,this.outletData)}constructor(n,e,t,i){this.route=n,this.childContexts=e,this.parent=t,this.outletData=i}get(n,e){return n===$e?this.route:n===Pn?this.childContexts:n===Ic?this.outletData:this.parent.get(n,e)}},Nn=new T(""),Xo=(()=>{class r{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:t}=e,i=Vt([t.queryParams,t.params,t.data]).pipe(V(([o,s,c],a)=>(c=p(p(p({},o),s),c),a===0?f(c):Promise.resolve(c)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==t||t.component===null){this.unsubscribeFromRouteData(e);return}let s=lo(t.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:c}of s.inputs)e.activatedComponentRef.setInput(c,o[c])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})();function Ec(r,n,e){let t=Nt(r,n._root,e?e._root:void 0);return new Mn(t,n)}function Nt(r,n,e){if(e&&r.shouldReuseRoute(n.value,e.value.snapshot)){let t=e.value;t._futureSnapshot=n.value;let i=Mc(r,n,e);return new X(t,i)}else{if(r.shouldAttach(n.value)){let o=r.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(c=>Nt(r,c)),s}}let t=Ac(n.value),i=n.children.map(o=>Nt(r,o));return new X(t,i)}}function Mc(r,n,e){return n.children.map(t=>{for(let i of e.children)if(r.shouldReuseRoute(t.value,i.value.snapshot))return Nt(r,t,i);return Nt(r,t)})}function Ac(r){return new $e(new Z(r.url),new Z(r.params),new Z(r.queryParams),new Z(r.fragment),new Z(r.data),r.outlet,r.component,r)}var Lt=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},ms="ngNavigationCancelingError";function xn(r,n){let{redirectTo:e,navigationBehaviorOptions:t}=Fe(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=gs(!1,Y.Redirect);return i.url=e,i.navigationBehaviorOptions=t,i}function gs(r,n){let e=new Error(`NavigationCancelingError: ${r||""}`);return e[ms]=!0,e.cancellationCode=n,e}function Dc(r){return vs(r)&&Fe(r.url)}function vs(r){return!!r&&r[ms]}var xc=(r,n,e,t)=>S(i=>(new ni(n,i.targetRouterState,i.currentRouterState,e,t).activate(r),i)),ni=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,t,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=t,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,n),Pr(this.futureState.root),this.activateChildRoutes(e,t,n)}deactivateChildRoutes(n,e,t){let i=tt(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],t),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,t)})}deactivateRoutes(n,e,t){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=t.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,t);else o&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let t=e.getContext(n.value.outlet),i=t&&n.value.component?t.children:e,o=tt(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(t&&t.outlet){let s=t.outlet.detach(),c=t.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:c})}}deactivateRouteAndOutlet(n,e){let t=e.getContext(n.value.outlet),i=t&&n.value.component?t.children:e,o=tt(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(n,e,t){let i=tt(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],t),this.forwardEvent(new Zr(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Xr(n.value.snapshot))}activateRoutes(n,e,t){let i=n.value,o=e?e.value:null;if(Pr(i),i===o)if(i.component){let s=t.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,t);else if(i.component){let s=t.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(c.contexts),s.attachRef=c.componentRef,s.route=c.route.value,s.outlet&&s.outlet.attach(c.componentRef,c.route.value),Pr(c.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,t)}},On=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},it=class{component;route;constructor(n,e){this.component=n,this.route=e}};function Oc(r,n,e){let t=r._root,i=n?n._root:null;return Tt(t,i,e,[t.value])}function Pc(r){let n=r.routeConfig?r.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:r,guards:n}}function ct(r,n){let e=Symbol(),t=n.get(r,e);return t===e?typeof r=="function"&&!Pi(r)?r:n.get(r):t}function Tt(r,n,e,t,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=tt(n);return r.children.forEach(s=>{Nc(s,o[s.value.outlet],e,t.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,c])=>Mt(c,e.getContext(s),i)),i}function Nc(r,n,e,t,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=r.value,s=n?n.value:null,c=e?e.getContext(r.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let a=Lc(s,o,o.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new On(t)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Tt(r,n,c?c.children:null,t,i):Tt(r,n,e,t,i),a&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new it(c.outlet.component,s))}else s&&Mt(n,c,i),i.canActivateChecks.push(new On(t)),o.component?Tt(r,null,c?c.children:null,t,i):Tt(r,null,e,t,i);return i}function Lc(r,n,e){if(typeof e=="function")return e(r,n);switch(e){case"pathParamsChange":return!je(r.url,n.url);case"pathParamsOrQueryParamsChange":return!je(r.url,n.url)||!ae(r.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ei(r,n)||!ae(r.queryParams,n.queryParams);case"paramsChange":default:return!ei(r,n)}}function Mt(r,n,e){let t=tt(r),i=r.value;Object.entries(t).forEach(([o,s])=>{i.component?n?Mt(s,n.children.getContext(o),e):Mt(s,null,e):Mt(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new it(n.outlet.component,i)):e.canDeactivateChecks.push(new it(null,i)):e.canDeactivateChecks.push(new it(null,i))}function zt(r){return typeof r=="function"}function kc(r){return typeof r=="boolean"}function Uc(r){return r&&zt(r.canLoad)}function jc(r){return r&&zt(r.canActivate)}function Fc(r){return r&&zt(r.canActivateChild)}function zc(r){return r&&zt(r.canDeactivate)}function $c(r){return r&&zt(r.canMatch)}function ys(r){return r instanceof Ti||r?.name==="EmptyError"}var Sn=Symbol("INITIAL_VALUE");function at(){return V(r=>Vt(r.map(n=>n.pipe(Se(1),xi(Sn)))).pipe(S(n=>{for(let e of n)if(e!==!0){if(e===Sn)return Sn;if(e===!1||Bc(e))return e}return!0}),ye(n=>n!==Sn),Se(1)))}function Bc(r){return Fe(r)||r instanceof Lt}function Hc(r,n){return J(e=>{let{targetSnapshot:t,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?f($(p({},e),{guardsResult:!0})):Vc(s,t,i,r).pipe(J(c=>c&&kc(c)?qc(t,o,r,n):f(c)),S(c=>$(p({},e),{guardsResult:c})))})}function Vc(r,n,e,t){return H(r).pipe(J(i=>Zc(i.component,i.route,e,n,t)),be(i=>i!==!0,!0))}function qc(r,n,e,t){return H(n).pipe(Ne(i=>Ii(Wc(i.route.parent,t),Gc(i.route,t),Yc(r,i.path,e),Xc(r,i.route,e))),be(i=>i!==!0,!0))}function Gc(r,n){return r!==null&&n&&n(new Yr(r)),f(!0)}function Wc(r,n){return r!==null&&n&&n(new Wr(r)),f(!0)}function Xc(r,n,e){let t=n.routeConfig?n.routeConfig.canActivate:null;if(!t||t.length===0)return f(!0);let i=t.map(o=>ir(()=>{let s=Ft(n)??e,c=ct(o,s),a=jc(c)?c.canActivate(n,r):ee(s,()=>c(n,r));return xe(a).pipe(be())}));return f(i).pipe(at())}function Yc(r,n,e){let t=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>Pc(s)).filter(s=>s!==null).map(s=>ir(()=>{let c=s.guards.map(a=>{let l=Ft(s.node)??e,d=ct(a,l),h=Fc(d)?d.canActivateChild(t,r):ee(l,()=>d(t,r));return xe(h).pipe(be())});return f(c).pipe(at())}));return f(o).pipe(at())}function Zc(r,n,e,t,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return f(!0);let s=o.map(c=>{let a=Ft(n)??i,l=ct(c,a),d=zc(l)?l.canDeactivate(r,n,e,t):ee(a,()=>l(r,n,e,t));return xe(d).pipe(be())});return f(s).pipe(at())}function Jc(r,n,e,t){let i=n.canLoad;if(i===void 0||i.length===0)return f(!0);let o=i.map(s=>{let c=ct(s,r),a=Uc(c)?c.canLoad(n,e):ee(r,()=>c(n,e));return xe(a)});return f(o).pipe(at(),ws(t))}function ws(r){return bi(N(n=>{if(typeof n!="boolean")throw xn(r,n)}),S(n=>n===!0))}function Qc(r,n,e,t){let i=n.canMatch;if(!i||i.length===0)return f(!0);let o=i.map(s=>{let c=ct(s,r),a=$c(c)?c.canMatch(n,e):ee(r,()=>c(n,e));return xe(a)});return f(o).pipe(at(),ws(t))}var kt=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},Ut=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function et(r){return Pe(new kt(r))}function Kc(r){return Pe(new E(4e3,!1))}function el(r){return Pe(gs(!1,Y.GuardRejected))}var ri=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let t=[],i=e.root;for(;;){if(t=t.concat(i.segments),i.numberOfChildren===0)return f(t);if(i.numberOfChildren>1||!i.children[w])return Kc(`${n.redirectTo}`);i=i.children[w]}}applyRedirectCommands(n,e,t,i,o){if(typeof e!="string"){let c=e,{queryParams:a,fragment:l,routeConfig:d,url:h,outlet:v,params:I,data:U,title:_}=i,R=ee(o,()=>c({params:I,data:U,queryParams:a,fragment:l,routeConfig:d,url:h,outlet:v,title:_}));if(R instanceof pe)throw new Ut(R);e=R}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,t);if(e[0]==="/")throw new Ut(s);return s}applyRedirectCreateUrlTree(n,e,t,i){let o=this.createSegmentGroup(n,e.root,t,i);return new pe(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let t={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let c=o.substring(1);t[i]=e[c]}else t[i]=o}),t}createSegmentGroup(n,e,t,i){let o=this.createSegments(n,e.segments,t,i),s={};return Object.entries(e.children).forEach(([c,a])=>{s[c]=this.createSegmentGroup(n,a,t,i)}),new M(o,s)}createSegments(n,e,t,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,t))}findPosParam(n,e,t){let i=t[e.path.substring(1)];if(!i)throw new E(4001,!1);return i}findOrReturn(n,e){let t=0;for(let i of e){if(i.path===n.path)return e.splice(t),i;t++}return n}},ii={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function tl(r,n,e,t,i){let o=Ss(r,n,e);return o.matched?(t=Rc(n,t),Qc(t,n,e,i).pipe(S(s=>s===!0?o:p({},ii)))):f(o)}function Ss(r,n,e){if(n.path==="**")return nl(e);if(n.path==="")return n.pathMatch==="full"&&(r.hasChildren()||e.length>0)?p({},ii):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Ja)(e,r,n);if(!i)return p({},ii);let o={};Object.entries(i.posParams??{}).forEach(([c,a])=>{o[c]=a.path});let s=i.consumed.length>0?p(p({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function nl(r){return{matched:!0,parameters:r.length>0?Ko(r).parameters:{},consumedSegments:r,remainingSegments:[],positionalParamSegments:{}}}function Yo(r,n,e,t){return e.length>0&&ol(r,e,t)?{segmentGroup:new M(n,il(t,new M(e,r.children))),slicedSegments:[]}:e.length===0&&sl(r,e,t)?{segmentGroup:new M(r.segments,rl(r,e,t,r.children)),slicedSegments:e}:{segmentGroup:new M(r.segments,r.children),slicedSegments:e}}function rl(r,n,e,t){let i={};for(let o of e)if(Ln(r,n,o)&&!t[oe(o)]){let s=new M([],{});i[oe(o)]=s}return p(p({},t),i)}function il(r,n){let e={};e[w]=n;for(let t of r)if(t.path===""&&oe(t)!==w){let i=new M([],{});e[oe(t)]=i}return e}function ol(r,n,e){return e.some(t=>Ln(r,n,t)&&oe(t)!==w)}function sl(r,n,e){return e.some(t=>Ln(r,n,t))}function Ln(r,n,e){return(r.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function al(r,n,e){return n.length===0&&!r.children[e]}var oi=class{};function cl(r,n,e,t,i,o,s="emptyOnly"){return new si(r,n,e,t,i,s,o).recognize()}var ll=31,si=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,t,i,o,s,c){this.injector=n,this.configLoader=e,this.rootComponentType=t,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=c,this.applyRedirects=new ri(this.urlSerializer,this.urlTree)}noMatchError(n){return new E(4002,`'${n.segmentGroup}'`)}recognize(){let n=Yo(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(S(({children:e,rootSnapshot:t})=>{let i=new X(t,e),o=new Dn("",i),s=gc(t,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new rt([],Object.freeze({}),Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),w,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,w,e).pipe(S(t=>({children:t,rootSnapshot:e})),we(t=>{if(t instanceof Ut)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof kt?this.noMatchError(t):t}))}processSegmentGroup(n,e,t,i,o){return t.segments.length===0&&t.hasChildren()?this.processChildren(n,e,t,o):this.processSegment(n,e,t,t.segments,i,!0,o).pipe(S(s=>s instanceof X?[s]:[]))}processChildren(n,e,t,i){let o=[];for(let s of Object.keys(t.children))s==="primary"?o.unshift(s):o.push(s);return H(o).pipe(Ne(s=>{let c=t.children[s],a=_c(e,s);return this.processSegmentGroup(n,a,c,s,i)}),Ai((s,c)=>(s.push(...c),s)),or(null),Mi(),J(s=>{if(s===null)return et(t);let c=Cs(s);return ul(c),f(c)}))}processSegment(n,e,t,i,o,s,c){return H(e).pipe(Ne(a=>this.processSegmentAgainstRoute(a._injector??n,e,a,t,i,o,s,c).pipe(we(l=>{if(l instanceof kt)return f(null);throw l}))),be(a=>!!a),we(a=>{if(ys(a))return al(t,i,o)?f(new oi):et(t);throw a}))}processSegmentAgainstRoute(n,e,t,i,o,s,c,a){return oe(t)!==s&&(s===w||!Ln(i,o,t))?et(i):t.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,t,o,s,a):this.allowRedirects&&c?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,t,o,s,a):et(i)}expandSegmentAgainstRouteUsingRedirect(n,e,t,i,o,s,c){let{matched:a,parameters:l,consumedSegments:d,positionalParamSegments:h,remainingSegments:v}=Ss(e,i,o);if(!a)return et(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>ll&&(this.allowRedirects=!1));let I=new rt(o,l,Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,Zo(i),oe(i),i.component??i._loadedComponent??null,i,Jo(i)),U=An(I,c,this.paramsInheritanceStrategy);I.params=Object.freeze(U.params),I.data=Object.freeze(U.data);let _=this.applyRedirects.applyRedirectCommands(d,i.redirectTo,h,I,n);return this.applyRedirects.lineralizeSegments(i,_).pipe(J(R=>this.processSegment(n,t,e,R.concat(v),s,!1,c)))}matchSegmentAgainstRoute(n,e,t,i,o,s){let c=tl(e,t,i,n,this.urlSerializer);return t.path==="**"&&(e.children={}),c.pipe(V(a=>a.matched?(n=t._injector??n,this.getChildConfig(n,t,i).pipe(V(({routes:l})=>{let d=t._loadedInjector??n,{parameters:h,consumedSegments:v,remainingSegments:I}=a,U=new rt(v,h,Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,Zo(t),oe(t),t.component??t._loadedComponent??null,t,Jo(t)),_=An(U,s,this.paramsInheritanceStrategy);U.params=Object.freeze(_.params),U.data=Object.freeze(_.data);let{segmentGroup:R,slicedSegments:B}=Yo(e,v,I,l);if(B.length===0&&R.hasChildren())return this.processChildren(d,l,R,U).pipe(S(P=>new X(U,P)));if(l.length===0&&B.length===0)return f(new X(U,[]));let He=oe(t)===o;return this.processSegment(d,l,R,B,He?w:o,!0,U).pipe(S(P=>new X(U,P instanceof X?[P]:[])))}))):et(e)))}getChildConfig(n,e,t){return e.children?f({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?f({routes:e._loadedRoutes,injector:e._loadedInjector}):Jc(n,e,t,this.urlSerializer).pipe(J(i=>i?this.configLoader.loadChildren(n,e).pipe(N(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):el(e))):f({routes:[],injector:n})}};function ul(r){r.sort((n,e)=>n.value.outlet===w?-1:e.value.outlet===w?1:n.value.outlet.localeCompare(e.value.outlet))}function dl(r){let n=r.value.routeConfig;return n&&n.path===""}function Cs(r){let n=[],e=new Set;for(let t of r){if(!dl(t)){n.push(t);continue}let i=n.find(o=>t.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...t.children),e.add(i)):n.push(t)}for(let t of e){let i=Cs(t.children);n.push(new X(t.value,i))}return n.filter(t=>!e.has(t))}function Zo(r){return r.data||{}}function Jo(r){return r.resolve||{}}function hl(r,n,e,t,i,o){return J(s=>cl(r,n,e,t,s.extractedUrl,i,o).pipe(S(({state:c,tree:a})=>$(p({},s),{targetSnapshot:c,urlAfterRedirects:a}))))}function pl(r,n){return J(e=>{let{targetSnapshot:t,guards:{canActivateChecks:i}}=e;if(!i.length)return f(e);let o=new Set(i.map(a=>a.route)),s=new Set;for(let a of o)if(!s.has(a))for(let l of bs(a))s.add(l);let c=0;return H(s).pipe(Ne(a=>o.has(a)?fl(a,t,r,n):(a.data=An(a,a.parent,r).resolve,f(void 0))),N(()=>c++),sr(1),J(a=>c===s.size?f(e):ue))})}function bs(r){let n=r.children.map(e=>bs(e)).flat();return[r,...n]}function fl(r,n,e,t){let i=r.routeConfig,o=r._resolve;return i?.title!==void 0&&!fs(i)&&(o[jt]=i.title),ml(o,r,n,t).pipe(S(s=>(r._resolvedData=s,r.data=An(r,r.parent,e).resolve,null)))}function ml(r,n,e,t){let i=kr(r);if(i.length===0)return f({});let o={};return H(i).pipe(J(s=>gl(r[s],n,e,t).pipe(be(),N(c=>{if(c instanceof Lt)throw xn(new At,c);o[s]=c}))),sr(1),S(()=>o),we(s=>ys(s)?ue:Pe(s)))}function gl(r,n,e,t){let i=Ft(n)??t,o=ct(r,i),s=o.resolve?o.resolve(n,e):ee(i,()=>o(n,e));return xe(s)}function Nr(r){return V(n=>{let e=r(n);return e?H(e).pipe(S(()=>n)):f(n)})}var Rs=(()=>{class r{buildTitle(e){let t,i=e.root;for(;i!==void 0;)t=this.getResolvedTitleForRoute(i)??t,i=i.children.find(o=>o.outlet===w);return t}getResolvedTitleForRoute(e){return e.data[jt]}static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:()=>u(vl),providedIn:"root"})}return r})(),vl=(()=>{class r extends Rs{title;constructor(e){super(),this.title=e}updateTitle(e){let t=this.buildTitle(e);t!==void 0&&this.title.setTitle(t)}static \u0275fac=function(t){return new(t||r)(C(yn))};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),di=new T("",{providedIn:"root",factory:()=>({})}),yl=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275cmp=A({type:r,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(t,i){t&1&&D(0,"router-outlet")},dependencies:[ui],encapsulation:2})}return r})();function hi(r){let n=r.children&&r.children.map(hi),e=n?$(p({},r),{children:n}):p({},r);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==w&&(e.component=yl),e}var pi=new T(""),wl=(()=>{class r{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=u(gr);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return f(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let t=xe(e.loadComponent()).pipe(S(_s),N(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Ce(()=>{this.componentLoaders.delete(e)})),i=new nr(t,()=>new ve).pipe(tr());return this.componentLoaders.set(e,i),i}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return f({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);let o=Sl(t,this.compiler,e,this.onLoadEndListener).pipe(Ce(()=>{this.childrenLoaders.delete(t)})),s=new nr(o,()=>new ve).pipe(tr());return this.childrenLoaders.set(t,s),s}static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function Sl(r,n,e,t){return xe(r.loadChildren()).pipe(S(_s),J(i=>i instanceof Qi||Array.isArray(i)?f(i):H(n.compileModuleAsync(i))),S(i=>{t&&t(r);let o,s,c=!1;return Array.isArray(i)?(s=i,c=!0):(o=i.create(e).injector,s=o.get(pi,[],{optional:!0,self:!0}).flat()),{routes:s.map(hi),injector:o}}))}function Cl(r){return r&&typeof r=="object"&&"default"in r}function _s(r){return Cl(r)?r.default:r}var fi=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:()=>u(bl),providedIn:"root"})}return r})(),bl=(()=>{class r{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Rl=new T("");var _l=new T(""),Tl=(()=>{class r{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new ve;transitionAbortSubject=new ve;configLoader=u(wl);environmentInjector=u(Ve);destroyRef=u(z);urlSerializer=u(ci);rootContexts=u(Pn);location=u(rn);inputBindingEnabled=u(Nn,{optional:!0})!==null;titleStrategy=u(Rs);options=u(di,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=u(fi);createViewTransition=u(Rl,{optional:!0});navigationErrorHandler=u(_l,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>f(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new qr(i)),t=i=>this.events.next(new Gr(i));this.configLoader.onLoadEndListener=t,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let t=++this.navigationId;this.transitions?.next($(p(p({},this.transitions.value),e),{id:t}))}setupNavigations(e,t,i){return this.transitions=new Z({id:0,currentUrlTree:t,currentRawUrl:t,extractedUrl:this.urlHandlingStrategy.extract(t),urlAfterRedirects:this.urlHandlingStrategy.extract(t),rawUrl:t,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Et,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ye(o=>o.id!==0),S(o=>$(p({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),V(o=>{let s=!1,c=!1;return f(o).pipe(V(a=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",Y.SupersededByNewNavigation),ue;this.currentTransition=o,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?$(p({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!l&&d!=="reload"){let h="";return this.events.next(new ze(a.id,this.urlSerializer.serialize(a.rawUrl),h,zr.IgnoredSameUrlNavigation)),a.resolve(!1),ue}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return f(a).pipe(V(h=>{let v=this.transitions?.getValue();return this.events.next(new xt(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),v!==this.transitions?.getValue()?ue:Promise.resolve(h)}),hl(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),N(h=>{o.targetSnapshot=h.targetSnapshot,o.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=$(p({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let v=new In(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(v)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:h,extractedUrl:v,source:I,restoredState:U,extras:_}=a,R=new xt(h,this.urlSerializer.serialize(v),I,U);this.events.next(R);let B=hs(this.rootComponentType).snapshot;return this.currentTransition=o=$(p({},a),{targetSnapshot:B,urlAfterRedirects:v,extras:$(p({},_),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=v,f(o)}else{let h="";return this.events.next(new ze(a.id,this.urlSerializer.serialize(a.extractedUrl),h,zr.IgnoredByUrlHandlingStrategy)),a.resolve(!1),ue}}),N(a=>{let l=new $r(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),S(a=>(this.currentTransition=o=$(p({},a),{guards:Oc(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),o)),Hc(this.environmentInjector,a=>this.events.next(a)),N(a=>{if(o.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw xn(this.urlSerializer,a.guardsResult);let l=new Br(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(l)}),ye(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",Y.GuardRejected),!1)),Nr(a=>{if(a.guards.canActivateChecks.length)return f(a).pipe(N(l=>{let d=new Hr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),V(l=>{let d=!1;return f(l).pipe(pl(this.paramsInheritanceStrategy,this.environmentInjector),N({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",Y.NoDataFromResolver)}}))}),N(l=>{let d=new Vr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),Nr(a=>{let l=d=>{let h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(N(v=>{d.component=v}),S(()=>{})));for(let v of d.children)h.push(...l(v));return h};return Vt(l(a.targetSnapshot.root)).pipe(or(null),Se(1))}),Nr(()=>this.afterPreactivation()),V(()=>{let{currentSnapshot:a,targetSnapshot:l}=o,d=this.createViewTransition?.(this.environmentInjector,a.root,l.root);return d?H(d).pipe(S(()=>o)):f(o)}),S(a=>{let l=Ec(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=o=$(p({},a),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,o}),N(()=>{this.events.next(new Pt)}),xc(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),Se(1),N({next:a=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new fe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{s=!0}}),Oi(this.transitionAbortSubject.pipe(N(a=>{throw a}))),Ce(()=>{!s&&!c&&this.cancelNavigationTransition(o,"",Y.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),we(a=>{if(this.destroyed)return o.resolve(!1),ue;if(c=!0,vs(a))this.events.next(new he(o.id,this.urlSerializer.serialize(o.extractedUrl),a.message,a.cancellationCode)),Dc(a)?this.events.next(new st(a.url,a.navigationBehaviorOptions)):o.resolve(!1);else{let l=new Ot(o.id,this.urlSerializer.serialize(o.extractedUrl),a,o.targetSnapshot??void 0);try{let d=ee(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(d instanceof Lt){let{message:h,cancellationCode:v}=xn(this.urlSerializer,d);this.events.next(new he(o.id,this.urlSerializer.serialize(o.extractedUrl),h,v)),this.events.next(new st(d.redirectTo,d.navigationBehaviorOptions))}else throw this.events.next(l),a}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return ue}))}))}cancelNavigationTransition(e,t,i){let o=new he(e.id,this.urlSerializer.serialize(e.extractedUrl),t,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),t=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==t?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function Il(r){return r!==Et}var El=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:()=>u(Ml),providedIn:"root"})}return r})(),ai=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},Ml=(()=>{class r extends ai{static \u0275fac=(()=>{let e;return function(i){return(e||(e=cr(r)))(i||r)}})();static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Ts=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:()=>u(Al),providedIn:"root"})}return r})(),Al=(()=>{class r extends Ts{location=u(rn);urlSerializer=u(ci);options=u(di,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=u(fi);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new pe;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=hs(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(t=>{t.type==="popstate"&&e(t.url,t.state)})}handleRouterEvent(e,t){if(e instanceof xt)this.stateMemento=this.createStateMemento();else if(e instanceof ze)this.rawUrlTree=t.initialUrl;else if(e instanceof In){if(this.urlUpdateStrategy==="eager"&&!t.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(t.finalUrl,t.initialUrl);this.setBrowserUrl(t.targetBrowserUrl??i,t)}}else e instanceof Pt?(this.currentUrlTree=t.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(t.finalUrl,t.initialUrl),this.routerState=t.targetRouterState,this.urlUpdateStrategy==="deferred"&&!t.extras.skipLocationChange&&this.setBrowserUrl(t.targetBrowserUrl??this.rawUrlTree,t)):e instanceof he&&(e.code===Y.GuardRejected||e.code===Y.NoDataFromResolver)?this.restoreHistory(t):e instanceof Ot?this.restoreHistory(t,!0):e instanceof fe&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,t){let i=e instanceof pe?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(i)||t.extras.replaceUrl){let o=this.browserPageId,s=p(p({},t.extras.state),this.generateNgRouterState(t.id,o));this.location.replaceState(i,"",s)}else{let o=p(p({},t.extras.state),this.generateNgRouterState(t.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(e,t=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(t&&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,t){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=cr(r)))(i||r)}})();static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function Dl(r,n){r.events.pipe(ye(e=>e instanceof fe||e instanceof he||e instanceof Ot||e instanceof ze),S(e=>e instanceof fe||e instanceof ze?0:(e instanceof he?e.code===Y.Redirect||e.code===Y.SupersededByNewNavigation:!1)?2:1),ye(e=>e!==2),Se(1)).subscribe(()=>{n()})}var xl={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ol={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},kn=(()=>{class r{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=u(fr);stateManager=u(Ts);options=u(di,{optional:!0})||{};pendingTasks=u(qt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=u(Tl);urlSerializer=u(ci);location=u(rn);urlHandlingStrategy=u(fi);_events=new ve;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=u(El);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=u(pi,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!u(Nn,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Ht;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(t=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(t,o),t instanceof he&&t.code!==Y.Redirect&&t.code!==Y.SupersededByNewNavigation)this.navigated=!0;else if(t instanceof fe)this.navigated=!0;else if(t instanceof st){let s=t.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(t.url,i.currentRawUrl),a=p({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Il(i.source)},s);this.scheduleNavigation(c,Et,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Nl(t)&&this._events.next(t)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Et,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,t)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",t)},0)})}navigateToSyncWithBrowser(e,t,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let a=p({},i);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(o.state=a)}let c=this.parseUrl(e);this.scheduleNavigation(c,t,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(hi),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,t={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:c,preserveFragment:a}=t,l=a?this.currentUrlTree.fragment:s,d=null;switch(c??this.options.defaultQueryParamsHandling){case"merge":d=p(p({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let v=i?i.snapshot:this.routerState.snapshot.root;h=cs(v)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),h=this.currentUrlTree.root}return ls(h,e,d,l??null)}navigateByUrl(e,t={skipLocationChange:!1}){let i=Fe(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Et,null,t)}navigate(e,t={skipLocationChange:!1}){return Pl(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,t){let i;if(t===!0?i=p({},xl):t===!1?i=p({},Ol):i=t,Fe(e))return Vo(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Vo(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((t,[i,o])=>(o!=null&&(t[i]=o),t),{})}scheduleNavigation(e,t,i,o,s){if(this.disposed)return Promise.resolve(!1);let c,a,l;s?(c=s.resolve,a=s.reject,l=s.promise):l=new Promise((h,v)=>{c=h,a=v});let d=this.pendingTasks.add();return Dl(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:t,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:c,reject:a,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(h=>Promise.reject(h))}static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function Pl(r){for(let n=0;n{class r{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new ve;constructor(e,t,i,o,s,c){this.router=e,this.route=t,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=c;let a=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=e.events.subscribe(l=>{l instanceof fe&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Fe(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,t,i,o,s){let c=this.urlTree;if(c===null||this.isAnchorElement&&(e!==0||t||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let a={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,a),!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 t=this.href===null?null:Zi(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(e,t){let i=this.renderer,o=this.el.nativeElement;t!==null?i.setAttribute(o,e,t):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:Fe(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(t){return new(t||r)(te(kn),te($e),Li("tabindex"),te(hr),te(Te),te(vr))};static \u0275dir=Ze({type:r,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(t,i){t&1&&de("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),t&2&&Ie("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ee],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ee],replaceUrl:[2,"replaceUrl","replaceUrl",Ee],routerLink:"routerLink"},features:[Je,Q]})}return r})(),Is=(()=>{class r{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new se;constructor(e,t,i,o,s){this.router=e,this.element=t,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(c=>{c instanceof fe&&this.update()})}ngAfterContentInit(){f(this.links.changes,f(null)).pipe(rr()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=H(e).pipe(rr()).subscribe(t=>{this._isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(e){let t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(t=>{e?this.renderer.addClass(this.element.nativeElement,t):this.renderer.removeClass(this.element.nativeElement,t)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let t=Ll(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,t):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(t){return new(t||r)(te(kn),te(Te),te(hr),te(tn),te(De,8))};static \u0275dir=Ze({type:r,selectors:[["","routerLinkActive",""]],contentQueries:function(t,i,o){if(t&1&&Zt(o,De,5),t&2){let s;Jt(s=Qt())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Q]})}return r})();function Ll(r){return!!r.paths}var kl=new T("");function Es(r,...n){return Re([{provide:pi,multi:!0,useValue:r},[],{provide:$e,useFactory:Ul,deps:[kn]},{provide:Xt,multi:!0,useFactory:Fl},n.map(e=>e.\u0275providers)])}function Ul(r){return r.routerState.root}function jl(r,n){return{\u0275kind:r,\u0275providers:n}}function Fl(){let r=u(qe);return n=>{let e=r.get(pt);if(n!==e.components[0])return;let t=r.get(kn),i=r.get(zl);r.get($l)===1&&t.initialNavigation(),r.get(Bl,null,ar.Optional)?.setUpPreloading(),r.get(kl,null,ar.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var zl=new T("",{factory:()=>new ve}),$l=new T("",{providedIn:"root",factory:()=>1});var Bl=new T("");function Ms(){return jl(8,[Xo,{provide:Nn,useExisting:Xo}])}var Un=class r{httpClient=u(W);destroyRef=u(z);getArticle(n){return this.httpClient.get("https://pt7071ephf.execute-api.us-east-1.amazonaws.com/dev/documents?prettyUrl="+n)}getAuthor(n){return this.httpClient.get("https://cgyqvx4hq3.execute-api.us-east-1.amazonaws.com/author/"+n)}getContent(n){return this.httpClient.get(`https://www.geekcap.com/content/${n}/index.html`,{responseType:"text"})}static \u0275fac=function(e){return new(e||r)};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})};var lt=class r{datePipe=u(sn);transform(n){let e=n.slice(4,6)+"-"+n.slice(6,8)+"-"+n.slice(0,4);return this.datePipe.transform(e)}static \u0275fac=function(e){return new(e||r)};static \u0275pipe=eo({name:"formattedDate",type:r,pure:!0})};function jn(r,n=0){return Hl(r)?Number(r):arguments.length===2?n:0}function Hl(r){return!isNaN(parseFloat(r))&&!isNaN(Number(r))}var Vl=new T("cdk-dir-doc",{providedIn:"root",factory:ql});function ql(){return u(k)}var Gl=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Wl(r){let n=r?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?Gl.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var As=(()=>{class r{value="ltr";change=new se;constructor(){let e=u(Vl,{optional:!0});if(e){let t=e.body?e.body.dir:null,i=e.documentElement?e.documentElement.dir:null;this.value=Wl(t||i||"ltr")}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var Ds=["*"];var Xl=".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-header{font-size:var(--mat-grid-list-tile-header-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-header-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-footer{font-size:var(--mat-grid-list-tile-footer-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-footer-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}",mi=class{tracker;columnIndex=0;rowIndex=0;get rowCount(){return this.rowIndex+1}get rowspan(){let n=Math.max(...this.tracker);return n>1?this.rowCount+n-1:this.rowCount}positions;update(n,e){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(n),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map(t=>this._trackTile(t))}_trackTile(n){let e=this._findMatchingGap(n.colspan);return this._markTilePosition(e,n),this.columnIndex=e+n.colspan,new gi(this.rowIndex,e)}_findMatchingGap(n){n>this.tracker.length;let e=-1,t=-1;do{if(this.columnIndex+n>this.tracker.length){this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),t=this._findGapEndIndex(e);continue}if(e=this.tracker.indexOf(0,this.columnIndex),e==-1){this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),t=this._findGapEndIndex(e);continue}t=this._findGapEndIndex(e),this.columnIndex=e+1}while(t-e{class r{_element=u(Te);_gridList=u(xs,{optional:!0});_rowspan=1;_colspan=1;constructor(){}get rowspan(){return this._rowspan}set rowspan(e){this._rowspan=Math.round(jn(e))}get colspan(){return this._colspan}set colspan(e){this._colspan=Math.round(jn(e))}_setStyle(e,t){this._element.nativeElement.style[e]=t}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=A({type:r,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(t,i){t&2&&Ie("rowspan",i.rowspan)("colspan",i.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:Ds,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(t,i){t&1&&(ft(),g(0,"div",0),mt(1),y())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-header{font-size:var(--mat-grid-list-tile-header-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-header-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-footer{font-size:var(--mat-grid-list-tile-footer-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-footer-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0})}return r})();var Yl=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,$t=class{_gutterSize;_rows=0;_rowspan=0;_cols;_direction;init(n,e,t,i){this._gutterSize=Os(n),this._rows=e.rowCount,this._rowspan=e.rowspan,this._cols=t,this._direction=i}getBaseTileSize(n,e){return`(${n}% - (${this._gutterSize} * ${e}))`}getTilePosition(n,e){return e===0?"0":Be(`(${n} + ${this._gutterSize}) * ${e}`)}getTileSize(n,e){return`(${n} * ${e}) + (${e-1} * ${this._gutterSize})`}setStyle(n,e,t){let i=100/this._cols,o=(this._cols-1)/this._cols;this.setColStyles(n,t,i,o),this.setRowStyles(n,e,i,o)}setColStyles(n,e,t,i){let o=this.getBaseTileSize(t,i),s=this._direction==="rtl"?"right":"left";n._setStyle(s,this.getTilePosition(o,e)),n._setStyle("width",Be(this.getTileSize(o,n.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(n){return`${this._rowspan} * ${this.getTileSize(n,1)}`}getComputedHeight(){return null}},vi=class extends $t{fixedRowHeight;constructor(n){super(),this.fixedRowHeight=n}init(n,e,t,i){super.init(n,e,t,i),this.fixedRowHeight=Os(this.fixedRowHeight),Yl.test(this.fixedRowHeight)}setRowStyles(n,e){n._setStyle("top",this.getTilePosition(this.fixedRowHeight,e)),n._setStyle("height",Be(this.getTileSize(this.fixedRowHeight,n.rowspan)))}getComputedHeight(){return["height",Be(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(n){n._setListStyle(["height",null]),n._tiles&&n._tiles.forEach(e=>{e._setStyle("top",null),e._setStyle("height",null)})}},yi=class extends $t{rowHeightRatio;baseTileHeight;constructor(n){super(),this._parseRatio(n)}setRowStyles(n,e,t,i){let o=t/this.rowHeightRatio;this.baseTileHeight=this.getBaseTileSize(o,i),n._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),n._setStyle("paddingTop",Be(this.getTileSize(this.baseTileHeight,n.rowspan)))}getComputedHeight(){return["paddingBottom",Be(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(n){n._setListStyle(["paddingBottom",null]),n._tiles.forEach(e=>{e._setStyle("marginTop",null),e._setStyle("paddingTop",null)})}_parseRatio(n){let e=n.split(":");e.length,this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])}},wi=class extends $t{setRowStyles(n,e){let t=100/this._rowspan,i=(this._rows-1)/this._rows,o=this.getBaseTileSize(t,i);n._setStyle("top",this.getTilePosition(o,e)),n._setStyle("height",Be(this.getTileSize(o,n.rowspan)))}reset(n){n._tiles&&n._tiles.forEach(e=>{e._setStyle("top",null),e._setStyle("height",null)})}};function Be(r){return`calc(${r})`}function Os(r){return r.match(/([A-Za-z%]+)$/)?r:`${r}px`}var Zl="fit",Oe=(()=>{class r{_element=u(Te);_dir=u(As,{optional:!0});_cols;_tileCoordinator;_rowHeight;_gutter="1px";_tileStyler;_tiles;constructor(){}get cols(){return this._cols}set cols(e){this._cols=Math.max(1,Math.round(jn(e)))}get gutterSize(){return this._gutter}set gutterSize(e){this._gutter=`${e??""}`}get rowHeight(){return this._rowHeight}set rowHeight(e){let t=`${e??""}`;t!==this._rowHeight&&(this._rowHeight=t,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){this.cols}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(e){this._tileStyler&&this._tileStyler.reset(this),e===Zl?this._tileStyler=new wi:e&&e.indexOf(":")>-1?this._tileStyler=new yi(e):this._tileStyler=new vi(e)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new mi);let e=this._tileCoordinator,t=this._tiles.filter(o=>!o._gridList||o._gridList===this),i=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,t),this._tileStyler.init(this.gutterSize,e,this.cols,i),t.forEach((o,s)=>{let c=e.positions[s];this._tileStyler.setStyle(o,c.row,c.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(e){e&&(this._element.nativeElement.style[e[0]]=e[1])}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=A({type:r,selectors:[["mat-grid-list"]],contentQueries:function(t,i,o){if(t&1&&Zt(o,me,5),t&2){let s;Jt(s=Qt())&&(i._tiles=s)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(t,i){t&2&&Ie("cols",i.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[mr([{provide:xs,useExisting:r}])],ngContentSelectors:Ds,decls:2,vars:0,template:function(t,i){t&1&&(ft(),g(0,"div"),mt(1),y())},styles:[Xl],encapsulation:2,changeDetection:0})}return r})();function Jl(r,n){r&1&&(g(0,"p"),O(1,"Loading Article..."),y())}function Ql(r,n){if(r&1&&(g(0,"mat-grid-list",3)(1,"mat-grid-tile",6)(2,"span",7),D(3,"img",8),y()(),g(4,"mat-grid-tile",9)(5,"span",10),O(6,"By "),g(7,"a",11),O(8),y()()(),g(9,"mat-grid-tile",12)(10,"span",13),O(11),Kt(12,"formattedDate"),y()()()),r&2){let e,t=ie(3);b(3),x("src",t.authorImageLink,ke),b(4),x("routerLink",t.authorLink),b(),j((e=t.author())==null?null:e.name),b(3),j(en(12,4,t.article().publishDate))}}function Kl(r,n){if(r&1&&D(0,"div",5),r&2){let e=ie(3);x("innerHTML",e.content(),Ye)}}function eu(r,n){if(r&1&&(g(0,"div",0)(1,"h1",1),O(2),y(),g(3,"h4",2),O(4),y(),ne(5,Ql,13,6,"mat-grid-list",3),g(6,"div"),D(7,"img",4),y(),ne(8,Kl,1,1,"div",5),y()),r&2){let e,t,i=ie(2);b(2),j((e=i.article())==null?null:e.title),b(2),j((t=i.article())==null?null:t.subtitle),b(),re(i.author()?5:-1),b(2),x("src",i.bannerLink,ke),b(),re(i.content()?8:-1)}}function tu(r,n){r&1&&(g(0,"p"),O(1,"The article could not be found."),y())}function nu(r,n){if(r&1&&ne(0,eu,9,5,"div",0)(1,tu,2,0,"p"),r&2){let e=ie();re(e.article()?0:1)}}var Fn=class r{articleId;articleService=u(Un);destroyRef=u(z);metaTagService=u(zo);metaTitleService=u(yn);article=q(void 0);author=q(void 0);content=q(void 0);isFetching=q(!1);set id(n){this.articleId=n}ngOnChanges(n){if(n.id&&this.articleId){this.isFetching.set(!0);let e=this.articleService.getArticle(this.articleId).subscribe({next:t=>{this.article.set(t[0]),this.metaTitleService.setTitle(t[0].title),this.metaTagService.updateTag({property:"og:type",content:"article"}),this.metaTagService.updateTag({property:"og:image",content:"https://www.geekcap.com/content/"+this.articleId+"/banner.png"}),this.metaTagService.updateTag({property:"og:title",content:t[0].title}),this.metaTagService.updateTag({property:"og:description",content:t[0].abstract});let i=t[0].publishDate,o=i.slice(0,4)+"-"+i.slice(4,6)+"-"+i.slice(6,8)+"T00:00:00+0400";this.metaTagService.updateTag({property:"article:published_time",content:o}),this.metaTagService.updateTag({property:"og:published_time",content:o}),this.metaTagService.updateTag({property:"og:publish_date",content:o});let s=this.articleService.getAuthor(t[0].author).subscribe({next:a=>{this.author.set(a),this.metaTagService.updateTag({name:"author",content:a.name}),this.metaTagService.updateTag({property:"og:author",content:a.name})}}),c=this.articleService.getContent(t[0].contentId).subscribe({next:a=>{this.content.set(a)},complete:()=>{this.isFetching.set(!1)}})}});this.destroyRef.onDestroy(()=>{e.unsubscribe()})}}get authorImageLink(){return this.author()?"https://www.geekcap.com/content"+this.author()?.imageUrl:""}get authorLink(){return this.author()?"/author/"+this.author()?.id:""}get bannerLink(){return this.articleId?"https://www.geekcap.com/content/"+this.articleId+"/banner-header.png":""}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=A({type:r,selectors:[["app-article"]],inputs:{articleId:"articleId",id:"id"},features:[Q],decls:2,vars:1,consts:[[1,"article-container"],[1,"article-title"],[1,"article-subtitle"],["cols","12","rowHeight","40px",1,"logo"],[1,"article-banner",3,"src"],[1,"article-content",3,"innerHTML"],["colspan","1","rowspan","2"],[1,"article-icon-container"],[1,"author-image",3,"src"],["colspan","11","rowspan","1",1,"author-name"],[1,"author-name-container"],[1,"author-name-content",3,"routerLink"],["colspan","11","rowspan","1"],[1,"publish-date"]],template:function(e,t){e&1&&ne(0,Jl,2,0,"p")(1,nu,2,1),e&2&&re(t.isFetching()?0:1)},dependencies:[lt,Oe,me,De],styles:[".article-container[_ngcontent-%COMP%]{font-family:Lato,Helvetica Neue,Arial,Helvetica,sans-serif}article-title[_ngcontent-%COMP%]{font-size:30px;font-weight:400;padding:0;margin-bottom:0}.article-content[_ngcontent-%COMP%]{padding-top:14px;font-family:Lato,Helvetica Neue,Arial,Helvetica,sans-serif}.article-subtitle[_ngcontent-%COMP%]{font-size:20px;margin-top:10px;font-weight:400;margin-bottom:10px}.author-image[_ngcontent-%COMP%]{width:60px;height:60px;border-radius:50%}.author-name[_ngcontent-%COMP%]{text-align:left;justify-content:left!important;display:grid}.author-name-container[_ngcontent-%COMP%]{position:absolute;left:10px;top:15px;font-size:16px;text-decoration:none}.author-name-container-new[_ngcontent-%COMP%]{font-size:16px;text-decoration:none}.author-name-content[_ngcontent-%COMP%]{color:#7a1314;text-decoration:none}.author-name-content[_ngcontent-%COMP%]:hover{text-decoration:underline;cursor:pointer}.publish-date[_ngcontent-%COMP%]{position:absolute;left:10px;color:#777;top:0;font-size:14px}.article-content[_ngcontent-%COMP%]{width:100%;height:100%;padding-bottom:20px;padding-top:0;text-align:justify}.article-content[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%!important}"]})};var zn=class r{httpClient=u(W);getCampusArticles(n){return this.httpClient.get("https://pt7071ephf.execute-api.us-east-1.amazonaws.com/dev/documents?campus="+n)}getAuthorDocuments(n){return this.httpClient.get("https://pt7071ephf.execute-api.us-east-1.amazonaws.com/dev/documents?author="+n)}getDocumentsByType(n){return this.httpClient.get("https://pt7071ephf.execute-api.us-east-1.amazonaws.com/dev/documents?numberOfMonths=1000&documentType="+n)}static \u0275fac=function(e){return new(e||r)};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})};var ru=["*"],$n;function iu(){if($n===void 0&&($n=null,typeof window<"u")){let r=window;r.trustedTypes!==void 0&&($n=r.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return $n}function Bt(r){return iu()?.createHTML(r)||r}function Ps(r){return Error(`Unable to find icon with the name "${r}"`)}function ou(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function Ns(r){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${r}".`)}function Ls(r){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${r}".`)}var ge=class{url;svgText;options;svgElement;constructor(n,e,t){this.url=n,this.svgText=e,this.options=t}},su=(()=>{class r{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,t,i,o){this._httpClient=e,this._sanitizer=t,this._errorHandler=o,this._document=i}addSvgIcon(e,t,i){return this.addSvgIconInNamespace("",e,t,i)}addSvgIconLiteral(e,t,i){return this.addSvgIconLiteralInNamespace("",e,t,i)}addSvgIconInNamespace(e,t,i,o){return this._addSvgIconConfig(e,t,new ge(i,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,i,o){let s=this._sanitizer.sanitize(G.HTML,i);if(!s)throw Ls(i);let c=Bt(s);return this._addSvgIconConfig(e,t,new ge("",c,o))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,i){return this._addSvgIconSetConfig(e,new ge(t,null,i))}addSvgIconSetLiteralInNamespace(e,t,i){let o=this._sanitizer.sanitize(G.HTML,t);if(!o)throw Ls(t);let s=Bt(o);return this._addSvgIconSetConfig(e,new ge("",s,i))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let t=this._sanitizer.sanitize(G.RESOURCE_URL,e);if(!t)throw Ns(e);let i=this._cachedIconsByUrl.get(t);return i?f(Bn(i)):this._loadSvgIconFromConfig(new ge(e,null)).pipe(N(o=>this._cachedIconsByUrl.set(t,o)),S(o=>Bn(o)))}getNamedSvgIcon(e,t=""){let i=ks(t,e),o=this._svgIconConfigs.get(i);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(t,e),o)return this._svgIconConfigs.set(i,o),this._getSvgFromConfig(o);let s=this._iconSetConfigs.get(t);return s?this._getSvgFromIconSetConfigs(e,s):Pe(Ps(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?f(Bn(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(S(t=>Bn(t)))}_getSvgFromIconSetConfigs(e,t){let i=this._extractIconWithNameFromAnySet(e,t);if(i)return f(i);let o=t.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(we(c=>{let l=`Loading icon set URL: ${this._sanitizer.sanitize(G.RESOURCE_URL,s.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(l)),f(null)})));return Ei(o).pipe(S(()=>{let s=this._extractIconWithNameFromAnySet(e,t);if(!s)throw Ps(e);return s}))}_extractIconWithNameFromAnySet(e,t){for(let i=t.length-1;i>=0;i--){let o=t[i];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let s=this._svgElementFromConfig(o),c=this._extractSvgIconFromSet(s,e,o.options);if(c)return c}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(N(t=>e.svgText=t),S(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?f(null):this._fetchIcon(e).pipe(N(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,i){let o=e.querySelector(`[id="${t}"]`);if(!o)return null;let s=o.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,i);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),i);let c=this._svgElementFromString(Bt(""));return c.appendChild(s),this._setSvgAttributes(c,i)}_svgElementFromString(e){let t=this._document.createElement("DIV");t.innerHTML=e;let i=t.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(e){let t=this._svgElementFromString(Bt("")),i=e.attributes;for(let o=0;oBt(l)),Ce(()=>this._inProgressUrlFetches.delete(s)),Di());return this._inProgressUrlFetches.set(s,a),a}_addSvgIconConfig(e,t,i){return this._svgIconConfigs.set(ks(e,t),i),this}_addSvgIconSetConfig(e,t){let i=this._iconSetConfigs.get(e);return i?i.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){let t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let i=0;in?n.pathname+n.search:""}}var Us=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],du=Us.map(r=>`[${r}]`).join(", "),hu=/^url\(['"]?#(.*?)['"]?\)$/,Hn=(()=>{class r{_elementRef=u(Te);_iconRegistry=u(su);_location=u(lu);_errorHandler=u(Le);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=Ht.EMPTY;constructor(){let e=u(new ki("aria-hidden"),{optional:!0}),t=u(cu,{optional:!0});t&&(t.color&&(this.color=this._defaultColor=t.color),t.fontSet&&(this.fontSet=t.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){let i=e.childNodes[t];(i.nodeType!==1||i.nodeName.toLowerCase()==="svg")&&i.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(i=>i.length>0);this._previousFontSetClass.forEach(i=>e.classList.remove(i)),t.forEach(i=>e.classList.add(i)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.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 t=this._elementsWithExternalReferences;t&&t.forEach((i,o)=>{i.forEach(s=>{o.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){let t=e.querySelectorAll(du),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{let c=t[o],a=c.getAttribute(s),l=a?a.match(hu):null;if(l){let d=i.get(c);d||(d=[],i.set(c,d)),d.push({name:s,value:l[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[t,i]=this._splitIconName(e);t&&(this._svgNamespace=t),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,t).pipe(Se(1)).subscribe(o=>this._setSvgElement(o),o=>{let s=`Error retrieving icon ${t}:${i}! ${o.message}`;this._errorHandler.handleError(new Error(s))})}}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=A({type:r,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(t,i){t&2&&(Ie("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),Yt(i.color?"mat-"+i.color:""),no("mat-icon-inline",i.inline)("mat-icon-no-color",i.color!=="primary"&&i.color!=="accent"&&i.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",Ee],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Je],ngContentSelectors:ru,decls:1,vars:0,template:function(t,i){t&1&&(ft(),mt(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.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})}return r})();var Vn=class r{articleSummary;get iconLink(){return"https://www.geekcap.com"+this.articleSummary.icon}get link(){return"/article/"+this.articleSummary.prettyUrl}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=A({type:r,selectors:[["app-article-summary"]],inputs:{articleSummary:"articleSummary"},decls:13,vars:7,consts:[["cols","12","rowHeight","40px",1,"logo"],["colspan","1","rowspan","2"],[1,"article-icon-container"],[1,"article-icon",3,"src"],["colspan","11","rowspan","1",1,"article-title"],[1,"article-title-content",3,"routerLink"],["colspan","11","rowspan","1"],[1,"article-title-date"],[1,"article-abstract"]],template:function(e,t){e&1&&(g(0,"mat-grid-list",0)(1,"mat-grid-tile",1)(2,"span",2),D(3,"img",3),y()(),g(4,"mat-grid-tile",4)(5,"a",5),O(6),y()(),g(7,"mat-grid-tile",6)(8,"span",7),O(9),Kt(10,"formattedDate"),y()()(),g(11,"p",8),O(12),y()),e&2&&(b(3),x("src",t.iconLink,ke),b(2),x("routerLink",t.link),b(),j(t.articleSummary.title),b(3),j(en(10,5,t.articleSummary.publishDate)),b(3),j(t.articleSummary.abstract))},dependencies:[Oe,me,lt,De],styles:[".article-icon-container[_ngcontent-%COMP%]{position:absolute;left:0}.article-icon[_ngcontent-%COMP%]{width:50px;height:50px}.article-title[_ngcontent-%COMP%]{text-align:left;justify-content:left!important;display:grid;font-size:30px!important;font-weight:400;font-family:Lato,Helvetica Neue,Arial,Helvetica,sans-serif}.article-title-content[_ngcontent-%COMP%]{position:absolute;left:0;top:15px;font-size:18px;color:#7a1314;font-weight:700;text-decoration:none}.article-title-content[_ngcontent-%COMP%]:hover{cursor:pointer;text-decoration:underline}.article-title-date[_ngcontent-%COMP%]{position:absolute;left:0;color:#777;top:0}.article-abstract[_ngcontent-%COMP%]{margin-top:0}"]})};var pu=(r,n)=>n.id;function fu(r,n){r&1&&(g(0,"p"),O(1,"Loading Articles..."),y())}function mu(r,n){if(r&1&&D(0,"app-article-summary",3),r&2){let e=n.$implicit;x("articleSummary",e)}}function gu(r,n){if(r&1&&ro(0,mu,1,1,"app-article-summary",3,pu),r&2){let e=ie();io(e.articleList())}}var le=class r{mode;campusId;authorId;documentType;httpClient=u(W);destroyRef=u(z);articleListService=u(zn);articleList=q([]);isFetching=q(!1);ngOnChanges(n){if(this.mode==="campus"&&n.campusId){this.isFetching.set(!0);let e=this.articleListService.getCampusArticles(this.campusId).subscribe({next:t=>{this.articleList.set(t)},complete:()=>{this.isFetching.set(!1)}});this.destroyRef.onDestroy(()=>{e.unsubscribe()})}else if(this.mode==="author"&&n.authorId){let e=this.articleListService.getAuthorDocuments(this.authorId).subscribe({next:t=>{this.articleList.set(t)},complete:()=>{this.isFetching.set(!1)}})}else if(this.mode==="documentType"&&n.documentType){let e=this.articleListService.getDocumentsByType(this.documentType).subscribe({next:t=>{this.articleList.set(t)},complete:()=>{this.isFetching.set(!1)}})}}get headerText(){return this.mode==="documentType"&&this.documentType&&this.documentType==="news"?"News":"Articles"}get headerIconName(){return this.mode==="documentType"&&this.documentType&&this.documentType==="news"?"newspaper":"article"}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=A({type:r,selectors:[["app-article-list"]],inputs:{mode:"mode",campusId:"campusId",authorId:"authorId",documentType:"documentType"},features:[Q],decls:7,vars:3,consts:[[1,"title"],[1,"menu-icon"],[1,"title-text"],[3,"articleSummary"]],template:function(e,t){e&1&&(g(0,"h2",0)(1,"mat-icon",1),O(2),y(),g(3,"span",2),O(4),y()(),ne(5,fu,2,0,"p")(6,gu,2,0)),e&2&&(b(2),j(t.headerIconName),b(2),j(t.headerText),b(),re(t.isFetching()?5:6))},dependencies:[Hn,Vn],styles:[".title[_ngcontent-%COMP%]{border-bottom:1px solid rgba(34,36,38,.15)}.menu-icon[_ngcontent-%COMP%]{padding-right:20px;text-align:center}.title-text[_ngcontent-%COMP%]{position:relative;top:-3px;font-family:Lato,Helvetica Neue,Arial,Helvetica,sans-serif}"]})};var qn=class r{httpClient=u(W);destroyRef=u(z);getCampusContent(n){return this.httpClient.get(`https://www.geekcap.com/content/campus/${n}.html`,{responseType:"text"})}static \u0275fac=function(e){return new(e||r)};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})};function vu(r,n){if(r&1&&D(0,"div",1),r&2){let e=ie();x("innerHTML",e.content(),Ye)}}var Gn=class r{campusId;campusService=u(qn);destroyRef=u(z);content=q(void 0);set id(n){this.campusId=n}ngOnChanges(n){if(n.id&&this.campusId){let e=this.campusService.getCampusContent(this.campusId).subscribe({next:t=>{this.content.set(t)},error:t=>{console.log(t)}});this.destroyRef.onDestroy(()=>{e.unsubscribe()})}}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=A({type:r,selectors:[["app-campus"]],inputs:{id:"id"},features:[Q],decls:3,vars:2,consts:[[1,"campus-content"],[1,"campus-content",3,"innerHTML"],["mode","campus",3,"campusId"]],template:function(e,t){e&1&&(g(0,"div",0),ne(1,vu,1,1,"div",1),D(2,"app-article-list",2),y()),e&2&&(b(),re(t.content()?1:-1),b(),x("campusId",t.campusId))},dependencies:[le],styles:[".campus-content[_ngcontent-%COMP%]{font-family:Lato,Helvetica Neue,Arial,Helvetica,sans-serif;font-size:16px}"]})};var Wn=class r{static \u0275fac=function(e){return new(e||r)};static \u0275cmp=A({type:r,selectors:[["app-home-page"]],decls:2,vars:0,consts:[["mode","documentType","documentType","news"],["mode","documentType","documentType","article"]],template:function(e,t){e&1&&D(0,"app-article-list",0)(1,"app-article-list",1)},dependencies:[le],encapsulation:2})};var Xn=class r{constructor(){}httpClient=u(W);destroyRef=u(z);getAuthor(n){return this.httpClient.get("https://cgyqvx4hq3.execute-api.us-east-1.amazonaws.com/author/"+n)}static \u0275fac=function(e){return new(e||r)};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})};function yu(r,n){if(r&1&&(g(0,"mat-grid-list",0)(1,"mat-grid-tile",1)(2,"span",2),D(3,"img",3),y()(),g(4,"mat-grid-tile",4)(5,"span",5),O(6),y()()(),D(7,"div",6),g(8,"div",7),D(9,"app-article-list",8),y()),r&2){let e,t=ie();b(3),x("src",t.authorImageLink,ke),b(3),j((e=t.author())==null?null:e.name),b(),x("innerHTML",t.bio,Ye),b(2),x("authorId",t.author().id)}}function wu(r,n){r&1&&(g(0,"p"),O(1,"Loading author..."),y())}var Yn=class r{authorId;author=q(void 0);authorService=u(Xn);destroyRef=u(z);isFetching=q(!1);set id(n){this.authorId=n}ngOnChanges(n){if(n.id&&this.authorId){let e=this.authorService.getAuthor(this.authorId).subscribe({next:t=>{this.author.set(t)}});this.destroyRef.onDestroy(()=>{e.unsubscribe()})}}get authorImageLink(){return this.author()?"https://www.geekcap.com/content"+this.author()?.imageUrl:""}get bio(){return this.author()?this.author().bio:""}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=A({type:r,selectors:[["app-author"]],inputs:{authorId:"authorId",id:"id"},features:[Q],decls:2,vars:1,consts:[["cols","12","rowHeight","80px",1,"logo"],["colspan","1","rowspan","1"],[1,"author-icon-container"],[1,"author-icon",3,"src"],["colspan","11","rowspan","1",1,"author-name"],[1,"author-name-container"],[1,"article-content",3,"innerHTML"],[1,"article-list-container"],["mode","author",3,"authorId"]],template:function(e,t){e&1&&ne(0,yu,10,4)(1,wu,2,0,"p"),e&2&&re(t.author()?0:1)},dependencies:[Oe,me,le],styles:[".author-icon[_ngcontent-%COMP%]{width:60px;height:60px;border-radius:50%}.author-name-container[_ngcontent-%COMP%]{position:absolute;left:10px;top:18px;font-size:30px;font-weight:700;text-decoration:none;font-family:Lato,Helvetica Neue,Arial,Helvetica,sans-serif}.article-list-container[_ngcontent-%COMP%]{padding-bottom:20px}.author-icon-container[_ngcontent-%COMP%]{position:absolute;left:0}"]})};var Zn=class r{static \u0275fac=function(e){return new(e||r)};static \u0275cmp=A({type:r,selectors:[["app-news"]],decls:3,vars:0,consts:[["mode","documentType","documentType","news"]],template:function(e,t){e&1&&(g(0,"p"),O(1,` Stay up to date on technology-based news. While GeekCap is primarily focused on providing educational content, when exciting things happen, we'll share them here! `),y(),D(2,"app-article-list",0))},dependencies:[le],encapsulation:2})};var js=[{path:"author/:id",component:Yn},{path:"campus/:id",component:Gn},{path:"article/:id",component:Fn},{path:"news",component:Zn},{path:"",component:Wn}];var Su="@",Cu=(()=>{class r{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=null;injector=u(qe);loadingSchedulerFn=u(bu,{optional:!0});_engine;constructor(e,t,i,o,s){this.doc=e,this.delegate=t,this.zone=i,this.animationType=o,this.moduleImpl=s}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-QKCA7OOW.js").then(i=>i),t;return this.loadingSchedulerFn?t=this.loadingSchedulerFn(e):t=e(),t.catch(i=>{throw new E(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:o})=>{this._engine=i(this.animationType,this.doc);let s=new o(this.delegate,this._engine,this.zone);return this.delegate=s,s})}createRenderer(e,t){let i=this.delegate.createRenderer(e,t);if(i.\u0275type===0)return i;typeof i.throwOnSyntheticProps=="boolean"&&(i.throwOnSyntheticProps=!1);let o=new Si(i);return t?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(s=>{let c=s.createRenderer(e,t);o.use(c),this.scheduler??=this.injector.get(Ui,null,{optional:!0}),this.scheduler?.notify(11)}).catch(s=>{o.use(i)}),o}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}componentReplaced(e){this._engine?.flush(),this.delegate.componentReplaced?.(e)}static \u0275fac=function(t){pr()};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),Si=class{delegate;replay=[];\u0275type=1;constructor(n){this.delegate=n}use(n){if(this.delegate=n,this.replay!==null){for(let e of this.replay)e(n);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}get destroyNode(){return this.delegate.destroyNode}appendChild(n,e){this.delegate.appendChild(n,e)}insertBefore(n,e,t,i){this.delegate.insertBefore(n,e,t,i)}removeChild(n,e,t){this.delegate.removeChild(n,e,t)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,t,i){this.delegate.setAttribute(n,e,t,i)}removeAttribute(n,e,t){this.delegate.removeAttribute(n,e,t)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,t,i){this.delegate.setStyle(n,e,t,i)}removeStyle(n,e,t){this.delegate.removeStyle(n,e,t)}setProperty(n,e,t){this.shouldReplay(e)&&this.replay.push(i=>i.setProperty(n,e,t)),this.delegate.setProperty(n,e,t)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,t,i){return this.shouldReplay(e)&&this.replay.push(o=>o.listen(n,e,t,i)),this.delegate.listen(n,e,t,i)}shouldReplay(n){return this.replay!==null&&n.startsWith(Su)}},bu=new T("");function Fs(r="animations"){return Gt("NgAsyncAnimations"),Re([{provide:Wt,useFactory:(n,e,t)=>new Cu(n,e,t,r),deps:[k,mn,_e]},{provide:$i,useValue:r==="noop"?"NoopAnimations":"BrowserAnimations"}])}var zs={providers:[oo({eventCoalescing:!0}),Es(js,Ms()),Bo($o()),Ao(),sn,Fs()]};var Jn=class r{static \u0275fac=function(e){return new(e||r)};static \u0275cmp=A({type:r,selectors:[["app-header"]],decls:6,vars:0,consts:[[1,"header-bar"],[1,"header-bar-content"],["cols","8","rowHeight","60px",1,"logo"],["colspan","8","rowspan","1"],[1,"logo"],["src","/logo.png",1,"logo-img"]],template:function(e,t){e&1&&(g(0,"div",0)(1,"div",1)(2,"mat-grid-list",2)(3,"mat-grid-tile",3)(4,"div",4),D(5,"img",5),y()()()()())},dependencies:[Oe,me],styles:[".header-bar[_ngcontent-%COMP%]{background-color:#7a1314}.header-bar-content[_ngcontent-%COMP%]{background-color:#7a1314;margin-left:10%;margin-right:10%}.logo[_ngcontent-%COMP%]{background-color:#7a1314;width:100%}.logo-img[_ngcontent-%COMP%]{padding-top:5px;height:40px}header-tile[_ngcontent-%COMP%]{background-color:#7a1314;width:100%}"]})};var Qn=class r{title;icon;link;selected;selectItem=new se;onSelect(){this.selectItem.emit(this.title)}get menuButtonClass(){return this.selected?"menu-button-selected":"menu-button"}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=A({type:r,selectors:[["app-menu-button"]],inputs:{title:"title",icon:"icon",link:"link",selected:[2,"selected","selected",Ee]},outputs:{selectItem:"selectItem"},features:[Je],decls:5,vars:5,consts:[["routerLinkActive","active",3,"click","routerLink"],[1,"menu-button-icon"],[1,"menu-button-text"]],template:function(e,t){e&1&&(g(0,"a",0),de("click",function(){return t.onSelect()}),g(1,"mat-icon",1),O(2),y(),g(3,"span",2),O(4),y()()),e&2&&(Yt(t.menuButtonClass),x("routerLink",t.link),b(2),j(t.icon),b(2),j(t.title))},dependencies:[Hn,De,Is],styles:[".menu-button[_ngcontent-%COMP%]{width:200px!important;height:200px!important;padding:20px 20px 4px;text-align:center;color:#000;text-decoration:none}.menu-button-selected[_ngcontent-%COMP%]{width:200px!important;height:200px!important;padding:20px 20px 4px;text-align:center;background-color:#d8d8d8;color:#000;text-decoration:none}.menu-button-selected[_ngcontent-%COMP%]:hover, .menu-button[_ngcontent-%COMP%]:hover{background-color:#d8d8d8;cursor:pointer}.menu-button-icon[_ngcontent-%COMP%]{padding-top:10px}.menu-button-text[_ngcontent-%COMP%]{padding-left:5px;position:relative;top:-6px}"]})};var Kn=class r{buttonSelectedStatus=new Map([["Home",!0],["News",!1],["Cloud",!1],["GenAI",!1],["Java",!1]]);get selectedStatus(){for(let n of this.buttonSelectedStatus)if(n[1])return n[0];return""}onMenuItemSelected(n){this.buttonSelectedStatus.forEach((e,t)=>{t===n?this.buttonSelectedStatus.set(t,!0):this.buttonSelectedStatus.set(t,!1)})}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=A({type:r,selectors:[["app-menu-bar"]],decls:6,vars:4,consts:[[1,"menu-bar"],[1,"menu-bar-content"],["title","Home","icon","home","link","/",3,"selectItem","selected"],["title","News","icon","newspaper","link","/news/",3,"selectItem","selected"],["title","Cloud","icon","cloud","link","/campus/cloud/",3,"selectItem","selected"],["title","GenAI","icon","lightbulb","link","/campus/genai/",3,"selectItem","selected"]],template:function(e,t){e&1&&(g(0,"div",0)(1,"div",1)(2,"app-menu-button",2),de("selectItem",function(o){return t.onMenuItemSelected(o)}),y(),g(3,"app-menu-button",3),de("selectItem",function(o){return t.onMenuItemSelected(o)}),y(),g(4,"app-menu-button",4),de("selectItem",function(o){return t.onMenuItemSelected(o)}),y(),g(5,"app-menu-button",5),de("selectItem",function(o){return t.onMenuItemSelected(o)}),y()()()),e&2&&(b(2),x("selected",t.selectedStatus==="Home"),b(),x("selected",t.selectedStatus==="News"),b(),x("selected",t.selectedStatus==="Cloud"),b(),x("selected",t.selectedStatus==="GenAI"))},dependencies:[Qn],styles:[".menu-bar[_ngcontent-%COMP%]{background-color:#e8e8e8}.menu-bar-content[_ngcontent-%COMP%]{background-color:#e8e8e8;margin-left:10%;margin-right:10%;height:42px}"]})};var er=class r{title="GeekCap";static \u0275fac=function(e){return new(e||r)};static \u0275cmp=A({type:r,selectors:[["app-root"]],decls:6,vars:0,consts:[[1,"main"],[1,"content"],[1,"main-content"]],template:function(e,t){e&1&&(g(0,"main",0)(1,"div",1),D(2,"app-header")(3,"app-menu-bar"),y()(),g(4,"div",2),D(5,"router-outlet"),y())},dependencies:[ui,Jn,Kn],styles:[".main-content[_ngcontent-%COMP%]{margin-top:30px;margin-left:10%;margin-right:10%}"]})};Fo(er,zs).catch(r=>console.error(r));