@ngocsangairvds/vsaf 5.1.18 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/README.md +55 -1
  2. package/package.json +1 -1
  3. package/packages/cli/dist/commands/abandon.d.ts +6 -0
  4. package/packages/cli/dist/commands/abandon.d.ts.map +1 -0
  5. package/packages/cli/dist/commands/abandon.js +42 -0
  6. package/packages/cli/dist/commands/abandon.js.map +1 -0
  7. package/packages/cli/dist/commands/ai.d.ts +21 -0
  8. package/packages/cli/dist/commands/ai.d.ts.map +1 -0
  9. package/packages/cli/dist/commands/ai.js +76 -0
  10. package/packages/cli/dist/commands/ai.js.map +1 -0
  11. package/packages/cli/dist/commands/approve.d.ts +19 -0
  12. package/packages/cli/dist/commands/approve.d.ts.map +1 -0
  13. package/packages/cli/dist/commands/approve.js +115 -0
  14. package/packages/cli/dist/commands/approve.js.map +1 -0
  15. package/packages/cli/dist/commands/chat.d.ts +41 -0
  16. package/packages/cli/dist/commands/chat.d.ts.map +1 -0
  17. package/packages/cli/dist/commands/chat.js +129 -0
  18. package/packages/cli/dist/commands/chat.js.map +1 -0
  19. package/packages/cli/dist/commands/isolation.d.ts +20 -0
  20. package/packages/cli/dist/commands/isolation.d.ts.map +1 -0
  21. package/packages/cli/dist/commands/isolation.js +104 -0
  22. package/packages/cli/dist/commands/isolation.js.map +1 -0
  23. package/packages/cli/dist/commands/run.d.ts +37 -1
  24. package/packages/cli/dist/commands/run.d.ts.map +1 -1
  25. package/packages/cli/dist/commands/run.js +165 -15
  26. package/packages/cli/dist/commands/run.js.map +1 -1
  27. package/packages/cli/dist/commands/telemetry.d.ts +10 -0
  28. package/packages/cli/dist/commands/telemetry.d.ts.map +1 -0
  29. package/packages/cli/dist/commands/telemetry.js +51 -0
  30. package/packages/cli/dist/commands/telemetry.js.map +1 -0
  31. package/packages/cli/dist/commands/validate.d.ts +12 -0
  32. package/packages/cli/dist/commands/validate.d.ts.map +1 -0
  33. package/packages/cli/dist/commands/validate.js +83 -0
  34. package/packages/cli/dist/commands/validate.js.map +1 -0
  35. package/packages/cli/dist/commands/workflow.d.ts +29 -0
  36. package/packages/cli/dist/commands/workflow.d.ts.map +1 -0
  37. package/packages/cli/dist/commands/workflow.js +147 -0
  38. package/packages/cli/dist/commands/workflow.js.map +1 -0
  39. package/packages/cli/dist/index.js +253 -6
  40. package/packages/cli/dist/index.js.map +1 -1
  41. package/packages/cli/dist/mcp/server.d.ts +9 -0
  42. package/packages/cli/dist/mcp/server.d.ts.map +1 -1
  43. package/packages/cli/dist/mcp/server.js +40 -2
  44. package/packages/cli/dist/mcp/server.js.map +1 -1
  45. package/packages/cli/dist/server/app.d.ts.map +1 -1
  46. package/packages/cli/dist/server/app.js +2 -0
  47. package/packages/cli/dist/server/app.js.map +1 -1
  48. package/packages/cli/dist/server/routes/conversations.d.ts +6 -0
  49. package/packages/cli/dist/server/routes/conversations.d.ts.map +1 -0
  50. package/packages/cli/dist/server/routes/conversations.js +145 -0
  51. package/packages/cli/dist/server/routes/conversations.js.map +1 -0
  52. package/packages/cli/dist/server/routes/runs.d.ts.map +1 -1
  53. package/packages/cli/dist/server/routes/runs.js +15 -3
  54. package/packages/cli/dist/server/routes/runs.js.map +1 -1
  55. package/packages/cli/dist/server/services/execution-manager.d.ts +25 -0
  56. package/packages/cli/dist/server/services/execution-manager.d.ts.map +1 -1
  57. package/packages/cli/dist/server/services/execution-manager.js +257 -95
  58. package/packages/cli/dist/server/services/execution-manager.js.map +1 -1
  59. package/packages/core/dist/config/ai-config.d.ts +24 -0
  60. package/packages/core/dist/config/ai-config.d.ts.map +1 -0
  61. package/packages/core/dist/config/ai-config.js +170 -0
  62. package/packages/core/dist/config/ai-config.js.map +1 -0
  63. package/packages/core/dist/engine/dag-executor.d.ts +29 -1
  64. package/packages/core/dist/engine/dag-executor.d.ts.map +1 -1
  65. package/packages/core/dist/engine/dag-executor.js +210 -8
  66. package/packages/core/dist/engine/dag-executor.js.map +1 -1
  67. package/packages/core/dist/engine/dag-parser.d.ts.map +1 -1
  68. package/packages/core/dist/engine/dag-parser.js +32 -1
  69. package/packages/core/dist/engine/dag-parser.js.map +1 -1
  70. package/packages/core/dist/engine/loop-signal.d.ts +7 -0
  71. package/packages/core/dist/engine/loop-signal.d.ts.map +1 -0
  72. package/packages/core/dist/engine/loop-signal.js +21 -0
  73. package/packages/core/dist/engine/loop-signal.js.map +1 -0
  74. package/packages/core/dist/engine/node-runner.d.ts +4 -1
  75. package/packages/core/dist/engine/node-runner.d.ts.map +1 -1
  76. package/packages/core/dist/engine/node-runner.js +14 -6
  77. package/packages/core/dist/engine/node-runner.js.map +1 -1
  78. package/packages/core/dist/index.d.ts +5 -2
  79. package/packages/core/dist/index.d.ts.map +1 -1
  80. package/packages/core/dist/index.js +25 -1
  81. package/packages/core/dist/index.js.map +1 -1
  82. package/packages/core/dist/providers/default-adapters.d.ts.map +1 -1
  83. package/packages/core/dist/providers/default-adapters.js +9 -1
  84. package/packages/core/dist/providers/default-adapters.js.map +1 -1
  85. package/packages/core/dist/runtime/executor.d.ts +1 -1
  86. package/packages/core/dist/runtime/executor.d.ts.map +1 -1
  87. package/packages/core/dist/runtime/executor.js +14 -8
  88. package/packages/core/dist/runtime/executor.js.map +1 -1
  89. package/packages/core/dist/schema/workflow-schema.d.ts +94 -14
  90. package/packages/core/dist/schema/workflow-schema.d.ts.map +1 -1
  91. package/packages/core/dist/schema/workflow-schema.js +38 -6
  92. package/packages/core/dist/schema/workflow-schema.js.map +1 -1
  93. package/packages/core/dist/store/recovery.d.ts.map +1 -1
  94. package/packages/core/dist/store/recovery.js +7 -0
  95. package/packages/core/dist/store/recovery.js.map +1 -1
  96. package/packages/core/dist/store/run-store.d.ts +5 -3
  97. package/packages/core/dist/store/run-store.d.ts.map +1 -1
  98. package/packages/core/dist/store/run-store.js +12 -4
  99. package/packages/core/dist/store/run-store.js.map +1 -1
  100. package/packages/core/dist/store/sqlite-schema.d.ts +1 -1
  101. package/packages/core/dist/store/sqlite-schema.d.ts.map +1 -1
  102. package/packages/core/dist/store/sqlite-schema.js +20 -0
  103. package/packages/core/dist/store/sqlite-schema.js.map +1 -1
  104. package/packages/core/dist/store/sqlite-workflow-store.d.ts +26 -0
  105. package/packages/core/dist/store/sqlite-workflow-store.d.ts.map +1 -1
  106. package/packages/core/dist/store/sqlite-workflow-store.js +106 -0
  107. package/packages/core/dist/store/sqlite-workflow-store.js.map +1 -1
  108. package/packages/core/dist/store/types.d.ts +17 -0
  109. package/packages/core/dist/store/types.d.ts.map +1 -1
  110. package/packages/core/dist/store/types.js.map +1 -1
  111. package/packages/core/dist/telemetry/telemetry.d.ts +31 -0
  112. package/packages/core/dist/telemetry/telemetry.d.ts.map +1 -0
  113. package/packages/core/dist/telemetry/telemetry.js +177 -0
  114. package/packages/core/dist/telemetry/telemetry.js.map +1 -0
  115. package/packages/core/dist/types/dag.d.ts +16 -0
  116. package/packages/core/dist/types/dag.d.ts.map +1 -1
  117. package/packages/core/dist/types/provider.d.ts +4 -0
  118. package/packages/core/dist/types/provider.d.ts.map +1 -1
  119. package/packages/core/dist/types/workflow.d.ts +18 -1
  120. package/packages/core/dist/types/workflow.d.ts.map +1 -1
  121. package/packages/web/dist/web/browser/chunk-2JHYGCCN.js +1 -0
  122. package/packages/web/dist/web/browser/chunk-BMQT4ZPK.js +1 -0
  123. package/packages/web/dist/web/browser/chunk-GWHJRWJM.js +1 -0
  124. package/packages/web/dist/web/browser/chunk-OZ6BRCXC.js +1 -0
  125. package/packages/web/dist/web/browser/chunk-Q7N6DAKT.js +1 -0
  126. package/packages/web/dist/web/browser/chunk-SEBU2SK7.js +1 -0
  127. package/packages/web/dist/web/browser/chunk-SOS4TH5D.js +4 -0
  128. package/packages/web/dist/web/browser/chunk-WSAVMPNK.js +5 -0
  129. package/packages/web/dist/web/browser/index.html +1 -1
  130. package/packages/web/dist/web/browser/main-UPZIVGM6.js +1 -0
  131. package/packages/web/dist/web/browser/chunk-5WD7R336.js +0 -1
  132. package/packages/web/dist/web/browser/chunk-FXYDTGOX.js +0 -1
  133. package/packages/web/dist/web/browser/chunk-K4DHLOOA.js +0 -1
  134. package/packages/web/dist/web/browser/chunk-V2CDNNWN.js +0 -1
  135. package/packages/web/dist/web/browser/chunk-WJT4QH2P.js +0 -4
  136. package/packages/web/dist/web/browser/chunk-WMJLW2L6.js +0 -5
  137. package/packages/web/dist/web/browser/chunk-XHOL7AER.js +0 -1
  138. package/packages/web/dist/web/browser/chunk-YBYFKZWR.js +0 -1
  139. package/packages/web/dist/web/browser/main-SYHKSBNJ.js +0 -1
