homebridge-config-ui-x 5.0.0-beta.54 → 5.0.0-beta.56

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 (137) hide show
  1. package/CHANGELOG.md +7 -3
  2. package/dist/bin/platforms/darwin.js +2 -2
  3. package/dist/bin/platforms/darwin.js.map +1 -1
  4. package/dist/modules/accessories/accessories.service.js +6 -6
  5. package/dist/modules/accessories/accessories.service.js.map +1 -1
  6. package/dist/modules/backup/backup.service.d.ts +1 -0
  7. package/dist/modules/backup/backup.service.js +40 -12
  8. package/dist/modules/backup/backup.service.js.map +1 -1
  9. package/dist/modules/config-editor/config-editor.service.js +56 -58
  10. package/dist/modules/config-editor/config-editor.service.js.map +1 -1
  11. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.d.ts +1 -1
  12. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js +6 -6
  13. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js.map +1 -1
  14. package/dist/modules/plugins/plugins.service.js +6 -0
  15. package/dist/modules/plugins/plugins.service.js.map +1 -1
  16. package/dist/modules/server/server.service.js +26 -6
  17. package/dist/modules/server/server.service.js.map +1 -1
  18. package/package.json +16 -11
  19. package/public/assets/hap-icons/co-sensor.svg +72 -0
  20. package/public/assets/hap-icons/co2-sensor.svg +72 -0
  21. package/public/{chunk-AKQE7OWM.js → chunk-2COJW6JZ.js} +1 -1
  22. package/public/chunk-2IW5LNPB.js +1 -0
  23. package/public/{chunk-KLDACGOZ.js → chunk-3BELKOOV.js} +1 -1
  24. package/public/chunk-4CHT7AT4.js +1 -0
  25. package/public/chunk-4M72X5OK.js +1 -0
  26. package/public/chunk-4RHFK7T7.js +1 -0
  27. package/public/chunk-5V2DC7MB.js +1 -0
  28. package/public/{chunk-OKJ2T4EM.js → chunk-66N6LPDX.js} +1 -1
  29. package/public/{chunk-M5YMSV5J.js → chunk-6ANUJDFI.js} +1 -1
  30. package/public/chunk-6JZDPQRU.js +7 -0
  31. package/public/chunk-6UJYW2BC.js +1 -0
  32. package/public/{chunk-TWFE7WAV.js → chunk-736OOU3Z.js} +1 -1
  33. package/public/{chunk-HQDY2QYB.js → chunk-773OTB2G.js} +1 -1
  34. package/public/{chunk-Q7NLVQF3.js → chunk-A6S2CSNA.js} +1 -1
  35. package/public/chunk-AK5KQMIG.js +1 -0
  36. package/public/chunk-AOTHIRMY.js +1 -0
  37. package/public/{chunk-TQSZOE62.js → chunk-AXQ3BC2K.js} +1 -1
  38. package/public/{chunk-GZMSZZVX.js → chunk-B2ERIJJG.js} +1 -1
  39. package/public/{chunk-F2WFV5GW.js → chunk-BBVFH2MI.js} +1 -1
  40. package/public/{chunk-W7CPCAPT.js → chunk-D3QNROQA.js} +1 -1
  41. package/public/{chunk-WNBSA3C7.js → chunk-DCC24Q4F.js} +1 -1
  42. package/public/{chunk-XCZREHWX.js → chunk-DVN556RD.js} +1 -1
  43. package/public/{chunk-D5WEMCFU.js → chunk-E3OYPTR2.js} +5 -5
  44. package/public/{chunk-KD5YLOUW.js → chunk-G75CPMPQ.js} +2 -2
  45. package/public/{chunk-DFISUNQT.js → chunk-HLM36W2F.js} +1 -1
  46. package/public/chunk-HNSNM4LP.js +1 -0
  47. package/public/{chunk-PVRKV6LM.js → chunk-IQBKWEOJ.js} +1 -1
  48. package/public/chunk-IYB7FT3D.js +1 -0
  49. package/public/{chunk-3JTVYTOV.js → chunk-IYWODW5F.js} +1 -1
  50. package/public/{chunk-NBOGF5S7.js → chunk-J3SOHF7U.js} +1 -1
  51. package/public/chunk-J6F5YEE7.js +1 -0
  52. package/public/{chunk-LRGJFKOV.js → chunk-JJGSWCQV.js} +1 -1
  53. package/public/chunk-JJNXRO4M.js +1 -0
  54. package/public/chunk-JO3D6NVS.js +1 -0
  55. package/public/chunk-KSS2AKKJ.js +1 -0
  56. package/public/chunk-KZVBUYFA.js +1 -0
  57. package/public/{chunk-NSDMDB7X.js → chunk-L4SPVWCZ.js} +1 -1
  58. package/public/{chunk-IRTFX6CU.js → chunk-LS2FIX2L.js} +1 -1
  59. package/public/chunk-LSEE2EJ5.js +1 -0
  60. package/public/{chunk-L4PJSJOC.js → chunk-LYECLRZK.js} +1 -1
  61. package/public/chunk-M7SOMZDC.js +1 -0
  62. package/public/{chunk-BEBVDUK5.js → chunk-N4Z4UGMV.js} +1 -1
  63. package/public/chunk-NGIHFGBF.js +1 -0
  64. package/public/{chunk-D6PHTILW.js → chunk-NKLCJU2S.js} +1 -1
  65. package/public/chunk-OARRUSU5.js +1 -0
  66. package/public/{chunk-YIYI7U2L.js → chunk-OPSX6NGT.js} +1 -1
  67. package/public/chunk-P3FBSUT6.js +1 -0
  68. package/public/{chunk-GDNT2HPK.js → chunk-P6AJ5TS2.js} +1 -1
  69. package/public/chunk-Q6TB7XJF.js +1 -0
  70. package/public/{chunk-GHPAEKNM.js → chunk-QAB7LTBA.js} +1 -1
  71. package/public/{chunk-P5BH5BCJ.js → chunk-QIWZD5HO.js} +1 -1
  72. package/public/{chunk-X2NTV4U7.js → chunk-QX4JJLN4.js} +1 -1
  73. package/public/{chunk-NG3SOGCM.js → chunk-R5QHD2MV.js} +1 -1
  74. package/public/{chunk-6MIOQ7Y5.js → chunk-REYVZJK4.js} +1 -1
  75. package/public/{chunk-RWT5SL6D.js → chunk-S7I53EZU.js} +1 -1
  76. package/public/chunk-SD6V7IFJ.js +1 -0
  77. package/public/{chunk-MJUBX7V2.js → chunk-SHPANMJF.js} +1 -1
  78. package/public/{chunk-QGC43YCF.js → chunk-SZTIHT5G.js} +1 -1
  79. package/public/{chunk-KJCIKCUI.js → chunk-T6O5C7ES.js} +1 -1
  80. package/public/{chunk-M5LTG544.js → chunk-TH7WF563.js} +1 -1
  81. package/public/chunk-THIDU5VO.js +1 -0
  82. package/public/{chunk-QGDGNYSY.js → chunk-TLHK2BEJ.js} +1 -1
  83. package/public/{chunk-KIPITWHI.js → chunk-TOSAT7VK.js} +1 -1
  84. package/public/{chunk-MS2EQS6S.js → chunk-U3XAGOD7.js} +1 -1
  85. package/public/{chunk-JE3LI7IZ.js → chunk-UE3HPVVJ.js} +1 -1
  86. package/public/{chunk-X7HV5PS7.js → chunk-UHIT6NQS.js} +1 -1
  87. package/public/{chunk-5NJQH2A3.js → chunk-UXBIRDFV.js} +1 -1
  88. package/public/chunk-UXGMJXWE.js +1 -0
  89. package/public/{chunk-V233CDAY.js → chunk-VZPOY7LH.js} +1 -1
  90. package/public/chunk-WROPKO5D.js +1 -0
  91. package/public/{chunk-R2MEYLU6.js → chunk-XJTWPBNY.js} +1 -1
  92. package/public/{chunk-7HGOM4YX.js → chunk-XK5P2LIO.js} +1 -1
  93. package/public/{chunk-LSEE5MJ5.js → chunk-XKZJKXVQ.js} +1 -1
  94. package/public/chunk-XSVWXIZ3.js +1 -0
  95. package/public/{chunk-W6CTMNAG.js → chunk-Y5BDWQTD.js} +1 -1
  96. package/public/{chunk-UQFNUGQM.js → chunk-Y7QARRGO.js} +1 -1
  97. package/public/{chunk-6GWRWBF2.js → chunk-YBF3LNSH.js} +1 -1
  98. package/public/{chunk-UXXGHFQU.js → chunk-YCHPFYO5.js} +1 -1
  99. package/public/{chunk-IEBQX6HS.js → chunk-YSSMQJIR.js} +1 -1
  100. package/public/chunk-YVLNDNOU.js +1 -0
  101. package/public/chunk-ZEDF3XZB.js +1 -0
  102. package/public/{chunk-5BZGZWPU.js → chunk-ZEGJJ2QZ.js} +1 -1
  103. package/public/chunk-ZUXRWBEO.js +1 -0
  104. package/public/index.html +2 -2
  105. package/public/{main-WAIZFTFV.js → main-KLOKN23N.js} +1 -1
  106. package/public/{polyfills-IVGADV35.js → polyfills-QPBMDKSH.js} +2 -2
  107. package/public/{styles-GAKWEL7A.css → styles-EYD3YW3P.css} +1 -1
  108. package/public/chunk-2DTLVEZT.js +0 -1
  109. package/public/chunk-2FUKJXA2.js +0 -1
  110. package/public/chunk-3R46QOCE.js +0 -1
  111. package/public/chunk-3TOJYAHV.js +0 -1
  112. package/public/chunk-4IP5DDXE.js +0 -1
  113. package/public/chunk-5CDZD4QO.js +0 -1
  114. package/public/chunk-6MX25OCF.js +0 -1
  115. package/public/chunk-7EVWOJST.js +0 -1
  116. package/public/chunk-CEHKV4IM.js +0 -1
  117. package/public/chunk-HMDNUXTY.js +0 -1
  118. package/public/chunk-JGMDXNMZ.js +0 -1
  119. package/public/chunk-KAI32HWM.js +0 -1
  120. package/public/chunk-KPIML2SI.js +0 -1
  121. package/public/chunk-LTRMT3PM.js +0 -1
  122. package/public/chunk-MKXFRTHP.js +0 -1
  123. package/public/chunk-NCJAIFQO.js +0 -1
  124. package/public/chunk-O7E5GSDU.js +0 -1
  125. package/public/chunk-OAUVJEII.js +0 -1
  126. package/public/chunk-OIAU3DDH.js +0 -1
  127. package/public/chunk-OZD3PKS7.js +0 -1
  128. package/public/chunk-PTKIJR4Y.js +0 -1
  129. package/public/chunk-QNQ6DXDY.js +0 -1
  130. package/public/chunk-R5HVCC65.js +0 -1
  131. package/public/chunk-SQV4HVMS.js +0 -1
  132. package/public/chunk-UIW5IZLL.js +0 -1
  133. package/public/chunk-V7KKBEKT.js +0 -7
  134. package/public/chunk-V7N6TZL2.js +0 -1
  135. package/public/chunk-W7IALUEC.js +0 -1
  136. package/public/chunk-YJ3F3IFM.js +0 -1
  137. package/public/chunk-ZSRQVLRE.js +0 -1
