import{$ as vr,$a as Dr,A as U,Aa as Rr,B as ge,Ba as qt,Bb as Pr,C as fr,Ca as z,Cc as Br,D as ve,Ea as _t,H as X,J,Ja as Re,K as Ct,Ka as Sr,La as br,Lb as jr,M as me,Mc as Vr,N as tt,Na as Ir,Nc as Hr,Oa as et,P as pr,Pa as Ar,Pb as Nr,Rb as $r,Sa as Se,Sb as Lr,U as zt,V as H,X as ye,Y as gr,Yb as kr,a as h,b as D,bb as A,cb as Mr,da as mr,dc as zr,ea as N,ec as Fr,fa as yr,fc as qr,g as cr,gb as be,gc as _r,h as lr,ha as R,hb as Tr,hc as Ie,j as de,ja as b,k as fe,kc as Bt,l as B,la as I,lb as Er,lc as Vt,m as E,mb as Or,na as Cr,nb as Ur,oa as $,pa as Ce,pb as xr,q as V,qa as we,ra as g,s as O,sc as Ae,t as f,tc as Ht,u as yt,v as hr,w as dr,wa as wr,y as C,ya as Ft,z as pe,za as wt}from"./chunk-ZTECBSUL.js";var v="primary",Nt=Symbol("RouteTitle"),Oe=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let i=this.params[t];return Array.isArray(i)?i[0]:i}return null}getAll(t){if(this.has(t)){let i=this.params[t];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function at(e){return new Oe(e)}function Ln(e,t,i){let r=i.path.split("/");if(r.length>e.length||i.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let n={};for(let s=0;s<r.length;s++){let o=r[s],a=e[s];if(o[0]===":")n[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:n}}function kn(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;++i)if(!L(e[i],t[i]))return!1;return!0}function L(e,t){let i=e?Ue(e):void 0,r=t?Ue(t):void 0;if(!i||!r||i.length!=r.length)return!1;let n;for(let s=0;s<i.length;s++)if(n=i[s],!tn(e[n],t[n]))return!1;return!0}function Ue(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function tn(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let i=[...e].sort(),r=[...t].sort();return i.every((n,s)=>r[s]===n)}else return e===t}function en(e){return e.length>0?e[e.length-1]:null}function G(e){return hr(e)?e:Fr(e)?O(Promise.resolve(e)):f(e)}var zn={exact:nn,subset:sn},rn={exact:Fn,subset:qn,ignored:()=>!0};function Wr(e,t,i){return zn[i.paths](e.root,t.root,i.matrixParams)&&rn[i.queryParams](e.queryParams,t.queryParams)&&!(i.fragment==="exact"&&e.fragment!==t.fragment)}function Fn(e,t){return L(e,t)}function nn(e,t,i){if(!K(e.segments,t.segments)||!Qt(e.segments,t.segments,i)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!nn(e.children[r],t.children[r],i))return!1;return!0}function qn(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(i=>tn(e[i],t[i]))}function sn(e,t,i){return on(e,t,t.segments,i)}function on(e,t,i,r){if(e.segments.length>i.length){let n=e.segments.slice(0,i.length);return!(!K(n,i)||t.hasChildren()||!Qt(n,i,r))}else if(e.segments.length===i.length){if(!K(e.segments,i)||!Qt(e.segments,i,r))return!1;for(let n in t.children)if(!e.children[n]||!sn(e.children[n],t.children[n],r))return!1;return!0}else{let n=i.slice(0,e.segments.length),s=i.slice(e.segments.length);return!K(e.segments,n)||!Qt(e.segments,n,r)||!e.children[v]?!1:on(e.children[v],t,s,r)}}function Qt(e,t,i){return t.every((r,n)=>rn[i](e[n].parameters,r.parameters))}var q=class{constructor(t=new m([],{}),i={},r=null){this.root=t,this.queryParams=i,this.fragment=r}get queryParamMap(){return this._queryParamMap??=at(this.queryParams),this._queryParamMap}toString(){return Vn.serialize(this)}},m=class{constructor(t,i){this.segments=t,this.children=i,this.parent=null,Object.values(i).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Kt(this)}},Q=class{constructor(t,i){this.path=t,this.parameters=i}get parameterMap(){return this._parameterMap??=at(this.parameters),this._parameterMap}toString(){return un(this)}};function _n(e,t){return K(e,t)&&e.every((i,r)=>L(i.parameters,t[r].parameters))}function K(e,t){return e.length!==t.length?!1:e.every((i,r)=>i.path===t[r].path)}function Bn(e,t){let i=[];return Object.entries(e.children).forEach(([r,n])=>{r===v&&(i=i.concat(t(n,r)))}),Object.entries(e.children).forEach(([r,n])=>{r!==v&&(i=i.concat(t(n,r)))}),i}var ue=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=I({token:t,factory:()=>new Mt,providedIn:"root"});let e=t;return e})(),Mt=class{parse(t){let i=new Pe(t);return new q(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(t){let i=`/${Rt(t.root,!0)}`,r=Gn(t.queryParams),n=typeof t.fragment=="string"?`#${Hn(t.fragment)}`:"";return`${i}${r}${n}`}},Vn=new Mt;function Kt(e){return e.segments.map(t=>un(t)).join("/")}function Rt(e,t){if(!e.hasChildren())return Kt(e);if(t){let i=e.children[v]?Rt(e.children[v],!1):"",r=[];return Object.entries(e.children).forEach(([n,s])=>{n!==v&&r.push(`${n}:${Rt(s,!1)}`)}),r.length>0?`${i}(${r.join("//")})`:i}else{let i=Bn(e,(r,n)=>n===v?[Rt(e.children[v],!1)]:[`${n}:${Rt(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[v]!=null?`${Kt(e)}/${i[0]}`:`${Kt(e)}/(${i.join("//")})`}}function an(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Wt(e){return an(e).replace(/%3B/gi,";")}function Hn(e){return encodeURI(e)}function xe(e){return an(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Yt(e){return decodeURIComponent(e)}function Gr(e){return Yt(e.replace(/\+/g,"%20"))}function un(e){return`${xe(e.path)}${Wn(e.parameters)}`}function Wn(e){return Object.entries(e).map(([t,i])=>`;${xe(t)}=${xe(i)}`).join("")}function Gn(e){let t=Object.entries(e).map(([i,r])=>Array.isArray(r)?r.map(n=>`${Wt(i)}=${Wt(n)}`).join("&"):`${Wt(i)}=${Wt(r)}`).filter(i=>i);return t.length?`?${t.join("&")}`:""}var Qn=/^[^\/()?;#]+/;function De(e){let t=e.match(Qn);return t?t[0]:""}var Kn=/^[^\/()?;=#]+/;function Yn(e){let t=e.match(Kn);return t?t[0]:""}var Zn=/^[^=?&#]+/;function Xn(e){let t=e.match(Zn);return t?t[0]:""}var Jn=/^[^&#]+/;function ti(e){let t=e.match(Jn);return t?t[0]:""}var Pe=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(i).length>0)&&(r[v]=new m(t,i)),r}parseSegment(){let t=De(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(t),new Q(Yt(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let i=Yn(this.remaining);if(!i)return;this.capture(i);let r="";if(this.consumeOptional("=")){let n=De(this.remaining);n&&(r=n,this.capture(r))}t[Yt(i)]=Yt(r)}parseQueryParam(t){let i=Xn(this.remaining);if(!i)return;this.capture(i);let r="";if(this.consumeOptional("=")){let o=ti(this.remaining);o&&(r=o,this.capture(r))}let n=Gr(i),s=Gr(r);if(t.hasOwnProperty(n)){let o=t[n];Array.isArray(o)||(o=[o],t[n]=o),o.push(s)}else t[n]=s}parseParens(t){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=De(this.remaining),n=this.remaining[r.length];if(n!=="/"&&n!==")"&&n!==";")throw new b(4010,!1);let s;r.indexOf(":")>-1?(s=r.slice(0,r.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=v);let o=this.parseChildren();i[s]=Object.keys(o).length===1?o[v]:new m([],o),this.consumeOptional("//")}return i}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new b(4011,!1)}};function cn(e){return e.segments.length>0?new m([],{[v]:e}):e}function ln(e){let t={};for(let[r,n]of Object.entries(e.children)){let s=ln(n);if(r===v&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))t[o]=a;else(s.segments.length>0||s.hasChildren())&&(t[r]=s)}let i=new m(e.segments,t);return ei(i)}function ei(e){if(e.numberOfChildren===1&&e.children[v]){let t=e.children[v];return new m(e.segments.concat(t.segments),t.children)}return e}function Y(e){return e instanceof q}function ri(e,t,i=null,r=null){let n=hn(e);return dn(n,t,i,r)}function hn(e){let t;function i(s){let o={};for(let c of s.children){let u=i(c);o[c.outlet]=u}let a=new m(s.url,o);return s===e&&(t=a),a}let r=i(e.root),n=cn(r);return t??n}function dn(e,t,i,r){let n=e;for(;n.parent;)n=n.parent;if(t.length===0)return Me(n,n,n,i,r);let s=ni(t);if(s.toRoot())return Me(n,n,new m([],{}),i,r);let o=ii(s,n,e),a=o.processChildren?It(o.segmentGroup,o.index,s.commands):pn(o.segmentGroup,o.index,s.commands);return Me(n,o.segmentGroup,a,i,r)}function Zt(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Tt(e){return typeof e=="object"&&e!=null&&e.outlets}function Me(e,t,i,r,n){let s={};r&&Object.entries(r).forEach(([c,u])=>{s[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let o;e===t?o=i:o=fn(e,t,i);let a=cn(ln(o));return new q(a,s,n)}function fn(e,t,i){let r={};return Object.entries(e.children).forEach(([n,s])=>{s===t?r[n]=i:r[n]=fn(s,t,i)}),new m(e.segments,r)}var Xt=class{constructor(t,i,r){if(this.isAbsolute=t,this.numberOfDoubleDots=i,this.commands=r,t&&r.length>0&&Zt(r[0]))throw new b(4003,!1);let n=r.find(Tt);if(n&&n!==en(r))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function ni(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Xt(!0,0,e);let t=0,i=!1,r=e.reduce((n,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}),[...n,{outlets:a}]}if(s.segmentPath)return[...n,s.segmentPath]}return typeof s!="string"?[...n,s]:o===0?(s.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?i=!0:a===".."?t++:a!=""&&n.push(a))}),n):[...n,s]},[]);return new Xt(i,t,r)}var it=class{constructor(t,i,r){this.segmentGroup=t,this.processChildren=i,this.index=r}};function ii(e,t,i){if(e.isAbsolute)return new it(t,!0,0);if(!i)return new it(t,!1,NaN);if(i.parent===null)return new it(i,!0,0);let r=Zt(e.commands[0])?0:1,n=i.segments.length-1+r;return si(i,n,e.numberOfDoubleDots)}function si(e,t,i){let r=e,n=t,s=i;for(;s>n;){if(s-=n,r=r.parent,!r)throw new b(4005,!1);n=r.segments.length}return new it(r,!1,n-s)}function oi(e){return Tt(e[0])?e[0].outlets:{[v]:e}}function pn(e,t,i){if(e??=new m([],{}),e.segments.length===0&&e.hasChildren())return It(e,t,i);let r=ai(e,t,i),n=i.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let s=new m(e.segments.slice(0,r.pathIndex),{});return s.children[v]=new m(e.segments.slice(r.pathIndex),e.children),It(s,0,n)}else return r.match&&n.length===0?new m(e.segments,{}):r.match&&!e.hasChildren()?je(e,t,i):r.match?It(e,0,n):je(e,t,i)}function It(e,t,i){if(i.length===0)return new m(e.segments,{});{let r=oi(i),n={};if(Object.keys(r).some(s=>s!==v)&&e.children[v]&&e.numberOfChildren===1&&e.children[v].segments.length===0){let s=It(e.children[v],t,i);return new m(e.segments,s.children)}return Object.entries(r).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(n[s]=pn(e.children[s],t,o))}),Object.entries(e.children).forEach(([s,o])=>{r[s]===void 0&&(n[s]=o)}),new m(e.segments,n)}}function ai(e,t,i){let r=0,n=t,s={match:!1,pathIndex:0,commandIndex:0};for(;n<e.segments.length;){if(r>=i.length)return s;let o=e.segments[n],a=i[r];if(Tt(a))break;let c=`${a}`,u=r<i.length-1?i[r+1]:null;if(n>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Kr(c,u,o))return s;r+=2}else{if(!Kr(c,{},o))return s;r++}n++}return{match:!0,pathIndex:n,commandIndex:r}}function je(e,t,i){let r=e.segments.slice(0,t),n=0;for(;n<i.length;){let s=i[n];if(Tt(s)){let c=ui(s.outlets);return new m(r,c)}if(n===0&&Zt(i[0])){let c=e.segments[t];r.push(new Q(c.path,Qr(i[0]))),n++;continue}let o=Tt(s)?s.outlets[v]:`${s}`,a=n<i.length-1?i[n+1]:null;o&&a&&Zt(a)?(r.push(new Q(o,Qr(a))),n+=2):(r.push(new Q(o,{})),n++)}return new m(r,{})}function ui(e){let t={};return Object.entries(e).forEach(([i,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[i]=je(new m([],{}),0,r))}),t}function Qr(e){let t={};return Object.entries(e).forEach(([i,r])=>t[i]=`${r}`),t}function Kr(e,t,i){return e==i.path&&L(t,i.parameters)}var At="imperative",w=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}(w||{}),x=class{constructor(t,i){this.id=t,this.url=i}},ut=class extends x{constructor(t,i,r="imperative",n=null){super(t,i),this.type=w.NavigationStart,this.navigationTrigger=r,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},k=class extends x{constructor(t,i,r){super(t,i),this.urlAfterRedirects=r,this.type=w.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},T=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(T||{}),Jt=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Jt||{}),F=class extends x{constructor(t,i,r,n){super(t,i),this.reason=r,this.code=n,this.type=w.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},W=class extends x{constructor(t,i,r,n){super(t,i),this.reason=r,this.code=n,this.type=w.NavigationSkipped}},Et=class extends x{constructor(t,i,r,n){super(t,i),this.error=r,this.target=n,this.type=w.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},te=class extends x{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=w.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ne=class extends x{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=w.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$e=class extends x{constructor(t,i,r,n,s){super(t,i),this.urlAfterRedirects=r,this.state=n,this.shouldActivate=s,this.type=w.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Le=class extends x{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=w.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ke=class extends x{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=w.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ze=class{constructor(t){this.route=t,this.type=w.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Fe=class{constructor(t){this.route=t,this.type=w.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},qe=class{constructor(t){this.snapshot=t,this.type=w.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_e=class{constructor(t){this.snapshot=t,this.type=w.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Be=class{constructor(t){this.snapshot=t,this.type=w.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ve=class{constructor(t){this.snapshot=t,this.type=w.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ee=class{constructor(t,i,r){this.routerEvent=t,this.position=i,this.anchor=r,this.type=w.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},Ot=class{},ct=class{constructor(t,i){this.url=t,this.navigationBehaviorOptions=i}};function ci(e,t){return e.providers&&!e._injector&&(e._injector=Ur(e.providers,t,`Route: ${e.path}`)),e._injector??t}function j(e){return e.outlet||v}function li(e,t){let i=e.filter(r=>j(r)===t);return i.push(...e.filter(r=>j(r)!==t)),i}function $t(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let i=t.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var He=class{get injector(){return $t(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new ce(this.rootInjector),this.attachRef=null}},ce=(()=>{let t=class t{constructor(r){this.rootInjector=r,this.contexts=new Map}onChildOutletCreated(r,n){let s=this.getOrCreateContext(r);s.outlet=n,this.contexts.set(r,s)}onChildOutletDestroyed(r){let n=this.getContext(r);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let r=this.contexts;return this.contexts=new Map,r}onOutletReAttached(r){this.contexts=r}getOrCreateContext(r){let n=this.getContext(r);return n||(n=new He(this.rootInjector),this.contexts.set(r,n)),n}getContext(r){return this.contexts.get(r)||null}};t.\u0275fac=function(n){return new(n||t)(we(qt))},t.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),re=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let i=this.pathFromRoot(t);return i.length>1?i[i.length-2]:null}children(t){let i=We(t,this._root);return i?i.children.map(r=>r.value):[]}firstChild(t){let i=We(t,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(t){let i=Ge(t,this._root);return i.length<2?[]:i[i.length-2].children.map(n=>n.value).filter(n=>n!==t)}pathFromRoot(t){return Ge(t,this._root).map(i=>i.value)}};function We(e,t){if(e===t.value)return t;for(let i of t.children){let r=We(e,i);if(r)return r}return null}function Ge(e,t){if(e===t.value)return[t];for(let i of t.children){let r=Ge(e,i);if(r.length)return r.unshift(t),r}return[]}var M=class{constructor(t,i){this.value=t,this.children=i}toString(){return`TreeNode(${this.value})`}};function nt(e){let t={};return e&&e.children.forEach(i=>t[i.value.outlet]=i),t}var ne=class extends re{constructor(t,i){super(t),this.snapshot=i,rr(this,t)}toString(){return this.snapshot.toString()}};function gn(e){let t=hi(e),i=new E([new Q("",{})]),r=new E({}),n=new E({}),s=new E({}),o=new E(""),a=new Z(i,r,s,o,n,v,e,t.root);return a.snapshot=t.root,new ne(new M(a,[]),t)}function hi(e){let t={},i={},r={},n="",s=new st([],t,r,n,i,v,e,null,{});return new se("",new M(s,[]))}var Z=class{constructor(t,i,r,n,s,o,a,c){this.urlSubject=t,this.paramsSubject=i,this.queryParamsSubject=r,this.fragmentSubject=n,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(C(u=>u[Nt]))??f(void 0),this.url=t,this.params=i,this.queryParams=r,this.fragment=n,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(C(t=>at(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(C(t=>at(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function ie(e,t,i="emptyOnly"){let r,{routeConfig:n}=e;return t!==null&&(i==="always"||n?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:h(h({},t.params),e.params),data:h(h({},t.data),e.data),resolve:h(h(h(h({},e.data),t.data),n?.data),e._resolvedData)}:r={params:h({},e.params),data:h({},e.data),resolve:h(h({},e.data),e._resolvedData??{})},n&&mn(n)&&(r.resolve[Nt]=n.title),r}var st=class{get title(){return this.data?.[Nt]}constructor(t,i,r,n,s,o,a,c,u){this.url=t,this.params=i,this.queryParams=r,this.fragment=n,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??=at(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=at(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${i}')`}},se=class extends re{constructor(t,i){super(i),this.url=t,rr(this,i)}toString(){return vn(this._root)}};function rr(e,t){t.value._routerState=e,t.children.forEach(i=>rr(e,i))}function vn(e){let t=e.children.length>0?` { ${e.children.map(vn).join(", ")} } `:"";return`${e.value}${t}`}function Te(e){if(e.snapshot){let t=e.snapshot,i=e._futureSnapshot;e.snapshot=i,L(t.queryParams,i.queryParams)||e.queryParamsSubject.next(i.queryParams),t.fragment!==i.fragment&&e.fragmentSubject.next(i.fragment),L(t.params,i.params)||e.paramsSubject.next(i.params),kn(t.url,i.url)||e.urlSubject.next(i.url),L(t.data,i.data)||e.dataSubject.next(i.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Qe(e,t){let i=L(e.params,t.params)&&_n(e.url,t.url),r=!e.parent!=!t.parent;return i&&!r&&(!e.parent||Qe(e.parent,t.parent))}function mn(e){return typeof e.title=="string"||e.title===null}var di=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=v,this.activateEvents=new et,this.deactivateEvents=new et,this.attachEvents=new et,this.detachEvents=new et,this.parentContexts=g(ce),this.location=g(Tr),this.changeDetector=g(Bt),this.inputBinder=g(nr,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(r){if(r.name){let{firstChange:n,previousValue:s}=r.name;if(n)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(r){return this.parentContexts.getContext(r)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let r=this.parentContexts.getContext(this.name);r?.route&&(r.attachRef?this.attach(r.attachRef,r.route):this.activateWith(r.route,r.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();let r=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(r.instance),r}attach(r,n){this.activated=r,this._activatedRoute=n,this.location.insert(r.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(r.instance)}deactivate(){if(this.activated){let r=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(r)}}activateWith(r,n){if(this.isActivated)throw new b(4013,!1);this._activatedRoute=r;let s=this.location,a=r.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new Ke(r,c,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:u,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=Ft({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[_t]});let e=t;return e})(),Ke=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,i,r){this.route=t,this.childContexts=i,this.parent=r}get(t,i){return t===Z?this.route:t===ce?this.childContexts:this.parent.get(t,i)}},nr=new $("");function fi(e,t,i){let r=Ut(e,t._root,i?i._root:void 0);return new ne(r,t)}function Ut(e,t,i){if(i&&e.shouldReuseRoute(t.value,i.value.snapshot)){let r=i.value;r._futureSnapshot=t.value;let n=pi(e,t,i);return new M(r,n)}else{if(e.shouldAttach(t.value)){let s=e.retrieve(t.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=t.value,o.children=t.children.map(a=>Ut(e,a)),o}}let r=gi(t.value),n=t.children.map(s=>Ut(e,s));return new M(r,n)}}function pi(e,t,i){return t.children.map(r=>{for(let n of i.children)if(e.shouldReuseRoute(r.value,n.value.snapshot))return Ut(e,r,n);return Ut(e,r)})}function gi(e){return new Z(new E(e.url),new E(e.params),new E(e.queryParams),new E(e.fragment),new E(e.data),e.outlet,e.component,e)}var xt=class{constructor(t,i){this.redirectTo=t,this.navigationBehaviorOptions=i}},yn="ngNavigationCancelingError";function oe(e,t){let{redirectTo:i,navigationBehaviorOptions:r}=Y(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,n=Cn(!1,T.Redirect);return n.url=i,n.navigationBehaviorOptions=r,n}function Cn(e,t){let i=new Error(`NavigationCancelingError: ${e||""}`);return i[yn]=!0,i.cancellationCode=t,i}function vi(e){return wn(e)&&Y(e.url)}function wn(e){return!!e&&e[yn]}var mi=(e,t,i,r)=>C(n=>(new Ye(t,n.targetRouterState,n.currentRouterState,i,r).activate(e),n)),Ye=class{constructor(t,i,r,n,s){this.routeReuseStrategy=t,this.futureState=i,this.currState=r,this.forwardEvent=n,this.inputBindingEnabled=s}activate(t){let i=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,r,t),Te(this.futureState.root),this.activateChildRoutes(i,r,t)}deactivateChildRoutes(t,i,r){let n=nt(i);t.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,n[o],r),delete n[o]}),Object.values(n).forEach(s=>{this.deactivateRouteAndItsChildren(s,r)})}deactivateRoutes(t,i,r){let n=t.value,s=i?i.value:null;if(n===s)if(n.component){let o=r.getContext(n.outlet);o&&this.deactivateChildRoutes(t,i,o.children)}else this.deactivateChildRoutes(t,i,r);else s&&this.deactivateRouteAndItsChildren(i,r)}deactivateRouteAndItsChildren(t,i){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,i):this.deactivateRouteAndOutlet(t,i)}detachAndStoreRouteSubtree(t,i){let r=i.getContext(t.value.outlet),n=r&&t.value.component?r.children:i,s=nt(t);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,n);if(r&&r.outlet){let o=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:o,route:t,contexts:a})}}deactivateRouteAndOutlet(t,i){let r=i.getContext(t.value.outlet),n=r&&t.value.component?r.children:i,s=nt(t);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,n);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,i,r){let n=nt(i);t.children.forEach(s=>{this.activateRoutes(s,n[s.value.outlet],r),this.forwardEvent(new Ve(s.value.snapshot))}),t.children.length&&this.forwardEvent(new _e(t.value.snapshot))}activateRoutes(t,i,r){let n=t.value,s=i?i.value:null;if(Te(n),n===s)if(n.component){let o=r.getOrCreateContext(n.outlet);this.activateChildRoutes(t,i,o.children)}else this.activateChildRoutes(t,i,r);else if(n.component){let o=r.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let a=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.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),Te(a.route.value),this.activateChildRoutes(t,null,o.children)}else o.attachRef=null,o.route=n,o.outlet&&o.outlet.activateWith(n,o.injector),this.activateChildRoutes(t,null,o.children)}else this.activateChildRoutes(t,null,r)}},ae=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},ot=class{constructor(t,i){this.component=t,this.route=i}};function yi(e,t,i){let r=e._root,n=t?t._root:null;return St(r,n,i,[r.value])}function Ci(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function ht(e,t){let i=Symbol(),r=t.get(e,i);return r===i?typeof e=="function"&&!Cr(e)?e:t.get(e):r}function St(e,t,i,r,n={canDeactivateChecks:[],canActivateChecks:[]}){let s=nt(t);return e.children.forEach(o=>{wi(o,s[o.value.outlet],i,r.concat([o.value]),n),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>Dt(a,i.getContext(o),n)),n}function wi(e,t,i,r,n={canDeactivateChecks:[],canActivateChecks:[]}){let s=e.value,o=t?t.value:null,a=i?i.getContext(e.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let c=Ri(o,s,s.routeConfig.runGuardsAndResolvers);c?n.canActivateChecks.push(new ae(r)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?St(e,t,a?a.children:null,r,n):St(e,t,i,r,n),c&&a&&a.outlet&&a.outlet.isActivated&&n.canDeactivateChecks.push(new ot(a.outlet.component,o))}else o&&Dt(t,a,n),n.canActivateChecks.push(new ae(r)),s.component?St(e,null,a?a.children:null,r,n):St(e,null,i,r,n);return n}function Ri(e,t,i){if(typeof i=="function")return i(e,t);switch(i){case"pathParamsChange":return!K(e.url,t.url);case"pathParamsOrQueryParamsChange":return!K(e.url,t.url)||!L(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qe(e,t)||!L(e.queryParams,t.queryParams);case"paramsChange":default:return!Qe(e,t)}}function Dt(e,t,i){let r=nt(e),n=e.value;Object.entries(r).forEach(([s,o])=>{n.component?t?Dt(o,t.children.getContext(s),i):Dt(o,null,i):Dt(o,t,i)}),n.component?t&&t.outlet&&t.outlet.isActivated?i.canDeactivateChecks.push(new ot(t.outlet.component,n)):i.canDeactivateChecks.push(new ot(null,n)):i.canDeactivateChecks.push(new ot(null,n))}function Lt(e){return typeof e=="function"}function Si(e){return typeof e=="boolean"}function bi(e){return e&&Lt(e.canLoad)}function Ii(e){return e&&Lt(e.canActivate)}function Ai(e){return e&&Lt(e.canActivateChild)}function Di(e){return e&&Lt(e.canDeactivate)}function Mi(e){return e&&Lt(e.canMatch)}function Rn(e){return e instanceof dr||e?.name==="EmptyError"}var Gt=Symbol("INITIAL_VALUE");function lt(){return N(e=>pe(e.map(t=>t.pipe(tt(1),mr(Gt)))).pipe(C(t=>{for(let i of t)if(i!==!0){if(i===Gt)return Gt;if(i===!1||Ti(i))return i}return!0}),X(t=>t!==Gt),tt(1)))}function Ti(e){return Y(e)||e instanceof xt}function Ei(e,t){return U(i=>{let{targetSnapshot:r,currentSnapshot:n,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return o.length===0&&s.length===0?f(D(h({},i),{guardsResult:!0})):Oi(o,r,n,e).pipe(U(a=>a&&Si(a)?Ui(r,s,e,t):f(a)),C(a=>D(h({},i),{guardsResult:a})))})}function Oi(e,t,i,r){return O(e).pipe(U(n=>$i(n.component,n.route,i,t,r)),H(n=>n!==!0,!0))}function Ui(e,t,i,r){return O(t).pipe(Ct(n=>fr(Pi(n.route.parent,r),xi(n.route,r),Ni(e,n.path,i),ji(e,n.route,i))),H(n=>n!==!0,!0))}function xi(e,t){return e!==null&&t&&t(new Be(e)),f(!0)}function Pi(e,t){return e!==null&&t&&t(new qe(e)),f(!0)}function ji(e,t,i){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return f(!0);let n=r.map(s=>ve(()=>{let o=$t(t)??i,a=ht(s,o),c=Ii(a)?a.canActivate(t,e):z(o,()=>a(t,e));return G(c).pipe(H())}));return f(n).pipe(lt())}function Ni(e,t,i){let r=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(o=>Ci(o)).filter(o=>o!==null).map(o=>ve(()=>{let a=o.guards.map(c=>{let u=$t(o.node)??i,l=ht(c,u),p=Ai(l)?l.canActivateChild(r,e):z(u,()=>l(r,e));return G(p).pipe(H())});return f(a).pipe(lt())}));return f(s).pipe(lt())}function $i(e,t,i,r,n){let s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!s||s.length===0)return f(!0);let o=s.map(a=>{let c=$t(t)??n,u=ht(a,c),l=Di(u)?u.canDeactivate(e,t,i,r):z(c,()=>u(e,t,i,r));return G(l).pipe(H())});return f(o).pipe(lt())}function Li(e,t,i,r){let n=t.canLoad;if(n===void 0||n.length===0)return f(!0);let s=n.map(o=>{let a=ht(o,e),c=bi(a)?a.canLoad(t,i):z(e,()=>a(t,i));return G(c)});return f(s).pipe(lt(),Sn(r))}function Sn(e){return lr(R(t=>{if(typeof t!="boolean")throw oe(e,t)}),C(t=>t===!0))}function ki(e,t,i,r){let n=t.canMatch;if(!n||n.length===0)return f(!0);let s=n.map(o=>{let a=ht(o,e),c=Mi(a)?a.canMatch(t,i):z(e,()=>a(t,i));return G(c)});return f(s).pipe(lt(),Sn(r))}var Pt=class{constructor(t){this.segmentGroup=t||null}},jt=class extends Error{constructor(t){super(),this.urlTree=t}};function rt(e){return yt(new Pt(e))}function zi(e){return yt(new b(4e3,!1))}function Fi(e){return yt(Cn(!1,T.GuardRejected))}var Ze=class{constructor(t,i){this.urlSerializer=t,this.urlTree=i}lineralizeSegments(t,i){let r=[],n=i.root;for(;;){if(r=r.concat(n.segments),n.numberOfChildren===0)return f(r);if(n.numberOfChildren>1||!n.children[v])return zi(`${t.redirectTo}`);n=n.children[v]}}applyRedirectCommands(t,i,r,n,s){if(typeof i!="string"){let a=i,{queryParams:c,fragment:u,routeConfig:l,url:p,outlet:d,params:y,data:S,title:_}=n,P=z(s,()=>a({params:y,data:S,queryParams:c,fragment:u,routeConfig:l,url:p,outlet:d,title:_}));if(P instanceof q)throw new jt(P);i=P}let o=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),t,r);if(i[0]==="/")throw new jt(o);return o}applyRedirectCreateUrlTree(t,i,r,n){let s=this.createSegmentGroup(t,i.root,r,n);return new q(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(t,i){let r={};return Object.entries(t).forEach(([n,s])=>{if(typeof s=="string"&&s[0]===":"){let a=s.substring(1);r[n]=i[a]}else r[n]=s}),r}createSegmentGroup(t,i,r,n){let s=this.createSegments(t,i.segments,r,n),o={};return Object.entries(i.children).forEach(([a,c])=>{o[a]=this.createSegmentGroup(t,c,r,n)}),new m(s,o)}createSegments(t,i,r,n){return i.map(s=>s.path[0]===":"?this.findPosParam(t,s,n):this.findOrReturn(s,r))}findPosParam(t,i,r){let n=r[i.path.substring(1)];if(!n)throw new b(4001,!1);return n}findOrReturn(t,i){let r=0;for(let n of i){if(n.path===t.path)return i.splice(r),n;r++}return t}},Xe={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function qi(e,t,i,r,n){let s=bn(e,t,i);return s.matched?(r=ci(t,r),ki(r,t,i,n).pipe(C(o=>o===!0?s:h({},Xe)))):f(s)}function bn(e,t,i){if(t.path==="**")return _i(i);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||i.length>0)?h({},Xe):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let n=(t.matcher||Ln)(i,e,t);if(!n)return h({},Xe);let s={};Object.entries(n.posParams??{}).forEach(([a,c])=>{s[a]=c.path});let o=n.consumed.length>0?h(h({},s),n.consumed[n.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:n.consumed,remainingSegments:i.slice(n.consumed.length),parameters:o,positionalParamSegments:n.posParams??{}}}function _i(e){return{matched:!0,parameters:e.length>0?en(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function Yr(e,t,i,r){return i.length>0&&Hi(e,i,r)?{segmentGroup:new m(t,Vi(r,new m(i,e.children))),slicedSegments:[]}:i.length===0&&Wi(e,i,r)?{segmentGroup:new m(e.segments,Bi(e,i,r,e.children)),slicedSegments:i}:{segmentGroup:new m(e.segments,e.children),slicedSegments:i}}function Bi(e,t,i,r){let n={};for(let s of i)if(le(e,t,s)&&!r[j(s)]){let o=new m([],{});n[j(s)]=o}return h(h({},r),n)}function Vi(e,t){let i={};i[v]=t;for(let r of e)if(r.path===""&&j(r)!==v){let n=new m([],{});i[j(r)]=n}return i}function Hi(e,t,i){return i.some(r=>le(e,t,r)&&j(r)!==v)}function Wi(e,t,i){return i.some(r=>le(e,t,r))}function le(e,t,i){return(e.hasChildren()||t.length>0)&&i.pathMatch==="full"?!1:i.path===""}function Gi(e,t,i){return t.length===0&&!e.children[i]}var Je=class{};function Qi(e,t,i,r,n,s,o="emptyOnly"){return new tr(e,t,i,r,n,o,s).recognize()}var Ki=31,tr=class{constructor(t,i,r,n,s,o,a){this.injector=t,this.configLoader=i,this.rootComponentType=r,this.config=n,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new Ze(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new b(4002,`'${t.segmentGroup}'`)}recognize(){let t=Yr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(C(({children:i,rootSnapshot:r})=>{let n=new M(r,i),s=new se("",n),o=ri(r,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(t){let i=new st([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),v,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,v,i).pipe(C(r=>({children:r,rootSnapshot:i})),J(r=>{if(r instanceof jt)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Pt?this.noMatchError(r):r}))}processSegmentGroup(t,i,r,n,s){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,i,r,s):this.processSegment(t,i,r,r.segments,n,!0,s).pipe(C(o=>o instanceof M?[o]:[]))}processChildren(t,i,r,n){let s=[];for(let o of Object.keys(r.children))o==="primary"?s.unshift(o):s.push(o);return O(s).pipe(Ct(o=>{let a=r.children[o],c=li(i,o);return this.processSegmentGroup(t,c,a,o,n)}),vr((o,a)=>(o.push(...a),o)),me(null),gr(),U(o=>{if(o===null)return rt(r);let a=In(o);return Yi(a),f(a)}))}processSegment(t,i,r,n,s,o,a){return O(i).pipe(Ct(c=>this.processSegmentAgainstRoute(c._injector??t,i,c,r,n,s,o,a).pipe(J(u=>{if(u instanceof Pt)return f(null);throw u}))),H(c=>!!c),J(c=>{if(Rn(c))return Gi(r,n,s)?f(new Je):rt(r);throw c}))}processSegmentAgainstRoute(t,i,r,n,s,o,a,c){return j(r)!==o&&(o===v||!le(n,s,r))?rt(n):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,n,r,s,o,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,n,i,r,s,o,c):rt(n)}expandSegmentAgainstRouteUsingRedirect(t,i,r,n,s,o,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:p,remainingSegments:d}=bn(i,n,s);if(!c)return rt(i);typeof n.redirectTo=="string"&&n.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Ki&&(this.allowRedirects=!1));let y=new st(s,u,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Zr(n),j(n),n.component??n._loadedComponent??null,n,Xr(n)),S=ie(y,a,this.paramsInheritanceStrategy);y.params=Object.freeze(S.params),y.data=Object.freeze(S.data);let _=this.applyRedirects.applyRedirectCommands(l,n.redirectTo,p,y,t);return this.applyRedirects.lineralizeSegments(n,_).pipe(U(P=>this.processSegment(t,r,i,P.concat(d),o,!1,a)))}matchSegmentAgainstRoute(t,i,r,n,s,o){let a=qi(i,r,n,t,this.urlSerializer);return r.path==="**"&&(i.children={}),a.pipe(N(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,n).pipe(N(({routes:u})=>{let l=r._loadedInjector??t,{parameters:p,consumedSegments:d,remainingSegments:y}=c,S=new st(d,p,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Zr(r),j(r),r.component??r._loadedComponent??null,r,Xr(r)),_=ie(S,o,this.paramsInheritanceStrategy);S.params=Object.freeze(_.params),S.data=Object.freeze(_.data);let{segmentGroup:P,slicedSegments:mt}=Yr(i,d,y,u);if(mt.length===0&&P.hasChildren())return this.processChildren(l,u,P,S).pipe(C(kt=>new M(S,kt)));if(u.length===0&&mt.length===0)return f(new M(S,[]));let he=j(r)===s;return this.processSegment(l,u,P,mt,he?v:s,!0,S).pipe(C(kt=>new M(S,kt instanceof M?[kt]:[])))}))):rt(i)))}getChildConfig(t,i,r){return i.children?f({routes:i.children,injector:t}):i.loadChildren?i._loadedRoutes!==void 0?f({routes:i._loadedRoutes,injector:i._loadedInjector}):Li(t,i,r,this.urlSerializer).pipe(U(n=>n?this.configLoader.loadChildren(t,i).pipe(R(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):Fi(i))):f({routes:[],injector:t})}};function Yi(e){e.sort((t,i)=>t.value.outlet===v?-1:i.value.outlet===v?1:t.value.outlet.localeCompare(i.value.outlet))}function Zi(e){let t=e.value.routeConfig;return t&&t.path===""}function In(e){let t=[],i=new Set;for(let r of e){if(!Zi(r)){t.push(r);continue}let n=t.find(s=>r.value.routeConfig===s.value.routeConfig);n!==void 0?(n.children.push(...r.children),i.add(n)):t.push(r)}for(let r of i){let n=In(r.children);t.push(new M(r.value,n))}return t.filter(r=>!i.has(r))}function Zr(e){return e.data||{}}function Xr(e){return e.resolve||{}}function Xi(e,t,i,r,n,s){return U(o=>Qi(e,t,i,r,o.extractedUrl,n,s).pipe(C(({state:a,tree:c})=>D(h({},o),{targetSnapshot:a,urlAfterRedirects:c}))))}function Ji(e,t){return U(i=>{let{targetSnapshot:r,guards:{canActivateChecks:n}}=i;if(!n.length)return f(i);let s=new Set(n.map(c=>c.route)),o=new Set;for(let c of s)if(!o.has(c))for(let u of An(c))o.add(u);let a=0;return O(o).pipe(Ct(c=>s.has(c)?ts(c,r,e,t):(c.data=ie(c,c.parent,e).resolve,f(void 0))),R(()=>a++),ye(1),U(c=>a===o.size?f(i):V))})}function An(e){let t=e.children.map(i=>An(i)).flat();return[e,...t]}function ts(e,t,i,r){let n=e.routeConfig,s=e._resolve;return n?.title!==void 0&&!mn(n)&&(s[Nt]=n.title),es(s,e,t,r).pipe(C(o=>(e._resolvedData=o,e.data=ie(e,e.parent,i).resolve,null)))}function es(e,t,i,r){let n=Ue(e);if(n.length===0)return f({});let s={};return O(n).pipe(U(o=>rs(e[o],t,i,r).pipe(H(),R(a=>{if(a instanceof xt)throw oe(new Mt,a);s[o]=a}))),ye(1),pr(s),J(o=>Rn(o)?V:yt(o)))}function rs(e,t,i,r){let n=$t(t)??r,s=ht(e,n),o=s.resolve?s.resolve(t,i):z(n,()=>s(t,i));return G(o)}function Ee(e){return N(t=>{let i=e(t);return i?O(i).pipe(C(()=>t)):f(t)})}var Dn=(()=>{let t=class t{buildTitle(r){let n,s=r.root;for(;s!==void 0;)n=this.getResolvedTitleForRoute(s)??n,s=s.children.find(o=>o.outlet===v);return n}getResolvedTitleForRoute(r){return r.data[Nt]}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=I({token:t,factory:()=>g(ns),providedIn:"root"});let e=t;return e})(),ns=(()=>{let t=class t extends Dn{constructor(r){super(),this.title=r}updateTitle(r){let n=this.buildTitle(r);n!==void 0&&this.title.setTitle(n)}};t.\u0275fac=function(n){return new(n||t)(we(Vr))},t.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ir=new $("",{providedIn:"root",factory:()=>({})}),is=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=wr({type:t,selectors:[["ng-component"]],standalone:!0,features:[kr],decls:1,vars:0,template:function(n,s){n&1&&Pr(0,"router-outlet")},dependencies:[di],encapsulation:2});let e=t;return e})();function sr(e){let t=e.children&&e.children.map(sr),i=t?D(h({},e),{children:t}):h({},e);return!i.component&&!i.loadComponent&&(t||i.loadChildren)&&i.outlet&&i.outlet!==v&&(i.component=is),i}var or=new $(""),ss=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(Ie)}loadComponent(r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return f(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let n=G(r.loadComponent()).pipe(C(Mn),R(o=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=o}),zt(()=>{this.componentLoaders.delete(r)})),s=new fe(n,()=>new B).pipe(de());return this.componentLoaders.set(r,s),s}loadChildren(r,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return f({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=os(n,this.compiler,r,this.onLoadEndListener).pipe(zt(()=>{this.childrenLoaders.delete(n)})),a=new fe(o,()=>new B).pipe(de());return this.childrenLoaders.set(n,a),a}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function os(e,t,i,r){return G(e.loadChildren()).pipe(C(Mn),U(n=>n instanceof Or||Array.isArray(n)?f(n):O(t.compileModuleAsync(n))),C(n=>{r&&r(e);let s,o,a=!1;return Array.isArray(n)?(o=n,a=!0):(s=n.create(i).injector,o=s.get(or,[],{optional:!0,self:!0}).flat()),{routes:o.map(sr),injector:s}}))}function as(e){return e&&typeof e=="object"&&"default"in e}function Mn(e){return as(e)?e.default:e}var ar=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=I({token:t,factory:()=>g(us),providedIn:"root"});let e=t;return e})(),us=(()=>{let t=class t{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,n){return r}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),cs=new $("");var ls=new $(""),Tn=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new B,this.transitionAbortSubject=new B,this.configLoader=g(ss),this.environmentInjector=g(qt),this.urlSerializer=g(ue),this.rootContexts=g(ce),this.location=g(Ht),this.inputBindingEnabled=g(nr,{optional:!0})!==null,this.titleStrategy=g(Dn),this.options=g(ir,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(ar),this.createViewTransition=g(cs,{optional:!0}),this.navigationErrorHandler=g(ls,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>f(void 0),this.rootComponentType=null;let r=s=>this.events.next(new ze(s)),n=s=>this.events.next(new Fe(s));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=r}complete(){this.transitions?.complete()}handleNavigationRequest(r){let n=++this.navigationId;this.transitions?.next(D(h(h({},this.transitions.value),r),{id:n}))}setupNavigations(r,n,s){return this.transitions=new E({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:At,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(X(o=>o.id!==0),C(o=>D(h({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),N(o=>{let a=!1,c=!1;return f(o).pipe(N(u=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",T.SupersededByNewNavigation),V;this.currentTransition=o,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,targetBrowserUrl:typeof u.extras.browserUrl=="string"?this.urlSerializer.parse(u.extras.browserUrl):u.extras.browserUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?D(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!r.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=u.extras.onSameUrlNavigation??r.onSameUrlNavigation;if(!l&&p!=="reload"){let d="";return this.events.next(new W(u.id,this.urlSerializer.serialize(u.rawUrl),d,Jt.IgnoredSameUrlNavigation)),u.resolve(!1),V}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return f(u).pipe(N(d=>{let y=this.transitions?.getValue();return this.events.next(new ut(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),y!==this.transitions?.getValue()?V:Promise.resolve(d)}),Xi(this.environmentInjector,this.configLoader,this.rootComponentType,r.config,this.urlSerializer,this.paramsInheritanceStrategy),R(d=>{o.targetSnapshot=d.targetSnapshot,o.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=D(h({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let y=new te(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(y)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:d,extractedUrl:y,source:S,restoredState:_,extras:P}=u,mt=new ut(d,this.urlSerializer.serialize(y),S,_);this.events.next(mt);let he=gn(this.rootComponentType).snapshot;return this.currentTransition=o=D(h({},u),{targetSnapshot:he,urlAfterRedirects:y,extras:D(h({},P),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,f(o)}else{let d="";return this.events.next(new W(u.id,this.urlSerializer.serialize(u.extractedUrl),d,Jt.IgnoredByUrlHandlingStrategy)),u.resolve(!1),V}}),R(u=>{let l=new Ne(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),C(u=>(this.currentTransition=o=D(h({},u),{guards:yi(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),o)),Ei(this.environmentInjector,u=>this.events.next(u)),R(u=>{if(o.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw oe(this.urlSerializer,u.guardsResult);let l=new $e(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),X(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",T.GuardRejected),!1)),Ee(u=>{if(u.guards.canActivateChecks.length)return f(u).pipe(R(l=>{let p=new Le(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(p)}),N(l=>{let p=!1;return f(l).pipe(Ji(this.paramsInheritanceStrategy,this.environmentInjector),R({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(l,"",T.NoDataFromResolver)}}))}),R(l=>{let p=new ke(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(p)}))}),Ee(u=>{let l=p=>{let d=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(p.routeConfig).pipe(R(y=>{p.component=y}),C(()=>{})));for(let y of p.children)d.push(...l(y));return d};return pe(l(u.targetSnapshot.root)).pipe(me(null),tt(1))}),Ee(()=>this.afterPreactivation()),N(()=>{let{currentSnapshot:u,targetSnapshot:l}=o,p=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return p?O(p).pipe(C(()=>o)):f(o)}),C(u=>{let l=fi(r.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=o=D(h({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,o}),R(()=>{this.events.next(new Ot)}),mi(this.rootContexts,r.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),tt(1),R({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new k(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),yr(this.transitionAbortSubject.pipe(R(u=>{throw u}))),zt(()=>{!a&&!c&&this.cancelNavigationTransition(o,"",T.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),J(u=>{if(c=!0,wn(u))this.events.next(new F(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode)),vi(u)?this.events.next(new ct(u.url,u.navigationBehaviorOptions)):o.resolve(!1);else{let l=new Et(o.id,this.urlSerializer.serialize(o.extractedUrl),u,o.targetSnapshot??void 0);try{let p=z(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(p instanceof xt){let{message:d,cancellationCode:y}=oe(this.urlSerializer,p);this.events.next(new F(o.id,this.urlSerializer.serialize(o.extractedUrl),d,y)),this.events.next(new ct(p.redirectTo,p.navigationBehaviorOptions))}else{this.events.next(l);let d=r.errorHandler(u);o.resolve(!!d)}}catch(p){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(p)}}return V}))}))}cancelNavigationTransition(r,n,s){let o=new F(r.id,this.urlSerializer.serialize(r.extractedUrl),n,s);this.events.next(o),r.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let r=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return r.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function hs(e){return e!==At}var ds=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=I({token:t,factory:()=>g(fs),providedIn:"root"});let e=t;return e})(),er=class{shouldDetach(t){return!1}store(t,i){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,i){return t.routeConfig===i.routeConfig}},fs=(()=>{let t=class t extends er{};t.\u0275fac=(()=>{let r;return function(s){return(r||(r=Re(t)))(s||t)}})(),t.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),En=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=I({token:t,factory:()=>g(ps),providedIn:"root"});let e=t;return e})(),ps=(()=>{let t=class t extends En{constructor(){super(...arguments),this.location=g(Ht),this.urlSerializer=g(ue),this.options=g(ir,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(ar),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new q,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=gn(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(r){return this.location.subscribe(n=>{n.type==="popstate"&&r(n.url,n.state)})}handleRouterEvent(r,n){if(r instanceof ut)this.stateMemento=this.createStateMemento();else if(r instanceof W)this.rawUrlTree=n.initialUrl;else if(r instanceof te){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??s,n)}}else r instanceof Ot?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(n.targetBrowserUrl??this.rawUrlTree,n)):r instanceof F&&(r.code===T.GuardRejected||r.code===T.NoDataFromResolver)?this.restoreHistory(n):r instanceof Et?this.restoreHistory(n,!0):r instanceof k&&(this.lastSuccessfulId=r.id,this.currentPageId=this.browserPageId)}setBrowserUrl(r,n){let s=r instanceof q?this.urlSerializer.serialize(r):r;if(this.location.isCurrentPathEqualTo(s)||n.extras.replaceUrl){let o=this.browserPageId,a=h(h({},n.extras.state),this.generateNgRouterState(n.id,o));this.location.replaceState(s,"",a)}else{let o=h(h({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(r,n=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===r.finalUrl&&o===0&&(this.resetState(r),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(r),this.resetUrlToCurrentUrlTree())}resetState(r){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,r.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(r,n){return this.canceledNavigationResolution==="computed"?{navigationId:r,\u0275routerPageId:n}:{navigationId:r}}};t.\u0275fac=(()=>{let r;return function(s){return(r||(r=Re(t)))(s||t)}})(),t.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),bt=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(bt||{});function gs(e,t){e.events.pipe(X(i=>i instanceof k||i instanceof F||i instanceof Et||i instanceof W),C(i=>i instanceof k||i instanceof W?bt.COMPLETE:(i instanceof F?i.code===T.Redirect||i.code===T.SupersededByNewNavigation:!1)?bt.REDIRECTING:bt.FAILED),X(i=>i!==bt.REDIRECTING),tt(1)).subscribe(()=>{t()})}function vs(e){throw e}var ms={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ys={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},dt=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=g(zr),this.stateManager=g(En),this.options=g(ir,{optional:!0})||{},this.pendingTasks=g(Ir),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(Tn),this.urlSerializer=g(ue),this.location=g(Ht),this.urlHandlingStrategy=g(ar),this._events=new B,this.errorHandler=this.options.errorHandler||vs,this.navigated=!1,this.routeReuseStrategy=g(ds),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(or,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(nr,{optional:!0}),this.eventsSubscription=new cr,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:r=>{this.console.warn(r)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let r=this.navigationTransitions.events.subscribe(n=>{try{let s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof F&&n.code!==T.Redirect&&n.code!==T.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof k)this.navigated=!0;else if(n instanceof ct){let a=n.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(n.url,s.currentRawUrl),u=h({browserUrl:s.extras.browserUrl,info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:s.extras.replaceUrl||this.urlUpdateStrategy==="eager"||hs(s.source)},a);this.scheduleNavigation(c,At,null,u,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}ws(n)&&this._events.next(n)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(r)}resetRootComponentType(r){this.routerState.root.component=r,this.navigationTransitions.rootComponentType=r}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),At,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((r,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(r,"popstate",n)},0)})}navigateToSyncWithBrowser(r,n,s){let o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let u=h({},s);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let c=this.parseUrl(r);this.scheduleNavigation(c,n,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(r){this.config=r.map(sr),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(r,n={}){let{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:u}=n,l=u?this.currentUrlTree.fragment:a,p=null;switch(c??this.options.defaultQueryParamsHandling){case"merge":p=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=o||null}p!==null&&(p=this.removeEmptyProps(p));let d;try{let y=s?s.snapshot:this.routerState.snapshot.root;d=hn(y)}catch{(typeof r[0]!="string"||r[0][0]!=="/")&&(r=[]),d=this.currentUrlTree.root}return dn(d,r,p,l??null)}navigateByUrl(r,n={skipLocationChange:!1}){let s=Y(r)?r:this.parseUrl(r),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,At,null,n)}navigate(r,n={skipLocationChange:!1}){return Cs(r),this.navigateByUrl(this.createUrlTree(r,n),n)}serializeUrl(r){return this.urlSerializer.serialize(r)}parseUrl(r){try{return this.urlSerializer.parse(r)}catch{return this.urlSerializer.parse("/")}}isActive(r,n){let s;if(n===!0?s=h({},ms):n===!1?s=h({},ys):s=n,Y(r))return Wr(this.currentUrlTree,r,s);let o=this.parseUrl(r);return Wr(this.currentUrlTree,o,s)}removeEmptyProps(r){return Object.entries(r).reduce((n,[s,o])=>(o!=null&&(n[s]=o),n),{})}scheduleNavigation(r,n,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((d,y)=>{c=d,u=y});let p=this.pendingTasks.add();return gs(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:r,extras:o,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Cs(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new b(4008,!1)}function ws(e){return!(e instanceof Ot)&&!(e instanceof ct)}var Jr=(()=>{let t=class t{constructor(r,n,s,o,a,c){this.router=r,this.route=n,this.tabIndexAttribute=s,this.renderer=o,this.el=a,this.locationStrategy=c,this.href=null,this.onChanges=new B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let u=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=r.events.subscribe(l=>{l instanceof k&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(r){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",r)}ngOnChanges(r){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(r){r==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Y(r)?this.routerLinkInput=r:this.routerLinkInput=Array.isArray(r)?r:[r],this.setTabIndexIfNotOnNativeEl("0"))}onClick(r,n,s,o,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(r!==0||n||s||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let r=this.urlTree;this.href=r!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(r)):null;let n=this.href===null?null:Dr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(r,n){let s=this.renderer,o=this.el.nativeElement;n!==null?s.setAttribute(o,r,n):s.removeAttribute(o,r)}get urlTree(){return this.routerLinkInput===null?null:Y(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};t.\u0275fac=function(n){return new(n||t)(A(dt),A(Z),Sr("tabindex"),A(be),A(Se),A(Ae))},t.\u0275dir=Ft({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,s){n&1&&jr("click",function(a){return s.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&xr("target",s.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Vt],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Vt],replaceUrl:[2,"replaceUrl","replaceUrl",Vt],routerLink:"routerLink"},standalone:!0,features:[Er,_t]});let e=t;return e})(),ao=(()=>{let t=class t{get isActive(){return this._isActive}constructor(r,n,s,o,a){this.router=r,this.element=n,this.renderer=s,this.cdr=o,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new et,this.routerEventsSubscription=r.events.subscribe(c=>{c instanceof k&&this.update()})}ngAfterContentInit(){f(this.links.changes,f(null)).pipe(ge()).subscribe(r=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let r=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=O(r).pipe(ge()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(r){let n=Array.isArray(r)?r:r.split(" ");this.classes=n.filter(s=>!!s)}ngOnChanges(r){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let r=this.hasActiveLinks();this.classes.forEach(n=>{r?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),r&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==r&&(this._isActive=r,this.cdr.markForCheck(),this.isActiveChange.emit(r))})}isLinkActive(r){let n=Rs(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return s=>{let o=s.urlTree;return o?r.isActive(o,n):!1}}hasActiveLinks(){let r=this.isLinkActive(this.router);return this.link&&r(this.link)||this.links.some(r)}};t.\u0275fac=function(n){return new(n||t)(A(dt),A(Se),A(be),A(Bt),A(Jr,8))},t.\u0275dir=Ft({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,s,o){if(n&1&&Nr(o,Jr,5),n&2){let a;$r(a=Lr())&&(s.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[_t]});let e=t;return e})();function Rs(e){return!!e.paths}var On=new $(""),Ss=(()=>{let t=class t{constructor(r,n,s,o,a={}){this.urlSerializer=r,this.transitions=n,this.viewportScroller=s,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(r=>{r instanceof ut?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=r.navigationTrigger,this.restoredId=r.restoredState?r.restoredState.navigationId:0):r instanceof k?(this.lastId=r.id,this.scheduleScrollEvent(r,this.urlSerializer.parse(r.urlAfterRedirects).fragment)):r instanceof W&&r.code===Jt.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(r,this.urlSerializer.parse(r.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(r=>{r instanceof ee&&(r.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(r.position):r.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(r.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(r,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new ee(r,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};t.\u0275fac=function(n){Mr()},t.\u0275prov=I({token:t,factory:t.\u0275fac});let e=t;return e})();function uo(e,...t){return Rr([{provide:or,multi:!0,useValue:e},[],{provide:Z,useFactory:bs,deps:[dt]},{provide:qr,multi:!0,useFactory:As},t.map(i=>i.\u0275providers)])}function bs(e){return e.routerState.root}function Is(e,t){return{\u0275kind:e,\u0275providers:t}}function co(e={}){return Is(4,[{provide:On,useFactory:()=>{let i=g(Br),r=g(Ar),n=g(Tn),s=g(ue);return new Ss(s,n,i,r,e)}}])}function As(){let e=g(br);return t=>{let i=e.get(_r);if(t!==i.components[0])return;let r=e.get(dt),n=e.get(Ds);e.get(Ms)===1&&r.initialNavigation(),e.get(Ts,null,Ce.Optional)?.setUpPreloading(),e.get(On,null,Ce.Optional)?.init(),r.resetRootComponentType(i.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var Ds=new $("",{factory:()=>new B}),Ms=new $("",{providedIn:"root",factory:()=>1});var Ts=new $("");var ur={production:!0,changePageScrollTop:!0,apiUrl:"https://api.disign.tv/{locale}/api/",disignMyAccountUrl:"https://myaccount.disign.tv/{locale}/",disignMyAccountLoginUrl:"https://myaccount.disign.tv/{locale}/login",recaptchaSiteKey:"6LdkSpUpAAAAAGaG5KqYPaoGEhVGHDhHEzSvgxrP",supportUrl:"https://support.disign.tv",supportDocUrl:"https://support.disign.tv/{locale}/doc",startUrl:"https://app.disign.tv/orgs-new",loginUrl:"https://app.disign.tv"};var ft=class ft{constructor(){}transform(t=""){return ur.startUrl}};ft.\u0275fac=function(i){return new(i||ft)},ft.\u0275pipe=wt({name:"startPath",type:ft,pure:!0,standalone:!0});var Un=ft,pt=class pt{constructor(){}transform(t){return ur.loginUrl}};pt.\u0275fac=function(i){return new(i||pt)},pt.\u0275pipe=wt({name:"loginPath",type:pt,pure:!0,standalone:!0});var xn=pt,gt=class gt{constructor(t){this.domSanitizer=t}transform(t){return this.domSanitizer.bypassSecurityTrustHtml(t)}};gt.\u0275fac=function(i){return new(i||gt)(A(Hr,16))},gt.\u0275pipe=wt({name:"safeHTML",type:gt,pure:!0,standalone:!0});var Pn=gt,vt=class vt{constructor(t){this._router=t}transform(t,i={}){let r=this.findPath(this._router.config,t);if(r=="")throw new Error('No path found for name "'+t+'"!');if(i)for(let n in i)i.hasOwnProperty(n)&&(r=r.replace(`:${n}`,i[n]));return r}navigate(t,i){this._router.navigate([this.transform(t,i)])}findPath(t,i,r){r=r||"";for(let n=0;n<t.length;n++){let s=t[n],o=r+"/"+s.path;if(s.data!=null&&s.data.name==i)return o;if(s.children){let a=s.path?r+"/"+s.path:r;return this.findPath(s.children,i,a)}}return""}};vt.\u0275fac=function(i){return new(i||vt)(A(dt,16))},vt.\u0275pipe=wt({name:"routePath",type:vt,pure:!0,standalone:!0});var jn=vt;export{ut as a,k as b,F as c,Et as d,te as e,Z as f,di as g,dt as h,Jr as i,ao as j,uo as k,co as l,ur as m,Un as n,xn as o,Pn as p,jn as q}; /**i18n:46056704bb1d2c97461fd8a020f26864be91f1a2bce61d44a9df1d6f1e62d4af*/