@@ -1,5 +0,0 @@
1
- var fv=Object.defineProperty,hv=Object.defineProperties;var pv=Object.getOwnPropertyDescriptors;var tf=Object.getOwnPropertySymbols;var gv=Object.prototype.hasOwnProperty,mv=Object.prototype.propertyIsEnumerable;var nf=(e,t,n)=>t in e?fv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||={})gv.call(t,n)&&nf(e,n,t[n]);if(tf)for(var n of tf(t))mv.call(t,n)&&nf(e,n,t[n]);return e},U=(e,t)=>hv(e,pv(t));var $=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(u){o(u)}},s=c=>{try{a(n.throw(c))}catch(u){o(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});function M(e){return typeof e=="function"}function rf(e){return e&&M(e.schedule)}function of(e){return e[e.length-1]}function hi(e){return M(of(e))?e.pop():void 0}function jt(e){return rf(of(e))?e.pop():void 0}function af(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function sf(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function sn(e){return this instanceof sn?(this.v=e,this):new sn(e)}function cf(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(h){return function(g){return Promise.resolve(g).then(h,d)}}function a(h,g){r[h]&&(o[h]=function(C){return new Promise(function(D,I){i.push([h,C,D,I])>1||c(h,C)})},g&&(o[h]=g(o[h])))}function c(h,g){try{u(r[h](g))}catch(C){f(i[0][3],C)}}function u(h){h.value instanceof sn?Promise.resolve(h.value.v).then(l,d):f(i[0][2],h)}function l(h){c("next",h)}function d(h){c("throw",h)}function f(h,g){h(g),i.shift(),i.length&&c(i[0][0],i[0][1])}}function uf(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof sf=="function"?sf(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var pi=e=>e&&typeof e.length=="number"&&typeof e!="function";function gi(e){return M(e?.then)}function Wn(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var mi=Wn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2
- ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3
- `)}`:"",this.name="UnsubscriptionError",this.errors=n});function zr(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var se=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(M(r))try{r()}catch(i){t=i instanceof mi?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{lf(i)}catch(s){t=t??[],s instanceof mi?t=[...t,...s.errors]:t.push(s)}}if(t)throw new mi(t)}}add(t){var n;if(t&&t!==this)if(this.closed)lf(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&zr(n,t)}remove(t){let{_finalizers:n}=this;n&&zr(n,t),t instanceof e&&t._removeParent(this)}};se.EMPTY=(()=>{let e=new se;return e.closed=!0,e})();var sc=se.EMPTY;function yi(e){return e instanceof se||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function lf(e){M(e)?e():e.unsubscribe()}var Ge={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var qn={setTimeout(e,t,...n){let{delegate:r}=qn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=qn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function vi(e){qn.setTimeout(()=>{let{onUnhandledError:t}=Ge;if(t)t(e);else throw e})}function Gr(){}var df=ac("C",void 0,void 0);function ff(e){return ac("E",void 0,e)}function hf(e){return ac("N",e,void 0)}function ac(e,t,n){return{kind:e,value:t,error:n}}var an=null;function Zn(e){if(Ge.useDeprecatedSynchronousErrorHandling){let t=!an;if(t&&(an={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=an;if(an=null,n)throw r}}else e()}function pf(e){Ge.useDeprecatedSynchronousErrorHandling&&an&&(an.errorThrown=!0,an.error=e)}var cn=class extends se{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,yi(t)&&t.add(this)):this.destination=Dv}static create(t,n,r){return new Yn(t,n,r)}next(t){this.isStopped?uc(hf(t),this):this._next(t)}error(t){this.isStopped?uc(ff(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?uc(df,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},yv=Function.prototype.bind;function cc(e,t){return yv.call(e,t)}var lc=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Di(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Di(r)}else Di(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Di(n)}}},Yn=class extends cn{constructor(t,n,r){super();let o;if(M(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Ge.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&cc(t.next,i),error:t.error&&cc(t.error,i),complete:t.complete&&cc(t.complete,i)}):o=t}this.destination=new lc(o)}};function Di(e){Ge.useDeprecatedSynchronousErrorHandling?pf(e):vi(e)}function vv(e){throw e}function uc(e,t){let{onStoppedNotification:n}=Ge;n&&qn.setTimeout(()=>n(e,t))}var Dv={closed:!0,next:Gr,error:vv,complete:Gr};var Qn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function We(e){return e}function dc(...e){return fc(e)}function fc(e){return e.length===0?We:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var x=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Iv(n)?n:new Yn(n,r,o);return Zn(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=gf(r),new r((o,i)=>{let s=new Yn({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Qn](){return this}pipe(...n){return fc(n)(this)}toPromise(n){return n=gf(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function gf(e){var t;return(t=e??Ge.Promise)!==null&&t!==void 0?t:Promise}function Ev(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function Iv(e){return e&&e instanceof cn||Ev(e)&&yi(e)}function Ei(e){return M(e[Qn])}function Ii(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function wi(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function wv(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ci=wv();function bi(e){return M(e?.[Ci])}function Ti(e){return cf(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield sn(n.read());if(o)return yield sn(void 0);yield yield sn(r)}}finally{n.releaseLock()}})}function Si(e){return M(e?.getReader)}function re(e){if(e instanceof x)return e;if(e!=null){if(Ei(e))return Cv(e);if(pi(e))return bv(e);if(gi(e))return Tv(e);if(Ii(e))return mf(e);if(bi(e))return Sv(e);if(Si(e))return _v(e)}throw wi(e)}function Cv(e){return new x(t=>{let n=e[Qn]();if(M(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function bv(e){return new x(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Tv(e){return new x(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,vi)})}function Sv(e){return new x(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function mf(e){return new x(t=>{Mv(e,t).catch(n=>t.error(n))})}function _v(e){return mf(Ti(e))}function Mv(e,t){var n,r,o,i;return af(this,void 0,void 0,function*(){try{for(n=uf(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function _e(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Nv(e){return M(e?.lift)}function P(e){return t=>{if(Nv(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function F(e,t,n,r,o){return new hc(e,t,n,r,o)}var hc=class extends cn{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function _i(e,t=0){return P((n,r)=>{n.subscribe(F(r,o=>_e(r,e,()=>r.next(o),t),()=>_e(r,e,()=>r.complete(),t),o=>_e(r,e,()=>r.error(o),t)))})}function Mi(e,t=0){return P((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function yf(e,t){return re(e).pipe(Mi(t),_i(t))}function vf(e,t){return re(e).pipe(Mi(t),_i(t))}function Df(e,t){return new x(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Ef(e,t){return new x(n=>{let r;return _e(n,t,()=>{r=e[Ci](),_e(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>M(r?.return)&&r.return()})}function Ni(e,t){if(!e)throw new Error("Iterable cannot be null");return new x(n=>{_e(n,t,()=>{let r=e[Symbol.asyncIterator]();_e(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function If(e,t){return Ni(Ti(e),t)}function wf(e,t){if(e!=null){if(Ei(e))return yf(e,t);if(pi(e))return Df(e,t);if(gi(e))return vf(e,t);if(Ii(e))return Ni(e,t);if(bi(e))return Ef(e,t);if(Si(e))return If(e,t)}throw wi(e)}function J(e,t){return t?wf(e,t):re(e)}function A(...e){let t=jt(e);return J(e,t)}var{isArray:Rv}=Array,{getPrototypeOf:Av,prototype:xv,keys:Ov}=Object;function Ri(e){if(e.length===1){let t=e[0];if(Rv(t))return{args:t,keys:null};if(kv(t)){let n=Ov(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function kv(e){return e&&typeof e=="object"&&Av(e)===xv}function V(e,t){return P((n,r)=>{let o=0;n.subscribe(F(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Pv}=Array;function Fv(e,t){return Pv(t)?e(...t):e(t)}function Ai(e){return V(t=>Fv(e,t))}function xi(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Lv(...e){let t=hi(e),{args:n,keys:r}=Ri(e),o=new x(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let d=!1;re(n[l]).subscribe(F(i,f=>{d||(d=!0,u--),a[l]=f},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?xi(r,a):a),i.complete())}))}});return t?o.pipe(Ai(t)):o}function Kn(e){return P((t,n)=>{let r=null,o=!1,i;r=t.subscribe(F(n,void 0,void 0,s=>{i=re(e(s,Kn(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Jn(e){return P((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}var Cf=Wn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ue=(()=>{class e extends x{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Oi(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Cf}next(n){Zn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Zn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Zn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?sc:(this.currentObservers=null,i.push(n),new se(()=>{this.currentObservers=null,zr(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new x;return n.source=this,n}}return e.create=(t,n)=>new Oi(t,n),e})(),Oi=class extends ue{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:sc}};var he=class extends ue{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var pe=new x(e=>e.complete());function pc(e,t){let n=M(e)?e:()=>e,r=o=>o.error(n());return new x(t?o=>t.schedule(r,0,o):r)}function ki(e){return!!e&&(e instanceof x||M(e.lift)&&M(e.subscribe))}var un=Wn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function gc(...e){let t=jt(e),n=hi(e),{args:r,keys:o}=Ri(e);if(r.length===0)return J([],t);let i=new x(jv(r,t,o?s=>xi(o,s):We));return n?i.pipe(Ai(n)):i}function jv(e,t,n=We){return r=>{bf(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)bf(t,()=>{let u=J(e[c],t),l=!1;u.subscribe(F(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function bf(e,t,n){e?_e(n,e,t):t()}function Tf(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,f=()=>{d&&!c.length&&!u&&t.complete()},h=C=>u<r?g(C):c.push(C),g=C=>{i&&t.next(C),u++;let D=!1;re(n(C,l++)).subscribe(F(t,I=>{o?.(I),i?h(I):t.next(I)},()=>{D=!0},void 0,()=>{if(D)try{for(u--;c.length&&u<r;){let I=c.shift();s?_e(t,s,()=>g(I)):g(I)}f()}catch(I){t.error(I)}}))};return e.subscribe(F(t,h,()=>{d=!0,f()})),()=>{a?.()}}function ye(e,t,n=1/0){return M(t)?ye((r,o)=>V((i,s)=>t(r,i,o,s))(re(e(r,o))),n):(typeof t=="number"&&(n=t),P((r,o)=>Tf(r,o,e,n)))}function Xn(e=1/0){return ye(We,e)}function Sf(){return Xn(1)}function er(...e){return Sf()(J(e,jt(e)))}function Wr(e){return new x(t=>{re(e()).subscribe(t)})}function Le(e,t){return P((n,r)=>{let o=0;n.subscribe(F(r,i=>e.call(t,i,o++)&&r.next(i)))})}function ln(e,t){return M(t)?ye(e,t,1):ye(e,1)}function _f(e){return P((t,n)=>{let r=!1;t.subscribe(F(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function It(e){return e<=0?()=>pe:P((t,n)=>{let r=0;t.subscribe(F(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Mf(e=Uv){return P((t,n)=>{let r=!1;t.subscribe(F(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Uv(){return new un}function wt(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Le((o,i)=>e(o,i,r)):We,It(1),n?_f(t):Mf(()=>new un))}function Pi(e){return e<=0?()=>pe:P((t,n)=>{let r=[];t.subscribe(F(n,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function mc(...e){let t=jt(e);return P((n,r)=>{(t?er(e,n,t):er(e,n)).subscribe(r)})}function Re(e,t){return P((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(F(r,c=>{o?.unsubscribe();let u=0,l=i++;re(e(c,l)).subscribe(o=F(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function qr(e){return P((t,n)=>{re(e).subscribe(F(n,()=>n.complete(),Gr)),!n.closed&&t.subscribe(n)})}function je(e,t,n){let r=M(e)||t||n?{next:e,error:t,complete:n}:e;return r?P((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(F(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):We}var ve=null,Fi=!1,yc=1,Bv=null,le=Symbol("SIGNAL");function b(e){let t=ve;return ve=e,t}function Li(){return ve}var hn={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function pn(e){if(Fi)throw new Error("");if(ve===null)return;ve.consumerOnSignalRead(e);let t=ve.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=ve.recomputing;if(r&&(n=t!==void 0?t.nextProducer:ve.producers,n!==void 0&&n.producer===e)){ve.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===ve&&(!r||Hv(o,ve)))return;let i=rr(ve),s={producer:e,consumer:ve,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};ve.producersTail=s,t!==void 0?t.nextProducer=s:ve.producers=s,i&&xf(e,s)}function Nf(){yc++}function gn(e){if(!(rr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===yc)){if(!e.producerMustRecompute(e)&&!ji(e)){tr(e);return}e.producerRecomputeValue(e),tr(e)}}function vc(e){if(e.consumers===void 0)return;let t=Fi;Fi=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Vv(r)}}finally{Fi=t}}function Dc(){return ve?.consumerAllowSignalWrites!==!1}function Vv(e){e.dirty=!0,vc(e),e.consumerMarkedDirty?.(e)}function tr(e){e.dirty=!1,e.lastCleanEpoch=yc}function mn(e){return e&&Rf(e),b(e)}function Rf(e){e.producersTail=void 0,e.recomputing=!0}function nr(e,t){b(t),e&&Af(e)}function Af(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(rr(e))do n=Ec(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function ji(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(gn(n),r!==n.version))return!0}return!1}function Zr(e){if(rr(e)){let t=e.producers;for(;t!==void 0;)t=Ec(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function xf(e,t){let n=e.consumersTail,r=rr(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)xf(o.producer,o)}function Ec(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!rr(t)){let i=t.producers;for(;i!==void 0;)i=Ec(i)}return n}function rr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Yr(e){Bv?.(e)}function Hv(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function Qr(e,t){return Object.is(e,t)}function Ui(e,t){let n=Object.create($v);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(gn(n),pn(n),n.value===st)throw n.error;return n.value};return r[le]=n,Yr(n),r}var dn=Symbol("UNSET"),fn=Symbol("COMPUTING"),st=Symbol("ERRORED"),$v=U(y({},hn),{value:dn,dirty:!0,error:null,equal:Qr,kind:"computed",producerMustRecompute(e){return e.value===dn||e.value===fn},producerRecomputeValue(e){if(e.value===fn)throw new Error("");let t=e.value;e.value=fn;let n=mn(e),r,o=!1;try{r=e.computation(),b(null),o=t!==dn&&t!==st&&r!==st&&e.equal(t,r)}catch(i){r=st,e.error=i}finally{nr(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function zv(){throw new Error}var Of=zv;function kf(e){Of(e)}function Ic(e){Of=e}var Gv=null;function wc(e,t){let n=Object.create(Vi);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Pf(n);return r[le]=n,Yr(n),[r,s=>yn(n,s),s=>Bi(n,s)]}function Pf(e){return pn(e),e.value}function yn(e,t){Dc()||kf(e),e.equal(e.value,t)||(e.value=t,Wv(e))}function Bi(e,t){Dc()||kf(e),yn(e,t(e.value))}var Vi=U(y({},hn),{equal:Qr,value:void 0,kind:"signal"});function Wv(e){e.version++,Nf(),vc(e),Gv?.(e)}var Cc;function Hi(){return Cc}function at(e){let t=Cc;return Cc=e,t}var Ff=Symbol("NotFound");function or(e){return e===Ff||e?.name==="\u0275NotFound"}function bc(e,t,n){let r=Object.create(qv);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(gn(r),pn(r),r.value===st)throw r.error;return r.value};return i[le]=r,Yr(r),i}function Lf(e,t){gn(e),yn(e,t),tr(e)}function jf(e,t){if(gn(e),e.value===st)throw e.error;Bi(e,t),tr(e)}var qv=U(y({},hn),{value:dn,dirty:!0,error:null,equal:Qr,kind:"linkedSignal",producerMustRecompute(e){return e.value===dn||e.value===fn},producerRecomputeValue(e){if(e.value===fn)throw new Error("");let t=e.value;e.value=fn;let n=mn(e),r,o=!1;try{let i=e.source(),s=t!==dn&&t!==st,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,b(null),o=s&&r!==st&&e.equal(t,r)}catch(i){r=st,e.error=i}finally{nr(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Uf(e){let t=b(null);try{return e()}finally{b(t)}}var qi="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",m=class extends Error{code;constructor(t,n){super(Vt(t,n)),this.code=t}};function Qv(e){return`NG0${Math.abs(e)}`}function Vt(e,t){return`${Qv(e)}${t?": "+t:""}`}var Tt=globalThis;function L(e){for(let t in e)if(e[t]===L)return t;throw Error("")}function zf(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function no(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(no).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
4
- `);return r>=0?n.slice(0,r):n}function Zi(e,t){return e?t?`${e} ${t}`:e:t||""}var Kv=L({__forward_ref__:L});function Yi(e){return e.__forward_ref__=Yi,e}function ge(e){return Uc(e)?e():e}function Uc(e){return typeof e=="function"&&e.hasOwnProperty(Kv)&&e.__forward_ref__===Yi}function v(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ht(e){return{providers:e.providers||[],imports:e.imports||[]}}function ro(e){return Jv(e,Qi)}function Bc(e){return ro(e)!==null}function Jv(e,t){return e.hasOwnProperty(t)&&e[t]||null}function Xv(e){let t=e?.[Qi]??null;return t||null}function Sc(e){return e&&e.hasOwnProperty(zi)?e[zi]:null}var Qi=L({\u0275prov:L}),zi=L({\u0275inj:L}),E=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=v({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Vc(e){return e&&!!e.\u0275providers}var oo=L({\u0275cmp:L}),io=L({\u0275dir:L}),Hc=L({\u0275pipe:L}),$c=L({\u0275mod:L}),Jr=L({\u0275fac:L}),wn=L({__NG_ELEMENT_ID__:L}),Bf=L({__NG_ENV_ID__:L});function zc(e){return Ki(e,"@NgModule"),e[$c]||null}function $t(e){return Ki(e,"@Component"),e[oo]||null}function Gc(e){return Ki(e,"@Directive"),e[io]||null}function Gf(e){return Ki(e,"@Pipe"),e[Hc]||null}function Ki(e,t){if(e==null)throw new m(-919,!1)}function sr(e){return typeof e=="string"?e:e==null?"":String(e)}var Wf=L({ngErrorCode:L}),eD=L({ngErrorMessage:L}),tD=L({ngTokenPath:L});function Wc(e,t){return qf("",-200,t)}function Ji(e,t){throw new m(-201,!1)}function qf(e,t,n){let r=new m(t,e);return r[Wf]=t,r[eD]=e,n&&(r[tD]=n),r}function nD(e){return e[Wf]}var _c;function Zf(){return _c}function Ce(e){let t=_c;return _c=e,t}function qc(e,t,n){let r=ro(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;Ji(e,"")}var rD={},vn=rD,oD="__NG_DI_FLAG__",Mc=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=Dn(n)||0;try{return this.injector.get(t,r&8?null:vn,r)}catch(o){if(or(o))return o;throw o}}};function iD(e,t=0){let n=Hi();if(n===void 0)throw new m(-203,!1);if(n===null)return qc(e,void 0,t);{let r=sD(t),o=n.retrieve(e,r);if(or(o)){if(r.optional)return null;throw o}return o}}function T(e,t=0){return(Zf()||iD)(ge(e),t)}function p(e,t){return T(e,Dn(t))}function Dn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function sD(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Nc(e){let t=[];for(let n=0;n<e.length;n++){let r=ge(e[n]);if(Array.isArray(r)){if(r.length===0)throw new m(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=aD(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(T(o,i))}else t.push(T(r))}return t}function aD(e){return e[oD]}function Ut(e,t){let n=e.hasOwnProperty(Jr);return n?e[Jr]:null}function Yf(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function Qf(e){return e.flat(Number.POSITIVE_INFINITY)}function Xi(e,t){e.forEach(n=>Array.isArray(n)?Xi(n,t):t(n))}function Zc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function so(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Kf(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function es(e,t,n){let r=ar(e,t);return r>=0?e[r|1]=n:(r=~r,Kf(e,r,t,n)),r}function ts(e,t){let n=ar(e,t);if(n>=0)return e[n|1]}function ar(e,t){return cD(e,t,1)}function cD(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var zt={},be=[],Gt=new E(""),Yc=new E("",-1),Qc=new E(""),Xr=class{get(t,n=vn){if(n===vn){let o=qf("",-201);throw o.name="\u0275NotFound",o}return n}};function Cn(e){return{\u0275providers:e}}function Jf(...e){return{\u0275providers:Kc(!0,e),\u0275fromNgModule:!0}}function Kc(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Xi(t,s=>{let a=s;Gi(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Xf(o,i),n}function Xf(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Jc(o,i=>{t(i,r)})}}function Gi(e,t,n,r){if(e=ge(e),!e)return!1;let o=null,i=Sc(e),s=!i&&$t(e);if(!i&&!s){let c=e.ngModule;if(i=Sc(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Gi(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;Xi(i.imports,l=>{Gi(l,t,n,r)&&(u||=[],u.push(l))}),u!==void 0&&Xf(u,t)}if(!a){let u=Ut(o)||(()=>new o);t({provide:o,useFactory:u,deps:be},o),t({provide:Qc,useValue:o,multi:!0},o),t({provide:Gt,useValue:()=>T(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Jc(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Jc(e,t){for(let n of e)Vc(n)&&(n=n.\u0275providers),Array.isArray(n)?Jc(n,t):t(n)}var uD=L({provide:String,useValue:L});function eh(e){return e!==null&&typeof e=="object"&&uD in e}function lD(e){return!!(e&&e.useExisting)}function dD(e){return!!(e&&e.useFactory)}function En(e){return typeof e=="function"}function th(e){return!!e.useClass}var ao=new E(""),$i={},Vf={},Tc;function co(){return Tc===void 0&&(Tc=new Xr),Tc}var q=class{},In=class extends q{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Ac(t,s=>this.processProvider(s)),this.records.set(Yc,ir(void 0,this)),o.has("environment")&&this.records.set(q,ir(void 0,this));let i=this.records.get(ao);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Qc,be,{self:!0}))}retrieve(t,n){let r=Dn(n)||0;try{return this.get(t,vn,r)}catch(o){if(or(o))return o;throw o}}destroy(){Kr(this),this._destroyed=!0;let t=b(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),b(t)}}onDestroy(t){return Kr(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Kr(this);let n=at(this),r=Ce(void 0),o;try{return t()}finally{at(n),Ce(r)}}get(t,n=vn,r){if(Kr(this),t.hasOwnProperty(Bf))return t[Bf](this);let o=Dn(r),i,s=at(this),a=Ce(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=mD(t)&&ro(t);l&&this.injectableDefInScope(l)?u=ir(Rc(t),$i):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?co():this.parent;return n=o&8&&n===vn?null:n,c.get(t,n)}catch(c){let u=nD(c);throw u===-200||u===-201?new m(u,null):c}finally{Ce(a),at(s)}}resolveInjectorInitializers(){let t=b(null),n=at(this),r=Ce(void 0),o;try{let i=this.get(Gt,be,{self:!0});for(let s of i)s()}finally{at(n),Ce(r),b(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=ge(t);let n=En(t)?t:ge(t&&t.provide),r=hD(t);if(!En(t)&&t.multi===!0){let o=this.records.get(n);o||(o=ir(void 0,$i,!0),o.factory=()=>Nc(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=b(null);try{if(n.value===Vf)throw Wc("");return n.value===$i&&(n.value=Vf,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&gD(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{b(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ge(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Rc(e){let t=ro(e),n=t!==null?t.factory:Ut(e);if(n!==null)return n;if(e instanceof E)throw new m(-204,!1);if(e instanceof Function)return fD(e);throw new m(-204,!1)}function fD(e){if(e.length>0)throw new m(-204,!1);let n=Xv(e);return n!==null?()=>n.factory(e):()=>new e}function hD(e){if(eh(e))return ir(void 0,e.useValue);{let t=Xc(e);return ir(t,$i)}}function Xc(e,t,n){let r;if(En(e)){let o=ge(e);return Ut(o)||Rc(o)}else if(eh(e))r=()=>ge(e.useValue);else if(dD(e))r=()=>e.useFactory(...Nc(e.deps||[]));else if(lD(e))r=(o,i)=>T(ge(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=ge(e&&(e.useClass||e.provide));if(pD(e))r=()=>new o(...Nc(e.deps));else return Ut(o)||Rc(o)}return r}function Kr(e){if(e.destroyed)throw new m(-205,!1)}function ir(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function pD(e){return!!e.deps}function gD(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function mD(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Ac(e,t){for(let n of e)Array.isArray(n)?Ac(n,t):n&&Vc(n)?Ac(n.\u0275providers,t):t(n)}function de(e,t){let n;e instanceof In?(Kr(e),n=e):n=new Mc(e);let r,o=at(n),i=Ce(void 0);try{return t()}finally{at(o),Ce(i)}}function nh(){return Zf()!==void 0||Hi()!=null}var Ze=0,w=1,S=2,ae=3,Ue=4,Be=5,cr=6,ur=7,X=8,St=9,Ye=10,G=11,lr=12,eu=13,bn=14,Ae=15,Wt=16,Tn=17,ct=18,_t=19,tu=20,Ct=21,ns=22,uo=23,xe=24,Sn=25,qt=26,ee=27,rh=1,nu=6,Zt=7,lo=8,_n=9,Q=10;function Mt(e){return Array.isArray(e)&&typeof e[rh]=="object"}function Qe(e){return Array.isArray(e)&&e[rh]===!0}function ru(e){return(e.flags&4)!==0}function Nt(e){return e.componentOffset>-1}function dr(e){return(e.flags&1)===1}function ut(e){return!!e.template}function fr(e){return(e[S]&512)!==0}function Mn(e){return(e[S]&256)===256}var ou="svg",oh="math";function Ve(e){for(;Array.isArray(e);)e=e[Ze];return e}function iu(e,t){return Ve(t[e])}function Ke(e,t){return Ve(t[e.index])}function rs(e,t){return e.data[t]}function su(e,t){return e[t]}function au(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function He(e,t){let n=t[e];return Mt(n)?n:n[Ze]}function ih(e){return(e[S]&4)===4}function os(e){return(e[S]&128)===128}function sh(e){return Qe(e[ae])}function lt(e,t){return t==null?null:e[t]}function cu(e){e[Tn]=0}function uu(e){e[S]&1024||(e[S]|=1024,os(e)&&hr(e))}function ah(e,t){for(;e>0;)t=t[bn],e--;return t}function fo(e){return!!(e[S]&9216||e[xe]?.dirty)}function is(e){e[Ye].changeDetectionScheduler?.notify(8),e[S]&64&&(e[S]|=1024),fo(e)&&hr(e)}function hr(e){e[Ye].changeDetectionScheduler?.notify(0);let t=Bt(e);for(;t!==null&&!(t[S]&8192||(t[S]|=8192,!os(t)));)t=Bt(t)}function lu(e,t){if(Mn(e))throw new m(911,!1);e[Ct]===null&&(e[Ct]=[]),e[Ct].push(t)}function ch(e,t){if(e[Ct]===null)return;let n=e[Ct].indexOf(t);n!==-1&&e[Ct].splice(n,1)}function Bt(e){let t=e[ae];return Qe(t)?t[ae]:t}function du(e){return e[ur]??=[]}function fu(e){return e.cleanup??=[]}function uh(e,t,n,r){let o=du(t);o.push(n),e.firstCreatePass&&fu(e).push(r,o.length-1)}var R={lFrame:Mh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var xc=!1;function lh(){return R.lFrame.elementDepthCount}function dh(){R.lFrame.elementDepthCount++}function fh(){R.lFrame.elementDepthCount--}function ss(){return R.bindingsEnabled}function hh(){return R.skipHydrationRootTNode!==null}function ph(e){return R.skipHydrationRootTNode===e}function gh(){R.skipHydrationRootTNode=null}function N(){return R.lFrame.lView}function te(){return R.lFrame.tView}function mh(e){return R.lFrame.contextLView=e,e[X]}function yh(e){return R.lFrame.contextLView=null,e}function me(){let e=hu();for(;e!==null&&e.type===64;)e=e.parent;return e}function hu(){return R.lFrame.currentTNode}function vh(){let e=R.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function pr(e,t){let n=R.lFrame;n.currentTNode=e,n.isParent=t}function pu(){return R.lFrame.isParent}function Dh(){R.lFrame.isParent=!1}function Eh(){return R.lFrame.contextLView}function gu(){return xc}function mu(e){let t=xc;return xc=e,t}function as(){let e=R.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ih(){return R.lFrame.bindingIndex}function wh(e){return R.lFrame.bindingIndex=e}function Nn(){return R.lFrame.bindingIndex++}function cs(e){let t=R.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ch(){return R.lFrame.inI18n}function bh(e,t){let n=R.lFrame;n.bindingIndex=n.bindingRootIndex=e,us(t)}function Th(){return R.lFrame.currentDirectiveIndex}function us(e){R.lFrame.currentDirectiveIndex=e}function Sh(e){let t=R.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function yu(){return R.lFrame.currentQueryIndex}function ls(e){R.lFrame.currentQueryIndex=e}function yD(e){let t=e[w];return t.type===2?t.declTNode:t.type===1?e[Be]:null}function vu(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=yD(i),o===null||(i=i[bn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=R.lFrame=_h();return r.currentTNode=t,r.lView=e,!0}function ds(e){let t=_h(),n=e[w];R.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function _h(){let e=R.lFrame,t=e===null?null:e.child;return t===null?Mh(e):t}function Mh(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Nh(){let e=R.lFrame;return R.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Du=Nh;function fs(){let e=Nh();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Rh(e){return(R.lFrame.contextLView=ah(e,R.lFrame.contextLView))[X]}function dt(){return R.lFrame.selectedIndex}function Yt(e){R.lFrame.selectedIndex=e}function hs(){let e=R.lFrame;return rs(e.tView,e.selectedIndex)}function Ah(){R.lFrame.currentNamespace=ou}function xh(){vD()}function vD(){R.lFrame.currentNamespace=null}function Eu(){return R.lFrame.currentNamespace}var Oh=!0;function ps(){return Oh}function ho(e){Oh=e}function Oc(e,t=null,n=null,r){let o=Iu(e,t,n,r);return o.resolveInjectorInitializers(),o}function Iu(e,t=null,n=null,r,o=new Set){let i=[n||be,Jf(e)],s;return new In(i,t||co(),s||null,o)}var Me=class e{static THROW_IF_NOT_FOUND=vn;static NULL=new Xr;static create(t,n){if(Array.isArray(t))return Oc({name:""},n,t,"");{let r=t.name??"";return Oc({name:r},t.parent,t.providers,r)}}static \u0275prov=v({token:e,providedIn:"any",factory:()=>T(Yc)});static __NG_ELEMENT_ID__=-1},oe=new E(""),ft=(()=>{class e{static __NG_ELEMENT_ID__=DD;static __NG_ENV_ID__=n=>n}return e})(),kc=class extends ft{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Mn(this._lView)}onDestroy(t){let n=this._lView;return lu(n,t),()=>ch(n,t)}};function DD(){return new kc(N())}var wu=!1,kh=new E(""),ht=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new he(!1);debugTaskTracker=p(kh,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new x(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=v({token:e,providedIn:"root",factory:()=>new e})}return e})(),Pc=class extends ue{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,nh()&&(this.destroyRef=p(ft,{optional:!0})??void 0,this.pendingTasks=p(ht,{optional:!0})??void 0)}emit(t){let n=b(null);try{super.next(t)}finally{b(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof se&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},De=Pc;function Wi(...e){}function Cu(e){let t,n;function r(){e=Wi;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch(o){}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Ph(e){return queueMicrotask(()=>e()),()=>{e=Wi}}var bu="isAngularZone",eo=bu+"_ID",ED=0,Y=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new De(!1);onMicrotaskEmpty=new De(!1);onStable=new De(!1);onError=new De(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=wu}=t;if(typeof Zone>"u")throw new m(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,CD(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(bu)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new m(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new m(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,ID,Wi,Wi);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},ID={};function Tu(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function wD(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Cu(()=>{e.callbackScheduled=!1,Fc(e),e.isCheckStableRunning=!0,Tu(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Fc(e)}function CD(e){let t=()=>{wD(e)},n=ED++;e._inner=e._inner.fork({name:"angular",properties:{[bu]:!0,[eo]:n,[eo+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(bD(c))return r.invokeTask(i,s,a,c);try{return Hf(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),$f(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Hf(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!TD(c)&&t(),$f(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Fc(e),Tu(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Fc(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Hf(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function $f(e){e._nesting--,Tu(e)}var to=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new De;onMicrotaskEmpty=new De;onStable=new De;onError=new De;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function bD(e){return Fh(e,"__ignore_ng_zone__")}function TD(e){return Fh(e,"__scheduler_tick__")}function Fh(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var qe=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Oe=new E("",{factory:()=>{let e=p(Y),t=p(q),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(qe),n.handleError(r))})}}}),Lh={provide:Gt,useValue:()=>{let e=p(qe,{optional:!0})},multi:!0};function W(e,t){let[n,r,o]=wc(e,t?.equal),i=n,s=i[le];return i.set=r,i.update=o,i.asReadonly=gs.bind(i),i}function gs(){let e=this[le];if(e.readonlyFn===void 0){let t=()=>this();t[le]=e,e.readonlyFn=t}return e.readonlyFn}var ms=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=SD}return e})();function SD(){return new ms(N(),me())}var bt=class{},gr=new E("",{factory:()=>!0});var ys=new E(""),po=(()=>{class e{internalPendingTasks=p(ht);scheduler=p(bt);errorHandler=p(Oe);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();n().catch(this.errorHandler).finally(r)}static \u0275prov=v({token:e,providedIn:"root",factory:()=>new e})}return e})(),Su=(()=>{class e{static \u0275prov=v({token:e,providedIn:"root",factory:()=>new Lc})}return e})(),Lc=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},jc=class{[le];constructor(t){this[le]=t}destroy(){this[le].destroy()}};function So(e){return{toString:e}.toString()}function OD(e){return typeof e=="function"}function gp(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var bs=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}},Jt=(()=>{let e=()=>mp;return e.ngInherit=!0,e})();function mp(e){return e.type.prototype.ngOnChanges&&(e.setInput=PD),kD}function kD(){let e=vp(this),t=e?.current;if(t){let n=e.previous;if(n===zt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function PD(e,t,n,r,o){let i=this.declaredInputs[r],s=vp(e)||FD(e,{previous:zt,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new bs(u&&u.currentValue,n,c===zt),gp(e,t,o,n)}var yp="__ngSimpleChanges__";function vp(e){return e[yp]||null}function FD(e,t){return e[yp]=t}var jh=[];var j=function(e,t=null,n){for(let r=0;r<jh.length;r++){let o=jh[r];o(e,t,n)}},O=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(O||{});function LD(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=mp(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Dp(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function Es(e,t,n){Ep(e,t,3,n)}function Is(e,t,n,r){(e[S]&3)===n&&Ep(e,t,n,r)}function _u(e,t){let n=e[S];(n&3)===t&&(n&=16383,n+=1,e[S]=n)}function Ep(e,t,n,r){let o=r!==void 0?e[Tn]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[Tn]+=65536),(a<i||i==-1)&&(jD(e,n,t,c),e[Tn]=(e[Tn]&4294901760)+c+2),c++}function Uh(e,t){j(O.LifecycleHookStart,e,t);let n=b(null);try{t.call(e)}finally{b(n),j(O.LifecycleHookEnd,e,t)}}function jD(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[S]>>14<e[Tn]>>16&&(e[S]&3)===t&&(e[S]+=16384,Uh(a,i)):Uh(a,i)}var yr=-1,An=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function UD(e){return(e.flags&8)!==0}function BD(e){return(e.flags&16)!==0}function VD(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];HD(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Ip(e){return e===3||e===4||e===6}function HD(e){return e.charCodeAt(0)===64}function Do(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?Bh(e,n,o,null,t[++r]):Bh(e,n,o,null,null))}}return e}function Bh(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function wp(e){return e!==yr}function Ts(e){return e&32767}function $D(e){return e>>16}function Ss(e,t){let n=$D(e),r=t;for(;n>0;)r=r[bn],n--;return r}var Uu=!0;function _s(e){let t=Uu;return Uu=e,t}var zD=256,Cp=zD-1,bp=5,GD=0,pt={};function WD(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(wn)&&(r=n[wn]),r==null&&(r=n[wn]=GD++);let o=r&Cp,i=1<<o;t.data[e+(o>>bp)]|=i}function Ms(e,t){let n=Tp(e,t);if(n!==-1)return n;let r=t[w];r.firstCreatePass&&(e.injectorIndex=t.length,Mu(r.data,e),Mu(t,null),Mu(r.blueprint,null));let o=gl(e,t),i=e.injectorIndex;if(wp(o)){let s=Ts(o),a=Ss(o,t),c=a[w].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function Mu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Tp(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function gl(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Rp(o),r===null)return yr;if(n++,o=o[bn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return yr}function Bu(e,t,n){WD(e,t,n)}function qD(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(Ip(i))break;if(i===0)o=o+2;else if(typeof i=="number")for(o++;o<r&&typeof n[o]=="string";)o++;else{if(i===t)return n[o+1];o=o+2}}}return null}function Sp(e,t,n){if(n&8||e!==void 0)return e;Ji(t,"NodeInjector")}function _p(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[St],i=Ce(void 0);try{return o?o.get(t,r,n&8):qc(t,r,n&8)}finally{Ce(i)}}return Sp(r,t,n)}function Mp(e,t,n,r=0,o){if(e!==null){if(t[S]&2048&&!(r&2)){let s=KD(e,t,n,r,pt);if(s!==pt)return s}let i=Np(e,t,n,r,pt);if(i!==pt)return i}return _p(t,n,r,o)}function Np(e,t,n,r,o){let i=YD(n);if(typeof i=="function"){if(!vu(t,e,r))return r&1?Sp(o,n,r):_p(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Ji(n);else return s}finally{Du()}}else if(typeof i=="number"){let s=null,a=Tp(e,t),c=yr,u=r&1?t[Ae][Be]:null;for((a===-1||r&4)&&(c=a===-1?gl(e,t):t[a+8],c===yr||!Hh(r,!1)?a=-1:(s=t[w],a=Ts(c),t=Ss(c,t)));a!==-1;){let l=t[w];if(Vh(i,a,l.data)){let d=ZD(a,t,n,s,r,u);if(d!==pt)return d}c=t[a+8],c!==yr&&Hh(r,t[w].data[a+8]===u)&&Vh(i,a,t)?(s=l,a=Ts(c),t=Ss(c,t)):a=-1}}return o}function ZD(e,t,n,r,o,i){let s=t[w],a=s.data[e+8],c=r==null?Nt(a)&&Uu:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=ws(a,s,n,c,u);return l!==null?Eo(t,s,l,a,o):pt}function ws(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,f=o?a+l:u;for(let h=d;h<f;h++){let g=s[h];if(h<c&&n===g||h>=c&&g.type===n)return h}if(o){let h=s[c];if(h&&ut(h)&&h.type===n)return c}return null}function Eo(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof An){let a=i;if(a.resolving)throw Wc("");let c=_s(a.canSeeViewProviders);a.resolving=!0;let u=s[n].type||s[n],l,d=a.injectImpl?Ce(a.injectImpl):null,f=vu(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&LD(n,s[n],t)}finally{d!==null&&Ce(d),_s(c),a.resolving=!1,Du()}}return i}function YD(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(wn)?e[wn]:void 0;return typeof t=="number"?t>=0?t&Cp:QD:t}function Vh(e,t,n){let r=1<<e;return!!(n[t+(e>>bp)]&r)}function Hh(e,t){return!(e&2)&&!(e&1&&t)}var Rn=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Mp(this._tNode,this._lView,t,Dn(r),n)}};function QD(){return new Rn(me(),N())}function _o(e){return So(()=>{let t=e.prototype.constructor,n=t[Jr]||Vu(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Jr]||Vu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Vu(e){return Uc(e)?()=>{let t=Vu(ge(e));return t&&t()}:Ut(e)}function KD(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[S]&2048&&!fr(s);){let a=Np(i,s,n,r|2,pt);if(a!==pt)return a;let c=i.parent;if(!c){let u=s[tu];if(u){let l=u.get(n,pt,r&-5);if(l!==pt)return l}c=Rp(s),s=s[bn]}i=c}return o}function Rp(e){let t=e[w],n=t.type;return n===2?t.declTNode:n===1?e[Be]:null}function Mo(e){return qD(me(),e)}function JD(){return Ir(me(),N())}function Ir(e,t){return new mt(Ke(e,t))}var mt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=JD}return e})();function XD(e){return e instanceof mt?e.nativeElement:e}function eE(){return this._results[Symbol.iterator]()}var Ns=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new ue}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Qf(t);(this._changesDetected=!Yf(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=eE};function Ap(e){return(e.flags&128)===128}var ml=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(ml||{}),xp=new Map,tE=0;function nE(){return tE++}function rE(e){xp.set(e[_t],e)}function Hu(e){xp.delete(e[_t])}var $h="__ngContext__";function vr(e,t){Mt(t)?(e[$h]=t[_t],rE(t)):e[$h]=t}function Op(e){return Pp(e[lr])}function kp(e){return Pp(e[Ue])}function Pp(e){for(;e!==null&&!Qe(e);)e=e[Ue];return e}var oE;function yl(e){oE=e}var $s=new E("",{factory:()=>iE}),iE="ng";var zs=new E(""),No=new E("",{providedIn:"platform",factory:()=>"unknown"});var Ro=new E("",{factory:()=>p(oe).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Fp="r";var Lp="di";var jp=!1,Up=new E("",{factory:()=>jp});var zh=new WeakMap;function sE(e,t){if(e==null||typeof e!="object")return;let n=zh.get(e);n||(n=new WeakSet,zh.set(e,n)),n.add(t)}var aE=(e,t,n,r)=>{};function cE(e,t,n,r){aE(e,t,n,r)}function vl(e){return(e.flags&32)===32}var uE=()=>null;function Bp(e,t,n=!1){return uE(e,t,n)}function Vp(e,t){let n=e.contentQueries;if(n!==null){let r=b(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];ls(i),a.contentQueries(2,t[s],s)}}}finally{b(r)}}}function $u(e,t,n){ls(0);let r=b(null);try{t(e,n)}finally{b(r)}}function Dl(e,t,n){if(ru(t)){let r=b(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{b(r)}}}var et=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(et||{});var vs;function lE(){if(vs===void 0&&(vs=null,Tt.trustedTypes))try{vs=Tt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return vs}function Gh(e){return lE()?.createScriptURL(e)||e}var Rs=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${qi})`}};function Ao(e){return e instanceof Rs?e.changingThisBreaksApplicationSecurity:e}function El(e,t){let n=Hp(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${qi})`)}return n===t}function Hp(e){return e instanceof Rs&&e.getTypeName()||null}var dE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function $p(e){return e=String(e),e.match(dE)?e:"unsafe:"+e}var fE=/^>|^->|<!--|-->|--!>|<!-$/g,hE=/(<|>)/g,pE="\u200B$1\u200B";function gE(e){return e.replace(fE,t=>t.replace(hE,pE))}function mE(e,t){return e.createText(t)}function yE(e,t,n){e.setValue(t,n)}function vE(e,t){return e.createComment(gE(t))}function zp(e,t,n){return e.createElement(t,n)}function As(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Gp(e,t,n){e.appendChild(t,n)}function Wh(e,t,n,r,o){r!==null?As(e,t,n,r,o):Gp(e,t,n)}function Wp(e,t,n,r){e.removeChild(null,t,n,r)}function DE(e,t,n){e.setAttribute(t,"style",n)}function EE(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function qp(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&VD(e,t,r),o!==null&&EE(e,t,o),i!==null&&DE(e,t,i)}var Gs=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(Gs||{});function Zp(e){let t=Qp();return t?t.sanitize(Gs.URL,e)||"":El(e,"URL")?Ao(e):$p(sr(e))}function Yp(e){let t=Qp();if(t)return Gh(t.sanitize(Gs.RESOURCE_URL,e)||"");if(El(e,"ResourceURL"))return Gh(Ao(e));throw new m(904,!1)}var IE={embed:{src:!0},frame:{src:!0},iframe:{src:!0},media:{src:!0},base:{href:!0},link:{href:!0},object:{data:!0,codebase:!0}};function wE(e,t){return IE[e.toLowerCase()]?.[t.toLowerCase()]===!0?Yp:Zp}function Il(e,t,n){return wE(t,n)(e)}function Qp(){let e=N();return e&&e[Ye].sanitizer}function Kp(e){return e instanceof Function?e():e}function CE(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var Jp="ng-template";function bE(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&CE(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(wl(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function wl(e){return e.type===4&&e.value!==Jp}function TE(e,t,n){let r=e.type===4&&!n?Jp:e.value;return t===r}function SE(e,t,n){let r=4,o=e.attrs,i=o!==null?NE(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!Je(r)&&!Je(c))return!1;if(s&&Je(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!TE(e,c,n)||c===""&&t.length===1){if(Je(r))return!1;s=!0}}else if(r&8){if(o===null||!bE(e,o,c,n)){if(Je(r))return!1;s=!0}}else{let u=t[++a],l=_E(c,o,wl(e),n);if(l===-1){if(Je(r))return!1;s=!0;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(Je(r))return!1;s=!0}}}}return Je(r)||s}function Je(e){return(e&1)===0}function _E(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return RE(t,e)}function ME(e,t,n=!1){for(let r=0;r<t.length;r++)if(SE(e,t[r],n))return!0;return!1}function NE(e){for(let t=0;t<e.length;t++){let n=e[t];if(Ip(n))return t}return e.length}function RE(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function qh(e,t){return e?":not("+t.trim()+")":t}function AE(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Je(s)&&(t+=qh(i,o),o=""),r=s,i=i||!Je(r);n++}return o!==""&&(t+=qh(i,o)),t}function xE(e){return e.map(AE).join(",")}function OE(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!Je(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var Te={};function Cl(e,t,n,r,o,i,s,a,c,u,l){let d=ee+r,f=d+o,h=kE(d,f),g=typeof u=="function"?u():u;return h[w]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:g,incompleteFirstPass:!1,ssrId:l}}function kE(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Te);return n}function PE(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Cl(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function bl(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[Ze]=o,d[S]=r|4|128|8|64|1024,(u!==null||e&&e[S]&2048)&&(d[S]|=2048),cu(d),d[ae]=d[bn]=e,d[X]=n,d[Ye]=s||e&&e[Ye],d[G]=a||e&&e[G],d[St]=c||e&&e[St]||null,d[Be]=i,d[_t]=nE(),d[cr]=l,d[tu]=u,d[Ae]=t.type==2?e[Ae]:d,d}function FE(e,t,n){let r=Ke(t,e),o=PE(n),i=e[Ye].rendererFactory,s=Tl(e,bl(e,o,null,Xp(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Xp(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function eg(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Tl(e,t){return e[lr]?e[eu][Ue]=t:e[lr]=t,e[eu]=t,t}function LE(e=1){tg(te(),N(),dt()+e,!1)}function tg(e,t,n,r){if(!r)if((t[S]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Es(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Is(t,i,0,n)}Yt(n)}var Ws=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Ws||{});function zu(e,t,n,r){let o=b(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Ws.SignalBased)!==0&&(c=t[i][le]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):gp(t,c,i,r)}finally{b(o)}}var gt=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(gt||{}),jE;function Sl(e,t){return jE(e,t)}var yO=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var Gu=new WeakMap,mo=new WeakSet;function UE(e,t){let n=Gu.get(e);if(!n||n.length===0)return;let r=t.parentNode,o=t.previousSibling;for(let i=n.length-1;i>=0;i--){let s=n[i],a=s.parentNode;s===t?(n.splice(i,1),mo.add(s),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(o&&s===o||a&&r&&a!==r)&&(n.splice(i,1),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),s.parentNode?.removeChild(s))}}function BE(e,t){let n=Gu.get(e);n?n.includes(t)||n.push(t):Gu.set(e,[t])}var xn=new Set,qs=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(qs||{}),yt=new E(""),Zh=new Set;function Rt(e){Zh.has(e)||(Zh.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var _l=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=v({token:e,providedIn:"root",factory:()=>new e})}return e})(),ng=[0,1,2,3],rg=(()=>{class e{ngZone=p(Y);scheduler=p(bt);errorHandler=p(qe,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){p(yt,{optional:!0})}execute(){let n=this.sequences.size>0;n&&j(O.AfterRenderHooksStart),this.executing=!0;for(let r of ng)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&j(O.AfterRenderHooksEnd)}register(n){let{view:r}=n;r!==void 0?((r[Sn]??=[]).push(n),hr(r),r[S]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(qs.AFTER_NEXT_RENDER,n):n()}static \u0275prov=v({token:e,providedIn:"root",factory:()=>new e})}return e})(),xs=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[Sn];t&&(this.view[Sn]=t.filter(n=>n!==this))}};function Ml(e,t){let n=t?.injector??p(Me);return Rt("NgAfterNextRender"),HE(e,n,t,!0)}function VE(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function HE(e,t,n,r){let o=t.get(_l);o.impl??=t.get(rg);let i=t.get(yt,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(ft):null,a=t.get(ms,null,{optional:!0}),c=new xs(o.impl,VE(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var og=new E("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:p(q)})});function ig(e,t,n){let r=e.get(og);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function $E(e,t){let n=e.get(og);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function zE(e,t){for(let[n,r]of t)ig(e,r.animateFns)}function Yh(e,t,n,r){let o=e?.[qt]?.enter;t!==null&&o&&o.has(n.index)&&zE(r,o)}function mr(e,t,n,r,o,i,s,a){if(o!=null){let c,u=!1;Qe(o)?c=o:Mt(o)&&(u=!0,o=o[Ze]);let l=Ve(o);e===0&&r!==null?(Yh(a,r,i,n),s==null?Gp(t,r,l):As(t,r,l,s||null,!0)):e===1&&r!==null?(Yh(a,r,i,n),As(t,r,l,s||null,!0),UE(i,l)):e===2?(a?.[qt]?.leave?.has(i.index)&&BE(i,l),mo.delete(l),Qh(a,i,n,d=>{if(mo.has(l)){mo.delete(l);return}Wp(t,l,u,d)})):e===3&&(mo.delete(l),Qh(a,i,n,()=>{t.destroyNode(l)})),c!=null&&rI(t,e,n,c,i,r,s)}}function GE(e,t){sg(e,t),t[Ze]=null,t[Be]=null}function WE(e,t,n,r,o,i){r[Ze]=o,r[Be]=t,Ys(e,r,n,1,o,i)}function sg(e,t){t[Ye].changeDetectionScheduler?.notify(9),Ys(e,t,t[G],2,null,null)}function qE(e){let t=e[lr];if(!t)return Nu(e[w],e);for(;t;){let n=null;if(Mt(t))n=t[lr];else{let r=t[Q];r&&(n=r)}if(!n){for(;t&&!t[Ue]&&t!==e;)Mt(t)&&Nu(t[w],t),t=t[ae];t===null&&(t=e),Mt(t)&&Nu(t[w],t),n=t&&t[Ue]}t=n}}function Nl(e,t){let n=e[_n],r=n.indexOf(t);n.splice(r,1)}function Zs(e,t){if(Mn(t))return;let n=t[G];n.destroyNode&&Ys(e,t,n,3,null,null),qE(t)}function Nu(e,t){if(Mn(t))return;let n=b(null);try{t[S]&=-129,t[S]|=256,t[xe]&&Zr(t[xe]),QE(e,t),YE(e,t),t[w].type===1&&t[G].destroy();let r=t[Wt];if(r!==null&&Qe(t[ae])){r!==t[ae]&&Nl(r,t);let o=t[ct];o!==null&&o.detachView(e)}Hu(t)}finally{b(n)}}function Qh(e,t,n,r){let o=e?.[qt];if(o==null||o.leave==null||!o.leave.has(t.index))return r(!1);e&&xn.add(e[_t]),ig(n,()=>{if(o.leave&&o.leave.has(t.index)){let s=o.leave.get(t.index),a=[];if(s){for(let c=0;c<s.animateFns.length;c++){let u=s.animateFns[c],{promise:l}=u();a.push(l)}o.detachedLeaveAnimationFns=void 0}o.running=Promise.allSettled(a),ZE(e,r)}else e&&xn.delete(e[_t]),r(!1)},o)}function ZE(e,t){let n=e[qt]?.running;if(n){n.then(()=>{e[qt].running=void 0,xn.delete(e[_t]),t(!0)});return}t(!1)}function YE(e,t){let n=e.cleanup,r=t[ur];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[ur]=null);let o=t[Ct];if(o!==null){t[Ct]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[uo];if(i!==null){t[uo]=null;for(let s of i)s.destroy()}}function QE(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof An)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];j(O.LifecycleHookStart,a,c);try{c.call(a)}finally{j(O.LifecycleHookEnd,a,c)}}else{j(O.LifecycleHookStart,o,i);try{i.call(o)}finally{j(O.LifecycleHookEnd,o,i)}}}}}function KE(e,t,n){return JE(e,t.parent,n)}function JE(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Ze];if(Nt(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===et.None||o===et.Emulated)return null}return Ke(r,n)}function XE(e,t,n){return tI(e,t,n)}function eI(e,t,n){return e.type&40?Ke(e,n):null}var tI=eI,Kh;function Rl(e,t,n,r){let o=KE(e,r,t),i=t[G],s=r.parent||t[Be],a=XE(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Wh(i,o,n[c],a,!1);else Wh(i,o,n,a,!1);Kh!==void 0&&Kh(i,r,t,n,o)}function yo(e,t){if(t!==null){let n=t.type;if(n&3)return Ke(t,e);if(n&4)return Wu(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return yo(e,r);{let o=e[t.index];return Qe(o)?Wu(-1,o):Ve(o)}}else{if(n&128)return yo(e,t.next);if(n&32)return Sl(t,e)()||Ve(e[t.index]);{let r=ag(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Bt(e[Ae]);return yo(o,r)}else return yo(e,t.next)}}}return null}function ag(e,t){if(t!==null){let r=e[Ae][Be],o=t.projection;return r.projection[o]}return null}function Wu(e,t){let n=Q+e+1;if(n<t.length){let r=t[n],o=r[w].firstChild;if(o!==null)return yo(r,o)}return t[Zt]}function Al(e,t,n,r,o,i,s){for(;n!=null;){let a=r[St];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&vr(Ve(c),r),n.flags|=2),!vl(n))if(u&8)Al(e,t,n.child,r,o,i,!1),mr(t,e,a,o,c,n,i,r);else if(u&32){let l=Sl(n,r),d;for(;d=l();)mr(t,e,a,o,d,n,i,r);mr(t,e,a,o,c,n,i,r)}else u&16?nI(e,t,r,n,o,i):mr(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function Ys(e,t,n,r,o,i){Al(n,r,e.firstChild,t,o,i,!1)}function nI(e,t,n,r,o,i){let s=n[Ae],c=s[Be].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];mr(t,e,n[St],o,l,r,i,n)}else{let u=c,l=s[ae];Ap(r)&&(u.flags|=128),Al(e,t,u,l,o,i,!0)}}function rI(e,t,n,r,o,i,s){let a=r[Zt],c=Ve(r);a!==c&&mr(t,e,n,i,a,o,s);for(let u=Q;u<r.length;u++){let l=r[u];Ys(l[w],l,e,t,i,a)}}function oI(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:gt.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=gt.Important),e.setStyle(n,r,o,i))}}function cg(e,t,n,r,o){let i=dt(),s=r&2;try{Yt(-1),s&&t.length>ee&&tg(e,t,ee,!1);let a=s?O.TemplateUpdateStart:O.TemplateCreateStart;j(a,o,n),n(r,o)}finally{Yt(i);let a=s?O.TemplateUpdateEnd:O.TemplateCreateEnd;j(a,o,n)}}function Qs(e,t,n){dI(e,t,n),(n.flags&64)===64&&fI(e,t,n)}function Ks(e,t,n=Ke){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function iI(e,t,n,r){let i=r.get(Up,jp)||n===et.ShadowDom||n===et.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);if(s.tagName.toLowerCase()==="script")throw new m(905,!1);return sI(s),s}function sI(e){aI(e)}var aI=()=>null;function cI(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function ug(e,t,n,r,o,i){let s=t[w];if(Ol(e,s,t,n,r)){Nt(e)&&lI(t,e.index);return}e.type&3&&(n=cI(n)),uI(e,t,n,r,o,i)}function uI(e,t,n,r,o,i){if(e.type&3){let s=Ke(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function lI(e,t){let n=He(t,e);n[S]&16||(n[S]|=64)}function dI(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Nt(n)&&FE(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Ms(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Eo(t,e,s,n);if(vr(c,t),i!==null&&mI(t,s-r,c,a,n,i),ut(a)){let u=He(n.index,t);u[X]=Eo(t,e,s,n)}}}function fI(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Th();try{Yt(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];us(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&hI(c,u)}}finally{Yt(-1),us(s)}}function hI(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function xl(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];ME(t,i.selectors,!1)&&(r??=[],ut(i)?r.unshift(i):r.push(i))}return r}function pI(e,t,n,r,o,i){let s=Ke(e,t);gI(t[G],s,i,e.value,n,r,o)}function gI(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?sr(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function mI(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];zu(r,n,c,u)}}function lg(e,t,n,r,o){let i=ee+n,s=t[w],a=o(s,t,e,r,n);t[i]=a,pr(e,!0);let c=e.type===2;return c?(qp(t[G],a,e),(lh()===0||dr(e))&&vr(a,t),dh()):vr(a,t),ps()&&(!c||!vl(e))&&Rl(s,t,a,e),e}function dg(e){let t=e;return pu()?Dh():(t=t.parent,pr(t,!1)),t}function yI(e,t){let n=e[St];if(!n)return;let r;try{r=n.get(Oe,null)}catch(o){r=null}r?.(t)}function Ol(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],d=t.data[u];zu(d,n[u],l,o),a=!0}if(i)for(let c of i){let u=n[c],l=t.data[c];zu(l,u,r,o),a=!0}return a}function vI(e,t){let n=He(t,e),r=n[w];DI(r,n);let o=n[Ze];o!==null&&n[cr]===null&&(n[cr]=Bp(o,n[St])),j(O.ComponentStart);try{kl(r,n,n[X])}finally{j(O.ComponentEnd,n[X])}}function DI(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function kl(e,t,n){ds(t);try{let r=e.viewQuery;r!==null&&$u(1,r,n);let o=e.template;o!==null&&cg(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[ct]?.finishViewCreation(e),e.staticContentQueries&&Vp(e,t),e.staticViewQueries&&$u(2,e.viewQuery,n);let i=e.components;i!==null&&EI(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[S]&=-5,fs()}}function EI(e,t){for(let n=0;n<t.length;n++)vI(e,t[n])}function Js(e,t,n,r){let o=b(null);try{let i=t.tView,a=e[S]&4096?4096:16,c=bl(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[Wt]=u;let l=e[ct];return l!==null&&(c[ct]=l.createEmbeddedView(i)),kl(i,c,n),c}finally{b(o)}}function Io(e,t){return!t||t.firstChild===null||Ap(e)}function wo(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(Ve(i)),Qe(i)&&fg(i,r);let s=n.type;if(s&8)wo(e,t,n.child,r);else if(s&32){let a=Sl(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=ag(t,n);if(Array.isArray(a))r.push(...a);else{let c=Bt(t[Ae]);wo(c[w],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function fg(e,t){for(let n=Q;n<e.length;n++){let r=e[n],o=r[w].firstChild;o!==null&&wo(r[w],r,o,t)}e[Zt]!==e[Ze]&&t.push(e[Zt])}function hg(e){if(e[Sn]!==null){for(let t of e[Sn])t.impl.addSequence(t);e[Sn].length=0}}var pg=[];function II(e){return e[xe]??wI(e)}function wI(e){let t=pg.pop()??Object.create(bI);return t.lView=e,t}function CI(e){e.lView[xe]!==e&&(e.lView=null,pg.push(e))}var bI=U(y({},hn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{hr(e.lView)},consumerOnSignalRead(){this.lView[xe]=this}});function TI(e){let t=e[xe]??Object.create(SI);return t.lView=e,t}var SI=U(y({},hn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Bt(e.lView);for(;t&&!gg(t[w]);)t=Bt(t);t&&uu(t)},consumerOnSignalRead(){this.lView[xe]=this}});function gg(e){return e.type!==2}function mg(e){if(e[uo]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[uo])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[S]&8192)}}var _I=100;function yg(e,t=0){let r=e[Ye].rendererFactory,o=!1;o||r.begin?.();try{MI(e,t)}finally{o||r.end?.()}}function MI(e,t){let n=gu();try{mu(!0),qu(e,t);let r=0;for(;fo(e);){if(r===_I)throw new m(103,!1);r++,qu(e,1)}}finally{mu(n)}}function NI(e,t,n,r){if(Mn(t))return;let o=t[S],i=!1,s=!1;ds(t);let a=!0,c=null,u=null;i||(gg(e)?(u=II(t),c=mn(u)):Li()===null?(a=!1,u=TI(t),c=mn(u)):t[xe]&&(Zr(t[xe]),t[xe]=null));try{cu(t),wh(e.bindingStartIndex),n!==null&&cg(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let h=e.preOrderCheckHooks;h!==null&&Es(t,h,null)}else{let h=e.preOrderHooks;h!==null&&Is(t,h,0,null),_u(t,0)}if(s||RI(t),mg(t),vg(t,0),e.contentQueries!==null&&Vp(e,t),!i)if(l){let h=e.contentCheckHooks;h!==null&&Es(t,h)}else{let h=e.contentHooks;h!==null&&Is(t,h,1),_u(t,1)}xI(e,t);let d=e.components;d!==null&&Eg(t,d,0);let f=e.viewQuery;if(f!==null&&$u(2,f,r),!i)if(l){let h=e.viewCheckHooks;h!==null&&Es(t,h)}else{let h=e.viewHooks;h!==null&&Is(t,h,2),_u(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[ns]){for(let h of t[ns])h();t[ns]=null}i||(hg(t),t[S]&=-73)}catch(l){throw i||hr(t),l}finally{u!==null&&(nr(u,c),a&&CI(u)),fs()}}function vg(e,t){for(let n=Op(e);n!==null;n=kp(n))for(let r=Q;r<n.length;r++){let o=n[r];Dg(o,t)}}function RI(e){for(let t=Op(e);t!==null;t=kp(t)){if(!(t[S]&2))continue;let n=t[_n];for(let r=0;r<n.length;r++){let o=n[r];uu(o)}}}function AI(e,t,n){j(O.ComponentStart);let r=He(t,e);try{Dg(r,n)}finally{j(O.ComponentEnd,r[X])}}function Dg(e,t){os(e)&&qu(e,t)}function qu(e,t){let r=e[w],o=e[S],i=e[xe],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&ji(i)),s||=!1,i&&(i.dirty=!1),e[S]&=-9217,s)NI(r,e,r.template,e[X]);else if(o&8192){let a=b(null);try{mg(e),vg(e,1);let c=r.components;c!==null&&Eg(e,c,1),hg(e)}finally{b(a)}}}function Eg(e,t,n){for(let r=0;r<t.length;r++)AI(e,t[r],n)}function xI(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Yt(~o);else{let i=o,s=n[++r],a=n[++r];bh(s,i);let c=t[i];j(O.HostBindingsUpdateStart,c);try{a(2,c)}finally{j(O.HostBindingsUpdateEnd,c)}}}}finally{Yt(-1)}}function Pl(e,t){let n=gu()?64:1088;for(e[Ye].changeDetectionScheduler?.notify(t);e;){e[S]|=n;let r=Bt(e);if(fr(e)&&!r)return e;e=r}return null}function Ig(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function wg(e,t){let n=Q+t;if(n<e.length)return e[n]}function Xs(e,t,n,r=!0){let o=t[w];if(OI(o,t,e,n),r){let s=Wu(n,e),a=t[G],c=a.parentNode(e[Zt]);c!==null&&WE(o,e[Be],a,t,c,s)}let i=t[cr];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Cg(e,t){let n=Co(e,t);return n!==void 0&&Zs(n[w],n),n}function Co(e,t){if(e.length<=Q)return;let n=Q+t,r=e[n];if(r){let o=r[Wt];o!==null&&o!==e&&Nl(o,r),t>0&&(e[n-1][Ue]=r[Ue]);let i=so(e,Q+t);GE(r[w],r);let s=i[ct];s!==null&&s.detachView(i[w]),r[ae]=null,r[Ue]=null,r[S]&=-129}return r}function OI(e,t,n,r){let o=Q+r,i=n.length;r>0&&(n[o-1][Ue]=t),r<i-Q?(t[Ue]=n[o],Zc(n,Q+r,t)):(n.push(t),t[Ue]=null),t[ae]=n;let s=t[Wt];s!==null&&n!==s&&bg(s,t);let a=t[ct];a!==null&&a.insertView(e),is(t),t[S]|=128}function bg(e,t){let n=e[_n],r=t[ae];if(Mt(r))e[S]|=2;else{let o=r[ae][Ae];t[Ae]!==o&&(e[S]|=2)}n===null?e[_n]=[t]:n.push(t)}var Qt=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[w];return wo(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[X]}set context(t){this._lView[X]=t}get destroyed(){return Mn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ae];if(Qe(t)){let n=t[lo],r=n?n.indexOf(this):-1;r>-1&&(Co(t,r),so(n,r))}this._attachedToViewContainer=!1}Zs(this._lView[w],this._lView)}onDestroy(t){lu(this._lView,t)}markForCheck(){Pl(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[S]&=-129}reattach(){is(this._lView),this._lView[S]|=128}detectChanges(){this._lView[S]|=1024,yg(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=fr(this._lView),n=this._lView[Wt];n!==null&&!t&&Nl(n,this._lView),sg(this._lView[w],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new m(902,!1);this._appRef=t;let n=fr(this._lView),r=this._lView[Wt];r!==null&&!n&&bg(r,this._lView),is(this._lView)}};var Kt=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=kI;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=Js(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new Qt(i)}}return e})();function kI(){return ea(me(),N())}function ea(e,t){return e.type&4?new Kt(t,e,Ir(e,t)):null}function ta(e,t,n,r,o){let i=e.data[t];if(i===null)i=PI(e,t,n,r,o),Ch()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=vh();i.injectorIndex=s===null?-1:s.injectorIndex}return pr(i,!0),i}function PI(e,t,n,r,o){let i=hu(),s=pu(),a=s?i:i&&i.parent,c=e.data[t]=LI(e,a,n,t,r,o);return FI(e,c,i,s),c}function FI(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function LI(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return hh()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:Eu(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function jI(e){let t=e[nu]??[],r=e[ae][G],o=[];for(let i of t)i.data[Lp]!==void 0?o.push(i):UI(i,r);e[nu]=o}function UI(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Fp];for(;n<o;){let i=r.nextSibling;Wp(t,r,!1),r=i,n++}}}var BI=()=>null,VI=()=>null;function Zu(e,t){return BI(e,t)}function Tg(e,t,n){return VI(e,t,n)}var Sg=class{},na=class{},Yu=class{resolveComponentFactory(t){throw new m(917,!1)}},xo=class{static NULL=new Yu},On=class{},wr=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>HI()}return e})();function HI(){let e=N(),t=me(),n=He(t.index,e);return(Mt(n)?n:e)[G]}var _g=(()=>{class e{static \u0275prov=v({token:e,providedIn:"root",factory:()=>null})}return e})();var Cs={},Qu=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,Cs,r);return o!==Cs||n===Cs?o:this.parentInjector.get(t,n,r)}};function Jh(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=Zi(o,a);else if(i==2){let c=a,u=t[++s];r=Zi(r,c+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function H(e,t=0){let n=N();if(n===null)return T(e,t);let r=me();return Mp(r,n,ge(e),t)}function Mg(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,u=null;for(let l of s)if(l.resolveHostDirectives!==null){[a,c,u]=l.resolveHostDirectives(s);break}GI(e,t,n,a,i,c,u)}i!==null&&r!==null&&$I(n,r,i)}function $I(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new m(-301,!1);r.push(t[o],i)}}function zI(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function GI(e,t,n,r,o,i,s){let a=r.length,c=null;for(let f=0;f<a;f++){let h=r[f];c===null&&ut(h)&&(c=h,zI(e,n,f)),Bu(Ms(n,t),e,h.type)}KI(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let f=0;f<a;f++){let h=r[f];h.providersResolver&&h.providersResolver(h)}let u=!1,l=!1,d=eg(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let f=0;f<a;f++){let h=r[f];if(n.mergedAttrs=Do(n.mergedAttrs,h.hostAttrs),qI(e,n,t,d,h),QI(d,h,o),s!==null&&s.has(h)){let[C,D]=s.get(h);n.directiveToIndex.set(h.type,[d,C+n.directiveStart,D+n.directiveStart])}else(i===null||!i.has(h))&&n.directiveToIndex.set(h.type,d);h.contentQueries!==null&&(n.flags|=4),(h.hostBindings!==null||h.hostAttrs!==null||h.hostVars!==0)&&(n.flags|=64);let g=h.type.prototype;!u&&(g.ngOnChanges||g.ngOnInit||g.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!l&&(g.ngOnChanges||g.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),d++}WI(e,n,i)}function WI(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Xh(0,t,o,r),Xh(1,t,o,r),tp(t,r,!1);else{let i=n.get(o);ep(0,t,i,r),ep(1,t,i,r),tp(t,r,!0)}}}function Xh(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Ng(t,i)}}function ep(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Ng(t,s)}}function Ng(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function tp(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||wl(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function qI(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Ut(o.type,!0)),s=new An(i,ut(o),H,null);e.blueprint[r]=s,n[r]=s,ZI(e,t,r,eg(e,n,o.hostVars,Te),o)}function ZI(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;YI(s)!=a&&s.push(a),s.push(n,r,i)}}function YI(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function QI(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;ut(t)&&(n[""]=e)}}function KI(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Fl(e,t,n,r,o,i,s,a){let c=t[w],u=c.consts,l=lt(u,s),d=ta(c,e,n,r,l);return i&&Mg(c,t,d,lt(u,a),o),d.mergedAttrs=Do(d.mergedAttrs,d.attrs),d.attrs!==null&&Jh(d,d.attrs,!1),d.mergedAttrs!==null&&Jh(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function Ll(e,t){Dp(e,t),ru(t)&&e.queries.elementEnd(t)}function jl(e){return Ag(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function Rg(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function Ag(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Ul(e,t,n){return e[t]=n}function JI(e,t){return e[t]}function tt(e,t,n){if(n===Te)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function xg(e,t,n,r){let o=tt(e,t,n);return tt(e,t+1,r)||o}function Ru(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&sE(o,i);let s=Nt(e)?He(e.index,t):t;Pl(s,5);let a=t[X],c=np(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=np(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function np(e,t,n,r){let o=b(null);try{return j(O.OutputStart,t,n),n(r)!==!1}catch(i){return yI(e,i),!1}finally{j(O.OutputEnd,t,n),b(o)}}function XI(e,t,n,r,o,i,s,a){let c=dr(e),u=!1,l=null;if(!r&&c&&(l=tw(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=!0}else{let d=Ke(e,n),f=r?r(d):d;cE(n,f,i,a),r||(a.__ngNativeEl__=d);let h=o.listen(f,i,a);if(!ew(i)){let g=r?C=>r(Ve(C[e.index])):e.index;Og(g,t,n,i,a,h,!1)}}return u}function ew(e){return e.startsWith("animation")||e.startsWith("transition")}function tw(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[ur],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Og(e,t,n,r,o,i,s){let a=t.firstCreatePass?fu(t):null,c=du(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1))}function rp(e,t,n,r,o,i){let s=t[n],a=t[w],u=a.data[n].outputs[r],d=s[u].subscribe(i);Og(e.index,a,t,o,i,d,!0)}var Ku=Symbol("BINDING");function kg(e){return e.debugInfo?.className||e.type.name||null}var Os=class extends xo{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=$t(t);return new Dr(n,this.ngModule)}};function nw(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Ws.SignalBased)!==0};return o&&(i.transform=o),i})}function rw(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function ow(e,t,n){let r=t instanceof q?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Qu(n,r):n}function iw(e){let t=e.get(On,null);if(t===null)throw new m(407,!1);let n=e.get(_g,null),r=e.get(bt,null),o=e.get(yt,null,{optional:!0});return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1,tracingService:o}}function sw(e,t){let n=Pg(e);return zp(t,n,n==="svg"?ou:n==="math"?oh:null)}function Pg(e){return(e.selectors[0][0]||"div").toLowerCase()}var Dr=class extends na{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=nw(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=rw(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=xE(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){j(O.DynamicComponentStart);let a=b(null);try{let c=this.componentDef,u=ow(c,o||this.ngModule,t),l=iw(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(kg(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{b(a)}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=aw(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?iI(u,o,a.encapsulation,n):sw(a,u),d=s?.some(op)||i?.some(g=>typeof g!="function"&&g.bindings.some(op)),f=bl(null,c,null,512|Xp(a),null,null,t,u,n,null,Bp(l,n,!0));f[ee]=l,ds(f);let h=null;try{let g=Fl(ee,f,2,"#host",()=>c.directiveRegistry,!0,0);qp(u,l,g),vr(l,f),Qs(c,f,g),Dl(c,g,f),Ll(c,g),r!==void 0&&uw(g,this.ngContentSelectors,r),h=He(g.index,f),f[X]=h[X],kl(c,f,null)}catch(g){throw h!==null&&Hu(h),Hu(f),g}finally{j(O.DynamicComponentEnd),fs()}return new ks(this.componentType,f,!!d)}};function aw(e,t,n,r){let o=e?["ng-version","21.2.17"]:OE(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[Ku].requiredVars,l.create&&(l.targetIdx=0,(i??=[]).push(l)),l.update&&(l.targetIdx=0,(s??=[]).push(l));if(r)for(let l=0;l<r.length;l++){let d=r[l];if(typeof d!="function")for(let f of d.bindings){a+=f[Ku].requiredVars;let h=l+1;f.create&&(f.targetIdx=h,(i??=[]).push(f)),f.update&&(f.targetIdx=h,(s??=[]).push(f))}}let c=[t];if(r)for(let l of r){let d=typeof l=="function"?l:l.type,f=Gc(d);c.push(f)}return Cl(0,null,cw(i,s),1,a,c,null,null,null,[o],null)}function cw(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function op(e){let t=e[Ku].kind;return t==="input"||t==="twoWay"}var ks=class extends Sg{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=rs(n[w],ee),this.location=Ir(this._tNode,n),this.instance=He(this._tNode.index,n)[X],this.hostView=this.changeDetectorRef=new Qt(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=Ol(r,o[w],o,t,n);this.previousInputValues.set(t,n);let s=He(r.index,o);Pl(s,1)}get injector(){return new Rn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function uw(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var vt=(()=>{class e{static __NG_ELEMENT_ID__=lw}return e})();function lw(){let e=me();return Fg(e,N())}var Ju=class e extends vt{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Ir(this._hostTNode,this._hostLView)}get injector(){return new Rn(this._hostTNode,this._hostLView)}get parentInjector(){let t=gl(this._hostTNode,this._hostLView);if(wp(t)){let n=Ss(t,this._hostLView),r=Ts(t),o=n[w].data[r+8];return new Rn(o,n)}else return new Rn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=ip(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Q}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Zu(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Io(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!OD(t),u;if(c)u=n;else{let D=n||{};u=D.index,r=D.injector,o=D.projectableNodes,i=D.environmentInjector||D.ngModuleRef,s=D.directives,a=D.bindings}let l=c?t:new Dr($t(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let I=(c?d:this.parentInjector).get(q,null);I&&(i=I)}let f=$t(l.componentType??{}),h=Zu(this._lContainer,f?.id??null),g=h?.firstChild??null,C=l.create(d,o,g,i,s,a);return this.insertImpl(C.hostView,u,Io(this._hostTNode,h)),C}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(sh(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[ae],u=new e(c,c[Be],c[ae]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Xs(s,o,i,r),t.attachToViewContainerRef(),Zc(Au(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=ip(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Co(this._lContainer,n);r&&(so(Au(this._lContainer),n),Zs(r[w],r))}detach(t){let n=this._adjustIndex(t,-1),r=Co(this._lContainer,n);return r&&so(Au(this._lContainer),n)!=null?new Qt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function ip(e){return e[lo]}function Au(e){return e[lo]||(e[lo]=[])}function Fg(e,t){let n,r=t[e.index];return Qe(r)?n=r:(n=Ig(r,t,null,e),t[e.index]=n,Tl(t,n)),fw(n,t,e,r),new Ju(n,e,t)}function dw(e,t){let n=e[G],r=n.createComment(""),o=Ke(t,e),i=n.parentNode(o);return As(n,i,r,n.nextSibling(o),!1),r}var fw=gw,hw=()=>!1;function pw(e,t,n){return hw(e,t,n)}function gw(e,t,n,r){if(e[Zt])return;let o;n.type&8?o=Ve(r):o=dw(t,n),e[Zt]=o}var Xu=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},el=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)Bl(t,n).matches!==null&&this.queries[n].setDirty()}},tl=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=Cw(t):this.predicate=t}},nl=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},rl=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,mw(n,i)),this.matchTNodeWithReadOption(t,n,ws(n,t,i,!1,!1))}else r===Kt?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,ws(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===mt||o===vt||o===Kt&&n.type&4)this.addMatch(n.index,-2);else{let i=ws(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function mw(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function yw(e,t){return e.type&11?Ir(e,t):e.type&4?ea(e,t):null}function vw(e,t,n,r){return n===-1?yw(t,e):n===-2?Dw(e,t,r):Eo(e,e[w],n,t)}function Dw(e,t,n){if(n===mt)return Ir(t,e);if(n===Kt)return ea(t,e);if(n===vt)return Fg(t,e)}function Lg(e,t,n,r){let o=t[ct].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let u=s[c];if(u<0)a.push(null);else{let l=i[u];a.push(vw(t,l,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function ol(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Lg(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let u=i[a+1],l=t[-c];for(let d=Q;d<l.length;d++){let f=l[d];f[Wt]===f[ae]&&ol(f[w],f,u,r)}if(l[_n]!==null){let d=l[_n];for(let f=0;f<d.length;f++){let h=d[f];ol(h[w],h,u,r)}}}}}return r}function Ew(e,t){return e[ct].queries[t].queryList}function Iw(e,t,n){let r=new Ns((n&4)===4);return uh(e,t,r,r.destroy),(t[ct]??=new el).queries.push(new Xu(r))-1}function ww(e,t,n,r){let o=te();if(o.firstCreatePass){let i=me();bw(o,new tl(t,n,r),i.index),Tw(o,e),(n&2)===2&&(o.staticContentQueries=!0)}return Iw(o,N(),n)}function Cw(e){return e.split(",").map(t=>t.trim())}function bw(e,t,n){e.queries===null&&(e.queries=new nl),e.queries.track(new rl(t,n))}function Tw(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function Bl(e,t){return e.queries.getByIndex(t)}function Sw(e,t){let n=e[w],r=Bl(n,t);return r.crossesNgTemplate?ol(n,e,t,[]):Lg(n,e,r,t)}var kn=class{},ra=class{};var Ps=class extends kn{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Os(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=zc(t);this._bootstrapComponents=Kp(i.bootstrap),this._r3Injector=Iu(t,n,[{provide:kn,useValue:this},{provide:xo,useValue:this.componentFactoryResolver},...r],no(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Fs=class extends ra{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new Ps(this.moduleType,t,[])}};var bo=class extends kn{injector;componentFactoryResolver=new Os(this);instance=null;constructor(t){super();let n=new In([...t.providers,{provide:kn,useValue:this},{provide:xo,useValue:this.componentFactoryResolver}],t.parent||co(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Oo(e,t,n=null){return new bo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var _w=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Kc(!1,n.type),o=r.length>0?Oo([r],this._injector,""):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=v({token:e,providedIn:"environment",factory:()=>new e(T(q))})}return e})();function Vl(e){return So(()=>{let t=jg(e),n=U(y({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ml.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(_w).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||et.Emulated,styles:e.styles||be,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Rt("NgStandalone"),Ug(n);let r=e.dependencies;return n.directiveDefs=sp(r,Mw),n.pipeDefs=sp(r,Gf),n.id=Aw(n),n})}function Mw(e){return $t(e)||Gc(e)}function Fn(e){return So(()=>({type:e.type,bootstrap:e.bootstrap||be,declarations:e.declarations||be,imports:e.imports||be,exports:e.exports||be,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Nw(e,t){if(e==null)return zt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Ws.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function Rw(e){if(e==null)return zt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function nt(e){return So(()=>{let t=jg(e);return Ug(t),t})}function Hl(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function jg(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||zt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||be,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:Nw(e.inputs,t),outputs:Rw(e.outputs),debugInfo:null}}function Ug(e){e.features?.forEach(t=>t(e))}function sp(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i)}return r}:null}function Aw(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function xw(e){return Object.getPrototypeOf(e.prototype).constructor}function Bg(e){let t=xw(e.type),n=!0,r=[e];for(;t&&t!==Function.prototype&&t!==Object.prototype;){let o,i=Object.hasOwn(t,oo)?t[oo]:void 0,s=Object.hasOwn(t,io)?t[io]:void 0;if(ut(e))o=i??s;else{if(i)throw new m(903,!1);o=s}if(o){if(n){r.push(o);let c=e;c.inputs=xu(e.inputs),c.declaredInputs=xu(e.declaredInputs),c.outputs=xu(e.outputs);let u=o.hostBindings;u&&Lw(e,u);let l=o.viewQuery,d=o.contentQueries;if(l&&Pw(e,l),d&&Fw(e,d),Ow(e,o),zf(e.outputs,o.outputs),ut(o)&&o.data.animation){let f=e.data;f.animation=(f.animation||[]).concat(o.data.animation)}}let a=o.features;if(a)for(let c=0;c<a.length;c++){let u=a[c];u&&u.ngInherit&&u(e),u===Bg&&(n=!1)}}t=Object.getPrototypeOf(t)}kw(r)}function Ow(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function kw(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Do(o.hostAttrs,n=Do(n,o.hostAttrs))}}function xu(e){return e===zt?{}:e===be?[]:e}function Pw(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function Fw(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function Lw(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function Vg(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Do(e.mergedAttrs,e.attrs);let l=e.tView=Cl(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),l.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),pr(e,!1);let c=Uw(n,t,e,r);ps()&&Rl(n,t,c,e),vr(c,t);let u=Ig(c,t,c,e);t[r+ee]=u,Tl(t,u),pw(u,e,t)}function jw(e,t,n,r,o,i,s,a,c,u,l){let d=n+ee,f;return t.firstCreatePass?(f=ta(t,d,4,s||null,a||null),ss()&&Mg(t,e,f,lt(t.consts,u),xl),Dp(t,f)):f=t.data[d],Vg(f,e,t,n,r,o,i,c),dr(f)&&Qs(t,e,f),u!=null&&Ks(e,f,l),f}function Ls(e,t,n,r,o,i,s,a,c,u,l){let d=n+ee,f;if(t.firstCreatePass){if(f=ta(t,d,4,s||null,a||null),u!=null){let h=lt(t.consts,u);f.localNames=[];for(let g=0;g<h.length;g+=2)f.localNames.push(h[g],-1)}}else f=t.data[d];return Vg(f,e,t,n,r,o,i,c),u!=null&&Ks(e,f,l),f}function Hg(e,t,n,r,o,i,s,a){let c=N(),u=te(),l=lt(u.consts,i);return jw(c,u,e,t,n,r,o,l,void 0,s,a),Hg}var Uw=Bw;function Bw(e,t,n,r){return ho(!0),t[G].createComment("")}var $l=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function zl(e){return typeof e=="function"&&e[le]!==void 0}function Gl(e){return zl(e)&&typeof e.set=="function"}var Wl=new E("");function Cr(e){return!!e&&typeof e.then=="function"}function ql(e){return!!e&&typeof e.subscribe=="function"}var $g=new E("");var Zl=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=p($g,{optional:!0})??[];injector=p(Me);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=de(this.injector,o);if(Cr(i))n.push(i);else if(ql(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),oa=new E("");function zg(){Ic(()=>{let e="";throw new m(600,e)})}function Gg(e){return e.isBoundToModule}var Vw=10;var Ln=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(Oe);afterRenderManager=p(_l);zonelessEnabled=p(gr);rootEffectScheduler=p(Su);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ue;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=p(ht);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(V(n=>!n))}constructor(){p(yt,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=p(q);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Me.NULL){return this._injector.get(Y).run(()=>{j(O.BootstrapComponentStart);let s=n instanceof na;if(!this._injector.get(Zl).done){let g="";throw new m(405,g)}let c;s?c=n:c=this._injector.get(xo).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let u=Gg(c)?void 0:this._injector.get(kn),l=r||c.selector,d=c.create(o,[],l,u),f=d.location.nativeElement,h=d.injector.get(Wl,null);return h?.registerApplication(f),d.onDestroy(()=>{this.detachView(d.hostView),vo(this.components,d),h?.unregisterApplication(f)}),this._loadComponent(d),j(O.BootstrapComponentEnd,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){j(O.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(qs.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw j(O.ChangeDetectionEnd),new m(101,!1);let n=b(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,b(n),this.afterTick.next(),j(O.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(On,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<Vw;){j(O.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{j(O.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!fo(o))continue;let i=r&&!this.zonelessEnabled?0:1;yg(o,i),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>fo(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;vo(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(n),this._injector.get(oa,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>vo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new m(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function vo(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function ia(e,t,n,r){let o=N(),i=Nn();if(tt(o,i,t)){let s=te(),a=hs();pI(a,o,e,t,n,r)}return ia}var il=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Ou(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Hw(e,t,n,r){let o,i,s=0,a=e.length-1,c=void 0;if(Array.isArray(t)){b(r);let u=t.length-1;for(b(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],f=Ou(s,l,s,d,n);if(f!==0){f<0&&e.updateValue(s,d),s++;continue}let h=e.at(a),g=t[u],C=Ou(a,h,u,g,n);if(C!==0){C<0&&e.updateValue(a,g),a--,u--;continue}let D=n(s,l),I=n(a,h),Z=n(s,d);if(Object.is(Z,I)){let we=n(u,g);Object.is(we,D)?(e.swap(s,a),e.updateValue(a,g),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new js,i??=cp(e,s,a,n),sl(e,o,s,Z))e.updateValue(s,d),s++,a++;else if(i.has(Z))o.set(D,e.detach(s)),a--;else{let we=e.create(s,t[s]);e.attach(s,we),s++,a++}}for(;s<=u;)ap(e,o,n,s,t[s]),s++}else if(t!=null){b(r);let u=t[Symbol.iterator]();b(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),f=l.value,h=Ou(s,d,s,f,n);if(h!==0)h<0&&e.updateValue(s,f),s++,l=u.next();else{o??=new js,i??=cp(e,s,a,n);let g=n(s,f);if(sl(e,o,s,g))e.updateValue(s,f),s++,a++,l=u.next();else if(!i.has(g))e.attach(s,e.create(s,f)),s++,a++,l=u.next();else{let C=n(s,d);o.set(C,e.detach(s)),a--}}}for(;!l.done;)ap(e,o,n,e.length,l.value),l=u.next()}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(u=>{e.destroy(u)})}function sl(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function ap(e,t,n,r,o){if(sl(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function cp(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var js=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function $w(e,t,n,r,o,i,s,a){Rt("NgControlFlow");let c=N(),u=te(),l=lt(u.consts,i);return Ls(c,u,e,t,n,r,o,l,256,s,a),Yl}function Yl(e,t,n,r,o,i,s,a){Rt("NgControlFlow");let c=N(),u=te(),l=lt(u.consts,i);return Ls(c,u,e,t,n,r,o,l,512,s,a),Yl}function zw(e,t){Rt("NgControlFlow");let n=N(),r=Nn(),o=n[r]!==Te?n[r]:-1,i=o!==-1?Us(n,ee+o):void 0,s=0;if(tt(n,r,e)){let a=b(null);try{if(i!==void 0&&Cg(i,s),e!==-1){let c=ee+e,u=Us(n,c),l=ll(n[w],c),d=Tg(u,l,n),f=Js(n,l,t,{dehydratedView:d});Xs(u,f,s,Io(l,d))}}finally{b(a)}}else if(i!==void 0){let a=wg(i,s);a!==void 0&&(a[X]=t)}}var al=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-Q}};function Gw(e,t){return t}var cl=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function Ww(e,t,n,r,o,i,s,a,c,u,l,d,f){Rt("NgControlFlow");let h=N(),g=te(),C=c!==void 0,D=N(),I=a?s.bind(D[Ae][X]):s,Z=new cl(C,I);D[ee+e]=Z,Ls(h,g,e+1,t,n,r,o,lt(g.consts,i),256),C&&Ls(h,g,e+2,c,u,l,d,lt(g.consts,f),512)}var ul=class extends il{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-Q}at(t){return this.getLView(t)[X].$implicit}attach(t,n){let r=n[cr];this.needsIndexUpdate||=t!==this.length,Xs(this.lContainer,n,t,Io(this.templateTNode,r)),Zw(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Yw(this.lContainer,t),Qw(this.lContainer,t)}create(t,n){let r=Zu(this.lContainer,this.templateTNode.tView.ssrId);return Js(this.hostLView,this.templateTNode,new al(this.lContainer,n,t),{dehydratedView:r})}destroy(t){Zs(t[w],t)}updateValue(t,n){this.getLView(t)[X].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[X].$index=t}getLView(t){return Kw(this.lContainer,t)}};function qw(e){let t=b(null),n=dt();try{let r=N(),o=r[w],i=r[n],s=n+1,a=Us(r,s);if(i.liveCollection===void 0){let u=ll(o,s);i.liveCollection=new ul(a,r,u)}else i.liveCollection.reset();let c=i.liveCollection;if(Hw(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=Nn(),l=c.length===0;if(tt(r,u,l)){let d=n+2,f=Us(r,d);if(l){let h=ll(o,d),g=Tg(f,h,r),C=Js(r,h,void 0,{dehydratedView:g});Xs(f,C,0,Io(h,g))}else o.firstUpdatePass&&jI(f),Cg(f,0)}}}finally{b(t)}}function Us(e,t){return e[t]}function Zw(e,t){if(e.length<=Q)return;let n=Q+t,r=e[n],o=r?r[qt]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[St];$E(i,o),xn.delete(r[_t]),o.detachedLeaveAnimationFns=void 0}}function Yw(e,t){if(e.length<=Q)return;let n=Q+t,r=e[n],o=r?r[qt]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function Qw(e,t){return Co(e,t)}function Kw(e,t){return wg(e,t)}function ll(e,t){return rs(e,t)}function Wg(e,t,n){let r=N(),o=Nn();if(tt(r,o,t)){let i=te(),s=hs();ug(s,r,e,t,r[G],n)}return Wg}function dl(e,t,n,r,o){Ol(t,e,n,o?"class":"style",r)}function Bs(e,t,n,r){let o=N(),i=o[w],s=e+ee,a=i.firstCreatePass?Fl(s,o,2,t,xl,ss(),n,r):i.data[s];if(Nt(a)){let c=o[Ye].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(kg(u),()=>(up(e,t,o,a,r),Bs))}}return up(e,t,o,a,r),Bs}function up(e,t,n,r,o){if(lg(r,n,e,t,Jw),dr(r)){let i=n[w];Qs(i,n,r),Dl(i,r,n)}o!=null&&Ks(n,r)}function Ql(){let e=te(),t=me(),n=dg(t);return e.firstCreatePass&&Ll(e,n),ph(n)&&gh(),fh(),n.classesWithoutHost!=null&&UD(n)&&dl(e,n,N(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&BD(n)&&dl(e,n,N(),n.stylesWithoutHost,!1),Ql}function sa(e,t,n,r){return Bs(e,t,n,r),Ql(),sa}var Jw=(e,t,n,r,o)=>(ho(!0),zp(t[G],r,Eu()));function Kl(e,t,n){let r=N(),o=r[w],i=e+ee,s=o.firstCreatePass?Fl(i,r,8,"ng-container",xl,ss(),t,n):o.data[i];if(lg(s,r,e,"ng-container",Xw),dr(s)){let a=r[w];Qs(a,r,s),Dl(a,s,r)}return n!=null&&Ks(r,s),Kl}function Jl(){let e=te(),t=me(),n=dg(t);return e.firstCreatePass&&Ll(e,n),Jl}function qg(e,t,n){return Kl(e,t,n),Jl(),qg}var Xw=(e,t,n,r,o)=>(ho(!0),vE(t[G],""));function eC(){return N()}var go=void 0;function tC(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var nC=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],go,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],go,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",go,go,go],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",tC],ku=Object.create(null);function ke(e){let t=rC(e),n=lp(t);if(n)return n;let r=t.split("-")[0];if(n=lp(r),n)return n;if(r==="en")return nC;throw new m(701,!1)}function lp(e){return e in ku||(ku[e]=Tt.ng&&Tt.ng.common&&Tt.ng.common.locales&&Tt.ng.common.locales[e]),ku[e]}var ne=(function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e})(ne||{});function rC(e){return e.toLowerCase().replace(/_/g,"-")}var ko="en-US";var oC=ko;function Zg(e){typeof e=="string"&&(oC=e.toLowerCase().replace(/_/g,"-"))}function aa(e,t,n){let r=N(),o=te(),i=me();return Yg(o,r,r[G],i,e,t,n),aa}function Yg(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=Ru(r,t,i),XI(r,e,t,s,n,o,i,c)&&(a=!1)),a){let u=r.outputs?.[o],l=r.hostDirectiveOutputs?.[o];if(l&&l.length)for(let d=0;d<l.length;d+=2){let f=l[d],h=l[d+1];c??=Ru(r,t,i),rp(r,t,f,h,o,c)}if(u&&u.length)for(let d of u)c??=Ru(r,t,i),rp(r,t,d,o,o,c)}}function iC(e=1){return Rh(e)}function ca(e,t,n,r){return ww(e,t,n,r),ca}function Xl(e){let t=N(),n=te(),r=yu();ls(r+1);let o=Bl(n,r);if(e.dirty&&ih(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=Sw(t,r);e.reset(i,XD),e.notifyOnChanges()}return!0}return!1}function ed(){return Ew(N(),yu())}function sC(e){let t=Eh();return su(t,ee+e)}function Ds(e,t){return e<<17|t<<2}function Pn(e){return e>>17&32767}function aC(e){return(e&2)==2}function cC(e,t){return e&131071|t<<17}function fl(e){return e|2}function Er(e){return(e&131068)>>2}function Pu(e,t){return e&-131069|t<<2}function uC(e){return(e&1)===1}function hl(e){return e|1}function lC(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Pn(s),c=Er(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||ar(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let f=Pn(e[a+1]);e[r+1]=Ds(f,a),f!==0&&(e[f+1]=Pu(e[f+1],r)),e[a+1]=cC(e[a+1],r)}else e[r+1]=Ds(a,0),a!==0&&(e[a+1]=Pu(e[a+1],r)),a=r;else e[r+1]=Ds(c,0),a===0?a=r:e[c+1]=Pu(e[c+1],r),c=r;u&&(e[r+1]=fl(e[r+1])),dp(e,l,r,!0),dp(e,l,r,!1),dC(t,l,e,r,i),s=Ds(a,c),i?t.classBindings=s:t.styleBindings=s}function dC(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&ar(i,t)>=0&&(n[r+1]=hl(n[r+1]))}function dp(e,t,n,r){let o=e[n+1],i=t===null,s=r?Pn(o):Er(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];fC(c,t)&&(a=!0,e[s+1]=r?hl(u):fl(u)),s=r?Pn(u):Er(u)}a&&(e[n+1]=r?fl(o):hl(o))}function fC(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?ar(e,t)>=0:!1}var Xe={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function hC(e){return e.substring(Xe.key,Xe.keyEnd)}function pC(e){return gC(e),Qg(e,Kg(e,0,Xe.textEnd))}function Qg(e,t){let n=Xe.textEnd;return n===t?-1:(t=Xe.keyEnd=mC(e,Xe.key=t,n),Kg(e,t,n))}function gC(e){Xe.key=0,Xe.keyEnd=0,Xe.value=0,Xe.valueEnd=0,Xe.textEnd=e.length}function Kg(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function mC(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function Jg(e,t,n){return em(e,t,n,!1),Jg}function Xg(e,t){return em(e,t,null,!0),Xg}function yC(e){DC(TC,vC,e,!0)}function vC(e,t){for(let n=pC(t);n>=0;n=Qg(t,n))es(e,hC(t),!0)}function em(e,t,n,r){let o=N(),i=te(),s=cs(2);if(i.firstUpdatePass&&nm(i,e,s,r),t!==Te&&tt(o,s,t)){let a=i.data[dt()];rm(i,a,o,o[G],e,o[s+1]=_C(t,n),r,s)}}function DC(e,t,n,r){let o=te(),i=cs(2);o.firstUpdatePass&&nm(o,null,i,r);let s=N();if(n!==Te&&tt(s,i,n)){let a=o.data[dt()];if(om(a,r)&&!tm(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Zi(c,n||"")),dl(o,a,s,n,r)}else SC(o,a,s,s[G],s[i+1],s[i+1]=bC(e,t,n),r,i)}}function tm(e,t){return t>=e.expandoStartIndex}function nm(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[dt()],s=tm(e,n);om(i,r)&&t===null&&!s&&(t=!1),t=EC(o,i,t,r),lC(o,i,t,n,s,r)}}function EC(e,t,n,r){let o=Sh(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Fu(null,e,t,n,r),n=To(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Fu(o,e,t,n,r),i===null){let c=IC(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Fu(null,e,t,c[1],r),c=To(c,t.attrs,r),wC(e,t,r,c))}else i=CC(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function IC(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Er(r)!==0)return e[Pn(r)]}function wC(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Pn(o)]=r}function CC(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=To(r,s,n)}return To(r,t.attrs,n)}function Fu(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=To(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function To(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),es(e,s,n?!0:t[++i]))}return e===void 0?null:e}function bC(e,t,n){if(n==null||n==="")return be;let r=[],o=Ao(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(o instanceof Set)for(let i of o)e(r,i,!0);else if(typeof o=="object")for(let i in o)o.hasOwnProperty(i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function TC(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&es(e,r,n)}function SC(e,t,n,r,o,i,s,a){o===Te&&(o=be);let c=0,u=0,l=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;l!==null||d!==null;){let f=c<o.length?o[c+1]:void 0,h=u<i.length?i[u+1]:void 0,g=null,C;l===d?(c+=2,u+=2,f!==h&&(g=d,C=h)):d===null||l!==null&&l<d?(c+=2,g=l):(u+=2,g=d,C=h),g!==null&&rm(e,t,n,r,g,C,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null}}function rm(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=uC(u)?fp(c,t,n,o,Er(u),s):void 0;if(!Vs(l)){Vs(i)||aC(u)&&(i=fp(c,null,n,o,a,s));let d=iu(dt(),n);oI(r,s,d,o,i)}}function fp(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,f=n[o+1];f===Te&&(f=d?be:void 0);let h=d?ts(f,r):l===r?f:void 0;if(u&&!Vs(h)&&(h=ts(c,r)),Vs(h)&&(a=h,s))return a;let g=e[o+1];o=s?Pn(g):Er(g)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=ts(c,r))}return a}function Vs(e){return e!==void 0}function _C(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=no(Ao(e)))),e}function om(e,t){return(e.flags&(t?8:16))!==0}function MC(e,t=""){let n=N(),r=te(),o=e+ee,i=r.firstCreatePass?ta(r,o,1,t,null):r.data[o],s=NC(r,n,i,t);n[o]=s,ps()&&Rl(r,n,s,i),pr(i,!1)}var NC=(e,t,n,r)=>(ho(!0),mE(t[G],r));function RC(e,t,n,r=""){return tt(e,Nn(),n)?t+sr(n)+r:Te}function AC(e,t,n,r,o,i=""){let s=Ih(),a=xg(e,s,n,o);return cs(2),a?t+sr(n)+r+sr(o)+i:Te}function im(e){return td("",e),im}function td(e,t,n){let r=N(),o=RC(r,e,t,n);return o!==Te&&am(r,dt(),o),td}function sm(e,t,n,r,o){let i=N(),s=AC(i,e,t,n,r,o);return s!==Te&&am(i,dt(),s),sm}function am(e,t,n){let r=iu(t,e);yE(e[G],r,n)}function cm(e,t,n){Gl(t)&&(t=t());let r=N(),o=Nn();if(tt(r,o,t)){let i=te(),s=hs();ug(s,r,e,t,r[G],n)}return cm}function xC(e,t){let n=Gl(e);return n&&e.set(t),n}function um(e,t){let n=N(),r=te(),o=me();return Yg(r,n,n[G],o,e,t),um}function hp(e,t,n){let r=te();r.firstCreatePass&&lm(t,r.data,r.blueprint,ut(e),n)}function lm(e,t,n,r,o){if(e=ge(e),Array.isArray(e))for(let i=0;i<e.length;i++)lm(e[i],t,n,r,o);else{let i=te(),s=N(),a=me(),c=En(e)?e:ge(e.provide),u=Xc(e),l=a.providerIndexes&1048575,d=a.directiveStart,f=a.providerIndexes>>20;if(En(e)||!e.multi){let h=new An(u,o,H,null),g=ju(c,t,o?l:l+f,d);g===-1?(Bu(Ms(a,s),i,c),Lu(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(h),s.push(h)):(n[g]=h,s[g]=h)}else{let h=ju(c,t,l+f,d),g=ju(c,t,l,l+f),C=h>=0&&n[h],D=g>=0&&n[g];if(o&&!D||!o&&!C){Bu(Ms(a,s),i,c);let I=PC(o?kC:OC,n.length,o,r,u,e);!o&&D&&(n[g].providerFactory=I),Lu(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(I),s.push(I)}else{let I=dm(n[o?g:h],u,!o&&r);Lu(i,e,h>-1?h:g,I)}!o&&r&&D&&n[g].componentProviders++}}}function Lu(e,t,n,r){let o=En(t),i=th(t);if(o||i){let c=(i?ge(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function dm(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ju(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function OC(e,t,n,r,o){return pl(this.multi,[])}function kC(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=Eo(r,r[w],this.providerFactory.index,o);s=c.slice(0,a),pl(i,s);for(let u=a;u<c.length;u++)s.push(c[u])}else s=[],pl(i,s);return s}function pl(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function PC(e,t,n,r,o,i){let s=new An(e,n,H,null);return s.multi=[],s.index=t,s.componentProviders=0,dm(s,o,r&&!n),s}function FC(e,t){return n=>{n.providersResolver=(r,o)=>hp(r,o?o(e):e,!1),t&&(n.viewProvidersResolver=(r,o)=>hp(r,o?o(t):t,!0))}}function LC(e,t){let n=as()+e,r=N();return r[n]===Te?Ul(r,n,t()):JI(r,n)}function jC(e,t,n){return UC(N(),as(),e,t,n)}function fm(e,t){let n=e[t];return n===Te?void 0:n}function UC(e,t,n,r,o,i){let s=t+n;return tt(e,s,o)?Ul(e,s+1,i?r.call(i,o):r(o)):fm(e,s+1)}function BC(e,t,n,r,o,i,s){let a=t+n;return xg(e,a,o,i)?Ul(e,a+2,s?r.call(s,o,i):r(o,i)):fm(e,a+2)}function VC(e,t){let n=te(),r,o=e+ee;n.firstCreatePass?(r=HC(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=Ut(r.type,!0)),s,a=Ce(H);try{let c=_s(!1),u=i();return _s(c),au(n,N(),o,u),u}finally{Ce(a)}}function HC(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function $C(e,t,n,r){let o=e+ee,i=N(),s=su(i,o);return zC(i,o)?BC(i,as(),t,s.transform,n,r,s):s.transform(n,r)}function zC(e,t){return e[w].data[t].pure}function GC(e,t){return ea(e,t)}var Hs=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},nd=(()=>{class e{compileModuleSync(n){return new Fs(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=zc(n),i=Kp(o.declarations).reduce((s,a)=>{let c=$t(a);return c&&s.push(new Dr(c)),s},[]);return new Hs(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var hm=(()=>{class e{applicationErrorHandler=p(Oe);appRef=p(Ln);taskService=p(ht);ngZone=p(Y);zonelessEnabled=p(gr);tracing=p(yt,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new se;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(eo):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(ys,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?Ph:Cu;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(eo+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.applicationErrorHandler(r)}finally{this.taskService.remove(n),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function pm(){return[{provide:bt,useExisting:hm},{provide:Y,useClass:to},{provide:gr,useValue:!0}]}function WC(){return typeof $localize<"u"&&$localize.locale||ko}var Po=new E("",{factory:()=>p(Po,{optional:!0,skipSelf:!0})||WC()});function K(e){return Uf(e)}function Fo(e,t){return Ui(e,t?.equal)}var ZC=e=>e;function rd(e,t){if(typeof e=="function"){let n=bc(e,ZC,t?.equal);return gm(n,t?.debugName)}else{let n=bc(e.source,e.computation,e.equal);return gm(n,e.debugName)}}function gm(e,t){let n=e[le],r=e;return r.set=o=>Lf(n,o),r.update=o=>jf(n,o),r.asReadonly=gs.bind(e),r}var Dm=Symbol("InputSignalNode#UNSET"),ub=U(y({},Vi),{transformFn:void 0,applyValueToInputSignal(e,t){yn(e,t)}});function Em(e,t){let n=Object.create(ub);n.value=e,n.transformFn=t?.transform;function r(){if(pn(n),n.value===Dm){let o=null;throw new m(-950,o)}return n.value}return r[le]=n,r}var la=class{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>Mo(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}};function mm(e,t){return Em(e,t)}function lb(e){return Em(Dm,e)}var Im=(mm.required=lb,mm);var db=(()=>{class e{zone=p(Y);changeDetectionScheduler=p(bt);applicationRef=p(Ln);applicationErrorHandler=p(Oe);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(n){this.applicationErrorHandler(n)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),fb=new E("",{factory:()=>!1});function hb({ngZoneFactory:e,scheduleInRootZone:t}){return e??=()=>new Y(U(y({},wm()),{scheduleInRootZone:t})),[{provide:gr,useValue:!1},{provide:Y,useFactory:e},{provide:Gt,multi:!0,useFactory:()=>{let n=p(db,{optional:!0});return()=>n.initialize()}},{provide:Gt,multi:!0,useFactory:()=>{let n=p(pb);return()=>{n.initialize()}}},{provide:ys,useValue:t??wu}]}function Lj(e){let t=e?.scheduleInRootZone,n=hb({ngZoneFactory:()=>{let r=wm(e);return r.scheduleInRootZone=t,r.shouldCoalesceEventChangeDetection&&Rt("NgZone_CoalesceEvent"),new Y(r)},scheduleInRootZone:t});return Cn([{provide:fb,useValue:!0},n])}function wm(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var pb=(()=>{class e{subscription=new se;initialized=!1;zone=p(Y);pendingTasks=p(ht);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Y.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Y.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var od=new E(""),gb=new E("");function Lo(e){return!e.moduleRef}function mb(e){let t=Lo(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Y);return n.run(()=>{Lo(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Oe),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Lo(e)){let i=()=>t.destroy(),s=e.platformInjector.get(od);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(od);s.add(i),e.moduleRef.onDestroy(()=>{vo(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return vb(r,n,()=>{let i=t.get(ht),s=i.add(),a=t.get(Zl);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(Po,ko);if(Zg(c||ko),!t.get(gb,!0))return Lo(e)?t.get(Ln):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Lo(e)){let l=t.get(Ln);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return yb?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var yb;function vb(e,t,n){try{let r=n();return Cr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var ua=null;function Db(e=[],t){return Me.create({name:t,providers:[{provide:ao,useValue:"platform"},{provide:od,useValue:new Set([()=>ua=null])},...e]})}function Eb(e=[]){if(ua)return ua;let t=Db(e);return ua=t,zg(),Ib(t),t}function Ib(e){let t=e.get(zs,null);de(e,()=>{t?.forEach(n=>n())})}var wb=1e4;var jj=wb-1e3;var jo=(()=>{class e{static __NG_ELEMENT_ID__=Cb}return e})();function Cb(e){return bb(me(),N(),(e&16)===16)}function bb(e,t,n){if(Nt(e)&&!n){let r=He(e.index,t);return new Qt(r,r)}else if(e.type&175){let r=t[Ae];return new Qt(r,t)}return null}var id=class{supports(t){return jl(t)}create(t){return new sd(t)}},Tb=(e,t)=>t,sd=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||Tb}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<ym(r,o,i)?n:r,a=ym(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let u=a-o,l=c-o;if(u!=l){for(let f=0;f<u;f++){let h=f<i.length?i[f]:i[f]=0,g=h+f;l<=g&&g<u&&(i[f]=h+1)}let d=s.previousIndex;i[d]=l-u}}a!==c&&t(s,a,c)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!jl(t))throw new m(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,Rg(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new ad(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new da),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new da),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},ad=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}},cd=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},da=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new cd,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function ym(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function vm(){return new ud([new id])}var ud=(()=>{class e{factories;static \u0275prov=v({token:e,providedIn:"root",factory:vm});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:()=>{let r=p(e,{optional:!0,skipSelf:!0});return e.create(n,r||vm())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new m(901,!1)}}return e})();function Cm(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;j(O.BootstrapApplicationStart);try{let i=o?.injector??Eb(r),s=[pm(),Lh,...n||[]],a=new bo({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return mb({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{j(O.BootstrapApplicationEnd)}}function fa(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var bm=null;function At(){return bm}function ld(e){bm??=e}var Uo=class{},br=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:()=>p(Tm),providedIn:"platform"})}return e})();var Tm=(()=>{class e extends br{_location;_history;_doc=p(oe);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return At().getBaseHref(this._doc)}onPopState(n){let r=At().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=At().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Mm(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function Sm(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function Xt(e){return e&&e[0]!=="?"?`?${e}`:e}var Tr=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:()=>p(_b),providedIn:"root"})}return e})(),Sb=new E(""),_b=(()=>{class e extends Tr{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??p(oe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Mm(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Xt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Xt(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Xt(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(T(br),T(Sb,8))};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Sr=(()=>{class e{_subject=new ue;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=Rb(Sm(_m(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Xt(r))}normalize(n){return e.stripTrailingSlash(Nb(this._basePath,_m(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Xt(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Xt(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=Xt;static joinWithSlash=Mm;static stripTrailingSlash=Sm;static \u0275fac=function(r){return new(r||e)(T(Tr))};static \u0275prov=v({token:e,factory:()=>Mb(),providedIn:"root"})}return e})();function Mb(){return new Sr(T(Tr))}function Nb(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function _m(e){return e.replace(/\/index\.html$/,"")}function Rb(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var Ee=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(Ee||{}),B=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(B||{}),Ne=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(Ne||{}),Ot={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Om(e){return ke(e)[ne.LocaleId]}function km(e,t,n){let r=ke(e),o=[r[ne.DayPeriodsFormat],r[ne.DayPeriodsStandalone]],i=$e(o,t);return $e(i,n)}function Pm(e,t,n){let r=ke(e),o=[r[ne.DaysFormat],r[ne.DaysStandalone]],i=$e(o,t);return $e(i,n)}function Fm(e,t,n){let r=ke(e),o=[r[ne.MonthsFormat],r[ne.MonthsStandalone]],i=$e(o,t);return $e(i,n)}function Lm(e,t){let r=ke(e)[ne.Eras];return $e(r,t)}function Bo(e,t){let n=ke(e);return $e(n[ne.DateFormat],t)}function Vo(e,t){let n=ke(e);return $e(n[ne.TimeFormat],t)}function Ho(e,t){let r=ke(e)[ne.DateTimeFormat];return $e(r,t)}function $o(e,t){let n=ke(e),r=n[ne.NumberSymbols][t];if(typeof r>"u"){if(t===Ot.CurrencyDecimal)return n[ne.NumberSymbols][Ot.Decimal];if(t===Ot.CurrencyGroup)return n[ne.NumberSymbols][Ot.Group]}return r}function jm(e){if(!e[ne.ExtraData])throw new m(2303,!1)}function Um(e){let t=ke(e);return jm(t),(t[ne.ExtraData][2]||[]).map(r=>typeof r=="string"?dd(r):[dd(r[0]),dd(r[1])])}function Bm(e,t,n){let r=ke(e);jm(r);let o=[r[ne.ExtraData][0],r[ne.ExtraData][1]],i=$e(o,t)||[];return $e(i,n)||[]}function $e(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new m(2304,!1)}function dd(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var Ab=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ha={},xb=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Ob=256;function Vm(e,t,n,r){let o=$b(e);kb(t),t=xt(n,t)||t;let s=[],a;for(;t;)if(a=xb.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=$m(r,c),o=Hb(o,r));let u="";return s.forEach(l=>{let d=Bb(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function kb(e){if(e.length>Ob)throw new m(2300,!1)}function va(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function xt(e,t){let n=Om(e);if(ha[n]??={},ha[n][t])return ha[n][t];let r="";switch(t){case"shortDate":r=Bo(e,Ne.Short);break;case"mediumDate":r=Bo(e,Ne.Medium);break;case"longDate":r=Bo(e,Ne.Long);break;case"fullDate":r=Bo(e,Ne.Full);break;case"shortTime":r=Vo(e,Ne.Short);break;case"mediumTime":r=Vo(e,Ne.Medium);break;case"longTime":r=Vo(e,Ne.Long);break;case"fullTime":r=Vo(e,Ne.Full);break;case"short":let o=xt(e,"shortTime"),i=xt(e,"shortDate");r=pa(Ho(e,Ne.Short),[o,i]);break;case"medium":let s=xt(e,"mediumTime"),a=xt(e,"mediumDate");r=pa(Ho(e,Ne.Medium),[s,a]);break;case"long":let c=xt(e,"longTime"),u=xt(e,"longDate");r=pa(Ho(e,Ne.Long),[c,u]);break;case"full":let l=xt(e,"fullTime"),d=xt(e,"fullDate");r=pa(Ho(e,Ne.Full),[l,d]);break}return r&&(ha[n][t]=r),r}function pa(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function rt(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function Pb(e,t){return rt(e,3).substring(0,t)}function ie(e,t,n=0,r=!1,o=!1){return function(i,s){let a=Fb(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return Pb(a,t);let c=$o(s,Ot.MinusSign);return rt(a,t,c,r,o)}}function Fb(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new m(2301,!1)}}function z(e,t,n=Ee.Format,r=!1){return function(o,i){return Lb(o,i,e,t,n,r)}}function Lb(e,t,n,r,o,i){switch(n){case 2:return Fm(t,o,r)[e.getMonth()];case 1:return Pm(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=Um(t),l=Bm(t,o,r),d=u.findIndex(f=>{if(Array.isArray(f)){let[h,g]=f,C=s>=h.hours&&a>=h.minutes,D=s<g.hours||s===g.hours&&a<g.minutes;if(h.hours<g.hours){if(C&&D)return!0}else if(C||D)return!0}else if(f.hours===s&&f.minutes===a)return!0;return!1});if(d!==-1)return l[d]}return km(t,o,r)[s<12?0:1];case 3:return Lm(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new m(2302,!1)}}function ga(e){return function(t,n,r){let o=-1*r,i=$o(n,Ot.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+rt(s,2,i)+rt(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+rt(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+rt(s,2,i)+":"+rt(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+rt(s,2,i)+":"+rt(Math.abs(o%60),2,i);default:throw new m(2310,!1)}}}var jb=0,ya=4;function Ub(e){let t=va(e,jb,1).getDay();return va(e,0,1+(t<=ya?ya:ya+7)-t)}function Hm(e){let t=e.getDay(),n=t===0?-3:ya-t;return va(e.getFullYear(),e.getMonth(),e.getDate()+n)}function fd(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=Hm(n),s=Ub(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return rt(o,e,$o(r,Ot.MinusSign))}}function ma(e,t=!1){return function(n,r){let i=Hm(n).getFullYear();return rt(i,e,$o(r,Ot.MinusSign),t)}}var hd={};function Bb(e){if(hd[e])return hd[e];let t;switch(e){case"G":case"GG":case"GGG":t=z(3,B.Abbreviated);break;case"GGGG":t=z(3,B.Wide);break;case"GGGGG":t=z(3,B.Narrow);break;case"y":t=ie(0,1,0,!1,!0);break;case"yy":t=ie(0,2,0,!0,!0);break;case"yyy":t=ie(0,3,0,!1,!0);break;case"yyyy":t=ie(0,4,0,!1,!0);break;case"Y":t=ma(1);break;case"YY":t=ma(2,!0);break;case"YYY":t=ma(3);break;case"YYYY":t=ma(4);break;case"M":case"L":t=ie(1,1,1);break;case"MM":case"LL":t=ie(1,2,1);break;case"MMM":t=z(2,B.Abbreviated);break;case"MMMM":t=z(2,B.Wide);break;case"MMMMM":t=z(2,B.Narrow);break;case"LLL":t=z(2,B.Abbreviated,Ee.Standalone);break;case"LLLL":t=z(2,B.Wide,Ee.Standalone);break;case"LLLLL":t=z(2,B.Narrow,Ee.Standalone);break;case"w":t=fd(1);break;case"ww":t=fd(2);break;case"W":t=fd(1,!0);break;case"d":t=ie(2,1);break;case"dd":t=ie(2,2);break;case"c":case"cc":t=ie(7,1);break;case"ccc":t=z(1,B.Abbreviated,Ee.Standalone);break;case"cccc":t=z(1,B.Wide,Ee.Standalone);break;case"ccccc":t=z(1,B.Narrow,Ee.Standalone);break;case"cccccc":t=z(1,B.Short,Ee.Standalone);break;case"E":case"EE":case"EEE":t=z(1,B.Abbreviated);break;case"EEEE":t=z(1,B.Wide);break;case"EEEEE":t=z(1,B.Narrow);break;case"EEEEEE":t=z(1,B.Short);break;case"a":case"aa":case"aaa":t=z(0,B.Abbreviated);break;case"aaaa":t=z(0,B.Wide);break;case"aaaaa":t=z(0,B.Narrow);break;case"b":case"bb":case"bbb":t=z(0,B.Abbreviated,Ee.Standalone,!0);break;case"bbbb":t=z(0,B.Wide,Ee.Standalone,!0);break;case"bbbbb":t=z(0,B.Narrow,Ee.Standalone,!0);break;case"B":case"BB":case"BBB":t=z(0,B.Abbreviated,Ee.Format,!0);break;case"BBBB":t=z(0,B.Wide,Ee.Format,!0);break;case"BBBBB":t=z(0,B.Narrow,Ee.Format,!0);break;case"h":t=ie(3,1,-12);break;case"hh":t=ie(3,2,-12);break;case"H":t=ie(3,1);break;case"HH":t=ie(3,2);break;case"m":t=ie(4,1);break;case"mm":t=ie(4,2);break;case"s":t=ie(5,1);break;case"ss":t=ie(5,2);break;case"S":t=ie(6,1);break;case"SS":t=ie(6,2);break;case"SSS":t=ie(6,3);break;case"Z":case"ZZ":case"ZZZ":t=ga(0);break;case"ZZZZZ":t=ga(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ga(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=ga(2);break;default:return null}return hd[e]=t,t}function $m(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Vb(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Hb(e,t,n){let o=e.getTimezoneOffset(),i=$m(t,o);return Vb(e,-1*(i-o))}function $b(e){if(Nm(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return va(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(Ab))return zb(r)}let t=new Date(e);if(!Nm(t))throw new m(2311,!1);return t}function zb(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,u),t}function Nm(e){return e instanceof Date&&!isNaN(e.valueOf())}var pd=/\s+/,Rm=[],Gb=(()=>{class e{_ngEl;_renderer;initialClasses=Rm;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(pd):Rm}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(pd):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(pd).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(r){return new(r||e)(H(mt),H(wr))};static \u0275dir=nt({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var Da=class{$implicit;ngForOf;index;count;constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},zm=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new Da(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),Am(a,o)}});for(let o=0,i=r.length;o<i;o++){let a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let i=r.get(o.currentIndex);Am(i,o)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(H(vt),H(Kt),H(ud))};static \u0275dir=nt({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function Am(e,t){e.context.$implicit=t.item}var Wb=(()=>{class e{_viewContainer;_context=new Ea;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){xm(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){xm(n,!1),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(H(vt),H(Kt))};static \u0275dir=nt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),Ea=class{$implicit=null;ngIf=null};function xm(e,t){if(e&&!e.createEmbeddedView)throw new m(2020,!1)}var qb=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=p(Me);constructor(n){this._viewContainerRef=n}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static \u0275fac=function(r){return new(r||e)(H(vt))};static \u0275dir=nt({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Jt]})}return e})();function Zb(e,t){return new m(2100,!1)}var Yb="mediumDate",Gm=new E(""),Wm=new E(""),Qb=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??Yb,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Vm(n,s,i||this.locale,a)}catch(s){throw Zb(e,s.message)}}static \u0275fac=function(r){return new(r||e)(H(Po,16),H(Gm,24),H(Wm,24))};static \u0275pipe=Hl({name:"date",type:e,pure:!0})}return e})();var qm=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Fn({type:e});static \u0275inj=Ht({})}return e})();function zo(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var jn=class{};var Zm="browser";var Go=class{_doc;constructor(t){this._doc=t}manager},Ia=(()=>{class e extends Go{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(T(oe))};static \u0275prov=v({token:e,factory:e.\u0275fac})}return e})(),ba=new E(""),vd=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});let o=n.filter(s=>!(s instanceof Ia));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof Ia);i&&this._plugins.push(i)}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new m(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(T(ba),T(Y))};static \u0275prov=v({token:e,factory:e.\u0275fac})}return e})(),gd="ng-app-id";function Ym(e){for(let t of e)t.remove()}function Qm(e,t){let n=t.createElement("style");return n.textContent=e,n}function Jb(e,t,n,r){let o=e.head?.querySelectorAll(`style[${gd}="${t}"],link[${gd}="${t}"]`);if(o)for(let i of o)i.removeAttribute(gd),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function yd(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Dd=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,Jb(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Qm);r?.forEach(o=>this.addUsage(o,this.external,yd))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(Ym(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Ym(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Qm(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,yd(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(T(oe),T($s),T(Ro,8),T(No))};static \u0275prov=v({token:e,factory:e.\u0275fac})}return e})(),md={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Ed=/%COMP%/g;var Jm="%COMP%",Xb=`_nghost-${Jm}`,eT=`_ngcontent-${Jm}`,tT=!0,nT=new E("",{factory:()=>tT});function rT(e){return eT.replace(Ed,e)}function oT(e){return Xb.replace(Ed,e)}function Xm(e,t){return t.map(n=>n.replace(Ed,e))}var Id=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(n,r,o,i,s,a,c=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=u,this.defaultRenderer=new Wo(n,s,a,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof Ca?o.applyToHost(n):o instanceof qo&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.tracingService;switch(r.encapsulation){case et.Emulated:i=new Ca(c,u,r,this.appId,l,s,a,d);break;case et.ShadowDom:return new wa(c,n,r,s,a,this.nonce,d,u);case et.ExperimentalIsolatedShadowDom:return new wa(c,n,r,s,a,this.nonce,d);default:i=new qo(c,u,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(T(vd),T(Dd),T($s),T(nT),T(oe),T(Y),T(Ro),T(yt,8))};static \u0275prov=v({token:e,factory:e.\u0275fac})}return e})(),Wo=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(md[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Km(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Km(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new m(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=md[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=md[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(gt.DashCase|gt.Important)?t.style.setProperty(n,r,o&gt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&gt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=At().getGlobalEventTarget(this.doc,t),!t))throw new m(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function Km(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var wa=class extends Wo{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,o,i,a),this.hostEl=n,this.sharedStylesHost=c,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=Xm(r.id,u);for(let d of u){let f=document.createElement("style");s&&f.setAttribute("nonce",s),f.textContent=d,this.shadowRoot.appendChild(f)}let l=r.getExternalStyles?.();if(l)for(let d of l){let f=yd(d,o);s&&f.setAttribute("nonce",s),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},qo=class extends Wo{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=c?Xm(c,u):u,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&xn.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Ca=class extends qo{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=rT(u),this.hostAttr=oT(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var Ta=class e extends Uo{supportsDOMEvents=!0;static makeCurrent(){ld(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=iT();return n==null?null:sT(n)}resetBaseElement(){Zo=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return zo(document.cookie,t)}},Zo=null;function iT(){return Zo=Zo||document.head.querySelector("base"),Zo?Zo.getAttribute("href"):null}function sT(e){return new URL(e,document.baseURI).pathname}var aT=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac})}return e})(),ey=["alt","control","meta","shift"],cT={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},uT={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},ty=(()=>{class e extends Go{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>At().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),ey.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=cT[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),ey.forEach(s=>{if(s!==o){let a=uT[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(T(oe))};static \u0275prov=v({token:e,factory:e.\u0275fac})}return e})();function lT(e,t,n){return $(this,null,function*(){let r=y({rootComponent:e},dT(t,n));return Cm(r)})}function dT(e,t){return{platformRef:t?.platformRef,appProviders:[...mT,...e?.providers??[]],platformProviders:gT}}function fT(){Ta.makeCurrent()}function hT(){return new qe}function pT(){return yl(document),document}var gT=[{provide:No,useValue:Zm},{provide:zs,useValue:fT,multi:!0},{provide:oe,useFactory:pT}];var mT=[{provide:ao,useValue:"root"},{provide:qe,useFactory:hT},{provide:ba,useClass:Ia,multi:!0},{provide:ba,useClass:ty,multi:!0},Id,Dd,vd,{provide:On,useExisting:Id},{provide:jn,useClass:aT},[]];var en=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
5
- `).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var _a=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}},Ma=class{encodeKey(t){return ny(t)}encodeValue(t){return ny(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function yT(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var vT=/%(\d[a-f0-9])/gi,DT={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ny(e){return encodeURIComponent(e).replace(vT,(t,n)=>DT[n]??t)}function Sa(e){return`${e}`}var kt=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Ma,t.fromString){if(t.fromObject)throw new m(2805,!1);this.map=yT(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(Sa):[Sa(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Sa(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(Sa(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};function ET(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ry(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function oy(e){return typeof Blob<"u"&&e instanceof Blob}function iy(e){return typeof FormData<"u"&&e instanceof FormData}function IT(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var sy="Content-Type",ay="Accept",cy="text/plain",uy="application/json",wT=`${uy}, ${cy}, */*`,_r=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(ET(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new m(2822,"");this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache}if(this.headers??=new en,this.context??=new _a,!this.params)this.params=new kt,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||ry(this.body)||oy(this.body)||iy(this.body)||IT(this.body)?this.body:this.body instanceof kt?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||iy(this.body)?null:oy(this.body)?this.body.type||null:ry(this.body)?null:typeof this.body=="string"?cy:this.body instanceof kt?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?uy:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,u=t.redirect||this.redirect,l=t.credentials||this.credentials,d=t.referrer??this.referrer,f=t.integrity||this.integrity,h=t.referrerPolicy||this.referrerPolicy,g=t.transferCache??this.transferCache,C=t.timeout??this.timeout,D=t.body!==void 0?t.body:this.body,I=t.withCredentials??this.withCredentials,Z=t.reportProgress??this.reportProgress,we=t.headers||this.headers,ce=t.params||this.params,Hr=t.context??this.context;return t.setHeaders!==void 0&&(we=Object.keys(t.setHeaders).reduce(($r,on)=>$r.set(on,t.setHeaders[on]),we)),t.setParams&&(ce=Object.keys(t.setParams).reduce(($r,on)=>$r.set(on,t.setParams[on]),ce)),new e(n,r,D,{params:ce,headers:we,context:Hr,reportProgress:Z,responseType:o,withCredentials:I,transferCache:g,keepalive:i,cache:a,priority:s,timeout:C,mode:c,redirect:u,credentials:l,referrer:d,integrity:f,referrerPolicy:h})}},Un=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(Un||{}),Nr=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new en,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300}},Na=class e extends Nr{constructor(t={}){super(t)}type=Un.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Yo=class e extends Nr{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Un.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},Mr=class extends Nr{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},CT=200,bT=204;var TT=new E("");var ST=/^\)\]\}',?\n/;var Cd=(()=>{class e{xhrFactory;tracingService=p(yt,{optional:!0});constructor(n){this.xhrFactory=n}maybePropagateTrace(n){return this.tracingService?.propagate?this.tracingService.propagate(n):n}handle(n){if(n.method==="JSONP")throw new m(-2800,!1);let r=this.xhrFactory;return A(null).pipe(Re(()=>new x(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((D,I)=>s.setRequestHeader(D,I.join(","))),n.headers.has(ay)||s.setRequestHeader(ay,wT),!n.headers.has(sy)){let D=n.detectContentTypeHeader();D!==null&&s.setRequestHeader(sy,D)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let D=n.responseType.toLowerCase();s.responseType=D!=="json"?D:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let D=s.statusText||"OK",I=new en(s.getAllResponseHeaders()),Z=s.responseURL||n.url;return c=new Na({headers:I,status:s.status,statusText:D,url:Z}),c},l=this.maybePropagateTrace(()=>{let{headers:D,status:I,statusText:Z,url:we}=u(),ce=null;I!==bT&&(ce=typeof s.response>"u"?s.responseText:s.response),I===0&&(I=ce?CT:0);let Hr=I>=200&&I<300;if(n.responseType==="json"&&typeof ce=="string"){let $r=ce;ce=ce.replace(ST,"");try{ce=ce!==""?JSON.parse(ce):null}catch(on){ce=$r,Hr&&(Hr=!1,ce={error:on,text:ce})}}Hr?(i.next(new Yo({body:ce,headers:D,status:I,statusText:Z,url:we||void 0})),i.complete()):i.error(new Mr({error:ce,headers:D,status:I,statusText:Z,url:we||void 0}))}),d=this.maybePropagateTrace(D=>{let{url:I}=u(),Z=new Mr({error:D,status:s.status||0,statusText:s.statusText||"Unknown Error",url:I||void 0});i.error(Z)}),f=d;n.timeout&&(f=this.maybePropagateTrace(D=>{let{url:I}=u(),Z=new Mr({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:I||void 0});i.error(Z)}));let h=!1,g=this.maybePropagateTrace(D=>{h||(i.next(u()),h=!0);let I={type:Un.DownloadProgress,loaded:D.loaded};D.lengthComputable&&(I.total=D.total),n.responseType==="text"&&s.responseText&&(I.partialText=s.responseText),i.next(I)}),C=this.maybePropagateTrace(D=>{let I={type:Un.UploadProgress,loaded:D.loaded};D.lengthComputable&&(I.total=D.total),i.next(I)});return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",f),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",g),a!==null&&s.upload&&s.upload.addEventListener("progress",C)),s.send(a),i.next({type:Un.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",f),n.reportProgress&&(s.removeEventListener("progress",g),a!==null&&s.upload&&s.upload.removeEventListener("progress",C)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(T(jn))};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function _T(e,t){return t(e)}function MT(e,t,n){return(r,o)=>de(n,()=>t(r,i=>e(i,o)))}var ly=new E("",{factory:()=>[]}),dy=new E(""),fy=new E("",{factory:()=>!0});var bd=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=T(Cd),o},providedIn:"root"})}return e})();var Ra=(()=>{class e{backend;injector;chain=null;pendingTasks=p(po);contributeToStability=p(fy);constructor(n,r){this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(ly),...this.injector.get(dy,[])]));this.chain=r.reduceRight((o,i)=>MT(o,i,this.injector),_T)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Jn(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(T(bd),T(q))};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Td=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=T(Ra),o},providedIn:"root"})}return e})();function wd(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,credentials:e.credentials,transferCache:e.transferCache,timeout:e.timeout,keepalive:e.keepalive,priority:e.priority,cache:e.cache,mode:e.mode,redirect:e.redirect,integrity:e.integrity,referrer:e.referrer,referrerPolicy:e.referrerPolicy}}var Aa=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof _r)i=n;else{let c;o.headers instanceof en?c=o.headers:c=new en(o.headers);let u;o.params&&(o.params instanceof kt?u=o.params:u=new kt({fromObject:o.params})),i=new _r(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let s=A(i).pipe(ln(c=>this.handler.handle(c)));if(n instanceof _r||o.observe==="events")return s;let a=s.pipe(Le(c=>c instanceof Yo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(V(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new m(2806,!1);return c.body}));case"blob":return a.pipe(V(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new m(2807,!1);return c.body}));case"text":return a.pipe(V(c=>{if(c.body!==null&&typeof c.body!="string")throw new m(2808,!1);return c.body}));default:return a.pipe(V(c=>c.body))}case"response":return a;default:throw new m(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new kt().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,wd(o,r))}post(n,r,o={}){return this.request("POST",n,wd(o,r))}put(n,r,o={}){return this.request("PUT",n,wd(o,r))}static \u0275fac=function(r){return new(r||e)(T(Td))};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var NT=new E("",{factory:()=>!0}),RT="XSRF-TOKEN",AT=new E("",{factory:()=>RT}),xT="X-XSRF-TOKEN",OT=new E("",{factory:()=>xT}),kT=(()=>{class e{cookieName=p(AT);doc=p(oe);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=zo(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),hy=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=T(kT),o},providedIn:"root"})}return e})();function PT(e,t){if(!p(NT)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=p(br).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch(o){return t(e)}let n=p(hy).getToken(),r=p(OT);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function FT(...e){let t=[Aa,Ra,{provide:Td,useExisting:Ra},{provide:bd,useFactory:()=>p(TT,{optional:!0})??p(Cd)},{provide:ly,useValue:PT,multi:!0}];for(let n of e)t.push(...n.\u0275providers);return Cn(t)}var py=(()=>{class e{_doc;constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static \u0275fac=function(r){return new(r||e)(T(oe))};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var _="primary",li=Symbol("RouteTitle"),Rd=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function Vn(e){return new Rd(e)}function Sd(e,t,n){for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(o[0]===":")n[o.substring(1)]=i;else if(o!==i.path)return!1}return!0}function Iy(e,t,n){let r=n.path.split("/"),o=r.indexOf("**");if(o===-1){if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let c={},u=e.slice(0,r.length);return Sd(r,u,c)?{consumed:u,posParams:c}:null}if(o!==r.lastIndexOf("**"))return null;let i=r.slice(0,o),s=r.slice(o+1);if(i.length+s.length>e.length||n.pathMatch==="full"&&t.hasChildren()&&n.path!=="**")return null;let a={};return!Sd(i,e.slice(0,i.length),a)||!Sd(s,e.slice(e.length-s.length),a)?null:{consumed:e,posParams:a}}function La(e){return new Promise((t,n)=>{e.pipe(wt()).subscribe({next:r=>t(r),error:r=>n(r)})})}function jT(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!Et(e[n],t[n]))return!1;return!0}function Et(e,t){let n=e?Ad(e):void 0,r=t?Ad(t):void 0;if(!n||!r||n.length!=r.length)return!1;let o;for(let i=0;i<n.length;i++)if(o=n[i],!wy(e[o],t[o]))return!1;return!0}function Ad(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function wy(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let n=[...e].sort(),r=[...t].sort();return n.every((o,i)=>r[i]===o)}else return e===t}function UT(e){return e.length>0?e[e.length-1]:null}function zn(e){return ki(e)?e:Cr(e)?J(Promise.resolve(e)):A(e)}function Cy(e){return ki(e)?La(e):Promise.resolve(e)}var BT={exact:Ty,subset:Sy},by={exact:VT,subset:HT,ignored:()=>!0},Gd={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ti={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Wd(e,t,n){let r=e instanceof Se?e:t.parseUrl(e);return Fo(()=>xd(t.lastSuccessfulNavigation()?.finalUrl??new Se,r,y(y({},ti),n)))}function xd(e,t,n){return BT[n.paths](e.root,t.root,n.matrixParams)&&by[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function VT(e,t){return Et(e,t)}function Ty(e,t,n){if(!Bn(e.segments,t.segments)||!ka(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!Ty(e.children[r],t.children[r],n))return!1;return!0}function HT(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>wy(e[n],t[n]))}function Sy(e,t,n){return _y(e,t,t.segments,n)}function _y(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!Bn(o,n)||t.hasChildren()||!ka(o,n,r))}else if(e.segments.length===n.length){if(!Bn(e.segments,n)||!ka(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!Sy(e.children[o],t.children[o],r))return!1;return!0}else{let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!Bn(e.segments,o)||!ka(e.segments,o,r)||!e.children[_]?!1:_y(e.children[_],t,i,r)}}function ka(e,t,n){return t.every((r,o)=>by[n](e[o].parameters,r.parameters))}var Se=class{root;queryParams;fragment;_queryParamMap;constructor(t=new k([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Vn(this.queryParams),this._queryParamMap}toString(){return GT.serialize(this)}},k=class{segments;children;parent=null;constructor(t,n){this.segments=t,this.children=n,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Pa(this)}},tn=class{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Vn(this.parameters),this._parameterMap}toString(){return Ny(this)}};function $T(e,t){return Bn(e,t)&&e.every((n,r)=>Et(n.parameters,t[r].parameters))}function Bn(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function zT(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===_&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==_&&(n=n.concat(t(o,r)))}),n}var jr=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:()=>new nn,providedIn:"root"})}return e})(),nn=class{parse(t){let n=new kd(t);return new Se(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Qo(t.root,!0)}`,r=ZT(t.queryParams),o=typeof t.fragment=="string"?`#${WT(t.fragment)}`:"";return`${n}${r}${o}`}},GT=new nn;function Pa(e){return e.segments.map(t=>Ny(t)).join("/")}function Qo(e,t){if(!e.hasChildren())return Pa(e);if(t){let n=e.children[_]?Qo(e.children[_],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==_&&r.push(`${o}:${Qo(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=zT(e,(r,o)=>o===_?[Qo(e.children[_],!1)]:[`${o}:${Qo(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[_]!=null?`${Pa(e)}/${n[0]}`:`${Pa(e)}/(${n.join("//")})`}}function My(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function xa(e){return My(e).replace(/%3B/gi,";")}function WT(e){return encodeURI(e)}function Od(e){return My(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Fa(e){return decodeURIComponent(e)}function gy(e){return Fa(e.replace(/\+/g,"%20"))}function Ny(e){return`${Od(e.path)}${qT(e.parameters)}`}function qT(e){return Object.entries(e).map(([t,n])=>`;${Od(t)}=${Od(n)}`).join("")}function ZT(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${xa(n)}=${xa(o)}`).join("&"):`${xa(n)}=${xa(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var YT=/^[^\/()?;#]+/;function _d(e){let t=e.match(YT);return t?t[0]:""}var QT=/^[^\/()?;=#]+/;function KT(e){let t=e.match(QT);return t?t[0]:""}var JT=/^[^=?&#]+/;function XT(e){let t=e.match(JT);return t?t[0]:""}var eS=/^[^&#]+/;function tS(e){let t=e.match(eS);return t?t[0]:""}var kd=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new k([],{}):new k([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(t=0){if(t>50)throw new m(4010,!1);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 r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0,t));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1,t)),(n.length>0||Object.keys(r).length>0)&&(o[_]=new k(n,r)),o}parseSegment(){let t=_d(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new m(4009,!1);return this.capture(t),new tn(Fa(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=KT(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=_d(this.remaining);o&&(r=o,this.capture(r))}t[Fa(n)]=Fa(r)}parseQueryParam(t){let n=XT(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=tS(this.remaining);s&&(r=s,this.capture(r))}let o=gy(n),i=gy(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t,n){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let o=_d(this.remaining),i=this.remaining[o.length];if(i!=="/"&&i!==")"&&i!==";")throw new m(4010,!1);let s;o.indexOf(":")>-1?(s=o.slice(0,o.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=_);let a=this.parseChildren(n+1);r[s??_]=Object.keys(a).length===1&&a[_]?a[_]:new k([],a),this.consumeOptional("//")}return r}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new m(4011,!1)}};function Ry(e){return e.segments.length>0?new k([],{[_]:e}):e}function Ay(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=Ay(o);if(r===_&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new k(e.segments,t);return nS(n)}function nS(e){if(e.numberOfChildren===1&&e.children[_]){let t=e.children[_];return new k(e.segments.concat(t.segments),t.children)}return e}function rn(e){return e instanceof Se}function xy(e,t,n=null,r=null,o=new nn){let i=Oy(e);return ky(i,t,n,r,o)}function Oy(e){let t;function n(i){let s={};for(let c of i.children){let u=n(c);s[c.outlet]=u}let a=new k(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=Ry(r);return t??o}function ky(e,t,n,r,o){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return Md(i,i,i,n,r,o);let s=rS(t);if(s.toRoot())return Md(i,i,new k([],{}),n,r,o);let a=oS(s,i,e),c=a.processChildren?Jo(a.segmentGroup,a.index,s.commands):Fy(a.segmentGroup,a.index,s.commands);return Md(i,a.segmentGroup,c,n,r,o)}function ja(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function ni(e){return typeof e=="object"&&e!=null&&e.outlets}function my(e,t,n){e||="\u0275";let r=new Se;return r.queryParams={[e]:t},n.parse(n.serialize(r)).queryParams[e]}function Md(e,t,n,r,o,i){let s={};for(let[u,l]of Object.entries(r??{}))s[u]=Array.isArray(l)?l.map(d=>my(u,d,i)):my(u,l,i);let a;e===t?a=n:a=Py(e,t,n);let c=Ry(Ay(a));return new Se(c,s,o)}function Py(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=Py(i,t,n)}),new k(e.segments,r)}var Ua=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&ja(r[0]))throw new m(4003,!1);let o=r.find(ni);if(o&&o!==UT(r))throw new m(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function rS(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Ua(!0,0,e);let t=0,n=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new Ua(n,t,r)}var Ar=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function oS(e,t,n){if(e.isAbsolute)return new Ar(t,!0,0);if(!n)return new Ar(t,!1,NaN);if(n.parent===null)return new Ar(n,!0,0);let r=ja(e.commands[0])?0:1,o=n.segments.length-1+r;return iS(n,o,e.numberOfDoubleDots)}function iS(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new m(4005,!1);o=r.segments.length}return new Ar(r,!1,o-i)}function sS(e){return ni(e[0])?e[0].outlets:{[_]:e}}function Fy(e,t,n){if(e??=new k([],{}),e.segments.length===0&&e.hasChildren())return Jo(e,t,n);let r=aS(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let i=new k(e.segments.slice(0,r.pathIndex),{});return i.children[_]=new k(e.segments.slice(r.pathIndex),e.children),Jo(i,0,o)}else return r.match&&o.length===0?new k(e.segments,{}):r.match&&!e.hasChildren()?Pd(e,t,n):r.match?Jo(e,0,o):Pd(e,t,n)}function Jo(e,t,n){if(n.length===0)return new k(e.segments,{});{let r=sS(n),o={};if(Object.keys(r).some(i=>i!==_)&&e.children[_]&&e.numberOfChildren===1&&e.children[_].segments.length===0){let i=Jo(e.children[_],t,n);return new k(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Fy(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new k(e.segments,o)}}function aS(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=n.length)return i;let s=e.segments[o],a=n[r];if(ni(a))break;let c=`${a}`,u=r<n.length-1?n[r+1]:null;if(o>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!vy(c,u,s))return i;r+=2}else{if(!vy(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function Pd(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o<n.length;){let i=n[o];if(ni(i)){let c=cS(i.outlets);return new k(r,c)}if(o===0&&ja(n[0])){let c=e.segments[t];r.push(new tn(c.path,yy(n[0]))),o++;continue}let s=ni(i)?i.outlets[_]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&ja(a)?(r.push(new tn(s,yy(a))),o+=2):(r.push(new tn(s,{})),o++)}return new k(r,{})}function cS(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Pd(new k([],{}),0,r))}),t}function yy(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function vy(e,t,n){return e==n.path&&Et(t,n.parameters)}var Xo="imperative",fe=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(fe||{}),Fe=class{id;url;constructor(t,n){this.id=t,this.url=n}},Hn=class extends Fe{type=fe.NavigationStart;navigationTrigger;restoredState;constructor(t,n,r="imperative",o=null){super(t,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},it=class extends Fe{urlAfterRedirects;type=fe.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Ie=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(Ie||{}),ri=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(ri||{}),ze=class extends Fe{reason;code;type=fe.NavigationCancel;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Ly(e){return e instanceof ze&&(e.code===Ie.Redirect||e.code===Ie.SupersededByNewNavigation)}var Ft=class extends Fe{reason;code;type=fe.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}},$n=class extends Fe{error;target;type=fe.NavigationError;constructor(t,n,r,o){super(t,n),this.error=r,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},oi=class extends Fe{urlAfterRedirects;state;type=fe.RoutesRecognized;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ba=class extends Fe{urlAfterRedirects;state;type=fe.GuardsCheckStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Va=class extends Fe{urlAfterRedirects;state;shouldActivate;type=fe.GuardsCheckEnd;constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ha=class extends Fe{urlAfterRedirects;state;type=fe.ResolveStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$a=class extends Fe{urlAfterRedirects;state;type=fe.ResolveEnd;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},za=class{route;type=fe.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ga=class{route;type=fe.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Wa=class{snapshot;type=fe.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},qa=class{snapshot;type=fe.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Za=class{snapshot;type=fe.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ya=class{snapshot;type=fe.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Or=class{},ii=class{},kr=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function uS(e){return!(e instanceof Or)&&!(e instanceof kr)&&!(e instanceof ii)}var Qa=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new Ur(this.rootInjector)}},Ur=(()=>{class e{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Qa(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(T(q))};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ka=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=Fd(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Fd(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Ld(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Ld(t,this._root).map(n=>n.value)}};function Fd(e,t){if(e===t.value)return t;for(let n of t.children){let r=Fd(e,n);if(r)return r}return null}function Ld(e,t){if(e===t.value)return[t];for(let n of t.children){let r=Ld(e,n);if(r.length)return r.unshift(t),r}return[]}var Pe=class{value;children;constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Rr(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var si=class extends Ka{snapshot;constructor(t,n){super(t),this.snapshot=n,Zd(this,t)}toString(){return this.snapshot.toString()}};function jy(e,t){let n=lS(e,t),r=new he([new tn("",{})]),o=new he({}),i=new he({}),s=new he({}),a=new he(""),c=new Lt(r,o,s,a,i,_,e,n.root);return c.snapshot=n.root,new si(new Pe(c,[]),n)}function lS(e,t){let n={},r={},o={},s=new Pr([],n,o,"",r,_,e,null,{},t);return new ai("",new Pe(s,[]))}var Lt=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(V(u=>u[li]))??A(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(V(t=>Vn(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(V(t=>Vn(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function qd(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:y(y({},t.params),e.params),data:y(y({},t.data),e.data),resolve:y(y(y(y({},e.data),t.data),o?.data),e._resolvedData)}:r={params:y({},e.params),data:y({},e.data),resolve:y(y({},e.data),e._resolvedData??{})},o&&By(o)&&(r.resolve[li]=o.title),r}var Pr=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[li]}constructor(t,n,r,o,i,s,a,c,u,l){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u,this._environmentInjector=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Vn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Vn(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},ai=class extends Ka{url;constructor(t,n){super(n),this.url=t,Zd(this,n)}toString(){return Uy(this._root)}};function Zd(e,t){t.value._routerState=e,t.children.forEach(n=>Zd(e,n))}function Uy(e){let t=e.children.length>0?` { ${e.children.map(Uy).join(", ")} } `:"";return`${e.value}${t}`}function Nd(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Et(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Et(t.params,n.params)||e.paramsSubject.next(n.params),jT(t.url,n.url)||e.urlSubject.next(n.url),Et(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function jd(e,t){let n=Et(e.params,t.params)&&$T(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||jd(e.parent,t.parent))}function By(e){return typeof e.title=="string"||e.title===null}var Vy=new E(""),Yd=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=_;activateEvents=new De;deactivateEvents=new De;attachEvents=new De;detachEvents=new De;routerOutletData=Im();parentContexts=p(Ur);location=p(vt);changeDetector=p(jo);inputBinder=p(tc,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new m(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new m(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new m(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new m(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Ud(n,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=nt({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Jt]})}return e})(),Ud=class{route;childContexts;parent;outletData;constructor(t,n,r,o){this.route=t,this.childContexts=n,this.parent=r,this.outletData=o}get(t,n){return t===Lt?this.route:t===Ur?this.childContexts:t===Vy?this.outletData:this.parent.get(t,n)}},tc=new E("");var Qd=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Vl({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&sa(0,"router-outlet")},dependencies:[Yd],encapsulation:2})}return e})();function Kd(e){let t=e.children&&e.children.map(Kd),n=t?U(y({},e),{children:t}):y({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==_&&(n.component=Qd),n}function dS(e,t,n){let r=ci(e,t._root,n?n._root:void 0);return new si(r,t)}function ci(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=fS(e,t,n);return new Pe(r,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ci(e,a)),s}}let r=hS(t.value),o=t.children.map(i=>ci(e,i));return new Pe(r,o)}}function fS(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return ci(e,r,o);return ci(e,r)})}function hS(e){return new Lt(new he(e.url),new he(e.params),new he(e.queryParams),new he(e.fragment),new he(e.data),e.outlet,e.component,e)}var Fr=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},Hy="ngNavigationCancelingError";function Ja(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=rn(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=$y(!1,Ie.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function $y(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[Hy]=!0,n.cancellationCode=t,n}function pS(e){return zy(e)&&rn(e.url)}function zy(e){return!!e&&e[Hy]}var Bd=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Nd(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=Rr(n);t.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Rr(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Rr(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let o=Rr(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Ya(i.value.snapshot))}),t.children.length&&this.forwardEvent(new qa(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(Nd(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.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),Nd(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},Xa=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},xr=class{component;route;constructor(t,n){this.component=t,this.route=n}};function gS(e,t,n){let r=e._root,o=t?t._root:null;return Ko(r,o,n,[r.value])}function mS(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Br(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Bc(e)?e:t.get(e):r}function Ko(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Rr(t);return e.children.forEach(s=>{yS(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>ei(a,n.getContext(s),o)),o}function yS(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=vS(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Xa(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Ko(e,t,a?a.children:null,r,o):Ko(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new xr(a.outlet.component,s))}else s&&ei(t,a,o),o.canActivateChecks.push(new Xa(r)),i.component?Ko(e,null,a?a.children:null,r,o):Ko(e,null,n,r,o);return o}function vS(e,t,n){if(typeof n=="function")return de(t._environmentInjector,()=>n(e,t));switch(n){case"pathParamsChange":return!Bn(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Bn(e.url,t.url)||!Et(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!jd(e,t)||!Et(e.queryParams,t.queryParams);default:return!jd(e,t)}}function ei(e,t,n){let r=Rr(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?ei(s,t.children.getContext(i),n):ei(s,null,n):ei(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new xr(t.outlet.component,o)):n.canDeactivateChecks.push(new xr(null,o)):n.canDeactivateChecks.push(new xr(null,o))}function di(e){return typeof e=="function"}function DS(e){return typeof e=="boolean"}function ES(e){return e&&di(e.canLoad)}function IS(e){return e&&di(e.canActivate)}function wS(e){return e&&di(e.canActivateChild)}function CS(e){return e&&di(e.canDeactivate)}function bS(e){return e&&di(e.canMatch)}function Gy(e){return e instanceof un||e?.name==="EmptyError"}var Oa=Symbol("INITIAL_VALUE");function Lr(){return Re(e=>gc(e.map(t=>t.pipe(It(1),mc(Oa)))).pipe(V(t=>{for(let n of t)if(n!==!0){if(n===Oa)return Oa;if(n===!1||TS(n))return n}return!0}),Le(t=>t!==Oa),It(1)))}function TS(e){return rn(e)||e instanceof Fr}function Wy(e){return e.aborted?A(void 0).pipe(It(1)):new x(t=>{let n=()=>{t.next(),t.complete()};return e.addEventListener("abort",n),()=>e.removeEventListener("abort",n)})}function qy(e){return qr(Wy(e))}function SS(e){return ye(t=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:i}}=t;return i.length===0&&o.length===0?A(U(y({},t),{guardsResult:!0})):_S(i,n,r).pipe(ye(s=>s&&DS(s)?MS(n,o,e):A(s)),V(s=>U(y({},t),{guardsResult:s})))})}function _S(e,t,n){return J(e).pipe(ye(r=>OS(r.component,r.route,n,t)),wt(r=>r!==!0,!0))}function MS(e,t,n){return J(t).pipe(ln(r=>er(RS(r.route.parent,n),NS(r.route,n),xS(e,r.path),AS(e,r.route))),wt(r=>r!==!0,!0))}function NS(e,t){return e!==null&&t&&t(new Za(e)),A(!0)}function RS(e,t){return e!==null&&t&&t(new Wa(e)),A(!0)}function AS(e,t){let n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||n.length===0)return A(!0);let r=n.map(o=>Wr(()=>{let i=t._environmentInjector,s=Br(o,i),a=IS(s)?s.canActivate(t,e):de(i,()=>s(t,e));return zn(a).pipe(wt())}));return A(r).pipe(Lr())}function xS(e,t){let n=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(i=>mS(i)).filter(i=>i!==null).map(i=>Wr(()=>{let s=i.guards.map(a=>{let c=i.node._environmentInjector,u=Br(a,c),l=wS(u)?u.canActivateChild(n,e):de(c,()=>u(n,e));return zn(l).pipe(wt())});return A(s).pipe(Lr())}));return A(o).pipe(Lr())}function OS(e,t,n,r){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return A(!0);let i=o.map(s=>{let a=t._environmentInjector,c=Br(s,a),u=CS(c)?c.canDeactivate(e,t,n,r):de(a,()=>c(e,t,n,r));return zn(u).pipe(wt())});return A(i).pipe(Lr())}function kS(e,t,n,r,o){let i=t.canLoad;if(i===void 0||i.length===0)return A(!0);let s=i.map(a=>{let c=Br(a,e),u=ES(c)?c.canLoad(t,n):de(e,()=>c(t,n)),l=zn(u);return o?l.pipe(qy(o)):l});return A(s).pipe(Lr(),Zy(r))}function Zy(e){return dc(je(t=>{if(typeof t!="boolean")throw Ja(e,t)}),V(t=>t===!0))}function PS(e,t,n,r,o,i){let s=t.canMatch;if(!s||s.length===0)return A(!0);let a=s.map(c=>{let u=Br(c,e),l=bS(u)?u.canMatch(t,n,o):de(e,()=>u(t,n,o));return zn(l).pipe(qy(i))});return A(a).pipe(Lr(),Zy(r))}var Pt=class e extends Error{segmentGroup;constructor(t){super(),this.segmentGroup=t||null,Object.setPrototypeOf(this,e.prototype)}},ui=class e extends Error{urlTree;constructor(t){super(),this.urlTree=t,Object.setPrototypeOf(this,e.prototype)}};function FS(e){throw new m(4e3,!1)}function LS(e){throw $y(!1,Ie.GuardRejected)}var Vd=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){return $(this,null,function*(){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return r;if(o.numberOfChildren>1||!o.children[_])throw FS(`${t.redirectTo}`);o=o.children[_]}})}applyRedirectCommands(t,n,r,o,i){return $(this,null,function*(){let s=yield jS(n,o,i);if(s instanceof Se)throw new ui(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),t,r);if(s[0]==="/")throw new ui(a);return a})}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new Se(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o)}),new k(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new m(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}};function jS(e,t,n){if(typeof e=="string")return Promise.resolve(e);let r=e;return La(zn(de(n,()=>r(t))))}function US(e,t){return e.providers&&!e._injector&&(e._injector=Oo(e.providers,t,`Route: ${e.path}`)),e._injector??t}function ot(e){return e.outlet||_}function BS(e,t){let n=e.filter(r=>ot(r)===t);return n.push(...e.filter(r=>ot(r)!==t)),n}var Hd={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Yy(e){return{routeConfig:e.routeConfig,url:e.url,params:e.params,queryParams:e.queryParams,fragment:e.fragment,data:e.data,outlet:e.outlet,title:e.title,paramMap:e.paramMap,queryParamMap:e.queryParamMap}}function VS(e,t,n,r,o,i,s){let a=Qy(e,t,n);if(!a.matched)return A(a);let c=Yy(i(a));return r=US(t,r),PS(r,t,n,o,c,s).pipe(V(u=>u===!0?a:y({},Hd)))}function Qy(e,t,n){if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?y({},Hd):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||Iy)(n,e,t);if(!o)return y({},Hd);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?y(y({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Dy(e,t,n,r,o){return n.length>0&&zS(e,n,r,o)?{segmentGroup:new k(t,$S(r,new k(n,e.children))),slicedSegments:[]}:n.length===0&&GS(e,n,r)?{segmentGroup:new k(e.segments,HS(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new k(e.segments,e.children),slicedSegments:n}}function HS(e,t,n,r){let o={};for(let i of n)if(nc(e,t,i)&&!r[ot(i)]){let s=new k([],{});o[ot(i)]=s}return y(y({},r),o)}function $S(e,t){let n={};n[_]=t;for(let r of e)if(r.path===""&&ot(r)!==_){let o=new k([],{});n[ot(r)]=o}return n}function zS(e,t,n,r){return n.some(o=>!nc(e,t,o)||!(ot(o)!==_)?!1:!(r!==void 0&&ot(o)===r))}function GS(e,t,n){return n.some(r=>nc(e,t,r))}function nc(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function WS(e,t,n){return t.length===0&&!e.children[n]}var $d=class{};function qS(e,t,n,r,o,i,s="emptyOnly",a){return $(this,null,function*(){return new zd(e,t,n,r,o,s,i,a).recognize()})}var ZS=31,zd=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,n,r,o,i,s,a,c){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new Vd(this.urlSerializer,this.urlTree)}noMatchError(t){return new m(4002,`'${t.segmentGroup}'`)}recognize(){return $(this,null,function*(){let t=Dy(this.urlTree.root,[],[],this.config).segmentGroup,{children:n,rootSnapshot:r}=yield this.match(t),o=new Pe(r,n),i=new ai("",o),s=xy(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}})}match(t){return $(this,null,function*(){let n=new Pr([],Object.freeze({}),Object.freeze(y({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),_,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,t,_,n),rootSnapshot:n}}catch(r){if(r instanceof ui)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Pt?this.noMatchError(r):r}})}processSegmentGroup(t,n,r,o,i){return $(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(t,n,r,i);let s=yield this.processSegment(t,n,r,r.segments,o,!0,i);return s instanceof Pe?[s]:[]})}processChildren(t,n,r,o){return $(this,null,function*(){let i=[];for(let c of Object.keys(r.children))c==="primary"?i.unshift(c):i.push(c);let s=[];for(let c of i){let u=r.children[c],l=BS(n,c),d=yield this.processSegmentGroup(t,l,u,c,o);s.push(...d)}let a=Ky(s);return YS(a),a})}processSegment(t,n,r,o,i,s,a){return $(this,null,function*(){for(let c of n)try{return yield this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a)}catch(u){if(u instanceof Pt||Gy(u))continue;throw u}if(WS(r,o,i))return new $d;throw new Pt(r)})}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return $(this,null,function*(){if(ot(r)!==s&&(s===_||!nc(o,i,r)))throw new Pt(o);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(t,o,r,i,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c);throw new Pt(o)})}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){return $(this,null,function*(){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:f}=Qy(n,o,i);if(!c)throw new Pt(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>ZS&&(this.allowRedirects=!1));let h=this.createSnapshot(t,o,i,u,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let g=yield this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,Yy(h),t),C=yield this.applyRedirects.lineralizeSegments(o,g);return this.processSegment(t,r,n,C.concat(f),s,!1,a)})}createSnapshot(t,n,r,o,i){let s=new Pr(r,o,Object.freeze(y({},this.urlTree.queryParams)),this.urlTree.fragment,KS(n),ot(n),n.component??n._loadedComponent??null,n,JS(n),t),a=qd(s,i,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}matchSegmentAgainstRoute(t,n,r,o,i,s){return $(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=we=>this.createSnapshot(t,r,we.consumedSegments,we.parameters,s),c=yield La(VS(n,r,o,t,this.urlSerializer,a,this.abortSignal));if(r.path==="**"&&(n.children={}),!c?.matched)throw new Pt(n);t=r._injector??t;let{routes:u}=yield this.getChildConfig(t,r,o),l=r._loadedInjector??t,{parameters:d,consumedSegments:f,remainingSegments:h}=c,g=this.createSnapshot(t,r,f,d,s),{segmentGroup:C,slicedSegments:D}=Dy(n,f,h,u,i);if(D.length===0&&C.hasChildren()){let we=yield this.processChildren(l,u,C,g);return new Pe(g,we)}if(u.length===0&&D.length===0)return new Pe(g,[]);let I=ot(r)===i,Z=yield this.processSegment(l,u,C,D,I?_:i,!0,g);return new Pe(g,Z instanceof Pe?[Z]:[])})}getChildConfig(t,n,r){return $(this,null,function*(){if(n.children)return{routes:n.children,injector:t};if(n.loadChildren){if(n._loadedRoutes!==void 0){let i=n._loadedNgModuleFactory;return i&&!n._loadedInjector&&(n._loadedInjector=i.create(t).injector),{routes:n._loadedRoutes,injector:n._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield La(kS(t,n,r,this.urlSerializer,this.abortSignal))){let i=yield this.configLoader.loadChildren(t,n);return n._loadedRoutes=i.routes,n._loadedInjector=i.injector,n._loadedNgModuleFactory=i.factory,i}throw LS(n)}return{routes:[],injector:t}})}};function YS(e){e.sort((t,n)=>t.value.outlet===_?-1:n.value.outlet===_?1:t.value.outlet.localeCompare(n.value.outlet))}function QS(e){let t=e.value.routeConfig;return t&&t.path===""}function Ky(e){let t=[],n=new Set;for(let r of e){if(!QS(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r)}for(let r of n){let o=Ky(r.children);t.push(new Pe(r.value,o))}return t.filter(r=>!n.has(r))}function KS(e){return e.data||{}}function JS(e){return e.resolve||{}}function XS(e,t,n,r,o,i,s){return ye(a=>$(null,null,function*(){let{state:c,tree:u}=yield qS(e,t,n,r,a.extractedUrl,o,i,s);return U(y({},a),{targetSnapshot:c,urlAfterRedirects:u})}))}function e_(e){return ye(t=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=t;if(!r.length)return A(t);let o=new Set(r.map(a=>a.route)),i=new Set;for(let a of o)if(!i.has(a))for(let c of Jy(a))i.add(c);let s=0;return J(i).pipe(ln(a=>o.has(a)?t_(a,n,e):(a.data=qd(a,a.parent,e).resolve,A(void 0))),je(()=>s++),Pi(1),ye(a=>s===i.size?A(t):pe))})}function Jy(e){let t=e.children.map(n=>Jy(n)).flat();return[e,...t]}function t_(e,t,n){let r=e.routeConfig,o=e._resolve;return r?.title!==void 0&&!By(r)&&(o[li]=r.title),Wr(()=>(e.data=qd(e,e.parent,n).resolve,n_(o,e,t).pipe(V(i=>(e._resolvedData=i,e.data=y(y({},e.data),i),null)))))}function n_(e,t,n){let r=Ad(e);if(r.length===0)return A({});let o={};return J(r).pipe(ye(i=>r_(e[i],t,n).pipe(wt(),je(s=>{if(s instanceof Fr)throw Ja(new nn,s);o[i]=s}))),Pi(1),V(()=>o),Kn(i=>Gy(i)?pe:pc(i)))}function r_(e,t,n){let r=t._environmentInjector,o=Br(e,r),i=o.resolve?o.resolve(t,n):de(r,()=>o(t,n));return zn(i)}function Ey(e){return Re(t=>{let n=e(t);return n?J(n).pipe(V(()=>t)):A(t)})}var Jd=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===_);return r}getResolvedTitleForRoute(n){return n.data[li]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:()=>p(Xy),providedIn:"root"})}return e})(),Xy=(()=>{class e extends Jd{title;constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(T(py))};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Vr=new E("",{factory:()=>({})}),fi=new E(""),ev=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(nd);loadComponent(n,r){return $(this,null,function*(){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let o=$(this,null,function*(){try{let i=yield Cy(de(n,()=>r.loadComponent())),s=yield rv(nv(i));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r)}});return this.componentLoaders.set(r,o),o})}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=$(this,null,function*(){try{let i=yield tv(r,this.compiler,n,this.onLoadEndListener);return r._loadedRoutes=i.routes,r._loadedInjector=i.injector,r._loadedNgModuleFactory=i.factory,i}finally{this.childrenLoaders.delete(r)}});return this.childrenLoaders.set(r,o),o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function tv(e,t,n,r){return $(this,null,function*(){let o=yield Cy(de(n,()=>e.loadChildren())),i=yield rv(nv(o)),s;i instanceof ra||Array.isArray(i)?s=i:s=yield t.compileModuleAsync(i),r&&r(e);let a,c,u=!1,l;return Array.isArray(s)?(c=s,u=!0):(a=s.create(n).injector,l=s,c=a.get(fi,[],{optional:!0,self:!0}).flat()),{routes:c.map(Kd),injector:a,factory:l}})}function o_(e){return e&&typeof e=="object"&&"default"in e}function nv(e){return o_(e)?e.default:e}function rv(e){return $(this,null,function*(){return e})}var rc=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:()=>p(i_),providedIn:"root"})}return e})(),i_=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ov=new E("");var s_=()=>{},iv=new E(""),sv=(()=>{class e{currentNavigation=W(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=W(null);events=new ue;transitionAbortWithErrorSubject=new ue;configLoader=p(ev);environmentInjector=p(q);destroyRef=p(ft);urlSerializer=p(jr);rootContexts=p(Ur);location=p(Sr);inputBindingEnabled=p(tc,{optional:!0})!==null;titleStrategy=p(Jd);options=p(Vr,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(rc);createViewTransition=p(ov,{optional:!0});navigationErrorHandler=p(iv,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>A(void 0);rootComponentType=null;destroyed=!1;constructor(){let n=o=>this.events.next(new za(o)),r=o=>this.events.next(new Ga(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;K(()=>{this.transitions?.next(U(y({},n),{extractedUrl:this.urlHandlingStrategy.extract(n.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(n){return this.transitions=new he(null),this.transitions.pipe(Le(r=>r!==null),Re(r=>{let o=!1,i=new AbortController,s=()=>!o&&this.currentTransition?.id===r.id;return A(r).pipe(Re(a=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",Ie.SupersededByNewNavigation),pe;this.currentTransition=r;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:c?U(y({},c),{previousNavigation:null}):null,abort:()=>i.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=a.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&l!=="reload")return this.events.next(new Ft(a.id,this.urlSerializer.serialize(a.rawUrl),"",ri.IgnoredSameUrlNavigation)),a.resolve(!1),pe;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return A(a).pipe(Re(d=>(this.events.next(new Hn(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),d.id!==this.navigationId?pe:Promise.resolve(d))),XS(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy,i.signal),je(d=>{r.targetSnapshot=d.targetSnapshot,r.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation.update(f=>(f.finalUrl=d.urlAfterRedirects,f)),this.events.next(new ii)}),Re(d=>J(r.routesRecognizeHandler.deferredHandle??A(void 0)).pipe(V(()=>d))),je(()=>{let d=new oi(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(d)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:d,extractedUrl:f,source:h,restoredState:g,extras:C}=a,D=new Hn(d,this.urlSerializer.serialize(f),h,g);this.events.next(D);let I=jy(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=U(y({},a),{targetSnapshot:I,urlAfterRedirects:f,extras:U(y({},C),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(Z=>(Z.finalUrl=f,Z)),A(r)}else return this.events.next(new Ft(a.id,this.urlSerializer.serialize(a.extractedUrl),"",ri.IgnoredByUrlHandlingStrategy)),a.resolve(!1),pe}),V(a=>{let c=new Ba(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=r=U(y({},a),{guards:gS(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r}),SS(a=>this.events.next(a)),Re(a=>{if(r.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Ja(this.urlSerializer,a.guardsResult);let c=new Va(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!s())return pe;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",Ie.GuardRejected),pe;if(a.guards.canActivateChecks.length===0)return A(a);let u=new Ha(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(u),!s())return pe;let l=!1;return A(a).pipe(e_(this.paramsInheritanceStrategy),je({next:()=>{l=!0;let d=new $a(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(d)},complete:()=>{l||this.cancelNavigationTransition(a,"",Ie.NoDataFromResolver)}}))}),Ey(a=>{let c=l=>{let d=[];if(l.routeConfig?._loadedComponent)l.component=l.routeConfig?._loadedComponent;else if(l.routeConfig?.loadComponent){let f=l._environmentInjector;d.push(this.configLoader.loadComponent(f,l.routeConfig).then(h=>{l.component=h}))}for(let f of l.children)d.push(...c(f));return d},u=c(a.targetSnapshot.root);return u.length===0?A(a):J(Promise.all(u).then(()=>a))}),Ey(()=>this.afterPreactivation()),Re(()=>{let{currentSnapshot:a,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return u?J(u).pipe(V(()=>r)):A(r)}),It(1),Re(a=>{let c=dS(n.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=r=a=U(y({},a),{targetRouterState:c}),this.currentNavigation.update(l=>(l.targetRouterState=c,l)),this.events.next(new Or);let u=r.beforeActivateHandler.deferredHandle;return u?J(u.then(()=>a)):A(a)}),je(a=>{new Bd(n.routeReuseStrategy,r.targetRouterState,r.currentRouterState,c=>this.events.next(c),this.inputBindingEnabled).activate(this.rootContexts),s()&&(o=!0,this.currentNavigation.update(c=>(c.abort=s_,c)),this.lastSuccessfulNavigation.set(K(this.currentNavigation)),this.events.next(new it(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),qr(Wy(i.signal).pipe(Le(()=>!o&&!r.targetRouterState),je(()=>{this.cancelNavigationTransition(r,i.signal.reason+"",Ie.Aborted)}))),je({complete:()=>{o=!0}}),qr(this.transitionAbortWithErrorSubject.pipe(je(a=>{throw a}))),Jn(()=>{i.abort(),o||this.cancelNavigationTransition(r,"",Ie.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Kn(a=>{if(o=!0,this.destroyed)return r.resolve(!1),pe;if(zy(a))this.events.next(new ze(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode)),pS(a)?this.events.next(new kr(a.url,a.navigationBehaviorOptions)):r.resolve(!1);else{let c=new $n(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);try{let u=de(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof Fr){let{message:l,cancellationCode:d}=Ja(this.urlSerializer,u);this.events.next(new ze(r.id,this.urlSerializer.serialize(r.extractedUrl),l,d)),this.events.next(new kr(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(u){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(u)}}return pe}))}))}cancelNavigationTransition(n,r,o){let i=new ze(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=K(this.currentNavigation),o=r?.targetBrowserUrl??r?.extractedUrl;return n.toString()!==o?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function a_(e){return e!==Xo}var av=new E("");var cv=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:()=>p(c_),providedIn:"root"})}return e})(),ec=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}shouldDestroyInjector(t){return!0}},c_=(()=>{class e extends ec{static \u0275fac=(()=>{let n;return function(o){return(n||(n=_o(e)))(o||e)}})();static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),oc=(()=>{class e{urlSerializer=p(jr);options=p(Vr,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(Sr);urlHandlingStrategy=p(rc);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Se;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:n,initialUrl:r,targetBrowserUrl:o}){let i=n!==void 0?this.urlHandlingStrategy.merge(n,r):r,s=o??i;return s instanceof Se?this.urlSerializer.serialize(s):s}routerUrlState(n){return n?.targetBrowserUrl===void 0||n?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(n.finalUrl)}}commitTransition({targetRouterState:n,finalUrl:r,initialUrl:o}){r&&n?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,o),this.routerState=n):this.rawUrlTree=o}routerState=jy(null,p(q));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:()=>p(u_),providedIn:"root"})}return e})(),u_=(()=>{class e extends oc{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{n(r.url,r.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(n,r){n instanceof Hn?this.updateStateMemento():n instanceof Ft?this.commitTransition(r):n instanceof oi?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof Or?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof ze&&!Ly(n)?this.restoreHistory(r):n instanceof $n?this.restoreHistory(r,!0):n instanceof it&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let{extras:o,id:i}=r,{replaceUrl:s,state:a}=o;if(this.location.isCurrentPathEqualTo(n)||s){let c=this.browserPageId,u=y(y({},a),this.generateNgRouterState(i,c,r));this.location.replaceState(n,"",u)}else{let c=y(y({},a),this.generateNgRouterState(i,this.browserPageId+1,r));this.location.go(n,"",c)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.getCurrentUrlTree()===n.finalUrl&&i===0&&(this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:n}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r,o){return this.canceledNavigationResolution==="computed"?y({navigationId:n,\u0275routerPageId:r},this.routerUrlState(o)):y({navigationId:n},this.routerUrlState(o))}static \u0275fac=(()=>{let n;return function(o){return(n||(n=_o(e)))(o||e)}})();static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Xd(e,t){e.events.pipe(Le(n=>n instanceof it||n instanceof ze||n instanceof $n||n instanceof Ft),V(n=>n instanceof it||n instanceof Ft?0:(n instanceof ze?n.code===Ie.Redirect||n.code===Ie.SupersededByNewNavigation:!1)?2:1),Le(n=>n!==2),It(1)).subscribe(()=>{t()})}var Gn=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p($l);stateManager=p(oc);options=p(Vr,{optional:!0})||{};pendingTasks=p(ht);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(sv);urlSerializer=p(jr);location=p(Sr);urlHandlingStrategy=p(rc);injector=p(q);_events=new ue;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(cv);injectorCleanup=p(av,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(fi,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(tc,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:n=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new se;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=K(this.navigationTransitions.currentNavigation);if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof ze&&r.code!==Ie.Redirect&&r.code!==Ie.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof it)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof kr){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=y({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||a_(o.source)},s);this.scheduleNavigation(a,Xo,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}uS(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Xo,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r,o,i)=>{this.navigateToSyncWithBrowser(n,o,r,i)})}navigateToSyncWithBrowser(n,r,o,i){let s=o?.navigationId?o:null,a=o?.\u0275routerUrl??n;if(o?.\u0275routerUrl&&(i=U(y({},i),{browserUrl:n})),o){let u=y({},o);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(i.state=u)}let c=this.parseUrl(a);this.scheduleNavigation(c,r,s,i).catch(u=>{this.disposed||this.injector.get(Oe)(u)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return K(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Kd),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=y(y({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let f=o?o.snapshot:this.routerState.snapshot.root;d=Oy(f)}catch(f){(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return ky(d,n,l,u??null,this.urlSerializer)}navigateByUrl(n,r={skipLocationChange:!1}){let o=rn(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Xo,null,r)}navigate(n,r={skipLocationChange:!1}){return l_(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch(r){return this.console.warn(Vt(4018,!1)),this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=y({},Gd):r===!1?o=y({},ti):o=y(y({},ti),r),rn(n))return xd(this.currentUrlTree,n,o);let i=this.parseUrl(n);return xd(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((d,f)=>{a=d,c=f});let l=this.pendingTasks.add();return Xd(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function l_(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new m(4008,!1)}var f_=(()=>{class e{router=p(Gn);stateManager=p(oc);fragment=W("");queryParams=W({});path=W("");serializer=p(jr);constructor(){this.updateState(),this.router.events?.subscribe(n=>{n instanceof it&&this.updateState()})}updateState(){let{fragment:n,root:r,queryParams:o}=this.stateManager.getCurrentUrlTree();this.fragment.set(n),this.queryParams.set(o),this.path.set(this.serializer.serialize(new Se(r)))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ic=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=p(new la("href"),{optional:!0});reactiveHref=rd(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return K(this.reactiveHref)}set href(n){this.reactiveHref.set(n)}set target(n){this._target.set(n)}get target(){return K(this._target)}_target=W(void 0);set queryParams(n){this._queryParams.set(n)}get queryParams(){return K(this._queryParams)}_queryParams=W(void 0,{equal:()=>!1});set fragment(n){this._fragment.set(n)}get fragment(){return K(this._fragment)}_fragment=W(void 0);set queryParamsHandling(n){this._queryParamsHandling.set(n)}get queryParamsHandling(){return K(this._queryParamsHandling)}_queryParamsHandling=W(void 0);set state(n){this._state.set(n)}get state(){return K(this._state)}_state=W(void 0,{equal:()=>!1});set info(n){this._info.set(n)}get info(){return K(this._info)}_info=W(void 0,{equal:()=>!1});set relativeTo(n){this._relativeTo.set(n)}get relativeTo(){return K(this._relativeTo)}_relativeTo=W(void 0);set preserveFragment(n){this._preserveFragment.set(n)}get preserveFragment(){return K(this._preserveFragment)}_preserveFragment=W(!1);set skipLocationChange(n){this._skipLocationChange.set(n)}get skipLocationChange(){return K(this._skipLocationChange)}_skipLocationChange=W(!1);set replaceUrl(n){this._replaceUrl.set(n)}get replaceUrl(){return K(this._replaceUrl)}_replaceUrl=W(!1);isAnchorElement;onChanges=new ue;applicationErrorHandler=p(Oe);options=p(Vr,{optional:!0});reactiveRouterState=p(f_);constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.onChanges.next(this)}routerLinkInput=W(null);set routerLink(n){n==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(rn(n)?this.routerLinkInput.set(n):this.routerLinkInput.set(Array.isArray(n)?n:[n]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,r,o,i,s){let a=this._urlTree();if(a===null||this.isAnchorElement&&(n!==0||r||o||i||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(n,r){let o=this.renderer,i=this.el.nativeElement;r!==null?o.setAttribute(i,n,r):o.removeAttribute(i,n)}_urlTree=Fo(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let n=o=>o==="preserve"||o==="merge";(n(this._queryParamsHandling())||n(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:rn(r)?r:this.router.createUrlTree(r,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(n,r)=>this.computeHref(n)===this.computeHref(r)});get urlTree(){return K(this._urlTree)}computeHref(n){return n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n))??"":null}static \u0275fac=function(r){return new(r||e)(H(Gn),H(Lt),Mo("tabindex"),H(wr),H(mt),H(Tr))};static \u0275dir=nt({type:e,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,o){r&1&&aa("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&ia("href",o.reactiveHref(),Il)("target",o._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",fa],skipLocationChange:[2,"skipLocationChange","skipLocationChange",fa],replaceUrl:[2,"replaceUrl","replaceUrl",fa],routerLink:"routerLink"},features:[Jt]})}return e})(),h_=(()=>{class e{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new De;link=p(ic,{optional:!0});constructor(n,r,o,i){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.routerEventsSubscription=n.events.subscribe(s=>{s instanceof it&&this.update()})}ngAfterContentInit(){A(this.links.changes,A(null)).pipe(Xn()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=J(n).pipe(Xn()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){let r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&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!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let r=p_(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??!1?y({},Gd):y({},ti);return o=>{let i=o.urlTree;return i?K(Wd(i,n,r)):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}static \u0275fac=function(r){return new(r||e)(H(Gn),H(mt),H(wr),H(jo))};static \u0275dir=nt({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,i){if(r&1&&ca(i,ic,5),r&2){let s;Xl(s=ed())&&(o.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Jt]})}return e})();function p_(e){let t=e;return!!(t.paths||t.matrixParams||t.queryParams||t.fragment)}var g_=new E("");function m_(e,...t){return Cn([{provide:fi,multi:!0,useValue:e},[],{provide:Lt,useFactory:y_},{provide:oa,multi:!0,useFactory:v_},t.map(n=>n.\u0275providers)])}function y_(){return p(Gn).routerState.root}function v_(){let e=p(Me);return t=>{let n=e.get(Ln);if(t!==n.components[0])return;let r=e.get(Gn),o=e.get(D_);e.get(E_)===1&&r.initialNavigation(),e.get(I_,null,{optional:!0})?.setUpPreloading(),e.get(g_,null,{optional:!0})?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var D_=new E("",{factory:()=>new ue}),E_=new E("",{factory:()=>1});var I_=new E("");function uv(e,t){if(t){let n=e.find(r=>r.id===t);if(n)return n}return e.find(n=>n.isRoot)??e[0]??null}var ef="vsaf.project";function w_(){try{return localStorage.getItem(ef)}catch(e){return null}}function lv(e){try{e===null?localStorage.removeItem(ef):localStorage.setItem(ef,e)}catch(t){}}var dv=class e{http=p(Aa);projects=W([]);selectedId=W(w_());loaded=W(!1);get currentId(){return this.selectedId()}get selectedProject(){let t=this.selectedId();return this.projects().find(n=>n.id===t)??null}load(){this.http.get("/api/projects").subscribe({next:t=>{let n=t?.projects??[];this.projects.set(n);let r=uv(n,this.selectedId());this.selectedId.set(r?.id??null),lv(r?.id??null),this.loaded.set(!0)},error:()=>{this.projects.set([]),this.selectedId.set(null),this.loaded.set(!0)}})}select(t){this.selectedId.set(t),lv(t)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})};export{y as a,U as b,x as c,ue as d,J as e,A as f,V as g,Lv as h,Kn as i,Jn as j,m as k,Yi as l,v as m,Ht as n,E as o,p,mh as q,yh as r,Ah as s,xh as t,ft as u,De as v,Y as w,W as x,Jt as y,_o as z,mt as A,LE as B,Ml as C,wr as D,H as E,Vl as F,Fn as G,nt as H,Bg as I,Hg as J,Cr as K,Ln as L,ia as M,$w as N,zw as O,Gw as P,Ww as Q,qw as R,Wg as S,Bs as T,Ql as U,sa as V,Kl as W,Jl as X,qg as Y,eC as Z,aa as _,iC as $,sC as aa,Jg as ba,Xg as ca,yC as da,MC as ea,im as fa,td as ga,sm as ha,cm as ia,xC as ja,um as ka,FC as la,LC as ma,jC as na,VC as oa,$C as pa,GC as qa,K as ra,Fo as sa,Lj as ta,jo as ua,fa as va,At as wa,Gb as xa,zm as ya,Wb as za,qb as Aa,Qb as Ba,qm as Ca,lT as Da,Aa as Ea,FT as Fa,Lt as Ga,Yd as Ha,Gn as Ia,ic as Ja,h_ as Ka,m_ as La,dv as Ma};