@@ -1 +0,0 @@
1
- import{a}from"./chunk-NBOGF5S7.js";import"./chunk-NCJAIFQO.js";import"./chunk-KD5YLOUW.js";import"./chunk-P5BH5BCJ.js";import"./chunk-V7KKBEKT.js";export{a as ShutdownLinuxComponent};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-WNBSA3C7.js";import{a as f}from"./chunk-DFISUNQT.js";import"./chunk-GHPAEKNM.js";import"./chunk-QGC43YCF.js";import"./chunk-NSDMDB7X.js";import{q as u}from"./chunk-MS2EQS6S.js";import{y as n,z as p}from"./chunk-XCZREHWX.js";import"./chunk-X2NTV4U7.js";import{g as i}from"./chunk-5CDZD4QO.js";import"./chunk-5NJQH2A3.js";import"./chunk-MJUBX7V2.js";import"./chunk-NCJAIFQO.js";import"./chunk-KD5YLOUW.js";import{c as d}from"./chunk-P5BH5BCJ.js";import{gd as m,ha as t,ub as r}from"./chunk-V7KKBEKT.js";var M=[{path:"",loadComponent:()=>import("./chunk-MKXFRTHP.js").then(o=>o.SetupWizardComponent)}],l=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[i.forChild(M),i]})}return o})();var R=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({providers:[a],imports:[m,n,p,d,u,l,f]})}return o})();export{R as SetupWizardModule};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-JE3LI7IZ.js";import"./chunk-W6CTMNAG.js";import"./chunk-W7CPCAPT.js";import"./chunk-XCZREHWX.js";import"./chunk-5CDZD4QO.js";import"./chunk-MJUBX7V2.js";import"./chunk-NCJAIFQO.js";import"./chunk-KD5YLOUW.js";import"./chunk-P5BH5BCJ.js";import"./chunk-V7KKBEKT.js";export{a as StartupScriptComponent};
@@ -1 +0,0 @@
1
- import{a as f,b as u}from"./chunk-YIYI7U2L.js";import{a as d}from"./chunk-GDNT2HPK.js";import{c as p}from"./chunk-HMDNUXTY.js";import"./chunk-UQFNUGQM.js";import"./chunk-F2WFV5GW.js";import"./chunk-W7CPCAPT.js";import{q as n}from"./chunk-MS2EQS6S.js";import{y as s}from"./chunk-XCZREHWX.js";import"./chunk-X2NTV4U7.js";import{g as i}from"./chunk-5CDZD4QO.js";import"./chunk-5NJQH2A3.js";import"./chunk-MJUBX7V2.js";import"./chunk-NCJAIFQO.js";import"./chunk-KD5YLOUW.js";import{c}from"./chunk-P5BH5BCJ.js";import{gd as m,ha as r,ub as e}from"./chunk-V7KKBEKT.js";var C=[{path:"",loadComponent:()=>import("./chunk-SQV4HVMS.js").then(o=>o.AccessoriesComponent)}],l=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=e({type:o});static \u0275inj=r({imports:[i.forChild(C),i]})}return o})();var S=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=e({type:o});static \u0275inj=r({imports:[m,s,n,p,c.forChild(),d,l,u,f]})}return o})();export{S as AccessoriesModule};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-KJCIKCUI.js";import"./chunk-LSEE5MJ5.js";import"./chunk-M5LTG544.js";import"./chunk-W6CTMNAG.js";import"./chunk-W7CPCAPT.js";import"./chunk-MS2EQS6S.js";import"./chunk-XCZREHWX.js";import"./chunk-5CDZD4QO.js";import"./chunk-MJUBX7V2.js";import"./chunk-NCJAIFQO.js";import"./chunk-KD5YLOUW.js";import"./chunk-P5BH5BCJ.js";import"./chunk-V7KKBEKT.js";export{a as ConfigEditorComponent};
@@ -1 +0,0 @@
1
- import{l as cn}from"./chunk-KD5YLOUW.js";import{$ as j,A as De,Aa as jr,Ab as Wr,B as Mr,Ba as kr,C as kt,Ca as ie,Da as et,Ec as rt,Fb as Gr,Ga as Lr,Gb as Ht,Gc as nt,H as Z,Ha as Bt,Hb as Qr,Ib as Zr,Jb as Kr,Jc as it,K as re,L as ne,N as Lt,Nc as rn,O as de,Oc as nn,S as Je,Sa as $r,T as K,Tc as sn,U as $t,Uc as Ne,V as Dr,W as Er,Wb as Yr,Wc as on,Xc as fe,Yc as an,_ as Ur,a as h,aa as Nr,b as P,ba as w,bc as Xr,da as b,eb as zr,fc as Jr,ga as C,ha as Pr,hc as en,i as Ir,ia as xr,ic as tn,j as Ar,ja as O,ka as zt,l as _t,la as G,lb as Vt,m as jt,ma as p,mb as k,n as H,nb as Fr,nd as un,o as x,ob as qr,p as W,q as I,qa as pe,r as d,ra as $,rb as Br,s as Me,sb as tt,t as Tr,ta as Ee,tb as Vr,u as Or,ub as Hr,vb as Ue,x as m,xa as Ft,y as Xe,ya as _r,z as T,za as qt}from"./chunk-V7KKBEKT.js";var f="primary",He=Symbol("RouteTitle"),Kt=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 ae(t){return new Kt(t)}function mn(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let i={};for(let o=0;o<r.length;o++){let s=r[o],a=t[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function ci(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!z(t[e],n[e]))return!1;return!0}function z(t,n){let e=t?Yt(t):void 0,r=n?Yt(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Rn(t[i],n[i]))return!1;return!0}function Yt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Rn(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Sn(t){return t.length>0?t[t.length-1]:null}function te(t){return Tr(t)?t:Gr(t)?I(Promise.resolve(t)):d(t)}var li={exact:Cn,subset:wn},yn={exact:hi,subset:di,ignored:()=>!0};function ln(t,n,e){return li[e.paths](t.root,n.root,e.matrixParams)&&yn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function hi(t,n){return z(t,n)}function Cn(t,n,e){if(!se(t.segments,n.segments)||!at(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!Cn(t.children[r],n.children[r],e))return!1;return!0}function di(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Rn(t[e],n[e]))}function wn(t,n,e){return bn(t,n,n.segments,e)}function bn(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!se(i,e)||n.hasChildren()||!at(i,e,r))}else if(t.segments.length===e.length){if(!se(t.segments,e)||!at(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!wn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!se(t.segments,i)||!at(t.segments,i,r)||!t.children[f]?!1:bn(t.children[f],n,o,r)}}function at(t,n,e){return n.every((r,i)=>yn[e](t[i].parameters,r.parameters))}var q=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){var n;return(n=this._queryParamMap)!=null||(this._queryParamMap=ae(this.queryParams)),this._queryParamMap}toString(){return gi.serialize(this)}},v=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ut(this)}},Y=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){var n;return(n=this._parameterMap)!=null||(this._parameterMap=ae(this.parameters)),this._parameterMap}toString(){return An(this)}};function pi(t,n){return se(t,n)&&t.every((e,r)=>z(e.parameters,n[r].parameters))}function se(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function fi(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===f&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==f&&(e=e.concat(n(i,r)))}),e}var ue=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>new X,providedIn:"root"})}return t})(),X=class{parse(n){let e=new Jt(n);return new q(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Pe(n.root,!0)}`,r=Ri(n.queryParams),i=typeof n.fragment=="string"?`#${vi(n.fragment)}`:"";return`${e}${r}${i}`}},gi=new X;function ut(t){return t.segments.map(n=>An(n)).join("/")}function Pe(t,n){if(!t.hasChildren())return ut(t);if(n){let e=t.children[f]?Pe(t.children[f],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==f&&r.push(`${i}:${Pe(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=fi(t,(r,i)=>i===f?[Pe(t.children[f],!1)]:[`${i}:${Pe(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[f]!=null?`${ut(t)}/${e[0]}`:`${ut(t)}/(${e.join("//")})`}}function In(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function st(t){return In(t).replace(/%3B/gi,";")}function vi(t){return encodeURI(t)}function Xt(t){return In(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ct(t){return decodeURIComponent(t)}function hn(t){return ct(t.replace(/\+/g,"%20"))}function An(t){return`${Xt(t.path)}${mi(t.parameters)}`}function mi(t){return Object.entries(t).map(([n,e])=>`;${Xt(n)}=${Xt(e)}`).join("")}function Ri(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${st(e)}=${st(i)}`).join("&"):`${st(e)}=${st(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Si=/^[^\/()?;#]+/;function Wt(t){let n=t.match(Si);return n?n[0]:""}var yi=/^[^\/()?;=#]+/;function Ci(t){let n=t.match(yi);return n?n[0]:""}var wi=/^[^=?&#]+/;function bi(t){let n=t.match(wi);return n?n[0]:""}var Ii=/^[^&#]+/;function Ai(t){let n=t.match(Ii);return n?n[0]:""}var Jt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){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 r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[f]=new v(n,e)),r}parseSegment(){let n=Wt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(n),new Y(ct(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=Ci(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Wt(this.remaining);i&&(r=i,this.capture(r))}n[ct(e)]=ct(r)}parseQueryParam(n){let e=bi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=Ai(this.remaining);s&&(r=s,this.capture(r))}let i=hn(e),o=hn(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Wt(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new b(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=f);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[f]:new v([],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 b(4011,!1)}};function Tn(t){return t.segments.length>0?new v([],{[f]:t}):t}function On(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=On(i);if(r===f&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new v(t.segments,n);return Ti(e)}function Ti(t){if(t.numberOfChildren===1&&t.children[f]){let n=t.children[f];return new v(t.segments.concat(n.segments),n.children)}return t}function J(t){return t instanceof q}function Mn(t,n,e=null,r=null){let i=Dn(t);return En(i,n,e,r)}function Dn(t){let n;function e(o){let s={};for(let u of o.children){let c=e(u);s[u.outlet]=c}let a=new v(o.url,s);return o===t&&(n=a),a}let r=e(t.root),i=Tn(r);return n!=null?n:i}function En(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return Gt(i,i,i,e,r);let o=Oi(n);if(o.toRoot())return Gt(i,i,new v([],{}),e,r);let s=Mi(o,i,t),a=s.processChildren?_e(s.segmentGroup,s.index,o.commands):Nn(s.segmentGroup,s.index,o.commands);return Gt(i,s.segmentGroup,a,e,r)}function ht(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ke(t){return typeof t=="object"&&t!=null&&t.outlets}function Gt(t,n,e,r,i){let o={};r&&Object.entries(r).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;t===n?s=e:s=Un(t,n,e);let a=Tn(On(s));return new q(a,o,i)}function Un(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Un(o,n,e)}),new v(t.segments,r)}var dt=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&ht(r[0]))throw new b(4003,!1);let i=r.find(ke);if(i&&i!==Sn(r))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Oi(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new dt(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?e=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new dt(e,n,r)}var me=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Mi(t,n,e){if(t.isAbsolute)return new me(n,!0,0);if(!e)return new me(n,!1,NaN);if(e.parent===null)return new me(e,!0,0);let r=ht(t.commands[0])?0:1,i=e.segments.length-1+r;return Di(e,i,t.numberOfDoubleDots)}function Di(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new b(4005,!1);i=r.segments.length}return new me(r,!1,i-o)}function Ei(t){return ke(t[0])?t[0].outlets:{[f]:t}}function Nn(t,n,e){if(t!=null||(t=new v([],{})),t.segments.length===0&&t.hasChildren())return _e(t,n,e);let r=Ui(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new v(t.segments.slice(0,r.pathIndex),{});return o.children[f]=new v(t.segments.slice(r.pathIndex),t.children),_e(o,0,i)}else return r.match&&i.length===0?new v(t.segments,{}):r.match&&!t.hasChildren()?er(t,n,e):r.match?_e(t,0,i):er(t,n,e)}function _e(t,n,e){if(e.length===0)return new v(t.segments,{});{let r=Ei(e),i={};if(Object.keys(r).some(o=>o!==f)&&t.children[f]&&t.numberOfChildren===1&&t.children[f].segments.length===0){let o=_e(t.children[f],n,e);return new v(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Nn(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new v(t.segments,i)}}function Ui(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let s=t.segments[i],a=e[r];if(ke(a))break;let u=`${a}`,c=r<e.length-1?e[r+1]:null;if(i>0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!pn(u,c,s))return o;r+=2}else{if(!pn(u,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function er(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(ke(o)){let u=Ni(o.outlets);return new v(r,u)}if(i===0&&ht(e[0])){let u=t.segments[n];r.push(new Y(u.path,dn(e[0]))),i++;continue}let s=ke(o)?o.outlets[f]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&ht(a)?(r.push(new Y(s,dn(a))),i+=2):(r.push(new Y(s,{})),i++)}return new v(r,{})}function Ni(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=er(new v([],{}),0,r))}),n}function dn(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function pn(t,n,e){return t==e.path&&z(n,e.parameters)}var lt="imperative",y=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(y||{}),U=class{id;url;constructor(n,e){this.id=n,this.url=e}},ee=class extends U{type=y.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},N=class extends U{urlAfterRedirects;type=y.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},M=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(M||{}),Se=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Se||{}),F=class extends U{reason;code;type=y.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},B=class extends U{reason;code;type=y.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},ye=class extends U{error;target;type=y.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Le=class extends U{urlAfterRedirects;state;type=y.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pt=class extends U{urlAfterRedirects;state;type=y.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ft=class extends U{urlAfterRedirects;state;shouldActivate;type=y.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},gt=class extends U{urlAfterRedirects;state;type=y.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},vt=class extends U{urlAfterRedirects;state;type=y.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mt=class{route;type=y.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Rt=class{route;type=y.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},St=class{snapshot;type=y.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yt=class{snapshot;type=y.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ct=class{snapshot;type=y.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},wt=class{snapshot;type=y.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ce=class{routerEvent;position;anchor;type=y.Scroll;constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},$e=class{},we=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Pi(t,n){var e;return t.providers&&!t._injector&&(t._injector=tt(t.providers,n,`Route: ${t.path}`)),(e=t._injector)!=null?e:n}function L(t){return t.outlet||f}function xi(t,n){let e=t.filter(r=>L(r)===n);return e.push(...t.filter(r=>L(r)!==n)),e}function We(t){var n;if(!t)return null;if((n=t.routeConfig)!=null&&n._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r!=null&&r._loadedInjector)return r._loadedInjector;if(r!=null&&r._injector)return r._injector}return null}var bt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){var n,e;return(e=We((n=this.route)==null?void 0:n.snapshot))!=null?e:this.rootInjector}constructor(n){this.rootInjector=n,this.children=new ce(this.rootInjector)}},ce=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new bt(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(G(pe))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),It=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=tr(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=tr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=rr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return rr(n,this._root).map(e=>e.value)}};function tr(t,n){if(t===n.value)return n;for(let e of n.children){let r=tr(t,e);if(r)return r}return null}function rr(t,n){if(t===n.value)return[n];for(let e of n.children){let r=rr(t,e);if(r.length)return r.unshift(n),r}return[]}var E=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function ve(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var ze=class extends It{snapshot;constructor(n,e){super(n),this.snapshot=e,lr(this,n)}toString(){return this.snapshot.toString()}};function Pn(t){let n=_i(t),e=new x([new Y("",{})]),r=new x({}),i=new x({}),o=new x({}),s=new x(""),a=new Q(e,r,o,s,i,f,t,n.root);return a.snapshot=n.root,new ze(new E(a,[]),n)}function _i(t){let n={},e={},r={},i="",o=new oe([],n,r,i,e,f,t,null,{});return new Fe("",new E(o,[]))}var Q=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,s,a,u){var c,l;this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=(l=(c=this.dataSubject)==null?void 0:c.pipe(m(g=>g[He])))!=null?l:d(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){var n;return(n=this._paramMap)!=null||(this._paramMap=this.params.pipe(m(e=>ae(e)))),this._paramMap}get queryParamMap(){var n;return(n=this._queryParamMap)!=null||(this._queryParamMap=this.queryParams.pipe(m(e=>ae(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function At(t,n,e="emptyOnly"){var o,s;let r,{routeConfig:i}=t;return n!==null&&(e==="always"||(i==null?void 0:i.path)===""||!n.component&&!((o=n.routeConfig)!=null&&o.loadComponent))?r={params:h(h({},n.params),t.params),data:h(h({},n.data),t.data),resolve:h(h(h(h({},t.data),n.data),i==null?void 0:i.data),t._resolvedData)}:r={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),(s=t._resolvedData)!=null?s:{})},i&&_n(i)&&(r.resolve[He]=i.title),r}var oe=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){var n;return(n=this.data)==null?void 0:n[He]}constructor(n,e,r,i,o,s,a,u,c){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}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(){var n;return(n=this._paramMap)!=null||(this._paramMap=ae(this.params)),this._paramMap}get queryParamMap(){var n;return(n=this._queryParamMap)!=null||(this._queryParamMap=ae(this.queryParams)),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Fe=class extends It{url;constructor(n,e){super(e),this.url=n,lr(this,e)}toString(){return xn(this._root)}};function lr(t,n){n.value._routerState=t,n.children.forEach(e=>lr(t,e))}function xn(t){let n=t.children.length>0?` { ${t.children.map(xn).join(", ")} } `:"";return`${t.value}${n}`}function Qt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,z(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),z(n.params,e.params)||t.paramsSubject.next(e.params),ci(n.url,e.url)||t.urlSubject.next(e.url),z(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function nr(t,n){let e=z(t.params,n.params)&&pi(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||nr(t.parent,n.parent))}function _n(t){return typeof t.title=="string"||t.title===null}var jn=new O(""),hr=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new ie;deactivateEvents=new ie;attachEvents=new ie;detachEvents=new ie;routerOutletData=Lr(void 0);parentContexts=p(ce);location=p(qr);changeDetector=p(nt);inputBinder=p(Ge,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){var e;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),(e=this.inputBinder)==null||e.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){var r;return((r=this.parentContexts.getContext(e))==null?void 0:r.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e!=null&&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 b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){var i;this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),(i=this.inputBinder)==null||i.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,r){var c;if(this.isActivated)throw new b(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new ir(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:u,environmentInjector:r}),this.changeDetector.markForCheck(),(c=this.inputBinder)==null||c.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Ue({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ee]})}return t})(),ir=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===Q?this.route:n===ce?this.childContexts:n===jn?this.outletData:this.parent.get(n,e)}},Ge=new O(""),dr=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){var r;(r=this.outletDataSubscriptions.get(e))==null||r.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Xe([r.queryParams,r.params,r.data]).pipe(j(([o,s,a],u)=>(a=h(h(h({},o),s),a),u===0?d(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=rn(r.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(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac})}return t})();function ji(t,n,e){let r=qe(t,n._root,e?e._root:void 0);return new ze(r,n)}function qe(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=ki(t,n,e);return new E(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>qe(t,a)),s}}let r=Li(n.value),i=n.children.map(o=>qe(t,o));return new E(r,i)}}function ki(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return qe(t,r,i);return qe(t,r)})}function Li(t){return new Q(new x(t.url),new x(t.params),new x(t.queryParams),new x(t.fragment),new x(t.data),t.outlet,t.component,t)}var be=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},kn="ngNavigationCancelingError";function Tt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=J(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Ln(!1,M.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Ln(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[kn]=!0,e.cancellationCode=n,e}function $i(t){return $n(t)&&J(t.url)}function $n(t){return!!t&&t[kn]}var zi=(t,n,e,r)=>m(i=>(new sr(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),sr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Qt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=ve(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ve(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ve(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=ve(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new wt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new yt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Qt(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Qt(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},Ot=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Re=class{component;route;constructor(n,e){this.component=n,this.route=e}};function Fi(t,n,e){let r=t._root,i=n?n._root:null;return xe(r,i,e,[r.value])}function qi(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ae(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!xr(t)?t:n.get(t):r}function xe(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ve(n);return t.children.forEach(s=>{Bi(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>je(a,e.getContext(s),i)),i}function Bi(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=Vi(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Ot(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?xe(t,n,a?a.children:null,r,i):xe(t,n,e,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Re(a.outlet.component,s))}else s&&je(n,a,i),i.canActivateChecks.push(new Ot(r)),o.component?xe(t,null,a?a.children:null,r,i):xe(t,null,e,r,i);return i}function Vi(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!se(t.url,n.url);case"pathParamsOrQueryParamsChange":return!se(t.url,n.url)||!z(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!nr(t,n)||!z(t.queryParams,n.queryParams);case"paramsChange":default:return!nr(t,n)}}function je(t,n,e){let r=ve(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?je(s,n.children.getContext(o),e):je(s,null,e):je(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Re(n.outlet.component,i)):e.canDeactivateChecks.push(new Re(null,i)):e.canDeactivateChecks.push(new Re(null,i))}function Qe(t){return typeof t=="function"}function Hi(t){return typeof t=="boolean"}function Wi(t){return t&&Qe(t.canLoad)}function Gi(t){return t&&Qe(t.canActivate)}function Qi(t){return t&&Qe(t.canActivateChild)}function Zi(t){return t&&Qe(t.canDeactivate)}function Ki(t){return t&&Qe(t.canMatch)}function zn(t){return t instanceof Or||(t==null?void 0:t.name)==="EmptyError"}var ot=Symbol("INITIAL_VALUE");function Ie(){return j(t=>Xe(t.map(n=>n.pipe(de(1),Ur(ot)))).pipe(m(n=>{for(let e of n)if(e!==!0){if(e===ot)return ot;if(e===!1||Yi(e))return e}return!0}),Z(n=>n!==ot),de(1)))}function Yi(t){return J(t)||t instanceof be}function Xi(t,n){return T(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?d(P(h({},e),{guardsResult:!0})):Ji(s,r,i,t).pipe(T(a=>a&&Hi(a)?es(r,o,t,n):d(a)),m(a=>P(h({},e),{guardsResult:a})))})}function Ji(t,n,e,r){return I(t).pipe(T(i=>ss(i.component,i.route,e,n,r)),K(i=>i!==!0,!0))}function es(t,n,e,r){return I(n).pipe(ne(i=>Mr(rs(i.route.parent,r),ts(i.route,r),is(t,i.path,e),ns(t,i.route,e))),K(i=>i!==!0,!0))}function ts(t,n){return t!==null&&n&&n(new Ct(t)),d(!0)}function rs(t,n){return t!==null&&n&&n(new St(t)),d(!0)}function ns(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return d(!0);let i=r.map(o=>kt(()=>{var c;let s=(c=We(n))!=null?c:e,a=Ae(o,s),u=Gi(a)?a.canActivate(n,t):$(s,()=>a(n,t));return te(u).pipe(K())}));return d(i).pipe(Ie())}function is(t,n,e){let r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>qi(s)).filter(s=>s!==null).map(s=>kt(()=>{let a=s.guards.map(u=>{var R;let c=(R=We(s.node))!=null?R:e,l=Ae(u,c),g=Qi(l)?l.canActivateChild(r,t):$(c,()=>l(r,t));return te(g).pipe(K())});return d(a).pipe(Ie())}));return d(o).pipe(Ie())}function ss(t,n,e,r,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return d(!0);let s=o.map(a=>{var g;let u=(g=We(n))!=null?g:i,c=Ae(a,u),l=Zi(c)?c.canDeactivate(t,n,e,r):$(u,()=>c(t,n,e,r));return te(l).pipe(K())});return d(s).pipe(Ie())}function os(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return d(!0);let o=i.map(s=>{let a=Ae(s,t),u=Wi(a)?a.canLoad(n,e):$(t,()=>a(n,e));return te(u)});return d(o).pipe(Ie(),Fn(r))}function Fn(t){return Ar(w(n=>{if(typeof n!="boolean")throw Tt(t,n)}),m(n=>n===!0))}function as(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return d(!0);let o=i.map(s=>{let a=Ae(s,t),u=Ki(a)?a.canMatch(n,e):$(t,()=>a(n,e));return te(u)});return d(o).pipe(Ie(),Fn(r))}var Be=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},Ve=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function ge(t){return Me(new Be(t))}function us(t){return Me(new b(4e3,!1))}function cs(t){return Me(Ln(!1,M.GuardRejected))}var or=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return d(r);if(i.numberOfChildren>1||!i.children[f])return us(`${n.redirectTo}`);i=i.children[f]}}applyRedirectCommands(n,e,r,i,o){if(typeof e!="string"){let a=e,{queryParams:u,fragment:c,routeConfig:l,url:g,outlet:R,params:S,data:D,title:A}=i,_=$(o,()=>a({params:S,data:D,queryParams:u,fragment:c,routeConfig:l,url:g,outlet:R,title:A}));if(_ instanceof q)throw new Ve(_);e=_}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r);if(e[0]==="/")throw new Ve(s);return s}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new q(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=e[a]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(n,u,r,i)}),new v(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new b(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}},ar={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ls(t,n,e,r,i){let o=qn(t,n,e);return o.matched?(r=Pi(n,r),as(r,n,e,i).pipe(m(s=>s===!0?o:h({},ar)))):d(o)}function qn(t,n,e){var a,u;if(n.path==="**")return hs(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},ar):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||mn)(e,t,n);if(!i)return h({},ar);let o={};Object.entries((a=i.posParams)!=null?a:{}).forEach(([c,l])=>{o[c]=l.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:(u=i.posParams)!=null?u:{}}}function hs(t){return{matched:!0,parameters:t.length>0?Sn(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function fn(t,n,e,r){return e.length>0&&fs(t,e,r)?{segmentGroup:new v(n,ps(r,new v(e,t.children))),slicedSegments:[]}:e.length===0&&gs(t,e,r)?{segmentGroup:new v(t.segments,ds(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function ds(t,n,e,r){let i={};for(let o of e)if(Dt(t,n,o)&&!r[L(o)]){let s=new v([],{});i[L(o)]=s}return h(h({},r),i)}function ps(t,n){let e={};e[f]=n;for(let r of t)if(r.path===""&&L(r)!==f){let i=new v([],{});e[L(r)]=i}return e}function fs(t,n,e){return e.some(r=>Dt(t,n,r)&&L(r)!==f)}function gs(t,n,e){return e.some(r=>Dt(t,n,r))}function Dt(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function vs(t,n,e){return n.length===0&&!t.children[e]}var ur=class{};function ms(t,n,e,r,i,o,s="emptyOnly"){return new cr(t,n,e,r,i,s,o).recognize()}var Rs=31,cr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new or(this.urlSerializer,this.urlTree)}noMatchError(n){return new b(4002,`'${n.segmentGroup}'`)}recognize(){let n=fn(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(m(({children:e,rootSnapshot:r})=>{let i=new E(r,e),o=new Fe("",i),s=Mn(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new oe([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,f,e).pipe(m(r=>({children:r,rootSnapshot:e})),re(r=>{if(r instanceof Ve)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Be?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,o):this.processSegment(n,e,r,r.segments,i,!0,o).pipe(m(s=>s instanceof E?[s]:[]))}processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return I(o).pipe(ne(s=>{let a=r.children[s],u=xi(e,s);return this.processSegmentGroup(n,u,a,s,i)}),Er((s,a)=>(s.push(...a),s)),Lt(null),Dr(),T(s=>{if(s===null)return ge(r);let a=Bn(s);return Ss(a),d(a)}))}processSegment(n,e,r,i,o,s,a){return I(e).pipe(ne(u=>{var c;return this.processSegmentAgainstRoute((c=u._injector)!=null?c:n,e,u,r,i,o,s,a).pipe(re(l=>{if(l instanceof Be)return d(null);throw l}))}),K(u=>!!u),re(u=>{if(zn(u))return vs(r,i,o)?d(new ur):ge(r);throw u}))}processSegmentAgainstRoute(n,e,r,i,o,s,a,u){return L(r)!==s&&(s===f||!Dt(i,o,r))?ge(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,o,s,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,u):ge(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,a){var _,he;let{matched:u,parameters:c,consumedSegments:l,positionalParamSegments:g,remainingSegments:R}=qn(e,i,o);if(!u)return ge(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Rs&&(this.allowRedirects=!1));let S=new oe(o,c,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,gn(i),L(i),(he=(_=i.component)!=null?_:i._loadedComponent)!=null?he:null,i,vn(i)),D=At(S,a,this.paramsInheritanceStrategy);S.params=Object.freeze(D.params),S.data=Object.freeze(D.data);let A=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,g,S,n);return this.applyRedirects.lineralizeSegments(i,A).pipe(T(Oe=>this.processSegment(n,r,e,Oe.concat(R),s,!1,a)))}matchSegmentAgainstRoute(n,e,r,i,o,s){let a=ls(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),a.pipe(j(u=>{var c;return u.matched?(n=(c=r._injector)!=null?c:n,this.getChildConfig(n,r,i).pipe(j(({routes:l})=>{var Cr,wr,br;let g=(Cr=r._loadedInjector)!=null?Cr:n,{parameters:R,consumedSegments:S,remainingSegments:D}=u,A=new oe(S,R,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,gn(r),L(r),(br=(wr=r.component)!=null?wr:r._loadedComponent)!=null?br:null,r,vn(r)),_=At(A,s,this.paramsInheritanceStrategy);A.params=Object.freeze(_.params),A.data=Object.freeze(_.data);let{segmentGroup:he,slicedSegments:Oe}=fn(e,S,D,l);if(Oe.length===0&&he.hasChildren())return this.processChildren(g,l,he,A).pipe(m(Ye=>new E(A,Ye)));if(l.length===0&&Oe.length===0)return d(new E(A,[]));let ai=L(r)===o;return this.processSegment(g,l,he,Oe,ai?f:o,!0,A).pipe(m(Ye=>new E(A,Ye instanceof E?[Ye]:[])))}))):ge(e)}))}getChildConfig(n,e,r){return e.children?d({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?d({routes:e._loadedRoutes,injector:e._loadedInjector}):os(n,e,r,this.urlSerializer).pipe(T(i=>i?this.configLoader.loadChildren(n,e).pipe(w(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):cs(e))):d({routes:[],injector:n})}};function Ss(t){t.sort((n,e)=>n.value.outlet===f?-1:e.value.outlet===f?1:n.value.outlet.localeCompare(e.value.outlet))}function ys(t){let n=t.value.routeConfig;return n&&n.path===""}function Bn(t){let n=[],e=new Set;for(let r of t){if(!ys(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=Bn(r.children);n.push(new E(r.value,i))}return n.filter(r=>!e.has(r))}function gn(t){return t.data||{}}function vn(t){return t.resolve||{}}function Cs(t,n,e,r,i,o){return T(s=>ms(t,n,e,r,s.extractedUrl,i,o).pipe(m(({state:a,tree:u})=>P(h({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function ws(t,n){return T(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return d(e);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let c of Vn(u))s.add(c);let a=0;return I(s).pipe(ne(u=>o.has(u)?bs(u,r,t,n):(u.data=At(u,u.parent,t).resolve,d(void 0))),w(()=>a++),$t(1),T(u=>a===s.size?d(e):W))})}function Vn(t){let n=t.children.map(e=>Vn(e)).flat();return[t,...n]}function bs(t,n,e,r){let i=t.routeConfig,o=t._resolve;return(i==null?void 0:i.title)!==void 0&&!_n(i)&&(o[He]=i.title),Is(o,t,n,r).pipe(m(s=>(t._resolvedData=s,t.data=At(t,t.parent,e).resolve,null)))}function Is(t,n,e,r){let i=Yt(t);if(i.length===0)return d({});let o={};return I(i).pipe(T(s=>As(t[s],n,e,r).pipe(K(),w(a=>{if(a instanceof be)throw Tt(new X,a);o[s]=a}))),$t(1),m(()=>o),re(s=>zn(s)?W:Me(s)))}function As(t,n,e,r){var a;let i=(a=We(n))!=null?a:r,o=Ae(t,i),s=o.resolve?o.resolve(n,e):$(i,()=>o(n,e));return te(s)}function Zt(t){return j(n=>{let e=t(n);return e?I(e).pipe(m(()=>n)):d(n)})}var pr=(()=>{class t{buildTitle(e){var o;let r,i=e.root;for(;i!==void 0;)r=(o=this.getResolvedTitleForRoute(i))!=null?o:r,i=i.children.find(s=>s.outlet===f);return r}getResolvedTitleForRoute(e){return e.data[He]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>p(Hn),providedIn:"root"})}return t})(),Hn=(()=>{class t extends pr{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(G(cn))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),le=new O("",{providedIn:"root",factory:()=>({})}),fr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Vr({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Yr(0,"router-outlet")},dependencies:[hr],encapsulation:2})}return t})();function gr(t){let n=t.children&&t.children.map(gr),e=n?P(h({},t),{children:n}):h({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==f&&(e.component=fr),e}var Te=new O(""),Et=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(rt);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return d(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let r=te(e.loadComponent()).pipe(m(Gn),w(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Je(()=>{this.componentLoaders.delete(e)})),i=new jt(r,()=>new H).pipe(_t());return this.componentLoaders.set(e,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return d({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=Wn(r,this.compiler,e,this.onLoadEndListener).pipe(Je(()=>{this.childrenLoaders.delete(r)})),s=new jt(o,()=>new H).pipe(_t());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wn(t,n,e,r){return te(t.loadChildren()).pipe(m(Gn),T(i=>i instanceof Br||Array.isArray(i)?d(i):I(n.compileModuleAsync(i))),m(i=>{r&&r(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(e).injector,s=o.get(Te,[],{optional:!0,self:!0}).flat()),{routes:s.map(gr),injector:o}}))}function Ts(t){return t&&typeof t=="object"&&"default"in t}function Gn(t){return Ts(t)?t.default:t}var Ut=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>p(Os),providedIn:"root"})}return t})(),Os=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vr=new O(""),mr=new O("");function Qn(t,n,e){let r=t.get(mr),i=t.get(nn);return t.get(et).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),a=i.startViewTransition(()=>(o(),Ms(t))),{onViewTransitionCreated:u}=r;return u&&$(t,()=>u({transition:a,from:n,to:e})),s})}function Ms(t){return new Promise(n=>{$r({read:()=>setTimeout(n)},{injector:t})})}var Rr=new O(""),Nt=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new H;transitionAbortSubject=new H;configLoader=p(Et);environmentInjector=p(pe);destroyRef=p(jr);urlSerializer=p(ue);rootContexts=p(ce);location=p(fe);inputBindingEnabled=p(Ge,{optional:!0})!==null;titleStrategy=p(pr);options=p(le,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(Ut);createViewTransition=p(vr,{optional:!0});navigationErrorHandler=p(Rr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>d(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new mt(i)),r=i=>this.events.next(new Rt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){var e;(e=this.transitions)==null||e.complete()}handleNavigationRequest(e){var i;let r=++this.navigationId;(i=this.transitions)==null||i.next(P(h({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r}))}setupNavigations(e){return this.transitions=new x(null),this.transitions.pipe(Z(r=>r!==null),j(r=>{let i=!1,o=!1;return d(r).pipe(j(s=>{var c;if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",M.SupersededByNewNavigation),W;this.currentTransition=r,this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?P(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let a=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=(c=s.extras.onSameUrlNavigation)!=null?c:e.onSameUrlNavigation;if(!a&&u!=="reload"){let l="";return this.events.next(new B(s.id,this.urlSerializer.serialize(s.rawUrl),l,Se.IgnoredSameUrlNavigation)),s.resolve(!1),W}if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return d(s).pipe(j(l=>(this.events.next(new ee(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?W:Promise.resolve(l))),Cs(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),w(l=>{r.targetSnapshot=l.targetSnapshot,r.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation=P(h({},this.currentNavigation),{finalUrl:l.urlAfterRedirects});let g=new Le(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(g)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:l,extractedUrl:g,source:R,restoredState:S,extras:D}=s,A=new ee(l,this.urlSerializer.serialize(g),R,S);this.events.next(A);let _=Pn(this.rootComponentType).snapshot;return this.currentTransition=r=P(h({},s),{targetSnapshot:_,urlAfterRedirects:g,extras:P(h({},D),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=g,d(r)}else{let l="";return this.events.next(new B(s.id,this.urlSerializer.serialize(s.extractedUrl),l,Se.IgnoredByUrlHandlingStrategy)),s.resolve(!1),W}}),w(s=>{let a=new pt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),m(s=>(this.currentTransition=r=P(h({},s),{guards:Fi(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r)),Xi(this.environmentInjector,s=>this.events.next(s)),w(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Tt(this.urlSerializer,s.guardsResult);let a=new ft(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),Z(s=>s.guardsResult?!0:(this.cancelNavigationTransition(s,"",M.GuardRejected),!1)),Zt(s=>{if(s.guards.canActivateChecks.length!==0)return d(s).pipe(w(a=>{let u=new gt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}),j(a=>{let u=!1;return d(a).pipe(ws(this.paramsInheritanceStrategy,this.environmentInjector),w({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(a,"",M.NoDataFromResolver)}}))}),w(a=>{let u=new vt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}))}),Zt(s=>{let a=u=>{var l;let c=[];(l=u.routeConfig)!=null&&l.loadComponent&&!u.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(u.routeConfig).pipe(w(g=>{u.component=g}),m(()=>{})));for(let g of u.children)c.push(...a(g));return c};return Xe(a(s.targetSnapshot.root)).pipe(Lt(null),de(1))}),Zt(()=>this.afterPreactivation()),j(()=>{var c;let{currentSnapshot:s,targetSnapshot:a}=r,u=(c=this.createViewTransition)==null?void 0:c.call(this,this.environmentInjector,s.root,a.root);return u?I(u).pipe(m(()=>r)):d(r)}),m(s=>{let a=ji(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=P(h({},s),{targetRouterState:a}),this.currentNavigation.targetRouterState=a,r}),w(()=>{this.events.next(new $e)}),zi(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),de(1),w({next:s=>{var a;i=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new N(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),(a=this.titleStrategy)==null||a.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{i=!0}}),Nr(this.transitionAbortSubject.pipe(w(s=>{throw s}))),Je(()=>{var s;!i&&!o&&this.cancelNavigationTransition(r,"",M.SupersededByNewNavigation),((s=this.currentTransition)==null?void 0:s.id)===r.id&&(this.currentNavigation=null,this.currentTransition=null)}),re(s=>{var a;if(this.destroyed)return r.resolve(!1),W;if(o=!0,$n(s))this.events.next(new F(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),$i(s)?this.events.next(new we(s.url,s.navigationBehaviorOptions)):r.resolve(!1);else{let u=new ye(r.id,this.urlSerializer.serialize(r.extractedUrl),s,(a=r.targetSnapshot)!=null?a:void 0);try{let c=$(this.environmentInjector,()=>{var l;return(l=this.navigationErrorHandler)==null?void 0:l.call(this,u)});if(c instanceof be){let{message:l,cancellationCode:g}=Tt(this.urlSerializer,c);this.events.next(new F(r.id,this.urlSerializer.serialize(r.extractedUrl),l,g)),this.events.next(new we(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(u),s}catch(c){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(c)}}return W}))}))}cancelNavigationTransition(e,r,i){let o=new F(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){var e,r;return((e=this.currentTransition)==null?void 0:e.extractedUrl.toString())!==((r=this.currentTransition)==null?void 0:r.currentUrlTree.toString())}isUpdatedBrowserUrl(){var i,o,s,a;let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=(s=(i=this.currentNavigation)==null?void 0:i.targetBrowserUrl)!=null?s:(o=this.currentNavigation)==null?void 0:o.extractedUrl;return e.toString()!==(r==null?void 0:r.toString())&&!((a=this.currentNavigation)!=null&&a.extras.skipLocationChange)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ds(t){return t!==lt}var Zn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>p(Es),providedIn:"root"})}return t})(),Mt=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},Es=(()=>{class t extends Mt{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Ft(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Kn=(()=>{class t{urlSerializer=p(ue);options=p(le,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(fe);urlHandlingStrategy=p(Ut);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new q;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,s=i!=null?i:o;return s instanceof q?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=Pn(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!=null?e:this.rawUrlTree)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>p(Us),providedIn:"root"})}return t})(),Us=(()=>{class t extends Kn{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){var e,r;return this.canceledNavigationResolution!=="computed"?this.currentPageId:(r=(e=this.restoredState())==null?void 0:e.\u0275routerPageId)!=null?r:this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate")})})}handleRouterEvent(e,r){e instanceof ee?this.updateStateMemento():e instanceof B?this.commitTransition(r):e instanceof Le?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof $e?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof F&&(e.code===M.GuardRejected||e.code===M.NoDataFromResolver)?this.restoreHistory(r):e instanceof ye?this.restoreHistory(r,!0):e instanceof N&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:r,id:i}){let{replaceUrl:o,state:s}=r;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,u=h(h({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",u)}else{let a=h(h({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,r=!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"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Ft(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Pt(t,n){t.events.pipe(Z(e=>e instanceof N||e instanceof F||e instanceof ye||e instanceof B),m(e=>e instanceof N||e instanceof B?0:(e instanceof F?e.code===M.Redirect||e.code===M.SupersededByNewNavigation:!1)?2:1),Z(e=>e!==2),de(1)).subscribe(()=>{n()})}var Ns={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ps={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},V=(()=>{var n,e;class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(Wr);stateManager=p(Kn);options=p(le,{optional:!0})||{};pendingTasks=p(kr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(Nt);urlSerializer=p(ue);location=p(fe);urlHandlingStrategy=p(Ut);_events=new H;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(Zn);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=(e=(n=p(Te,{optional:!0}))==null?void 0:n.flat())!=null?e:[];componentInputBindingEnabled=!!p(Ge,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:i=>{this.console.warn(i)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Ir;subscribeToNavigationEvents(){let i=this.navigationTransitions.events.subscribe(o=>{try{let s=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(s!==null&&a!==null){if(this.stateManager.handleRouterEvent(o,a),o instanceof F&&o.code!==M.Redirect&&o.code!==M.SupersededByNewNavigation)this.navigated=!0;else if(o instanceof N)this.navigated=!0;else if(o instanceof we){let u=o.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(o.url,s.currentRawUrl),l=h({browserUrl:s.extras.browserUrl,info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:s.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Ds(s.source)},u);this.scheduleNavigation(c,lt,null,l,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}_s(o)&&this._events.next(o)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(i)}resetRootComponentType(i){this.routerState.root.component=i,this.navigationTransitions.rootComponentType=i}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),lt,this.stateManager.restoredState())}setUpLocationChangeListener(){var i;(i=this.nonRouterCurrentEntryChangeSubscription)!=null||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((o,s,a)=>{this.navigateToSyncWithBrowser(o,a,s)}))}navigateToSyncWithBrowser(i,o,s){let a={replaceUrl:!0},u=s!=null&&s.navigationId?s:null;if(s){let l=h({},s);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(a.state=l)}let c=this.parseUrl(i);this.scheduleNavigation(c,o,u,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(i){this.config=i.map(gr),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(i,o={}){let{relativeTo:s,queryParams:a,fragment:u,queryParamsHandling:c,preserveFragment:l}=o,g=l?this.currentUrlTree.fragment:u,R=null;switch(c!=null?c:this.options.defaultQueryParamsHandling){case"merge":R=h(h({},this.currentUrlTree.queryParams),a);break;case"preserve":R=this.currentUrlTree.queryParams;break;default:R=a||null}R!==null&&(R=this.removeEmptyProps(R));let S;try{let D=s?s.snapshot:this.routerState.snapshot.root;S=Dn(D)}catch{(typeof i[0]!="string"||i[0][0]!=="/")&&(i=[]),S=this.currentUrlTree.root}return En(S,i,R,g!=null?g:null)}navigateByUrl(i,o={skipLocationChange:!1}){let s=J(i)?i:this.parseUrl(i),a=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(a,lt,null,o)}navigate(i,o={skipLocationChange:!1}){return xs(i),this.navigateByUrl(this.createUrlTree(i,o),o)}serializeUrl(i){return this.urlSerializer.serialize(i)}parseUrl(i){try{return this.urlSerializer.parse(i)}catch{return this.urlSerializer.parse("/")}}isActive(i,o){let s;if(o===!0?s=h({},Ns):o===!1?s=h({},Ps):s=o,J(i))return ln(this.currentUrlTree,i,s);let a=this.parseUrl(i);return ln(this.currentUrlTree,a,s)}removeEmptyProps(i){return Object.entries(i).reduce((o,[s,a])=>(a!=null&&(o[s]=a),o),{})}scheduleNavigation(i,o,s,a,u){if(this.disposed)return Promise.resolve(!1);let c,l,g;u?(c=u.resolve,l=u.reject,g=u.promise):g=new Promise((S,D)=>{c=S,l=D});let R=this.pendingTasks.add();return Pt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(R))}),this.navigationTransitions.handleNavigationRequest({source:o,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:i,extras:a,resolve:c,reject:l,promise:g,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),g.catch(S=>Promise.reject(S))}static \u0275fac=function(o){return new(o||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function xs(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new b(4008,!1)}function _s(t){return!(t instanceof $e)&&!(t instanceof we)}var xt=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new H;constructor(e,r,i,o,s,a){var c;this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a;let u=(c=s.nativeElement.tagName)==null?void 0:c.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=e.events.subscribe(l=>{l instanceof N&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(J(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,u),!this.isAnchorElement}ngOnDestroy(){var e;(e=this.subscription)==null||e.unsubscribe()}updateHref(){var i;let e=this.urlTree;this.href=e!==null&&this.locationStrategy?(i=this.locationStrategy)==null?void 0:i.prepareExternalUrl(this.router.serializeUrl(e)):null;let r=this.href===null?null:zr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:J(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(r){return new(r||t)(k(V),k(Q),_r("tabindex"),k(Vt),k(Bt),k(Ne))};static \u0275dir=Ue({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&Xr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Kr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",it],skipLocationChange:[2,"skipLocationChange","skipLocationChange",it],replaceUrl:[2,"replaceUrl","replaceUrl",it],routerLink:"routerLink"},features:[Ee]})}return t})(),js=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new ie;constructor(e,r,i,o,s){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof N&&this.update()})}ngAfterContentInit(){d(this.links.changes,d(null)).pipe(De()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var r;(r=this.linkInputChangesSubscription)==null||r.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=I(e).pipe(De()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){var e;this.routerEventsSubscription.unsubscribe(),(e=this.linkInputChangesSubscription)==null||e.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=ks(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,r):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(k(V),k(Bt),k(Vt),k(nt),k(xt,8))};static \u0275dir=Ue({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&Jr(o,xt,5),r&2){let s;en(s=tn())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ee]})}return t})();function ks(t){return!!t.paths}var Ze=class{};var Yn=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o,s){this.router=e,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Z(e=>e instanceof N),ne(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){var o,s,a;let i=[];for(let u of r){u.providers&&!u._injector&&(u._injector=tt(u.providers,e,`Route: ${u.path}`));let c=(o=u._injector)!=null?o:e,l=(s=u._loadedInjector)!=null?s:c;(u.loadChildren&&!u._loadedRoutes&&u.canLoad===void 0||u.loadComponent&&!u._loadedComponent)&&i.push(this.preloadConfig(c,u)),(u.children||u._loadedRoutes)&&i.push(this.processRoutes(l,(a=u.children)!=null?a:u._loadedRoutes))}return I(i).pipe(De())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(e,r):i=d(null);let o=i.pipe(T(s=>{var a;return s===null?d(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes((a=s.injector)!=null?a:e,s.routes))}));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return I([o,s]).pipe(De())}else return o})}static \u0275fac=function(r){return new(r||t)(G(V),G(rt),G(pe),G(Ze),G(Et))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Xn=new O(""),Ls=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,r,i,o,s={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,s.scrollPositionRestoration||(s.scrollPositionRestoration="disabled"),s.anchorScrolling||(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 ee?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof N?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof B&&e.code===Se.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 Ce&&(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,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Ce(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){var e,r;(e=this.routerEventsSubscription)==null||e.unsubscribe(),(r=this.scrollEventsSubscription)==null||r.unsubscribe()}static \u0275fac=function(r){Fr()};static \u0275prov=C({token:t,factory:t.\u0275fac})}return t})();function $s(t){return t.routerState.root}function Ke(t,n){return{\u0275kind:t,\u0275providers:n}}function zs(){let t=p(qt);return n=>{var o,s;let e=t.get(Zr);if(n!==e.components[0])return;let r=t.get(V),i=t.get(Jn);t.get(yr)===1&&r.initialNavigation(),(o=t.get(ri,null,zt.Optional))==null||o.setUpPreloading(),(s=t.get(Xn,null,zt.Optional))==null||s.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Jn=new O("",{factory:()=>new H}),yr=new O("",{providedIn:"root",factory:()=>1});function ei(){return Ke(2,[{provide:yr,useValue:0},{provide:Ht,multi:!0,deps:[qt],useFactory:n=>{let e=n.get(sn,Promise.resolve());return()=>e.then(()=>new Promise(r=>{let i=n.get(V),o=n.get(Jn);Pt(i,()=>{r(!0)}),n.get(Nt).afterPreactivation=()=>(r(!0),o.closed?d(void 0):o),i.initialNavigation()}))}}])}function ti(){return Ke(3,[{provide:Ht,multi:!0,useFactory:()=>{let n=p(V);return()=>{n.setUpLocationChangeListener()}}},{provide:yr,useValue:2}])}var ri=new O("");function ni(t){return Ke(0,[{provide:ri,useExisting:Yn},{provide:Ze,useExisting:t}])}function ii(){return Ke(8,[dr,{provide:Ge,useExisting:dr}])}function si(t){let n=[{provide:vr,useValue:Qn},{provide:mr,useValue:h({skipNextTransition:!!(t!=null&&t.skipInitialTransition)},t)}];return Ke(9,n)}var oi=[fe,{provide:ue,useClass:X},V,ce,{provide:Q,useFactory:$s,deps:[V]},Et,[]],Fs=(()=>{class t{constructor(){}static forRoot(e,r){return{ngModule:t,providers:[oi,[],{provide:Te,multi:!0,useValue:e},[],r!=null&&r.errorHandler?{provide:Rr,useValue:r.errorHandler}:[],{provide:le,useValue:r||{}},r!=null&&r.useHash?Bs():Vs(),qs(),r!=null&&r.preloadingStrategy?ni(r.preloadingStrategy).\u0275providers:[],r!=null&&r.initialNavigation?Hs(r):[],r!=null&&r.bindToComponentInputs?ii().\u0275providers:[],r!=null&&r.enableViewTransitions?si().\u0275providers:[],Ws()]}}static forChild(e){return{ngModule:t,providers:[{provide:Te,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Hr({type:t});static \u0275inj=Pr({})}return t})();function qs(){return{provide:Xn,useFactory:()=>{let t=p(un),n=p(et),e=p(le),r=p(Nt),i=p(ue);return e.scrollOffset&&t.setOffset(e.scrollOffset),new Ls(i,r,t,n,e)}}}function Bs(){return{provide:Ne,useClass:an}}function Vs(){return{provide:Ne,useClass:on}}function Hs(t){return[t.initialNavigation==="disabled"?ti().\u0275providers:[],t.initialNavigation==="enabledBlocking"?ei().\u0275providers:[]]}var Sr=new O("");function Ws(){return[{provide:Sr,useFactory:zs},{provide:Qr,multi:!0,useExisting:Sr}]}export{N as a,Q as b,hr as c,V as d,xt as e,js as f,Fs as g};
@@ -1 +0,0 @@
1
- import{f as a}from"./chunk-D5WEMCFU.js";import"./chunk-KLDACGOZ.js";import"./chunk-HMDNUXTY.js";import"./chunk-UQFNUGQM.js";import"./chunk-TWFE7WAV.js";import"./chunk-Q7NLVQF3.js";import"./chunk-6MIOQ7Y5.js";import"./chunk-M5LTG544.js";import"./chunk-W6CTMNAG.js";import"./chunk-F2WFV5GW.js";import"./chunk-W7CPCAPT.js";import"./chunk-KIPITWHI.js";import"./chunk-AKQE7OWM.js";import"./chunk-5BZGZWPU.js";import"./chunk-QGC43YCF.js";import"./chunk-NSDMDB7X.js";import"./chunk-UXXGHFQU.js";import"./chunk-GZMSZZVX.js";import"./chunk-PVRKV6LM.js";import"./chunk-MS2EQS6S.js";import"./chunk-XCZREHWX.js";import"./chunk-X2NTV4U7.js";import"./chunk-5CDZD4QO.js";import"./chunk-5NJQH2A3.js";import"./chunk-MJUBX7V2.js";import"./chunk-NCJAIFQO.js";import"./chunk-KD5YLOUW.js";import"./chunk-P5BH5BCJ.js";import"./chunk-V7KKBEKT.js";export{a as StatusComponent};
@@ -1 +0,0 @@
1
- import{e as a}from"./chunk-RWT5SL6D.js";import"./chunk-5BZGZWPU.js";import"./chunk-MS2EQS6S.js";import"./chunk-XCZREHWX.js";import"./chunk-5CDZD4QO.js";import"./chunk-5NJQH2A3.js";import"./chunk-MJUBX7V2.js";import"./chunk-NCJAIFQO.js";import"./chunk-KD5YLOUW.js";import"./chunk-P5BH5BCJ.js";import"./chunk-V7KKBEKT.js";export{a as UsersComponent};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-OKJ2T4EM.js";import"./chunk-MS2EQS6S.js";import"./chunk-XCZREHWX.js";import"./chunk-5CDZD4QO.js";import"./chunk-MJUBX7V2.js";import"./chunk-NCJAIFQO.js";import"./chunk-KD5YLOUW.js";import"./chunk-P5BH5BCJ.js";import"./chunk-V7KKBEKT.js";export{a as PowerOptionsComponent};