UNPKG

@mxtommy/kip

Version:

An advanced and versatile marine instrumentation package to display Signal K data.

1 lines 111 kB
import{$a as jr,$b as At,$c as De,A as Rt,Aa as _e,Ab as Xr,B as D,Ba as H,Bb as Jr,Bd as xn,C as gn,Cd as yi,D as wr,Da as wt,Dd as Ci,E as mn,Ed as Ri,F as br,Fb as ei,Gb as _t,Hb as Ae,Ia as wn,Ib as B,Ie as Ke,Ja as Or,Jb as Et,K as re,Ka as pe,L as X,La as xr,M as fe,Ma as kr,Na as Nr,Oa as Ee,Ob as En,P as vn,Pa as F,Pb as ti,Q as ie,Qa as se,Qb as It,Rb as Tt,Sa as Pr,Sb as In,Ta as bt,Tb as ni,V as be,Vb as Tn,W as oe,Wb as Mn,Wc as ci,X as Sn,Xa as Ur,Xb as An,Xc as Dn,Y as _r,Ya as bn,Yb as Mt,Za as Lr,Zc as li,_a as Ge,_c as ui,a as h,ab as _n,b as M,ba as Er,bb as Fr,bc as ri,ca as Ir,cb as $r,eb as zr,ed as di,fa as Tr,fb as Ye,fd as _,g as Ct,ga as j,gb as Ie,gd as Oe,ha as Mr,hb as Te,hd as hi,i as yr,ia as b,ib as Hr,id as fi,jb as Br,jd as pi,k as fn,kb as Vr,kc as ii,kd as xe,l as pn,la as C,lb as qr,ld as gi,le as Qe,m as L,ma as J,mb as Wr,md as ke,nb as Gr,nd as On,o as P,oa as m,ob as Yr,pa as z,pb as x,qa as Ar,qc as oi,r as K,ra as R,s as A,sa as yn,sb as Zr,sc as si,t as f,ta as g,tc as ai,u as he,ua as d,v as Cr,va as Cn,vb as Ze,w as Rr,xa as Rn,xb as Qr,xd as mi,yb as Kr,yd as vi,z as v,za as Dr,zb as Me,zd as Si}from"./chunk-Y7X77HSW.js";var Ne=new R(""),Un=(()=>{class n{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(i=>{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,i,o){return this._findPluginFor(t).addEventListener(e,t,i,o)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(o=>o.supports(e)),!t)throw new C(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||n)(g(Ne),g(F))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),ge=class{_doc;constructor(r){this._doc=r}manager},Dt="ng-app-id";function wi(n){for(let r of n)r.remove()}function bi(n,r){let e=r.createElement("style");return e.textContent=n,e}function Ho(n,r,e,t){let i=n.head?.querySelectorAll(`style[${Dt}="${r}"],link[${Dt}="${r}"]`);if(i)for(let o of i)o.removeAttribute(Dt),o instanceof HTMLLinkElement?t.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function Nn(n,r){let e=r.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",n),e}var Ln=(()=>{class n{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,t,i,o={}){this.doc=e,this.appId=t,this.nonce=i,this.isServer=xn(o),Ho(e,t,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,t){for(let i of e)this.addUsage(i,this.inline,bi);t?.forEach(i=>this.addUsage(i,this.external,Nn))}removeStyles(e,t){for(let i of e)this.removeUsage(i,this.inline);t?.forEach(i=>this.removeUsage(i,this.external))}addUsage(e,t,i){let o=t.get(e);o?o.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(e,this.doc)))})}removeUsage(e,t){let i=t.get(e);i&&(i.usage--,i.usage<=0&&(wi(i.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])wi(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:i}]of this.inline)i.push(this.addElement(e,bi(t,this.doc)));for(let[t,{elements:i}]of this.external)i.push(this.addElement(e,Nn(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),this.isServer&&t.setAttribute(Dt,this.appId),e.appendChild(t)}static \u0275fac=function(t){return new(t||n)(g(_),g(bn),g(_n,8),g(Ge))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),kn={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},jn=/%COMP%/g;var Ei="%COMP%",Bo=`_nghost-${Ei}`,Vo=`_ngcontent-${Ei}`,qo=!0,Wo=new R("",{providedIn:"root",factory:()=>qo});function Go(n){return Vo.replace(jn,n)}function Yo(n){return Bo.replace(jn,n)}function Ii(n,r){return r.map(e=>e.replace(jn,n))}var Fn=(()=>{class n{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,t,i,o,s,a,c,l=null,u=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.tracingService=u,this.platformIsServer=xn(a),this.defaultRenderer=new Xe(e,s,c,this.platformIsServer,this.tracingService)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===Ye.ShadowDom&&(t=M(h({},t),{encapsulation:Ye.Emulated}));let i=this.getOrCreateRenderer(e,t);return i instanceof Ot?i.applyToHost(e):i instanceof Je&&i.applyStyles(),i}getOrCreateRenderer(e,t){let i=this.rendererByCompId,o=i.get(t.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,y=this.platformIsServer,w=this.tracingService;switch(t.encapsulation){case Ye.Emulated:o=new Ot(c,l,t,this.appId,u,s,a,y,w);break;case Ye.ShadowDom:return new Pn(c,l,e,t,s,a,this.nonce,y,w);default:o=new Je(c,l,t,u,s,a,y,w);break}i.set(t.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(t){return new(t||n)(g(Un),g(Ln),g(bn),g(Wo),g(_),g(Ge),g(F),g(_n),g(Fr,8))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),Xe=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(r,e,t,i,o){this.eventManager=r,this.doc=e,this.ngZone=t,this.platformIsServer=i,this.tracingService=o}destroy(){}destroyNode=null;createElement(r,e){return e?this.doc.createElementNS(kn[e]||e,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,e){(_i(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(_i(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){e.remove()}selectRootElement(r,e){let t=typeof r=="string"?this.doc.querySelector(r):r;if(!t)throw new C(-5104,!1);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,i){if(i){e=i+":"+e;let o=kn[i];o?r.setAttributeNS(o,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){let i=kn[t];i?r.removeAttributeNS(i,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,i){i&(Ze.DashCase|Ze.Important)?r.style.setProperty(e,t,i&Ze.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&Ze.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r!=null&&(r[e]=t)}setValue(r,e){r.nodeValue=e}listen(r,e,t,i){if(typeof r=="string"&&(r=Oe().getGlobalEventTarget(this.doc,r),!r))throw new C(5102,!1);let o=this.decoratePreventDefault(t);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(r,e,o)),this.eventManager.addEventListener(r,e,o,i)}decoratePreventDefault(r){return e=>{if(e==="__ngUnwrap__")return r;(this.platformIsServer?this.ngZone.runGuarded(()=>r(e)):r(e))===!1&&e.preventDefault()}}};function _i(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var Pn=class extends Xe{sharedStylesHost;hostEl;shadowRoot;constructor(r,e,t,i,o,s,a,c,l){super(r,o,s,c,l),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=i.styles;u=Ii(i.id,u);for(let w of u){let I=document.createElement("style");a&&I.setAttribute("nonce",a),I.textContent=w,this.shadowRoot.appendChild(I)}let y=i.getExternalStyles?.();if(y)for(let w of y){let I=Nn(w,o);a&&I.setAttribute("nonce",a),this.shadowRoot.appendChild(I)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,e){return super.appendChild(this.nodeOrShadowRoot(r),e)}insertBefore(r,e,t){return super.insertBefore(this.nodeOrShadowRoot(r),e,t)}removeChild(r,e){return super.removeChild(null,e)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Je=class extends Xe{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(r,e,t,i,o,s,a,c,l){super(r,o,s,a,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let u=t.styles;this.styles=l?Ii(l,u):u,this.styleUrls=t.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Ot=class extends Je{contentAttr;hostAttr;constructor(r,e,t,i,o,s,a,c,l){let u=i+"-"+t.id;super(r,e,t,o,s,a,c,l,u),this.contentAttr=Go(u),this.hostAttr=Yo(u)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,"")}createElement(r,e){let t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}};var xt=class n extends fi{supportsDOMEvents=!0;static makeCurrent(){hi(new n)}onAndCancel(r,e,t,i){return r.addEventListener(e,t,i),()=>{r.removeEventListener(e,t,i)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.remove()}createElement(r,e){return e=e||this.getDefaultDocument(),e.createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return e==="window"?window:e==="document"?r:e==="body"?r.body:null}getBaseHref(r){let e=Zo();return e==null?null:Qo(e)}resetBaseElement(){et=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return vi(document.cookie,r)}},et=null;function Zo(){return et=et||document.querySelector("base"),et?et.getAttribute("href"):null}function Qo(n){return new URL(n,document.baseURI).pathname}var kt=class{addToWindow(r){J.getAngularTestability=(t,i=!0)=>{let o=r.findTestabilityInTree(t,i);if(o==null)throw new C(5103,!1);return o},J.getAllAngularTestabilities=()=>r.getAllTestabilities(),J.getAllAngularRootElements=()=>r.getAllRootElements();let e=t=>{let i=J.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&t()};i.forEach(a=>{a.whenStable(s)})};J.frameworkStabilizers||(J.frameworkStabilizers=[]),J.frameworkStabilizers.push(e)}findTestabilityInTree(r,e,t){if(e==null)return null;let i=r.getTestability(e);return i??(t?Oe().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},Ko=(()=>{class n{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||n)};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),Mi=(()=>{class n extends ge{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,i,o){return e.addEventListener(t,i,o),()=>this.removeEventListener(e,t,i,o)}removeEventListener(e,t,i,o){return e.removeEventListener(t,i,o)}static \u0275fac=function(t){return new(t||n)(g(_))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),Ti=["alt","control","meta","shift"],Xo={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Jo={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},Ai=(()=>{class n extends ge{constructor(e){super(e)}supports(e){return n.parseEventName(e)!=null}addEventListener(e,t,i,o){let s=n.parseEventName(t),a=n.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Oe().onAndCancel(e,s.domEventName,a,o))}static parseEventName(e){let t=e.toLowerCase().split("."),i=t.shift();if(t.length===0||!(i==="keydown"||i==="keyup"))return null;let o=n._normalizeKey(t.pop()),s="",a=t.indexOf("code");if(a>-1&&(t.splice(a,1),s="code."),Ti.forEach(l=>{let u=t.indexOf(l);u>-1&&(t.splice(u,1),s+=l+".")}),s+=o,t.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(e,t){let i=Xo[e.key]||e.key,o="";return t.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Ti.forEach(s=>{if(s!==i){let a=Jo[s];a(e)&&(o+=s+".")}}),o+=i,o===t)}static eventCallback(e,t,i){return o=>{n.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>t(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||n)(g(_))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})();function es(n,r){return ui(h({rootComponent:n},ts(r)))}function ts(n){return{appProviders:[...Di,...n?.providers??[]],platformProviders:os}}function ns(){xt.makeCurrent()}function rs(){return new se}function is(){return Ur(document),document}var os=[{provide:Ge,useValue:Si},{provide:Lr,useValue:ns,multi:!0},{provide:_,useFactory:is}];var ss=[{provide:It,useClass:kt},{provide:ti,useClass:Tt,deps:[F,In,It]},{provide:Tt,useClass:Tt,deps:[F,In,It]}],Di=[{provide:Dr,useValue:"root"},{provide:se,useFactory:rs},{provide:Ne,useClass:Mi,multi:!0,deps:[_]},{provide:Ne,useClass:Ai,multi:!0,deps:[_]},Fn,Ln,Un,{provide:Qr,useExisting:Fn},{provide:yi,useClass:Ko},[]],as=(()=>{class n{constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275mod=B({type:n});static \u0275inj=z({providers:[...Di,...ss],imports:[mi,li]})}return n})();var Oi=(()=>{class n{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||n)(g(_))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var ls={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},$n=new R(""),xi=new R(""),us=(()=>{class n{events=[];overrides={};options;buildHammer(e){let t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(let i in this.overrides)t.get(i).set(this.overrides[i]);return t}static \u0275fac=function(t){return new(t||n)};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),ds=(()=>{class n extends ge{_config;_injector;loader;_loaderPromise=null;constructor(e,t,i,o){super(e),this._config=t,this._injector=i,this.loader=o}supports(e){return!(!ls.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader)}addEventListener(e,t,i){let o=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||o.runOutsideAngular(()=>this.loader());let s=!1,a=()=>{s=!0};return o.runOutsideAngular(()=>this._loaderPromise.then(()=>{if(!window.Hammer){a=()=>{};return}s||(a=this.addEventListener(e,t,i))}).catch(()=>{a=()=>{}})),()=>{a()}}return o.runOutsideAngular(()=>{let s=this._config.buildHammer(e),a=function(c){o.runGuarded(function(){i(c)})};return s.on(t,a),()=>{s.off(t,a),typeof s.destroy=="function"&&s.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}static \u0275fac=function(t){return new(t||n)(g(_),g($n),g(pe),g(xi,8))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),zc=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=B({type:n});static \u0275inj=z({providers:[{provide:Ne,useClass:ds,multi:!0,deps:[_,$n,pe,[new Cn,xi]]},{provide:$n,useClass:us}]})}return n})(),zn=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275prov=m({token:n,factory:function(t){let i=null;return t?i=new(t||n):i=g(hs),i},providedIn:"root"})}return n})(),hs=(()=>{class n extends zn{_doc;constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case x.NONE:return t;case x.HTML:return Te(t,"HTML")?Ie(t):Yr(this._doc,String(t)).toString();case x.STYLE:return Te(t,"Style")?Ie(t):t;case x.SCRIPT:if(Te(t,"Script"))return Ie(t);throw new C(5200,!1);case x.URL:return Te(t,"URL")?Ie(t):Gr(String(t));case x.RESOURCE_URL:if(Te(t,"ResourceURL"))return Ie(t);throw new C(5201,!1);default:throw new C(5202,!1)}}bypassSecurityTrustHtml(e){return Hr(e)}bypassSecurityTrustStyle(e){return Br(e)}bypassSecurityTrustScript(e){return Vr(e)}bypassSecurityTrustUrl(e){return qr(e)}bypassSecurityTrustResourceUrl(e){return Wr(e)}static \u0275fac=function(t){return new(t||n)(g(_))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var p="primary",ft=Symbol("RouteTitle"),Wn=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Se(n){return new Wn(n)}function zi(n,r,e){let t=e.path.split("/");if(t.length>n.length||e.pathMatch==="full"&&(r.hasChildren()||t.length<n.length))return null;let i={};for(let o=0;o<t.length;o++){let s=t[o],a=n[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:n.slice(0,t.length),posParams:i}}function fs(n,r){if(n.length!==r.length)return!1;for(let e=0;e<n.length;++e)if(!V(n[e],r[e]))return!1;return!0}function V(n,r){let e=n?Gn(n):void 0,t=r?Gn(r):void 0;if(!e||!t||e.length!=t.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Hi(n[i],r[i]))return!1;return!0}function Gn(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function Hi(n,r){if(Array.isArray(n)&&Array.isArray(r)){if(n.length!==r.length)return!1;let e=[...n].sort(),t=[...r].sort();return e.every((i,o)=>t[o]===i)}else return n===r}function Bi(n){return n.length>0?n[n.length-1]:null}function de(n){return Cr(n)?n:ni(n)?A(Promise.resolve(n)):f(n)}var ps={exact:qi,subset:Wi},Vi={exact:gs,subset:ms,ignored:()=>!0};function Ni(n,r,e){return ps[e.paths](n.root,r.root,e.matrixParams)&&Vi[e.queryParams](n.queryParams,r.queryParams)&&!(e.fragment==="exact"&&n.fragment!==r.fragment)}function gs(n,r){return V(n,r)}function qi(n,r,e){if(!me(n.segments,r.segments)||!Ut(n.segments,r.segments,e)||n.numberOfChildren!==r.numberOfChildren)return!1;for(let t in r.children)if(!n.children[t]||!qi(n.children[t],r.children[t],e))return!1;return!0}function ms(n,r){return Object.keys(r).length<=Object.keys(n).length&&Object.keys(r).every(e=>Hi(n[e],r[e]))}function Wi(n,r,e){return Gi(n,r,r.segments,e)}function Gi(n,r,e,t){if(n.segments.length>e.length){let i=n.segments.slice(0,e.length);return!(!me(i,e)||r.hasChildren()||!Ut(i,e,t))}else if(n.segments.length===e.length){if(!me(n.segments,e)||!Ut(n.segments,e,t))return!1;for(let i in r.children)if(!n.children[i]||!Wi(n.children[i],r.children[i],t))return!1;return!0}else{let i=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!me(n.segments,i)||!Ut(n.segments,i,t)||!n.children[p]?!1:Gi(n.children[p],r,o,t)}}function Ut(n,r,e){return r.every((t,i)=>Vi[e](n[i].parameters,t.parameters))}var W=class{root;queryParams;fragment;_queryParamMap;constructor(r=new S([],{}),e={},t=null){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap??=Se(this.queryParams),this._queryParamMap}toString(){return ys.serialize(this)}},S=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Lt(this)}},ae=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=Se(this.parameters),this._parameterMap}toString(){return Zi(this)}};function vs(n,r){return me(n,r)&&n.every((e,t)=>V(e.parameters,r[t].parameters))}function me(n,r){return n.length!==r.length?!1:n.every((e,t)=>e.path===r[t].path)}function Ss(n,r){let e=[];return Object.entries(n.children).forEach(([t,i])=>{t===p&&(e=e.concat(r(i,t)))}),Object.entries(n.children).forEach(([t,i])=>{t!==p&&(e=e.concat(r(i,t)))}),e}var ye=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275prov=m({token:n,factory:()=>new ce,providedIn:"root"})}return n})(),ce=class{parse(r){let e=new Zn(r);return new W(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${tt(r.root,!0)}`,t=ws(r.queryParams),i=typeof r.fragment=="string"?`#${Cs(r.fragment)}`:"";return`${e}${t}${i}`}},ys=new ce;function Lt(n){return n.segments.map(r=>Zi(r)).join("/")}function tt(n,r){if(!n.hasChildren())return Lt(n);if(r){let e=n.children[p]?tt(n.children[p],!1):"",t=[];return Object.entries(n.children).forEach(([i,o])=>{i!==p&&t.push(`${i}:${tt(o,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}else{let e=Ss(n,(t,i)=>i===p?[tt(n.children[p],!1)]:[`${i}:${tt(t,!1)}`]);return Object.keys(n.children).length===1&&n.children[p]!=null?`${Lt(n)}/${e[0]}`:`${Lt(n)}/(${e.join("//")})`}}function Yi(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Nt(n){return Yi(n).replace(/%3B/gi,";")}function Cs(n){return encodeURI(n)}function Yn(n){return Yi(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function jt(n){return decodeURIComponent(n)}function Pi(n){return jt(n.replace(/\+/g,"%20"))}function Zi(n){return`${Yn(n.path)}${Rs(n.parameters)}`}function Rs(n){return Object.entries(n).map(([r,e])=>`;${Yn(r)}=${Yn(e)}`).join("")}function ws(n){let r=Object.entries(n).map(([e,t])=>Array.isArray(t)?t.map(i=>`${Nt(e)}=${Nt(i)}`).join("&"):`${Nt(e)}=${Nt(t)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var bs=/^[^\/()?;#]+/;function Hn(n){let r=n.match(bs);return r?r[0]:""}var _s=/^[^\/()?;=#]+/;function Es(n){let r=n.match(_s);return r?r[0]:""}var Is=/^[^=?&#]+/;function Ts(n){let r=n.match(Is);return r?r[0]:""}var Ms=/^[^&#]+/;function As(n){let r=n.match(Ms);return r?r[0]:""}var Zn=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new S([],{}):new S([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[p]=new S(r,e)),t}parseSegment(){let r=Hn(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(r),new ae(jt(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=Es(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let i=Hn(this.remaining);i&&(t=i,this.capture(t))}r[jt(e)]=jt(t)}parseQueryParam(r){let e=Ts(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let s=As(this.remaining);s&&(t=s,this.capture(t))}let i=Pi(e),o=Pi(t);if(r.hasOwnProperty(i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=Hn(this.remaining),i=this.remaining[t.length];if(i!=="/"&&i!==")"&&i!==";")throw new C(4010,!1);let o;t.indexOf(":")>-1?(o=t.slice(0,t.indexOf(":")),this.capture(o),this.capture(":")):r&&(o=p);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[p]:new S([],s),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new C(4011,!1)}};function Qi(n){return n.segments.length>0?new S([],{[p]:n}):n}function Ki(n){let r={};for(let[t,i]of Object.entries(n.children)){let o=Ki(i);if(t===p&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))r[s]=a;else(o.segments.length>0||o.hasChildren())&&(r[t]=o)}let e=new S(n.segments,r);return Ds(e)}function Ds(n){if(n.numberOfChildren===1&&n.children[p]){let r=n.children[p];return new S(n.segments.concat(r.segments),r.children)}return n}function le(n){return n instanceof W}function Xi(n,r,e=null,t=null){let i=Ji(n);return eo(i,r,e,t)}function Ji(n){let r;function e(o){let s={};for(let c of o.children){let l=e(c);s[c.outlet]=l}let a=new S(o.url,s);return o===n&&(r=a),a}let t=e(n.root),i=Qi(t);return r??i}function eo(n,r,e,t){let i=n;for(;i.parent;)i=i.parent;if(r.length===0)return Bn(i,i,i,e,t);let o=Os(r);if(o.toRoot())return Bn(i,i,new S([],{}),e,t);let s=xs(o,i,n),a=s.processChildren?rt(s.segmentGroup,s.index,o.commands):no(s.segmentGroup,s.index,o.commands);return Bn(i,s.segmentGroup,a,e,t)}function $t(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function ot(n){return typeof n=="object"&&n!=null&&n.outlets}function Bn(n,r,e,t,i){let o={};t&&Object.entries(t).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`});let s;n===r?s=e:s=to(n,r,e);let a=Qi(Ki(s));return new W(a,o,i)}function to(n,r,e){let t={};return Object.entries(n.children).forEach(([i,o])=>{o===r?t[i]=e:t[i]=to(o,r,e)}),new S(n.segments,t)}var zt=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&$t(t[0]))throw new C(4003,!1);let i=t.find(ot);if(i&&i!==Bi(t))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Os(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new zt(!0,0,n);let r=0,e=!1,t=n.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...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===""?e=!0:a===".."?r++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new zt(e,r,t)}var Le=class{segmentGroup;processChildren;index;constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}};function xs(n,r,e){if(n.isAbsolute)return new Le(r,!0,0);if(!e)return new Le(r,!1,NaN);if(e.parent===null)return new Le(e,!0,0);let t=$t(n.commands[0])?0:1,i=e.segments.length-1+t;return ks(e,i,n.numberOfDoubleDots)}function ks(n,r,e){let t=n,i=r,o=e;for(;o>i;){if(o-=i,t=t.parent,!t)throw new C(4005,!1);i=t.segments.length}return new Le(t,!1,i-o)}function Ns(n){return ot(n[0])?n[0].outlets:{[p]:n}}function no(n,r,e){if(n??=new S([],{}),n.segments.length===0&&n.hasChildren())return rt(n,r,e);let t=Ps(n,r,e),i=e.slice(t.commandIndex);if(t.match&&t.pathIndex<n.segments.length){let o=new S(n.segments.slice(0,t.pathIndex),{});return o.children[p]=new S(n.segments.slice(t.pathIndex),n.children),rt(o,0,i)}else return t.match&&i.length===0?new S(n.segments,{}):t.match&&!n.hasChildren()?Qn(n,r,e):t.match?rt(n,0,i):Qn(n,r,e)}function rt(n,r,e){if(e.length===0)return new S(n.segments,{});{let t=Ns(e),i={};if(Object.keys(t).some(o=>o!==p)&&n.children[p]&&n.numberOfChildren===1&&n.children[p].segments.length===0){let o=rt(n.children[p],r,e);return new S(n.segments,o.children)}return Object.entries(t).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=no(n.children[o],r,s))}),Object.entries(n.children).forEach(([o,s])=>{t[o]===void 0&&(i[o]=s)}),new S(n.segments,i)}}function Ps(n,r,e){let t=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<n.segments.length;){if(t>=e.length)return o;let s=n.segments[i],a=e[t];if(ot(a))break;let c=`${a}`,l=t<e.length-1?e[t+1]:null;if(i>0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Li(c,l,s))return o;t+=2}else{if(!Li(c,{},s))return o;t++}i++}return{match:!0,pathIndex:i,commandIndex:t}}function Qn(n,r,e){let t=n.segments.slice(0,r),i=0;for(;i<e.length;){let o=e[i];if(ot(o)){let c=Us(o.outlets);return new S(t,c)}if(i===0&&$t(e[0])){let c=n.segments[r];t.push(new ae(c.path,Ui(e[0]))),i++;continue}let s=ot(o)?o.outlets[p]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&$t(a)?(t.push(new ae(s,Ui(a))),i+=2):(t.push(new ae(s,{})),i++)}return new S(t,{})}function Us(n){let r={};return Object.entries(n).forEach(([e,t])=>{typeof t=="string"&&(t=[t]),t!==null&&(r[e]=Qn(new S([],{}),0,t))}),r}function Ui(n){let r={};return Object.entries(n).forEach(([e,t])=>r[e]=`${t}`),r}function Li(n,r,e){return n==e.path&&V(r,e.parameters)}var Ft="imperative",E=function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n}(E||{}),N=class{id;url;constructor(r,e){this.id=r,this.url=e}},ue=class extends N{type=E.NavigationStart;navigationTrigger;restoredState;constructor(r,e,t="imperative",i=null){super(r,e),this.navigationTrigger=t,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},U=class extends N{urlAfterRedirects;type=E.NavigationEnd;constructor(r,e,t){super(r,e),this.urlAfterRedirects=t}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},O=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(O||{}),Fe=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(Fe||{}),q=class extends N{reason;code;type=E.NavigationCancel;constructor(r,e,t,i){super(r,e),this.reason=t,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},G=class extends N{reason;code;type=E.NavigationSkipped;constructor(r,e,t,i){super(r,e),this.reason=t,this.code=i}},$e=class extends N{error;target;type=E.NavigationError;constructor(r,e,t,i){super(r,e),this.error=t,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},st=class extends N{urlAfterRedirects;state;type=E.RoutesRecognized;constructor(r,e,t,i){super(r,e),this.urlAfterRedirects=t,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ht=class extends N{urlAfterRedirects;state;type=E.GuardsCheckStart;constructor(r,e,t,i){super(r,e),this.urlAfterRedirects=t,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Bt=class extends N{urlAfterRedirects;state;shouldActivate;type=E.GuardsCheckEnd;constructor(r,e,t,i,o){super(r,e),this.urlAfterRedirects=t,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Vt=class extends N{urlAfterRedirects;state;type=E.ResolveStart;constructor(r,e,t,i){super(r,e),this.urlAfterRedirects=t,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qt=class extends N{urlAfterRedirects;state;type=E.ResolveEnd;constructor(r,e,t,i){super(r,e),this.urlAfterRedirects=t,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Wt=class{route;type=E.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Gt=class{route;type=E.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Yt=class{snapshot;type=E.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Zt=class{snapshot;type=E.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Qt=class{snapshot;type=E.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Kt=class{snapshot;type=E.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ze=class{routerEvent;position;anchor;type=E.Scroll;constructor(r,e,t){this.routerEvent=r,this.position=e,this.anchor=t}toString(){let r=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${r}')`}},at=class{},He=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function Ls(n,r){return n.providers&&!n._injector&&(n._injector=_t(n.providers,r,`Route: ${n.path}`)),n._injector??r}function $(n){return n.outlet||p}function js(n,r){let e=n.filter(t=>$(t)===r);return e.push(...n.filter(t=>$(t)!==r)),e}function pt(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let r=n.parent;r;r=r.parent){let e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Xt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return pt(this.route?.snapshot)??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new Ce(this.rootInjector)}},Ce=(()=>{class n{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,t){let i=this.getOrCreateContext(e);i.outlet=t,this.contexts.set(e,i)}onChildOutletDestroyed(e){let t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Xt(this.rootInjector),this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(t){return new(t||n)(g(_e))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Jt=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=Kn(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){let e=Kn(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=Xn(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return Xn(r,this._root).map(e=>e.value)}};function Kn(n,r){if(n===r.value)return r;for(let e of r.children){let t=Kn(n,e);if(t)return t}return null}function Xn(n,r){if(n===r.value)return[r];for(let e of r.children){let t=Xn(n,e);if(t.length)return t.unshift(r),t}return[]}var k=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function Ue(n){let r={};return n&&n.children.forEach(e=>r[e.value.outlet]=e),r}var ct=class extends Jt{snapshot;constructor(r,e){super(r),this.snapshot=e,sr(this,r)}toString(){return this.snapshot.toString()}};function ro(n){let r=Fs(n),e=new P([new ae("",{})]),t=new P({}),i=new P({}),o=new P({}),s=new P(""),a=new Y(e,t,o,s,i,p,n,r.root);return a.snapshot=r.root,new ct(new k(a,[]),r)}function Fs(n){let r={},e={},t={},i="",o=new ve([],r,t,i,e,p,n,null,{});return new lt("",new k(o,[]))}var Y=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,t,i,o,s,a,c){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=t,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(v(l=>l[ft]))??f(void 0),this.url=r,this.params=e,this.queryParams=t,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(v(r=>Se(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(v(r=>Se(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function en(n,r,e="emptyOnly"){let t,{routeConfig:i}=n;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?t={params:h(h({},r.params),n.params),data:h(h({},r.data),n.data),resolve:h(h(h(h({},n.data),r.data),i?.data),n._resolvedData)}:t={params:h({},n.params),data:h({},n.data),resolve:h(h({},n.data),n._resolvedData??{})},i&&oo(i)&&(t.resolve[ft]=i.title),t}var ve=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[ft]}constructor(r,e,t,i,o,s,a,c,l){this.url=r,this.params=e,this.queryParams=t,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Se(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Se(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(t=>t.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},lt=class extends Jt{url;constructor(r,e){super(e),this.url=r,sr(this,e)}toString(){return io(this._root)}};function sr(n,r){r.value._routerState=n,r.children.forEach(e=>sr(n,e))}function io(n){let r=n.children.length>0?` { ${n.children.map(io).join(", ")} } `:"";return`${n.value}${r}`}function Vn(n){if(n.snapshot){let r=n.snapshot,e=n._futureSnapshot;n.snapshot=e,V(r.queryParams,e.queryParams)||n.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&n.fragmentSubject.next(e.fragment),V(r.params,e.params)||n.paramsSubject.next(e.params),fs(r.url,e.url)||n.urlSubject.next(e.url),V(r.data,e.data)||n.dataSubject.next(e.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function Jn(n,r){let e=V(n.params,r.params)&&vs(n.url,r.url),t=!n.parent!=!r.parent;return e&&!t&&(!n.parent||Jn(n.parent,r.parent))}function oo(n){return typeof n.title=="string"||n.title===null}var so=new R(""),ar=(()=>{class n{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new Ee;deactivateEvents=new Ee;attachEvents=new Ee;detachEvents=new Ee;routerOutletData=Pr(void 0);parentContexts=d(Ce);location=d(Jr);changeDetector=d(Dn);inputBinder=d(gt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:t,previousValue:i}=e.name;if(t)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new C(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new er(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:t}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=Et({type:n,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[wt]})}return n})(),er=class{route;childContexts;parent;outletData;constructor(r,e,t,i){this.route=r,this.childContexts=e,this.parent=t,this.outletData=i}get(r,e){return r===Y?this.route:r===Ce?this.childContexts:r===so?this.outletData:this.parent.get(r,e)}},gt=new R(""),cr=(()=>{class n{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:t}=e,i=Rt([t.queryParams,t.params,t.data]).pipe(j(([o,s,a],c)=>(a=h(h(h({},o),s),a),c===0?f(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==t||t.component===null){this.unsubscribeFromRouteData(e);return}let s=di(t.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})();function $s(n,r,e){let t=ut(n,r._root,e?e._root:void 0);return new ct(t,r)}function ut(n,r,e){if(e&&n.shouldReuseRoute(r.value,e.value.snapshot)){let t=e.value;t._futureSnapshot=r.value;let i=zs(n,r,e);return new k(t,i)}else{if(n.shouldAttach(r.value)){let o=n.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(a=>ut(n,a)),s}}let t=Hs(r.value),i=r.children.map(o=>ut(n,o));return new k(t,i)}}function zs(n,r,e){return r.children.map(t=>{for(let i of e.children)if(n.shouldReuseRoute(t.value,i.value.snapshot))return ut(n,t,i);return ut(n,t)})}function Hs(n){return new Y(new P(n.url),new P(n.params),new P(n.queryParams),new P(n.fragment),new P(n.data),n.outlet,n.component,n)}var Be=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},ao="ngNavigationCancelingError";function tn(n,r){let{redirectTo:e,navigationBehaviorOptions:t}=le(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=co(!1,O.Redirect);return i.url=e,i.navigationBehaviorOptions=t,i}function co(n,r){let e=new Error(`NavigationCancelingError: ${n||""}`);return e[ao]=!0,e.cancellationCode=r,e}function Bs(n){return lo(n)&&le(n.url)}function lo(n){return!!n&&n[ao]}var Vs=(n,r,e,t)=>v(i=>(new tr(r,i.targetRouterState,i.currentRouterState,e,t).activate(n),i)),tr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,t,i,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),Vn(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){let i=Ue(e);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],t),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,t)})}deactivateRoutes(r,e,t){let i=r.value,o=e?e.value:null;if(i===o)if(i.component){let s=t.getContext(i.outlet);s&&this.deactivateChildRoutes(r,e,s.children)}else this.deactivateChildRoutes(r,e,t);else o&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let t=e.getContext(r.value.outlet),i=t&&r.value.component?t.children:e,o=Ue(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(t&&t.outlet){let s=t.outlet.detach(),a=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:a})}}deactivateRouteAndOutlet(r,e){let t=e.getContext(r.value.outlet),i=t&&r.value.component?t.children:e,o=Ue(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(r,e,t){let i=Ue(e);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],t),this.forwardEvent(new Kt(o.value.snapshot))}),r.children.length&&this.forwardEvent(new Zt(r.value.snapshot))}activateRoutes(r,e,t){let i=r.value,o=e?e.value:null;if(Vn(i),i===o)if(i.component){let s=t.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,s.children)}else this.activateChildRoutes(r,e,t);else if(i.component){let s=t.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),Vn(a.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,t)}},nn=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},je=class{component;route;constructor(r,e){this.component=r,this.route=e}};function qs(n,r,e){let t=n._root,i=r?r._root:null;return nt(t,i,e,[t.value])}function Ws(n){let r=n.routeConfig?n.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:n,guards:r}}function qe(n,r){let e=Symbol(),t=r.get(n,e);return t===e?typeof n=="function"&&!Ar(n)?n:r.get(n):t}function nt(n,r,e,t,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Ue(r);return n.children.forEach(s=>{Gs(s,o[s.value.outlet],e,t.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>it(a,e.getContext(s),i)),i}function Gs(n,r,e,t,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=n.value,s=r?r.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=Ys(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new nn(t)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?nt(n,r,a?a.children:null,t,i):nt(n,r,e,t,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new je(a.outlet.component,s))}else s&&it(r,a,i),i.canActivateChecks.push(new nn(t)),o.component?nt(n,null,a?a.children:null,t,i):nt(n,null,e,t,i);return i}function Ys(n,r,e){if(typeof e=="function")return e(n,r);switch(e){case"pathParamsChange":return!me(n.url,r.url);case"pathParamsOrQueryParamsChange":return!me(n.url,r.url)||!V(n.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Jn(n,r)||!V(n.queryParams,r.queryParams);case"paramsChange":default:return!Jn(n,r)}}function it(n,r,e){let t=Ue(n),i=n.value;Object.entries(t).forEach(([o,s])=>{i.component?r?it(s,r.children.g