@mxtommy/kip 3.4.1 → 3.4.2-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/package.json +1 -1
  3. package/public/{chunk-VCFBXEUV.js → chunk-5FUAHCDM.js} +1 -1
  4. package/public/{chunk-AERKQXJA.js → chunk-5KKRPVJE.js} +15 -15
  5. package/public/{chunk-KP4DUCFG.js → chunk-5R5BV2XK.js} +1 -1
  6. package/public/{chunk-UMSIBYU7.js → chunk-BDMHNK6W.js} +1 -1
  7. package/public/{chunk-PYQ6T3Y3.js → chunk-BVMWKICM.js} +1 -1
  8. package/public/chunk-DAVKA3BG.js +1 -0
  9. package/public/{chunk-2GTOB75T.js → chunk-FRJM6ZUY.js} +1 -1
  10. package/public/{chunk-E6ASIJQQ.js → chunk-HZN6ZOWD.js} +1 -1
  11. package/public/{chunk-X2CUXUMC.js → chunk-JX2ORMOL.js} +1 -1
  12. package/public/{chunk-IMRKPLTP.js → chunk-NXU5RHTP.js} +1 -1
  13. package/public/{chunk-QBA5REXT.js → chunk-O6UODD7I.js} +1 -1
  14. package/public/{chunk-MRXTLXGU.js → chunk-OJAICHIT.js} +1 -1
  15. package/public/{chunk-OGPSK2OV.js → chunk-OKDNLHRI.js} +1 -1
  16. package/public/chunk-P457HUA5.js +8 -0
  17. package/public/{chunk-F5AFZMSJ.js → chunk-SE4IM4AK.js} +1 -1
  18. package/public/{chunk-SGY2DUWG.js → chunk-SK4FQEPS.js} +1 -1
  19. package/public/{chunk-EGXTT4GK.js → chunk-T7T34DNY.js} +1 -1
  20. package/public/{chunk-JITOBNFA.js → chunk-U7WT5AK3.js} +1 -1
  21. package/public/chunk-UPJO7TXR.js +4 -0
  22. package/public/{chunk-SZ4C5OKG.js → chunk-VTJ7KOEH.js} +1 -1
  23. package/public/{chunk-KUPVE24U.js → chunk-WVZ5YLYA.js} +1 -1
  24. package/public/{chunk-HTFWAMIE.js → chunk-WXPXINX2.js} +1 -1
  25. package/public/{chunk-GSG5IFZ7.js → chunk-WXZOPZRK.js} +1 -1
  26. package/public/{chunk-BK65F7S6.js → chunk-YEKIPLS4.js} +1 -1
  27. package/public/{chunk-IJ7MVHXO.js → chunk-ZI6ZQBWP.js} +1 -1
  28. package/public/{chunk-FQWKFMCL.js → chunk-ZZZPD7N5.js} +1 -1
  29. package/public/index.html +1 -1
  30. package/public/{main-NXRG2VPY.js → main-RY7FDAHK.js} +15 -16
  31. package/public/chunk-LJVNQ7AL.js +0 -8
  32. package/public/chunk-MS7A7ML2.js +0 -1
  33. package/public/chunk-VYP5YLKW.js +0 -4
