|
- import './polyfills.server.mjs';
- import{$ as bn,$a as fi,A as Cn,Aa as Ft,B as Jr,Ba as li,C as Qr,Ca as di,D as ei,Da as Tt,E as W,F as ti,G as L,H as M,I as we,J as En,K as ni,L as Ye,M as ri,N as Ke,Na as hi,O as bt,P as Sn,Pa as Z,Qa as O,S as ii,T as v,U as Xe,V as si,W as I,X as An,Y as oi,Z as ne,a as Wr,aa as y,b as qr,ba as f,c as gn,ca as Rt,d as mn,e as Dn,eb as It,f as De,fa as Oe,g as G,ga as ai,h as ve,ha as Pe,hb as Mt,i as j,ia as re,ib as pi,j as g,ja as Rn,jb as Ot,k as Ze,ka as Fn,kb as Je,l as Zr,la as Tn,lb as gi,m as Yr,ma as In,mb as Pn,n as A,nb as mi,o as vn,p as H,pa as Le,q as Kr,r as yn,ra as ce,rb as Di,s as ae,sa as ui,t as Te,tb as vi,u as ye,ua as ci,v as wn,w as Ie,wa as Mn,x as Xr,xa as Ne,y as Me,ya as On,z as ue,za as q}from"./chunk-SA4OSV5L.mjs";import{a as p,b as k,d as Hr,h as pn}from"./chunk-VVCT4QZE.mjs";var Fi=null;function _e(){return Fi}function Ti(t){Fi??=t}var jt=class{};var B=new I(""),Ii=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:()=>f(Zs),providedIn:"platform"});let t=e;return t})();var Zs=(()=>{let e=class e extends Ii{constructor(){super(),this._doc=f(B),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _e().getBaseHref(this._doc)}onPopState(n){let r=_e().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=_e().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,s){this._history.pushState(n,r,s)}replaceState(n,r,s){this._history.replaceState(n,r,s)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Mi(t,e){if(t.length==0)return e;if(e.length==0)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,i==2?t+e.substring(1):i==1?t+e:t+"/"+e}function yi(t){let e=t.match(/#|\?|$/),i=e&&e.index||t.length,n=i-(t[i-1]==="/"?1:0);return t.slice(0,n)+t.slice(i)}function Ce(t){return t&&t[0]!=="?"?"?"+t:t}var zt=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:()=>f(Oi),providedIn:"root"});let t=e;return t})(),Ys=new I(""),Oi=(()=>{let e=class e extends zt{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??f(B).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Mi(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Ce(this._platformLocation.search),s=this._platformLocation.hash;return s&&n?`${r}${s}`:r}pushState(n,r,s,o){let a=this.prepareExternalUrl(s+Ce(o));this._platformLocation.pushState(n,r,a)}replaceState(n,r,s,o){let a=this.prepareExternalUrl(s+Ce(o));this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(r){return new(r||e)(y(Ii),y(Ys,8))},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Qe=(()=>{let e=class e{constructor(n){this._subject=new we,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=Js(yi(wi(r))),this._locationStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Ce(r))}normalize(n){return e.stripTrailingSlash(Xs(this._basePath,wi(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",s=null){this._locationStrategy.pushState(s,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ce(r)),s)}replaceState(n,r="",s=null){this._locationStrategy.replaceState(s,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ce(r)),s)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(s=>s(n,r))}subscribe(n,r,s){return this._subject.subscribe({next:n,error:r,complete:s})}};e.normalizeQueryParams=Ce,e.joinWithSlash=Mi,e.stripTrailingSlash=yi,e.\u0275fac=function(r){return new(r||e)(y(zt))},e.\u0275prov=v({token:e,factory:()=>Ks(),providedIn:"root"});let t=e;return t})();function Ks(){return new Qe(y(zt))}function Xs(t,e){if(!t||!e.startsWith(t))return e;let i=e.substring(t.length);return i===""||["/",";","?","#"].includes(i[0])?i:e}function wi(t){return t.replace(/\/index.html$/,"")}function Js(t){if(new RegExp("^(https?:)?//").test(t)){let[,i]=t.split(/\/\/[^\/]+/);return i}return t}var U=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(U||{}),R=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(R||{}),$=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}($||{}),se=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t.Infinity=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}(se||{});function Qs(t){return Z(t)[O.LocaleId]}function eo(t,e,i){let n=Z(t),r=[n[O.DayPeriodsFormat],n[O.DayPeriodsStandalone]],s=Y(r,e);return Y(s,i)}function to(t,e,i){let n=Z(t),r=[n[O.DaysFormat],n[O.DaysStandalone]],s=Y(r,e);return Y(s,i)}function no(t,e,i){let n=Z(t),r=[n[O.MonthsFormat],n[O.MonthsStandalone]],s=Y(r,e);return Y(s,i)}function ro(t,e){let n=Z(t)[O.Eras];return Y(n,e)}function Pt(t,e){let i=Z(t);return Y(i[O.DateFormat],e)}function Lt(t,e){let i=Z(t);return Y(i[O.TimeFormat],e)}function Nt(t,e){let n=Z(t)[O.DateTimeFormat];return Y(n,e)}function Vt(t,e){let i=Z(t),n=i[O.NumberSymbols][e];if(typeof n>"u"){if(e===se.CurrencyDecimal)return i[O.NumberSymbols][se.Decimal];if(e===se.CurrencyGroup)return i[O.NumberSymbols][se.Group]}return n}function Pi(t){if(!t[O.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[O.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function io(t){let e=Z(t);return Pi(e),(e[O.ExtraData][2]||[]).map(n=>typeof n=="string"?Ln(n):[Ln(n[0]),Ln(n[1])])}function so(t,e,i){let n=Z(t);Pi(n);let r=[n[O.ExtraData][0],n[O.ExtraData][1]],s=Y(r,e)||[];return Y(s,i)||[]}function Y(t,e){for(let i=e;i>-1;i--)if(typeof t[i]<"u")return t[i];throw new Error("Locale data API: locale data undefined")}function Ln(t){let[e,i]=t.split(":");return{hours:+e,minutes:+i}}var oo=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,_t={},ao=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,oe=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(oe||{}),E=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(E||{}),C=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(C||{});function uo(t,e,i,n){let r=vo(t);e=ie(i,e)||e;let o=[],a;for(;e;)if(a=ao.exec(e),a){o=o.concat(a.slice(1));let l=o.pop();if(!l)break;e=l}else{o.push(e);break}let c=r.getTimezoneOffset();n&&(c=Ni(n,c),r=Do(r,n,!0));let u="";return o.forEach(l=>{let d=go(l);u+=d?d(r,i,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function $t(t,e,i){let n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function ie(t,e){let i=Qs(t);if(_t[i]??={},_t[i][e])return _t[i][e];let n="";switch(e){case"shortDate":n=Pt(t,$.Short);break;case"mediumDate":n=Pt(t,$.Medium);break;case"longDate":n=Pt(t,$.Long);break;case"fullDate":n=Pt(t,$.Full);break;case"shortTime":n=Lt(t,$.Short);break;case"mediumTime":n=Lt(t,$.Medium);break;case"longTime":n=Lt(t,$.Long);break;case"fullTime":n=Lt(t,$.Full);break;case"short":let r=ie(t,"shortTime"),s=ie(t,"shortDate");n=xt(Nt(t,$.Short),[r,s]);break;case"medium":let o=ie(t,"mediumTime"),a=ie(t,"mediumDate");n=xt(Nt(t,$.Medium),[o,a]);break;case"long":let c=ie(t,"longTime"),u=ie(t,"longDate");n=xt(Nt(t,$.Long),[c,u]);break;case"full":let l=ie(t,"fullTime"),d=ie(t,"fullDate");n=xt(Nt(t,$.Full),[l,d]);break}return n&&(_t[i][e]=n),n}function xt(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(i,n){return e!=null&&n in e?e[n]:i})),t}function J(t,e,i="-",n,r){let s="";(t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,s=i));let o=String(t);for(;o.length<e;)o="0"+o;return n&&(o=o.slice(o.length-e)),s+o}function co(t,e){return J(t,3).substring(0,e)}function P(t,e,i=0,n=!1,r=!1){return function(s,o){let a=lo(t,s);if((i>0||a>-i)&&(a+=i),t===E.Hours)a===0&&i===-12&&(a=12);else if(t===E.FractionalSeconds)return co(a,e);let c=Vt(o,se.MinusSign);return J(a,e,c,n,r)}}function lo(t,e){switch(t){case E.FullYear:return e.getFullYear();case E.Month:return e.getMonth();case E.Date:return e.getDate();case E.Hours:return e.getHours();case E.Minutes:return e.getMinutes();case E.Seconds:return e.getSeconds();case E.FractionalSeconds:return e.getMilliseconds();case E.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function T(t,e,i=U.Format,n=!1){return function(r,s){return ho(r,s,t,e,i,n)}}function ho(t,e,i,n,r,s){switch(i){case C.Months:return no(e,r,n)[t.getMonth()];case C.Days:return to(e,r,n)[t.getDay()];case C.DayPeriods:let o=t.getHours(),a=t.getMinutes();if(s){let u=io(e),l=so(e,r,n),d=u.findIndex(h=>{if(Array.isArray(h)){let[S,F]=h,x=o>=S.hours&&a>=S.minutes,w=o<F.hours||o===F.hours&&a<F.minutes;if(S.hours<F.hours){if(x&&w)return!0}else if(x||w)return!0}else if(h.hours===o&&h.minutes===a)return!0;return!1});if(d!==-1)return l[d]}return eo(e,r,n)[o<12?0:1];case C.Eras:return ro(e,n)[t.getFullYear()<=0?0:1];default:let c=i;throw new Error(`unexpected translation type ${c}`)}}function kt(t){return function(e,i,n){let r=-1*n,s=Vt(i,se.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(t){case oe.Short:return(r>=0?"+":"")+J(o,2,s)+J(Math.abs(r%60),2,s);case oe.ShortGMT:return"GMT"+(r>=0?"+":"")+J(o,1,s);case oe.Long:return"GMT"+(r>=0?"+":"")+J(o,2,s)+":"+J(Math.abs(r%60),2,s);case oe.Extended:return n===0?"Z":(r>=0?"+":"")+J(o,2,s)+":"+J(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}var fo=0,Bt=4;function po(t){let e=$t(t,fo,1).getDay();return $t(t,0,1+(e<=Bt?Bt:Bt+7)-e)}function Li(t){let e=t.getDay(),i=e===0?-3:Bt-e;return $t(t.getFullYear(),t.getMonth(),t.getDate()+i)}function Nn(t,e=!1){return function(i,n){let r;if(e){let s=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,o=i.getDate();r=1+Math.floor((o+s)/7)}else{let s=Li(i),o=po(s.getFullYear()),a=s.getTime()-o.getTime();r=1+Math.round(a/6048e5)}return J(r,t,Vt(n,se.MinusSign))}}function Ut(t,e=!1){return function(i,n){let s=Li(i).getFullYear();return J(s,t,Vt(n,se.MinusSign),e)}}var _n={};function go(t){if(_n[t])return _n[t];let e;switch(t){case"G":case"GG":case"GGG":e=T(C.Eras,R.Abbreviated);break;case"GGGG":e=T(C.Eras,R.Wide);break;case"GGGGG":e=T(C.Eras,R.Narrow);break;case"y":e=P(E.FullYear,1,0,!1,!0);break;case"yy":e=P(E.FullYear,2,0,!0,!0);break;case"yyy":e=P(E.FullYear,3,0,!1,!0);break;case"yyyy":e=P(E.FullYear,4,0,!1,!0);break;case"Y":e=Ut(1);break;case"YY":e=Ut(2,!0);break;case"YYY":e=Ut(3);break;case"YYYY":e=Ut(4);break;case"M":case"L":e=P(E.Month,1,1);break;case"MM":case"LL":e=P(E.Month,2,1);break;case"MMM":e=T(C.Months,R.Abbreviated);break;case"MMMM":e=T(C.Months,R.Wide);break;case"MMMMM":e=T(C.Months,R.Narrow);break;case"LLL":e=T(C.Months,R.Abbreviated,U.Standalone);break;case"LLLL":e=T(C.Months,R.Wide,U.Standalone);break;case"LLLLL":e=T(C.Months,R.Narrow,U.Standalone);break;case"w":e=Nn(1);break;case"ww":e=Nn(2);break;case"W":e=Nn(1,!0);break;case"d":e=P(E.Date,1);break;case"dd":e=P(E.Date,2);break;case"c":case"cc":e=P(E.Day,1);break;case"ccc":e=T(C.Days,R.Abbreviated,U.Standalone);break;case"cccc":e=T(C.Days,R.Wide,U.Standalone);break;case"ccccc":e=T(C.Days,R.Narrow,U.Standalone);break;case"cccccc":e=T(C.Days,R.Short,U.Standalone);break;case"E":case"EE":case"EEE":e=T(C.Days,R.Abbreviated);break;case"EEEE":e=T(C.Days,R.Wide);break;case"EEEEE":e=T(C.Days,R.Narrow);break;case"EEEEEE":e=T(C.Days,R.Short);break;case"a":case"aa":case"aaa":e=T(C.DayPeriods,R.Abbreviated);break;case"aaaa":e=T(C.DayPeriods,R.Wide);break;case"aaaaa":e=T(C.DayPeriods,R.Narrow);break;case"b":case"bb":case"bbb":e=T(C.DayPeriods,R.Abbreviated,U.Standalone,!0);break;case"bbbb":e=T(C.DayPeriods,R.Wide,U.Standalone,!0);break;case"bbbbb":e=T(C.DayPeriods,R.Narrow,U.Standalone,!0);break;case"B":case"BB":case"BBB":e=T(C.DayPeriods,R.Abbreviated,U.Format,!0);break;case"BBBB":e=T(C.DayPeriods,R.Wide,U.Format,!0);break;case"BBBBB":e=T(C.DayPeriods,R.Narrow,U.Format,!0);break;case"h":e=P(E.Hours,1,-12);break;case"hh":e=P(E.Hours,2,-12);break;case"H":e=P(E.Hours,1);break;case"HH":e=P(E.Hours,2);break;case"m":e=P(E.Minutes,1);break;case"mm":e=P(E.Minutes,2);break;case"s":e=P(E.Seconds,1);break;case"ss":e=P(E.Seconds,2);break;case"S":e=P(E.FractionalSeconds,1);break;case"SS":e=P(E.FractionalSeconds,2);break;case"SSS":e=P(E.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=kt(oe.Short);break;case"ZZZZZ":e=kt(oe.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=kt(oe.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=kt(oe.Long);break;default:return null}return _n[t]=e,e}function Ni(t,e){t=t.replace(/:/g,"");let i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function mo(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function Do(t,e,i){let n=i?-1:1,r=t.getTimezoneOffset(),s=Ni(e,r);return mo(t,n*(s-r))}function vo(t){if(Ci(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[r,s=1,o=1]=t.split("-").map(a=>+a);return $t(r,s-1,o)}let i=parseFloat(t);if(!isNaN(t-i))return new Date(i);let n;if(n=t.match(oo))return yo(n)}let e=new Date(t);if(!Ci(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function yo(t){let e=new Date(0),i=0,n=0,r=t[8]?e.setUTCFullYear:e.setFullYear,s=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let o=Number(t[4]||0)-i,a=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return s.call(e,o,a,c,u),e}function Ci(t){return t instanceof Date&&!isNaN(t.valueOf())}function Gt(t,e){e=encodeURIComponent(e);for(let i of t.split(";")){let n=i.indexOf("="),[r,s]=n==-1?[i,""]:[i.slice(0,n),i.slice(n+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}var Bc=(()=>{let e=class e{constructor(n,r){this._viewContainer=n,this._context=new xn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Ei("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Ei("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(ce(Ft),ce(ui))},e.\u0275dir=bt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),xn=class{constructor(){this.$implicit=null,this.ngIf=null}};function Ei(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${ni(e)}'.`)}function _i(t,e){return new M(2100,!1)}var kn=class{createSubscription(e,i){return Mn(()=>e.subscribe({next:i,error:n=>{throw n}}))}dispose(e){Mn(()=>e.unsubscribe())}},Un=class{createSubscription(e,i){return e.then(i,n=>{throw n})}dispose(e){}},wo=new Un,Co=new kn,jc=(()=>{let e=class e{constructor(n){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){return this._obj?n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue:(n&&this._subscribe(n),this._latestValue)}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(Mt(n))return wo;if(pi(n))return Co;throw _i(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this._ref.markForCheck())}};e.\u0275fac=function(r){return new(r||e)(ce(Ne,16))},e.\u0275pipe=Sn({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var Eo="mediumDate",So=new I(""),Ao=new I(""),$c=(()=>{let e=class e{constructor(n,r,s){this.locale=n,this.defaultTimezone=r,this.defaultOptions=s}transform(n,r,s,o){if(n==null||n===""||n!==n)return null;try{let a=r??this.defaultOptions?.dateFormat??Eo,c=s??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return uo(n,a,o||this.locale,c)}catch(a){throw _i(e,a.message)}}};e.\u0275fac=function(r){return new(r||e)(ce(mi,16),ce(So,24),ce(Ao,24))},e.\u0275pipe=Sn({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();var bo=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Ke({type:e}),e.\u0275inj=Xe({});let t=e;return t})(),zn="browser",Ro="server";function Fo(t){return t===zn}function Vn(t){return t===Ro}var To=(()=>{let e=class e{};e.\u0275prov=v({token:e,providedIn:"root",factory:()=>Fo(f(ne))?new Bn(f(B),window):new jn});let t=e;return t})(),Bn=class{constructor(e,i){this.document=e,this.window=i,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let i=Io(this.document,e);i&&(this.scrollToElement(i),i.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let i=e.getBoundingClientRect(),n=i.left+this.window.pageXOffset,r=i.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}};function Io(t,e){let i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let s=r.shadowRoot;if(s){let o=s.getElementById(e)||s.querySelector(`[name="${e}"]`);if(o)return o}r=n.nextNode()}}return null}var jn=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},xe=class{};var tt=class{},nt=class{},Q=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
- `).forEach(i=>{let n=i.indexOf(":");if(n>0){let r=i.slice(0,n),s=r.toLowerCase(),o=i.slice(n+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((i,n)=>{this.setHeaderEntries(n,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([i,n])=>{this.setHeaderEntries(i,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let i=this.headers.get(e.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,i){return this.clone({name:e,value:i,op:"a"})}set(e,i){return this.clone({name:e,value:i,op:"s"})}delete(e,i){return this.clone({name:e,value:i,op:"d"})}maybeSetNormalizedName(e,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(i=>{this.headers.set(i,e.headers.get(i)),this.normalizedNames.set(i,e.normalizedNames.get(i))})}clone(e){let i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}applyUpdate(e){let i=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,i);let r=(e.op==="a"?this.headers.get(i):void 0)||[];r.push(...n),this.headers.set(i,r);break;case"d":let s=e.value;if(!s)this.headers.delete(i),this.normalizedNames.delete(i);else{let o=this.headers.get(i);if(!o)return;o=o.filter(a=>s.indexOf(a)===-1),o.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,o)}break}}setHeaderEntries(e,i){let n=(Array.isArray(i)?i:[i]).map(s=>s.toString()),r=e.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>e(this.normalizedNames.get(i),this.headers.get(i)))}};var Wn=class{encodeKey(e){return xi(e)}encodeValue(e){return xi(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function Po(t,e){let i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let s=r.indexOf("="),[o,a]=s==-1?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,s)),e.decodeValue(r.slice(s+1))],c=i.get(o)||[];c.push(a),i.set(o,c)}),i}var Lo=/%(\d[a-f0-9])/gi,No={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function xi(t){return encodeURIComponent(t).replace(Lo,(e,i)=>No[i]??e)}function Ht(t){return`${t}`}var de=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Wn,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Po(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(i=>{let n=e.fromObject[i],r=Array.isArray(n)?n.map(Ht):[Ht(n)];this.map.set(i,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let i=this.map.get(e);return i?i[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,i){return this.clone({param:e,value:i,op:"a"})}appendAll(e){let i=[];return Object.keys(e).forEach(n=>{let r=e[n];Array.isArray(r)?r.forEach(s=>{i.push({param:n,value:s,op:"a"})}):i.push({param:n,value:r,op:"a"})}),this.clone(i)}set(e,i){return this.clone({param:e,value:i,op:"s"})}delete(e,i){return this.clone({param:e,value:i,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let i=this.encoder.encodeKey(e);return this.map.get(e).map(n=>i+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let i=(e.op==="a"?this.map.get(e.param):void 0)||[];i.push(Ht(e.value)),this.map.set(e.param,i);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],r=n.indexOf(Ht(e.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var qn=class{constructor(){this.map=new Map}set(e,i){return this.map.set(e,i),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function _o(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ki(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Ui(t){return typeof Blob<"u"&&t instanceof Blob}function Bi(t){return typeof FormData<"u"&&t instanceof FormData}function xo(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var et=class t{constructor(e,i,n,r){this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let s;if(_o(this.method)||r?(this.body=n!==void 0?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),this.transferCache=s.transferCache),this.headers??=new Q,this.context??=new qn,!this.params)this.params=new de,this.urlWithParams=i;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=i;else{let a=i.indexOf("?"),c=a===-1?"?":a<i.length-1?"&":"";this.urlWithParams=i+c+o}}}serializeBody(){return this.body===null?null:ki(this.body)||Ui(this.body)||Bi(this.body)||xo(this.body)||typeof this.body=="string"?this.body:this.body instanceof de?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Bi(this.body)?null:Ui(this.body)?this.body.type||null:ki(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof de?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let i=e.method||this.method,n=e.url||this.url,r=e.responseType||this.responseType,s=e.body!==void 0?e.body:this.body,o=e.withCredentials!==void 0?e.withCredentials:this.withCredentials,a=e.reportProgress!==void 0?e.reportProgress:this.reportProgress,c=e.headers||this.headers,u=e.params||this.params,l=e.context??this.context;return e.setHeaders!==void 0&&(c=Object.keys(e.setHeaders).reduce((d,h)=>d.set(h,e.setHeaders[h]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((d,h)=>d.set(h,e.setParams[h]),u)),new t(i,n,s,{params:u,headers:c,context:l,reportProgress:a,responseType:r,withCredentials:o})}},he=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(he||{}),rt=class{constructor(e,i=it.Ok,n="OK"){this.headers=e.headers||new Q,this.status=e.status!==void 0?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},qt=class t extends rt{constructor(e={}){super(e),this.type=he.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Ee=class t extends rt{constructor(e={}){super(e),this.type=he.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},le=class extends rt{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},it=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(it||{});function Gn(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var ko=(()=>{let e=class e{constructor(n){this.handler=n}request(n,r,s={}){let o;if(n instanceof et)o=n;else{let u;s.headers instanceof Q?u=s.headers:u=new Q(s.headers);let l;s.params&&(s.params instanceof de?l=s.params:l=new de({fromObject:s.params})),o=new et(n,r,s.body!==void 0?s.body:null,{headers:u,context:s.context,params:l,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let a=g(o).pipe(ye(u=>this.handler.handle(u)));if(n instanceof et||s.observe==="events")return a;let c=a.pipe(ae(u=>u instanceof Ee));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return c.pipe(A(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return c.pipe(A(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return c.pipe(A(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return c.pipe(A(u=>u.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new de().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,s={}){return this.request("PATCH",n,Gn(s,r))}post(n,r,s={}){return this.request("POST",n,Gn(s,r))}put(n,r,s={}){return this.request("PUT",n,Gn(s,r))}};e.\u0275fac=function(r){return new(r||e)(y(tt))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})(),Uo=/^\)\]\}',?\n/,Bo="X-Request-URL";function ji(t){if(t.url)return t.url;let e=Bo.toLocaleLowerCase();return t.headers.get(e)}var Hn=(()=>{let e=class e{constructor(){this.fetchImpl=f(Zn,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=f(q)}handle(n){return new gn(r=>{let s=new AbortController;return this.doRequest(n,s.signal,r).then(Yn,o=>r.error(new le({error:o}))),()=>s.abort()})}doRequest(n,r,s){return pn(this,null,function*(){let o=this.createRequestInit(n),a;try{let F=this.fetchImpl(n.urlWithParams,p({signal:r},o));jo(F),s.next({type:he.Sent}),a=yield F}catch(F){s.error(new le({error:F,status:F.status??0,statusText:F.statusText,url:n.urlWithParams,headers:F.headers}));return}let c=new Q(a.headers),u=a.statusText,l=ji(a)??n.urlWithParams,d=a.status,h=null;if(n.reportProgress&&s.next(new qt({headers:c,status:d,statusText:u,url:l})),a.body){let F=a.headers.get("content-length"),x=[],w=a.body.getReader(),D=0,V,Fe,N=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>pn(this,null,function*(){for(;;){let{done:me,value:qe}=yield w.read();if(me)break;if(x.push(qe),D+=qe.length,n.reportProgress){Fe=n.responseType==="text"?(Fe??"")+(V??=new TextDecoder).decode(qe,{stream:!0}):void 0;let Gr=()=>s.next({type:he.DownloadProgress,total:F?+F:void 0,loaded:D,partialText:Fe});N?N.run(Gr):Gr()}}}));let We=this.concatChunks(x,D);try{let me=a.headers.get("Content-Type")??"";h=this.parseBody(n,We,me)}catch(me){s.error(new le({error:me,headers:new Q(a.headers),status:a.status,statusText:a.statusText,url:ji(a)??n.urlWithParams}));return}}d===0&&(d=h?it.Ok:0),d>=200&&d<300?(s.next(new Ee({body:h,headers:c,status:d,statusText:u,url:l})),s.complete()):s.error(new le({error:h,headers:c,status:d,statusText:u,url:l}))})}parseBody(n,r,s){switch(n.responseType){case"json":let o=new TextDecoder().decode(r).replace(Uo,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:s});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},s=n.withCredentials?"include":void 0;if(n.headers.forEach((o,a)=>r[o]=a.join(",")),r.Accept??="application/json, text/plain, */*",!r["Content-Type"]){let o=n.detectContentTypeHeader();o!==null&&(r["Content-Type"]=o)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:s}}concatChunks(n,r){let s=new Uint8Array(r),o=0;for(let a of n)s.set(a,o),o+=a.length;return s}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})(),Zn=class{};function Yn(){}function jo(t){t.then(Yn,Yn)}function $o(t,e){return e(t)}function zo(t,e,i){return(n,r)=>re(i,()=>e(n,s=>t(s,r)))}var Yi=new I(""),Ki=new I(""),Xi=new I("");var $i=(()=>{let e=class e extends tt{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=f(Tt);let s=f(Xi,{optional:!0});this.backend=s??n}handle(n){if(this.chain===null){let s=Array.from(new Set([...this.injector.get(Yi),...this.injector.get(Ki,[])]));this.chain=s.reduceRight((o,a)=>zo(o,a,this.injector),$o)}let r=this.pendingTasks.add();return this.chain(n,s=>this.backend.handle(s)).pipe(Me(()=>this.pendingTasks.remove(r)))}};e.\u0275fac=function(r){return new(r||e)(y(nt),y(Pe))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})();var Vo=/^\)\]\}',?\n/;function Go(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var zi=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new M(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?j(r.\u0275loadImpl()):g(null)).pipe(W(()=>new gn(o=>{let a=r.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((w,D)=>a.setRequestHeader(w,D.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let w=n.detectContentTypeHeader();w!==null&&a.setRequestHeader("Content-Type",w)}if(n.responseType){let w=n.responseType.toLowerCase();a.responseType=w!=="json"?w:"text"}let c=n.serializeBody(),u=null,l=()=>{if(u!==null)return u;let w=a.statusText||"OK",D=new Q(a.getAllResponseHeaders()),V=Go(a)||n.url;return u=new qt({headers:D,status:a.status,statusText:w,url:V}),u},d=()=>{let{headers:w,status:D,statusText:V,url:Fe}=l(),N=null;D!==it.NoContent&&(N=typeof a.response>"u"?a.responseText:a.response),D===0&&(D=N?it.Ok:0);let We=D>=200&&D<300;if(n.responseType==="json"&&typeof N=="string"){let me=N;N=N.replace(Vo,"");try{N=N!==""?JSON.parse(N):null}catch(qe){N=me,We&&(We=!1,N={error:qe,text:N})}}We?(o.next(new Ee({body:N,headers:w,status:D,statusText:V,url:Fe||void 0})),o.complete()):o.error(new le({error:N,headers:w,status:D,statusText:V,url:Fe||void 0}))},h=w=>{let{url:D}=l(),V=new le({error:w,status:a.status||0,statusText:a.statusText||"Unknown Error",url:D||void 0});o.error(V)},S=!1,F=w=>{S||(o.next(l()),S=!0);let D={type:he.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(D.total=w.total),n.responseType==="text"&&a.responseText&&(D.partialText=a.responseText),o.next(D)},x=w=>{let D={type:he.UploadProgress,loaded:w.loaded};w.lengthComputable&&(D.total=w.total),o.next(D)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),n.reportProgress&&(a.addEventListener("progress",F),c!==null&&a.upload&&a.upload.addEventListener("progress",x)),a.send(c),o.next({type:he.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),n.reportProgress&&(a.removeEventListener("progress",F),c!==null&&a.upload&&a.upload.removeEventListener("progress",x)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(y(xe))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})(),Ji=new I(""),Ho="XSRF-TOKEN",Wo=new I("",{providedIn:"root",factory:()=>Ho}),qo="X-XSRF-TOKEN",Zo=new I("",{providedIn:"root",factory:()=>qo}),Zt=class{},Yo=(()=>{let e=class e{constructor(n,r,s){this.doc=n,this.platform=r,this.cookieName=s,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Gt(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(y(B),y(ne),y(Wo))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})();function Ko(t,e){let i=t.url.toLowerCase();if(!f(Ji)||t.method==="GET"||t.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(t);let n=f(Zt).getToken(),r=f(Zo);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),e(t)}var Qi=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Qi||{});function Xo(t,e){return{\u0275kind:t,\u0275providers:e}}function Qc(...t){let e=[ko,zi,$i,{provide:tt,useExisting:$i},{provide:nt,useExisting:zi},{provide:Yi,useValue:Ko,multi:!0},{provide:Ji,useValue:!0},{provide:Zt,useClass:Yo}];for(let i of t)e.push(...i.\u0275providers);return Oe(e)}function el(){return Xo(Qi.Fetch,[Hn,{provide:nt,useExisting:Hn},{provide:Xi,useExisting:Hn}])}var Vi="b",Gi="h",Hi="s",Wi="st",qi="u",Zi="rt",Wt=new I(""),Jo=["GET","HEAD"];function Qo(t,e){let l=f(Wt),{isCacheActive:i}=l,n=Hr(l,["isCacheActive"]),{transferCache:r,method:s}=t;if(!i||s==="POST"&&!n.includePostRequests&&!r||s!=="POST"&&!Jo.includes(s)||r===!1||n.filter?.(t)===!1)return e(t);let o=f(Rt),a=ta(t),c=o.get(a,null),u=n.includeHeaders;if(typeof r=="object"&&r.includeHeaders&&(u=r.includeHeaders),c){let{[Vi]:d,[Zi]:h,[Gi]:S,[Hi]:F,[Wi]:x,[qi]:w}=c,D=d;switch(h){case"arraybuffer":D=new TextEncoder().encode(d).buffer;break;case"blob":D=new Blob([d]);break}let V=new Q(S);return g(new Ee({body:D,headers:V,status:F,statusText:x,url:w}))}return e(t).pipe(L(d=>{d instanceof Ee&&o.set(a,{[Vi]:d.body,[Gi]:ea(d.headers,u),[Hi]:d.status,[Wi]:d.statusText,[qi]:d.url||"",[Zi]:t.responseType})}))}function ea(t,e){if(!e)return{};let i={};for(let n of e){let r=t.getAll(n);r!==null&&(i[n]=r)}return i}function ta(t){let{params:e,method:i,responseType:n,url:r,body:s}=t,o=e.keys().sort().map(l=>`${l}=${e.getAll(l)}`).join("&"),c=[i,n,r,typeof s=="string"?s:"",o].join("|"),u=na(c);return u}function na(t){let e=0;for(let i of t)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,e.toString()}function es(t){return[{provide:Wt,useFactory:()=>(On("NgHttpTransferCache"),p({isCacheActive:!0},t))},{provide:Ki,useValue:Qo,multi:!0,deps:[Rt,Wt]},{provide:Ot,multi:!0,useFactory:()=>{let e=f(Je),i=f(Wt);return()=>{gi(e).then(()=>{i.isCacheActive=!1})}}}]}var Jn=class extends jt{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Qn=class t extends Jn{static makeCurrent(){Ti(new t)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=sa();return i==null?null:oa(i)}resetBaseElement(){st=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Gt(document.cookie,e)}},st=null;function sa(){return st=st||document.querySelector("base"),st?st.getAttribute("href"):null}function oa(t){return new URL(t,document.baseURI).pathname}var aa=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})(),er=new I(""),is=(()=>{let e=class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(s=>{s.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,s){return this._findPluginFor(r).addEventListener(n,r,s)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new M(5101,!1);return this._eventNameToPlugin.set(n,r),r}};e.\u0275fac=function(r){return new(r||e)(y(er),y(q))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})(),Yt=class{constructor(e){this._doc=e}},Kn="ng-app-id",ss=(()=>{let e=class e{constructor(n,r,s,o={}){this.doc=n,this.appId=r,this.nonce=s,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Vn(o),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(s=>s.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Kn}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(s=>{s.textContent!=null&&r.set(s.textContent,s)}),r}return null}changeUsageCount(n,r){let s=this.styleRef;if(s.has(n)){let o=s.get(n);return o.usage+=r,o.usage}return s.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let s=this.styleNodesInDOM,o=s?.get(r);if(o?.parentNode===n)return s.delete(r),o.removeAttribute(Kn),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(Kn,this.appId),n.appendChild(a),a}}addStyleToHost(n,r){let s=this.getStyleElement(n,r),o=this.styleRef,a=o.get(r)?.elements;a?a.push(s):o.set(r,{elements:[s],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(y(B),y(An),y(bn,8),y(ne))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})(),Xn={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},rr=/%COMP%/g,os="%COMP%",ua=`_nghost-${os}`,ca=`_ngcontent-${os}`,la=!0,da=new I("",{providedIn:"root",factory:()=>la});function ha(t){return ca.replace(rr,t)}function fa(t){return ua.replace(rr,t)}function as(t,e){return e.map(i=>i.replace(rr,t))}var ts=(()=>{let e=class e{constructor(n,r,s,o,a,c,u,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=c,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Vn(c),this.defaultRenderer=new ot(n,a,u,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ye.ShadowDom&&(r=k(p({},r),{encapsulation:Ye.Emulated}));let s=this.getOrCreateRenderer(n,r);return s instanceof Kt?s.applyToHost(n):s instanceof at&&s.applyStyles(),s}getOrCreateRenderer(n,r){let s=this.rendererByCompId,o=s.get(r.id);if(!o){let a=this.doc,c=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case Ye.Emulated:o=new Kt(u,l,r,this.appId,d,a,c,h);break;case Ye.ShadowDom:return new tr(u,l,n,r,a,c,this.nonce,h);default:o=new at(u,l,r,d,a,c,h);break}s.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(y(is),y(ss),y(An),y(da),y(B),y(ne),y(q),y(bn))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})(),ot=class{constructor(e,i,n,r){this.eventManager=e,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(Xn[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(ns(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(ns(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new M(-5104,!1);return i||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,n,r){if(r){i=r+":"+i;let s=Xn[r];s?e.setAttributeNS(s,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let r=Xn[n];r?e.removeAttributeNS(r,i):e.removeAttribute(`${n}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,n,r){r&(Le.DashCase|Le.Important)?e.style.setProperty(i,n,r&Le.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&Le.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,n){e!=null&&(e[i]=n)}setValue(e,i){e.nodeValue=i}listen(e,i,n){if(typeof e=="string"&&(e=_e().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(n))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function ns(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var tr=class extends ot{constructor(e,i,n,r,s,o,a,c){super(e,s,o,c),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=as(r.id,r.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,n){return super.insertBefore(this.nodeOrShadowRoot(e),i,n)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},at=class extends ot{constructor(e,i,n,r,s,o,a,c){super(e,s,o,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=c?as(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Kt=class extends at{constructor(e,i,n,r,s,o,a,c){let u=r+"-"+n.id;super(e,i,n,s,o,a,c,u),this.contentAttr=ha(u),this.hostAttr=fa(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let n=super.createElement(e,i);return super.setAttribute(n,this.contentAttr,""),n}},pa=(()=>{let e=class e extends Yt{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,s){return n.addEventListener(r,s,!1),()=>this.removeEventListener(n,r,s)}removeEventListener(n,r,s){return n.removeEventListener(r,s)}};e.\u0275fac=function(r){return new(r||e)(y(B))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})(),rs=["alt","control","meta","shift"],ga={"\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"},ma={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Da=(()=>{let e=class e extends Yt{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,s){let o=e.parseEventName(r),a=e.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>_e().onAndCancel(n,o.domEventName,a))}static parseEventName(n){let r=n.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let o=e._normalizeKey(r.pop()),a="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),a="code."),rs.forEach(l=>{let d=r.indexOf(l);d>-1&&(r.splice(d,1),a+=l+".")}),a+=o,r.length!=0||o.length===0)return null;let u={};return u.domEventName=s,u.fullKey=a,u}static matchEventFullKeyCode(n,r){let s=ga[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(s=n.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),rs.forEach(a=>{if(a!==s){let c=ma[a];c(n)&&(o+=a+".")}}),o+=s,o===r)}static eventCallback(n,r,s){return o=>{e.matchEventFullKeyCode(o,n)&&s.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(r){return new(r||e)(y(B))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})();function Il(t,e){return Di(p({rootComponent:t},va(e)))}function va(t){return{appProviders:[...Sa,...t?.providers??[]],platformProviders:Ea}}function ya(){Qn.makeCurrent()}function wa(){return new In}function Ca(){return ii(document),document}var Ea=[{provide:ne,useValue:zn},{provide:oi,useValue:ya,multi:!0},{provide:B,useFactory:Ca,deps:[]}];var Sa=[{provide:ai,useValue:"root"},{provide:In,useFactory:wa,deps:[]},{provide:er,useClass:pa,multi:!0,deps:[B,q,ne]},{provide:er,useClass:Da,multi:!0,deps:[B]},ts,ss,is,{provide:ci,useExisting:ts},{provide:xe,useClass:aa,deps:[]},[]];var us=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(r){return new(r||e)(y(B))},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var nr=function(t){return t[t.NoHttpTransferCache=0]="NoHttpTransferCache",t[t.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",t}(nr||{});function Ml(...t){let e=[],i=new Set,n=i.has(nr.HttpTransferCacheOptions);for(let{\u0275providers:r,\u0275kind:s}of t)i.add(s),r.length&&e.push(r);return Oe([[],vi(),i.has(nr.NoHttpTransferCache)||n?[]:es({}),e])}var m="primary",Et=Symbol("RouteTitle"),ur=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function $e(t){return new ur(t)}function ba(t,e,i){let n=i.path.split("/");if(n.length>t.length||i.pathMatch==="full"&&(e.hasChildren()||n.length<t.length))return null;let r={};for(let s=0;s<n.length;s++){let o=n[s],a=t[s];if(o.startsWith(":"))r[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:t.slice(0,n.length),posParams:r}}function Ra(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;++i)if(!ee(t[i],e[i]))return!1;return!0}function ee(t,e){let i=t?cr(t):void 0,n=e?cr(e):void 0;if(!i||!n||i.length!=n.length)return!1;let r;for(let s=0;s<i.length;s++)if(r=i[s],!ps(t[r],e[r]))return!1;return!0}function cr(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function ps(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;let i=[...t].sort(),n=[...e].sort();return i.every((r,s)=>n[s]===r)}else return t===e}function gs(t){return t.length>0?t[t.length-1]:null}function ge(t){return Zr(t)?t:Mt(t)?j(Promise.resolve(t)):g(t)}var Fa={exact:Ds,subset:vs},ms={exact:Ta,subset:Ia,ignored:()=>!0};function cs(t,e,i){return Fa[i.paths](t.root,e.root,i.matrixParams)&&ms[i.queryParams](t.queryParams,e.queryParams)&&!(i.fragment==="exact"&&t.fragment!==e.fragment)}function Ta(t,e){return ee(t,e)}function Ds(t,e,i){if(!Ae(t.segments,e.segments)||!Qt(t.segments,e.segments,i)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!Ds(t.children[n],e.children[n],i))return!1;return!0}function Ia(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>ps(t[i],e[i]))}function vs(t,e,i){return ys(t,e,e.segments,i)}function ys(t,e,i,n){if(t.segments.length>i.length){let r=t.segments.slice(0,i.length);return!(!Ae(r,i)||e.hasChildren()||!Qt(r,i,n))}else if(t.segments.length===i.length){if(!Ae(t.segments,i)||!Qt(t.segments,i,n))return!1;for(let r in e.children)if(!t.children[r]||!vs(t.children[r],e.children[r],n))return!1;return!0}else{let r=i.slice(0,t.segments.length),s=i.slice(t.segments.length);return!Ae(t.segments,r)||!Qt(t.segments,r,n)||!t.children[m]?!1:ys(t.children[m],e,s,n)}}function Qt(t,e,i){return e.every((n,r)=>ms[i](t[r].parameters,n.parameters))}var fe=class{constructor(e=new b([],{}),i={},n=null){this.root=e,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap??=$e(this.queryParams),this._queryParamMap}toString(){return Pa.serialize(this)}},b=class{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return en(this)}},Se=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap??=$e(this.parameters),this._parameterMap}toString(){return Cs(this)}};function Ma(t,e){return Ae(t,e)&&t.every((i,n)=>ee(i.parameters,e[n].parameters))}function Ae(t,e){return t.length!==e.length?!1:t.every((i,n)=>i.path===e[n].path)}function Oa(t,e){let i=[];return Object.entries(t.children).forEach(([n,r])=>{n===m&&(i=i.concat(e(r,n)))}),Object.entries(t.children).forEach(([n,r])=>{n!==m&&(i=i.concat(e(r,n)))}),i}var _r=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:()=>new nn,providedIn:"root"});let t=e;return t})(),nn=class{parse(e){let i=new dr(e);return new fe(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${ut(e.root,!0)}`,n=_a(e.queryParams),r=typeof e.fragment=="string"?`#${La(e.fragment)}`:"";return`${i}${n}${r}`}},Pa=new nn;function en(t){return t.segments.map(e=>Cs(e)).join("/")}function ut(t,e){if(!t.hasChildren())return en(t);if(e){let i=t.children[m]?ut(t.children[m],!1):"",n=[];return Object.entries(t.children).forEach(([r,s])=>{r!==m&&n.push(`${r}:${ut(s,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}else{let i=Oa(t,(n,r)=>r===m?[ut(t.children[m],!1)]:[`${r}:${ut(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[m]!=null?`${en(t)}/${i[0]}`:`${en(t)}/(${i.join("//")})`}}function ws(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xt(t){return ws(t).replace(/%3B/gi,";")}function La(t){return encodeURI(t)}function lr(t){return ws(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function tn(t){return decodeURIComponent(t)}function ls(t){return tn(t.replace(/\+/g,"%20"))}function Cs(t){return`${lr(t.path)}${Na(t.parameters)}`}function Na(t){return Object.entries(t).map(([e,i])=>`;${lr(e)}=${lr(i)}`).join("")}function _a(t){let e=Object.entries(t).map(([i,n])=>Array.isArray(n)?n.map(r=>`${Xt(i)}=${Xt(r)}`).join("&"):`${Xt(i)}=${Xt(n)}`).filter(i=>i);return e.length?`?${e.join("&")}`:""}var xa=/^[^\/()?;#]+/;function ir(t){let e=t.match(xa);return e?e[0]:""}var ka=/^[^\/()?;=#]+/;function Ua(t){let e=t.match(ka);return e?e[0]:""}var Ba=/^[^=?&#]+/;function ja(t){let e=t.match(Ba);return e?e[0]:""}var $a=/^[^&#]+/;function za(t){let e=t.match($a);return e?e[0]:""}var dr=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new b([],{}):new b([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(n[m]=new b(e,i)),n}parseSegment(){let e=ir(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new M(4009,!1);return this.capture(e),new Se(tn(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=Ua(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let r=ir(this.remaining);r&&(n=r,this.capture(n))}e[tn(i)]=tn(n)}parseQueryParam(e){let i=ja(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let o=za(this.remaining);o&&(n=o,this.capture(n))}let r=ls(i),s=ls(n);if(e.hasOwnProperty(r)){let o=e[r];Array.isArray(o)||(o=[o],e[r]=o),o.push(s)}else e[r]=s}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=ir(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new M(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=m);let o=this.parseChildren();i[s]=Object.keys(o).length===1?o[m]:new b([],o),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new M(4011,!1)}};function Es(t){return t.segments.length>0?new b([],{[m]:t}):t}function Ss(t){let e={};for(let[n,r]of Object.entries(t.children)){let s=Ss(r);if(n===m&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))e[o]=a;else(s.segments.length>0||s.hasChildren())&&(e[n]=s)}let i=new b(t.segments,e);return Va(i)}function Va(t){if(t.numberOfChildren===1&&t.children[m]){let e=t.children[m];return new b(t.segments.concat(e.segments),e.children)}return t}function ze(t){return t instanceof fe}function Ga(t,e,i=null,n=null){let r=As(t);return bs(r,e,i,n)}function As(t){let e;function i(s){let o={};for(let c of s.children){let u=i(c);o[c.outlet]=u}let a=new b(s.url,o);return s===t&&(e=a),a}let n=i(t.root),r=Es(n);return e??r}function bs(t,e,i,n){let r=t;for(;r.parent;)r=r.parent;if(e.length===0)return sr(r,r,r,i,n);let s=Ha(e);if(s.toRoot())return sr(r,r,new b([],{}),i,n);let o=Wa(s,r,t),a=o.processChildren?dt(o.segmentGroup,o.index,s.commands):Fs(o.segmentGroup,o.index,s.commands);return sr(r,o.segmentGroup,a,i,n)}function rn(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function pt(t){return typeof t=="object"&&t!=null&&t.outlets}function sr(t,e,i,n,r){let s={};n&&Object.entries(n).forEach(([c,u])=>{s[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let o;t===e?o=i:o=Rs(t,e,i);let a=Es(Ss(o));return new fe(a,s,r)}function Rs(t,e,i){let n={};return Object.entries(t.children).forEach(([r,s])=>{s===e?n[r]=i:n[r]=Rs(s,e,i)}),new b(t.segments,n)}var sn=class{constructor(e,i,n){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=n,e&&n.length>0&&rn(n[0]))throw new M(4003,!1);let r=n.find(pt);if(r&&r!==gs(n))throw new M(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Ha(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new sn(!0,0,t);let e=0,i=!1,n=t.reduce((r,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:o===0?(s.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?i=!0:a===".."?e++:a!=""&&r.push(a))}),r):[...r,s]},[]);return new sn(i,e,n)}var Be=class{constructor(e,i,n){this.segmentGroup=e,this.processChildren=i,this.index=n}};function Wa(t,e,i){if(t.isAbsolute)return new Be(e,!0,0);if(!i)return new Be(e,!1,NaN);if(i.parent===null)return new Be(i,!0,0);let n=rn(t.commands[0])?0:1,r=i.segments.length-1+n;return qa(i,r,t.numberOfDoubleDots)}function qa(t,e,i){let n=t,r=e,s=i;for(;s>r;){if(s-=r,n=n.parent,!n)throw new M(4005,!1);r=n.segments.length}return new Be(n,!1,r-s)}function Za(t){return pt(t[0])?t[0].outlets:{[m]:t}}function Fs(t,e,i){if(t??=new b([],{}),t.segments.length===0&&t.hasChildren())return dt(t,e,i);let n=Ya(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let s=new b(t.segments.slice(0,n.pathIndex),{});return s.children[m]=new b(t.segments.slice(n.pathIndex),t.children),dt(s,0,r)}else return n.match&&r.length===0?new b(t.segments,{}):n.match&&!t.hasChildren()?hr(t,e,i):n.match?dt(t,0,r):hr(t,e,i)}function dt(t,e,i){if(i.length===0)return new b(t.segments,{});{let n=Za(i),r={};if(Object.keys(n).some(s=>s!==m)&&t.children[m]&&t.numberOfChildren===1&&t.children[m].segments.length===0){let s=dt(t.children[m],e,i);return new b(t.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(r[s]=Fs(t.children[s],e,o))}),Object.entries(t.children).forEach(([s,o])=>{n[s]===void 0&&(r[s]=o)}),new b(t.segments,r)}}function Ya(t,e,i){let n=0,r=e,s={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(n>=i.length)return s;let o=t.segments[r],a=i[n];if(pt(a))break;let c=`${a}`,u=n<i.length-1?i[n+1]:null;if(r>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!hs(c,u,o))return s;n+=2}else{if(!hs(c,{},o))return s;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function hr(t,e,i){let n=t.segments.slice(0,e),r=0;for(;r<i.length;){let s=i[r];if(pt(s)){let c=Ka(s.outlets);return new b(n,c)}if(r===0&&rn(i[0])){let c=t.segments[e];n.push(new Se(c.path,ds(i[0]))),r++;continue}let o=pt(s)?s.outlets[m]:`${s}`,a=r<i.length-1?i[r+1]:null;o&&a&&rn(a)?(n.push(new Se(o,ds(a))),r+=2):(n.push(new Se(o,{})),r++)}return new b(n,{})}function Ka(t){let e={};return Object.entries(t).forEach(([i,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(e[i]=hr(new b([],{}),0,n))}),e}function ds(t){let e={};return Object.entries(t).forEach(([i,n])=>e[i]=`${n}`),e}function hs(t,e,i){return t==i.path&&ee(e,i.parameters)}var ht="imperative",_=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(_||{}),X=class{constructor(e,i){this.id=e,this.url=i}},gt=class extends X{constructor(e,i,n="imperative",r=null){super(e,i),this.type=_.NavigationStart,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},be=class extends X{constructor(e,i,n){super(e,i),this.urlAfterRedirects=n,this.type=_.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},K=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(K||{}),fr=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(fr||{}),pe=class extends X{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=_.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Re=class extends X{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=_.NavigationSkipped}},mt=class extends X{constructor(e,i,n,r){super(e,i),this.error=n,this.target=r,this.type=_.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},on=class extends X{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=_.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pr=class extends X{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=_.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},gr=class extends X{constructor(e,i,n,r,s){super(e,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s,this.type=_.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},mr=class extends X{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=_.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Dr=class extends X{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=_.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},vr=class{constructor(e){this.route=e,this.type=_.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},yr=class{constructor(e){this.route=e,this.type=_.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},wr=class{constructor(e){this.snapshot=e,this.type=_.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Cr=class{constructor(e){this.snapshot=e,this.type=_.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Er=class{constructor(e){this.snapshot=e,this.type=_.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Sr=class{constructor(e){this.snapshot=e,this.type=_.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Dt=class{},vt=class{constructor(e){this.url=e}};var Ar=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new hn,this.attachRef=null}},hn=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){let s=this.getOrCreateContext(n);s.outlet=r,this.contexts.set(n,s)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Ar,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),an=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){let i=br(e,this._root);return i?i.children.map(n=>n.value):[]}firstChild(e){let i=br(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=Rr(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return Rr(e,this._root).map(i=>i.value)}};function br(t,e){if(t===e.value)return e;for(let i of e.children){let n=br(t,i);if(n)return n}return null}function Rr(t,e){if(t===e.value)return[e];for(let i of e.children){let n=Rr(t,i);if(n.length)return n.unshift(e),n}return[]}var z=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function Ue(t){let e={};return t&&t.children.forEach(i=>e[i.value.outlet]=i),e}var un=class extends an{constructor(e,i){super(e),this.snapshot=i,kr(this,e)}toString(){return this.snapshot.toString()}};function Ts(t){let e=Xa(t),i=new G([new Se("",{})]),n=new G({}),r=new G({}),s=new G({}),o=new G(""),a=new Ve(i,n,s,o,r,m,t,e.root);return a.snapshot=e.root,new un(new z(a,[]),e)}function Xa(t){let e={},i={},n={},r="",s=new yt([],e,n,r,i,m,t,null,{});return new cn("",new z(s,[]))}var Ve=class{constructor(e,i,n,r,s,o,a,c){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(A(u=>u[Et]))??g(void 0),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(A(e=>$e(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(A(e=>$e(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function xr(t,e,i="emptyOnly"){let n,{routeConfig:r}=t;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:p(p({},e.params),t.params),data:p(p({},e.data),t.data),resolve:p(p(p(p({},t.data),e.data),r?.data),t._resolvedData)}:n={params:p({},t.params),data:p({},t.data),resolve:p(p({},t.data),t._resolvedData??{})},r&&Ms(r)&&(n.resolve[Et]=r.title),n}var yt=class{get title(){return this.data?.[Et]}constructor(e,i,n,r,s,o,a,c,u){this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=c,this._resolve=u}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??=$e(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=$e(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${i}')`}},cn=class extends an{constructor(e,i){super(i),this.url=e,kr(this,i)}toString(){return Is(this._root)}};function kr(t,e){e.value._routerState=t,e.children.forEach(i=>kr(t,i))}function Is(t){let e=t.children.length>0?` { ${t.children.map(Is).join(", ")} } `:"";return`${t.value}${e}`}function or(t){if(t.snapshot){let e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,ee(e.queryParams,i.queryParams)||t.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&t.fragmentSubject.next(i.fragment),ee(e.params,i.params)||t.paramsSubject.next(i.params),Ra(e.url,i.url)||t.urlSubject.next(i.url),ee(e.data,i.data)||t.dataSubject.next(i.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Fr(t,e){let i=ee(t.params,e.params)&&Ma(t.url,e.url),n=!t.parent!=!e.parent;return i&&!n&&(!t.parent||Fr(t.parent,e.parent))}function Ms(t){return typeof t.title=="string"||t.title===null}var Ja=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=m,this.activateEvents=new we,this.deactivateEvents=new we,this.attachEvents=new we,this.detachEvents=new we,this.parentContexts=f(hn),this.location=f(Ft),this.changeDetector=f(Ne),this.environmentInjector=f(Pe),this.inputBinder=f(Ur,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:s}=n.name;if(r)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new M(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new M(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new M(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new M(4013,!1);this._activatedRoute=n;let s=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new Tr(n,c,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:u,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=bt({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Rn]});let t=e;return t})(),Tr=class{constructor(e,i,n){this.route=e,this.childContexts=i,this.parent=n}get(e,i){return e===Ve?this.route:e===hn?this.childContexts:this.parent.get(e,i)}},Ur=new I("");function Qa(t,e,i){let n=wt(t,e._root,i?i._root:void 0);return new un(n,e)}function wt(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){let n=i.value;n._futureSnapshot=e.value;let r=eu(t,e,i);return new z(n,r)}else{if(t.shouldAttach(e.value)){let s=t.retrieve(e.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=e.value,o.children=e.children.map(a=>wt(t,a)),o}}let n=tu(e.value),r=e.children.map(s=>wt(t,s));return new z(n,r)}}function eu(t,e,i){return e.children.map(n=>{for(let r of i.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return wt(t,n,r);return wt(t,n)})}function tu(t){return new Ve(new G(t.url),new G(t.params),new G(t.queryParams),new G(t.fragment),new G(t.data),t.outlet,t.component,t)}var Os="ngNavigationCancelingError";function Ps(t,e){let{redirectTo:i,navigationBehaviorOptions:n}=ze(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=Ls(!1,K.Redirect);return r.url=i,r.navigationBehaviorOptions=n,r}function Ls(t,e){let i=new Error(`NavigationCancelingError: ${t||""}`);return i[Os]=!0,i.cancellationCode=e,i}function nu(t){return Ns(t)&&ze(t.url)}function Ns(t){return!!t&&t[Os]}var ru=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=ri({type:e,selectors:[["ng-component"]],standalone:!0,features:[fi],decls:1,vars:0,template:function(r,s){r&1&&hi(0,"router-outlet")},dependencies:[Ja],encapsulation:2});let t=e;return t})();function iu(t,e){return t.providers&&!t._injector&&(t._injector=di(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Br(t){let e=t.children&&t.children.map(Br),i=e?k(p({},t),{children:e}):p({},t);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==m&&(i.component=ru),i}function te(t){return t.outlet||m}function su(t,e){let i=t.filter(n=>te(n)===e);return i.push(...t.filter(n=>te(n)!==e)),i}function St(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var ou=(t,e,i,n)=>A(r=>(new Ir(e,r.targetRouterState,r.currentRouterState,i,n).activate(t),r)),Ir=class{constructor(e,i,n,r,s){this.routeReuseStrategy=e,this.futureState=i,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=s}activate(e){let i=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,n,e),or(this.futureState.root),this.activateChildRoutes(i,n,e)}deactivateChildRoutes(e,i,n){let r=Ue(i);e.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,r[o],n),delete r[o]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(e,i,n){let r=e.value,s=i?i.value:null;if(r===s)if(r.component){let o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(e,i,o.children)}else this.deactivateChildRoutes(e,i,n);else s&&this.deactivateRouteAndItsChildren(i,n)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,s=Ue(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);if(n&&n.outlet){let o=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}}deactivateRouteAndOutlet(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,s=Ue(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,i,n){let r=Ue(i);e.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],n),this.forwardEvent(new Sr(s.value.snapshot))}),e.children.length&&this.forwardEvent(new Cr(e.value.snapshot))}activateRoutes(e,i,n){let r=e.value,s=i?i.value:null;if(or(r),r===s)if(r.component){let o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,o.children)}else this.activateChildRoutes(e,i,n);else if(r.component){let o=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),or(a.route.value),this.activateChildRoutes(e,null,o.children)}else{let a=St(r.snapshot);o.attachRef=null,o.route=r,o.injector=a,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,n)}},ln=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},je=class{constructor(e,i){this.component=e,this.route=i}};function au(t,e,i){let n=t._root,r=e?e._root:null;return ct(n,r,i,[n.value])}function uu(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function He(t,e){let i=Symbol(),n=e.get(t,i);return n===i?typeof t=="function"&&!si(t)?t:e.get(t):n}function ct(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=Ue(e);return t.children.forEach(o=>{cu(o,s[o.value.outlet],i,n.concat([o.value]),r),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>ft(a,i.getContext(o),r)),r}function cu(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,o=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let c=lu(o,s,s.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new ln(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?ct(t,e,a?a.children:null,n,r):ct(t,e,i,n,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new je(a.outlet.component,o))}else o&&ft(e,a,r),r.canActivateChecks.push(new ln(n)),s.component?ct(t,null,a?a.children:null,n,r):ct(t,null,i,n,r);return r}function lu(t,e,i){if(typeof i=="function")return i(t,e);switch(i){case"pathParamsChange":return!Ae(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ae(t.url,e.url)||!ee(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Fr(t,e)||!ee(t.queryParams,e.queryParams);case"paramsChange":default:return!Fr(t,e)}}function ft(t,e,i){let n=Ue(t),r=t.value;Object.entries(n).forEach(([s,o])=>{r.component?e?ft(o,e.children.getContext(s),i):ft(o,null,i):ft(o,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new je(e.outlet.component,r)):i.canDeactivateChecks.push(new je(null,r)):i.canDeactivateChecks.push(new je(null,r))}function At(t){return typeof t=="function"}function du(t){return typeof t=="boolean"}function hu(t){return t&&At(t.canLoad)}function fu(t){return t&&At(t.canActivate)}function pu(t){return t&&At(t.canActivateChild)}function gu(t){return t&&At(t.canDeactivate)}function mu(t){return t&&At(t.canMatch)}function _s(t){return t instanceof Yr||t?.name==="EmptyError"}var Jt=Symbol("INITIAL_VALUE");function Ge(){return W(t=>vn(t.map(e=>e.pipe(Ie(1),ei(Jt)))).pipe(A(e=>{for(let i of e)if(i!==!0){if(i===Jt)return Jt;if(i===!1||i instanceof fe)return i}return!0}),ae(e=>e!==Jt),Ie(1)))}function Du(t,e){return H(i=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return o.length===0&&s.length===0?g(k(p({},i),{guardsResult:!0})):vu(o,n,r,t).pipe(H(a=>a&&du(a)?yu(n,s,t,e):g(a)),A(a=>k(p({},i),{guardsResult:a})))})}function vu(t,e,i,n){return j(t).pipe(H(r=>Au(r.component,r.route,i,e,n)),ue(r=>r!==!0,!0))}function yu(t,e,i,n){return j(e).pipe(ye(r=>Kr(Cu(r.route.parent,n),wu(r.route,n),Su(t,r.path,i),Eu(t,r.route,i))),ue(r=>r!==!0,!0))}function wu(t,e){return t!==null&&e&&e(new Er(t)),g(!0)}function Cu(t,e){return t!==null&&e&&e(new wr(t)),g(!0)}function Eu(t,e,i){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return g(!0);let r=n.map(s=>yn(()=>{let o=St(e)??i,a=He(s,o),c=fu(a)?a.canActivate(e,t):re(o,()=>a(e,t));return ge(c).pipe(ue())}));return g(r).pipe(Ge())}function Su(t,e,i){let n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>uu(o)).filter(o=>o!==null).map(o=>yn(()=>{let a=o.guards.map(c=>{let u=St(o.node)??i,l=He(c,u),d=pu(l)?l.canActivateChild(n,t):re(u,()=>l(n,t));return ge(d).pipe(ue())});return g(a).pipe(Ge())}));return g(s).pipe(Ge())}function Au(t,e,i,n,r){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return g(!0);let o=s.map(a=>{let c=St(e)??r,u=He(a,c),l=gu(u)?u.canDeactivate(t,e,i,n):re(c,()=>u(t,e,i,n));return ge(l).pipe(ue())});return g(o).pipe(Ge())}function bu(t,e,i,n){let r=e.canLoad;if(r===void 0||r.length===0)return g(!0);let s=r.map(o=>{let a=He(o,t),c=hu(a)?a.canLoad(e,i):re(t,()=>a(e,i));return ge(c)});return g(s).pipe(Ge(),xs(n))}function xs(t){return qr(L(e=>{if(ze(e))throw Ps(t,e)}),A(e=>e===!0))}function Ru(t,e,i,n){let r=e.canMatch;if(!r||r.length===0)return g(!0);let s=r.map(o=>{let a=He(o,t),c=mu(a)?a.canMatch(e,i):re(t,()=>a(e,i));return ge(c)});return g(s).pipe(Ge(),xs(n))}var Ct=class{constructor(e){this.segmentGroup=e||null}},dn=class extends Error{constructor(e){super(),this.urlTree=e}};function ke(t){return Ze(new Ct(t))}function Fu(t){return Ze(new M(4e3,!1))}function Tu(t){return Ze(Ls(!1,K.GuardRejected))}var Mr=class{constructor(e,i){this.urlSerializer=e,this.urlTree=i}lineralizeSegments(e,i){let n=[],r=i.root;for(;;){if(n=n.concat(r.segments),r.numberOfChildren===0)return g(n);if(r.numberOfChildren>1||!r.children[m])return Fu(e.redirectTo);r=r.children[m]}}applyRedirectCommands(e,i,n){let r=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,n);if(i.startsWith("/"))throw new dn(r);return r}applyRedirectCreateUrlTree(e,i,n,r){let s=this.createSegmentGroup(e,i.root,n,r);return new fe(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let n={};return Object.entries(e).forEach(([r,s])=>{if(typeof s=="string"&&s.startsWith(":")){let a=s.substring(1);n[r]=i[a]}else n[r]=s}),n}createSegmentGroup(e,i,n,r){let s=this.createSegments(e,i.segments,n,r),o={};return Object.entries(i.children).forEach(([a,c])=>{o[a]=this.createSegmentGroup(e,c,n,r)}),new b(s,o)}createSegments(e,i,n,r){return i.map(s=>s.path.startsWith(":")?this.findPosParam(e,s,r):this.findOrReturn(s,n))}findPosParam(e,i,n){let r=n[i.path.substring(1)];if(!r)throw new M(4001,!1);return r}findOrReturn(e,i){let n=0;for(let r of i){if(r.path===e.path)return i.splice(n),r;n++}return e}},Or={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Iu(t,e,i,n,r){let s=jr(t,e,i);return s.matched?(n=iu(e,n),Ru(n,e,i,r).pipe(A(o=>o===!0?s:p({},Or)))):g(s)}function jr(t,e,i){if(e.path==="**")return Mu(i);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||i.length>0)?p({},Or):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||ba)(i,t,e);if(!r)return p({},Or);let s={};Object.entries(r.posParams??{}).forEach(([a,c])=>{s[a]=c.path});let o=r.consumed.length>0?p(p({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:o,positionalParamSegments:r.posParams??{}}}function Mu(t){return{matched:!0,parameters:t.length>0?gs(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function fs(t,e,i,n){return i.length>0&&Lu(t,i,n)?{segmentGroup:new b(e,Pu(n,new b(i,t.children))),slicedSegments:[]}:i.length===0&&Nu(t,i,n)?{segmentGroup:new b(t.segments,Ou(t,i,n,t.children)),slicedSegments:i}:{segmentGroup:new b(t.segments,t.children),slicedSegments:i}}function Ou(t,e,i,n){let r={};for(let s of i)if(fn(t,e,s)&&!n[te(s)]){let o=new b([],{});r[te(s)]=o}return p(p({},n),r)}function Pu(t,e){let i={};i[m]=e;for(let n of t)if(n.path===""&&te(n)!==m){let r=new b([],{});i[te(n)]=r}return i}function Lu(t,e,i){return i.some(n=>fn(t,e,n)&&te(n)!==m)}function Nu(t,e,i){return i.some(n=>fn(t,e,n))}function fn(t,e,i){return(t.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function _u(t,e,i,n){return te(t)!==n&&(n===m||!fn(e,i,t))?!1:jr(e,t,i).matched}function xu(t,e,i){return e.length===0&&!t.children[i]}var Pr=class{};function ku(t,e,i,n,r,s,o="emptyOnly"){return new Lr(t,e,i,n,r,o,s).recognize()}var Uu=31,Lr=class{constructor(e,i,n,r,s,o,a){this.injector=e,this.configLoader=i,this.rootComponentType=n,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new Mr(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new M(4002,`'${e.segmentGroup}'`)}recognize(){let e=fs(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(A(i=>{let n=new yt([],Object.freeze({}),Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,{},m,this.rootComponentType,null,{}),r=new z(n,i),s=new cn("",r),o=Ga(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),this.inheritParamsAndData(s._root,null),{state:s,tree:o}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,m).pipe(Te(n=>{if(n instanceof dn)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Ct?this.noMatchError(n):n}))}inheritParamsAndData(e,i){let n=e.value,r=xr(n,i,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(s=>this.inheritParamsAndData(s,n))}processSegmentGroup(e,i,n,r){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,i,n):this.processSegment(e,i,n,n.segments,r,!0).pipe(A(s=>s instanceof z?[s]:[]))}processChildren(e,i,n){let r=[];for(let s of Object.keys(n.children))s==="primary"?r.unshift(s):r.push(s);return j(r).pipe(ye(s=>{let o=n.children[s],a=su(i,s);return this.processSegmentGroup(e,a,o,s)}),Qr((s,o)=>(s.push(...o),s)),wn(null),Jr(),H(s=>{if(s===null)return ke(n);let o=ks(s);return Bu(o),g(o)}))}processSegment(e,i,n,r,s,o){return j(i).pipe(ye(a=>this.processSegmentAgainstRoute(a._injector??e,i,a,n,r,s,o).pipe(Te(c=>{if(c instanceof Ct)return g(null);throw c}))),ue(a=>!!a),Te(a=>{if(_s(a))return xu(n,r,s)?g(new Pr):ke(n);throw a}))}processSegmentAgainstRoute(e,i,n,r,s,o,a){return _u(n,r,s,o)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,n,s,o):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,n,s,o):ke(r):ke(r)}expandSegmentAgainstRouteUsingRedirect(e,i,n,r,s,o){let{matched:a,consumedSegments:c,positionalParamSegments:u,remainingSegments:l}=jr(i,r,s);if(!a)return ke(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Uu&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,u);return this.applyRedirects.lineralizeSegments(r,d).pipe(H(h=>this.processSegment(e,n,i,h.concat(l),o,!1)))}matchSegmentAgainstRoute(e,i,n,r,s){let o=Iu(i,n,r,e,this.urlSerializer);return n.path==="**"&&(i.children={}),o.pipe(W(a=>a.matched?(e=n._injector??e,this.getChildConfig(e,n,r).pipe(W(({routes:c})=>{let u=n._loadedInjector??e,{consumedSegments:l,remainingSegments:d,parameters:h}=a,S=new yt(l,h,Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,$u(n),te(n),n.component??n._loadedComponent??null,n,zu(n)),{segmentGroup:F,slicedSegments:x}=fs(i,l,d,c);if(x.length===0&&F.hasChildren())return this.processChildren(u,c,F).pipe(A(D=>D===null?null:new z(S,D)));if(c.length===0&&x.length===0)return g(new z(S,[]));let w=te(n)===s;return this.processSegment(u,c,F,x,w?m:s,!0).pipe(A(D=>new z(S,D instanceof z?[D]:[])))}))):ke(i)))}getChildConfig(e,i,n){return i.children?g({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?g({routes:i._loadedRoutes,injector:i._loadedInjector}):bu(e,i,n,this.urlSerializer).pipe(H(r=>r?this.configLoader.loadChildren(e,i).pipe(L(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):Tu(i))):g({routes:[],injector:e})}};function Bu(t){t.sort((e,i)=>e.value.outlet===m?-1:i.value.outlet===m?1:e.value.outlet.localeCompare(i.value.outlet))}function ju(t){let e=t.value.routeConfig;return e&&e.path===""}function ks(t){let e=[],i=new Set;for(let n of t){if(!ju(n)){e.push(n);continue}let r=e.find(s=>n.value.routeConfig===s.value.routeConfig);r!==void 0?(r.children.push(...n.children),i.add(r)):e.push(n)}for(let n of i){let r=ks(n.children);e.push(new z(n.value,r))}return e.filter(n=>!i.has(n))}function $u(t){return t.data||{}}function zu(t){return t.resolve||{}}function Vu(t,e,i,n,r,s){return H(o=>ku(t,e,i,n,o.extractedUrl,r,s).pipe(A(({state:a,tree:c})=>k(p({},o),{targetSnapshot:a,urlAfterRedirects:c}))))}function Gu(t,e){return H(i=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return g(i);let s=new Set(r.map(c=>c.route)),o=new Set;for(let c of s)if(!o.has(c))for(let u of Us(c))o.add(u);let a=0;return j(o).pipe(ye(c=>s.has(c)?Hu(c,n,t,e):(c.data=xr(c,c.parent,t).resolve,g(void 0))),L(()=>a++),Cn(1),H(c=>a===o.size?g(i):ve))})}function Us(t){let e=t.children.map(i=>Us(i)).flat();return[t,...e]}function Hu(t,e,i,n){let r=t.routeConfig,s=t._resolve;return r?.title!==void 0&&!Ms(r)&&(s[Et]=r.title),Wu(s,t,e,n).pipe(A(o=>(t._resolvedData=o,t.data=xr(t,t.parent,i).resolve,null)))}function Wu(t,e,i,n){let r=cr(t);if(r.length===0)return g({});let s={};return j(r).pipe(H(o=>qu(t[o],e,i,n).pipe(ue(),L(a=>{s[o]=a}))),Cn(1),Xr(s),Te(o=>_s(o)?ve:Ze(o)))}function qu(t,e,i,n){let r=St(e)??n,s=He(t,r),o=s.resolve?s.resolve(e,i):re(r,()=>s(e,i));return ge(o)}function ar(t){return W(e=>{let i=t(e);return i?j(i).pipe(A(()=>e)):g(e)})}var Bs=(()=>{let e=class e{buildTitle(n){let r,s=n.root;for(;s!==void 0;)r=this.getResolvedTitleForRoute(s)??r,s=s.children.find(o=>o.outlet===m);return r}getResolvedTitleForRoute(n){return n.data[Et]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:()=>f(Zu),providedIn:"root"});let t=e;return t})(),Zu=(()=>{let e=class e extends Bs{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(y(us))},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),$r=new I("",{providedIn:"root",factory:()=>({})}),zr=new I(""),Yu=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=f(Pn)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return g(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=ge(n.loadComponent()).pipe(A(js),L(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),Me(()=>{this.componentLoaders.delete(n)})),s=new Dn(r,()=>new De).pipe(mn());return this.componentLoaders.set(n,s),s}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return g({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=Ku(r,this.compiler,n,this.onLoadEndListener).pipe(Me(()=>{this.childrenLoaders.delete(r)})),a=new Dn(o,()=>new De).pipe(mn());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ku(t,e,i,n){return ge(t.loadChildren()).pipe(A(js),H(r=>r instanceof li||Array.isArray(r)?g(r):j(e.compileModuleAsync(r))),A(r=>{n&&n(t);let s,o,a=!1;return Array.isArray(r)?(o=r,a=!0):(s=r.create(i).injector,o=s.get(zr,[],{optional:!0,self:!0}).flat()),{routes:o.map(Br),injector:s}}))}function Xu(t){return t&&typeof t=="object"&&"default"in t}function js(t){return Xu(t)?t.default:t}var Vr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:()=>f(Ju),providedIn:"root"});let t=e;return t})(),Ju=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Qu=new I("");var ec=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new De,this.transitionAbortSubject=new De,this.configLoader=f(Yu),this.environmentInjector=f(Pe),this.urlSerializer=f(_r),this.rootContexts=f(hn),this.location=f(Qe),this.inputBindingEnabled=f(Ur,{optional:!0})!==null,this.titleStrategy=f(Bs),this.options=f($r,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=f(Vr),this.createViewTransition=f(Qu,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>g(void 0),this.rootComponentType=null;let n=s=>this.events.next(new vr(s)),r=s=>this.events.next(new yr(s));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(k(p(p({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,s){return this.transitions=new G({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ht,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ae(o=>o.id!==0),A(o=>k(p({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),W(o=>{this.currentTransition=o;let a=!1,c=!1;return g(o).pipe(L(u=>{this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?k(p({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),W(u=>{let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let h="";return this.events.next(new Re(u.id,this.urlSerializer.serialize(u.rawUrl),h,fr.IgnoredSameUrlNavigation)),u.resolve(null),ve}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return g(u).pipe(W(h=>{let S=this.transitions?.getValue();return this.events.next(new gt(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),S!==this.transitions?.getValue()?ve:Promise.resolve(h)}),Vu(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),L(h=>{o.targetSnapshot=h.targetSnapshot,o.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=k(p({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let S=new on(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(S)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:h,extractedUrl:S,source:F,restoredState:x,extras:w}=u,D=new gt(h,this.urlSerializer.serialize(S),F,x);this.events.next(D);let V=Ts(this.rootComponentType).snapshot;return this.currentTransition=o=k(p({},u),{targetSnapshot:V,urlAfterRedirects:S,extras:k(p({},w),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=S,g(o)}else{let h="";return this.events.next(new Re(u.id,this.urlSerializer.serialize(u.extractedUrl),h,fr.IgnoredByUrlHandlingStrategy)),u.resolve(null),ve}}),L(u=>{let l=new pr(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),A(u=>(this.currentTransition=o=k(p({},u),{guards:au(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),o)),Du(this.environmentInjector,u=>this.events.next(u)),L(u=>{if(o.guardsResult=u.guardsResult,ze(u.guardsResult))throw Ps(this.urlSerializer,u.guardsResult);let l=new gr(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),ae(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",K.GuardRejected),!1)),ar(u=>{if(u.guards.canActivateChecks.length)return g(u).pipe(L(l=>{let d=new mr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),W(l=>{let d=!1;return g(l).pipe(Gu(this.paramsInheritanceStrategy,this.environmentInjector),L({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",K.NoDataFromResolver)}}))}),L(l=>{let d=new Dr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),ar(u=>{let l=d=>{let h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(L(S=>{d.component=S}),A(()=>{})));for(let S of d.children)h.push(...l(S));return h};return vn(l(u.targetSnapshot.root)).pipe(wn(null),Ie(1))}),ar(()=>this.afterPreactivation()),W(()=>{let{currentSnapshot:u,targetSnapshot:l}=o,d=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return d?j(d).pipe(A(()=>o)):g(o)}),A(u=>{let l=Qa(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=o=k(p({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,o}),L(()=>{this.events.next(new Dt)}),ou(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),Ie(1),L({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new be(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),ti(this.transitionAbortSubject.pipe(L(u=>{throw u}))),Me(()=>{!a&&!c&&this.cancelNavigationTransition(o,"",K.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Te(u=>{if(c=!0,Ns(u))this.events.next(new pe(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode)),nu(u)?this.events.next(new vt(u.url)):o.resolve(!1);else{this.events.next(new mt(o.id,this.urlSerializer.serialize(o.extractedUrl),u,o.targetSnapshot??void 0));try{o.resolve(n.errorHandler(u))}catch(l){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(l)}}return ve}))}))}cancelNavigationTransition(n,r,s){let o=new pe(n.id,this.urlSerializer.serialize(n.extractedUrl),r,s);this.events.next(o),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function tc(t){return t!==ht}var nc=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:()=>f(rc),providedIn:"root"});let t=e;return t})(),Nr=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},rc=(()=>{let e=class e extends Nr{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Fn(e)))(s||e)}})(),e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),$s=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:()=>f(ic),providedIn:"root"});let t=e;return t})(),ic=(()=>{let e=class e extends $s{constructor(){super(...arguments),this.location=f(Qe),this.urlSerializer=f(_r),this.options=f($r,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=f(Vr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new fe,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ts(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof gt)this.stateMemento=this.createStateMemento();else if(n instanceof Re)this.rawUrlTree=r.initialUrl;else if(n instanceof on){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(s,r)}}else n instanceof Dt?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):n instanceof pe&&(n.code===K.GuardRejected||n.code===K.NoDataFromResolver)?this.restoreHistory(r):n instanceof mt?this.restoreHistory(r,!0):n instanceof be&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let s=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(s)||r.extras.replaceUrl){let o=this.browserPageId,a=p(p({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(s,"",a)}else{let o=p(p({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Fn(e)))(s||e)}})(),e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),lt=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(lt||{});function sc(t,e){t.events.pipe(ae(i=>i instanceof be||i instanceof pe||i instanceof mt||i instanceof Re),A(i=>i instanceof be||i instanceof Re?lt.COMPLETE:(i instanceof pe?i.code===K.Redirect||i.code===K.SupersededByNewNavigation:!1)?lt.REDIRECTING:lt.FAILED),ae(i=>i!==lt.REDIRECTING),Ie(1)).subscribe(()=>{e()})}function oc(t){throw t}var ac={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},uc={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},zs=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=f(It),this.stateManager=f($s),this.options=f($r,{optional:!0})||{},this.pendingTasks=f(Tt),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=f(ec),this.urlSerializer=f(_r),this.location=f(Qe),this.urlHandlingStrategy=f(Vr),this._events=new De,this.errorHandler=this.options.errorHandler||oc,this.navigated=!1,this.routeReuseStrategy=f(nc),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=f(zr,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!f(Ur,{optional:!0}),this.eventsSubscription=new Wr,this.isNgZoneEnabled=f(q)instanceof q&&q.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof pe&&r.code!==K.Redirect&&r.code!==K.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof be)this.navigated=!0;else if(r instanceof vt){let a=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),c={info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||tc(s.source)};this.scheduleNavigation(a,ht,null,c,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}lc(r)&&this._events.next(r)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ht,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,s){let o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let u=p({},s);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let c=this.parseUrl(n);this.scheduleNavigation(c,r,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Br),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:u}=r,l=u?this.currentUrlTree.fragment:a,d=null;switch(c){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 S=s?s.snapshot:this.routerState.snapshot.root;h=As(S)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),h=this.currentUrlTree.root}return bs(h,n,d,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){let s=ze(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,ht,null,r)}navigate(n,r={skipLocationChange:!1}){return cc(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let s;if(r===!0?s=p({},ac):r===!1?s=p({},uc):s=r,ze(n))return cs(this.currentUrlTree,n,s);let o=this.parseUrl(n);return cs(this.currentUrlTree,o,s)}removeEmptyProps(n){return Object.entries(n).reduce((r,[s,o])=>(o!=null&&(r[s]=o),r),{})}scheduleNavigation(n,r,s,o,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((h,S)=>{c=h,u=S});let d=this.pendingTasks.add();return sc(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(h=>Promise.reject(h))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function cc(t){for(let e=0;e<t.length;e++)if(t[e]==null)throw new M(4008,!1)}function lc(t){return!(t instanceof Dt)&&!(t instanceof vt)}var dc=new I("");function cd(t,...e){return Oe([{provide:zr,multi:!0,useValue:t},[],{provide:Ve,useFactory:hc,deps:[zs]},{provide:Ot,multi:!0,useFactory:fc},e.map(i=>i.\u0275providers)])}function hc(t){return t.routerState.root}function fc(){let t=f(Tn);return e=>{let i=t.get(Je);if(e!==i.components[0])return;let n=t.get(zs),r=t.get(pc);t.get(gc)===1&&n.initialNavigation(),t.get(mc,null,En.Optional)?.setUpPreloading(),t.get(dc,null,En.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var pc=new I("",{factory:()=>new De}),gc=new I("",{providedIn:"root",factory:()=>1});var mc=new I("");export{_e as a,Ti as b,B as c,Ii as d,Ys as e,Bc as f,jc as g,$c as h,bo as i,Ro as j,To as k,jn as l,xe as m,ko as n,Ki as o,Qc as p,el as q,Qn as r,er as s,Yt as t,ts as u,Il as v,Ml as w,Ve as x,Ja as y,Ku as z,zs as A,cd as B};
|