p3x-redis-ui-material
Version:
💿 P3X Redis UI triple frontend — Angular + React/MUI + Vue/Vuetify with 54 languages, 7 themes, Socket.IO, desktop notifications, and full feature parity
1 lines • 75.9 kB
JavaScript
import{$ as q,B as Te,D as ue,Ea as Lr,Fa as xr,G as Er,Ga as jr,H as G,Ha as Ye,I as Dt,Ia as kr,Ja as $r,Ka as xt,N as Ar,O as P,P as Qe,Pa as zr,Q as L,R as S,Ra as Fr,Rb as Vr,S as Mr,Sa as jt,Sb as Q,Ta as qr,U as C,Ua as Hr,V as Tr,W as Dr,Wb as Gr,X as E,Y as W,Z as h,Zb as kt,a as Rr,aa as A,b as Cr,c as Sr,cc as Wr,d as ce,e as N,eb as Br,ec as Qr,fa as Nt,fc as $t,ga as Nr,gc as Kr,h as _,ha as _t,hc as de,i as b,ia as _r,ic as Yr,j as g,ja as le,k as wr,ka as Or,l as At,m as br,ma as Ot,n as I,na as Ke,o as Mt,p as k,pa as Ut,pc as zt,q as Tt,qa as Pt,r as Ir,s as Ge,sc as Zr,ta as Ur,x as V,ya as Pr,z as We,za as Lt}from"./chunk-KQUCMSSK.js";import{a as l,b as D,h as m}from"./chunk-O7S4L63H.js";var f="primary",ze=Symbol("RouteTitle"),Vt=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){let t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function re(e){return new Vt(e)}function Ft(e,n,t){for(let r=0;r<e.length;r++){let i=e[r],o=n[r];if(i[0]===":")t[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function an(e,n,t){let r=t.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>e.length||t.pathMatch==="full"&&(n.hasChildren()||r.length<e.length))return null;let c={},u=e.slice(0,r.length);return Ft(r,u,c)?{consumed:u,posParams:c}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),s=r.slice(i+1);if(o.length+s.length>e.length||t.pathMatch==="full"&&n.hasChildren()&&t.path!=="**")return null;let a={};return!Ft(o,e.slice(0,o.length),a)||!Ft(s,e.slice(e.length-s.length),a)?null:{consumed:e,posParams:a}}function rt(e){return new Promise((n,t)=>{e.pipe(G()).subscribe({next:r=>n(r),error:r=>t(r)})})}function ii(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;++t)if(!$(e[t],n[t]))return!1;return!0}function $(e,n){let t=e?Gt(e):void 0,r=n?Gt(n):void 0;if(!t||!r||t.length!=r.length)return!1;let i;for(let o=0;o<t.length;o++)if(i=t[o],!sn(e[i],n[i]))return!1;return!0}function Gt(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function sn(e,n){if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;let t=[...e].sort(),r=[...n].sort();return t.every((i,o)=>r[o]===i)}else return e===n}function oi(e){return e.length>0?e[e.length-1]:null}function ie(e){return At(e)?e:Fr(e)?b(Promise.resolve(e)):g(e)}function cn(e){return At(e)?rt(e):Promise.resolve(e)}var ai={exact:dn,subset:hn},un={exact:si,subset:ci,ignored:()=>!0},ln={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Wt={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Jr(e,n,t){return ai[t.paths](e.root,n.root,t.matrixParams)&&un[t.queryParams](e.queryParams,n.queryParams)&&!(t.fragment==="exact"&&e.fragment!==n.fragment)}function si(e,n){return $(e,n)}function dn(e,n,t){if(!te(e.segments,n.segments)||!Xe(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!e.children[r]||!dn(e.children[r],n.children[r],t))return!1;return!0}function ci(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>sn(e[t],n[t]))}function hn(e,n,t){return fn(e,n,n.segments,t)}function fn(e,n,t,r){if(e.segments.length>t.length){let i=e.segments.slice(0,t.length);return!(!te(i,t)||n.hasChildren()||!Xe(i,t,r))}else if(e.segments.length===t.length){if(!te(e.segments,t)||!Xe(e.segments,t,r))return!1;for(let i in n.children)if(!e.children[i]||!hn(e.children[i],n.children[i],r))return!1;return!0}else{let i=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!te(e.segments,i)||!Xe(e.segments,i,r)||!e.children[f]?!1:fn(e.children[f],n,o,r)}}function Xe(e,n,t){return n.every((r,i)=>un[t](e[i].parameters,r.parameters))}var U=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap??=re(this.queryParams),this._queryParamMap}toString(){return di.serialize(this)}},v=class{segments;children;parent=null;constructor(n,t){this.segments=n,this.children=t,Object.values(t).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return et(this)}},K=class{path;parameters;_parameterMap;constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap??=re(this.parameters),this._parameterMap}toString(){return gn(this)}};function ui(e,n){return te(e,n)&&e.every((t,r)=>$(t.parameters,n[r].parameters))}function te(e,n){return e.length!==n.length?!1:e.every((t,r)=>t.path===n[r].path)}function li(e,n){let t=[];return Object.entries(e.children).forEach(([r,i])=>{r===f&&(t=t.concat(n(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==f&&(t=t.concat(n(i,r)))}),t}var oe=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:()=>new B,providedIn:"root"})}return e})(),B=class{parse(n){let t=new Kt(n);return new U(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){let t=`/${De(n.root,!0)}`,r=pi(n.queryParams),i=typeof n.fragment=="string"?`#${hi(n.fragment)}`:"";return`${t}${r}${i}`}},di=new B;function et(e){return e.segments.map(n=>gn(n)).join("/")}function De(e,n){if(!e.hasChildren())return et(e);if(n){let t=e.children[f]?De(e.children[f],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==f&&r.push(`${i}:${De(o,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}else{let t=li(e,(r,i)=>i===f?[De(e.children[f],!1)]:[`${i}:${De(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[f]!=null?`${et(e)}/${t[0]}`:`${et(e)}/(${t.join("//")})`}}function pn(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ze(e){return pn(e).replace(/%3B/gi,";")}function hi(e){return encodeURI(e)}function Qt(e){return pn(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function tt(e){return decodeURIComponent(e)}function Xr(e){return tt(e.replace(/\+/g,"%20"))}function gn(e){return`${Qt(e.path)}${fi(e.parameters)}`}function fi(e){return Object.entries(e).map(([n,t])=>`;${Qt(n)}=${Qt(t)}`).join("")}function pi(e){let n=Object.entries(e).map(([t,r])=>Array.isArray(r)?r.map(i=>`${Ze(t)}=${Ze(i)}`).join("&"):`${Ze(t)}=${Ze(r)}`).filter(t=>t);return n.length?`?${n.join("&")}`:""}var gi=/^[^\/()?;#]+/;function qt(e){let n=e.match(gi);return n?n[0]:""}var vi=/^[^\/()?;=#]+/;function mi(e){let n=e.match(vi);return n?n[0]:""}var yi=/^[^=?&#]+/;function Ri(e){let n=e.match(yi);return n?n[0]:""}var Ci=/^[^&#]+/;function Si(e){let n=e.match(Ci);return n?n[0]:""}var Kt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new S(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1,n)),(t.length>0||Object.keys(r).length>0)&&(i[f]=new v(t,r)),i}parseSegment(){let n=qt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(n),new K(tt(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let t=mi(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){let i=qt(this.remaining);i&&(r=i,this.capture(r))}n[tt(t)]=tt(r)}parseQueryParam(n){let t=Ri(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){let s=Si(this.remaining);s&&(r=s,this.capture(r))}let i=Xr(t),o=Xr(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n,t){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=qt(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new S(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):n&&(s=f);let a=this.parseChildren(t+1);r[s??f]=Object.keys(a).length===1&&a[f]?a[f]:new v([],a),this.consumeOptional("//")}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new S(4011,!1)}};function vn(e){return e.segments.length>0?new v([],{[f]:e}):e}function mn(e){let n={};for(let[r,i]of Object.entries(e.children)){let o=mn(i);if(r===f&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let t=new v(e.segments,n);return wi(t)}function wi(e){if(e.numberOfChildren===1&&e.children[f]){let n=e.children[f];return new v(e.segments.concat(n.segments),n.children)}return e}function ve(e){return e instanceof U}function yn(e,n,t=null,r=null,i=new B){let o=Rn(e);return Cn(o,n,t,r,i)}function Rn(e){let n;function t(o){let s={};for(let c of o.children){let u=t(c);s[c.outlet]=u}let a=new v(o.url,s);return o===e&&(n=a),a}let r=t(e.root),i=vn(r);return n??i}function Cn(e,n,t,r,i){let o=e;for(;o.parent;)o=o.parent;if(n.length===0)return Ht(o,o,o,t,r,i);let s=bi(n);if(s.toRoot())return Ht(o,o,new v([],{}),t,r,i);let a=Ii(s,o,e),c=a.processChildren?_e(a.segmentGroup,a.index,s.commands):wn(a.segmentGroup,a.index,s.commands);return Ht(o,a.segmentGroup,c,t,r,i)}function nt(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Ue(e){return typeof e=="object"&&e!=null&&e.outlets}function en(e,n,t){e||="\u0275";let r=new U;return r.queryParams={[e]:n},t.parse(t.serialize(r)).queryParams[e]}function Ht(e,n,t,r,i,o){let s={};for(let[u,d]of Object.entries(r??{}))s[u]=Array.isArray(d)?d.map(p=>en(u,p,o)):en(u,d,o);let a;e===n?a=t:a=Sn(e,n,t);let c=vn(mn(a));return new U(c,s,i)}function Sn(e,n,t){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===n?r[i]=t:r[i]=Sn(o,n,t)}),new v(e.segments,r)}var it=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&nt(r[0]))throw new S(4003,!1);let i=r.find(Ue);if(i&&i!==oi(r))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function bi(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new it(!0,0,e);let n=0,t=!1,r=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?t=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new it(t,n,r)}var fe=class{segmentGroup;processChildren;index;constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}};function Ii(e,n,t){if(e.isAbsolute)return new fe(n,!0,0);if(!t)return new fe(n,!1,NaN);if(t.parent===null)return new fe(t,!0,0);let r=nt(e.commands[0])?0:1,i=t.segments.length-1+r;return Ei(t,i,e.numberOfDoubleDots)}function Ei(e,n,t){let r=e,i=n,o=t;for(;o>i;){if(o-=i,r=r.parent,!r)throw new S(4005,!1);i=r.segments.length}return new fe(r,!1,i-o)}function Ai(e){return Ue(e[0])?e[0].outlets:{[f]:e}}function wn(e,n,t){if(e??=new v([],{}),e.segments.length===0&&e.hasChildren())return _e(e,n,t);let r=Mi(e,n,t),i=t.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let o=new v(e.segments.slice(0,r.pathIndex),{});return o.children[f]=new v(e.segments.slice(r.pathIndex),e.children),_e(o,0,i)}else return r.match&&i.length===0?new v(e.segments,{}):r.match&&!e.hasChildren()?Yt(e,n,t):r.match?_e(e,0,i):Yt(e,n,t)}function _e(e,n,t){if(t.length===0)return new v(e.segments,{});{let r=Ai(t),i={};if(Object.keys(r).some(o=>o!==f)&&e.children[f]&&e.numberOfChildren===1&&e.children[f].segments.length===0){let o=_e(e.children[f],n,t);return new v(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=wn(e.children[o],n,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new v(e.segments,i)}}function Mi(e,n,t){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=t.length)return o;let s=e.segments[i],a=t[r];if(Ue(a))break;let c=`${a}`,u=r<t.length-1?t[r+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!rn(c,u,s))return o;r+=2}else{if(!rn(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Yt(e,n,t){let r=e.segments.slice(0,n),i=0;for(;i<t.length;){let o=t[i];if(Ue(o)){let c=Ti(o.outlets);return new v(r,c)}if(i===0&&nt(t[0])){let c=e.segments[n];r.push(new K(c.path,tn(t[0]))),i++;continue}let s=Ue(o)?o.outlets[f]:`${o}`,a=i<t.length-1?t[i+1]:null;s&&a&&nt(a)?(r.push(new K(s,tn(a))),i+=2):(r.push(new K(s,{})),i++)}return new v(r,{})}function Ti(e){let n={};return Object.entries(e).forEach(([t,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[t]=Yt(new v([],{}),0,r))}),n}function tn(e){let n={};return Object.entries(e).forEach(([t,r])=>n[t]=`${r}`),n}function rn(e,n,t){return e==t.path&&$(n,t.parameters)}var pe="imperative",R=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(R||{}),T=class{id;url;constructor(n,t){this.id=n,this.url=t}},Y=class extends T{type=R.NavigationStart;navigationTrigger;restoredState;constructor(n,t,r="imperative",i=null){super(n,t),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},j=class extends T{urlAfterRedirects;type=R.NavigationEnd;constructor(n,t,r){super(n,t),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},w=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(w||{}),me=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(me||{}),O=class extends T{reason;code;type=R.NavigationCancel;constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function bn(e){return e instanceof O&&(e.code===w.Redirect||e.code===w.SupersededByNewNavigation)}var z=class extends T{reason;code;type=R.NavigationSkipped;constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i}},ne=class extends T{error;target;type=R.NavigationError;constructor(n,t,r,i){super(n,t),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Pe=class extends T{urlAfterRedirects;state;type=R.RoutesRecognized;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ot=class extends T{urlAfterRedirects;state;type=R.GuardsCheckStart;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},at=class extends T{urlAfterRedirects;state;shouldActivate;type=R.GuardsCheckEnd;constructor(n,t,r,i,o){super(n,t),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},st=class extends T{urlAfterRedirects;state;type=R.ResolveStart;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ct=class extends T{urlAfterRedirects;state;type=R.ResolveEnd;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ut=class{route;type=R.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},lt=class{route;type=R.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},dt=class{snapshot;type=R.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ht=class{snapshot;type=R.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ft=class{snapshot;type=R.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},pt=class{snapshot;type=R.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ye=class{routerEvent;position;anchor;scrollBehavior;type=R.Scroll;constructor(n,t,r,i){this.routerEvent=n,this.position=t,this.anchor=r,this.scrollBehavior=i}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Re=class{},Le=class{},Ce=class{url;navigationBehaviorOptions;constructor(n,t){this.url=n,this.navigationBehaviorOptions=t}};function Di(e){return!(e instanceof Re)&&!(e instanceof Ce)&&!(e instanceof Le)}var gt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new ae(this.rootInjector)}},ae=(()=>{class e{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}onChildOutletCreated(t,r){let i=this.getOrCreateContext(t);i.outlet=r,this.contexts.set(t,i)}onChildOutletDestroyed(t){let r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new gt(this.rootInjector),this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(r){return new(r||e)(W(q))};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),vt=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){let t=Zt(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){let t=Zt(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){let t=Jt(n,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Jt(n,this._root).map(t=>t.value)}};function Zt(e,n){if(e===n.value)return n;for(let t of n.children){let r=Zt(e,t);if(r)return r}return null}function Jt(e,n){if(e===n.value)return[n];for(let t of n.children){let r=Jt(e,t);if(r.length)return r.unshift(n),r}return[]}var M=class{value;children;constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}};function he(e){let n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}var xe=class extends vt{snapshot;constructor(n,t){super(n),this.snapshot=t,sr(this,n)}toString(){return this.snapshot.toString()}};function In(e,n){let t=Ni(e,n),r=new N([new K("",{})]),i=new N({}),o=new N({}),s=new N({}),a=new N(""),c=new Z(r,i,s,a,o,f,e,t.root);return c.snapshot=t.root,new xe(new M(c,[]),t)}function Ni(e,n){let t={},r={},i={},s=new Se([],t,i,"",r,f,e,null,{},n);return new je("",new M(s,[]))}var Z=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,t,r,i,o,s,a,c){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(I(u=>u[ze]))??g(void 0),this.url=n,this.params=t,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(I(n=>re(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(I(n=>re(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function ar(e,n,t="emptyOnly"){let r,{routeConfig:i}=e;return n!==null&&(t==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:l(l({},n.params),e.params),data:l(l({},n.data),e.data),resolve:l(l(l(l({},e.data),n.data),i?.data),e._resolvedData)}:r={params:l({},e.params),data:l({},e.data),resolve:l(l({},e.data),e._resolvedData??{})},i&&An(i)&&(r.resolve[ze]=i.title),r}var Se=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[ze]}constructor(n,t,r,i,o,s,a,c,u,d){this.url=n,this.params=t,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u,this._environmentInjector=d}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??=re(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=re(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${t}')`}},je=class extends vt{url;constructor(n,t){super(t),this.url=n,sr(this,t)}toString(){return En(this._root)}};function sr(e,n){n.value._routerState=e,n.children.forEach(t=>sr(e,t))}function En(e){let n=e.children.length>0?` { ${e.children.map(En).join(", ")} } `:"";return`${e.value}${n}`}function Bt(e){if(e.snapshot){let n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,$(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),$(n.params,t.params)||e.paramsSubject.next(t.params),ii(n.url,t.url)||e.urlSubject.next(t.url),$(n.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Xt(e,n){let t=$(e.params,n.params)&&ui(e.url,n.url),r=!e.parent!=!n.parent;return t&&!r&&(!e.parent||Xt(e.parent,n.parent))}function An(e){return typeof e.title=="string"||e.title===null}var Mn=new E(""),cr=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new le;deactivateEvents=new le;attachEvents=new le;detachEvents=new le;routerOutletData=Gr();parentContexts=h(ae);location=h(xr);changeDetector=h(kt);inputBinder=h(Fe,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(t){if(t.name){let{firstChange:r,previousValue:i}=t.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=t;let i=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new er(t,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=xt({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ut]})}return e})(),er=class{route;childContexts;parent;outletData;constructor(n,t,r,i){this.route=n,this.childContexts=t,this.parent=r,this.outletData=i}get(n,t){return n===Z?this.route:n===ae?this.childContexts:n===Mn?this.outletData:this.parent.get(n,t)}},Fe=new E(""),ur=(()=>{class e{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:r}=t,i=Mt([r.queryParams,r.params,r.data]).pipe(P(([o,s,a],c)=>(a=l(l(l({},o),s),a),c===0?g(a):Promise.resolve(a)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(t);return}let s=Wr(r.component);if(!s){this.unsubscribeFromRouteData(t);return}for(let{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(t,i)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:e.\u0275fac})}return e})(),lr=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=kr({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Br(0,"router-outlet")},dependencies:[cr],encapsulation:2})}return e})();function dr(e){let n=e.children&&e.children.map(dr),t=n?D(l({},e),{children:n}):l({},e);return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==f&&(t.component=lr),t}function _i(e,n,t){let r=ke(e,n._root,t?t._root:void 0);return new xe(r,n)}function ke(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){let r=t.value;r._futureSnapshot=n.value;let i=Oi(e,n,t);return new M(r,i)}else{if(e.shouldAttach(n.value)){let o=e.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>ke(e,a)),s}}let r=Ui(n.value),i=n.children.map(o=>ke(e,o));return new M(r,i)}}function Oi(e,n,t){return n.children.map(r=>{for(let i of t.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return ke(e,r,i);return ke(e,r)})}function Ui(e){return new Z(new N(e.url),new N(e.params),new N(e.queryParams),new N(e.fragment),new N(e.data),e.outlet,e.component,e)}var we=class{redirectTo;navigationBehaviorOptions;constructor(n,t){this.redirectTo=n,this.navigationBehaviorOptions=t}},Tn="ngNavigationCancelingError";function mt(e,n){let{redirectTo:t,navigationBehaviorOptions:r}=ve(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Dn(!1,w.Redirect);return i.url=t,i.navigationBehaviorOptions=r,i}function Dn(e,n){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[Tn]=!0,t.cancellationCode=n,t}function Pi(e){return Nn(e)&&ve(e.url)}function Nn(e){return!!e&&e[Tn]}var tr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,t,r,i,o){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),Bt(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){let i=he(t);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,t,r){let i=n.value,o=t?t.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else o&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){let r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=he(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){let r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=he(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,t,r){let i=he(t);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new pt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new ht(n.value.snapshot))}activateRoutes(n,t,r){let i=n.value,o=t?t.value:null;if(Bt(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Bt(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},yt=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},ge=class{component;route;constructor(n,t){this.component=n,this.route=t}};function Li(e,n,t){let r=e._root,i=n?n._root:null;return Ne(r,i,t,[r.value])}function xi(e){let n=e.routeConfig?e.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:e,guards:n}}function Ie(e,n){let t=Symbol(),r=n.get(e,t);return r===t?typeof e=="function"&&!Dr(e)?e:n.get(e):r}function Ne(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=he(n);return e.children.forEach(s=>{ji(s,o[s.value.outlet],t,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Oe(a,t.getContext(s),i)),i}function ji(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=ki(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new yt(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Ne(e,n,a?a.children:null,r,i):Ne(e,n,t,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new ge(a.outlet.component,s))}else s&&Oe(n,a,i),i.canActivateChecks.push(new yt(r)),o.component?Ne(e,null,a?a.children:null,r,i):Ne(e,null,t,r,i);return i}function ki(e,n,t){if(typeof t=="function")return A(n._environmentInjector,()=>t(e,n));switch(t){case"pathParamsChange":return!te(e.url,n.url);case"pathParamsOrQueryParamsChange":return!te(e.url,n.url)||!$(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Xt(e,n)||!$(e.queryParams,n.queryParams);default:return!Xt(e,n)}}function Oe(e,n,t){let r=he(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?n?Oe(s,n.children.getContext(o),t):Oe(s,null,t):Oe(s,n,t)}),i.component?n&&n.outlet&&n.outlet.isActivated?t.canDeactivateChecks.push(new ge(n.outlet.component,i)):t.canDeactivateChecks.push(new ge(null,i)):t.canDeactivateChecks.push(new ge(null,i))}function qe(e){return typeof e=="function"}function $i(e){return typeof e=="boolean"}function zi(e){return e&&qe(e.canLoad)}function Fi(e){return e&&qe(e.canActivate)}function qi(e){return e&&qe(e.canActivateChild)}function Hi(e){return e&&qe(e.canDeactivate)}function Bi(e){return e&&qe(e.canMatch)}function _n(e){return e instanceof br||e?.name==="EmptyError"}var Je=Symbol("INITIAL_VALUE");function be(){return P(e=>Mt(e.map(n=>n.pipe(ue(1),Ar(Je)))).pipe(I(n=>{for(let t of n)if(t!==!0){if(t===Je)return Je;if(t===!1||Vi(t))return t}return!0}),V(n=>n!==Je),ue(1)))}function Vi(e){return ve(e)||e instanceof we}function On(e){return e.aborted?g(void 0).pipe(ue(1)):new Sr(n=>{let t=()=>{n.next(),n.complete()};return e.addEventListener("abort",t),()=>e.removeEventListener("abort",t)})}function Un(e){return Qe(On(e))}function Gi(e){return k(n=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?g(D(l({},n),{guardsResult:!0})):Wi(o,t,r).pipe(k(s=>s&&$i(s)?Qi(t,i,e):g(s)),I(s=>D(l({},n),{guardsResult:s})))})}function Wi(e,n,t){return b(e).pipe(k(r=>Xi(r.component,r.route,t,n)),G(r=>r!==!0,!0))}function Qi(e,n,t){return b(n).pipe(Te(r=>Ir(Yi(r.route.parent,t),Ki(r.route,t),Ji(e,r.path),Zi(e,r.route))),G(r=>r!==!0,!0))}function Ki(e,n){return e!==null&&n&&n(new ft(e)),g(!0)}function Yi(e,n){return e!==null&&n&&n(new dt(e)),g(!0)}function Zi(e,n){let t=n.routeConfig?n.routeConfig.canActivate:null;if(!t||t.length===0)return g(!0);let r=t.map(i=>Ge(()=>{let o=n._environmentInjector,s=Ie(i,o),a=Fi(s)?s.canActivate(n,e):A(o,()=>s(n,e));return ie(a).pipe(G())}));return g(r).pipe(be())}function Ji(e,n){let t=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>xi(o)).filter(o=>o!==null).map(o=>Ge(()=>{let s=o.guards.map(a=>{let c=o.node._environmentInjector,u=Ie(a,c),d=qi(u)?u.canActivateChild(t,e):A(c,()=>u(t,e));return ie(d).pipe(G())});return g(s).pipe(be())}));return g(i).pipe(be())}function Xi(e,n,t,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return g(!0);let o=i.map(s=>{let a=n._environmentInjector,c=Ie(s,a),u=Hi(c)?c.canDeactivate(e,n,t,r):A(a,()=>c(e,n,t,r));return ie(u).pipe(G())});return g(o).pipe(be())}function eo(e,n,t,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return g(!0);let s=o.map(a=>{let c=Ie(a,e),u=zi(c)?c.canLoad(n,t):A(e,()=>c(n,t)),d=ie(u);return i?d.pipe(Un(i)):d});return g(s).pipe(be(),Pn(r))}function Pn(e){return Cr(L(n=>{if(typeof n!="boolean")throw mt(e,n)}),I(n=>n===!0))}function to(e,n,t,r,i,o){let s=n.canMatch;if(!s||s.length===0)return g(!0);let a=s.map(c=>{let u=Ie(c,e),d=Bi(u)?u.canMatch(n,t,i):A(e,()=>u(n,t,i));return ie(d).pipe(Un(o))});return g(a).pipe(be(),Pn(r))}var H=class e extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,e.prototype)}},$e=class e extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,e.prototype)}};function ro(e){throw new S(4e3,!1)}function no(e){throw Dn(!1,w.GuardRejected)}var rr=class{urlSerializer;urlTree;constructor(n,t){this.urlSerializer=n,this.urlTree=t}lineralizeSegments(n,t){return m(this,null,function*(){let r=[],i=t.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[f])throw ro(`${n.redirectTo}`);i=i.children[f]}})}applyRedirectCommands(n,t,r,i,o){return m(this,null,function*(){let s=yield io(t,i,o);if(s instanceof U)throw new $e(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]==="/")throw new $e(a);return a})}applyRedirectCreateUrlTree(n,t,r,i){let o=this.createSegmentGroup(n,t.root,r,i);return new U(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=t[a]}else r[i]=o}),r}createSegmentGroup(n,t,r,i){let o=this.createSegments(n,t.segments,r,i),s={};return Object.entries(t.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,r,i)}),new v(o,s)}createSegments(n,t,r,i){return t.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,t,r){let i=r[t.path.substring(1)];if(!i)throw new S(4001,!1);return i}findOrReturn(n,t){let r=0;for(let i of t){if(i.path===n.path)return t.splice(r),i;r++}return n}};function io(e,n,t){if(typeof e=="string")return Promise.resolve(e);let r=e;return rt(ie(A(t,()=>r(n))))}function oo(e,n){return e.providers&&!e._injector&&(e._injector=Ye(e.providers,n,`Route: ${e.path}`)),e._injector??n}function x(e){return e.outlet||f}function ao(e,n){let t=e.filter(r=>x(r)===n);return t.push(...e.filter(r=>x(r)!==n)),t}var nr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ln(e){return{routeConfig:e.routeConfig,url:e.url,params:e.params,queryParams:e.queryParams,fragment:e.fragment,data:e.data,outlet:e.outlet,title:e.title,paramMap:e.paramMap,queryParamMap:e.queryParamMap}}function so(e,n,t,r,i,o,s){let a=xn(e,n,t);if(!a.matched)return g(a);let c=Ln(o(a));return r=oo(n,r),to(r,n,t,i,c,s).pipe(I(u=>u===!0?a:l({},nr)))}function xn(e,n,t){if(n.path==="")return n.pathMatch==="full"&&(e.hasChildren()||t.length>0)?l({},nr):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(n.matcher||an)(t,e,n);if(!i)return l({},nr);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?l(l({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function nn(e,n,t,r,i){return t.length>0&&lo(e,t,r,i)?{segmentGroup:new v(n,uo(r,new v(t,e.children))),slicedSegments:[]}:t.length===0&&ho(e,t,r)?{segmentGroup:new v(e.segments,co(e,t,r,e.children)),slicedSegments:t}:{segmentGroup:new v(e.segments,e.children),slicedSegments:t}}function co(e,n,t,r){let i={};for(let o of t)if(Ct(e,n,o)&&!r[x(o)]){let s=new v([],{});i[x(o)]=s}return l(l({},r),i)}function uo(e,n){let t={};t[f]=n;for(let r of e)if(r.path===""&&x(r)!==f){let i=new v([],{});t[x(r)]=i}return t}function lo(e,n,t,r){return t.some(i=>!Ct(e,n,i)||!(x(i)!==f)?!1:!(r!==void 0&&x(i)===r))}function ho(e,n,t){return t.some(r=>Ct(e,n,r))}function Ct(e,n,t){return(e.hasChildren()||n.length>0)&&t.pathMatch==="full"?!1:t.path===""}function fo(e,n,t){return n.length===0&&!e.children[t]}var ir=class{};function po(e,n,t,r,i,o,s="emptyOnly",a){return m(this,null,function*(){return new or(e,n,t,r,i,s,o,a).recognize()})}var go=31,or=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,t,r,i,o,s,a,c){this.injector=n,this.configLoader=t,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new rr(this.urlSerializer,this.urlTree)}noMatchError(n){return new S(4002,`'${n.segmentGroup}'`)}recognize(){return m(this,null,function*(){let n=nn(this.urlTree.root,[],[],this.config).segmentGroup,{children:t,rootSnapshot:r}=yield this.match(n),i=new M(r,t),o=new je("",i),s=yn(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}})}match(n){return m(this,null,function*(){let t=new Se([],Object.freeze({}),Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,n,f,t),rootSnapshot:t}}catch(r){if(r instanceof $e)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof H?this.noMatchError(r):r}})}processSegmentGroup(n,t,r,i,o){return m(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,t,r,o);let s=yield this.processSegment(n,t,r,r.segments,i,!0,o);return s instanceof M?[s]:[]})}processChildren(n,t,r,i){return m(this,null,function*(){let o=[];for(let c of Object.keys(r.children))c==="primary"?o.unshift(c):o.push(c);let s=[];for(let c of o){let u=r.children[c],d=ao(t,c),p=yield this.processSegmentGroup(n,d,u,c,i);s.push(...p)}let a=jn(s);return vo(a),a})}processSegment(n,t,r,i,o,s,a){return m(this,null,function*(){for(let c of t)try{return yield this.processSegmentAgainstRoute(c._injector??n,t,c,r,i,o,s,a)}catch(u){if(u instanceof H||_n(u))continue;throw u}if(fo(r,i,o))return new ir;throw new H(r)})}processSegmentAgainstRoute(n,t,r,i,o,s,a,c){return m(this,null,function*(){if(x(r)!==s&&(s===f||!Ct(i,o,r)))throw new H(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(n,i,t,r,o,s,c);throw new H(i)})}expandSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s,a){return m(this,null,function*(){let{matched:c,parameters:u,consumedSegments:d,positionalParamSegments:p,remainingSegments:y}=xn(t,i,o);if(!c)throw new H(t);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>go&&(this.allowRedirects=!1));let X=this.createSnapshot(n,i,o,u,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let F=yield this.applyRedirects.applyRedirectCommands(d,i.redirectTo,p,Ln(X),n),ee=yield this.applyRedirects.lineralizeSegments(i,F);return this.processSegment(n,r,t,ee.concat(y),s,!1,a)})}createSnapshot(n,t,r,i,o){let s=new Se(r,i,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,yo(t),x(t),t.component??t._loadedComponent??null,t,Ro(t),n),a=ar(s,o,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}matchSegmentAgainstRoute(n,t,r,i,o,s){return m(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=Ve=>this.createSnapshot(n,r,Ve.consumedSegments,Ve.parameters,s),c=yield rt(so(t,r,i,n,this.urlSerializer,a,this.abortSignal));if(r.path==="**"&&(t.children={}),!c?.matched)throw new H(t);n=r._injector??n;let{routes:u}=yield this.getChildConfig(n,r,i),d=r._loadedInjector??n,{parameters:p,consumedSegments:y,remainingSegments:X}=c,F=this.createSnapshot(n,r,y,p,s),{segmentGroup:ee,slicedSegments:Ae}=nn(t,y,X,u,o);if(Ae.length===0&&ee.hasChildren()){let Ve=yield this.processChildren(d,u,ee,F);return new M(F,Ve)}if(u.length===0&&Ae.length===0)return new M(F,[]);let Et=x(r)===o,Me=yield this.processSegment(d,u,ee,Ae,Et?f:o,!0,F);return new M(F,Me instanceof M?[Me]:[])})}getChildConfig(n,t,r){return m(this,null,function*(){if(t.children)return{routes:t.children,injector:n};if(t.loadChildren){if(t._loadedRoutes!==void 0){let o=t._loadedNgModuleFactory;return o&&!t._loadedInjector&&(t._loadedInjector=o.create(n).injector),{routes:t._loadedRoutes,injector:t._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield rt(eo(n,t,r,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,t);return t._loadedRoutes=o.routes,t._loadedInjector=o.injector,t._loadedNgModuleFactory=o.factory,o}throw no(t)}return{routes:[],injector:n}})}};function vo(e){e.sort((n,t)=>n.value.outlet===f?-1:t.value.outlet===f?1:n.value.outlet.localeCompare(t.value.outlet))}function mo(e){let n=e.value.routeConfig;return n&&n.path===""}function jn(e){let n=[],t=new Set;for(let r of e){if(!mo(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),t.add(i)):n.push(r)}for(let r of t){let i=jn(r.children);n.push(new M(r.value,i))}return n.filter(r=>!t.has(r))}function yo(e){return e.data||{}}function Ro(e){return e.resolve||{}}function Co(e,n,t,r,i,o,s){return k(a=>m(null,null,function*(){let{state:c,tree:u}=yield po(e,n,t,r,a.extractedUrl,i,o,s);return D(l({},a),{targetSnapshot:c,urlAfterRedirects:u})}))}function So(e){return k(n=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=n;if(!r.length)return g(n);let i=new Set(r.map(a=>a.route)),o=new Set;for(let a of i)if(!o.has(a))for(let c of kn(a))o.add(c);let s=0;return b(o).pipe(Te(a=>i.has(a)?wo(a,t,e):(a.data=ar(a,a.parent,e).resolve,g(void 0))),L(()=>s++),Dt(1),k(a=>s===o.size?g(n):_))})}function kn(e){let n=e.children.map(t=>kn(t)).flat();return[e,...n]}function wo(e,n,t){let r=e.routeConfig,i=e._resolve;return r?.title!==void 0&&!An(r)&&(i[ze]=r.title),Ge(()=>(e.data=ar(e,e.parent,t).resolve,bo(i,e,n).pipe(I(o=>(e._resolvedData=o,e.data=l(l({},e.data),o),null)))))}function bo(e,n,t){let r=Gt(e);if(r.length===0)return g({});let i={};return b(r).pipe(k(o=>Io(e[o],n,t).pipe(G(),L(s=>{if(s instanceof we)throw mt(new B,s);i[o]=s}))),Dt(1),I(()=>i),We(o=>_n(o)?_:wr(o)))}function Io(e,n,t){let r=n._environmentInjector,i=Ie(e,r),o=i.resolve?i.resolve(n,t):A(r,()=>i(n,t));return ie(o)}function on(e){return P(n=>{let t=e(n);return t?b(t).pipe(I(()=>n)):g(n)})}var hr=(()=>{class e{buildTitle(t){let r,i=t.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===f);return r}getResolvedTitleForRoute(t){return t.data[ze]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:()=>h($n),providedIn:"root"})}return e})(),$n=(()=>{class e extends hr{title;constructor(t){super(),this.title=t}updateTitle(t){let r=this.buildTitle(t);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(W(Zr))};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),se=new E("",{factory:()=>({})}),Ee=new E(""),St=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=h(Vr);loadComponent(t,r){return m(this,null,function*(){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=m(this,null,function*(){try{let o=yield cn(A(t,()=>r.loadComponent())),s=yield qn(Fn(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r)}});return this.componentLoaders.set(r,i),i})}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=m(this,null,function*(){try{let o=yield zn(r,this.compiler,t,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}fi