@@ -1,3 +1,3 @@
1
- import{$a as $n,$c as Or,A as Rt,Ad as yi,B as A,Bd as Ri,C as mr,Ca as ge,Cb as Jn,Cd as Ci,D as En,Da as _,Db as Me,E as Ct,Ea as Nn,Eb as J,Ed as wi,F as In,Fa as oe,Fb as ei,Fd as bi,Ga as wt,Gb as Ir,Gd as _i,Hb as ti,Ia as kn,Ib as Tt,Ja as Pn,Jb as Mt,K as Q,Ka as Cr,Kb as Tr,L as K,Lb as ri,M as fe,Ma as bt,Na as wr,Nb as Mr,Ne as Qe,Oa as Un,Ob as Ar,P as vr,Pa as _t,Pb as Dr,Q as ne,Qb as At,Qc as ci,Ra as Ln,Rc as li,Sa as br,Ta as jn,Ua as Ge,V as be,Vc as Ot,W as ie,Wa as _r,X as Sr,Xa as Er,Xc as ui,Y as Tn,Ya as _e,Za as Ee,_a as Fn,_b as ni,a as h,aa as Mn,ab as zn,b as O,ba as An,bb as Hn,bd as di,cb as Bn,cd as hi,db as Vn,dd as Ae,ea as Dn,eb as qn,ec as ii,f as Rn,fa as U,fb as x,g as yt,ga as yr,gc as oi,gd as fi,ha as w,hc as si,hd as De,i as Cn,ib as Wn,id as pi,j as wn,jd as gi,k as pr,ka as R,kd as mi,l as gr,la as X,lb as Ye,ld as Oe,m as j,md as vi,na as m,nb as Gn,nd as xe,o as P,oa as $,ob as Yn,od as xr,oe as Ze,pa as On,pb as Ie,qa as C,qb as Zn,r as Z,ra as g,rb as Qn,rc as Dt,re as Ei,s as M,sa as u,sb as Kn,t as f,ta as Rr,tb as Xn,tc as ai,u as he,ub as Et,v as bn,va as xn,vb as Te,w as _n,wa as pe,wb as H,xa as z,xb as It,z as v,zd as Si}from"./chunk-AERKQXJA.js";var Ne=new C(""),Ur=(()=>{class r{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(i=>{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,i,o){return this._findPluginFor(t).addEventListener(e,t,i,o)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(o=>o.supports(e)),!t)throw new R(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||r)(g(Ne),g(J))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),me=class{_doc;constructor(n){this._doc=n}manager},xt="ng-app-id";function Ii(r){for(let n of r)n.remove()}function Ti(r,n){let e=n.createElement("style");return e.textContent=r,e}function Wo(r,n,e,t){let i=r.head?.querySelectorAll(`style[${xt}="${n}"],link[${xt}="${n}"]`);if(i)for(let o of i)o.removeAttribute(xt),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 kr(r,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",r),e}var Lr=(()=>{class r{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,t,i,o={}){this.doc=e,this.appId=t,this.nonce=i,this.isServer=wi(o),Wo(e,t,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,t){for(let i of e)this.addUsage(i,this.inline,Ti);t?.forEach(i=>this.addUsage(i,this.external,kr))}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&&(Ii(i.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Ii(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:i}]of this.inline)i.push(this.addElement(e,Ti(t,this.doc)));for(let[t,{elements:i}]of this.external)i.push(this.addElement(e,kr(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),this.isServer&&t.setAttribute(xt,this.appId),e.appendChild(t)}static \u0275fac=function(t){return new(t||r)(g(_),g(br),g(_r,8),g(Ge))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),Nr={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"},jr=/%COMP%/g;var Ai="%COMP%",Go=`_nghost-${Ai}`,Yo=`_ngcontent-${Ai}`,Zo=!0,Qo=new C("",{providedIn:"root",factory:()=>Zo});function Ko(r){return Yo.replace(jr,r)}function Xo(r){return Go.replace(jr,r)}function Di(r,n){return n.map(e=>e.replace(jr,r))}var Fr=(()=>{class r{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,t,i,o,s,a,c,l=null,d=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=d,this.platformIsServer=!1,this.defaultRenderer=new Ke(e,s,c,this.platformIsServer,this.tracingService)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;let i=this.getOrCreateRenderer(e,t);return i instanceof Nt?i.applyToHost(e):i instanceof Xe&&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,d=this.removeStylesOnCompDestroy,y=this.platformIsServer,b=this.tracingService;switch(t.encapsulation){case Er.Emulated:o=new Nt(c,l,t,this.appId,d,s,a,y,b);break;case Er.ShadowDom:return new Pr(c,l,e,t,s,a,this.nonce,y,b);default:o=new Xe(c,l,t,d,s,a,y,b);break}i.set(t.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(t){return new(t||r)(g(Ur),g(Lr),g(br),g(Qo),g(_),g(Ge),g(J),g(_r),g(Jn,8))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),Ke=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,t,i,o){this.eventManager=n,this.doc=e,this.ngZone=t,this.platformIsServer=i,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(Nr[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(Mi(n)?n.content:n).appendChild(e)}insertBefore(n,e,t){n&&(Mi(n)?n.content:n).insertBefore(e,t)}removeChild(n,e){e.remove()}selectRootElement(n,e){let t=typeof n=="string"?this.doc.querySelector(n):n;if(!t)throw new R(-5104,!1);return e||(t.textContent=""),t}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,t,i){if(i){e=i+":"+e;let o=Nr[i];o?n.setAttributeNS(o,e,t):n.setAttribute(e,t)}else n.setAttribute(e,t)}removeAttribute(n,e,t){if(t){let i=Nr[t];i?n.removeAttributeNS(i,e):n.removeAttribute(`${t}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,t,i){i&(Ye.DashCase|Ye.Important)?n.style.setProperty(e,t,i&Ye.Important?"important":""):n.style[e]=t}removeStyle(n,e,t){t&Ye.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,t){n!=null&&(n[e]=t)}setValue(n,e){n.nodeValue=e}listen(n,e,t,i){if(typeof n=="string"&&(n=De().getGlobalEventTarget(this.doc,n),!n))throw new R(5102,!1);let o=this.decoratePreventDefault(t);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,e,o)),this.eventManager.addEventListener(n,e,o,i)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===!1&&e.preventDefault()}}};function Mi(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var Pr=class extends Ke{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,t,i,o,s,a,c,l){super(n,o,s,c,l),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=i.styles;d=Di(i.id,d);for(let b of d){let I=document.createElement("style");a&&I.setAttribute("nonce",a),I.textContent=b,this.shadowRoot.appendChild(I)}let y=i.getExternalStyles?.();if(y)for(let b of y){let I=kr(b,o);a&&I.setAttribute("nonce",a),this.shadowRoot.appendChild(I)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,t){return super.insertBefore(this.nodeOrShadowRoot(n),e,t)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Xe=class extends Ke{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,t,i,o,s,a,c,l){super(n,o,s,a,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let d=t.styles;this.styles=l?Di(l,d):d,this.styleUrls=t.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Nt=class extends Xe{contentAttr;hostAttr;constructor(n,e,t,i,o,s,a,c,l){let d=i+"-"+t.id;super(n,e,t,o,s,a,c,l,d),this.contentAttr=Ko(d),this.hostAttr=Xo(d)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let t=super.createElement(n,e);return super.setAttribute(t,this.contentAttr,""),t}};var kt=class r extends gi{supportsDOMEvents=!0;static makeCurrent(){pi(new r)}onAndCancel(n,e,t,i){return n.addEventListener(e,t,i),()=>{n.removeEventListener(e,t,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=Jo();return e==null?null:es(e)}resetBaseElement(){Je=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return yi(document.cookie,n)}},Je=null;function Jo(){return Je=Je||document.head.querySelector("base"),Je?Je.getAttribute("href"):null}function es(r){return new URL(r,document.baseURI).pathname}var Pt=class{addToWindow(n){X.getAngularTestability=(t,i=!0)=>{let o=n.findTestabilityInTree(t,i);if(o==null)throw new R(5103,!1);return o},X.getAllAngularTestabilities=()=>n.getAllTestabilities(),X.getAllAngularRootElements=()=>n.getAllRootElements();let e=t=>{let i=X.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&t()};i.forEach(a=>{a.whenStable(s)})};X.frameworkStabilizers||(X.frameworkStabilizers=[]),X.frameworkStabilizers.push(e)}findTestabilityInTree(n,e,t){if(e==null)return null;let i=n.getTestability(e);return i??(t?De().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},ts=(()=>{class r{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),xi=(()=>{class r extends me{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,i,o){return e.addEventListener(t,i,o),()=>this.removeEventListener(e,t,i,o)}removeEventListener(e,t,i,o){return e.removeEventListener(t,i,o)}static \u0275fac=function(t){return new(t||r)(g(_))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),Oi=["alt","control","meta","shift"],rs={"\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"},ns={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},Ni=(()=>{class r extends me{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,t,i,o){let s=r.parseEventName(t),a=r.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>De().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=r._normalizeKey(t.pop()),s="",a=t.indexOf("code");if(a>-1&&(t.splice(a,1),s="code."),Oi.forEach(l=>{let d=t.indexOf(l);d>-1&&(t.splice(d,1),s+=l+".")}),s+=o,t.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(e,t){let i=rs[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"),Oi.forEach(s=>{if(s!==i){let a=ns[s];a(e)&&(o+=s+".")}}),o+=i,o===t)}static eventCallback(e,t,i){return o=>{r.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>t(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||r)(g(_))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})();function is(r,n){return hi(h({rootComponent:r},os(n)))}function os(r){return{appProviders:[...ki,...r?.providers??[]],platformProviders:ls}}function ss(){kt.makeCurrent()}function as(){return new oe}function cs(){return Ln(document),document}var ls=[{provide:Ge,useValue:Ci},{provide:jn,useValue:ss,multi:!0},{provide:_,useFactory:cs}];var us=[{provide:Tt,useClass:Pt},{provide:ti,useClass:Mt,deps:[J,Tr,Tt]},{provide:Mt,useClass:Mt,deps:[J,Tr,Tt]}],ki=[{provide:xn,useValue:"root"},{provide:oe,useFactory:as},{provide:Ne,useClass:xi,multi:!0,deps:[_]},{provide:Ne,useClass:Ni,multi:!0,deps:[_]},Fr,Lr,Ur,{provide:Gn,useExisting:Fr},{provide:Ri,useClass:ts},[]],ds=(()=>{class r{constructor(){}static \u0275fac=function(t){return new(t||r)};static \u0275mod=H({type:r});static \u0275inj=$({providers:[...ki,...us],imports:[Si,di]})}return r})();var Pi=(()=>{class r{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||r)(g(_))};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var fs={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},$r=new C(""),Ui=new C(""),ps=(()=>{class r{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||r)};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),gs=(()=>{class r extends me{_config;_injector;loader;_loaderPromise=null;constructor(e,t,i,o){super(e),this._config=t,this._injector=i,this.loader=o}supports(e){return!(!fs.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||r)(g(_),g($r),g(ge),g(Ui,8))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),Wc=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=H({type:r});static \u0275inj=$({providers:[{provide:Ne,useClass:gs,multi:!0,deps:[_,$r,ge,[new Cr,Ui]]},{provide:$r,useClass:ps}]})}return r})(),zr=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:function(t){let i=null;return t?i=new(t||r):i=g(ms),i},providedIn:"root"})}return r})(),ms=(()=>{class r extends zr{_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 Ee(t,"HTML")?_e(t):qn(this._doc,String(t)).toString();case x.STYLE:return Ee(t,"Style")?_e(t):t;case x.SCRIPT:if(Ee(t,"Script"))return _e(t);throw new R(5200,!1);case x.URL:return Ee(t,"URL")?_e(t):Vn(String(t));case x.RESOURCE_URL:if(Ee(t,"ResourceURL"))return _e(t);throw new R(5201,!1);default:throw new R(5202,!1)}}bypassSecurityTrustHtml(e){return Fn(e)}bypassSecurityTrustStyle(e){return $n(e)}bypassSecurityTrustScript(e){return zn(e)}bypassSecurityTrustUrl(e){return Hn(e)}bypassSecurityTrustResourceUrl(e){return Bn(e)}static \u0275fac=function(t){return new(t||r)(g(_))};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var p="primary",ht=Symbol("RouteTitle"),Wr=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ye(r){return new Wr(r)}function qi(r,n,e){let t=e.path.split("/");if(t.length>r.length||e.pathMatch==="full"&&(n.hasChildren()||t.length<r.length))return null;let i={};for(let o=0;o<t.length;o++){let s=t[o],a=r[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:r.slice(0,t.length),posParams:i}}function vs(r,n){if(r.length!==n.length)return!1;for(let e=0;e<r.length;++e)if(!B(r[e],n[e]))return!1;return!0}function B(r,n){let e=r?Gr(r):void 0,t=n?Gr(n):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],!Wi(r[i],n[i]))return!1;return!0}function Gr(r){return[...Object.keys(r),...Object.getOwnPropertySymbols(r)]}function Wi(r,n){if(Array.isArray(r)&&Array.isArray(n)){if(r.length!==n.length)return!1;let e=[...r].sort(),t=[...n].sort();return e.every((i,o)=>t[o]===i)}else return r===n}function Gi(r){return r.length>0?r[r.length-1]:null}function te(r){return bn(r)?r:ri(r)?M(Promise.resolve(r)):f(r)}var Ss={exact:Zi,subset:Qi},Yi={exact:ys,subset:Rs,ignored:()=>!0};function ji(r,n,e){return Ss[e.paths](r.root,n.root,e.matrixParams)&&Yi[e.queryParams](r.queryParams,n.queryParams)&&!(e.fragment==="exact"&&r.fragment!==n.fragment)}function ys(r,n){return B(r,n)}function Zi(r,n,e){if(!ve(r.segments,n.segments)||!jt(r.segments,n.segments,e)||r.numberOfChildren!==n.numberOfChildren)return!1;for(let t in n.children)if(!r.children[t]||!Zi(r.children[t],n.children[t],e))return!1;return!0}function Rs(r,n){return Object.keys(n).length<=Object.keys(r).length&&Object.keys(n).every(e=>Wi(r[e],n[e]))}function Qi(r,n,e){return Ki(r,n,n.segments,e)}function Ki(r,n,e,t){if(r.segments.length>e.length){let i=r.segments.slice(0,e.length);return!(!ve(i,e)||n.hasChildren()||!jt(i,e,t))}else if(r.segments.length===e.length){if(!ve(r.segments,e)||!jt(r.segments,e,t))return!1;for(let i in n.children)if(!r.children[i]||!Qi(r.children[i],n.children[i],t))return!1;return!0}else{let i=e.slice(0,r.segments.length),o=e.slice(r.segments.length);return!ve(r.segments,i)||!jt(r.segments,i,t)||!r.children[p]?!1:Ki(r.children[p],n,o,t)}}function jt(r,n,e){return n.every((t,i)=>Yi[e](r[i].parameters,t.parameters))}var q=class{root;queryParams;fragment;_queryParamMap;constructor(n=new S([],{}),e={},t=null){this.root=n,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap??=ye(this.queryParams),this._queryParamMap}toString(){return bs.serialize(this)}},S=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ft(this)}},se=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=ye(this.parameters),this._parameterMap}toString(){return Ji(this)}};function Cs(r,n){return ve(r,n)&&r.every((e,t)=>B(e.parameters,n[t].parameters))}function ve(r,n){return r.length!==n.length?!1:r.every((e,t)=>e.path===n[t].path)}function ws(r,n){let e=[];return Object.entries(r.children).forEach(([t,i])=>{t===p&&(e=e.concat(n(i,t)))}),Object.entries(r.children).forEach(([t,i])=>{t!==p&&(e=e.concat(n(i,t)))}),e}var Re=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:()=>new ae,providedIn:"root"})}return r})(),ae=class{parse(n){let e=new Zr(n);return new q(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${et(n.root,!0)}`,t=Is(n.queryParams),i=typeof n.fragment=="string"?`#${_s(n.fragment)}`:"";return`${e}${t}${i}`}},bs=new ae;function Ft(r){return r.segments.map(n=>Ji(n)).join("/")}function et(r,n){if(!r.hasChildren())return Ft(r);if(n){let e=r.children[p]?et(r.children[p],!1):"",t=[];return Object.entries(r.children).forEach(([i,o])=>{i!==p&&t.push(`${i}:${et(o,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}else{let e=ws(r,(t,i)=>i===p?[et(r.children[p],!1)]:[`${i}:${et(t,!1)}`]);return Object.keys(r.children).length===1&&r.children[p]!=null?`${Ft(r)}/${e[0]}`:`${Ft(r)}/(${e.join("//")})`}}function Xi(r){return encodeURIComponent(r).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ut(r){return Xi(r).replace(/%3B/gi,";")}function _s(r){return encodeURI(r)}function Yr(r){return Xi(r).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function $t(r){return decodeURIComponent(r)}function Fi(r){return $t(r.replace(/\+/g,"%20"))}function Ji(r){return`${Yr(r.path)}${Es(r.parameters)}`}function Es(r){return Object.entries(r).map(([n,e])=>`;${Yr(n)}=${Yr(e)}`).join("")}function Is(r){let n=Object.entries(r).map(([e,t])=>Array.isArray(t)?t.map(i=>`${Ut(e)}=${Ut(i)}`).join("&"):`${Ut(e)}=${Ut(t)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Ts=/^[^\/()?;#]+/;function Hr(r){let n=r.match(Ts);return n?n[0]:""}var Ms=/^[^\/()?;=#]+/;function As(r){let n=r.match(Ms);return n?n[0]:""}var Ds=/^[^=?&#]+/;function Os(r){let n=r.match(Ds);return n?n[0]:""}var xs=/^[^&#]+/;function Ns(r){let n=r.match(xs);return n?n[0]:""}var Zr=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new S([],{}):new S([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(t[p]=new S(n,e)),t}parseSegment(){let n=Hr(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new R(4009,!1);return this.capture(n),new se($t(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=As(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let i=Hr(this.remaining);i&&(t=i,this.capture(t))}n[$t(e)]=$t(t)}parseQueryParam(n){let e=Os(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let s=Ns(this.remaining);s&&(t=s,this.capture(t))}let i=Fi(e),o=Fi(t);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=Hr(this.remaining),i=this.remaining[t.length];if(i!=="/"&&i!==")"&&i!==";")throw new R(4010,!1);let o;t.indexOf(":")>-1?(o=t.slice(0,t.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=p);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[p]:new S([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new R(4011,!1)}};function eo(r){return r.segments.length>0?new S([],{[p]:r}):r}function to(r){let n={};for(let[t,i]of Object.entries(r.children)){let o=to(i);if(t===p&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[t]=o)}let e=new S(r.segments,n);return ks(e)}function ks(r){if(r.numberOfChildren===1&&r.children[p]){let n=r.children[p];return new S(r.segments.concat(n.segments),n.children)}return r}function ce(r){return r instanceof q}function ro(r,n,e=null,t=null){let i=no(r);return io(i,n,e,t)}function no(r){let n;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===r&&(n=a),a}let t=e(r.root),i=eo(t);return n??i}function io(r,n,e,t){let i=r;for(;i.parent;)i=i.parent;if(n.length===0)return Br(i,i,i,e,t);let o=Ps(n);if(o.toRoot())return Br(i,i,new S([],{}),e,t);let s=Us(o,i,r),a=s.processChildren?rt(s.segmentGroup,s.index,o.commands):so(s.segmentGroup,s.index,o.commands);return Br(i,s.segmentGroup,a,e,t)}function zt(r){return typeof r=="object"&&r!=null&&!r.outlets&&!r.segmentPath}function it(r){return typeof r=="object"&&r!=null&&r.outlets}function Br(r,n,e,t,i){let o={};t&&Object.entries(t).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(d=>`${d}`):`${l}`});let s;r===n?s=e:s=oo(r,n,e);let a=eo(to(s));return new q(a,o,i)}function oo(r,n,e){let t={};return Object.entries(r.children).forEach(([i,o])=>{o===n?t[i]=e:t[i]=oo(o,n,e)}),new S(r.segments,t)}var Ht=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,t){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=t,n&&t.length>0&&zt(t[0]))throw new R(4003,!1);let i=t.find(it);if(i&&i!==Gi(t))throw new R(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Ps(r){if(typeof r[0]=="string"&&r.length===1&&r[0]==="/")return new Ht(!0,0,r);let n=0,e=!1,t=r.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===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Ht(e,n,t)}var Ue=class{segmentGroup;processChildren;index;constructor(n,e,t){this.segmentGroup=n,this.processChildren=e,this.index=t}};function Us(r,n,e){if(r.isAbsolute)return new Ue(n,!0,0);if(!e)return new Ue(n,!1,NaN);if(e.parent===null)return new Ue(e,!0,0);let t=zt(r.commands[0])?0:1,i=e.segments.length-1+t;return Ls(e,i,r.numberOfDoubleDots)}function Ls(r,n,e){let t=r,i=n,o=e;for(;o>i;){if(o-=i,t=t.parent,!t)throw new R(4005,!1);i=t.segments.length}return new Ue(t,!1,i-o)}function js(r){return it(r[0])?r[0].outlets:{[p]:r}}function so(r,n,e){if(r??=new S([],{}),r.segments.length===0&&r.hasChildren())return rt(r,n,e);let t=Fs(r,n,e),i=e.slice(t.commandIndex);if(t.match&&t.pathIndex<r.segments.length){let o=new S(r.segments.slice(0,t.pathIndex),{});return o.children[p]=new S(r.segments.slice(t.pathIndex),r.children),rt(o,0,i)}else return t.match&&i.length===0?new S(r.segments,{}):t.match&&!r.hasChildren()?Qr(r,n,e):t.match?rt(r,0,i):Qr(r,n,e)}function rt(r,n,e){if(e.length===0)return new S(r.segments,{});{let t=js(e),i={};if(Object.keys(t).some(o=>o!==p)&&r.children[p]&&r.numberOfChildren===1&&r.children[p].segments.length===0){let o=rt(r.children[p],n,e);return new S(r.segments,o.children)}return Object.entries(t).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=so(r.children[o],n,s))}),Object.entries(r.children).forEach(([o,s])=>{t[o]===void 0&&(i[o]=s)}),new S(r.segments,i)}}function Fs(r,n,e){let t=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<r.segments.length;){if(t>=e.length)return o;let s=r.segments[i],a=e[t];if(it(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(!zi(c,l,s))return o;t+=2}else{if(!zi(c,{},s))return o;t++}i++}return{match:!0,pathIndex:i,commandIndex:t}}function Qr(r,n,e){let t=r.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(it(o)){let c=$s(o.outlets);return new S(t,c)}if(i===0&&zt(e[0])){let c=r.segments[n];t.push(new se(c.path,$i(e[0]))),i++;continue}let s=it(o)?o.outlets[p]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&zt(a)?(t.push(new se(s,$i(a))),i+=2):(t.push(new se(s,{})),i++)}return new S(t,{})}function $s(r){let n={};return Object.entries(r).forEach(([e,t])=>{typeof t=="string"&&(t=[t]),t!==null&&(n[e]=Qr(new S([],{}),0,t))}),n}function $i(r){let n={};return Object.entries(r).forEach(([e,t])=>n[e]=`${t}`),n}function zi(r,n,e){return r==e.path&&B(n,e.parameters)}var Le="imperative",E=function(r){return r[r.NavigationStart=0]="NavigationStart",r[r.NavigationEnd=1]="NavigationEnd",r[r.NavigationCancel=2]="NavigationCancel",r[r.NavigationError=3]="NavigationError",r[r.RoutesRecognized=4]="RoutesRecognized",r[r.ResolveStart=5]="ResolveStart",r[r.ResolveEnd=6]="ResolveEnd",r[r.GuardsCheckStart=7]="GuardsCheckStart",r[r.GuardsCheckEnd=8]="GuardsCheckEnd",r[r.RouteConfigLoadStart=9]="RouteConfigLoadStart",r[r.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",r[r.ChildActivationStart=11]="ChildActivationStart",r[r.ChildActivationEnd=12]="ChildActivationEnd",r[r.ActivationStart=13]="ActivationStart",r[r.ActivationEnd=14]="ActivationEnd",r[r.Scroll=15]="Scroll",r[r.NavigationSkipped=16]="NavigationSkipped",r}(E||{}),k=class{id;url;constructor(n,e){this.id=n,this.url=e}},le=class extends k{type=E.NavigationStart;navigationTrigger;restoredState;constructor(n,e,t="imperative",i=null){super(n,e),this.navigationTrigger=t,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},L=class extends k{urlAfterRedirects;type=E.NavigationEnd;constructor(n,e,t){super(n,e),this.urlAfterRedirects=t}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},T=function(r){return r[r.Redirect=0]="Redirect",r[r.SupersededByNewNavigation=1]="SupersededByNewNavigation",r[r.NoDataFromResolver=2]="NoDataFromResolver",r[r.GuardRejected=3]="GuardRejected",r[r.Aborted=4]="Aborted",r}(T||{}),Fe=function(r){return r[r.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",r[r.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",r}(Fe||{}),V=class extends k{reason;code;type=E.NavigationCancel;constructor(n,e,t,i){super(n,e),this.reason=t,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},W=class extends k{reason;code;type=E.NavigationSkipped;constructor(n,e,t,i){super(n,e),this.reason=t,this.code=i}},$e=class extends k{error;target;type=E.NavigationError;constructor(n,e,t,i){super(n,e),this.error=t,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ot=class extends k{urlAfterRedirects;state;type=E.RoutesRecognized;constructor(n,e,t,i){super(n,e),this.urlAfterRedirects=t,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Bt=class extends k{urlAfterRedirects;state;type=E.GuardsCheckStart;constructor(n,e,t,i){super(n,e),this.urlAfterRedirects=t,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Vt=class extends k{urlAfterRedirects;state;shouldActivate;type=E.GuardsCheckEnd;constructor(n,e,t,i,o){super(n,e),this.urlAfterRedirects=t,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},qt=class extends k{urlAfterRedirects;state;type=E.ResolveStart;constructor(n,e,t,i){super(n,e),this.urlAfterRedirects=t,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Wt=class extends k{urlAfterRedirects;state;type=E.ResolveEnd;constructor(n,e,t,i){super(n,e),this.urlAfterRedirects=t,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Gt=class{route;type=E.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Yt=class{route;type=E.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Zt=class{snapshot;type=E.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Qt=class{snapshot;type=E.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Kt=class{snapshot;type=E.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Xt=class{snapshot;type=E.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ze=class{routerEvent;position;anchor;type=E.Scroll;constructor(n,e,t){this.routerEvent=n,this.position=e,this.anchor=t}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},st=class{},He=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function zs(r){return!(r instanceof st)&&!(r instanceof He)}function Hs(r,n){return r.providers&&!r._injector&&(r._injector=Et(r.providers,n,`Route: ${r.path}`)),r._injector??n}function F(r){return r.outlet||p}function Bs(r,n){let e=r.filter(t=>F(t)===n);return e.push(...r.filter(t=>F(t)!==n)),e}function ft(r){if(!r)return null;if(r.routeConfig?._injector)return r.routeConfig._injector;for(let n=r.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Jt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return ft(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Ce(this.rootInjector)}},Ce=(()=>{class r{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,t){let i=this.getOrCreateContext(e);i.outlet=t,this.contexts.set(e,i)}onChildOutletDestroyed(e){let t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Jt(this.rootInjector),this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(t){return new(t||r)(g(pe))};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),er=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Kr(n,this._root);return e?e.children.map(t=>t.value):[]}firstChild(n){let e=Kr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=Xr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Xr(n,this._root).map(e=>e.value)}};function Kr(r,n){if(r===n.value)return n;for(let e of n.children){let t=Kr(r,e);if(t)return t}return null}function Xr(r,n){if(r===n.value)return[n];for(let e of n.children){let t=Xr(r,e);if(t.length)return t.unshift(n),t}return[]}var N=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function Pe(r){let n={};return r&&r.children.forEach(e=>n[e.value.outlet]=e),n}var at=class extends er{snapshot;constructor(n,e){super(n),this.snapshot=e,an(this,n)}toString(){return this.snapshot.toString()}};function ao(r){let n=Vs(r),e=new P([new se("",{})]),t=new P({}),i=new P({}),o=new P({}),s=new P(""),a=new G(e,t,o,s,i,p,r,n.root);return a.snapshot=n.root,new at(new N(a,[]),n)}function Vs(r){let n={},e={},t={},i="",o=new Se([],n,t,i,e,p,r,null,{});return new ct("",new N(o,[]))}var G=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,t,i,o,s,a,c){this.urlSubject=n,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[ht]))??f(void 0),this.url=n,this.params=e,this.queryParams=t,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(v(n=>ye(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(v(n=>ye(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function tr(r,n,e="emptyOnly"){let t,{routeConfig:i}=r;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?t={params:h(h({},n.params),r.params),data:h(h({},n.data),r.data),resolve:h(h(h(h({},r.data),n.data),i?.data),r._resolvedData)}:t={params:h({},r.params),data:h({},r.data),resolve:h(h({},r.data),r._resolvedData??{})},i&&lo(i)&&(t.resolve[ht]=i.title),t}var Se=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[ht]}constructor(n,e,t,i,o,s,a,c,l){this.url=n,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??=ye(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ye(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(t=>t.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},ct=class extends er{url;constructor(n,e){super(e),this.url=n,an(this,e)}toString(){return co(this._root)}};function an(r,n){n.value._routerState=r,n.children.forEach(e=>an(r,e))}function co(r){let n=r.children.length>0?` { ${r.children.map(co).join(", ")} } `:"";return`${r.value}${n}`}function Vr(r){if(r.snapshot){let n=r.snapshot,e=r._futureSnapshot;r.snapshot=e,B(n.queryParams,e.queryParams)||r.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&r.fragmentSubject.next(e.fragment),B(n.params,e.params)||r.paramsSubject.next(e.params),vs(n.url,e.url)||r.urlSubject.next(e.url),B(n.data,e.data)||r.dataSubject.next(e.data)}else r.snapshot=r._futureSnapshot,r.dataSubject.next(r._futureSnapshot.data)}function Jr(r,n){let e=B(r.params,n.params)&&Cs(r.url,n.url),t=!r.parent!=!n.parent;return e&&!t&&(!r.parent||Jr(r.parent,n.parent))}function lo(r){return typeof r.title=="string"||r.title===null}var uo=new C(""),cn=(()=>{class r{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new Me;deactivateEvents=new Me;attachEvents=new Me;detachEvents=new Me;routerOutletData=ui(void 0);parentContexts=u(Ce);location=u(Qn);changeDetector=u(Or);inputBinder=u(pt,{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 R(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new R(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new R(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 R(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new en(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||r)};static \u0275dir=It({type:r,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[bt]})}return r})(),en=class{route;childContexts;parent;outletData;constructor(n,e,t,i){this.route=n,this.childContexts=e,this.parent=t,this.outletData=i}get(n,e){return n===G?this.route:n===Ce?this.childContexts:n===uo?this.outletData:this.parent.get(n,e)}},pt=new C(""),ln=(()=>{class r{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:t}=e,i=Rt([t.queryParams,t.params,t.data]).pipe(U(([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=fi(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||r)};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),un=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275cmp=Te({type:r,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(t,i){t&1&&ni(0,"router-outlet")},dependencies:[cn],encapsulation:2})}return r})();function dn(r){let n=r.children&&r.children.map(dn),e=n?O(h({},r),{children:n}):h({},r);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=un),e}function qs(r,n,e){let t=lt(r,n._root,e?e._root:void 0);return new at(t,n)}function lt(r,n,e){if(e&&r.shouldReuseRoute(n.value,e.value.snapshot)){let t=e.value;t._futureSnapshot=n.value;let i=Ws(r,n,e);return new N(t,i)}else{if(r.shouldAttach(n.value)){let o=r.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>lt(r,a)),s}}let t=Gs(n.value),i=n.children.map(o=>lt(r,o));return new N(t,i)}}function Ws(r,n,e){return n.children.map(t=>{for(let i of e.children)if(r.shouldReuseRoute(t.value,i.value.snapshot))return lt(r,t,i);return lt(r,t)})}function Gs(r){return new G(new P(r.url),new P(r.params),new P(r.queryParams),new P(r.fragment),new P(r.data),r.outlet,r.component,r)}var Be=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},ho="ngNavigationCancelingError";function rr(r,n){let{redirectTo:e,navigationBehaviorOptions:t}=ce(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=fo(!1,T.Redirect);return i.url=e,i.navigationBehaviorOptions=t,i}function fo(r,n){let e=new Error(`NavigationCancelingError: ${r||""}`);return e[ho]=!0,e.cancellationCode=n,e}function Ys(r){return po(r)&&ce(r.url)}function po(r){return!!r&&r[ho]}var Zs=(r,n,e,t)=>v(i=>(new tn(n,i.targetRouterState,i.currentRouterState,e,t).activate(r),i)),tn=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,t,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=t,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,n),Vr(this.futureState.root),this.activateChildRoutes(e,t,n)}deactivateChildRoutes(n,e,t){let i=Pe(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],t),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,t)})}deactivateRoutes(n,e,t){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=t.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,t);else o&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let t=e.getContext(n.value.outlet),i=t&&n.value.component?t.children:e,o=Pe(n);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(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let t=e.getContext(n.value.outlet),i=t&&n.value.component?t.children:e,o=Pe(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(n,e,t){let i=Pe(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],t),this.forwardEvent(new Xt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Qt(n.value.snapshot))}activateRoutes(n,e,t){let i=n.value,o=e?e.value:null;if(Vr(i),i===o)if(i.component){let s=t.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,t);else if(i.component){let s=t.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let 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),Vr(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,t)}},nr=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},je=class{component;route;constructor(n,e){this.component=n,this.route=e}};function Qs(r,n,e){let t=r._root,i=n?n._root:null;return tt(t,i,e,[t.value])}function Ks(r){let n=r.routeConfig?r.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:r,guards:n}}function qe(r,n){let e=Symbol(),t=n.get(r,e);return t===e?typeof r=="function"&&!On(r)?r:n.get(r):t}function tt(r,n,e,t,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Pe(n);return r.children.forEach(s=>{Xs(s,o[s.value.outlet],e,t.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>nt(a,e.getContext(s),i)),i}function Xs(r,n,e,t,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=r.value,s=n?n.value:null,a=e?e.getContext(r.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=Js(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new nr(t)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?tt(r,n,a?a.children:null,t,i):tt(r,n,e,t,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new je(a.outlet.component,s))}else s&&nt(n,a,i),i.canActivateChecks.push(new nr(t)),o.component?tt(r,null,a?a.children:null,t,i):tt(r,null,e,t,i);return i}function Js(r,n,e){if(typeof e=="function")return e(r,n);switch(e){case"pathParamsChange":return!ve(r.url,n.url);case"pathParamsOrQueryParamsChange":return!ve(r.url,n.url)||!B(r.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Jr(r,n)||!B(r.queryParams,n.queryParams);case"paramsChange":default:return!Jr(r,n)}}function nt(r,n,e){let t=Pe(r),i=r.value;Object.entries(t).forEach(([o,s])=>{i.component?n?nt(s,n.children.getContext(o),e):nt(s,null,e):nt(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new je(n.outlet.component,i)):e.canDeactivateChecks.push(new je(null,i)):e.canDeactivateChecks.push(new je(null,i))}function gt(r){return typeof r=="function"}function ea(r){return typeof r=="boolean"}function ta(r){return r&&gt(r.canLoad)}function ra(r){return r&&gt(r.canActivate)}function na(r){return r&&gt(r.canActivateChild)}function ia(r){return r&&gt(r.canDeactivate)}function oa(r){return r&&gt(r.canMatch)}function go(r){return r instanceof _n||r?.name==="EmptyError"}var Lt=Symbol("INITIAL_VALUE");function Ve(){return U(r=>Rt(r.map(n=>n.pipe(ne(1),Dn(Lt)))).pipe(v(n=>{for(let e of n)if(e!==!0){if(e===Lt)return Lt;if(e===!1||sa(e))return e}return!0}),Q(n=>n!==Lt),ne(1)))}function sa(r){return ce(r)||r instanceof Be}function aa(r,n){return A(e=>{let{targetSnapshot:t,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?f(O(h({},e),{guardsResult:!0})):ca(s,t,i,r).pipe(A(a=>a&&ea(a)?la(t,o,r,n):f(a)),v(a=>O(h({},e),{guardsResult:a})))})}function ca(r,n,e,t){return M(r).pipe(A(i=>pa(i.component,i.route,e,n,t)),ie(i=>i!==!0,!0))}function la(r,n,e,t){return M(n).pipe(fe(i=>En(da(i.route.parent,t),ua(i.route,t),fa(r,i.path,e),ha(r,i.route,e))),ie(i=>i!==!0,!0))}function ua(r,n){return r!==null&&n&&n(new Kt(r)),f(!0)}function da(r,n){return r!==null&&n&&n(new Zt(r)),f(!0)}function ha(r,n,e){let t=n.routeConfig?n.routeConfig.canActivate:null;if(!t||t.length===0)return f(!0);let i=t.map(o=>Ct(()=>{let s=ft(n)??e,a=qe(o,s),c=ra(a)?a.canActivate(n,r):z(s,()=>a(n,r));return te(c).pipe(ie())}));return f(i).pipe(Ve())}function fa(r,n,e){let t=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>Ks(s)).filter(s=>s!==null).map(s=>Ct(()=>{let a=s.guards.map(c=>{let l=ft(s.node)??e,d=qe(c,l),y=na(d)?d.canActivateChild(t,r):z(l,()=>d(t,r));return te(y).pipe(ie())});return f(a).pipe(Ve())}));return f(o).pipe(Ve())}function pa(r,n,e,t,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return f(!0);let s=o.map(a=>{let c=ft(n)??i,l=qe(a,c),d=ia(l)?l.canDeactivate(r,n,e,t):z(c,()=>l(r,n,e,t));return te(d).pipe(ie())});return f(s).pipe(Ve())}function ga(r,n,e,t){let i=n.canLoad;if(i===void 0||i.length===0)return f(!0);let o=i.map(s=>{let a=qe(s,r),c=ta(a)?a.canLoad(n,e):z(r,()=>a(n,e));return te(c)});return f(o).pipe(Ve(),mo(t))}function mo(r){return Cn(w(n=>{if(typeof n!="boolean")throw rr(r,n)}),v(n=>n===!0))}function ma(r,n,e,t){let i=n.canMatch;if(!i||i.length===0)return f(!0);let o=i.map(s=>{let a=qe(s,r),c=oa(a)?a.canMatch(n,e):z(r,()=>a(n,e));return te(c)});return f(o).pipe(Ve(),mo(t))}var ut=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},dt=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function ke(r){return he(new ut(r))}function va(r){return he(new R(4e3,!1))}function Sa(r){return he(fo(!1,T.GuardRejected))}var rn=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let t=[],i=e.root;for(;;){if(t=t.concat(i.segments),i.numberOfChildren===0)return f(t);if(i.numberOfChildren>1||!i.children[p])return va(`${n.redirectTo}`);i=i.children[p]}}applyRedirectCommands(n,e,t,i,o){return ya(e,i,o).pipe(v(s=>{if(s instanceof q)throw new dt(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,t);if(s[0]==="/")throw new dt(a);return a}))}applyRedirectCreateUrlTree(n,e,t,i){let o=this.createSegmentGroup(n,e.root,t,i);return new q(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let t={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);t[i]=e[a]}else t[i]=o}),t}createSegmentGroup(n,e,t,i){let o=this.createSegments(n,e.segments,t,i),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,t,i)}),new S(o,s)}createSegments(n,e,t,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,t))}findPosParam(n,e,t){let i=t[e.path.substring(1)];if(!i)throw new R(4001,!1);return i}findOrReturn(n,e){let t=0;for(let i of e){if(i.path===n.path)return e.splice(t),i;t++}return n}};function ya(r,n,e){if(typeof r=="string")return f(r);let t=r,{queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,params:l,data:d,title:y}=n;return te(z(e,()=>t({params:l,data:d,queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,title:y})))}var nn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ra(r,n,e,t,i){let o=vo(r,n,e);return o.matched?(t=Hs(n,t),ma(t,n,e,i).pipe(v(s=>s===!0?o:h({},nn)))):f(o)}function vo(r,n,e){if(n.path==="**")return Ca(e);if(n.path==="")return n.pathMatch==="full"&&(r.hasChildren()||e.length>0)?h({},nn):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||qi)(e,r,n);if(!i)return h({},nn);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?h(h({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Ca(r){return{matched:!0,parameters:r.length>0?Gi(r).parameters:{},consumedSegments:r,remainingSegments:[],positionalParamSegments:{}}}function Hi(r,n,e,t){return e.length>0&&_a(r,e,t)?{segmentGroup:new S(n,ba(t,new S(e,r.children))),slicedSegments:[]}:e.length===0&&Ea(r,e,t)?{segmentGroup:new S(r.segments,wa(r,e,t,r.children)),slicedSegments:e}:{segmentGroup:new S(r.segments,r.children),slicedSegments:e}}function wa(r,n,e,t){let i={};for(let o of e)if(or(r,n,o)&&!t[F(o)]){let s=new S([],{});i[F(o)]=s}return h(h({},t),i)}function ba(r,n){let e={};e[p]=n;for(let t of r)if(t.path===""&&F(t)!==p){let i=new S([],{});e[F(t)]=i}return e}function _a(r,n,e){return e.some(t=>or(r,n,t)&&F(t)!==p)}function Ea(r,n,e){return e.some(t=>or(r,n,t))}function or(r,n,e){return(r.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Ia(r,n,e){return n.length===0&&!r.children[e]}var on=class{};function Ta(r,n,e,t,i,o,s="emptyOnly"){return new sn(r,n,e,t,i,s,o).recognize()}var Ma=31,sn=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,t,i,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=t,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new rn(this.urlSerializer,this.urlTree)}noMatchError(n){return new R(4002,`'${n.segmentGroup}'`)}recognize(){let n=Hi(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(v(({children:e,rootSnapshot:t})=>{let i=new N(t,e),o=new ct("",i),s=ro(t,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new Se([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,p,e).pipe(v(t=>({children:t,rootSnapshot:e})),K(t=>{if(t instanceof dt)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof ut?this.noMatchError(t):t}))}processSegmentGroup(n,e,t,i,o){return t.segments.length===0&&t.hasChildren()?this.processChildren(n,e,t,o):this.processSegment(n,e,t,t.segments,i,!0,o).pipe(v(s=>s instanceof N?[s]:[]))}processChildren(n,e,t,i){let o=[];for(let s of Object.keys(t.children))s==="primary"?o.unshift(s):o.push(s);return M(o).pipe(fe(s=>{let a=t.children[s],c=Bs(e,s);return this.processSegmentGroup(n,c,a,s,i)}),Mn((s,a)=>(s.push(...a),s)),vr(null),Tn(),A(s=>{if(s===null)return ke(t);let a=So(s);return Aa(a),f(a)}))}processSegment(n,e,t,i,o,s,a){return M(e).pipe(fe(c=>this.processSegmentAgainstRoute(c._injector??n,e,c,t,i,o,s,a).pipe(K(l=>{if(l instanceof ut)return f(null);throw l}))),ie(c=>!!c),K(c=>{if(go(c))return Ia(t,i,o)?f(new on):ke(t);throw c}))}processSegmentAgainstRoute(n,e,t,i,o,s,a,c){return F(t)!==s&&(s===p||!or(i,o,t))?ke(i):t.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,t,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,t,o,s,c):ke(i)}expandSegmentAgainstRouteUsingRedirect(n,e,t,i,o,s,a){let{matched:c,parameters:l,consumedSegments:d,positionalParamSegments:y,remainingSegments:b}=vo(e,i,o);if(!c)return ke(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Ma&&(this.allowRedirects=!1));let I=new Se(o,l,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Bi(i),F(i),i.component??i._loadedComponent??null,i,Vi(i)),D=tr(I,a,this.paramsInheritanceStrategy);return I.params=Object.freeze(D.params),I.data=Object.freeze(D.data),this.applyRedirects.applyRedirectCommands(d,i.redirectTo,y,I,n).pipe(U(de=>this.applyRedirects.lineralizeSegments(i,de)),A(de=>this.processSegment(n,t,e,de.concat(b),s,!1,a)))}matchSegmentAgainstRoute(n,e,t,i,o,s){let a=Ra(e,t,i,n,this.urlSerializer);return t.path==="**"&&(e.children={}),a.pipe(U(c=>c.matched?(n=t._injector??n,this.getChildConfig(n,t,i).pipe(U(({routes:l})=>{let d=t._loadedInjector??n,{parameters:y,consumedSegments:b,remainingSegments:I}=c,D=new Se(b,y,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Bi(t),F(t),t.component??t._loadedComponent??null,t,Vi(t)),hr=tr(D,s,this.paramsInheritanceStrategy);D.params=Object.freeze(hr.params),D.data=Object.freeze(hr.data);let{segmentGroup:de,slicedSegments:fr}=Hi(e,b,I,l);if(fr.length===0&&de.hasChildren())return this.processChildren(d,l,de,D).pipe(v(St=>new N(D,St)));if(l.length===0&&fr.length===0)return f(new N(D,[]));let qo=F(t)===o;return this.processSegment(d,l,de,fr,qo?p:o,!0,D).pipe(v(St=>new N(D,St instanceof N?[St]:[])))}))):ke(e)))}getChildConfig(n,e,t){return e.children?f({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?f({routes:e._loadedRoutes,injector:e._loadedInjector}):ga(n,e,t,this.urlSerializer).pipe(A(i=>i?this.configLoader.loadChildren(n,e).pipe(w(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):Sa(e))):f({routes:[],injector:n})}};function Aa(r){r.sort((n,e)=>n.value.outlet===p?-1:e.value.outlet===p?1:n.value.outlet.localeCompare(e.value.outlet))}function Da(r){let n=r.value.routeConfig;return n&&n.path===""}function So(r){let n=[],e=new Set;for(let t of r){if(!Da(t)){n.push(t);continue}let i=n.find(o=>t.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...t.children),e.add(i)):n.push(t)}for(let t of e){let i=So(t.children);n.push(new N(t.value,i))}return n.filter(t=>!e.has(t))}function Bi(r){return r.data||{}}function Vi(r){return r.resolve||{}}function Oa(r,n,e,t,i,o){return A(s=>Ta(r,n,e,t,s.extractedUrl,i,o).pipe(v(({state:a,tree:c})=>O(h({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function xa(r,n){return A(e=>{let{targetSnapshot:t,guards:{canActivateChecks:i}}=e;if(!i.length)return f(e);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of yo(c))s.add(l);let a=0;return M(s).pipe(fe(c=>o.has(c)?Na(c,t,r,n):(c.data=tr(c,c.parent,r).resolve,f(void 0))),w(()=>a++),Sr(1),A(c=>a===s.size?f(e):Z))})}function yo(r){let n=r.children.map(e=>yo(e)).flat();return[r,...n]}function Na(r,n,e,t){let i=r.routeConfig,o=r._resolve;return i?.title!==void 0&&!lo(i)&&(o[ht]=i.title),Ct(()=>(r.data=tr(r,r.parent,e).resolve,ka(o,r,n,t).pipe(v(s=>(r._resolvedData=s,r.data=h(h({},r.data),s),null)))))}function ka(r,n,e,t){let i=Gr(r);if(i.length===0)return f({});let o={};return M(i).pipe(A(s=>Pa(r[s],n,e,t).pipe(ie(),w(a=>{if(a instanceof Be)throw rr(new ae,a);o[s]=a}))),Sr(1),v(()=>o),K(s=>go(s)?Z:he(s)))}function Pa(r,n,e,t){let i=ft(n)??t,o=qe(r,i),s=o.resolve?o.resolve(n,e):z(i,()=>o(n,e));return te(s)}function qr(r){return U(n=>{let e=r(n);return e?M(e).pipe(v(()=>n)):f(n)})}var hn=(()=>{class r{buildTitle(e){let t,i=e.root;for(;i!==void 0;)t=this.getResolvedTitleForRoute(i)??t,i=i.children.find(o=>o.outlet===p);return t}getResolvedTitleForRoute(e){return e.data[ht]}static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:()=>u(Ro),providedIn:"root"})}return r})(),Ro=(()=>{class r extends hn{title;constructor(e){super(),this.title=e}updateTitle(e){let t=this.buildTitle(e);t!==void 0&&this.title.setTitle(t)}static \u0275fac=function(t){return new(t||r)(g(Pi))};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),ue=new C("",{providedIn:"root",factory:()=>({})}),we=new C(""),sr=(()=>{class r{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=u(ci);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return f(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let t=te(e.loadComponent()).pipe(v(wo),w(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),be(()=>{this.componentLoaders.delete(e)})),i=new gr(t,()=>new j).pipe(pr());return this.componentLoaders.set(e,i),i}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return f({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);let o=Co(t,this.compiler,e,this.onLoadEndListener).pipe(be(()=>{this.childrenLoaders.delete(t)})),s=new gr(o,()=>new j).pipe(pr());return this.childrenLoaders.set(t,s),s}static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function Co(r,n,e,t){return te(r.loadChildren()).pipe(v(wo),A(i=>i instanceof Xn||Array.isArray(i)?f(i):M(n.compileModuleAsync(i))),v(i=>{t&&t(r);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(e).injector,s=o.get(we,[],{optional:!0,self:!0}).flat()),{routes:s.map(dn),injector:o}}))}function Ua(r){return r&&typeof r=="object"&&"default"in r}function wo(r){return Ua(r)?r.default:r}var ar=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:()=>u(La),providedIn:"root"})}return r})(),La=(()=>{class r{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),fn=new C(""),pn=new C("");function bo(r,n,e){let t=r.get(pn),i=r.get(_);if(!i.startViewTransition||t.skipNextTransition)return t.skipNextTransition=!1,new Promise(l=>setTimeout(l));let o,s=new Promise(l=>{o=l}),a=i.startViewTransition(()=>(o(),ja(r))),{onViewTransitionCreated:c}=t;return c&&z(r,()=>c({transition:a,from:n,to:e})),s}function ja(r){return new Promise(n=>{ei({read:()=>setTimeout(n)},{injector:r})})}var gn=new C(""),cr=(()=>{class r{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new j;transitionAbortWithErrorSubject=new j;configLoader=u(sr);environmentInjector=u(pe);destroyRef=u(Nn);urlSerializer=u(Re);rootContexts=u(Ce);location=u(xe);inputBindingEnabled=u(pt,{optional:!0})!==null;titleStrategy=u(hn);options=u(ue,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=u(ar);createViewTransition=u(fn,{optional:!0});navigationErrorHandler=u(gn,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>f(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new Gt(i)),t=i=>this.events.next(new Yt(i));this.configLoader.onLoadEndListener=t,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let t=++this.navigationId;this.transitions?.next(O(h({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:t}))}setupNavigations(e){return this.transitions=new P(null),this.transitions.pipe(Q(t=>t!==null),U(t=>{let i=!1;return f(t).pipe(U(o=>{if(this.navigationId>t.id)return this.cancelNavigationTransition(t,"",T.SupersededByNewNavigation),Z;this.currentTransition=t,this.currentNavigation={id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?O(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()};let s=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),a=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!s&&a!=="reload"){let c="";return this.events.next(new W(o.id,this.urlSerializer.serialize(o.rawUrl),c,Fe.IgnoredSameUrlNavigation)),o.resolve(!1),Z}if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return f(o).pipe(U(c=>(this.events.next(new le(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),c.id!==this.navigationId?Z:Promise.resolve(c))),Oa(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),w(c=>{t.targetSnapshot=c.targetSnapshot,t.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation=O(h({},this.currentNavigation),{finalUrl:c.urlAfterRedirects});let l=new ot(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:c,extractedUrl:l,source:d,restoredState:y,extras:b}=o,I=new le(c,this.urlSerializer.serialize(l),d,y);this.events.next(I);let D=ao(this.rootComponentType).snapshot;return this.currentTransition=t=O(h({},o),{targetSnapshot:D,urlAfterRedirects:l,extras:O(h({},b),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=l,f(t)}else{let c="";return this.events.next(new W(o.id,this.urlSerializer.serialize(o.extractedUrl),c,Fe.IgnoredByUrlHandlingStrategy)),o.resolve(!1),Z}}),w(o=>{let s=new Bt(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(s)}),v(o=>(this.currentTransition=t=O(h({},o),{guards:Qs(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),t)),aa(this.environmentInjector,o=>this.events.next(o)),w(o=>{if(t.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw rr(this.urlSerializer,o.guardsResult);let s=new Vt(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(s)}),Q(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",T.GuardRejected),!1)),qr(o=>{if(o.guards.canActivateChecks.length!==0)return f(o).pipe(w(s=>{let a=new qt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),U(s=>{let a=!1;return f(s).pipe(xa(this.paramsInheritanceStrategy,this.environmentInjector),w({next:()=>a=!0,complete:()=>{a||this.cancelNavigationTransition(s,"",T.NoDataFromResolver)}}))}),w(s=>{let a=new Wt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}))}),qr(o=>{let s=a=>{let c=[];a.routeConfig?.loadComponent&&!a.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(a.routeConfig).pipe(w(l=>{a.component=l}),v(()=>{})));for(let l of a.children)c.push(...s(l));return c};return Rt(s(o.targetSnapshot.root)).pipe(vr(null),ne(1))}),qr(()=>this.afterPreactivation()),U(()=>{let{currentSnapshot:o,targetSnapshot:s}=t,a=this.createViewTransition?.(this.environmentInjector,o.root,s.root);return a?M(a).pipe(v(()=>t)):f(t)}),v(o=>{let s=qs(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=t=O(h({},o),{targetRouterState:s}),this.currentNavigation.targetRouterState=s,t}),w(()=>{this.events.next(new st)}),Zs(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),ne(1),yr(new wn(o=>{let s=t.abortController.signal,a=()=>o.next();return s.addEventListener("abort",a),()=>s.removeEventListener("abort",a)}).pipe(Q(()=>!i&&!t.targetRouterState),w(()=>{this.cancelNavigationTransition(t,t.abortController.signal.reason+"",T.Aborted)}))),w({next:o=>{i=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new L(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{i=!0}}),yr(this.transitionAbortWithErrorSubject.pipe(w(o=>{throw o}))),be(()=>{i||this.cancelNavigationTransition(t,"",T.SupersededByNewNavigation),this.currentTransition?.id===t.id&&(this.currentNavigation=null,this.currentTransition=null)}),K(o=>{if(this.destroyed)return t.resolve(!1),Z;if(i=!0,po(o))this.events.next(new V(t.id,this.urlSerializer.serialize(t.extractedUrl),o.message,o.cancellationCode)),Ys(o)?this.events.next(new He(o.url,o.navigationBehaviorOptions)):t.resolve(!1);else{let s=new $e(t.id,this.urlSerializer.serialize(t.extractedUrl),o,t.targetSnapshot??void 0);try{let a=z(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(a instanceof Be){let{message:c,cancellationCode:l}=rr(this.urlSerializer,a);this.events.next(new V(t.id,this.urlSerializer.serialize(t.extractedUrl),c,l)),this.events.next(new He(a.redirectTo,a.navigationBehaviorOptions))}else throw this.events.next(s),o}catch(a){this.options.resolveNavigationPromiseOnError?t.resolve(!1):t.reject(a)}}return Z}))}))}cancelNavigationTransition(e,t,i){let o=new V(e.id,this.urlSerializer.serialize(e.extractedUrl),t,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),t=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==t?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function Fa(r){return r!==Le}var _o=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:()=>u($a),providedIn:"root"})}return r})(),ir=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},$a=(()=>{class r extends ir{static \u0275fac=(()=>{let e;return function(i){return(e||(e=wr(r)))(i||r)}})();static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Eo=(()=>{class r{urlSerializer=u(Re);options=u(ue,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=u(xe);urlHandlingStrategy=u(ar);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new q;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:t,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,t):t,s=i??o;return s instanceof q?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:t,initialUrl:i}){t&&e?(this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(t,i),this.routerState=e):this.rawUrlTree=i}routerState=ao(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:()=>u(za),providedIn:"root"})}return r})(),za=(()=>{class r extends Eo{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(t=>{t.type==="popstate"&&setTimeout(()=>{e(t.url,t.state,"popstate")})})}handleRouterEvent(e,t){e instanceof le?this.updateStateMemento():e instanceof W?this.commitTransition(t):e instanceof ot?this.urlUpdateStrategy==="eager"&&(t.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(t),t)):e instanceof st?(this.commitTransition(t),this.urlUpdateStrategy==="deferred"&&!t.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(t),t)):e instanceof V&&e.code!==T.SupersededByNewNavigation&&e.code!==T.Redirect?this.restoreHistory(t):e instanceof $e?this.restoreHistory(t,!0):e instanceof L&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:t,id:i}){let{replaceUrl:o,state:s}=t;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,c=h(h({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",c)}else{let a=h(h({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,t=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(t&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,t){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=wr(r)))(i||r)}})();static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function lr(r,n){r.events.pipe(Q(e=>e instanceof L||e instanceof V||e instanceof $e||e instanceof W),v(e=>e instanceof L||e instanceof W?0:(e instanceof V?e.code===T.Redirect||e.code===T.SupersededByNewNavigation:!1)?2:1),Q(e=>e!==2),ne(1)).subscribe(()=>{n()})}var Ha={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ba={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Y=(()=>{class r{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=u(Ir);stateManager=u(Eo);options=u(ue,{optional:!0})||{};pendingTasks=u(Pn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=u(cr);urlSerializer=u(Re);location=u(xe);urlHandlingStrategy=u(ar);injector=u(pe);_events=new j;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=u(_o);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=u(we,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!u(pt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new yt;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(t=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(t,o),t instanceof V&&t.code!==T.Redirect&&t.code!==T.SupersededByNewNavigation)this.navigated=!0;else if(t instanceof L)this.navigated=!0;else if(t instanceof He){let s=t.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(t.url,i.currentRawUrl),c=h({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Fa(i.source)},s);this.scheduleNavigation(a,Le,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}zs(t)&&this._events.next(t)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Le,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,t,i)=>{this.navigateToSyncWithBrowser(e,i,t)})}navigateToSyncWithBrowser(e,t,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let c=h({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(e);this.scheduleNavigation(a,t,s,o).catch(c=>{this.injector.get(wt)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(dn),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,t={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=t,l=c?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let y;try{let b=i?i.snapshot:this.routerState.snapshot.root;y=no(b)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),y=this.currentUrlTree.root}return io(y,e,d,l??null)}navigateByUrl(e,t={skipLocationChange:!1}){let i=ce(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Le,null,t)}navigate(e,t={skipLocationChange:!1}){return Va(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,t){let i;if(t===!0?i=h({},Ha):t===!1?i=h({},Ba):i=t,ce(e))return ji(this.currentUrlTree,e,i);let o=this.parseUrl(e);return ji(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((t,[i,o])=>(o!=null&&(t[i]=o),t),{})}scheduleNavigation(e,t,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((y,b)=>{a=y,c=b});let d=this.pendingTasks.add();return lr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:t,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(y=>Promise.reject(y))}static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function Va(r){for(let n=0;n<r.length;n++)if(r[n]==null)throw new R(4008,!1)}var Io=(()=>{class r{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=kn(null);get href(){return li(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new j;applicationErrorHandler=u(wt);options=u(ue,{optional:!0});constructor(e,t,i,o,s,a){this.router=e,this.route=t,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.reactiveHref.set(u(new Ot("href"),{optional:!0}));let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,t=i=>i==="merge"||i==="preserve";e||=t(this.queryParamsHandling),e||=!this.queryParamsHandling&&!t(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(i=>{i instanceof L&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ce(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,t,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||t||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c)?.catch(l=>{this.applicationErrorHandler(l)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,t){let i=this.renderer,o=this.el.nativeElement;t!==null?i.setAttribute(o,e,t):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:ce(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(t){return new(t||r)(Ie(Y),Ie(G),Un("tabindex"),Ie(Yn),Ie(_t),Ie(Oe))};static \u0275dir=It({type:r,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(t,i){t&1&&ii("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),t&2&&At("href",i.reactiveHref(),Wn)("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ae],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ae],replaceUrl:[2,"replaceUrl","replaceUrl",Ae],routerLink:"routerLink"},features:[bt]})}return r})();var mt=class{};var To=(()=>{class r{router;injector;preloadingStrategy;loader;subscription;constructor(e,t,i,o){this.router=e,this.injector=t,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(Q(e=>e instanceof L),fe(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){let i=[];for(let o of t){o.providers&&!o._injector&&(o._injector=Et(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return M(i).pipe(mr())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let i;t.loadChildren&&t.canLoad===void 0?i=this.loader.loadChildren(e,t):i=f(null);let o=i.pipe(A(s=>s===null?f(void 0):(t._loadedRoutes=s.routes,t._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(t.loadComponent&&!t._loadedComponent){let s=this.loader.loadComponent(t);return M([o,s]).pipe(mr())}else return o})}static \u0275fac=function(t){return new(t||r)(g(Y),g(pe),g(mt),g(sr))};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Mo=new C(""),qa=(()=>{class r{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Le;restoredId=0;store={};constructor(e,t,i,o,s={}){this.urlSerializer=e,this.transitions=t,this.viewportScroller=i,this.zone=o,this.options=s,s.scrollPositionRestoration||="disabled",s.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(e=>{e instanceof le?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof L?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof W&&e.code===Fe.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ze&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.zone.runOutsideAngular(()=>Rn(this,null,function*(){yield new Promise(i=>{setTimeout(i),typeof requestAnimationFrame<"u"&&requestAnimationFrame(i)}),this.zone.run(()=>{this.transitions.events.next(new ze(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,t))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(t){Zn()};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})();function Wa(r,...n){return Rr([{provide:we,multi:!0,useValue:r},[],{provide:G,useFactory:Ao,deps:[Y]},{provide:Ar,multi:!0,useFactory:Do},n.map(e=>e.\u0275providers)])}function Ao(r){return r.routerState.root}function We(r,n){return{\u0275kind:r,\u0275providers:n}}function Do(){let r=u(ge);return n=>{let e=r.get(Dr);if(n!==e.components[0])return;let t=r.get(Y),i=r.get(Oo);r.get(vn)===1&&t.initialNavigation(),r.get(ko,null,{optional:!0})?.setUpPreloading(),r.get(Mo,null,{optional:!0})?.init(),t.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Oo=new C("",{factory:()=>new j}),vn=new C("",{providedIn:"root",factory:()=>1});function xo(){let r=[{provide:vn,useValue:0},Mr(()=>{let n=u(ge);return n.get(mi,Promise.resolve()).then(()=>new Promise(t=>{let i=n.get(Y),o=n.get(Oo);lr(i,()=>{t(!0)}),n.get(cr).afterPreactivation=()=>(t(!0),o.closed?f(void 0):o),i.initialNavigation()}))})];return We(2,r)}function No(){let r=[Mr(()=>{u(Y).setUpLocationChangeListener()}),{provide:vn,useValue:2}];return We(3,r)}var ko=new C("");function Po(r){return We(0,[{provide:ko,useExisting:To},{provide:mt,useExisting:r}])}function Ga(){return We(6,[{provide:Oe,useClass:xr}])}function Uo(){return We(8,[ln,{provide:pt,useExisting:ln}])}function Lo(r){Kn("NgRouterViewTransitions");let n=[{provide:fn,useValue:bo},{provide:pn,useValue:h({skipNextTransition:!!r?.skipInitialTransition},r)}];return We(9,n)}var jo=[xe,{provide:Re,useClass:ae},Y,Ce,{provide:G,useFactory:Ao,deps:[Y]},sr,[]],Ya=(()=>{class r{constructor(){}static forRoot(e,t){return{ngModule:r,providers:[jo,[],{provide:we,multi:!0,useValue:e},[],t?.errorHandler?{provide:gn,useValue:t.errorHandler}:[],{provide:ue,useValue:t||{}},t?.useHash?Qa():Ka(),Za(),t?.preloadingStrategy?Po(t.preloadingStrategy).\u0275providers:[],t?.initialNavigation?Xa(t):[],t?.bindToComponentInputs?Uo().\u0275providers:[],t?.enableViewTransitions?Lo().\u0275providers:[],Ja()]}}static forChild(e){return{ngModule:r,providers:[{provide:we,multi:!0,useValue:e}]}}static \u0275fac=function(t){return new(t||r)};static \u0275mod=H({type:r});static \u0275inj=$({})}return r})();function Za(){return{provide:Mo,useFactory:()=>{let r=u(bi),n=u(J),e=u(ue),t=u(cr),i=u(Re);return e.scrollOffset&&r.setOffset(e.scrollOffset),new qa(i,t,r,n,e)}}}function Qa(){return{provide:Oe,useClass:xr}}function Ka(){return{provide:Oe,useClass:vi}}function Xa(r){return[r.initialNavigation==="disabled"?No().\u0275providers:[],r.initialNavigation==="enabledBlocking"?xo().\u0275providers:[]]}var mn=new C("");function Ja(){return[{provide:mn,useFactory:Do},{provide:Ar,multi:!0,useExisting:mn}]}var ur;function ec(){if(ur===void 0&&(ur=null,typeof window<"u")){let r=window;r.trustedTypes!==void 0&&(ur=r.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return ur}function vt(r){return ec()?.createHTML(r)||r}function Fo(r){return Error(`Unable to find icon with the name "${r}"`)}function tc(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function $o(r){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${r}".`)}function zo(r){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${r}".`)}var re=class{url;svgText;options;svgElement;constructor(n,e,t){this.url=n,this.svgText=e,this.options=t}},Bo=(()=>{class r{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,t,i,o){this._httpClient=e,this._sanitizer=t,this._errorHandler=o,this._document=i}addSvgIcon(e,t,i){return this.addSvgIconInNamespace("",e,t,i)}addSvgIconLiteral(e,t,i){return this.addSvgIconLiteralInNamespace("",e,t,i)}addSvgIconInNamespace(e,t,i,o){return this._addSvgIconConfig(e,t,new re(i,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,i,o){let s=this._sanitizer.sanitize(x.HTML,i);if(!s)throw zo(i);let a=vt(s);return this._addSvgIconConfig(e,t,new re("",a,o))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,i){return this._addSvgIconSetConfig(e,new re(t,null,i))}addSvgIconSetLiteralInNamespace(e,t,i){let o=this._sanitizer.sanitize(x.HTML,t);if(!o)throw zo(t);let s=vt(o);return this._addSvgIconSetConfig(e,new re("",s,i))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let t=this._sanitizer.sanitize(x.RESOURCE_URL,e);if(!t)throw $o(e);let i=this._cachedIconsByUrl.get(t);return i?f(dr(i)):this._loadSvgIconFromConfig(new re(e,null)).pipe(w(o=>this._cachedIconsByUrl.set(t,o)),v(o=>dr(o)))}getNamedSvgIcon(e,t=""){let i=Ho(t,e),o=this._svgIconConfigs.get(i);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(t,e),o)return this._svgIconConfigs.set(i,o),this._getSvgFromConfig(o);let s=this._iconSetConfigs.get(t);return s?this._getSvgFromIconSetConfigs(e,s):he(Fo(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?f(dr(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(v(t=>dr(t)))}_getSvgFromIconSetConfigs(e,t){let i=this._extractIconWithNameFromAnySet(e,t);if(i)return f(i);let o=t.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(K(a=>{let l=`Loading icon set URL: ${this._sanitizer.sanitize(x.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(l)),f(null)})));return In(o).pipe(v(()=>{let s=this._extractIconWithNameFromAnySet(e,t);if(!s)throw Fo(e);return s}))}_extractIconWithNameFromAnySet(e,t){for(let i=t.length-1;i>=0;i--){let o=t[i];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(w(t=>e.svgText=t),v(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?f(null):this._fetchIcon(e).pipe(w(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,i){let o=e.querySelector(`[id="${t}"]`);if(!o)return null;let s=o.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,i);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),i);let a=this._svgElementFromString(vt("<svg></svg>"));return a.appendChild(s),this._setSvgAttributes(a,i)}_svgElementFromString(e){let t=this._document.createElement("DIV");t.innerHTML=e;let i=t.querySelector("svg");if(!i)throw Error("<svg> tag not found");return i}_toSvgElement(e){let t=this._svgElementFromString(vt("<svg></svg>")),i=e.attributes;for(let o=0;o<i.length;o++){let{name:s,value:a}=i[o];s!=="id"&&t.setAttribute(s,a)}for(let o=0;o<e.childNodes.length;o++)e.childNodes[o].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[o].cloneNode(!0));return t}_setSvgAttributes(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}_fetchIcon(e){let{url:t,options:i}=e,o=i?.withCredentials??!1;if(!this._httpClient)throw tc();if(t==null)throw Error(`Cannot fetch icon from URL "${t}".`);let s=this._sanitizer.sanitize(x.RESOURCE_URL,t);if(!s)throw $o(t);let a=this._inProgressUrlFetches.get(s);if(a)return a;let c=this._httpClient.get(s,{responseType:"text",withCredentials:o}).pipe(v(l=>vt(l)),be(()=>this._inProgressUrlFetches.delete(s)),An());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,t,i){return this._svgIconConfigs.set(Ho(e,t),i),this}_addSvgIconSetConfig(e,t){let i=this._iconSetConfigs.get(e);return i?i.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){let t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let i=0;i<this._resolvers.length;i++){let o=this._resolvers[i](t,e);if(o)return rc(o)?new re(o.url,null,o.options):new re(o,null)}}static \u0275fac=function(t){return new(t||r)(g(_i,8),g(zr),g(_,8),g(oe))};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function dr(r){return r.cloneNode(!0)}function Ho(r,n){return r+":"+n}function rc(r){return!!(r.url&&r.options)}var nc=["*"],ic=new C("MAT_ICON_DEFAULT_OPTIONS"),oc=new C("mat-icon-location",{providedIn:"root",factory:sc});function sc(){let r=u(_),n=r?r.location:null;return{getPathname:()=>n?n.pathname+n.search:""}}var Vo=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ac=Vo.map(r=>`[${r}]`).join(", "),cc=/^url\(['"]?#(.*?)['"]?\)$/,ou=(()=>{class r{_elementRef=u(_t);_iconRegistry=u(Bo);_location=u(oc);_errorHandler=u(oe);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=yt.EMPTY;constructor(){let e=u(new Ot("aria-hidden"),{optional:!0}),t=u(ic,{optional:!0});t&&(t.color&&(this.color=this._defaultColor=t.color),t.fontSet&&(this.fontSet=t.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){let i=e.childNodes[t];(i.nodeType!==1||i.nodeName.toLowerCase()==="svg")&&i.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(i=>i.length>0);this._previousFontSetClass.forEach(i=>e.classList.remove(i)),t.forEach(i=>e.classList.add(i)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let t=this._elementsWithExternalReferences;t&&t.forEach((i,o)=>{i.forEach(s=>{o.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){let t=e.querySelectorAll(ac),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o<t.length;o++)Vo.forEach(s=>{let a=t[o],c=a.getAttribute(s),l=c?c.match(cc):null;if(l){let d=i.get(a);d||(d=[],i.set(a,d)),d.push({name:s,value:l[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[t,i]=this._splitIconName(e);t&&(this._svgNamespace=t),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,t).pipe(ne(1)).subscribe(o=>this._setSvgElement(o),o=>{let s=`Error retrieving icon ${t}:${i}! ${o.message}`;this._errorHandler.handleError(new Error(s))})}}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=Te({type:r,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(t,i){t&2&&(At("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),ai(i.color?"mat-"+i.color:""),Dt("mat-icon-inline",i.inline)("mat-icon-no-color",i.color!=="primary"&&i.color!=="accent"&&i.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",Ae],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:nc,decls:1,vars:0,template:function(t,i){t&1&&(oi(),si(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}
1
+ import{$a as Fn,$b as ni,A as v,Ad as Si,B as Rt,Bd as yi,C as A,Cd as Ri,D as mr,Da as ge,Db as Jn,Dd as Ci,E as En,Ea as _,Eb as Me,F as Ct,Fa as Nn,Fb as J,Fd as wi,G as In,Ga as oe,Gb as ei,Gd as bi,Ha as wt,Hb as Ir,Hd as _i,Ib as ti,Ja as kn,Jb as Tt,Ka as Pn,Kb as Mt,L as Q,La as Cr,Lb as Tr,M as K,Mb as ri,N as fe,Na as bt,Oa as wr,Ob as Mr,Oe as Qe,Pa as Un,Pb as Ar,Q as vr,Qa as _t,Qb as Dr,R as ne,Rb as At,Rc as ci,Sa as Ln,Sc as li,Ta as br,Ua as jn,Va as Ge,W as be,Wc as Ot,X as ie,Xa as _r,Y as Sr,Ya as Er,Yc as ui,Z as Tn,Za as _e,_a as Ee,a as h,ab as $n,ad as Or,b as O,ba as Mn,bb as zn,ca as An,cb as Hn,cd as di,db as Bn,dd as hi,eb as Vn,ed as Ae,f as Rn,fa as Dn,fb as qn,fc as ii,g as yt,ga as U,gb as x,ha as yr,hc as oi,hd as fi,i as Cn,ia as w,ic as si,id as De,j as wn,jb as Wn,jd as pi,k as pr,kd as gi,l as gr,la as R,ld as mi,m as j,ma as X,mb as Ye,md as Oe,nd as vi,o as P,oa as m,ob as Gn,od as xe,pa as $,pb as Yn,pd as xr,pe as Ze,qa as On,qb as Ie,r as Z,ra as C,rb as Zn,s as M,sa as g,sb as Qn,sc as Dt,se as Ei,t as f,ta as u,tb as Kn,u as he,ua as Rr,ub as Xn,uc as ai,v as bn,vb as Et,w as _n,wa as xn,wb as Te,xa as pe,xb as H,ya as z,yb as It}from"./chunk-5KKRPVJE.js";var Ne=new C(""),Ur=(()=>{class r{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(i=>{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,i,o){return this._findPluginFor(t).addEventListener(e,t,i,o)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(o=>o.supports(e)),!t)throw new R(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||r)(g(Ne),g(J))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),me=class{_doc;constructor(n){this._doc=n}manager},xt="ng-app-id";function Ii(r){for(let n of r)n.remove()}function Ti(r,n){let e=n.createElement("style");return e.textContent=r,e}function Wo(r,n,e,t){let i=r.head?.querySelectorAll(`style[${xt}="${n}"],link[${xt}="${n}"]`);if(i)for(let o of i)o.removeAttribute(xt),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 kr(r,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",r),e}var Lr=(()=>{class r{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,t,i,o={}){this.doc=e,this.appId=t,this.nonce=i,this.isServer=wi(o),Wo(e,t,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,t){for(let i of e)this.addUsage(i,this.inline,Ti);t?.forEach(i=>this.addUsage(i,this.external,kr))}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&&(Ii(i.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Ii(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:i}]of this.inline)i.push(this.addElement(e,Ti(t,this.doc)));for(let[t,{elements:i}]of this.external)i.push(this.addElement(e,kr(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),this.isServer&&t.setAttribute(xt,this.appId),e.appendChild(t)}static \u0275fac=function(t){return new(t||r)(g(_),g(br),g(_r,8),g(Ge))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),Nr={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"},jr=/%COMP%/g;var Ai="%COMP%",Go=`_nghost-${Ai}`,Yo=`_ngcontent-${Ai}`,Zo=!0,Qo=new C("",{providedIn:"root",factory:()=>Zo});function Ko(r){return Yo.replace(jr,r)}function Xo(r){return Go.replace(jr,r)}function Di(r,n){return n.map(e=>e.replace(jr,r))}var Fr=(()=>{class r{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,t,i,o,s,a,c,l=null,d=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=d,this.platformIsServer=!1,this.defaultRenderer=new Ke(e,s,c,this.platformIsServer,this.tracingService)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;let i=this.getOrCreateRenderer(e,t);return i instanceof Nt?i.applyToHost(e):i instanceof Xe&&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,d=this.removeStylesOnCompDestroy,y=this.platformIsServer,b=this.tracingService;switch(t.encapsulation){case Er.Emulated:o=new Nt(c,l,t,this.appId,d,s,a,y,b);break;case Er.ShadowDom:return new Pr(c,l,e,t,s,a,this.nonce,y,b);default:o=new Xe(c,l,t,d,s,a,y,b);break}i.set(t.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(t){return new(t||r)(g(Ur),g(Lr),g(br),g(Qo),g(_),g(Ge),g(J),g(_r),g(Jn,8))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),Ke=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,t,i,o){this.eventManager=n,this.doc=e,this.ngZone=t,this.platformIsServer=i,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(Nr[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(Mi(n)?n.content:n).appendChild(e)}insertBefore(n,e,t){n&&(Mi(n)?n.content:n).insertBefore(e,t)}removeChild(n,e){e.remove()}selectRootElement(n,e){let t=typeof n=="string"?this.doc.querySelector(n):n;if(!t)throw new R(-5104,!1);return e||(t.textContent=""),t}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,t,i){if(i){e=i+":"+e;let o=Nr[i];o?n.setAttributeNS(o,e,t):n.setAttribute(e,t)}else n.setAttribute(e,t)}removeAttribute(n,e,t){if(t){let i=Nr[t];i?n.removeAttributeNS(i,e):n.removeAttribute(`${t}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,t,i){i&(Ye.DashCase|Ye.Important)?n.style.setProperty(e,t,i&Ye.Important?"important":""):n.style[e]=t}removeStyle(n,e,t){t&Ye.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,t){n!=null&&(n[e]=t)}setValue(n,e){n.nodeValue=e}listen(n,e,t,i){if(typeof n=="string"&&(n=De().getGlobalEventTarget(this.doc,n),!n))throw new R(5102,!1);let o=this.decoratePreventDefault(t);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,e,o)),this.eventManager.addEventListener(n,e,o,i)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===!1&&e.preventDefault()}}};function Mi(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var Pr=class extends Ke{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,t,i,o,s,a,c,l){super(n,o,s,c,l),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=i.styles;d=Di(i.id,d);for(let b of d){let I=document.createElement("style");a&&I.setAttribute("nonce",a),I.textContent=b,this.shadowRoot.appendChild(I)}let y=i.getExternalStyles?.();if(y)for(let b of y){let I=kr(b,o);a&&I.setAttribute("nonce",a),this.shadowRoot.appendChild(I)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,t){return super.insertBefore(this.nodeOrShadowRoot(n),e,t)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Xe=class extends Ke{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,t,i,o,s,a,c,l){super(n,o,s,a,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let d=t.styles;this.styles=l?Di(l,d):d,this.styleUrls=t.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Nt=class extends Xe{contentAttr;hostAttr;constructor(n,e,t,i,o,s,a,c,l){let d=i+"-"+t.id;super(n,e,t,o,s,a,c,l,d),this.contentAttr=Ko(d),this.hostAttr=Xo(d)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let t=super.createElement(n,e);return super.setAttribute(t,this.contentAttr,""),t}};var kt=class r extends gi{supportsDOMEvents=!0;static makeCurrent(){pi(new r)}onAndCancel(n,e,t,i){return n.addEventListener(e,t,i),()=>{n.removeEventListener(e,t,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=Jo();return e==null?null:es(e)}resetBaseElement(){Je=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return yi(document.cookie,n)}},Je=null;function Jo(){return Je=Je||document.head.querySelector("base"),Je?Je.getAttribute("href"):null}function es(r){return new URL(r,document.baseURI).pathname}var Pt=class{addToWindow(n){X.getAngularTestability=(t,i=!0)=>{let o=n.findTestabilityInTree(t,i);if(o==null)throw new R(5103,!1);return o},X.getAllAngularTestabilities=()=>n.getAllTestabilities(),X.getAllAngularRootElements=()=>n.getAllRootElements();let e=t=>{let i=X.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&t()};i.forEach(a=>{a.whenStable(s)})};X.frameworkStabilizers||(X.frameworkStabilizers=[]),X.frameworkStabilizers.push(e)}findTestabilityInTree(n,e,t){if(e==null)return null;let i=n.getTestability(e);return i??(t?De().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},ts=(()=>{class r{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),xi=(()=>{class r extends me{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,i,o){return e.addEventListener(t,i,o),()=>this.removeEventListener(e,t,i,o)}removeEventListener(e,t,i,o){return e.removeEventListener(t,i,o)}static \u0275fac=function(t){return new(t||r)(g(_))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),Oi=["alt","control","meta","shift"],rs={"\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"},ns={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},Ni=(()=>{class r extends me{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,t,i,o){let s=r.parseEventName(t),a=r.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>De().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=r._normalizeKey(t.pop()),s="",a=t.indexOf("code");if(a>-1&&(t.splice(a,1),s="code."),Oi.forEach(l=>{let d=t.indexOf(l);d>-1&&(t.splice(d,1),s+=l+".")}),s+=o,t.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(e,t){let i=rs[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"),Oi.forEach(s=>{if(s!==i){let a=ns[s];a(e)&&(o+=s+".")}}),o+=i,o===t)}static eventCallback(e,t,i){return o=>{r.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>t(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||r)(g(_))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})();function is(r,n){return hi(h({rootComponent:r},os(n)))}function os(r){return{appProviders:[...ki,...r?.providers??[]],platformProviders:ls}}function ss(){kt.makeCurrent()}function as(){return new oe}function cs(){return Ln(document),document}var ls=[{provide:Ge,useValue:Ci},{provide:jn,useValue:ss,multi:!0},{provide:_,useFactory:cs}];var us=[{provide:Tt,useClass:Pt},{provide:ti,useClass:Mt,deps:[J,Tr,Tt]},{provide:Mt,useClass:Mt,deps:[J,Tr,Tt]}],ki=[{provide:xn,useValue:"root"},{provide:oe,useFactory:as},{provide:Ne,useClass:xi,multi:!0,deps:[_]},{provide:Ne,useClass:Ni,multi:!0,deps:[_]},Fr,Lr,Ur,{provide:Gn,useExisting:Fr},{provide:Ri,useClass:ts},[]],ds=(()=>{class r{constructor(){}static \u0275fac=function(t){return new(t||r)};static \u0275mod=H({type:r});static \u0275inj=$({providers:[...ki,...us],imports:[Si,di]})}return r})();var Pi=(()=>{class r{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||r)(g(_))};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var fs={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},$r=new C(""),Ui=new C(""),ps=(()=>{class r{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||r)};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),gs=(()=>{class r extends me{_config;_injector;loader;_loaderPromise=null;constructor(e,t,i,o){super(e),this._config=t,this._injector=i,this.loader=o}supports(e){return!(!fs.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||r)(g(_),g($r),g(ge),g(Ui,8))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),Wc=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=H({type:r});static \u0275inj=$({providers:[{provide:Ne,useClass:gs,multi:!0,deps:[_,$r,ge,[new Cr,Ui]]},{provide:$r,useClass:ps}]})}return r})(),zr=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:function(t){let i=null;return t?i=new(t||r):i=g(ms),i},providedIn:"root"})}return r})(),ms=(()=>{class r extends zr{_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 Ee(t,"HTML")?_e(t):qn(this._doc,String(t)).toString();case x.STYLE:return Ee(t,"Style")?_e(t):t;case x.SCRIPT:if(Ee(t,"Script"))return _e(t);throw new R(5200,!1);case x.URL:return Ee(t,"URL")?_e(t):Vn(String(t));case x.RESOURCE_URL:if(Ee(t,"ResourceURL"))return _e(t);throw new R(5201,!1);default:throw new R(5202,!1)}}bypassSecurityTrustHtml(e){return Fn(e)}bypassSecurityTrustStyle(e){return $n(e)}bypassSecurityTrustScript(e){return zn(e)}bypassSecurityTrustUrl(e){return Hn(e)}bypassSecurityTrustResourceUrl(e){return Bn(e)}static \u0275fac=function(t){return new(t||r)(g(_))};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var p="primary",ht=Symbol("RouteTitle"),Wr=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ye(r){return new Wr(r)}function qi(r,n,e){let t=e.path.split("/");if(t.length>r.length||e.pathMatch==="full"&&(n.hasChildren()||t.length<r.length))return null;let i={};for(let o=0;o<t.length;o++){let s=t[o],a=r[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:r.slice(0,t.length),posParams:i}}function vs(r,n){if(r.length!==n.length)return!1;for(let e=0;e<r.length;++e)if(!B(r[e],n[e]))return!1;return!0}function B(r,n){let e=r?Gr(r):void 0,t=n?Gr(n):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],!Wi(r[i],n[i]))return!1;return!0}function Gr(r){return[...Object.keys(r),...Object.getOwnPropertySymbols(r)]}function Wi(r,n){if(Array.isArray(r)&&Array.isArray(n)){if(r.length!==n.length)return!1;let e=[...r].sort(),t=[...n].sort();return e.every((i,o)=>t[o]===i)}else return r===n}function Gi(r){return r.length>0?r[r.length-1]:null}function te(r){return bn(r)?r:ri(r)?M(Promise.resolve(r)):f(r)}var Ss={exact:Zi,subset:Qi},Yi={exact:ys,subset:Rs,ignored:()=>!0};function ji(r,n,e){return Ss[e.paths](r.root,n.root,e.matrixParams)&&Yi[e.queryParams](r.queryParams,n.queryParams)&&!(e.fragment==="exact"&&r.fragment!==n.fragment)}function ys(r,n){return B(r,n)}function Zi(r,n,e){if(!ve(r.segments,n.segments)||!jt(r.segments,n.segments,e)||r.numberOfChildren!==n.numberOfChildren)return!1;for(let t in n.children)if(!r.children[t]||!Zi(r.children[t],n.children[t],e))return!1;return!0}function Rs(r,n){return Object.keys(n).length<=Object.keys(r).length&&Object.keys(n).every(e=>Wi(r[e],n[e]))}function Qi(r,n,e){return Ki(r,n,n.segments,e)}function Ki(r,n,e,t){if(r.segments.length>e.length){let i=r.segments.slice(0,e.length);return!(!ve(i,e)||n.hasChildren()||!jt(i,e,t))}else if(r.segments.length===e.length){if(!ve(r.segments,e)||!jt(r.segments,e,t))return!1;for(let i in n.children)if(!r.children[i]||!Qi(r.children[i],n.children[i],t))return!1;return!0}else{let i=e.slice(0,r.segments.length),o=e.slice(r.segments.length);return!ve(r.segments,i)||!jt(r.segments,i,t)||!r.children[p]?!1:Ki(r.children[p],n,o,t)}}function jt(r,n,e){return n.every((t,i)=>Yi[e](r[i].parameters,t.parameters))}var q=class{root;queryParams;fragment;_queryParamMap;constructor(n=new S([],{}),e={},t=null){this.root=n,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap??=ye(this.queryParams),this._queryParamMap}toString(){return bs.serialize(this)}},S=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ft(this)}},se=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=ye(this.parameters),this._parameterMap}toString(){return Ji(this)}};function Cs(r,n){return ve(r,n)&&r.every((e,t)=>B(e.parameters,n[t].parameters))}function ve(r,n){return r.length!==n.length?!1:r.every((e,t)=>e.path===n[t].path)}function ws(r,n){let e=[];return Object.entries(r.children).forEach(([t,i])=>{t===p&&(e=e.concat(n(i,t)))}),Object.entries(r.children).forEach(([t,i])=>{t!==p&&(e=e.concat(n(i,t)))}),e}var Re=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:()=>new ae,providedIn:"root"})}return r})(),ae=class{parse(n){let e=new Zr(n);return new q(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${et(n.root,!0)}`,t=Is(n.queryParams),i=typeof n.fragment=="string"?`#${_s(n.fragment)}`:"";return`${e}${t}${i}`}},bs=new ae;function Ft(r){return r.segments.map(n=>Ji(n)).join("/")}function et(r,n){if(!r.hasChildren())return Ft(r);if(n){let e=r.children[p]?et(r.children[p],!1):"",t=[];return Object.entries(r.children).forEach(([i,o])=>{i!==p&&t.push(`${i}:${et(o,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}else{let e=ws(r,(t,i)=>i===p?[et(r.children[p],!1)]:[`${i}:${et(t,!1)}`]);return Object.keys(r.children).length===1&&r.children[p]!=null?`${Ft(r)}/${e[0]}`:`${Ft(r)}/(${e.join("//")})`}}function Xi(r){return encodeURIComponent(r).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ut(r){return Xi(r).replace(/%3B/gi,";")}function _s(r){return encodeURI(r)}function Yr(r){return Xi(r).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function $t(r){return decodeURIComponent(r)}function Fi(r){return $t(r.replace(/\+/g,"%20"))}function Ji(r){return`${Yr(r.path)}${Es(r.parameters)}`}function Es(r){return Object.entries(r).map(([n,e])=>`;${Yr(n)}=${Yr(e)}`).join("")}function Is(r){let n=Object.entries(r).map(([e,t])=>Array.isArray(t)?t.map(i=>`${Ut(e)}=${Ut(i)}`).join("&"):`${Ut(e)}=${Ut(t)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Ts=/^[^\/()?;#]+/;function Hr(r){let n=r.match(Ts);return n?n[0]:""}var Ms=/^[^\/()?;=#]+/;function As(r){let n=r.match(Ms);return n?n[0]:""}var Ds=/^[^=?&#]+/;function Os(r){let n=r.match(Ds);return n?n[0]:""}var xs=/^[^&#]+/;function Ns(r){let n=r.match(xs);return n?n[0]:""}var Zr=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new S([],{}):new S([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(t[p]=new S(n,e)),t}parseSegment(){let n=Hr(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new R(4009,!1);return this.capture(n),new se($t(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=As(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let i=Hr(this.remaining);i&&(t=i,this.capture(t))}n[$t(e)]=$t(t)}parseQueryParam(n){let e=Os(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let s=Ns(this.remaining);s&&(t=s,this.capture(t))}let i=Fi(e),o=Fi(t);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=Hr(this.remaining),i=this.remaining[t.length];if(i!=="/"&&i!==")"&&i!==";")throw new R(4010,!1);let o;t.indexOf(":")>-1?(o=t.slice(0,t.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=p);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[p]:new S([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new R(4011,!1)}};function eo(r){return r.segments.length>0?new S([],{[p]:r}):r}function to(r){let n={};for(let[t,i]of Object.entries(r.children)){let o=to(i);if(t===p&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[t]=o)}let e=new S(r.segments,n);return ks(e)}function ks(r){if(r.numberOfChildren===1&&r.children[p]){let n=r.children[p];return new S(r.segments.concat(n.segments),n.children)}return r}function ce(r){return r instanceof q}function ro(r,n,e=null,t=null){let i=no(r);return io(i,n,e,t)}function no(r){let n;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===r&&(n=a),a}let t=e(r.root),i=eo(t);return n??i}function io(r,n,e,t){let i=r;for(;i.parent;)i=i.parent;if(n.length===0)return Br(i,i,i,e,t);let o=Ps(n);if(o.toRoot())return Br(i,i,new S([],{}),e,t);let s=Us(o,i,r),a=s.processChildren?rt(s.segmentGroup,s.index,o.commands):so(s.segmentGroup,s.index,o.commands);return Br(i,s.segmentGroup,a,e,t)}function zt(r){return typeof r=="object"&&r!=null&&!r.outlets&&!r.segmentPath}function it(r){return typeof r=="object"&&r!=null&&r.outlets}function Br(r,n,e,t,i){let o={};t&&Object.entries(t).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(d=>`${d}`):`${l}`});let s;r===n?s=e:s=oo(r,n,e);let a=eo(to(s));return new q(a,o,i)}function oo(r,n,e){let t={};return Object.entries(r.children).forEach(([i,o])=>{o===n?t[i]=e:t[i]=oo(o,n,e)}),new S(r.segments,t)}var Ht=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,t){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=t,n&&t.length>0&&zt(t[0]))throw new R(4003,!1);let i=t.find(it);if(i&&i!==Gi(t))throw new R(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Ps(r){if(typeof r[0]=="string"&&r.length===1&&r[0]==="/")return new Ht(!0,0,r);let n=0,e=!1,t=r.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===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Ht(e,n,t)}var Ue=class{segmentGroup;processChildren;index;constructor(n,e,t){this.segmentGroup=n,this.processChildren=e,this.index=t}};function Us(r,n,e){if(r.isAbsolute)return new Ue(n,!0,0);if(!e)return new Ue(n,!1,NaN);if(e.parent===null)return new Ue(e,!0,0);let t=zt(r.commands[0])?0:1,i=e.segments.length-1+t;return Ls(e,i,r.numberOfDoubleDots)}function Ls(r,n,e){let t=r,i=n,o=e;for(;o>i;){if(o-=i,t=t.parent,!t)throw new R(4005,!1);i=t.segments.length}return new Ue(t,!1,i-o)}function js(r){return it(r[0])?r[0].outlets:{[p]:r}}function so(r,n,e){if(r??=new S([],{}),r.segments.length===0&&r.hasChildren())return rt(r,n,e);let t=Fs(r,n,e),i=e.slice(t.commandIndex);if(t.match&&t.pathIndex<r.segments.length){let o=new S(r.segments.slice(0,t.pathIndex),{});return o.children[p]=new S(r.segments.slice(t.pathIndex),r.children),rt(o,0,i)}else return t.match&&i.length===0?new S(r.segments,{}):t.match&&!r.hasChildren()?Qr(r,n,e):t.match?rt(r,0,i):Qr(r,n,e)}function rt(r,n,e){if(e.length===0)return new S(r.segments,{});{let t=js(e),i={};if(Object.keys(t).some(o=>o!==p)&&r.children[p]&&r.numberOfChildren===1&&r.children[p].segments.length===0){let o=rt(r.children[p],n,e);return new S(r.segments,o.children)}return Object.entries(t).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=so(r.children[o],n,s))}),Object.entries(r.children).forEach(([o,s])=>{t[o]===void 0&&(i[o]=s)}),new S(r.segments,i)}}function Fs(r,n,e){let t=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<r.segments.length;){if(t>=e.length)return o;let s=r.segments[i],a=e[t];if(it(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(!zi(c,l,s))return o;t+=2}else{if(!zi(c,{},s))return o;t++}i++}return{match:!0,pathIndex:i,commandIndex:t}}function Qr(r,n,e){let t=r.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(it(o)){let c=$s(o.outlets);return new S(t,c)}if(i===0&&zt(e[0])){let c=r.segments[n];t.push(new se(c.path,$i(e[0]))),i++;continue}let s=it(o)?o.outlets[p]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&zt(a)?(t.push(new se(s,$i(a))),i+=2):(t.push(new se(s,{})),i++)}return new S(t,{})}function $s(r){let n={};return Object.entries(r).forEach(([e,t])=>{typeof t=="string"&&(t=[t]),t!==null&&(n[e]=Qr(new S([],{}),0,t))}),n}function $i(r){let n={};return Object.entries(r).forEach(([e,t])=>n[e]=`${t}`),n}function zi(r,n,e){return r==e.path&&B(n,e.parameters)}var Le="imperative",E=function(r){return r[r.NavigationStart=0]="NavigationStart",r[r.NavigationEnd=1]="NavigationEnd",r[r.NavigationCancel=2]="NavigationCancel",r[r.NavigationError=3]="NavigationError",r[r.RoutesRecognized=4]="RoutesRecognized",r[r.ResolveStart=5]="ResolveStart",r[r.ResolveEnd=6]="ResolveEnd",r[r.GuardsCheckStart=7]="GuardsCheckStart",r[r.GuardsCheckEnd=8]="GuardsCheckEnd",r[r.RouteConfigLoadStart=9]="RouteConfigLoadStart",r[r.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",r[r.ChildActivationStart=11]="ChildActivationStart",r[r.ChildActivationEnd=12]="ChildActivationEnd",r[r.ActivationStart=13]="ActivationStart",r[r.ActivationEnd=14]="ActivationEnd",r[r.Scroll=15]="Scroll",r[r.NavigationSkipped=16]="NavigationSkipped",r}(E||{}),k=class{id;url;constructor(n,e){this.id=n,this.url=e}},le=class extends k{type=E.NavigationStart;navigationTrigger;restoredState;constructor(n,e,t="imperative",i=null){super(n,e),this.navigationTrigger=t,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},L=class extends k{urlAfterRedirects;type=E.NavigationEnd;constructor(n,e,t){super(n,e),this.urlAfterRedirects=t}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},T=function(r){return r[r.Redirect=0]="Redirect",r[r.SupersededByNewNavigation=1]="SupersededByNewNavigation",r[r.NoDataFromResolver=2]="NoDataFromResolver",r[r.GuardRejected=3]="GuardRejected",r[r.Aborted=4]="Aborted",r}(T||{}),Fe=function(r){return r[r.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",r[r.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",r}(Fe||{}),V=class extends k{reason;code;type=E.NavigationCancel;constructor(n,e,t,i){super(n,e),this.reason=t,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},W=class extends k{reason;code;type=E.NavigationSkipped;constructor(n,e,t,i){super(n,e),this.reason=t,this.code=i}},$e=class extends k{error;target;type=E.NavigationError;constructor(n,e,t,i){super(n,e),this.error=t,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ot=class extends k{urlAfterRedirects;state;type=E.RoutesRecognized;constructor(n,e,t,i){super(n,e),this.urlAfterRedirects=t,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Bt=class extends k{urlAfterRedirects;state;type=E.GuardsCheckStart;constructor(n,e,t,i){super(n,e),this.urlAfterRedirects=t,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Vt=class extends k{urlAfterRedirects;state;shouldActivate;type=E.GuardsCheckEnd;constructor(n,e,t,i,o){super(n,e),this.urlAfterRedirects=t,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},qt=class extends k{urlAfterRedirects;state;type=E.ResolveStart;constructor(n,e,t,i){super(n,e),this.urlAfterRedirects=t,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Wt=class extends k{urlAfterRedirects;state;type=E.ResolveEnd;constructor(n,e,t,i){super(n,e),this.urlAfterRedirects=t,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Gt=class{route;type=E.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Yt=class{route;type=E.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Zt=class{snapshot;type=E.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Qt=class{snapshot;type=E.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Kt=class{snapshot;type=E.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Xt=class{snapshot;type=E.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ze=class{routerEvent;position;anchor;type=E.Scroll;constructor(n,e,t){this.routerEvent=n,this.position=e,this.anchor=t}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},st=class{},He=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function zs(r){return!(r instanceof st)&&!(r instanceof He)}function Hs(r,n){return r.providers&&!r._injector&&(r._injector=Et(r.providers,n,`Route: ${r.path}`)),r._injector??n}function F(r){return r.outlet||p}function Bs(r,n){let e=r.filter(t=>F(t)===n);return e.push(...r.filter(t=>F(t)!==n)),e}function ft(r){if(!r)return null;if(r.routeConfig?._injector)return r.routeConfig._injector;for(let n=r.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Jt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return ft(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Ce(this.rootInjector)}},Ce=(()=>{class r{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,t){let i=this.getOrCreateContext(e);i.outlet=t,this.contexts.set(e,i)}onChildOutletDestroyed(e){let t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Jt(this.rootInjector),this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(t){return new(t||r)(g(pe))};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),er=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Kr(n,this._root);return e?e.children.map(t=>t.value):[]}firstChild(n){let e=Kr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=Xr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Xr(n,this._root).map(e=>e.value)}};function Kr(r,n){if(r===n.value)return n;for(let e of n.children){let t=Kr(r,e);if(t)return t}return null}function Xr(r,n){if(r===n.value)return[n];for(let e of n.children){let t=Xr(r,e);if(t.length)return t.unshift(n),t}return[]}var N=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function Pe(r){let n={};return r&&r.children.forEach(e=>n[e.value.outlet]=e),n}var at=class extends er{snapshot;constructor(n,e){super(n),this.snapshot=e,an(this,n)}toString(){return this.snapshot.toString()}};function ao(r){let n=Vs(r),e=new P([new se("",{})]),t=new P({}),i=new P({}),o=new P({}),s=new P(""),a=new G(e,t,o,s,i,p,r,n.root);return a.snapshot=n.root,new at(new N(a,[]),n)}function Vs(r){let n={},e={},t={},i="",o=new Se([],n,t,i,e,p,r,null,{});return new ct("",new N(o,[]))}var G=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,t,i,o,s,a,c){this.urlSubject=n,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[ht]))??f(void 0),this.url=n,this.params=e,this.queryParams=t,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(v(n=>ye(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(v(n=>ye(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function tr(r,n,e="emptyOnly"){let t,{routeConfig:i}=r;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?t={params:h(h({},n.params),r.params),data:h(h({},n.data),r.data),resolve:h(h(h(h({},r.data),n.data),i?.data),r._resolvedData)}:t={params:h({},r.params),data:h({},r.data),resolve:h(h({},r.data),r._resolvedData??{})},i&&lo(i)&&(t.resolve[ht]=i.title),t}var Se=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[ht]}constructor(n,e,t,i,o,s,a,c,l){this.url=n,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??=ye(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ye(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(t=>t.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},ct=class extends er{url;constructor(n,e){super(e),this.url=n,an(this,e)}toString(){return co(this._root)}};function an(r,n){n.value._routerState=r,n.children.forEach(e=>an(r,e))}function co(r){let n=r.children.length>0?` { ${r.children.map(co).join(", ")} } `:"";return`${r.value}${n}`}function Vr(r){if(r.snapshot){let n=r.snapshot,e=r._futureSnapshot;r.snapshot=e,B(n.queryParams,e.queryParams)||r.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&r.fragmentSubject.next(e.fragment),B(n.params,e.params)||r.paramsSubject.next(e.params),vs(n.url,e.url)||r.urlSubject.next(e.url),B(n.data,e.data)||r.dataSubject.next(e.data)}else r.snapshot=r._futureSnapshot,r.dataSubject.next(r._futureSnapshot.data)}function Jr(r,n){let e=B(r.params,n.params)&&Cs(r.url,n.url),t=!r.parent!=!n.parent;return e&&!t&&(!r.parent||Jr(r.parent,n.parent))}function lo(r){return typeof r.title=="string"||r.title===null}var uo=new C(""),cn=(()=>{class r{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new Me;deactivateEvents=new Me;attachEvents=new Me;detachEvents=new Me;routerOutletData=ui(void 0);parentContexts=u(Ce);location=u(Qn);changeDetector=u(Or);inputBinder=u(pt,{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 R(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new R(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new R(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 R(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new en(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||r)};static \u0275dir=It({type:r,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[bt]})}return r})(),en=class{route;childContexts;parent;outletData;constructor(n,e,t,i){this.route=n,this.childContexts=e,this.parent=t,this.outletData=i}get(n,e){return n===G?this.route:n===Ce?this.childContexts:n===uo?this.outletData:this.parent.get(n,e)}},pt=new C(""),ln=(()=>{class r{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:t}=e,i=Rt([t.queryParams,t.params,t.data]).pipe(U(([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=fi(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||r)};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),un=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275cmp=Te({type:r,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(t,i){t&1&&ni(0,"router-outlet")},dependencies:[cn],encapsulation:2})}return r})();function dn(r){let n=r.children&&r.children.map(dn),e=n?O(h({},r),{children:n}):h({},r);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=un),e}function qs(r,n,e){let t=lt(r,n._root,e?e._root:void 0);return new at(t,n)}function lt(r,n,e){if(e&&r.shouldReuseRoute(n.value,e.value.snapshot)){let t=e.value;t._futureSnapshot=n.value;let i=Ws(r,n,e);return new N(t,i)}else{if(r.shouldAttach(n.value)){let o=r.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>lt(r,a)),s}}let t=Gs(n.value),i=n.children.map(o=>lt(r,o));return new N(t,i)}}function Ws(r,n,e){return n.children.map(t=>{for(let i of e.children)if(r.shouldReuseRoute(t.value,i.value.snapshot))return lt(r,t,i);return lt(r,t)})}function Gs(r){return new G(new P(r.url),new P(r.params),new P(r.queryParams),new P(r.fragment),new P(r.data),r.outlet,r.component,r)}var Be=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},ho="ngNavigationCancelingError";function rr(r,n){let{redirectTo:e,navigationBehaviorOptions:t}=ce(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=fo(!1,T.Redirect);return i.url=e,i.navigationBehaviorOptions=t,i}function fo(r,n){let e=new Error(`NavigationCancelingError: ${r||""}`);return e[ho]=!0,e.cancellationCode=n,e}function Ys(r){return po(r)&&ce(r.url)}function po(r){return!!r&&r[ho]}var Zs=(r,n,e,t)=>v(i=>(new tn(n,i.targetRouterState,i.currentRouterState,e,t).activate(r),i)),tn=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,t,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=t,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,n),Vr(this.futureState.root),this.activateChildRoutes(e,t,n)}deactivateChildRoutes(n,e,t){let i=Pe(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],t),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,t)})}deactivateRoutes(n,e,t){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=t.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,t);else o&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let t=e.getContext(n.value.outlet),i=t&&n.value.component?t.children:e,o=Pe(n);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(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let t=e.getContext(n.value.outlet),i=t&&n.value.component?t.children:e,o=Pe(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(n,e,t){let i=Pe(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],t),this.forwardEvent(new Xt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Qt(n.value.snapshot))}activateRoutes(n,e,t){let i=n.value,o=e?e.value:null;if(Vr(i),i===o)if(i.component){let s=t.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,t);else if(i.component){let s=t.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let 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),Vr(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,t)}},nr=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},je=class{component;route;constructor(n,e){this.component=n,this.route=e}};function Qs(r,n,e){let t=r._root,i=n?n._root:null;return tt(t,i,e,[t.value])}function Ks(r){let n=r.routeConfig?r.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:r,guards:n}}function qe(r,n){let e=Symbol(),t=n.get(r,e);return t===e?typeof r=="function"&&!On(r)?r:n.get(r):t}function tt(r,n,e,t,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Pe(n);return r.children.forEach(s=>{Xs(s,o[s.value.outlet],e,t.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>nt(a,e.getContext(s),i)),i}function Xs(r,n,e,t,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=r.value,s=n?n.value:null,a=e?e.getContext(r.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=Js(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new nr(t)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?tt(r,n,a?a.children:null,t,i):tt(r,n,e,t,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new je(a.outlet.component,s))}else s&&nt(n,a,i),i.canActivateChecks.push(new nr(t)),o.component?tt(r,null,a?a.children:null,t,i):tt(r,null,e,t,i);return i}function Js(r,n,e){if(typeof e=="function")return e(r,n);switch(e){case"pathParamsChange":return!ve(r.url,n.url);case"pathParamsOrQueryParamsChange":return!ve(r.url,n.url)||!B(r.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Jr(r,n)||!B(r.queryParams,n.queryParams);case"paramsChange":default:return!Jr(r,n)}}function nt(r,n,e){let t=Pe(r),i=r.value;Object.entries(t).forEach(([o,s])=>{i.component?n?nt(s,n.children.getContext(o),e):nt(s,null,e):nt(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new je(n.outlet.component,i)):e.canDeactivateChecks.push(new je(null,i)):e.canDeactivateChecks.push(new je(null,i))}function gt(r){return typeof r=="function"}function ea(r){return typeof r=="boolean"}function ta(r){return r&&gt(r.canLoad)}function ra(r){return r&&gt(r.canActivate)}function na(r){return r&&gt(r.canActivateChild)}function ia(r){return r&&gt(r.canDeactivate)}function oa(r){return r&&gt(r.canMatch)}function go(r){return r instanceof _n||r?.name==="EmptyError"}var Lt=Symbol("INITIAL_VALUE");function Ve(){return U(r=>Rt(r.map(n=>n.pipe(ne(1),Dn(Lt)))).pipe(v(n=>{for(let e of n)if(e!==!0){if(e===Lt)return Lt;if(e===!1||sa(e))return e}return!0}),Q(n=>n!==Lt),ne(1)))}function sa(r){return ce(r)||r instanceof Be}function aa(r,n){return A(e=>{let{targetSnapshot:t,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?f(O(h({},e),{guardsResult:!0})):ca(s,t,i,r).pipe(A(a=>a&&ea(a)?la(t,o,r,n):f(a)),v(a=>O(h({},e),{guardsResult:a})))})}function ca(r,n,e,t){return M(r).pipe(A(i=>pa(i.component,i.route,e,n,t)),ie(i=>i!==!0,!0))}function la(r,n,e,t){return M(n).pipe(fe(i=>En(da(i.route.parent,t),ua(i.route,t),fa(r,i.path,e),ha(r,i.route,e))),ie(i=>i!==!0,!0))}function ua(r,n){return r!==null&&n&&n(new Kt(r)),f(!0)}function da(r,n){return r!==null&&n&&n(new Zt(r)),f(!0)}function ha(r,n,e){let t=n.routeConfig?n.routeConfig.canActivate:null;if(!t||t.length===0)return f(!0);let i=t.map(o=>Ct(()=>{let s=ft(n)??e,a=qe(o,s),c=ra(a)?a.canActivate(n,r):z(s,()=>a(n,r));return te(c).pipe(ie())}));return f(i).pipe(Ve())}function fa(r,n,e){let t=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>Ks(s)).filter(s=>s!==null).map(s=>Ct(()=>{let a=s.guards.map(c=>{let l=ft(s.node)??e,d=qe(c,l),y=na(d)?d.canActivateChild(t,r):z(l,()=>d(t,r));return te(y).pipe(ie())});return f(a).pipe(Ve())}));return f(o).pipe(Ve())}function pa(r,n,e,t,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return f(!0);let s=o.map(a=>{let c=ft(n)??i,l=qe(a,c),d=ia(l)?l.canDeactivate(r,n,e,t):z(c,()=>l(r,n,e,t));return te(d).pipe(ie())});return f(s).pipe(Ve())}function ga(r,n,e,t){let i=n.canLoad;if(i===void 0||i.length===0)return f(!0);let o=i.map(s=>{let a=qe(s,r),c=ta(a)?a.canLoad(n,e):z(r,()=>a(n,e));return te(c)});return f(o).pipe(Ve(),mo(t))}function mo(r){return Cn(w(n=>{if(typeof n!="boolean")throw rr(r,n)}),v(n=>n===!0))}function ma(r,n,e,t){let i=n.canMatch;if(!i||i.length===0)return f(!0);let o=i.map(s=>{let a=qe(s,r),c=oa(a)?a.canMatch(n,e):z(r,()=>a(n,e));return te(c)});return f(o).pipe(Ve(),mo(t))}var ut=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},dt=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function ke(r){return he(new ut(r))}function va(r){return he(new R(4e3,!1))}function Sa(r){return he(fo(!1,T.GuardRejected))}var rn=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let t=[],i=e.root;for(;;){if(t=t.concat(i.segments),i.numberOfChildren===0)return f(t);if(i.numberOfChildren>1||!i.children[p])return va(`${n.redirectTo}`);i=i.children[p]}}applyRedirectCommands(n,e,t,i,o){return ya(e,i,o).pipe(v(s=>{if(s instanceof q)throw new dt(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,t);if(s[0]==="/")throw new dt(a);return a}))}applyRedirectCreateUrlTree(n,e,t,i){let o=this.createSegmentGroup(n,e.root,t,i);return new q(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let t={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);t[i]=e[a]}else t[i]=o}),t}createSegmentGroup(n,e,t,i){let o=this.createSegments(n,e.segments,t,i),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,t,i)}),new S(o,s)}createSegments(n,e,t,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,t))}findPosParam(n,e,t){let i=t[e.path.substring(1)];if(!i)throw new R(4001,!1);return i}findOrReturn(n,e){let t=0;for(let i of e){if(i.path===n.path)return e.splice(t),i;t++}return n}};function ya(r,n,e){if(typeof r=="string")return f(r);let t=r,{queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,params:l,data:d,title:y}=n;return te(z(e,()=>t({params:l,data:d,queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,title:y})))}var nn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ra(r,n,e,t,i){let o=vo(r,n,e);return o.matched?(t=Hs(n,t),ma(t,n,e,i).pipe(v(s=>s===!0?o:h({},nn)))):f(o)}function vo(r,n,e){if(n.path==="**")return Ca(e);if(n.path==="")return n.pathMatch==="full"&&(r.hasChildren()||e.length>0)?h({},nn):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||qi)(e,r,n);if(!i)return h({},nn);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?h(h({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Ca(r){return{matched:!0,parameters:r.length>0?Gi(r).parameters:{},consumedSegments:r,remainingSegments:[],positionalParamSegments:{}}}function Hi(r,n,e,t){return e.length>0&&_a(r,e,t)?{segmentGroup:new S(n,ba(t,new S(e,r.children))),slicedSegments:[]}:e.length===0&&Ea(r,e,t)?{segmentGroup:new S(r.segments,wa(r,e,t,r.children)),slicedSegments:e}:{segmentGroup:new S(r.segments,r.children),slicedSegments:e}}function wa(r,n,e,t){let i={};for(let o of e)if(or(r,n,o)&&!t[F(o)]){let s=new S([],{});i[F(o)]=s}return h(h({},t),i)}function ba(r,n){let e={};e[p]=n;for(let t of r)if(t.path===""&&F(t)!==p){let i=new S([],{});e[F(t)]=i}return e}function _a(r,n,e){return e.some(t=>or(r,n,t)&&F(t)!==p)}function Ea(r,n,e){return e.some(t=>or(r,n,t))}function or(r,n,e){return(r.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Ia(r,n,e){return n.length===0&&!r.children[e]}var on=class{};function Ta(r,n,e,t,i,o,s="emptyOnly"){return new sn(r,n,e,t,i,s,o).recognize()}var Ma=31,sn=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,t,i,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=t,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new rn(this.urlSerializer,this.urlTree)}noMatchError(n){return new R(4002,`'${n.segmentGroup}'`)}recognize(){let n=Hi(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(v(({children:e,rootSnapshot:t})=>{let i=new N(t,e),o=new ct("",i),s=ro(t,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new Se([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,p,e).pipe(v(t=>({children:t,rootSnapshot:e})),K(t=>{if(t instanceof dt)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof ut?this.noMatchError(t):t}))}processSegmentGroup(n,e,t,i,o){return t.segments.length===0&&t.hasChildren()?this.processChildren(n,e,t,o):this.processSegment(n,e,t,t.segments,i,!0,o).pipe(v(s=>s instanceof N?[s]:[]))}processChildren(n,e,t,i){let o=[];for(let s of Object.keys(t.children))s==="primary"?o.unshift(s):o.push(s);return M(o).pipe(fe(s=>{let a=t.children[s],c=Bs(e,s);return this.processSegmentGroup(n,c,a,s,i)}),Mn((s,a)=>(s.push(...a),s)),vr(null),Tn(),A(s=>{if(s===null)return ke(t);let a=So(s);return Aa(a),f(a)}))}processSegment(n,e,t,i,o,s,a){return M(e).pipe(fe(c=>this.processSegmentAgainstRoute(c._injector??n,e,c,t,i,o,s,a).pipe(K(l=>{if(l instanceof ut)return f(null);throw l}))),ie(c=>!!c),K(c=>{if(go(c))return Ia(t,i,o)?f(new on):ke(t);throw c}))}processSegmentAgainstRoute(n,e,t,i,o,s,a,c){return F(t)!==s&&(s===p||!or(i,o,t))?ke(i):t.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,t,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,t,o,s,c):ke(i)}expandSegmentAgainstRouteUsingRedirect(n,e,t,i,o,s,a){let{matched:c,parameters:l,consumedSegments:d,positionalParamSegments:y,remainingSegments:b}=vo(e,i,o);if(!c)return ke(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Ma&&(this.allowRedirects=!1));let I=new Se(o,l,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Bi(i),F(i),i.component??i._loadedComponent??null,i,Vi(i)),D=tr(I,a,this.paramsInheritanceStrategy);return I.params=Object.freeze(D.params),I.data=Object.freeze(D.data),this.applyRedirects.applyRedirectCommands(d,i.redirectTo,y,I,n).pipe(U(de=>this.applyRedirects.lineralizeSegments(i,de)),A(de=>this.processSegment(n,t,e,de.concat(b),s,!1,a)))}matchSegmentAgainstRoute(n,e,t,i,o,s){let a=Ra(e,t,i,n,this.urlSerializer);return t.path==="**"&&(e.children={}),a.pipe(U(c=>c.matched?(n=t._injector??n,this.getChildConfig(n,t,i).pipe(U(({routes:l})=>{let d=t._loadedInjector??n,{parameters:y,consumedSegments:b,remainingSegments:I}=c,D=new Se(b,y,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Bi(t),F(t),t.component??t._loadedComponent??null,t,Vi(t)),hr=tr(D,s,this.paramsInheritanceStrategy);D.params=Object.freeze(hr.params),D.data=Object.freeze(hr.data);let{segmentGroup:de,slicedSegments:fr}=Hi(e,b,I,l);if(fr.length===0&&de.hasChildren())return this.processChildren(d,l,de,D).pipe(v(St=>new N(D,St)));if(l.length===0&&fr.length===0)return f(new N(D,[]));let qo=F(t)===o;return this.processSegment(d,l,de,fr,qo?p:o,!0,D).pipe(v(St=>new N(D,St instanceof N?[St]:[])))}))):ke(e)))}getChildConfig(n,e,t){return e.children?f({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?f({routes:e._loadedRoutes,injector:e._loadedInjector}):ga(n,e,t,this.urlSerializer).pipe(A(i=>i?this.configLoader.loadChildren(n,e).pipe(w(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):Sa(e))):f({routes:[],injector:n})}};function Aa(r){r.sort((n,e)=>n.value.outlet===p?-1:e.value.outlet===p?1:n.value.outlet.localeCompare(e.value.outlet))}function Da(r){let n=r.value.routeConfig;return n&&n.path===""}function So(r){let n=[],e=new Set;for(let t of r){if(!Da(t)){n.push(t);continue}let i=n.find(o=>t.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...t.children),e.add(i)):n.push(t)}for(let t of e){let i=So(t.children);n.push(new N(t.value,i))}return n.filter(t=>!e.has(t))}function Bi(r){return r.data||{}}function Vi(r){return r.resolve||{}}function Oa(r,n,e,t,i,o){return A(s=>Ta(r,n,e,t,s.extractedUrl,i,o).pipe(v(({state:a,tree:c})=>O(h({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function xa(r,n){return A(e=>{let{targetSnapshot:t,guards:{canActivateChecks:i}}=e;if(!i.length)return f(e);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of yo(c))s.add(l);let a=0;return M(s).pipe(fe(c=>o.has(c)?Na(c,t,r,n):(c.data=tr(c,c.parent,r).resolve,f(void 0))),w(()=>a++),Sr(1),A(c=>a===s.size?f(e):Z))})}function yo(r){let n=r.children.map(e=>yo(e)).flat();return[r,...n]}function Na(r,n,e,t){let i=r.routeConfig,o=r._resolve;return i?.title!==void 0&&!lo(i)&&(o[ht]=i.title),Ct(()=>(r.data=tr(r,r.parent,e).resolve,ka(o,r,n,t).pipe(v(s=>(r._resolvedData=s,r.data=h(h({},r.data),s),null)))))}function ka(r,n,e,t){let i=Gr(r);if(i.length===0)return f({});let o={};return M(i).pipe(A(s=>Pa(r[s],n,e,t).pipe(ie(),w(a=>{if(a instanceof Be)throw rr(new ae,a);o[s]=a}))),Sr(1),v(()=>o),K(s=>go(s)?Z:he(s)))}function Pa(r,n,e,t){let i=ft(n)??t,o=qe(r,i),s=o.resolve?o.resolve(n,e):z(i,()=>o(n,e));return te(s)}function qr(r){return U(n=>{let e=r(n);return e?M(e).pipe(v(()=>n)):f(n)})}var hn=(()=>{class r{buildTitle(e){let t,i=e.root;for(;i!==void 0;)t=this.getResolvedTitleForRoute(i)??t,i=i.children.find(o=>o.outlet===p);return t}getResolvedTitleForRoute(e){return e.data[ht]}static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:()=>u(Ro),providedIn:"root"})}return r})(),Ro=(()=>{class r extends hn{title;constructor(e){super(),this.title=e}updateTitle(e){let t=this.buildTitle(e);t!==void 0&&this.title.setTitle(t)}static \u0275fac=function(t){return new(t||r)(g(Pi))};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),ue=new C("",{providedIn:"root",factory:()=>({})}),we=new C(""),sr=(()=>{class r{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=u(ci);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return f(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let t=te(e.loadComponent()).pipe(v(wo),w(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),be(()=>{this.componentLoaders.delete(e)})),i=new gr(t,()=>new j).pipe(pr());return this.componentLoaders.set(e,i),i}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return f({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);let o=Co(t,this.compiler,e,this.onLoadEndListener).pipe(be(()=>{this.childrenLoaders.delete(t)})),s=new gr(o,()=>new j).pipe(pr());return this.childrenLoaders.set(t,s),s}static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function Co(r,n,e,t){return te(r.loadChildren()).pipe(v(wo),A(i=>i instanceof Xn||Array.isArray(i)?f(i):M(n.compileModuleAsync(i))),v(i=>{t&&t(r);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(e).injector,s=o.get(we,[],{optional:!0,self:!0}).flat()),{routes:s.map(dn),injector:o}}))}function Ua(r){return r&&typeof r=="object"&&"default"in r}function wo(r){return Ua(r)?r.default:r}var ar=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:()=>u(La),providedIn:"root"})}return r})(),La=(()=>{class r{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),fn=new C(""),pn=new C("");function bo(r,n,e){let t=r.get(pn),i=r.get(_);if(!i.startViewTransition||t.skipNextTransition)return t.skipNextTransition=!1,new Promise(l=>setTimeout(l));let o,s=new Promise(l=>{o=l}),a=i.startViewTransition(()=>(o(),ja(r))),{onViewTransitionCreated:c}=t;return c&&z(r,()=>c({transition:a,from:n,to:e})),s}function ja(r){return new Promise(n=>{ei({read:()=>setTimeout(n)},{injector:r})})}var gn=new C(""),cr=(()=>{class r{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new j;transitionAbortWithErrorSubject=new j;configLoader=u(sr);environmentInjector=u(pe);destroyRef=u(Nn);urlSerializer=u(Re);rootContexts=u(Ce);location=u(xe);inputBindingEnabled=u(pt,{optional:!0})!==null;titleStrategy=u(hn);options=u(ue,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=u(ar);createViewTransition=u(fn,{optional:!0});navigationErrorHandler=u(gn,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>f(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new Gt(i)),t=i=>this.events.next(new Yt(i));this.configLoader.onLoadEndListener=t,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let t=++this.navigationId;this.transitions?.next(O(h({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:t}))}setupNavigations(e){return this.transitions=new P(null),this.transitions.pipe(Q(t=>t!==null),U(t=>{let i=!1;return f(t).pipe(U(o=>{if(this.navigationId>t.id)return this.cancelNavigationTransition(t,"",T.SupersededByNewNavigation),Z;this.currentTransition=t,this.currentNavigation={id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?O(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()};let s=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),a=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!s&&a!=="reload"){let c="";return this.events.next(new W(o.id,this.urlSerializer.serialize(o.rawUrl),c,Fe.IgnoredSameUrlNavigation)),o.resolve(!1),Z}if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return f(o).pipe(U(c=>(this.events.next(new le(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),c.id!==this.navigationId?Z:Promise.resolve(c))),Oa(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),w(c=>{t.targetSnapshot=c.targetSnapshot,t.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation=O(h({},this.currentNavigation),{finalUrl:c.urlAfterRedirects});let l=new ot(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:c,extractedUrl:l,source:d,restoredState:y,extras:b}=o,I=new le(c,this.urlSerializer.serialize(l),d,y);this.events.next(I);let D=ao(this.rootComponentType).snapshot;return this.currentTransition=t=O(h({},o),{targetSnapshot:D,urlAfterRedirects:l,extras:O(h({},b),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=l,f(t)}else{let c="";return this.events.next(new W(o.id,this.urlSerializer.serialize(o.extractedUrl),c,Fe.IgnoredByUrlHandlingStrategy)),o.resolve(!1),Z}}),w(o=>{let s=new Bt(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(s)}),v(o=>(this.currentTransition=t=O(h({},o),{guards:Qs(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),t)),aa(this.environmentInjector,o=>this.events.next(o)),w(o=>{if(t.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw rr(this.urlSerializer,o.guardsResult);let s=new Vt(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(s)}),Q(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",T.GuardRejected),!1)),qr(o=>{if(o.guards.canActivateChecks.length!==0)return f(o).pipe(w(s=>{let a=new qt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),U(s=>{let a=!1;return f(s).pipe(xa(this.paramsInheritanceStrategy,this.environmentInjector),w({next:()=>a=!0,complete:()=>{a||this.cancelNavigationTransition(s,"",T.NoDataFromResolver)}}))}),w(s=>{let a=new Wt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}))}),qr(o=>{let s=a=>{let c=[];a.routeConfig?.loadComponent&&!a.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(a.routeConfig).pipe(w(l=>{a.component=l}),v(()=>{})));for(let l of a.children)c.push(...s(l));return c};return Rt(s(o.targetSnapshot.root)).pipe(vr(null),ne(1))}),qr(()=>this.afterPreactivation()),U(()=>{let{currentSnapshot:o,targetSnapshot:s}=t,a=this.createViewTransition?.(this.environmentInjector,o.root,s.root);return a?M(a).pipe(v(()=>t)):f(t)}),v(o=>{let s=qs(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=t=O(h({},o),{targetRouterState:s}),this.currentNavigation.targetRouterState=s,t}),w(()=>{this.events.next(new st)}),Zs(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),ne(1),yr(new wn(o=>{let s=t.abortController.signal,a=()=>o.next();return s.addEventListener("abort",a),()=>s.removeEventListener("abort",a)}).pipe(Q(()=>!i&&!t.targetRouterState),w(()=>{this.cancelNavigationTransition(t,t.abortController.signal.reason+"",T.Aborted)}))),w({next:o=>{i=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new L(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{i=!0}}),yr(this.transitionAbortWithErrorSubject.pipe(w(o=>{throw o}))),be(()=>{i||this.cancelNavigationTransition(t,"",T.SupersededByNewNavigation),this.currentTransition?.id===t.id&&(this.currentNavigation=null,this.currentTransition=null)}),K(o=>{if(this.destroyed)return t.resolve(!1),Z;if(i=!0,po(o))this.events.next(new V(t.id,this.urlSerializer.serialize(t.extractedUrl),o.message,o.cancellationCode)),Ys(o)?this.events.next(new He(o.url,o.navigationBehaviorOptions)):t.resolve(!1);else{let s=new $e(t.id,this.urlSerializer.serialize(t.extractedUrl),o,t.targetSnapshot??void 0);try{let a=z(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(a instanceof Be){let{message:c,cancellationCode:l}=rr(this.urlSerializer,a);this.events.next(new V(t.id,this.urlSerializer.serialize(t.extractedUrl),c,l)),this.events.next(new He(a.redirectTo,a.navigationBehaviorOptions))}else throw this.events.next(s),o}catch(a){this.options.resolveNavigationPromiseOnError?t.resolve(!1):t.reject(a)}}return Z}))}))}cancelNavigationTransition(e,t,i){let o=new V(e.id,this.urlSerializer.serialize(e.extractedUrl),t,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),t=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==t?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function Fa(r){return r!==Le}var _o=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:()=>u($a),providedIn:"root"})}return r})(),ir=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},$a=(()=>{class r extends ir{static \u0275fac=(()=>{let e;return function(i){return(e||(e=wr(r)))(i||r)}})();static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Eo=(()=>{class r{urlSerializer=u(Re);options=u(ue,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=u(xe);urlHandlingStrategy=u(ar);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new q;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:t,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,t):t,s=i??o;return s instanceof q?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:t,initialUrl:i}){t&&e?(this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(t,i),this.routerState=e):this.rawUrlTree=i}routerState=ao(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:()=>u(za),providedIn:"root"})}return r})(),za=(()=>{class r extends Eo{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(t=>{t.type==="popstate"&&setTimeout(()=>{e(t.url,t.state,"popstate")})})}handleRouterEvent(e,t){e instanceof le?this.updateStateMemento():e instanceof W?this.commitTransition(t):e instanceof ot?this.urlUpdateStrategy==="eager"&&(t.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(t),t)):e instanceof st?(this.commitTransition(t),this.urlUpdateStrategy==="deferred"&&!t.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(t),t)):e instanceof V&&e.code!==T.SupersededByNewNavigation&&e.code!==T.Redirect?this.restoreHistory(t):e instanceof $e?this.restoreHistory(t,!0):e instanceof L&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:t,id:i}){let{replaceUrl:o,state:s}=t;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,c=h(h({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",c)}else{let a=h(h({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,t=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(t&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,t){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=wr(r)))(i||r)}})();static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function lr(r,n){r.events.pipe(Q(e=>e instanceof L||e instanceof V||e instanceof $e||e instanceof W),v(e=>e instanceof L||e instanceof W?0:(e instanceof V?e.code===T.Redirect||e.code===T.SupersededByNewNavigation:!1)?2:1),Q(e=>e!==2),ne(1)).subscribe(()=>{n()})}var Ha={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ba={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Y=(()=>{class r{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=u(Ir);stateManager=u(Eo);options=u(ue,{optional:!0})||{};pendingTasks=u(Pn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=u(cr);urlSerializer=u(Re);location=u(xe);urlHandlingStrategy=u(ar);injector=u(pe);_events=new j;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=u(_o);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=u(we,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!u(pt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new yt;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(t=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(t,o),t instanceof V&&t.code!==T.Redirect&&t.code!==T.SupersededByNewNavigation)this.navigated=!0;else if(t instanceof L)this.navigated=!0;else if(t instanceof He){let s=t.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(t.url,i.currentRawUrl),c=h({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Fa(i.source)},s);this.scheduleNavigation(a,Le,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}zs(t)&&this._events.next(t)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Le,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,t,i)=>{this.navigateToSyncWithBrowser(e,i,t)})}navigateToSyncWithBrowser(e,t,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let c=h({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(e);this.scheduleNavigation(a,t,s,o).catch(c=>{this.injector.get(wt)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(dn),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,t={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=t,l=c?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let y;try{let b=i?i.snapshot:this.routerState.snapshot.root;y=no(b)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),y=this.currentUrlTree.root}return io(y,e,d,l??null)}navigateByUrl(e,t={skipLocationChange:!1}){let i=ce(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Le,null,t)}navigate(e,t={skipLocationChange:!1}){return Va(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,t){let i;if(t===!0?i=h({},Ha):t===!1?i=h({},Ba):i=t,ce(e))return ji(this.currentUrlTree,e,i);let o=this.parseUrl(e);return ji(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((t,[i,o])=>(o!=null&&(t[i]=o),t),{})}scheduleNavigation(e,t,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((y,b)=>{a=y,c=b});let d=this.pendingTasks.add();return lr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:t,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(y=>Promise.reject(y))}static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function Va(r){for(let n=0;n<r.length;n++)if(r[n]==null)throw new R(4008,!1)}var Io=(()=>{class r{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=kn(null);get href(){return li(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new j;applicationErrorHandler=u(wt);options=u(ue,{optional:!0});constructor(e,t,i,o,s,a){this.router=e,this.route=t,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.reactiveHref.set(u(new Ot("href"),{optional:!0}));let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,t=i=>i==="merge"||i==="preserve";e||=t(this.queryParamsHandling),e||=!this.queryParamsHandling&&!t(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(i=>{i instanceof L&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ce(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,t,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||t||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c)?.catch(l=>{this.applicationErrorHandler(l)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,t){let i=this.renderer,o=this.el.nativeElement;t!==null?i.setAttribute(o,e,t):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:ce(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(t){return new(t||r)(Ie(Y),Ie(G),Un("tabindex"),Ie(Yn),Ie(_t),Ie(Oe))};static \u0275dir=It({type:r,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(t,i){t&1&&ii("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),t&2&&At("href",i.reactiveHref(),Wn)("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ae],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ae],replaceUrl:[2,"replaceUrl","replaceUrl",Ae],routerLink:"routerLink"},features:[bt]})}return r})();var mt=class{};var To=(()=>{class r{router;injector;preloadingStrategy;loader;subscription;constructor(e,t,i,o){this.router=e,this.injector=t,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(Q(e=>e instanceof L),fe(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){let i=[];for(let o of t){o.providers&&!o._injector&&(o._injector=Et(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return M(i).pipe(mr())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let i;t.loadChildren&&t.canLoad===void 0?i=this.loader.loadChildren(e,t):i=f(null);let o=i.pipe(A(s=>s===null?f(void 0):(t._loadedRoutes=s.routes,t._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(t.loadComponent&&!t._loadedComponent){let s=this.loader.loadComponent(t);return M([o,s]).pipe(mr())}else return o})}static \u0275fac=function(t){return new(t||r)(g(Y),g(pe),g(mt),g(sr))};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Mo=new C(""),qa=(()=>{class r{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Le;restoredId=0;store={};constructor(e,t,i,o,s={}){this.urlSerializer=e,this.transitions=t,this.viewportScroller=i,this.zone=o,this.options=s,s.scrollPositionRestoration||="disabled",s.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(e=>{e instanceof le?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof L?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof W&&e.code===Fe.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ze&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.zone.runOutsideAngular(()=>Rn(this,null,function*(){yield new Promise(i=>{setTimeout(i),typeof requestAnimationFrame<"u"&&requestAnimationFrame(i)}),this.zone.run(()=>{this.transitions.events.next(new ze(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,t))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(t){Zn()};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})();function Wa(r,...n){return Rr([{provide:we,multi:!0,useValue:r},[],{provide:G,useFactory:Ao,deps:[Y]},{provide:Ar,multi:!0,useFactory:Do},n.map(e=>e.\u0275providers)])}function Ao(r){return r.routerState.root}function We(r,n){return{\u0275kind:r,\u0275providers:n}}function Do(){let r=u(ge);return n=>{let e=r.get(Dr);if(n!==e.components[0])return;let t=r.get(Y),i=r.get(Oo);r.get(vn)===1&&t.initialNavigation(),r.get(ko,null,{optional:!0})?.setUpPreloading(),r.get(Mo,null,{optional:!0})?.init(),t.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Oo=new C("",{factory:()=>new j}),vn=new C("",{providedIn:"root",factory:()=>1});function xo(){let r=[{provide:vn,useValue:0},Mr(()=>{let n=u(ge);return n.get(mi,Promise.resolve()).then(()=>new Promise(t=>{let i=n.get(Y),o=n.get(Oo);lr(i,()=>{t(!0)}),n.get(cr).afterPreactivation=()=>(t(!0),o.closed?f(void 0):o),i.initialNavigation()}))})];return We(2,r)}function No(){let r=[Mr(()=>{u(Y).setUpLocationChangeListener()}),{provide:vn,useValue:2}];return We(3,r)}var ko=new C("");function Po(r){return We(0,[{provide:ko,useExisting:To},{provide:mt,useExisting:r}])}function Ga(){return We(6,[{provide:Oe,useClass:xr}])}function Uo(){return We(8,[ln,{provide:pt,useExisting:ln}])}function Lo(r){Kn("NgRouterViewTransitions");let n=[{provide:fn,useValue:bo},{provide:pn,useValue:h({skipNextTransition:!!r?.skipInitialTransition},r)}];return We(9,n)}var jo=[xe,{provide:Re,useClass:ae},Y,Ce,{provide:G,useFactory:Ao,deps:[Y]},sr,[]],Ya=(()=>{class r{constructor(){}static forRoot(e,t){return{ngModule:r,providers:[jo,[],{provide:we,multi:!0,useValue:e},[],t?.errorHandler?{provide:gn,useValue:t.errorHandler}:[],{provide:ue,useValue:t||{}},t?.useHash?Qa():Ka(),Za(),t?.preloadingStrategy?Po(t.preloadingStrategy).\u0275providers:[],t?.initialNavigation?Xa(t):[],t?.bindToComponentInputs?Uo().\u0275providers:[],t?.enableViewTransitions?Lo().\u0275providers:[],Ja()]}}static forChild(e){return{ngModule:r,providers:[{provide:we,multi:!0,useValue:e}]}}static \u0275fac=function(t){return new(t||r)};static \u0275mod=H({type:r});static \u0275inj=$({})}return r})();function Za(){return{provide:Mo,useFactory:()=>{let r=u(bi),n=u(J),e=u(ue),t=u(cr),i=u(Re);return e.scrollOffset&&r.setOffset(e.scrollOffset),new qa(i,t,r,n,e)}}}function Qa(){return{provide:Oe,useClass:xr}}function Ka(){return{provide:Oe,useClass:vi}}function Xa(r){return[r.initialNavigation==="disabled"?No().\u0275providers:[],r.initialNavigation==="enabledBlocking"?xo().\u0275providers:[]]}var mn=new C("");function Ja(){return[{provide:mn,useFactory:Do},{provide:Ar,multi:!0,useExisting:mn}]}var ur;function ec(){if(ur===void 0&&(ur=null,typeof window<"u")){let r=window;r.trustedTypes!==void 0&&(ur=r.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return ur}function vt(r){return ec()?.createHTML(r)||r}function Fo(r){return Error(`Unable to find icon with the name "${r}"`)}function tc(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function $o(r){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${r}".`)}function zo(r){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${r}".`)}var re=class{url;svgText;options;svgElement;constructor(n,e,t){this.url=n,this.svgText=e,this.options=t}},Bo=(()=>{class r{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,t,i,o){this._httpClient=e,this._sanitizer=t,this._errorHandler=o,this._document=i}addSvgIcon(e,t,i){return this.addSvgIconInNamespace("",e,t,i)}addSvgIconLiteral(e,t,i){return this.addSvgIconLiteralInNamespace("",e,t,i)}addSvgIconInNamespace(e,t,i,o){return this._addSvgIconConfig(e,t,new re(i,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,i,o){let s=this._sanitizer.sanitize(x.HTML,i);if(!s)throw zo(i);let a=vt(s);return this._addSvgIconConfig(e,t,new re("",a,o))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,i){return this._addSvgIconSetConfig(e,new re(t,null,i))}addSvgIconSetLiteralInNamespace(e,t,i){let o=this._sanitizer.sanitize(x.HTML,t);if(!o)throw zo(t);let s=vt(o);return this._addSvgIconSetConfig(e,new re("",s,i))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let t=this._sanitizer.sanitize(x.RESOURCE_URL,e);if(!t)throw $o(e);let i=this._cachedIconsByUrl.get(t);return i?f(dr(i)):this._loadSvgIconFromConfig(new re(e,null)).pipe(w(o=>this._cachedIconsByUrl.set(t,o)),v(o=>dr(o)))}getNamedSvgIcon(e,t=""){let i=Ho(t,e),o=this._svgIconConfigs.get(i);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(t,e),o)return this._svgIconConfigs.set(i,o),this._getSvgFromConfig(o);let s=this._iconSetConfigs.get(t);return s?this._getSvgFromIconSetConfigs(e,s):he(Fo(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?f(dr(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(v(t=>dr(t)))}_getSvgFromIconSetConfigs(e,t){let i=this._extractIconWithNameFromAnySet(e,t);if(i)return f(i);let o=t.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(K(a=>{let l=`Loading icon set URL: ${this._sanitizer.sanitize(x.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(l)),f(null)})));return In(o).pipe(v(()=>{let s=this._extractIconWithNameFromAnySet(e,t);if(!s)throw Fo(e);return s}))}_extractIconWithNameFromAnySet(e,t){for(let i=t.length-1;i>=0;i--){let o=t[i];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(w(t=>e.svgText=t),v(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?f(null):this._fetchIcon(e).pipe(w(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,i){let o=e.querySelector(`[id="${t}"]`);if(!o)return null;let s=o.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,i);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),i);let a=this._svgElementFromString(vt("<svg></svg>"));return a.appendChild(s),this._setSvgAttributes(a,i)}_svgElementFromString(e){let t=this._document.createElement("DIV");t.innerHTML=e;let i=t.querySelector("svg");if(!i)throw Error("<svg> tag not found");return i}_toSvgElement(e){let t=this._svgElementFromString(vt("<svg></svg>")),i=e.attributes;for(let o=0;o<i.length;o++){let{name:s,value:a}=i[o];s!=="id"&&t.setAttribute(s,a)}for(let o=0;o<e.childNodes.length;o++)e.childNodes[o].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[o].cloneNode(!0));return t}_setSvgAttributes(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}_fetchIcon(e){let{url:t,options:i}=e,o=i?.withCredentials??!1;if(!this._httpClient)throw tc();if(t==null)throw Error(`Cannot fetch icon from URL "${t}".`);let s=this._sanitizer.sanitize(x.RESOURCE_URL,t);if(!s)throw $o(t);let a=this._inProgressUrlFetches.get(s);if(a)return a;let c=this._httpClient.get(s,{responseType:"text",withCredentials:o}).pipe(v(l=>vt(l)),be(()=>this._inProgressUrlFetches.delete(s)),An());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,t,i){return this._svgIconConfigs.set(Ho(e,t),i),this}_addSvgIconSetConfig(e,t){let i=this._iconSetConfigs.get(e);return i?i.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){let t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let i=0;i<this._resolvers.length;i++){let o=this._resolvers[i](t,e);if(o)return rc(o)?new re(o.url,null,o.options):new re(o,null)}}static \u0275fac=function(t){return new(t||r)(g(_i,8),g(zr),g(_,8),g(oe))};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function dr(r){return r.cloneNode(!0)}function Ho(r,n){return r+":"+n}function rc(r){return!!(r.url&&r.options)}var nc=["*"],ic=new C("MAT_ICON_DEFAULT_OPTIONS"),oc=new C("mat-icon-location",{providedIn:"root",factory:sc});function sc(){let r=u(_),n=r?r.location:null;return{getPathname:()=>n?n.pathname+n.search:""}}var Vo=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ac=Vo.map(r=>`[${r}]`).join(", "),cc=/^url\(['"]?#(.*?)['"]?\)$/,ou=(()=>{class r{_elementRef=u(_t);_iconRegistry=u(Bo);_location=u(oc);_errorHandler=u(oe);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=yt.EMPTY;constructor(){let e=u(new Ot("aria-hidden"),{optional:!0}),t=u(ic,{optional:!0});t&&(t.color&&(this.color=this._defaultColor=t.color),t.fontSet&&(this.fontSet=t.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){let i=e.childNodes[t];(i.nodeType!==1||i.nodeName.toLowerCase()==="svg")&&i.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(i=>i.length>0);this._previousFontSetClass.forEach(i=>e.classList.remove(i)),t.forEach(i=>e.classList.add(i)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let t=this._elementsWithExternalReferences;t&&t.forEach((i,o)=>{i.forEach(s=>{o.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){let t=e.querySelectorAll(ac),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o<t.length;o++)Vo.forEach(s=>{let a=t[o],c=a.getAttribute(s),l=c?c.match(cc):null;if(l){let d=i.get(a);d||(d=[],i.set(a,d)),d.push({name:s,value:l[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[t,i]=this._splitIconName(e);t&&(this._svgNamespace=t),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,t).pipe(ne(1)).subscribe(o=>this._setSvgElement(o),o=>{let s=`Error retrieving icon ${t}:${i}! ${o.message}`;this._errorHandler.handleError(new Error(s))})}}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=Te({type:r,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(t,i){t&2&&(At("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),ai(i.color?"mat-"+i.color:""),Dt("mat-icon-inline",i.inline)("mat-icon-no-color",i.color!=="primary"&&i.color!=="accent"&&i.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",Ae],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:nc,decls:1,vars:0,template:function(t,i){t&1&&(oi(),si(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}
2
2
  `],encapsulation:2,changeDetection:0})}return r})(),su=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=H({type:r});static \u0275inj=$({imports:[Ze,Ze]})}return r})();var lu=(()=>{class r{_animationsDisabled=Ei();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=Te({type:r,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(t,i){t&2&&Dt("mat-pseudo-checkbox-indeterminate",i.state==="indeterminate")("mat-pseudo-checkbox-checked",i.state==="checked")("mat-pseudo-checkbox-disabled",i.disabled)("mat-pseudo-checkbox-minimal",i.appearance==="minimal")("mat-pseudo-checkbox-full",i.appearance==="full")("_mat-animation-noopable",i._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(t,i){},styles:[`.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}
3
3
  `],encapsulation:2,changeDetection:0})}return r})();var hu=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=H({type:r});static \u0275inj=$({imports:[Ze]})}return r})();var lc=(()=>{class r{_listeners=[];notify(e,t){for(let i of this._listeners)i(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(t){return new(t||r)};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var Sn=class{applyChanges(n,e,t,i,o){n.forEachOperation((s,a,c)=>{let l,d;if(s.previousIndex==null){let y=t(s,a,c);l=e.createEmbeddedView(y.templateRef,y.context,y.index),d=Qe.INSERTED}else c==null?(e.remove(a),d=Qe.REMOVED):(l=e.get(a),e.move(l,c),d=Qe.MOVED);o&&o({context:l?.context,operation:d,record:s})})}detach(){}};var yn=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new j;constructor(n=!1,e,t=!0,i){this._multiple=n,this._emitChanges=t,this.compareWith=i,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(t=>this._markSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(t=>this._unmarkSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);let e=this.selected,t=new Set(n.map(o=>this._getConcreteValue(o)));n.forEach(o=>this._markSelected(o)),e.filter(o=>!t.has(this._getConcreteValue(o,t))).forEach(o=>this._unmarkSelected(o));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();let e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e}isSelected(n){return this._selection.has(this._getConcreteValue(n))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){n=this._getConcreteValue(n),this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){n=this._getConcreteValue(n),this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){n.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(n,e){if(this.compareWith){e=e??this._selection;for(let t of e)if(this.compareWith(n,t))return t;return n}else return n}};export{Fr as a,is as b,ds as c,$r as d,ps as e,Wc as f,zr as g,cn as h,Y as i,Io as j,Wa as k,Ga as l,Ya as m,Bo as n,ou as o,su as p,lu as q,hu as r,lc as s,Sn as t,yn as u};
@@ -0,0 +1 @@
1
+ import{h as p,p as u}from"./chunk-UPJO7TXR.js";import{Ja as i,Md as s,Sc as c,Uc as a,m as l,o as m,oa as g,ta as n}from"./chunk-5KKRPVJE.js";var h="3.4.2-beta.1";var C=(()=>{class o{MODE_PATH="self.environment.mode";configurableThemeColors=[{label:"Contrast",value:"contrast"},{label:"Blue",value:"blue"},{label:"Green",value:"green"},{label:"Orange",value:"orange"},{label:"Yellow",value:"yellow"},{label:"Pink",value:"pink"},{label:"Purple",value:"purple"},{label:"Grey",value:"grey"}];snackbarAppNotifications=new l;cssThemeColorRoles$=new m(null);_cssThemeColorRoles=null;_settings=n(p);_data=n(u);isNightMode=i(!1);_useAutoNightMode=s(this._settings.getAutoNightModeAsO(),{requireSync:!0});_theme=s(this._settings.getThemeNameAsO(),{requireSync:!0});_redNightMode=s(this._settings.getRedNightModeAsO(),{requireSync:!0});_environmentMode=s(this._data.subscribePath(this.MODE_PATH,"default"));appVersion=i(h);browserVersion=i("Unknown");osVersion=i("Unknown");constructor(){a(()=>{this._theme()==="light-theme"?document.body.classList.toggle("light-theme",this._theme()==="light-theme"):document.body.classList.remove("light-theme")}),a(()=>{let t=this._environmentMode().data.value;this._useAutoNightMode()&&(this.isNightMode.set(t==="night"),this.toggleDayNightMode())}),a(()=>{let t=this._redNightMode();c(()=>{t?this.toggleDayNightMode():this.toggleDayNightMode()})}),this.readThemeCssRoleVariables(),this._cssThemeColorRoles=this.cssThemeColorRoles$.getValue(),this.browserVersion.set(this.getBrowserVersion()),this.osVersion.set(this.getOSVersion()),console.log("*********** KIP Version Information ***********"),console.log(`** App Version: ${this.appVersion()}`),console.log(`** Browser Version: ${this.browserVersion()}`),console.log(`** OS Version: ${this.osVersion()}`),console.log("***********************************************")}sendSnackbarNotification(t,e=1e4,r=!1){this.snackbarAppNotifications.next({message:t,duration:e,silent:r})}getSnackbarAppNotifications(){return this.snackbarAppNotifications.asObservable()}readThemeCssRoleVariables(){let t=document.body,e=getComputedStyle(t),r={background:e.getPropertyValue("--mat-sys-background").trim(),cardColor:e.getPropertyValue("--kip-widget-card-background-color").trim(),blue:e.getPropertyValue("--kip-blue-color").trim(),blueDim:e.getPropertyValue("--kip-blue-dim-color").trim(),blueDimmer:e.getPropertyValue("--kip-blue-dimmer-color").trim(),green:e.getPropertyValue("--kip-green-color").trim(),greenDim:e.getPropertyValue("--kip-green-dim-color").trim(),greenDimmer:e.getPropertyValue("--kip-green-dimmer-color").trim(),grey:e.getPropertyValue("--kip-grey-color").trim(),greyDim:e.getPropertyValue("--kip-grey-dim-color").trim(),greyDimmer:e.getPropertyValue("--kip-grey-dimmer-color").trim(),orange:e.getPropertyValue("--kip-orange-color").trim(),orangeDim:e.getPropertyValue("--kip-orange-dim-color").trim(),orangeDimmer:e.getPropertyValue("--kip-orange-dimmer-color").trim(),pink:e.getPropertyValue("--kip-pink-color").trim(),pinkDim:e.getPropertyValue("--kip-pink-dim-color").trim(),pinkDimmer:e.getPropertyValue("--kip-pink-dimmer-color").trim(),purple:e.getPropertyValue("--kip-purple-color").trim(),purpleDim:e.getPropertyValue("--kip-purple-dim-color").trim(),purpleDimmer:e.getPropertyValue("--kip-purple-dimmer-color").trim(),contrast:e.getPropertyValue("--kip-contrast-color").trim(),contrastDim:e.getPropertyValue("--kip-contrast-dim-color").trim(),contrastDimmer:e.getPropertyValue("--kip-contrast-dimmer-color").trim(),yellow:e.getPropertyValue("--kip-yellow-color").trim(),yellowDim:e.getPropertyValue("--kip-yellow-dim-color").trim(),yellowDimmer:e.getPropertyValue("--kip-yellow-dimmer-color").trim(),port:e.getPropertyValue("--kip-port-color").trim(),starboard:e.getPropertyValue("--kip-starboard-color").trim(),zoneNominal:e.getPropertyValue("--kip-zone-nominal-color").trim(),zoneAlert:e.getPropertyValue("--kip-zone-alert-color").trim(),zoneWarn:e.getPropertyValue("--kip-zone-warn-color").trim(),zoneAlarm:e.getPropertyValue("--kip-zone-alarm-color").trim(),zoneEmergency:e.getPropertyValue("--kip-zone-emergency-color").trim()};this.cssThemeColorRoles$.next(r)}get cssThemeColors(){return this._cssThemeColorRoles}setBrightness(t,e=!1){let r=document.body;r.style.setProperty("--kip-nightModeBrightness",`${t}`);let d=e?" sepia(0.5) hue-rotate(-30deg)":"";r.style.setProperty("--kip-nightModeFilters",d)}toggleDayNightMode(){this.isNightMode()?this._redNightMode()?(document.body.classList.toggle("night-theme",!0),this.setBrightness(1,!1)):(this.setBrightness(this._settings.getNightModeBrightness(),!0),document.body.classList.remove("night-theme"),this._theme()==="light-theme"?document.body.classList.toggle("light-theme",this._theme()==="light-theme"):document.body.classList.remove("light-theme")):(document.body.classList.remove("night-theme"),this._theme()==="light-theme"&&document.body.classList.toggle("light-theme",this._theme()==="light-theme"),this.setBrightness(1,!1)),this.readThemeCssRoleVariables(),this._cssThemeColorRoles=this.cssThemeColorRoles$.getValue()}getBrowserVersion(){let t=navigator.userAgent,e="Unknown";return t.includes("Edg")?e=`Edge ${t.match(/Edg\/(\d+)/)?.[1]}`:t.includes("Chrome")&&!t.includes("Edg")&&!t.includes("Chromium")?e=`Chrome ${t.match(/Chrome\/(\d+)/)?.[1]}`:t.includes("Chromium")?e=`Chromium ${t.match(/Chromium\/(\d+)/)?.[1]}`:t.includes("Firefox")?e=`Firefox ${t.match(/Firefox\/(\d+)/)?.[1]}`:t.includes("Safari")&&!t.includes("Chrome")&&!t.includes("Chromium")?e=`Safari ${t.match(/Version\/(\d+)/)?.[1]}`:(t.includes("Opera")||t.includes("OPR"))&&(e=`Opera ${t.match(/(Opera|OPR)\/(\d+)/)?.[2]}`),e}getOSVersion(){let t=navigator.platform,e=navigator.userAgent;return t.startsWith("Mac")?"macOS":t.startsWith("Win")?"Windows":/Linux/.test(t)?e.includes("ARM")||e.includes("aarch64")||e.includes("Raspberry")||t.includes("armv7l")||t.includes("armv8l")?"Raspberry Pi":"Linux":"Unknown OS"}static \u0275fac=function(e){return new(e||o)};static \u0275prov=g({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();export{C as a};