aiservermanager 0.1.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 (96) hide show
  1. package/README.md +31 -0
  2. package/backend/dist/di/container.js +80 -0
  3. package/backend/dist/di/container.js.map +1 -0
  4. package/backend/dist/di/types.js +18 -0
  5. package/backend/dist/di/types.js.map +1 -0
  6. package/backend/dist/files/validatePassword.ps1 +10 -0
  7. package/backend/dist/files/wmiGpuQuery.ps1 +15 -0
  8. package/backend/dist/helpers/ExecTools.js +101 -0
  9. package/backend/dist/helpers/ExecTools.js.map +1 -0
  10. package/backend/dist/index.js +51 -0
  11. package/backend/dist/index.js.map +1 -0
  12. package/backend/dist/middleware/authMiddleware.js +32 -0
  13. package/backend/dist/middleware/authMiddleware.js.map +1 -0
  14. package/backend/dist/models/GpuInfo.js +3 -0
  15. package/backend/dist/models/GpuInfo.js.map +1 -0
  16. package/backend/dist/models/ServiceConfig.js +46 -0
  17. package/backend/dist/models/ServiceConfig.js.map +1 -0
  18. package/backend/dist/models/ServiceStatus.js +3 -0
  19. package/backend/dist/models/ServiceStatus.js.map +1 -0
  20. package/backend/dist/routes/authRoutes.js +46 -0
  21. package/backend/dist/routes/authRoutes.js.map +1 -0
  22. package/backend/dist/routes/gpuRoutes.js +35 -0
  23. package/backend/dist/routes/gpuRoutes.js.map +1 -0
  24. package/backend/dist/routes/serviceRoutes.js +206 -0
  25. package/backend/dist/routes/serviceRoutes.js.map +1 -0
  26. package/backend/dist/routes/systemRoutes.js +64 -0
  27. package/backend/dist/routes/systemRoutes.js.map +1 -0
  28. package/backend/dist/services/auth/linuxPasswordVerifier.js +74 -0
  29. package/backend/dist/services/auth/linuxPasswordVerifier.js.map +1 -0
  30. package/backend/dist/services/auth/passwordVerifier.js +3 -0
  31. package/backend/dist/services/auth/passwordVerifier.js.map +1 -0
  32. package/backend/dist/services/auth/windowsPasswordVerifier.js +73 -0
  33. package/backend/dist/services/auth/windowsPasswordVerifier.js.map +1 -0
  34. package/backend/dist/services/authService.js +240 -0
  35. package/backend/dist/services/authService.js.map +1 -0
  36. package/backend/dist/services/configManager.js +96 -0
  37. package/backend/dist/services/configManager.js.map +1 -0
  38. package/backend/dist/services/controllers/systemctlController.js +287 -0
  39. package/backend/dist/services/controllers/systemctlController.js.map +1 -0
  40. package/backend/dist/services/controllers/windowsServiceController.js +201 -0
  41. package/backend/dist/services/controllers/windowsServiceController.js.map +1 -0
  42. package/backend/dist/services/detectors/amdLinuxDetector.js +127 -0
  43. package/backend/dist/services/detectors/amdLinuxDetector.js.map +1 -0
  44. package/backend/dist/services/detectors/gpuDetector.js +3 -0
  45. package/backend/dist/services/detectors/gpuDetector.js.map +1 -0
  46. package/backend/dist/services/detectors/nvidiaSmiDetector.js +67 -0
  47. package/backend/dist/services/detectors/nvidiaSmiDetector.js.map +1 -0
  48. package/backend/dist/services/detectors/wmiDetector.js +125 -0
  49. package/backend/dist/services/detectors/wmiDetector.js.map +1 -0
  50. package/backend/dist/services/enrichers/gpuEnricher.js +3 -0
  51. package/backend/dist/services/enrichers/gpuEnricher.js.map +1 -0
  52. package/backend/dist/services/enrichers/lspciEnricher.js +92 -0
  53. package/backend/dist/services/enrichers/lspciEnricher.js.map +1 -0
  54. package/backend/dist/services/enrichers/vulkanEnricher.js +57 -0
  55. package/backend/dist/services/enrichers/vulkanEnricher.js.map +1 -0
  56. package/backend/dist/services/gpuService.js +108 -0
  57. package/backend/dist/services/gpuService.js.map +1 -0
  58. package/backend/dist/services/helpers/gpuDedup.js +46 -0
  59. package/backend/dist/services/helpers/gpuDedup.js.map +1 -0
  60. package/backend/dist/services/helpers/gpuEngineNames.js +22 -0
  61. package/backend/dist/services/helpers/gpuEngineNames.js.map +1 -0
  62. package/backend/dist/services/llamaAutocompleteService.js +277 -0
  63. package/backend/dist/services/llamaAutocompleteService.js.map +1 -0
  64. package/backend/dist/services/managedServicesController.js +72 -0
  65. package/backend/dist/services/managedServicesController.js.map +1 -0
  66. package/backend/dist/services/managedServicesManager.js +91 -0
  67. package/backend/dist/services/managedServicesManager.js.map +1 -0
  68. package/backend/dist/services/probes/amdLinuxUsageProbe.js +109 -0
  69. package/backend/dist/services/probes/amdLinuxUsageProbe.js.map +1 -0
  70. package/backend/dist/services/probes/gpuUsageProbe.js +3 -0
  71. package/backend/dist/services/probes/gpuUsageProbe.js.map +1 -0
  72. package/backend/dist/services/probes/nvidiaSmiUsageProbe.js +67 -0
  73. package/backend/dist/services/probes/nvidiaSmiUsageProbe.js.map +1 -0
  74. package/backend/dist/services/providers/systemInfoLinuxProvider.js +188 -0
  75. package/backend/dist/services/providers/systemInfoLinuxProvider.js.map +1 -0
  76. package/backend/dist/services/providers/systemInfoWindowsProvider.js +101 -0
  77. package/backend/dist/services/providers/systemInfoWindowsProvider.js.map +1 -0
  78. package/backend/dist/services/serviceConfigController.js +116 -0
  79. package/backend/dist/services/serviceConfigController.js.map +1 -0
  80. package/backend/dist/services/serviceController.js +3 -0
  81. package/backend/dist/services/serviceController.js.map +1 -0
  82. package/backend/dist/services/serviceManager.js +157 -0
  83. package/backend/dist/services/serviceManager.js.map +1 -0
  84. package/backend/dist/services/systemInfoProvider.js +3 -0
  85. package/backend/dist/services/systemInfoProvider.js.map +1 -0
  86. package/backend/dist/services/systemService.js +42 -0
  87. package/backend/dist/services/systemService.js.map +1 -0
  88. package/backend/public/browser/chunk-34LU6STA.js +1 -0
  89. package/backend/public/browser/chunk-JGNPKRLU.js +4 -0
  90. package/backend/public/browser/favicon.svg +11 -0
  91. package/backend/public/browser/index.html +15 -0
  92. package/backend/public/browser/main-MUMQYBNS.js +5579 -0
  93. package/backend/public/browser/polyfills-5CFQRCPP.js +2 -0
  94. package/backend/public/browser/styles-QBUDNRKH.css +1 -0
  95. package/bin/aiservermanager.js +2 -0
  96. package/package.json +45 -0
@@ -0,0 +1,4 @@
1
+ var zg=Object.defineProperty,Gg=Object.defineProperties;var Wg=Object.getOwnPropertyDescriptors;var no=Object.getOwnPropertySymbols;var Cu=Object.prototype.hasOwnProperty,Mu=Object.prototype.propertyIsEnumerable;var Su=(t,e,n)=>e in t?zg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,G=(t,e)=>{for(var n in e||={})Cu.call(e,n)&&Su(t,n,e[n]);if(no)for(var n of no(e))Mu.call(e,n)&&Su(t,n,e[n]);return t},ee=(t,e)=>Gg(t,Wg(e));var Cs=(t,e)=>{var n={};for(var r in t)Cu.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&no)for(var r of no(t))e.indexOf(r)<0&&Mu.call(t,r)&&(n[r]=t[r]);return n};var Ms=(t,e,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(l){o(l)}},s=c=>{try{a(n.throw(c))}catch(l){o(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(t,e)).next())});var ae=null,ro=!1,Pt=1,Qg=null,Z=Symbol("SIGNAL");function D(t){let e=ae;return ae=t,e}function ao(){return ae}var Lt={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 Ft(t){if(ro)throw new Error("");if(ae===null)return;ae.consumerOnSignalRead(t);let e=ae.producersTail;if(e!==void 0&&e.producer===t)return;let n,r=ae.recomputing;if(r&&(n=e!==void 0?e.nextProducer:ae.producers,n!==void 0&&n.producer===t)){ae.producersTail=n,n.lastReadVersion=t.version,n.knownValidAtEpoch=Pt;return}let o=t.consumersTail;if(o!==void 0&&o.consumer===ae&&(!r||o.knownValidAtEpoch===Pt))return;let i=vn(ae),s={producer:t,consumer:ae,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:Pt,lastReadVersion:t.version,nextConsumer:void 0};ae.producersTail=s,e!==void 0?e.nextProducer=s:ae.producers=s,i&&ku(t,s)}function Nu(){Pt++}function co(t){if(!(vn(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Pt)){if(!t.producerMustRecompute(t)&&!yn(t)){so(t);return}t.producerRecomputeValue(t),so(t)}}function Ns(t){if(t.consumers===void 0)return;let e=ro;ro=!0;try{for(let n=t.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Kg(r)}}finally{ro=e}}function xs(){return ae?.consumerAllowSignalWrites!==!1}function Kg(t){t.dirty=!0,Ns(t),t.consumerMarkedDirty?.(t)}function so(t){t.dirty=!1,t.lastCleanEpoch=Pt}function pt(t){return t&&xu(t),D(t)}function xu(t){if(t.producersTail?.knownValidAtEpoch===Pt){let e=t.producers;for(;e!==void 0;)e.knownValidAtEpoch=null,e=e.nextProducer}t.producersTail=void 0,t.recomputing=!0}function jt(t,e){D(e),t&&Au(t)}function Au(t){t.recomputing=!1;let e=t.producersTail,n=e!==void 0?e.nextProducer:t.producers;if(n!==void 0){if(vn(t))do n=As(n);while(n!==void 0);e!==void 0?e.nextProducer=void 0:t.producers=void 0}}function yn(t){for(let e=t.producers;e!==void 0;e=e.nextProducer){let n=e.producer,r=e.lastReadVersion;if(r!==n.version||(co(n),r!==n.version))return!0}return!1}function ht(t){if(vn(t)){let e=t.producers;for(;e!==void 0;)e=As(e)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function ku(t,e){let n=t.consumersTail,r=vn(t);if(n!==void 0?(e.nextConsumer=n.nextConsumer,n.nextConsumer=e):(e.nextConsumer=void 0,t.consumers=e),e.prevConsumer=n,t.consumersTail=e,!r)for(let o=t.producers;o!==void 0;o=o.nextProducer)ku(o.producer,o)}function As(t){let e=t.producer,n=t.nextProducer,r=t.nextConsumer,o=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:e.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(e.consumers=r,!vn(e)){let i=e.producers;for(;i!==void 0;)i=As(i)}return n}function vn(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function lo(t){Qg?.(t)}function uo(t,e){return Object.is(t,e)}function rr(t,e){let n=Object.create(Zg);n.computation=t,e!==void 0&&(n.equal=e);let r=()=>{if(co(n),Ft(n),n.value===nr)throw n.error;return n.value};return r[Z]=n,lo(n),r}var oo=Symbol("UNSET"),io=Symbol("COMPUTING"),nr=Symbol("ERRORED"),Zg=ee(G({},Lt),{value:oo,dirty:!0,error:null,equal:uo,kind:"computed",producerMustRecompute(t){return t.value===oo||t.value===io},producerRecomputeValue(t){if(t.value===io)throw new Error("");let e=t.value;t.value=io;let n=pt(t),r,o=!1;try{r=t.computation(),D(null),o=e!==oo&&e!==nr&&r!==nr&&t.equal(e,r)}catch(i){r=nr,t.error=i}finally{jt(t,n)}if(o){t.value=e;return}t.value=r,t.version++}});function Yg(){throw new Error}var Ru=Yg;function Ou(t){Ru(t)}function ks(t){Ru=t}var Jg=null;function Rs(t,e){let n=Object.create(or);n.value=t,e!==void 0&&(n.equal=e);let r=()=>Pu(n);return r[Z]=n,lo(n),[r,s=>En(n,s),s=>Os(n,s)]}function Pu(t){return Ft(t),t.value}function En(t,e){xs()||Ou(t),t.equal(t.value,e)||(t.value=e,Xg(t))}function Os(t,e){xs()||Ou(t),En(t,e(t.value))}var or=ee(G({},Lt),{equal:uo,value:void 0,kind:"signal"});function Xg(t){t.version++,Nu(),Ns(t),Jg?.(t)}var Ps=ee(G({},Lt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function Ls(t){if(t.dirty=!1,t.version>0&&!yn(t))return;t.version++;let e=pt(t);try{t.cleanup(),t.fn()}finally{jt(t,e)}}var Fs;function fo(){return Fs}function Be(t){let e=Fs;return Fs=t,e}var Lu=Symbol("NotFound");function In(t){return t===Lu||t?.name==="\u0275NotFound"}function Fu(t){let e=D(null);try{return t()}finally{D(e)}}function C(t){return typeof t=="function"}function Dn(t){let n=t(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var po=Dn(t=>function(n){t(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 Vt(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var $=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;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(C(r))try{r()}catch(i){e=i instanceof po?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{ju(i)}catch(s){e=e??[],s instanceof po?e=[...e,...s.errors]:e.push(s)}}if(e)throw new po(e)}}add(e){var n;if(e&&e!==this)if(this.closed)ju(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}}_hasParent(e){let{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){let{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&Vt(n,e)}remove(e){let{_finalizers:n}=this;n&&Vt(n,e),e instanceof t&&e._removeParent(this)}};$.EMPTY=(()=>{let t=new $;return t.closed=!0,t})();var js=$.EMPTY;function ho(t){return t instanceof $||t&&"closed"in t&&C(t.remove)&&C(t.add)&&C(t.unsubscribe)}function ju(t){C(t)?t():t.unsubscribe()}var Me={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var _n={setTimeout(t,e,...n){let{delegate:r}=_n;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=_n;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function mo(t){_n.setTimeout(()=>{let{onUnhandledError:e}=Me;if(e)e(t);else throw t})}function Ht(){}var Vu=Vs("C",void 0,void 0);function Hu(t){return Vs("E",void 0,t)}function Bu(t){return Vs("N",t,void 0)}function Vs(t,e,n){return{kind:t,value:e,error:n}}var Bt=null;function Tn(t){if(Me.useDeprecatedSynchronousErrorHandling){let e=!Bt;if(e&&(Bt={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=Bt;if(Bt=null,n)throw r}}else t()}function $u(t){Me.useDeprecatedSynchronousErrorHandling&&Bt&&(Bt.errorThrown=!0,Bt.error=t)}var $t=class extends ${constructor(e){super(),this.isStopped=!1,e?(this.destination=e,ho(e)&&e.add(this)):this.destination=ny}static create(e,n,r){return new Ne(e,n,r)}next(e){this.isStopped?Bs(Bu(e),this):this._next(e)}error(e){this.isStopped?Bs(Hu(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Bs(Vu,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},ey=Function.prototype.bind;function Hs(t,e){return ey.call(t,e)}var $s=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){go(r)}}error(e){let{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){go(r)}else go(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){go(n)}}},Ne=class extends $t{constructor(e,n,r){super();let o;if(C(e)||!e)o={next:e??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Me.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&Hs(e.next,i),error:e.error&&Hs(e.error,i),complete:e.complete&&Hs(e.complete,i)}):o=e}this.destination=new $s(o)}};function go(t){Me.useDeprecatedSynchronousErrorHandling?$u(t):mo(t)}function ty(t){throw t}function Bs(t,e){let{onStoppedNotification:n}=Me;n&&_n.setTimeout(()=>n(t,e))}var ny={closed:!0,next:Ht,error:ty,complete:Ht};var wn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function xe(t){return t}function Uu(t){return t.length===0?xe:t.length===1?t[0]:function(n){return t.reduce((r,o)=>o(r),n)}}var k=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=oy(n)?n:new Ne(n,r,o);return Tn(()=>{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=qu(r),new r((o,i)=>{let s=new Ne({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)}[wn](){return this}pipe(...n){return Uu(n)(this)}toPromise(n){return n=qu(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=e=>new t(e),t})();function qu(t){var e;return(e=t??Me.Promise)!==null&&e!==void 0?e:Promise}function ry(t){return t&&C(t.next)&&C(t.error)&&C(t.complete)}function oy(t){return t&&t instanceof $t||ry(t)&&ho(t)}function Us(t){return C(t?.lift)}function x(t){return e=>{if(Us(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function N(t,e,n,r,o){return new qs(t,e,n,r,o)}var qs=class extends $t{constructor(e,n,r,o,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){e.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function zu(){return x((t,e)=>{let n=null;t._refCount++;let r=N(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){n=null;return}let o=t._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),e.unsubscribe()});t.subscribe(r),r.closed||(n=t.connect())})}var zs=class extends k{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Us(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new $;let n=this.getSubject();e.add(this.source.subscribe(N(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=$.EMPTY)}return e}refCount(){return zu()(this)}};var bn={schedule(t){let e=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=bn;r&&(e=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=e(i=>{n=void 0,t(i)});return new $(()=>n?.(o))},requestAnimationFrame(...t){let{delegate:e}=bn;return(e?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:e}=bn;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var Gu=Dn(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ye=(()=>{class t extends k{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new yo(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Gu}next(n){Tn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Tn(()=>{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(){Tn(()=>{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?js:(this.currentObservers=null,i.push(n),new $(()=>{this.currentObservers=null,Vt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new k;return n.source=this,n}}return t.create=(e,n)=>new yo(e,n),t})(),yo=class extends ye{constructor(e,n){super(),this.destination=e,this.source=n}next(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,e)}error(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,e)}complete(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)}_subscribe(e){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&r!==void 0?r:js}};var ir=class extends ye{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let n=super._subscribe(e);return!n.closed&&e.next(this._value),n}getValue(){let{hasError:e,thrownError:n,_value:r}=this;if(e)throw n;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}};var sr={now(){return(sr.delegate||Date).now()},delegate:void 0};var ar=class extends ye{constructor(e=1/0,n=1/0,r=sr){super(),this._bufferSize=e,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,n)}next(e){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(e),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(e),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!e.closed;s+=r?1:2)e.next(i[s]);return this._checkFinalizedStatuses(e),n}_trimBuffer(){let{_bufferSize:e,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var vo=class extends ${constructor(e,n){super()}schedule(e,n=0){return this}};var cr={setInterval(t,e,...n){let{delegate:r}=cr;return r?.setInterval?r.setInterval(t,e,...n):setInterval(t,e,...n)},clearInterval(t){let{delegate:e}=cr;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var mt=class extends vo{constructor(e,n){super(e,n),this.scheduler=e,this.work=n,this.pending=!1}schedule(e,n=0){var r;if(this.closed)return this;this.state=e;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(e,n,r=0){return cr.setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&cr.clearInterval(n)}execute(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(e,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,n){let r=!1,o;try{this.work(e)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:e,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,Vt(r,this),e!=null&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,super.unsubscribe()}}};var iy=1,Gs,Ws={};function Wu(t){return t in Ws?(delete Ws[t],!0):!1}var Qu={setImmediate(t){let e=iy++;return Ws[e]=!0,Gs||(Gs=Promise.resolve()),Gs.then(()=>Wu(e)&&t()),e},clearImmediate(t){Wu(t)}};var{setImmediate:sy,clearImmediate:ay}=Qu,lr={setImmediate(...t){let{delegate:e}=lr;return(e?.setImmediate||sy)(...t)},clearImmediate(t){let{delegate:e}=lr;return(e?.clearImmediate||ay)(t)},delegate:void 0};var Eo=class extends mt{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,r=0){return r!==null&&r>0?super.requestAsyncId(e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=lr.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(e,n,r);let{actions:i}=e;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(lr.clearImmediate(n),e._scheduled===n&&(e._scheduled=void 0))}};var Sn=class t{constructor(e,n=t.now){this.schedulerActionCtor=e,this.now=n}schedule(e,n=0,r){return new this.schedulerActionCtor(this,e).schedule(r,n)}};Sn.now=sr.now;var gt=class extends Sn{constructor(e,n=Sn.now){super(e,n),this.actions=[],this._active=!1}flush(e){let{actions:n}=this;if(this._active){n.push(e);return}let r;this._active=!0;do if(r=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,r){for(;e=n.shift();)e.unsubscribe();throw r}}};var Io=class extends gt{flush(e){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;e=e||r.shift();do if(o=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,o){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw o}}};var cy=new Io(Eo);var Ut=new gt(mt),Ku=Ut;var Do=class extends mt{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,r=0){return r!==null&&r>0?super.requestAsyncId(e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=bn.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(e,n,r);let{actions:i}=e;n!=null&&n===e._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(bn.cancelAnimationFrame(n),e._scheduled=void 0)}};var _o=class extends gt{flush(e){this._active=!0;let n;e?n=e.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;e=e||r.shift();do if(o=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,o){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw o}}};var ly=new _o(Do);var ur=new k(t=>t.complete());function To(t){return t&&C(t.schedule)}function Qs(t){return t[t.length-1]}function wo(t){return C(Qs(t))?t.pop():void 0}function $e(t){return To(Qs(t))?t.pop():void 0}function Zu(t,e){return typeof Qs(t)=="number"?t.pop():e}function Ju(t,e,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(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(t,e||[])).next())})}function Yu(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function qt(t){return this instanceof qt?(this.v=t,this):new qt(t)}function Xu(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),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(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(m){return new Promise(function(v,_){i.push([f,m,v,_])>1||c(f,m)})},h&&(o[f]=h(o[f])))}function c(f,h){try{l(r[f](h))}catch(m){p(i[0][3],m)}}function l(f){f.value instanceof qt?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function ed(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof Yu=="function"?Yu(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=t[i]&&function(s){return new Promise(function(a,c){s=t[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var bo=t=>t&&typeof t.length=="number"&&typeof t!="function";function So(t){return C(t?.then)}function Co(t){return C(t[wn])}function Mo(t){return Symbol.asyncIterator&&C(t?.[Symbol.asyncIterator])}function No(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function uy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var xo=uy();function Ao(t){return C(t?.[xo])}function ko(t){return Xu(this,arguments,function*(){let n=t.getReader();try{for(;;){let{value:r,done:o}=yield qt(n.read());if(o)return yield qt(void 0);yield yield qt(r)}}finally{n.releaseLock()}})}function Ro(t){return C(t?.getReader)}function j(t){if(t instanceof k)return t;if(t!=null){if(Co(t))return dy(t);if(bo(t))return fy(t);if(So(t))return py(t);if(Mo(t))return td(t);if(Ao(t))return hy(t);if(Ro(t))return my(t)}throw No(t)}function dy(t){return new k(e=>{let n=t[wn]();if(C(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function fy(t){return new k(e=>{for(let n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function py(t){return new k(e=>{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,mo)})}function hy(t){return new k(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function td(t){return new k(e=>{gy(t,e).catch(n=>e.error(n))})}function my(t){return td(ko(t))}function gy(t,e){var n,r,o,i;return Ju(this,void 0,void 0,function*(){try{for(n=ed(t);r=yield n.next(),!r.done;){let s=r.value;if(e.next(s),e.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}}e.complete()})}function de(t,e,n,r=0,o=!1){let i=e.schedule(function(){n(),o?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(i),!o)return i}function Oo(t,e=0){return x((n,r)=>{n.subscribe(N(r,o=>de(r,t,()=>r.next(o),e),()=>de(r,t,()=>r.complete(),e),o=>de(r,t,()=>r.error(o),e)))})}function Po(t,e=0){return x((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function nd(t,e){return j(t).pipe(Po(e),Oo(e))}function rd(t,e){return j(t).pipe(Po(e),Oo(e))}function od(t,e){return new k(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function id(t,e){return new k(n=>{let r;return de(n,e,()=>{r=t[xo](),de(n,e,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>C(r?.return)&&r.return()})}function Lo(t,e){if(!t)throw new Error("Iterable cannot be null");return new k(n=>{de(n,e,()=>{let r=t[Symbol.asyncIterator]();de(n,e,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function sd(t,e){return Lo(ko(t),e)}function ad(t,e){if(t!=null){if(Co(t))return nd(t,e);if(bo(t))return od(t,e);if(So(t))return rd(t,e);if(Mo(t))return Lo(t,e);if(Ao(t))return id(t,e);if(Ro(t))return sd(t,e)}throw No(t)}function Ue(t,e){return e?ad(t,e):j(t)}function yy(...t){let e=$e(t);return Ue(t,e)}function vy(t,e){let n=C(t)?t:()=>t,r=o=>o.error(n());return new k(e?o=>e.schedule(r,0,o):r)}function Ey(t){return!!t&&(t instanceof k||C(t.lift)&&C(t.subscribe))}var cd=Dn(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Iy(t,e){let n=typeof e=="object";return new Promise((r,o)=>{let i=new Ne({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(e.defaultValue):o(new cd)}});t.subscribe(i)})}function ld(t){return t instanceof Date&&!isNaN(t)}function tt(t,e){return x((n,r)=>{let o=0;n.subscribe(N(r,i=>{r.next(t.call(e,i,o++))}))})}var{isArray:Dy}=Array;function _y(t,e){return Dy(e)?t(...e):t(e)}function Fo(t){return tt(e=>_y(t,e))}var{isArray:Ty}=Array,{getPrototypeOf:wy,prototype:by,keys:Sy}=Object;function jo(t){if(t.length===1){let e=t[0];if(Ty(e))return{args:e,keys:null};if(Cy(e)){let n=Sy(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}function Cy(t){return t&&typeof t=="object"&&wy(t)===by}function Vo(t,e){return t.reduce((n,r,o)=>(n[r]=e[o],n),{})}function My(...t){let e=$e(t),n=wo(t),{args:r,keys:o}=jo(t);if(r.length===0)return Ue([],e);let i=new k(Ny(r,e,o?s=>Vo(o,s):xe));return n?i.pipe(Fo(n)):i}function Ny(t,e,n=xe){return r=>{ud(e,()=>{let{length:o}=t,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)ud(e,()=>{let l=Ue(t[c],e),u=!1;l.subscribe(N(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function ud(t,e,n){t?de(n,t,e):e()}function dd(t,e,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,p=()=>{d&&!c.length&&!l&&e.complete()},f=m=>l<r?h(m):c.push(m),h=m=>{i&&e.next(m),l++;let v=!1;j(n(m,u++)).subscribe(N(e,_=>{o?.(_),i?f(_):e.next(_)},()=>{v=!0},void 0,()=>{if(v)try{for(l--;c.length&&l<r;){let _=c.shift();s?de(e,s,()=>h(_)):h(_)}p()}catch(_){e.error(_)}}))};return t.subscribe(N(e,f,()=>{d=!0,p()})),()=>{a?.()}}function yt(t,e,n=1/0){return C(e)?yt((r,o)=>tt((i,s)=>e(r,i,o,s))(j(t(r,o))),n):(typeof e=="number"&&(n=e),x((r,o)=>dd(r,o,t,n)))}function Ho(t=1/0){return yt(xe,t)}function fd(){return Ho(1)}function Cn(...t){return fd()(Ue(t,$e(t)))}function xy(t){return new k(e=>{j(t()).subscribe(e)})}function Ay(...t){let e=wo(t),{args:n,keys:r}=jo(t),o=new k(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u<s;u++){let d=!1;j(n[u]).subscribe(N(i,p=>{d||(d=!0,l--),a[u]=p},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?Vo(r,a):a),i.complete())}))}});return e?o.pipe(Fo(e)):o}function dr(t=0,e,n=Ku){let r=-1;return e!=null&&(To(e)?n=e:r=e),new k(o=>{let i=ld(t)?+t-n.now():t;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function ky(...t){let e=$e(t),n=Zu(t,1/0),r=t;return r.length?r.length===1?j(r[0]):Ho(n)(Ue(r,e)):ur}function Ks(t,e){return x((n,r)=>{let o=0;n.subscribe(N(r,i=>t.call(e,i,o++)&&r.next(i)))})}function pd(t){return x((e,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let l=o;o=null,n.next(l)}s&&n.complete()},c=()=>{i=null,s&&n.complete()};e.subscribe(N(n,l=>{r=!0,o=l,i||j(t(l)).subscribe(i=N(n,a,c))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function Ry(t,e=Ut){return pd(()=>dr(t,e))}function Zs(t){return x((e,n)=>{let r=null,o=!1,i;r=e.subscribe(N(n,void 0,void 0,s=>{i=j(t(s,Zs(t)(e))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Oy(t,e){return C(e)?yt(t,e,1):yt(t,1)}function hd(t,e=Ut){return x((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let l=i;i=null,r.next(l)}};function c(){let l=s+t,u=e.now();if(u<l){o=this.schedule(void 0,l-u),r.add(o);return}a()}n.subscribe(N(r,l=>{i=l,s=e.now(),o||(o=e.schedule(c,t),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function Bo(t){return t<=0?()=>ur:x((e,n)=>{let r=0;e.subscribe(N(n,o=>{++r<=t&&(n.next(o),t<=r&&n.complete())}))})}function md(){return x((t,e)=>{t.subscribe(N(e,Ht))})}function gd(t){return tt(()=>t)}function Ys(t,e){return e?n=>Cn(e.pipe(Bo(1),md()),n.pipe(Ys(t))):yt((n,r)=>j(t(n,r)).pipe(Bo(1),gd(n)))}function Py(t,e=Ut){let n=dr(t,e);return Ys(()=>n)}function yd(t,e=xe){return t=t??Ly,x((n,r)=>{let o,i=!0;n.subscribe(N(r,s=>{let a=e(s);(i||!t(o,a))&&(i=!1,o=a,r.next(s))}))})}function Ly(t,e){return t===e}function Fy(t){return x((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}function jy(){return x((t,e)=>{let n,r=!1;t.subscribe(N(e,o=>{let i=n;n=o,r&&e.next([i,o]),r=!0}))})}function Xs(t={}){let{connector:e=()=>new ye,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=t;return i=>{let s,a,c,l=0,u=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},f=()=>{p(),s=c=void 0,u=d=!1},h=()=>{let m=s;f(),m?.unsubscribe()};return x((m,v)=>{l++,!d&&!u&&p();let _=c=c??e();v.add(()=>{l--,l===0&&!d&&!u&&(a=Js(h,o))}),_.subscribe(v),!s&&l>0&&(s=new Ne({next:L=>_.next(L),error:L=>{d=!0,p(),a=Js(f,n,L),_.error(L)},complete:()=>{u=!0,p(),a=Js(f,r),_.complete()}}),j(m).subscribe(s))})(i)}}function Js(t,e,...n){if(e===!0){t();return}if(e===!1)return;let r=new Ne({next:()=>{r.unsubscribe(),t()}});return j(e(...n)).subscribe(r)}function Vy(t,e,n){let r,o=!1;return t&&typeof t=="object"?{bufferSize:r=1/0,windowTime:e=1/0,refCount:o=!1,scheduler:n}=t:r=t??1/0,Xs({connector:()=>new ar(r,e,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Hy(t){return Ks((e,n)=>t<=n)}function vd(...t){let e=$e(t);return x((n,r)=>{(e?Cn(t,n,e):Cn(t,n)).subscribe(r)})}function Ed(t,e){return x((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(N(r,c=>{o?.unsubscribe();let l=0,u=i++;j(t(c,u)).subscribe(o=N(r,d=>r.next(e?e(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function By(t){return x((e,n)=>{j(t).subscribe(N(n,()=>n.complete(),Ht)),!n.closed&&e.subscribe(n)})}function $y(t,e=!1){return x((n,r)=>{let o=0;n.subscribe(N(r,i=>{let s=t(i,o++);(s||e)&&r.next(i),!s&&r.complete()}))})}function Uy(t,e,n){let r=C(t)||e||n?{next:t,error:e,complete:n}:t;return r?x((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(N(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):xe}var Qo="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",g=class extends Error{code;constructor(e,n){super(fa(e,n)),this.code=e}};function qy(t){return`NG0${Math.abs(t)}`}function fa(t,e){return`${qy(t)}${e?": "+e:""}`}function V(t){for(let e in t)if(t[e]===V)return e;throw Error("")}function wd(t,e){for(let n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function Ko(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Ko).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;let n=t.toString();if(n==null)return""+n;let r=n.indexOf(`
4
+ `);return r>=0?n.slice(0,r):n}function Zo(t,e){return t?e?`${t} ${e}`:t:e||""}var zy=V({__forward_ref__:V});function Yo(t){return t.__forward_ref__=Yo,t}function Y(t){return pa(t)?t():t}function pa(t){return typeof t=="function"&&t.hasOwnProperty(zy)&&t.__forward_ref__===Yo}function fe(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function bd(t){return{providers:t.providers||[],imports:t.imports||[]}}function Jo(t){return Gy(t,Xo)}function Gy(t,e){return t.hasOwnProperty(e)&&t[e]||null}function Wy(t){let e=t?.[Xo]??null;return e||null}function ta(t){return t&&t.hasOwnProperty(Uo)?t[Uo]:null}var Xo=V({\u0275prov:V}),Uo=V({\u0275inj:V}),P=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,n){this._desc=e,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=fe({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function ha(t){return t&&!!t.\u0275providers}var ma=V({\u0275cmp:V}),ga=V({\u0275dir:V}),ya=V({\u0275pipe:V});var pr=V({\u0275fac:V}),Zt=V({__NG_ELEMENT_ID__:V}),Id=V({__NG_ENV_ID__:V});function It(t){return va(t,"@Component"),t[ma]||null}function ei(t){return va(t,"@Directive"),t[ga]||null}function Sd(t){return va(t,"@Pipe"),t[ya]||null}function va(t,e){if(t==null)throw new g(-919,!1)}function yr(t){return typeof t=="string"?t:t==null?"":String(t)}var Cd=V({ngErrorCode:V}),Qy=V({ngErrorMessage:V}),Ky=V({ngTokenPath:V});function Ea(t,e){return Md("",-200,e)}function ti(t,e){throw new g(-201,!1)}function Md(t,e,n){let r=new g(e,t);return r[Cd]=e,r[Qy]=t,n&&(r[Ky]=n),r}function Zy(t){return t[Cd]}var na;function Nd(){return na}function ce(t){let e=na;return na=t,e}function Ia(t,e,n){let r=Jo(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(e!==void 0)return e;ti(t,"")}var Dt=globalThis;var Yy={},zt=Yy,Jy="__NG_DI_FLAG__",ra=class{injector;constructor(e){this.injector=e}retrieve(e,n){let r=Gt(n)||0;try{return this.injector.get(e,r&8?null:zt,r)}catch(o){if(In(o))return o;throw o}}};function Xy(t,e=0){let n=fo();if(n===void 0)throw new g(-203,!1);if(n===null)return Ia(t,void 0,e);{let r=ev(e),o=n.retrieve(t,r);if(In(o)){if(r.optional)return null;throw o}return o}}function qe(t,e=0){return(Nd()||Xy)(Y(t),e)}function S(t,e){return qe(t,Gt(e))}function Gt(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function ev(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function oa(t){let e=[];for(let n=0;n<t.length;n++){let r=Y(t[n]);if(Array.isArray(r)){if(r.length===0)throw new g(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=tv(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}e.push(qe(o,i))}else e.push(qe(r))}return e}function tv(t){return t[Jy]}function vt(t,e){let n=t.hasOwnProperty(pr);return n?t[pr]:null}function xd(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let o=t[r],i=e[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function Ad(t){return t.flat(Number.POSITIVE_INFINITY)}function ni(t,e){t.forEach(n=>Array.isArray(n)?ni(n,e):e(n))}function Da(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function vr(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function kd(t,e){let n=[];for(let r=0;r<t;r++)n.push(e);return n}function Rd(t,e,n,r){let o=t.length;if(o==e)t.push(n,r);else if(o===1)t.push(r,t[0]),t[0]=n;else{for(o--,t.push(t[o-1],t[o]);o>e;){let i=o-2;t[o]=t[i],o--}t[e]=n,t[e+1]=r}}function ri(t,e,n){let r=xn(t,e);return r>=0?t[r|1]=n:(r=~r,Rd(t,r,e,n)),r}function oi(t,e){let n=xn(t,e);if(n>=0)return t[n|1]}function xn(t,e){return nv(t,e,1)}function nv(t,e,n){let r=0,o=t.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=t[i<<n];if(e===s)return i<<n;s>e?o=i:r=i+1}return~(o<<n)}var _t={},oe=[],Yt=new P(""),Er=new P("",-1),_a=new P(""),Nn=class{get(e,n=zt){if(n===zt){let o=Md("",-201);throw o.name="\u0275NotFound",o}return n}};function Ta(t){return{\u0275providers:t}}function Od(...t){return{\u0275providers:wa(!0,t),\u0275fromNgModule:!0}}function wa(t,...e){let n=[],r=new Set,o,i=s=>{n.push(s)};return ni(e,s=>{let a=s;qo(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Pd(o,i),n}function Pd(t,e){for(let n=0;n<t.length;n++){let{ngModule:r,providers:o}=t[n];ba(o,i=>{e(i,r)})}}function qo(t,e,n,r){if(t=Y(t),!t)return!1;let o=null,i=ta(t),s=!i&&It(t);if(!i&&!s){let c=t.ngModule;if(i=ta(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=t}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 l of c)qo(l,e,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;ni(i.imports,u=>{qo(u,e,n,r)&&(l||=[],l.push(u))}),l!==void 0&&Pd(l,e)}if(!a){let l=vt(o)||(()=>new o);e({provide:o,useFactory:l,deps:oe},o),e({provide:_a,useValue:o,multi:!0},o),e({provide:Yt,useValue:()=>qe(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=t;ba(c,u=>{e(u,l)})}}else return!1;return o!==t&&t.providers!==void 0}function ba(t,e){for(let n of t)ha(n)&&(n=n.\u0275providers),Array.isArray(n)?ba(n,e):e(n)}var rv=V({provide:String,useValue:V});function Ld(t){return t!==null&&typeof t=="object"&&rv in t}function ov(t){return!!(t&&t.useExisting)}function iv(t){return!!(t&&t.useFactory)}function Wt(t){return typeof t=="function"}function Fd(t){return!!t.useClass}var Sa=new P(""),$o={},Dd={},ea;function An(){return ea===void 0&&(ea=new Nn),ea}var De=class{},Qt=class extends De{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,sa(e,s=>this.processProvider(s)),this.records.set(Er,Mn(void 0,this)),o.has("environment")&&this.records.set(De,Mn(void 0,this));let i=this.records.get(Sa);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(_a,oe,{self:!0}))}retrieve(e,n){let r=Gt(n)||0;try{return this.get(e,zt,r)}catch(o){if(In(o))return o;throw o}}destroy(){fr(this),this._destroyed=!0;let e=D(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(),D(e)}}onDestroy(e){return fr(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){fr(this);let n=Be(this),r=ce(void 0),o;try{return e()}finally{Be(n),ce(r)}}get(e,n=zt,r){if(fr(this),e.hasOwnProperty(Id))return e[Id](this);let o=Gt(r),i,s=Be(this),a=ce(void 0);try{if(!(o&4)){let l=this.records.get(e);if(l===void 0){let u=uv(e)&&Jo(e);u&&this.injectableDefInScope(u)?l=Mn(ia(e),$o):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l,o)}let c=o&2?An():this.parent;return n=o&8&&n===zt?null:n,c.get(e,n)}catch(c){let l=Zy(c);throw l===-200||l===-201?new g(l,null):c}finally{ce(a),Be(s)}}resolveInjectorInitializers(){let e=D(null),n=Be(this),r=ce(void 0),o;try{let i=this.get(Yt,oe,{self:!0});for(let s of i)s()}finally{Be(n),ce(r),D(e)}}toString(){return"R3Injector[...]"}processProvider(e){e=Y(e);let n=Wt(e)?e:Y(e&&e.provide),r=av(e);if(!Wt(e)&&e.multi===!0){let o=this.records.get(n);o||(o=Mn(void 0,$o,!0),o.factory=()=>oa(o.multi),this.records.set(n,o)),n=e,o.multi.push(e)}this.records.set(n,r)}hydrate(e,n,r){let o=D(null);try{if(n.value===Dd)throw Ea("");return n.value===$o&&(n.value=Dd,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&lv(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{D(o)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=Y(e.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(e){let n=this._onDestroyHooks.indexOf(e);n!==-1&&this._onDestroyHooks.splice(n,1)}};function ia(t){let e=Jo(t),n=e!==null?e.factory:vt(t);if(n!==null)return n;if(t instanceof P)throw new g(-204,!1);if(t instanceof Function)return sv(t);throw new g(-204,!1)}function sv(t){if(t.length>0)throw new g(-204,!1);let n=Wy(t);return n!==null?()=>n.factory(t):()=>new t}function av(t){if(Ld(t))return Mn(void 0,t.useValue);{let e=Ca(t);return Mn(e,$o)}}function Ca(t,e,n){let r;if(Wt(t)){let o=Y(t);return vt(o)||ia(o)}else if(Ld(t))r=()=>Y(t.useValue);else if(iv(t))r=()=>t.useFactory(...oa(t.deps||[]));else if(ov(t))r=(o,i)=>qe(Y(t.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Y(t&&(t.useClass||t.provide));if(cv(t))r=()=>new o(...oa(t.deps));else return vt(o)||ia(o)}return r}function fr(t){if(t.destroyed)throw new g(-205,!1)}function Mn(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function cv(t){return!!t.deps}function lv(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function uv(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function sa(t,e){for(let n of t)Array.isArray(n)?sa(n,e):n&&ha(n)?sa(n.\u0275providers,e):e(n)}function ii(t,e){let n;t instanceof Qt?(fr(t),n=t):n=new ra(t);let r,o=Be(n),i=ce(void 0);try{return e()}finally{Be(o),ce(i)}}function jd(){return Nd()!==void 0||fo()!=null}var ke=0,E=1,b=2,J=3,_e=4,ie=5,Jt=6,kn=7,W=8,Ge=9,We=10,H=11,Rn=12,Ma=13,Tt=14,le=15,wt=16,Xt=17,Qe=18,Ke=19,Na=20,rt=21,si=22,Et=23,ve=24,en=25,Ze=26,U=27,Vd=1,xa=6,bt=7,Ir=8,tn=9,z=10;function it(t){return Array.isArray(t)&&typeof t[Vd]=="object"}function Te(t){return Array.isArray(t)&&t[Vd]===!0}function Aa(t){return(t.flags&4)!==0}function st(t){return t.componentOffset>-1}function On(t){return(t.flags&1)===1}function Re(t){return!!t.template}function Pn(t){return(t[b]&512)!==0}function nn(t){return(t[b]&256)===256}var ka="svg",Hd="math";function we(t){for(;Array.isArray(t);)t=t[ke];return t}function Ra(t,e){return we(e[t])}function be(t,e){return we(e[t.index])}function ai(t,e){return t.data[e]}function Oa(t,e){return t[e]}function Pa(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function Se(t,e){let n=e[t];return it(n)?n:n[ke]}function Bd(t){return(t[b]&4)===4}function ci(t){return(t[b]&128)===128}function $d(t){return Te(t[J])}function Ee(t,e){return e==null?null:t[e]}function La(t){t[Xt]=0}function Fa(t){t[b]&1024||(t[b]|=1024,ci(t)&&rn(t))}function Ud(t,e){for(;t>0;)e=e[Tt],t--;return e}function Dr(t){return!!(t[b]&9216||t[ve]?.dirty)}function li(t){t[We].changeDetectionScheduler?.notify(8),t[b]&64&&(t[b]|=1024),Dr(t)&&rn(t)}function rn(t){t[We].changeDetectionScheduler?.notify(0);let e=ot(t);for(;e!==null&&!(e[b]&8192||(e[b]|=8192,!ci(e)));)e=ot(e)}function ui(t,e){if(nn(t))throw new g(911,!1);t[rt]===null&&(t[rt]=[]),t[rt].push(e)}function qd(t,e){if(t[rt]===null)return;let n=t[rt].indexOf(e);n!==-1&&t[rt].splice(n,1)}function ot(t){let e=t[J];return Te(e)?e[J]:e}function ja(t){return t[kn]??=[]}function Va(t){return t.cleanup??=[]}function zd(t,e,n,r){let o=ja(e);o.push(n),t.firstCreatePass&&Va(t).push(r,o.length-1)}var M={lFrame:af(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var aa=!1;function Gd(){return M.lFrame.elementDepthCount}function Wd(){M.lFrame.elementDepthCount++}function Ha(){M.lFrame.elementDepthCount--}function di(){return M.bindingsEnabled}function Ba(){return M.skipHydrationRootTNode!==null}function $a(t){return M.skipHydrationRootTNode===t}function Ua(){M.skipHydrationRootTNode=null}function w(){return M.lFrame.lView}function B(){return M.lFrame.tView}function Qd(t){return M.lFrame.contextLView=t,t[W]}function Kd(t){return M.lFrame.contextLView=null,t}function Q(){let t=qa();for(;t!==null&&t.type===64;)t=t.parent;return t}function qa(){return M.lFrame.currentTNode}function Zd(){let t=M.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Ln(t,e){let n=M.lFrame;n.currentTNode=t,n.isParent=e}function za(){return M.lFrame.isParent}function Ga(){M.lFrame.isParent=!1}function Yd(){return M.lFrame.contextLView}function Wa(){return aa}function hr(t){let e=aa;return aa=t,e}function Jd(){let t=M.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Xd(){return M.lFrame.bindingIndex}function ef(t){return M.lFrame.bindingIndex=t}function on(){return M.lFrame.bindingIndex++}function fi(t){let e=M.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function tf(){return M.lFrame.inI18n}function nf(t,e){let n=M.lFrame;n.bindingIndex=n.bindingRootIndex=t,pi(e)}function rf(){return M.lFrame.currentDirectiveIndex}function pi(t){M.lFrame.currentDirectiveIndex=t}function of(t){let e=M.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function hi(){return M.lFrame.currentQueryIndex}function _r(t){M.lFrame.currentQueryIndex=t}function dv(t){let e=t[E];return e.type===2?e.declTNode:e.type===1?t[ie]:null}function Qa(t,e,n){if(n&4){let o=e,i=t;for(;o=o.parent,o===null&&!(n&1);)if(o=dv(i),o===null||(i=i[Tt],o.type&10))break;if(o===null)return!1;e=o,t=i}let r=M.lFrame=sf();return r.currentTNode=e,r.lView=t,!0}function mi(t){let e=sf(),n=t[E];M.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function sf(){let t=M.lFrame,e=t===null?null:t.child;return e===null?af(t):e}function af(t){let e={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:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function cf(){let t=M.lFrame;return M.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Ka=cf;function gi(){let t=cf();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function lf(t){return(M.lFrame.contextLView=Ud(t,M.lFrame.contextLView))[W]}function Ye(){return M.lFrame.selectedIndex}function St(t){M.lFrame.selectedIndex=t}function Tr(){let t=M.lFrame;return ai(t.tView,t.selectedIndex)}function uf(){M.lFrame.currentNamespace=ka}function df(){fv()}function fv(){M.lFrame.currentNamespace=null}function Za(){return M.lFrame.currentNamespace}var ff=!0;function yi(){return ff}function wr(t){ff=t}function ca(t,e=null,n=null,r){let o=pf(t,e,n,r);return o.resolveInjectorInitializers(),o}function pf(t,e=null,n=null,r,o=new Set){let i=[n||oe,Od(t)],s;return new Qt(i,e||An(),s||null,o)}var ze=class t{static THROW_IF_NOT_FOUND=zt;static NULL=new Nn;static create(e,n){if(Array.isArray(e))return ca({name:""},n,e,"");{let r=e.name??"";return ca({name:r},e.parent,e.providers,r)}}static \u0275prov=fe({token:t,providedIn:"any",factory:()=>qe(Er)});static __NG_ELEMENT_ID__=-1},vi=new P(""),sn=(()=>{class t{static __NG_ELEMENT_ID__=pv;static __NG_ENV_ID__=n=>n}return t})(),zo=class extends sn{_lView;constructor(e){super(),this._lView=e}get destroyed(){return nn(this._lView)}onDestroy(e){let n=this._lView;return ui(n,e),()=>qd(n,e)}};function pv(){return new zo(w())}var Ya=!1,hf=new P(""),Ct=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new ir(!1);debugTaskTracker=S(hf,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new k(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=fe({token:t,providedIn:"root",factory:()=>new t})}return t})(),la=class extends ye{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,jd()&&(this.destroyRef=S(sn,{optional:!0})??void 0,this.pendingTasks=S(Ct,{optional:!0})??void 0)}emit(e){let n=D(null);try{super.next(e)}finally{D(n)}}subscribe(e,n,r){let o=e,i=n||(()=>null),s=r;if(e&&typeof e=="object"){let c=e;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 e instanceof $&&e.add(a),a}wrapInTimeout(e){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{e(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},nt=la;function Go(...t){}function Ja(t){let e,n;function r(){t=Go;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),e!==void 0&&clearTimeout(e)}catch(o){}}return e=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{t(),r()})),()=>r()}function mf(t){return queueMicrotask(()=>t()),()=>{t=Go}}var Xa="isAngularZone",mr=Xa+"_ID",hv=0,ne=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new nt(!1);onMicrotaskEmpty=new nt(!1);onStable=new nt(!1);onError=new nt(!1);constructor(e){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Ya}=e;if(typeof Zone>"u")throw new g(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,yv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Xa)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new g(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new g(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,mv,Go,Go);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}},mv={};function ec(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function gv(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){Ja(()=>{t.callbackScheduled=!1,ua(t),t.isCheckStableRunning=!0,ec(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),ua(t)}function yv(t){let e=()=>{gv(t)},n=hv++;t._inner=t._inner.fork({name:"angular",properties:{[Xa]:!0,[mr]:n,[mr+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(vv(c))return r.invokeTask(i,s,a,c);try{return _d(t),r.invokeTask(i,s,a,c)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Td(t)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return _d(t),r.invoke(i,s,a,c,l)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!Ev(c)&&e(),Td(t)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,ua(t),ec(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function ua(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function _d(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Td(t){t._nesting--,ec(t)}var gr=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new nt;onMicrotaskEmpty=new nt;onStable=new nt;onError=new nt;run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,o){return e.apply(n,r)}};function vv(t){return gf(t,"__ignore_ng_zone__")}function Ev(t){return gf(t,"__scheduler_tick__")}function gf(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var Kt=class{_console=console;handleError(e){this._console.error("ERROR",e)}},Mt=new P("",{factory:()=>{let t=S(ne),e=S(De),n;return r=>{t.runOutsideAngular(()=>{e.destroyed&&!n?setTimeout(()=>{throw r}):(n??=e.get(Kt),n.handleError(r))})}}}),yf={provide:Yt,useValue:()=>{let t=S(Kt,{optional:!0})},multi:!0};function tc(t,e){let[n,r,o]=Rs(t,e?.equal),i=n,s=i[Z];return i.set=r,i.update=o,i.asReadonly=vf.bind(i),i}function vf(){let t=this[Z];if(t.readonlyFn===void 0){let e=()=>this();e[Z]=t,t.readonlyFn=e}return t.readonlyFn}var Ef=new P("",{factory:()=>Iv}),Iv="ng";var If=new P(""),Dv=new P("",{providedIn:"platform",factory:()=>"unknown"}),_v=new P(""),Tv=new P("",{factory:()=>S(vi).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Fn=(()=>{class t{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=wv}return t})();function wv(){return new Fn(w(),Q())}var Ae=class{},jn=new P("",{factory:()=>!0});var Ei=new P(""),Ii=(()=>{class t{static \u0275prov=fe({token:t,providedIn:"root",factory:()=>new da})}return t})(),da=class{dirtyEffectCount=0;queues=new Map;add(e){this.enqueue(e),this.schedule(e)}schedule(e){e.dirty&&this.dirtyEffectCount++}remove(e){let n=e.zone,r=this.queues.get(n);r.has(e)&&(r.delete(e),e.dirty&&this.dirtyEffectCount--)}enqueue(e){let n=e.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(e)||r.add(e)}flush(){for(;this.dirtyEffectCount>0;){let e=!1;for(let[n,r]of this.queues)n===null?e||=this.flushQueue(r):e||=n.run(()=>this.flushQueue(r));e||(this.dirtyEffectCount=0)}}flushQueue(e){let n=!1;for(let r of e)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},Wo=class{[Z];constructor(e){this[Z]=e}destroy(){this[Z].destroy()}};function bv(t,e){let n=e?.injector??S(ze),r=e?.manualCleanup!==!0?n.get(sn):null,o,i=n.get(Fn,null,{optional:!0}),s=n.get(Ae);return i!==null?(o=Mv(i.view,s,t),r instanceof zo&&r._lView===i.view&&(r=null)):o=Nv(t,n.get(Ii),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Wo(o)}var Df=ee(G({},Ps),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let t=hr(!1);try{Ls(this)}finally{hr(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=D(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],D(t)}}}),Sv=ee(G({},Df),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(ht(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.scheduler.remove(this)}}),Cv=ee(G({},Df),{consumerMarkedDirty(){this.view[b]|=8192,rn(this.view),this.notifier.notify(13)},destroy(){if(ht(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.view[Et]?.delete(this)}});function Mv(t,e,n){let r=Object.create(Cv);return r.view=t,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=e,r.fn=_f(r,n),t[Et]??=new Set,t[Et].add(r),r.consumerMarkedDirty(r),r}function Nv(t,e,n){let r=Object.create(Sv);return r.fn=_f(r,t),r.scheduler=e,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function _f(t,e){return()=>{e(n=>(t.cleanupFns??=[]).push(n))}}function Tf(t){return typeof t=="function"&&t[Z]!==void 0}var wf=(()=>{class t{internalPendingTasks=S(Ct);scheduler=S(Ae);errorHandler=S(Mt);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();try{n().catch(this.errorHandler).finally(r)}catch(o){this.errorHandler(o),r()}}static \u0275prov=fe({token:t,providedIn:"root",factory:()=>new t})}return t})();function Fr(t){return{toString:t}.toString()}var O=(function(t){return t[t.TemplateCreateStart=0]="TemplateCreateStart",t[t.TemplateCreateEnd=1]="TemplateCreateEnd",t[t.TemplateUpdateStart=2]="TemplateUpdateStart",t[t.TemplateUpdateEnd=3]="TemplateUpdateEnd",t[t.LifecycleHookStart=4]="LifecycleHookStart",t[t.LifecycleHookEnd=5]="LifecycleHookEnd",t[t.OutputStart=6]="OutputStart",t[t.OutputEnd=7]="OutputEnd",t[t.BootstrapApplicationStart=8]="BootstrapApplicationStart",t[t.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",t[t.BootstrapComponentStart=10]="BootstrapComponentStart",t[t.BootstrapComponentEnd=11]="BootstrapComponentEnd",t[t.ChangeDetectionStart=12]="ChangeDetectionStart",t[t.ChangeDetectionEnd=13]="ChangeDetectionEnd",t[t.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",t[t.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",t[t.AfterRenderHooksStart=16]="AfterRenderHooksStart",t[t.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",t[t.ComponentStart=18]="ComponentStart",t[t.ComponentEnd=19]="ComponentEnd",t[t.DeferBlockStateStart=20]="DeferBlockStateStart",t[t.DeferBlockStateEnd=21]="DeferBlockStateEnd",t[t.DynamicComponentStart=22]="DynamicComponentStart",t[t.DynamicComponentEnd=23]="DynamicComponentEnd",t[t.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",t[t.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",t})(O||{}),Mi=class{previousValue;currentValue;firstChange;constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function lp(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}var up=null,Uv=(()=>{up=bf;let t=()=>bf;return t.ngInherit=!0,t})();function qv(){return up}function bf(t){return t.type.prototype.ngOnChanges&&(t.setInput=Gv),zv}function zv(){let t=dp(this),e=t?.current;if(e){let n=t.previous;if(n===_t)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function Gv(t,e,n,r,o){let i=this.declaredInputs[r],s=dp(t)||Wv(t,{previous:_t,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new Mi(l&&l.currentValue,n,c===_t),lp(t,e,o,n)}var pc="__ngSimpleChanges__";function dp(t){return Object.hasOwn(t,pc)&&t[pc]||null}function Wv(t,e){return t[pc]=e}var Sf=[];var F=function(t,e=null,n){for(let r=0;r<Sf.length;r++){let o=Sf[r];o(t,e,n)}};function Qv(t,e,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(r){let s=qv()(e);(n.preOrderHooks??=[]).push(t,s),(n.preOrderCheckHooks??=[]).push(t,s)}o&&(n.preOrderHooks??=[]).push(0-t,o),i&&((n.preOrderHooks??=[]).push(t,i),(n.preOrderCheckHooks??=[]).push(t,i))}function fp(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){let i=t.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(t.contentHooks??=[]).push(-n,s),a&&((t.contentHooks??=[]).push(n,a),(t.contentCheckHooks??=[]).push(n,a)),c&&(t.viewHooks??=[]).push(-n,c),l&&((t.viewHooks??=[]).push(n,l),(t.viewCheckHooks??=[]).push(n,l)),u!=null&&(t.destroyHooks??=[]).push(n,u)}}function wi(t,e,n){pp(t,e,3,n)}function bi(t,e,n,r){(t[b]&3)===n&&pp(t,e,n,r)}function nc(t,e){let n=t[b];(n&3)===e&&(n&=16383,n+=1,t[b]=n)}function pp(t,e,n,r){let o=r!==void 0?t[Xt]&65535:0,i=r??-1,s=e.length-1,a=0;for(let c=o;c<s;c++)if(typeof e[c+1]=="number"){if(a=e[c],r!=null&&a>=r)break}else e[c]<0&&(t[Xt]+=65536),(a<i||i==-1)&&(Kv(t,n,e,c),t[Xt]=(t[Xt]&4294901760)+c+2),c++}function Cf(t,e){F(O.LifecycleHookStart,t,e);let n=D(null);try{e.call(t)}finally{D(n),F(O.LifecycleHookEnd,t,e)}}function Kv(t,e,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=t[s];o?t[b]>>14<t[Xt]>>16&&(t[b]&3)===e&&(t[b]+=16384,Cf(a,i)):Cf(a,i)}var Hn=-1,cn=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,n,r,o){this.factory=e,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function Zv(t){return(t.flags&8)!==0}function Yv(t){return(t.flags&16)!==0}function Jv(t,e,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++];t.setAttribute(e,s,a,i)}else{let i=o,s=n[++r];Xv(i)?t.setProperty(e,i,s):t.setAttribute(e,i,s),r++}}return r}function hp(t){return t===3||t===4||t===6}function Xv(t){return t.charCodeAt(0)===64}function Bn(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){let o=e[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?Mf(t,n,o,null,e[++r]):Mf(t,n,o,null,null))}}return t}function Mf(t,e,n,r,o){let i=0,s=t.length;if(e===-1)s=-1;else for(;i<t.length;){let a=t[i++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=i-1;break}}}for(;i<t.length;){let a=t[i];if(typeof a=="number")break;if(a===n){o!==null&&(t[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(t.splice(s,0,e),i=s+1),t.splice(i++,0,n),o!==null&&t.splice(i++,0,o)}function mp(t){return t!==Hn}function Ni(t){return t&32767}function eE(t){return t>>16}function xi(t,e){let n=eE(t),r=e;for(;n>0;)r=r[Tt],n--;return r}var hc=!0;function Ai(t){let e=hc;return hc=t,e}var tE=256,gp=tE-1,yp=5,nE=0,Je={};function rE(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Zt)&&(r=n[Zt]),r==null&&(r=n[Zt]=nE++);let o=r&gp,i=1<<o;e.data[t+(o>>yp)]|=i}function ki(t,e){let n=vp(t,e);if(n!==-1)return n;let r=e[E];r.firstCreatePass&&(t.injectorIndex=e.length,rc(r.data,t),rc(e,null),rc(r.blueprint,null));let o=Kc(t,e),i=t.injectorIndex;if(mp(o)){let s=Ni(o),a=xi(o,e),c=a[E].data;for(let l=0;l<8;l++)e[i+l]=a[s+l]|c[s+l]}return e[i+8]=o,i}function rc(t,e){t.push(0,0,0,0,0,0,0,0,e)}function vp(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Kc(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let n=0,r=null,o=e;for(;o!==null;){if(r=Tp(o),r===null)return Hn;if(n++,o=o[Tt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Hn}function mc(t,e,n){rE(t,e,n)}function oE(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let n=t.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(hp(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===e)return n[o+1];o=o+2}}}return null}function Ep(t,e,n){if(n&8||t!==void 0)return t;ti(e,"NodeInjector")}function Ip(t,e,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=t[Ge],i=ce(void 0);try{return o?o.get(e,r,n&8):Ia(e,r,n&8)}finally{ce(i)}}return Ep(r,e,n)}function Dp(t,e,n,r=0,o){if(t!==null){if(e[b]&2048&&!(r&2)){let s=lE(t,e,n,r,Je);if(s!==Je)return s}let i=_p(t,e,n,r,Je);if(i!==Je)return i}return Ip(e,n,r,o)}function _p(t,e,n,r,o){let i=sE(n);if(typeof i=="function"){if(!Qa(e,t,r))return r&1?Ep(o,n,r):Ip(e,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))ti(n);else return s}finally{Ka()}}else if(typeof i=="number"){let s=null,a=vp(t,e),c=Hn,l=r&1?e[le][ie]:null;for((a===-1||r&4)&&(c=a===-1?Kc(t,e):e[a+8],c===Hn||!xf(r,!1)?a=-1:(s=e[E],a=Ni(c),e=xi(c,e)));a!==-1;){let u=e[E];if(Nf(i,a,u.data)){let d=iE(a,e,n,s,r,l);if(d!==Je)return d}c=e[a+8],c!==Hn&&xf(r,e[E].data[a+8]===l)&&Nf(i,a,e)?(s=u,a=Ni(c),e=xi(c,e)):a=-1}}return o}function iE(t,e,n,r,o,i){let s=e[E],a=s.data[t+8],c=r==null?st(a)&&hc:r!=s&&(a.type&3)!==0,l=o&1&&i===a,u=Si(a,s,n,c,l);return u!==null?Nr(e,s,u,a,o):Je}function Si(t,e,n,r,o){let i=t.providerIndexes,s=e.data,a=i&1048575,c=t.directiveStart,l=t.directiveEnd,u=i>>20,d=r?a:a+u,p=o?a+u:l;for(let f=d;f<p;f++){let h=s[f];if(f<c&&n===h||f>=c&&h.type===n)return f}if(o){let f=s[c];if(f&&Re(f)&&f.type===n)return c}return null}function Nr(t,e,n,r,o){let i=t[n],s=e.data;if(i instanceof cn){let a=i;if(a.resolving)throw Ea("");let c=Ai(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],u,d=a.injectImpl?ce(a.injectImpl):null,p=Qa(t,r,0);try{i=t[n]=a.factory(void 0,o,s,t,r),e.firstCreatePass&&n>=r.directiveStart&&Qv(n,s[n],e)}finally{d!==null&&ce(d),Ai(c),a.resolving=!1,Ka()}}return i}function sE(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Zt)?t[Zt]:void 0;return typeof e=="number"?e>=0?e&gp:aE:e}function Nf(t,e,n){let r=1<<t;return!!(n[e+(t>>yp)]&r)}function xf(t,e){return!(t&2)&&!(t&1&&e)}var Nt=class{_tNode;_lView;constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return Dp(this._tNode,this._lView,e,Gt(r),n)}};function aE(){return new Nt(Q(),w())}function cE(t){return Fr(()=>{let e=t.prototype.constructor,n=e[pr]||gc(e),r=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){let i=o[pr]||gc(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function gc(t){return pa(t)?()=>{let e=gc(Y(t));return e&&e()}:vt(t)}function lE(t,e,n,r,o){let i=t,s=e;for(;i!==null&&s!==null&&s[b]&2048&&!Pn(s);){let a=_p(i,s,n,r|2,Je);if(a!==Je)return a;let c=i.parent;if(!c){let l=s[Na];if(l){let u=l.get(n,Je,r&-5);if(u!==Je)return u}c=Tp(s),s=s[Tt]}i=c}return o}function Tp(t){let e=t[E],n=e.type;return n===2?e.declTNode:n===1?t[ie]:null}function wp(t){return oE(Q(),t)}function Qn(t){return{token:t.token,providedIn:t.autoProvided===!1?null:"root",factory:t.factory,value:void 0}}function uE(){return Kn(Q(),w())}function Kn(t,e){return new jr(be(t,e))}var jr=(()=>{class t{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=uE}return t})();function bp(t){return t instanceof jr?t.nativeElement:t}function dE(){return this._results[Symbol.iterator]()}var Ri=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 ye}constructor(e=!1){this._emitDistinctChangesOnly=e}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){this.dirty=!1;let r=Ad(e);(this._changesDetected=!xd(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(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=dE};function Sp(t){return(t.flags&128)===128}var Zc=(function(t){return t[t.OnPush=0]="OnPush",t[t.Eager=1]="Eager",t[t.Default=1]="Default",t})(Zc||{}),Cp=new Map,fE=0;function pE(){return fE++}function hE(t){Cp.set(t[Ke],t)}function yc(t){Cp.delete(t[Ke])}var Af="__ngContext__";function $n(t,e){it(e)?(t[Af]=e[Ke],hE(e)):t[Af]=e}function Mp(t){return xp(t[Rn])}function Np(t){return xp(t[_e])}function xp(t){for(;t!==null&&!Te(t);)t=t[_e];return t}var vc;function mE(t){vc=t}function Ap(){if(vc!==void 0)return vc;if(typeof document<"u")return document;throw new g(210,!1)}var kp="r";var Rp="di";var Op=!1,Pp=new P("",{factory:()=>Op});var kf=new WeakMap;function gE(t,e){if(t==null||typeof t!="object")return;let n=kf.get(t);n||(n=new WeakSet,kf.set(t,n)),n.add(e)}var yE=(t,e,n,r)=>{};function vE(t,e,n,r){yE(t,e,n,r)}function Qi(t){return(t.flags&32)===32}var EE=()=>null;function Lp(t,e,n=!1){return EE(t,e,n)}function Fp(t,e){let n=t.contentQueries;if(n!==null){let r=D(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=t.data[s];_r(i),a.contentQueries(2,e[s],s)}}}finally{D(r)}}}function Ec(t,e,n){_r(0);let r=D(null);try{e(t,n)}finally{D(r)}}function Yc(t,e,n){if(Aa(e)){let r=D(null);try{let o=e.directiveStart,i=e.directiveEnd;for(let s=o;s<i;s++){let a=t.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{D(r)}}}var ln=(function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t[t.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",t})(ln||{});var Di;function IE(){if(Di===void 0&&(Di=null,Dt.trustedTypes))try{Di=Dt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Di}function Ki(t){return IE()?.createHTML(t)||t}var at=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Qo})`}},Ic=class extends at{getTypeName(){return"HTML"}},Dc=class extends at{getTypeName(){return"Style"}},_c=class extends at{getTypeName(){return"Script"}},Tc=class extends at{getTypeName(){return"URL"}},wc=class extends at{getTypeName(){return"ResourceURL"}};function Jc(t){return t instanceof at?t.changingThisBreaksApplicationSecurity:t}function DE(t,e){let n=jp(t);if(n!=null&&n!==e){if(n==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${Qo})`)}return n===e}function jp(t){return t instanceof at&&t.getTypeName()||null}function _E(t){return new Ic(t)}function TE(t){return new Dc(t)}function wE(t){return new _c(t)}function bE(t){return new Tc(t)}function SE(t){return new wc(t)}function CE(t){let e=new Sc(t);return ME()?new bc(e):e}var bc=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let n=new window.DOMParser().parseFromString(Ki(e),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(e):(n.firstChild?.remove(),n)}catch(n){return null}}},Sc=class{defaultDoc;inertDocument;constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let n=this.inertDocument.createElement("template");return n.innerHTML=Ki(e),n}};function ME(){try{return!!new window.DOMParser().parseFromString(Ki(""),"text/html")}catch(t){return!1}}var NE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Vp(t){return t=String(t),t.match(NE)?t:"unsafe:"+t}function ct(t){let e={};for(let n of t.split(","))e[n]=!0;return e}function Vr(...t){let e={};for(let n of t)for(let r in n)n.hasOwnProperty(r)&&(e[r]=!0);return e}var Hp=ct("area,br,col,hr,img,wbr"),Bp=ct("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),$p=ct("rp,rt"),xE=Vr($p,Bp),AE=Vr(Bp,ct("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),kE=Vr($p,ct("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Rf=Vr(Hp,AE,kE,xE),Up=ct("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),RE=ct("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),OE=ct("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),PE=Vr(Up,RE,OE),LE=ct("script,style,template"),Cc=class{sanitizedSomething=!1;buf=[];sanitizeChildren(e){let n=e.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=VE(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=jE(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(e){let n=Of(e).toLowerCase();if(!Rf.hasOwnProperty(n))return this.sanitizedSomething=!0,!LE.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=e.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!PE.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=i.value;Up[a]&&(c=Vp(c)),this.buf.push(" ",s,'="',Pf(c),'"')}return this.buf.push(">"),!0}endElement(e){let n=Of(e).toLowerCase();Rf.hasOwnProperty(n)&&!Hp.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(e){this.buf.push(Pf(e))}};function FE(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function jE(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw qp(e);return e}function VE(t){let e=t.firstChild;if(e&&FE(t,e))throw qp(e);return e}function Of(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function qp(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var HE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,BE=/([^\#-~ |!])/g;function Pf(t){return t.replace(/&/g,"&amp;").replace(HE,function(e){let n=e.charCodeAt(0),r=e.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(BE,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var _i;function $E(t,e){let n=null;try{_i=_i||CE(t);let r=e?String(e):"";n=_i.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=_i.getInertBodyElement(r)}while(r!==i);let a=new Cc().sanitizeChildren(Lf(n)||n);return Ki(a)}finally{if(n){let r=Lf(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Lf(t){return"content"in t&&UE(t)?t.content:null}function UE(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var qE=/^>|^->|<!--|-->|--!>|<!-$/g,zE=/(<|>)/g,GE="\u200B$1\u200B";function WE(t){return t.replace(qE,e=>e.replace(zE,GE))}function QE(t,e){return t.createText(e)}function KE(t,e,n){t.setValue(e,n)}function ZE(t,e){return t.createComment(WE(e))}function zp(t,e,n){return t.createElement(e,n)}function Oi(t,e,n,r,o){t.insertBefore(e,n,r,o)}function Gp(t,e,n){t.appendChild(e,n)}function Ff(t,e,n,r,o){r!==null?Oi(t,e,n,r,o):Gp(t,e,n)}function Wp(t,e,n,r){t.removeChild(null,e,n,r)}function YE(t,e,n){t.setAttribute(e,"style",n)}function JE(t,e,n){n===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n)}function Qp(t,e,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Jv(t,e,r),o!==null&&JE(t,e,o),i!==null&&YE(t,e,i)}var Kp=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})(Kp||{});function XE(t){return t.ownerDocument}function eI(t,e,n){let r=t.length;for(;;){let o=t.indexOf(e,n);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let i=e.length;if(o+i===r||t.charCodeAt(o+i)<=32)return o}n=o+1}}var Zp="ng-template";function tI(t,e,n,r){let o=0;if(r){for(;o<e.length&&typeof e[o]=="string";o+=2)if(e[o]==="class"&&eI(e[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Xc(t))return!1;if(o=e.indexOf(1,o),o>-1){let i;for(;++o<e.length&&typeof(i=e[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function Xc(t){return t.type===4&&t.value!==Zp}function nI(t,e,n){let r=t.type===4&&!n?Zp:t.value;return e===r}function rI(t,e,n){let r=4,o=t.attrs,i=o!==null?sI(o):0,s=!1;for(let a=0;a<e.length;a++){let c=e[a];if(typeof c=="number"){if(!s&&!Oe(r)&&!Oe(c))return!1;if(s&&Oe(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!nI(t,c,n)||c===""&&e.length===1){if(Oe(r))return!1;s=!0}}else if(r&8){if(o===null||!tI(t,o,c,n)){if(Oe(r))return!1;s=!0}}else{let l=e[++a],u=oI(c,o,Xc(t),n);if(u===-1){if(Oe(r))return!1;s=!0;continue}if(l!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(Oe(r))return!1;s=!0}}}}return Oe(r)||s}function Oe(t){return(t&1)===0}function oI(t,e,n,r){if(e===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<e.length;){let s=e[o];if(s===t)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=e[++o];for(;typeof a=="string";)a=e[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return aI(e,t)}function Yp(t,e,n=!1){for(let r=0;r<e.length;r++)if(rI(t,e[r],n))return!0;return!1}function iI(t){let e=t.attrs;if(e!=null){let n=e.indexOf(5);if((n&1)===0)return e[n+1]}return null}function sI(t){for(let e=0;e<t.length;e++){let n=t[e];if(hp(n))return e}return t.length}function aI(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){let r=t[n];if(typeof r=="number")return-1;if(r===e)return n;n++}return-1}function cI(t,e){e:for(let n=0;n<e.length;n++){let r=e[n];if(t.length===r.length){for(let o=0;o<t.length;o++)if(t[o]!==r[o])continue e;return!0}}return!1}function jf(t,e){return t?":not("+e.trim()+")":e}function lI(t){let e=t[0],n=1,r=2,o="",i=!1;for(;n<t.length;){let s=t[n];if(typeof s=="string")if(r&2){let a=t[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Oe(s)&&(e+=jf(i,o),o=""),r=s,i=i||!Oe(r);n++}return o!==""&&(e+=jf(i,o)),e}function uI(t){return t.map(lI).join(",")}function dI(t){let e=[],n=[],r=1,o=2;for(;r<t.length;){let i=t[r];if(typeof i=="string")o===2?i!==""&&e.push(i,t[++r]):o===8&&n.push(i);else{if(!Oe(o))break;o=i}r++}return n.length&&e.push(1,...n),e}var pe={},Pi=(function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t})(Pi||{}),fI;function el(t,e){return fI(t,e)}var DO=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var Mc=new WeakMap;function Jp(t){return t?t[Tt]??t:null}var Sr=new WeakSet;function pI(t,e,n){let r=Mc.get(t);if(!r||r.length===0)return;let o=e.parentNode,i=e.previousSibling,s=Jp(n);for(let a=r.length-1;a>=0;a--){let{el:c,declarationView:l}=r[a],u=c.parentNode;c===e?(r.splice(a,1),Sr.add(c),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):i&&c===i?(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),c.parentNode?.removeChild(c)):u&&o&&u!==o&&(s===null||l===null||s===l)&&(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),c.parentNode?.removeChild(c))}}function hI(t,e,n){let r=Jp(n),o=Mc.get(t);o?o.some(i=>i.el===e)||o.push({el:e,declarationView:r}):Mc.set(t,[{el:e,declarationView:r}])}var Un=new Set,Zi=(function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t})(Zi||{}),fn=new P(""),Vf=new Set;function lt(t){Vf.has(t)||(Vf.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var Yi=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=fe({token:t,providedIn:"root",factory:()=>new t})}return t})(),tl=[0,1,2,3],nl=(()=>{class t{ngZone=S(ne);scheduler=S(Ae);errorHandler=S(Kt,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){S(fn,{optional:!0})}execute(){let n=this.sequences.size>0;n&&F(O.AfterRenderHooksStart),this.executing=!0;for(let r of tl)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&&F(O.AfterRenderHooksEnd)}register(n){let{view:r}=n;r!==void 0?((r[en]??=[]).push(n),rn(r),r[b]|=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(Zi.AFTER_NEXT_RENDER,n):n()}static \u0275prov=fe({token:t,providedIn:"root",factory:()=>new t})}return t})(),xr=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(e,n,r,o,i,s=null){this.impl=e,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 e=this.view?.[en];e&&(this.view[en]=e.filter(n=>n!==this))}};function mI(t,e){let n=e?.injector??S(ze);return lt("NgAfterNextRender"),yI(t,n,e,!0)}function gI(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function yI(t,e,n,r){let o=e.get(Yi);o.impl??=e.get(nl);let i=e.get(fn,null,{optional:!0}),s=n?.manualCleanup!==!0?e.get(sn):null,a=e.get(Fn,null,{optional:!0}),c=new xr(o.impl,gI(t),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var rl=new P("",{factory:()=>{let t=S(De),e=new Set;return t.onDestroy(()=>e.clear()),{queue:e,isScheduled:!1,scheduler:null,injector:t}}});function Xp(t,e,n){let r=t.get(rl);if(Array.isArray(e))for(let o of e)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(e),n?.detachedLeaveAnimationFns?.push(e);r.scheduler&&r.scheduler(t)}function vI(t,e){let n=t.get(rl);if(Array.isArray(e))for(let r of e)n.queue.delete(r);else n.queue.delete(e)}function EI(t,e){let n=t.get(rl);if(e.detachedLeaveAnimationFns){for(let r of e.detachedLeaveAnimationFns)n.queue.delete(r);e.detachedLeaveAnimationFns=void 0}}function II(t,e){for(let[n,r]of e)Xp(t,r.animateFns)}function Hf(t,e,n,r){let o=t?.[Ze]?.enter;e!==null&&o&&o.has(n.index)&&II(r,o)}function Bf(t,e,n,r){try{n.get(Er)}catch(s){return r(!1)}let o=t?.[Ze];o?.enter?.has(e.index)&&vI(n,o.enter.get(e.index).animateFns);let i=DI(t,e,o);if(i.size===0){let s=!1;if(t){let a=[];Ji(t,e,a),s=a.length>0}if(!s)return r(!1)}t&&Un.add(t[Ke]),Xp(n,()=>_I(t,e,o||void 0,i,r),o||void 0)}function DI(t,e,n){let r=new Map,o=n?.leave;if(o&&o.has(e.index)&&r.set(e.index,o.get(e.index)),t&&o)for(let[i,s]of o){if(r.has(i))continue;let c=t[E].data[i].parent;for(;c;){if(c===e){r.set(i,s);break}c=c.parent}}return r}function _I(t,e,n,r,o){let i=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let c of a.animateFns){let{promise:l}=c();i.push(l)}n.detachedLeaveAnimationFns=void 0}if(t&&Ji(t,e,i),i.length>0){let s=n||t?.[Ze];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),wI(t,s.running,o)}else Promise.allSettled(i).then(()=>{t&&Un.delete(t[Ke]),o(!0)})}else t&&Un.delete(t[Ke]),o(!1)}function Ji(t,e,n){if(e.type&12){let o=t[e.index];if(Te(o))for(let i=z;i<o.length;i++){let s=o[i];s[E].type===2&&TI(s,n)}}let r=e.child;for(;r;)Ji(t,r,n),r=r.next}function TI(t,e){let n=t[Ze];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();e.push(s)}let r=t[E].firstChild;for(;r;)Ji(t,r,e),r=r.next}function wI(t,e,n){e.then(()=>{t[Ze]?.running===e&&(t[Ze].running=void 0,Un.delete(t[Ke])),n(!0)})}function Vn(t,e,n,r,o,i,s,a){if(o!=null){let c,l=!1;Te(o)?c=o:it(o)&&(l=!0,o=o[ke]);let u=we(o);t===0&&r!==null?(Hf(a,r,i,n),s==null?Gp(e,r,u):Oi(e,r,u,s||null,!0)):t===1&&r!==null?(Hf(a,r,i,n),Oi(e,r,u,s||null,!0),pI(i,u,a)):t===2?(a?.[Ze]?.leave?.has(i.index)&&hI(i,u,a),Sr.delete(u),Bf(a,i,n,d=>{if(Sr.has(u)){Sr.delete(u);return}Wp(e,u,l,d)})):t===3&&(Sr.delete(u),Bf(a,i,n,()=>{e.destroyNode(u)})),c!=null&&OI(e,t,n,c,i,r,s)}}function bI(t,e){eh(t,e),e[ke]=null,e[ie]=null}function SI(t,e,n,r,o,i){r[ke]=o,r[ie]=e,es(t,r,n,1,o,i)}function eh(t,e){e[We].changeDetectionScheduler?.notify(9),es(t,e,e[H],2,null,null)}function CI(t){let e=t[Rn];if(!e)return oc(t[E],t);for(;e;){let n=null;if(it(e))n=e[Rn];else{let r=e[z];r&&(n=r)}if(!n){for(;e&&!e[_e]&&e!==t;)it(e)&&oc(e[E],e),e=e[J];e===null&&(e=t),it(e)&&oc(e[E],e),n=e&&e[_e]}e=n}}function ol(t,e){let n=t[tn],r=n.indexOf(e);n.splice(r,1)}function Xi(t,e){if(nn(e))return;let n=e[H];n.destroyNode&&es(t,e,n,3,null,null),CI(e)}function oc(t,e){if(nn(e))return;let n=D(null);try{e[b]&=-129,e[b]|=256,e[ve]&&ht(e[ve]),NI(t,e),MI(t,e),e[E].type===1&&e[H].destroy();let r=e[wt];if(r!==null&&Te(e[J])){r!==e[J]&&ol(r,e);let o=e[Qe];o!==null&&o.detachView(t)}yc(e)}finally{D(n)}}function MI(t,e){let n=t.cleanup,r=e[kn];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&&(e[kn]=null);let o=e[rt];if(o!==null){e[rt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=e[Et];if(i!==null){e[Et]=null;for(let s of i)s.destroy()}}function NI(t,e){let n;if(t!=null&&(n=t.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=e[n[r]];if(!(o instanceof cn)){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];F(O.LifecycleHookStart,a,c);try{c.call(a)}finally{F(O.LifecycleHookEnd,a,c)}}else{F(O.LifecycleHookStart,o,i);try{i.call(o)}finally{F(O.LifecycleHookEnd,o,i)}}}}}function th(t,e,n){return xI(t,e.parent,n)}function xI(t,e,n){let r=e;for(;r!==null&&r.type&168;)e=r,r=e.parent;if(r===null)return n[ke];if(st(r)){let{encapsulation:o}=t.data[r.directiveStart+r.componentOffset];if(o===ln.None||o===ln.Emulated)return null}return be(r,n)}function nh(t,e,n){return kI(t,e,n)}function AI(t,e,n){return t.type&40?be(t,n):null}var kI=AI,$f;function il(t,e,n,r){let o=th(t,r,e),i=e[H],s=r.parent||e[ie],a=nh(s,r,e);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Ff(i,o,n[c],a,!1);else Ff(i,o,n,a,!1);$f!==void 0&&$f(i,r,e,n,o)}function Cr(t,e){if(e!==null){let n=e.type;if(n&3)return be(e,t);if(n&4)return Nc(-1,t[e.index]);if(n&8){let r=e.child;if(r!==null)return Cr(t,r);{let o=t[e.index];return Te(o)?Nc(-1,o):we(o)}}else{if(n&128)return Cr(t,e.next);if(n&32)return el(e,t)()||we(t[e.index]);{let r=rh(t,e);if(r!==null){if(Array.isArray(r))return r[0];let o=ot(t[le]);return Cr(o,r)}else return Cr(t,e.next)}}}return null}function rh(t,e){if(e!==null){let r=t[le][ie],o=e.projection;return r.projection[o]}return null}function Nc(t,e){let n=z+t+1;if(n<e.length){let r=e[n],o=r[E].firstChild;if(o!==null)return Cr(r,o)}return e[bt]}function sl(t,e,n,r,o,i,s){for(;n!=null;){let a=r[Ge];if(n.type===128){n=n.next;continue}let c=r[n.index],l=n.type;if(s&&e===0&&(c&&$n(we(c),r),n.flags|=2),!Qi(n))if(l&8)sl(t,e,n.child,r,o,i,!1),Vn(e,t,a,o,c,n,i,r);else if(l&32){let u=el(n,r),d;for(;d=u();)Vn(e,t,a,o,d,n,i,r);Vn(e,t,a,o,c,n,i,r)}else l&16?oh(t,e,r,n,o,i):Vn(e,t,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function es(t,e,n,r,o,i){sl(n,r,t.firstChild,e,o,i,!1)}function RI(t,e,n){let r=e[H],o=th(t,n,e),i=n.parent||e[ie],s=nh(i,n,e);oh(r,0,e,n,o,s)}function oh(t,e,n,r,o,i){let s=n[le],c=s[ie].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];Vn(e,t,n[Ge],o,u,r,i,n)}else{let l=c,u=s[J];Sp(r)&&(l.flags|=128),sl(t,e,l,u,o,i,!0)}}function OI(t,e,n,r,o,i,s){let a=r[bt],c=we(r);a!==c&&Vn(e,t,n,i,a,o,s);for(let l=z;l<r.length;l++){let u=r[l];es(u[E],u,t,e,i,a)}}function PI(t,e,n,r,o){if(e)o?t.addClass(n,r):t.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Pi.DashCase;o==null?t.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Pi.Important),t.setStyle(n,r,o,i))}}function al(t,e,n,r,o,i,s,a,c,l,u){let d=U+r,p=d+o,f=LI(d,p),h=typeof l=="function"?l():l;return f[E]={type:t,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:e,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,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:h,incompleteFirstPass:!1,ssrId:u}}function LI(t,e){let n=[];for(let r=0;r<e;r++)n.push(r<t?null:pe);return n}function FI(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=al(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function cl(t,e,n,r,o,i,s,a,c,l,u){let d=e.blueprint.slice();return d[ke]=o,d[b]=r|4|128|8|64|1024,(l!==null||t&&t[b]&2048)&&(d[b]|=2048),La(d),d[J]=d[Tt]=t,d[W]=n,d[We]=s||t&&t[We],d[H]=a||t&&t[H],d[Ge]=c||t&&t[Ge]||null,d[ie]=i,d[Ke]=pE(),d[Jt]=u,d[Na]=l,d[le]=e.type==2?t[le]:d,d}function jI(t,e,n){let r=be(e,t),o=FI(n),i=t[We].rendererFactory,s=ll(t,cl(t,o,null,ih(n),r,e,null,i.createRenderer(r,n),null,null,null));return t[e.index]=s}function ih(t){let e=16;return t.signals?e=4096:t.onPush&&(e=64),e}function sh(t,e,n,r){if(n===0)return-1;let o=e.length;for(let i=0;i<n;i++)e.push(r),t.blueprint.push(r),t.data.push(null);return o}function ll(t,e){return t[Rn]?t[Ma][_e]=e:t[Rn]=e,t[Ma]=e,e}function VI(t=1){ah(B(),w(),Ye()+t,!1)}function ah(t,e,n,r){if(!r)if((e[b]&3)===3){let i=t.preOrderCheckHooks;i!==null&&wi(e,i,n)}else{let i=t.preOrderHooks;i!==null&&bi(e,i,0,n)}St(n)}var ts=(function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t})(ts||{});function un(t,e,n,r){let o=D(null);try{let[i,s,a]=t.inputs[n],c=null;(s&ts.SignalBased)!==0&&(c=e[i][Z]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(e,r)),t.setInput!==null?t.setInput(e,c,r,n,i):lp(e,c,i,r)}finally{D(o)}}function ch(t,e,n,r,o){let i=Ye(),s=r&2;try{St(-1),s&&e.length>U&&ah(t,e,U,!1);let a=s?O.TemplateUpdateStart:O.TemplateCreateStart;F(a,o,n),n(r,o)}finally{St(i);let a=s?O.TemplateUpdateEnd:O.TemplateCreateEnd;F(a,o,n)}}function ns(t,e,n){GI(t,e,n),(n.flags&64)===64&&WI(t,e,n)}function Hr(t,e,n=be){let r=e.localNames;if(r!==null){let o=e.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(e,t):t[s];t[o++]=a}}}function HI(t,e,n,r){let i=r.get(Pp,Op)||n===ln.ShadowDom||n===ln.ExperimentalIsolatedShadowDom,s=t.selectRootElement(e,i);return BI(s),s}function BI(t){$I(t)}var $I=()=>null;function UI(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function qI(t,e,n,r,o,i){let s=e[E];if(pl(t,s,e,n,r)){st(t)&&zI(e,t.index);return}t.type&3&&(n=UI(n)),lh(t,e,n,r,o,i)}function lh(t,e,n,r,o,i){if(t.type&3){let s=be(t,e);r=i!=null?i(r,t.value||"",n):r,o.setProperty(s,n,r)}else t.type&12}function zI(t,e){let n=Se(e,t);n[b]&16||(n[b]|=64)}function GI(t,e,n){let r=n.directiveStart,o=n.directiveEnd;st(n)&&jI(e,n,t.data[r+n.componentOffset]),t.firstCreatePass||ki(n,e);let i=n.initialInputs;for(let s=r;s<o;s++){let a=t.data[s],c=Nr(e,t,s,n);if($n(c,e),i!==null&&YI(e,s-r,c,a,n,i),Re(a)){let l=Se(n.index,e);l[W]=Nr(e,t,s,n)}}}function WI(t,e,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=rf();try{St(i);for(let a=r;a<o;a++){let c=t.data[a],l=e[a];pi(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&QI(c,l)}}finally{St(-1),pi(s)}}function QI(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function ul(t,e){let n=t.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Yp(e,i.selectors,!1)&&(r??=[],Re(i)?r.unshift(i):r.push(i))}return r}function KI(t,e,n,r,o,i){let s=be(t,e);ZI(e[H],s,i,t.value,n,r,o)}function ZI(t,e,n,r,o,i,s){if(i==null)s?.(i,r||"",o),t.removeAttribute(e,o,n);else{let a=s==null?yr(i):s(i,r||"",o);t.setAttribute(e,o,a,n)}}function YI(t,e,n,r,o,i){let s=i[e];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];un(r,n,c,l)}}function dl(t,e,n,r,o){let i=U+n,s=e[E],a=o(s,e,t,r,n);e[i]=a,Ln(t,!0);let c=t.type===2;return c?(Qp(e[H],a,t),(Gd()===0||On(t))&&$n(a,e),Wd()):$n(a,e),yi()&&(!c||!Qi(t))&&il(s,e,a,t),t}function fl(t){let e=t;return za()?Ga():(e=e.parent,Ln(e,!1)),e}function JI(t,e){let n=t[Ge];if(!n)return;let r;try{r=n.get(Mt,null)}catch(o){r=null}r?.(e)}function pl(t,e,n,r,o){let i=t.inputs?.[r],s=t.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],u=s[c+1],d=e.data[l];un(d,n[l],u,o),a=!0}if(i)for(let c of i){let l=n[c],u=e.data[c];un(u,l,r,o),a=!0}return a}function XI(t,e,n,r,o,i){let s=null,a=null,c=null,l=!1,u=t.directiveToIndex.get(r.type);if(typeof u=="number"?s=u:[s,a,c]=u,a!==null&&c!==null&&t.hostDirectiveInputs?.hasOwnProperty(o)){let d=t.hostDirectiveInputs[o];for(let p=0;p<d.length;p+=2){let f=d[p];if(f>=a&&f<=c){let h=e.data[f],m=d[p+1];un(h,n[f],m,i),l=!0}else if(f>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(un(r,n[s],o,i),l=!0),l}function eD(t,e){let n=Se(e,t),r=n[E];tD(r,n);let o=n[ke];o!==null&&n[Jt]===null&&(n[Jt]=Lp(o,n[Ge])),F(O.ComponentStart);try{hl(r,n,n[W])}finally{F(O.ComponentEnd,n[W])}}function tD(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}function hl(t,e,n){mi(e);try{let r=t.viewQuery;r!==null&&Ec(1,r,n);let o=t.template;o!==null&&ch(t,e,o,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),e[Qe]?.finishViewCreation(t),t.staticContentQueries&&Fp(t,e),t.staticViewQueries&&Ec(2,t.viewQuery,n);let i=t.components;i!==null&&nD(e,i)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[b]&=-5,gi()}}function nD(t,e){for(let n=0;n<e.length;n++)eD(t,e[n])}function Br(t,e,n,r){let o=D(null);try{let i=e.tView,a=t[b]&4096?4096:16,c=cl(t,i,n,a,null,e,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=t[e.index];c[wt]=l;let u=t[Qe];return u!==null&&(c[Qe]=u.createEmbeddedView(i)),hl(i,c,n),c}finally{D(o)}}function qn(t,e){return!e||e.firstChild===null||Sp(t)}function Ar(t,e,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=e[n.index];i!==null&&r.push(we(i)),Te(i)&&uh(i,r);let s=n.type;if(s&8)Ar(t,e,n.child,r);else if(s&32){let a=el(n,e),c;for(;c=a();)r.push(c)}else if(s&16){let a=rh(e,n);if(Array.isArray(a))r.push(...a);else{let c=ot(e[le]);Ar(c[E],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function uh(t,e){for(let n=z;n<t.length;n++){let r=t[n],o=r[E].firstChild;o!==null&&Ar(r[E],r,o,e)}t[bt]!==t[ke]&&e.push(t[bt])}function dh(t){if(t[en]!==null){for(let e of t[en])e.impl.addSequence(e);t[en].length=0}}var fh=[];function rD(t){return t[ve]??oD(t)}function oD(t){let e=fh.pop()??Object.create(sD);return e.lView=t,e}function iD(t){t.lView[ve]!==t&&(t.lView=null,fh.push(t))}var sD=ee(G({},Lt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{rn(t.lView)},consumerOnSignalRead(){this.lView[ve]=this}});function aD(t){let e=t[ve]??Object.create(cD);return e.lView=t,e}var cD=ee(G({},Lt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let e=ot(t.lView);for(;e&&!ph(e[E]);)e=ot(e);e&&Fa(e)},consumerOnSignalRead(){this.lView[ve]=this}});function ph(t){return t.type!==2}function hh(t){if(t[Et]===null)return;let e=!0;for(;e;){let n=!1;for(let r of t[Et])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));e=n&&!!(t[b]&8192)}}var lD=100;function mh(t,e=0){let r=t[We].rendererFactory,o=!1;o||r.begin?.();try{uD(t,e)}finally{o||r.end?.()}}function uD(t,e){let n=Wa();try{hr(!0),xc(t,e);let r=0;for(;Dr(t);){if(r===lD)throw new g(103,!1);r++,xc(t,1)}}finally{hr(n)}}function dD(t,e,n,r){if(nn(e))return;let o=e[b],i=!1,s=!1;mi(e);let a=!0,c=null,l=null;i||(ph(t)?(l=rD(e),c=pt(l)):ao()===null?(a=!1,l=aD(e),c=pt(l)):e[ve]&&(ht(e[ve]),e[ve]=null));try{La(e),ef(t.bindingStartIndex),n!==null&&ch(t,e,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=t.preOrderCheckHooks;f!==null&&wi(e,f,null)}else{let f=t.preOrderHooks;f!==null&&bi(e,f,0,null),nc(e,0)}if(s||fD(e),hh(e),gh(e,0),t.contentQueries!==null&&Fp(t,e),!i)if(u){let f=t.contentCheckHooks;f!==null&&wi(e,f)}else{let f=t.contentHooks;f!==null&&bi(e,f,1),nc(e,1)}hD(t,e);let d=t.components;d!==null&&vh(e,d,0);let p=t.viewQuery;if(p!==null&&Ec(2,p,r),!i)if(u){let f=t.viewCheckHooks;f!==null&&wi(e,f)}else{let f=t.viewHooks;f!==null&&bi(e,f,2),nc(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[si]){for(let f of e[si])f();e[si]=null}i||(dh(e),e[b]&=-73)}catch(u){throw i||rn(e),u}finally{l!==null&&(jt(l,c),a&&iD(l)),gi()}}function gh(t,e){for(let n=Mp(t);n!==null;n=Np(n))for(let r=z;r<n.length;r++){let o=n[r];yh(o,e)}}function fD(t){for(let e=Mp(t);e!==null;e=Np(e)){if(!(e[b]&2))continue;let n=e[tn];for(let r=0;r<n.length;r++){let o=n[r];Fa(o)}}}function pD(t,e,n){F(O.ComponentStart);let r=Se(e,t);try{yh(r,n)}finally{F(O.ComponentEnd,r[W])}}function yh(t,e){ci(t)&&xc(t,e)}function xc(t,e){let r=t[E],o=t[b],i=t[ve],s=!!(e===0&&o&16);if(s||=!!(o&64&&e===0),s||=!!(o&1024),s||=!!(i?.dirty&&yn(i)),s||=!1,i&&(i.dirty=!1),t[b]&=-9217,s)dD(r,t,r.template,t[W]);else if(o&8192){let a=D(null);try{hh(t),gh(t,1);let c=r.components;c!==null&&vh(t,c,1),dh(t)}finally{D(a)}}}function vh(t,e,n){for(let r=0;r<e.length;r++)pD(t,e[r],n)}function hD(t,e){let n=t.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)St(~o);else{let i=o,s=n[++r],a=n[++r];nf(s,i);let c=e[i];F(O.HostBindingsUpdateStart,c);try{a(2,c)}finally{F(O.HostBindingsUpdateEnd,c)}}}}finally{St(-1)}}function ml(t,e){let n=Wa()?64:1088;for(t[We].changeDetectionScheduler?.notify(e);t;){t[b]|=n;let r=ot(t);if(Pn(t)&&!r)return t;t=r}return null}function Eh(t,e,n,r){return[t,!0,0,e,null,r,null,n,null,null]}function Ih(t,e){let n=z+e;if(n<t.length)return t[n]}function $r(t,e,n,r=!0){let o=e[E];if(mD(o,e,t,n),r){let s=Nc(n,t),a=e[H],c=a.parentNode(t[bt]);c!==null&&SI(o,t[ie],a,e,c,s)}let i=e[Jt];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Dh(t,e){let n=kr(t,e);return n!==void 0&&Xi(n[E],n),n}function kr(t,e){if(t.length<=z)return;let n=z+e,r=t[n];if(r){let o=r[wt];o!==null&&o!==t&&ol(o,r),e>0&&(t[n-1][_e]=r[_e]);let i=vr(t,z+e);bI(r[E],r);let s=i[Qe];s!==null&&s.detachView(i[E]),r[J]=null,r[_e]=null,r[b]&=-129}return r}function mD(t,e,n,r){let o=z+r,i=n.length;r>0&&(n[o-1][_e]=e),r<i-z?(e[_e]=n[o],Da(n,z+r,e)):(n.push(e),e[_e]=null),e[J]=n;let s=e[wt];s!==null&&n!==s&&_h(s,e);let a=e[Qe];a!==null&&a.insertView(t),li(e),e[b]|=128}function _h(t,e){let n=t[tn],r=e[J];if(it(r))t[b]|=2;else{let o=r[J][le];e[le]!==o&&(t[b]|=2)}n===null?t[tn]=[e]:n.push(e)}var xt=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let e=this._lView,n=e[E];return Ar(n,e,n.firstChild,[])}constructor(e,n){this._lView=e,this._cdRefInjectingView=n}get context(){return this._lView[W]}set context(e){this._lView[W]=e}get destroyed(){return nn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[J];if(Te(e)){let n=e[Ir],r=n?n.indexOf(this):-1;r>-1&&(kr(e,r),vr(n,r))}this._attachedToViewContainer=!1}Xi(this._lView[E],this._lView)}onDestroy(e){ui(this._lView,e)}markForCheck(){ml(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[b]&=-129}reattach(){li(this._lView),this._lView[b]|=128}detectChanges(){this._lView[b]|=1024,mh(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new g(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Pn(this._lView),n=this._lView[wt];n!==null&&!e&&ol(n,this._lView),eh(this._lView[E],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new g(902,!1);this._appRef=e;let n=Pn(this._lView),r=this._lView[wt];r!==null&&!n&&_h(r,this._lView),li(this._lView)}};var Rr=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=gD;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=Br(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new xt(i)}}return t})();function gD(){return rs(Q(),w())}function rs(t,e){return t.type&4?new Rr(e,t,Kn(t,e)):null}function Zn(t,e,n,r,o){let i=t.data[e];if(i===null)i=yD(t,e,n,r,o),tf()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Zd();i.injectorIndex=s===null?-1:s.injectorIndex}return Ln(i,!0),i}function yD(t,e,n,r,o){let i=qa(),s=za(),a=s?i:i&&i.parent,c=t.data[e]=ED(t,a,n,e,r,o);return vD(t,c,i,s),c}function vD(t,e,n,r){t.firstChild===null&&(t.firstChild=e),n!==null&&(r?n.child==null&&e.parent!==null&&(n.child=e):n.next===null&&(n.next=e,e.prev=n))}function ED(t,e,n,r,o,i){let s=e?e.injectorIndex:-1,a=0;return Ba()&&(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:Za(),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:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function ID(t){let e=t[xa]??[],r=t[J][H],o=[];for(let i of e)i.data[Rp]!==void 0?o.push(i):DD(i,r);t[xa]=o}function DD(t,e){let n=0,r=t.firstChild;if(r){let o=t.data[kp];for(;n<o;){let i=r.nextSibling;Wp(e,r,!1),r=i,n++}}}var _D=()=>null,TD=()=>null;function Li(t,e){return _D(t,e)}function Th(t,e,n){return TD(t,e,n)}var wh=class{},Or=class{},wD=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>bD()}return t})();function bD(){let t=w(),e=Q(),n=Se(e.index,t);return(it(n)?n:t)[H]}var bh=(()=>{class t{static \u0275prov=fe({token:t,providedIn:"root",factory:()=>null})}return t})();function Sh(t){return t.debugInfo?.className||t.type.name||null}var Ci={},Fi=class{injector;parentInjector;constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){let o=this.injector.get(e,Ci,r);return o!==Ci||n===Ci?o:this.parentInjector.get(e,n,r)}};function gl(t){return Mh(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function Ch(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{let n=t[Symbol.iterator](),r;for(;!(r=n.next()).done;)e(r.value)}}function Mh(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function SD(t,e,n){return t[e]=n}function Xe(t,e,n){if(n===pe)return!1;let r=t[e];return Object.is(r,n)?!1:(t[e]=n,!0)}function Nh(t,e,n,r){let o=Xe(t,e,n);return Xe(t,e+1,r)||o}function an(t,e,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&gE(o,i);let s=st(t)?Se(t.index,e):e;ml(s,5);let a=e[W],c=Uf(e,a,n,o),l=r.__ngNextListenerFn__;for(;l;)c=Uf(e,a,l,o)&&c,l=l.__ngNextListenerFn__;return c}}function Uf(t,e,n,r){let o=D(null);try{return F(O.OutputStart,e,n),n(r)!==!1}catch(i){return JI(t,i),!1}finally{F(O.OutputEnd,e,n),D(o)}}function yl(t,e,n,r,o,i,s,a){let c=On(t),l=!1,u=null;if(!r&&c&&(u=MD(e,n,i,t.index)),u!==null){let d=u.__ngLastListenerFn__||u;d.__ngNextListenerFn__=s,u.__ngLastListenerFn__=s,l=!0}else{let d=be(t,n),p=r?r(d):d;vE(n,p,i,a),r||(a.__ngNativeEl__=d);let f=o.listen(p,i,a);if(!CD(i)){let h=r?m=>r(we(m[t.index])):t.index;xh(h,e,n,i,a,f,!1)}}return l}function CD(t){return t.startsWith("animation")||t.startsWith("transition")}function MD(t,e,n,r){let o=t.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=e[kn],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function xh(t,e,n,r,o,i,s){let a=e.firstCreatePass?Va(e):null,c=ja(n),l=c.length;c.push(o,i),a&&a.push(r,t,l,(l+1)*(s?-1:1))}function qf(t,e,n,r,o){let i=null,s=null,a=null,c=!1,l=t.directiveToIndex.get(n.type);if(typeof l=="number"?i=l:[i,s,a]=l,s!==null&&a!==null&&t.hostDirectiveOutputs?.hasOwnProperty(r)){let u=t.hostDirectiveOutputs[r];for(let d=0;d<u.length;d+=2){let p=u[d];if(p>=s&&p<=a)c=!0,ji(t,e,p,u[d+1],r,o);else if(p>a)break}}return n.outputs.hasOwnProperty(r)&&(c=!0,ji(t,e,i,r,r,o)),c}function ji(t,e,n,r,o,i){let s=e[n],a=e[E],l=a.data[n].outputs[r],d=s[l].subscribe(i);xh(t.index,a,e,o,i,d,!0)}function ND(){xD()}function xD(){let t=w(),e=B(),n=Q();if(e.firstCreatePass&&RD(e,n),n.controlDirectiveIndex===-1)return;lt("NgSignalForms");let r=t[n.controlDirectiveIndex];e.data[n.controlDirectiveIndex].controlDef.create(r,new Vi(t,e,n))}function AD(){kD()}function kD(){let t=w(),e=B(),n=Tr();if(n.controlDirectiveIndex===-1)return;let r=e.data[n.controlDirectiveIndex].controlDef,o=t[n.controlDirectiveIndex];r.update(o,new Vi(t,e,n))}var Vi=class{lView;tView;tNode;hasPassThrough;constructor(e,n,r){this.lView=e,this.tView=n,this.tNode=r,this.hasPassThrough=!!(r.flags&4096)}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get nativeElement(){return be(this.tNode,this.lView)}get descriptor(){return`<${this.tNode.value}>`}listenToCustomControlOutput(e,n){let r=this.tView.data[this.tNode.customControlIndex];qf(this.tNode,this.lView,r,e,an(this.tNode,this.lView,n))}listenToCustomControlModel(e){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];qf(this.tNode,this.lView,r,n,an(this.tNode,this.lView,e))}listenToDom(e,n){yl(this.tNode,this.tView,this.lView,void 0,this.lView[H],e,n,an(this.tNode,this.lView,n))}setInputOnDirectives(e,n){let r=this.tNode.inputs?.[e],o=this.tNode.hostDirectiveInputs?.[e];if(!r&&!o)return!1;let i=!1;if(r)for(let s of r){if(s===this.tNode.controlDirectiveIndex)continue;let a=this.tView.data[s],c=this.lView[s];un(a,c,e,n),i=!0}if(o)for(let s=0;s<o.length;s+=2){let a=o[s];if(a===this.tNode.controlDirectiveIndex)continue;let c=o[s+1],l=this.tView.data[a],u=this.lView[a];un(l,u,c,n),i=!0}return i}setCustomControlModelInput(e){let n=this.tView.data[this.tNode.customControlIndex],r=this.tNode.flags&1024?"value":"checked";XI(this.tNode,this.tView,this.lView,n,r,e)}customControlHasInput(e){if(this.tNode.customControlIndex===-1)return!1;let n=this.tView.data[this.tNode.customControlIndex];return(n.signalFormsInputPresence??=this._buildCustomControlInputCache(n))[e]===!0}_buildCustomControlInputCache(e){let n={};for(let r in e.inputs)n[r]=!0;if(e.hostDirectives!==null){let r=[...e.hostDirectives];for(;r.length>0;){let o=r.shift();if(typeof o!="function"){for(let s in o.inputs)n[o.inputs[s]]=!0;let i=zf(o.directive);i!==null&&r.push(...i);continue}for(let i of o()){if(typeof i=="function")continue;if(i.inputs)for(let a=0;a<i.inputs.length;a+=2){let c=i.inputs[a+1]||i.inputs[a];n[c]=!0}let s=zf(i.directive);s!==null&&r.push(...s)}}}return n}};function zf(t){return typeof t=="function"&&"\u0275dir"in t?t.\u0275dir.hostDirectives??null:null}function RD(t,e,n){for(let o=e.directiveStart;o<e.directiveEnd;o++)if(t.data[o].controlDef){e.controlDirectiveIndex=o;break}if(e.controlDirectiveIndex===-1)return;let r=t.data[e.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(e.inputs?.[r.passThroughInput]?.length??0)>1){e.flags|=4096;return}OD(t,e)}function OD(t,e){for(let n=e.directiveStart;n<e.directiveEnd;n++){let r=t.data[n];if(!(e.directiveToIndex&&!e.directiveToIndex.has(r.type))){if(Gf(r,"value")){e.flags|=1024,e.customControlIndex=n;return}if(Gf(r,"checked")){e.flags|=2048,e.customControlIndex=n;return}}}if(e.hostDirectiveInputs!==null&&e.hostDirectiveOutputs!==null&&e.directiveToIndex!==null){let n=(r,o)=>{let i=e.hostDirectiveInputs[r],s=e.hostDirectiveOutputs[r+"Change"];if(!i||!s)return!1;for(let a=0;a<i.length;a+=2){let c=i[a];for(let l=0;l<s.length;l+=2){let u=s[l];if(c===u)for(let d of e.directiveToIndex.values()){if(!Array.isArray(d))continue;let[p,f,h]=d;if(c>=f&&c<=h)return e.flags|=o,e.customControlIndex=p,!0}}}return!1};if(n("value",1024)||n("checked",2048))return}}function Gf(t,e){return PD(t,e)&&LD(t,e+"Change")}function PD(t,e){return e in t.inputs}function LD(t,e){return e in t.outputs}var Ac=Symbol("BINDING");var Ah=new P("");function Hi(t,e,n){let r=n?t.styles:null,o=n?t.classes:null,i=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")i=a;else if(i==1)o=Zo(o,a);else if(i==2){let c=a,l=e[++s];r=Zo(r,c+": "+l+";")}}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=o:t.classesWithoutHost=o}function Ur(t,e=0){let n=w();if(n===null)return qe(t,e);let r=Q();return Dp(r,n,Y(t),e)}function FD(){let t="invalid";throw new Error(t)}function kh(t,e,n,r,o){let i=r===null?null:{"":-1},s=o(t,n);if(s!==null){let a=s,c=null,l=null;for(let u of s)if(u.resolveHostDirectives!==null){[a,c,l]=u.resolveHostDirectives(s);break}HD(t,e,n,a,i,c,l)}i!==null&&r!==null&&jD(n,r,i)}function jD(t,e,n){let r=t.localNames=[];for(let o=0;o<e.length;o+=2){let i=n[e[o+1]];if(i==null)throw new g(-301,!1);r.push(e[o],i)}}function VD(t,e,n){e.componentOffset=n,(t.components??=[]).push(e.index)}function HD(t,e,n,r,o,i,s){let a=r.length,c=null;for(let p=0;p<a;p++){let f=r[p];c===null&&Re(f)&&(c=f,VD(t,n,p)),mc(ki(n,e),t,f.type)}GD(n,t.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f)}let l=!1,u=!1,d=sh(t,e,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=Bn(n.mergedAttrs,f.hostAttrs),$D(t,n,e,d,f),zD(d,f,o),s!==null&&s.has(f)){let[m,v]=s.get(f);n.directiveToIndex.set(f.type,[d,m+n.directiveStart,v+n.directiveStart])}else(i===null||!i.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let h=f.type.prototype;!l&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((t.preOrderHooks??=[]).push(n.index),l=!0),!u&&(h.ngOnChanges||h.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(n.index),u=!0),d++}BD(t,n,i)}function BD(t,e,n){for(let r=e.directiveStart;r<e.directiveEnd;r++){let o=t.data[r];if(n===null||!n.has(o))Wf(0,e,o,r),Wf(1,e,o,r),Kf(e,r,!1);else{let i=n.get(o);Qf(0,e,i,r),Qf(1,e,i,r),Kf(e,r,!0)}}}function Wf(t,e,n,r){let o=t===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;t===0?s=e.inputs??={}:s=e.outputs??={},s[i]??=[],s[i].push(r),Rh(e,i)}}function Qf(t,e,n,r){let o=t===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;t===0?a=e.hostDirectiveInputs??={}:a=e.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Rh(e,s)}}function Rh(t,e){e==="class"?t.flags|=8:e==="style"&&(t.flags|=16)}function Kf(t,e,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=t;if(r===null||!n&&o===null||n&&i===null||Xc(t)){t.initialInputs??=[],t.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 l=o[c];for(let u of l)if(u===e){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let l=i[c];for(let u=0;u<l.length;u+=2)if(l[u]===e){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2}t.initialInputs??=[],t.initialInputs.push(s)}function $D(t,e,n,r,o){t.data[r]=o;let i=o.factory||(o.factory=vt(o.type,!0)),s=new cn(i,Re(o),Ur,null);t.blueprint[r]=s,n[r]=s,UD(t,e,r,sh(t,n,o.hostVars,pe),o)}function UD(t,e,n,r,o){let i=o.hostBindings;if(i){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;qD(s)!=a&&s.push(a),s.push(n,r,i)}}function qD(t){let e=t.length;for(;e>0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function zD(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Re(e)&&(n[""]=t)}}function GD(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function vl(t,e,n,r,o,i,s,a){let c=e[E],l=c.consts,u=Ee(l,s),d=Zn(c,t,n,r,u);return i&&kh(c,e,d,Ee(l,a),o),d.mergedAttrs=Bn(d.mergedAttrs,d.attrs),d.attrs!==null&&Hi(d,d.attrs,!1),d.mergedAttrs!==null&&Hi(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function El(t,e){fp(t,e),Aa(e)&&t.queries.elementEnd(e)}function WD(t,e,n,r,o,i){let s=e.consts,a=Ee(s,o),c=Zn(e,t,n,r,a);if(c.mergedAttrs=Bn(c.mergedAttrs,c.attrs),i!=null){let l=Ee(s,i);c.localNames=[];for(let u=0;u<l.length;u+=2)c.localNames.push(l[u],-1)}return c.attrs!==null&&Hi(c,c.attrs,!1),c.mergedAttrs!==null&&Hi(c,c.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,c),c}var Oh=typeof ShadowRoot<"u",QD=typeof Document<"u";function KD(t){return Object.keys(t).map(e=>{let[n,r,o]=t[e],i={propName:n,templateName:e,isSignal:(r&ts.SignalBased)!==0};return o&&(i.transform=o),i})}function ZD(t){return Object.keys(t).map(e=>({propName:t[e],templateName:e}))}function YD(t,e,n){let r=e instanceof De?e:e?.injector;return r&&t.getStandaloneInjector!==null&&(r=t.getStandaloneInjector(r)||r),r?new Fi(n,r):n}function JD(t){let e=t.get(Or,null);if(e===null)throw new g(407,!1);let n=t.get(bh,null),r=t.get(Ae,null),o=t.get(fn,null,{optional:!0});return{rendererFactory:e,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1,tracingService:o}}function XD(t,e){let n=Ph(t);return zp(e,n,n==="svg"?ka:n==="math"?Hd:null)}function e_(t){if(t?.toLowerCase()==="script")throw new g(905,!1)}function Ph(t){return(t.selectors[0][0]||"div").toLowerCase()}var zn=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=KD(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=ZD(this.componentDef.outputs),this.cachedOutputs}constructor(e,n){this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=uI(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!n}create(e,n,r,o,i,s){F(O.DynamicComponentStart);let a=D(null);try{let c=this.componentDef,l=YD(c,o||this.ngModule,e),u=JD(l),d=u.tracingService;return d&&d.componentCreate?d.componentCreate(Sh(c),()=>this.createComponentRef(u,l,n,r,i,s)):this.createComponentRef(u,l,n,r,i,s)}finally{D(a)}}createComponentRef(e,n,r,o,i,s){let a=this.componentDef,c=t_(o,a,s,i),l=e.rendererFactory.createRenderer(null,a),u=o?HI(l,o,a.encapsulation,n):XD(a,l);e_(u?.tagName);let d=n.get(Ah,null),p=n_(u,()=>n.get(vi,null)??Ap());d&&d.addHost(p);let f=s?.some(Zf)||i?.some(v=>typeof v!="function"&&v.bindings.some(Zf)),h=cl(null,c,null,512|ih(a),null,null,e,l,n,null,Lp(u,n,!0));d&&Oh&&p instanceof ShadowRoot&&ui(h,()=>{d.removeHost(p)}),h[U]=u,mi(h);let m=null;try{let v=vl(U,h,2,"#host",()=>c.directiveRegistry,!0,0);Qp(l,u,v),$n(u,h),ns(c,h,v),Yc(c,v,h),El(c,v),r!==void 0&&o_(v,this.ngContentSelectors,r),m=Se(v.index,h),h[W]=m[W],hl(c,h,null)}catch(v){throw m!==null&&yc(m),yc(h),v}finally{F(O.DynamicComponentEnd),gi()}return new Bi(this.componentType,h,!!f)}};function t_(t,e,n,r){let o=t?["ng-version","22.0.5"]:dI(e.selectors[0]),i=null,s=null,a=0;if(n)for(let u of n)a+=u[Ac].requiredVars,u.create&&(u.targetIdx=0,(i??=[]).push(u)),u.update&&(u.targetIdx=0,(s??=[]).push(u));if(r)for(let u=0;u<r.length;u++){let d=r[u];if(typeof d!="function")for(let p of d.bindings){a+=p[Ac].requiredVars;let f=u+1;p.create&&(p.targetIdx=f,(i??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p))}}let c=[e];if(r)for(let u of r){let d=typeof u=="function"?u:u.type,p=ei(d);c.push(p)}return al(0,null,r_(i,s),1,a,c,null,null,null,[o],null)}function n_(t,e){let n=t.getRootNode?.();return QD&&n instanceof Document?n.head:n&&Oh&&n instanceof ShadowRoot?n:e().head}function r_(t,e){return!t&&!e?null:n=>{if(n&1&&t)for(let r of t)r.create();if(n&2&&e)for(let r of e)r.update()}}function Zf(t){let e=t[Ac].kind;return e==="input"||e==="twoWay"}var Bi=class extends wh{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=ai(n[E],U),this.location=Kn(this._tNode,n),this.instance=Se(this._tNode.index,n)[W],this.hostView=this.changeDetectorRef=new xt(n,void 0),this.componentType=e}setInput(e,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),n))return;let o=this._rootLView,i=pl(r,o[E],o,e,n);this.previousInputValues.set(e,n);let s=Se(r.index,o);ml(s,1)}get injector(){return new Nt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function o_(t,e,n){let r=t.projection=[];for(let o=0;o<e.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var os=(()=>{class t{static __NG_ELEMENT_ID__=i_}return t})();function i_(){let t=Q();return Lh(t,w())}var kc=class t extends os{_lContainer;_hostTNode;_hostLView;constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return Kn(this._hostTNode,this._hostLView)}get injector(){return new Nt(this._hostTNode,this._hostLView)}get parentInjector(){let e=Kc(this._hostTNode,this._hostLView);if(mp(e)){let n=xi(e,this._hostLView),r=Ni(e),o=n[E].data[r+8];return new Nt(o,n)}else return new Nt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let n=Yf(this._lContainer);return n!==null&&n[e]||null}get length(){return this._lContainer.length-z}createEmbeddedView(e,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Li(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,qn(this._hostTNode,s)),a}createComponent(e,n,r,o,i,s,a){let c,l=n||{};c=l.index,r=l.injector,o=l.projectableNodes,i=l.environmentInjector||l.ngModuleRef,s=l.directives,a=l.bindings;let u=new zn(It(e)),d=r||this.parentInjector;if(!i&&u.ngModule==null){let _=this.parentInjector.get(De,null);_&&(i=_)}let p=It(u.componentType??{}),f=Li(this._lContainer,p?.id??null),h=f?.firstChild??null,m=u.create(d,o,h,i,s,a);return this.insertImpl(m.hostView,c,qn(this._hostTNode,f)),m}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,r){let o=e._lView;if($d(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=o[J],l=new t(c,c[ie],c[J]);l.detach(l.indexOf(e))}}let i=this._adjustIndex(n),s=this._lContainer;return $r(s,o,i,r),e.attachToViewContainerRef(),Da(ic(s),i,e),e}move(e,n){return this.insert(e,n)}indexOf(e){let n=Yf(this._lContainer);return n!==null?n.indexOf(e):-1}remove(e){let n=this._adjustIndex(e,-1),r=kr(this._lContainer,n);r&&(vr(ic(this._lContainer),n),Xi(r[E],r))}detach(e){let n=this._adjustIndex(e,-1),r=kr(this._lContainer,n);return r&&vr(ic(this._lContainer),n)!=null?new xt(r):null}_adjustIndex(e,n=0){return e??this.length+n}};function Yf(t){return t[Ir]}function ic(t){return t[Ir]||(t[Ir]=[])}function Lh(t,e){let n,r=e[t.index];return Te(r)?n=r:(n=Eh(r,e,null,t),e[t.index]=n,ll(e,n)),a_(n,e,t,r),new kc(n,t,e)}function s_(t,e){let n=t[H],r=n.createComment(""),o=be(e,t),i=n.parentNode(o);return Oi(n,i,r,n.nextSibling(o),!1),r}var a_=u_,c_=()=>!1;function l_(t,e,n){return c_(t,e,n)}function u_(t,e,n,r){if(t[bt])return;let o;n.type&8?o=we(r):o=s_(e,n),t[bt]=o}var Rc=class t{queryList;matches=null;constructor(e){this.queryList=e}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Oc=class t{queries;constructor(e=[]){this.queries=e}createEmbeddedView(e){let n=e.queries;if(n!==null){let r=e.contentQueries!==null?e.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 t(o)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}finishViewCreation(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let n=0;n<this.queries.length;n++)Dl(e,n).matches!==null&&this.queries[n].setDirty()}},$i=class{flags;read;predicate;constructor(e,n,r=null){this.flags=n,this.read=r,typeof e=="string"?this.predicate=m_(e):this.predicate=e}},Pc=class t{queries;constructor(e=[]){this.queries=e}elementStart(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(e,n)}elementEnd(e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(e)}embeddedTView(e){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(e,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new t(n):null}template(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(e,n)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}},Lc=class t{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(e,n=-1){this.metadata=e,this._declarationNodeIndex=n}elementStart(e,n){this.isApplyingToNode(n)&&this.matchTNode(e,n)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,n){this.elementStart(e,n)}embeddedTView(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=e.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(e,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(e,n,d_(n,i)),this.matchTNodeWithReadOption(e,n,Si(n,e,i,!1,!1))}else r===Rr?n.type&4&&this.matchTNodeWithReadOption(e,n,-1):this.matchTNodeWithReadOption(e,n,Si(n,e,r,!1,!1))}matchTNodeWithReadOption(e,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===jr||o===os||o===Rr&&n.type&4)this.addMatch(n.index,-2);else{let i=Si(n,e,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(e,n){this.matches===null?this.matches=[e,n]:this.matches.push(e,n)}};function d_(t,e){let n=t.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1]}return null}function f_(t,e){return t.type&11?Kn(t,e):t.type&4?rs(t,e):null}function p_(t,e,n,r){return n===-1?f_(e,t):n===-2?h_(t,e,r):Nr(t,t[E],n,e)}function h_(t,e,n){if(n===jr)return Kn(e,t);if(n===Rr)return rs(e,t);if(n===os)return Lh(e,t)}function Fh(t,e,n,r){let o=e[Qe].queries[r];if(o.matches===null){let i=t.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let u=i[l];a.push(p_(e,u,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function Fc(t,e,n,r){let o=t.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Fh(t,e,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 l=i[a+1],u=e[-c];for(let d=z;d<u.length;d++){let p=u[d];p[wt]===p[J]&&Fc(p[E],p,l,r)}if(u[tn]!==null){let d=u[tn];for(let p=0;p<d.length;p++){let f=d[p];Fc(f[E],f,l,r)}}}}}return r}function Il(t,e){return t[Qe].queries[e].queryList}function jh(t,e,n){let r=new Ri((n&4)===4);return zd(t,e,r,r.destroy),(e[Qe]??=new Oc).queries.push(new Rc(r))-1}function Vh(t,e,n){let r=B();return r.firstCreatePass&&(Bh(r,new $i(t,e,n),-1),(e&2)===2&&(r.staticViewQueries=!0)),jh(r,w(),e)}function Hh(t,e,n,r){let o=B();if(o.firstCreatePass){let i=Q();Bh(o,new $i(e,n,r),i.index),g_(o,t),(n&2)===2&&(o.staticContentQueries=!0)}return jh(o,w(),n)}function m_(t){return t.split(",").map(e=>e.trim())}function Bh(t,e,n){t.queries===null&&(t.queries=new Pc),t.queries.track(new Lc(e,n))}function g_(t,e){let n=t.contentQueries||(t.contentQueries=[]),r=n.length?n[n.length-1]:-1;e!==r&&n.push(t.queries.length-1,e)}function Dl(t,e){return t.queries.getByIndex(e)}function $h(t,e){let n=t[E],r=Dl(n,e);return r.crossesNgTemplate?Fc(n,t,e,[]):Fh(n,t,r,e)}function Uh(t,e,n){let r,o=rr(()=>{r._dirtyCounter();let i=y_(r,t);if(e&&i===void 0)throw new g(-951,!1);return i});return r=o[Z],r._dirtyCounter=tc(0),r._flatValue=void 0,o}function _l(t){return Uh(!0,!1,t)}function Tl(t){return Uh(!0,!0,t)}function qh(t,e){let n=t[Z];n._lView=w(),n._queryIndex=e,n._queryList=Il(n._lView,e),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function y_(t,e){let n=t._lView,r=t._queryIndex;if(n===void 0||r===void 0||n[b]&4)return e?void 0:oe;let o=Il(n,r),i=$h(n,r);return o.reset(i,bp),e?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}function wl(t){return!!t&&typeof t.then=="function"}function zh(t){return!!t&&typeof t.subscribe=="function"}var Ui=class{};var Pr=class extends Ui{injector;instance=null;constructor(e){super();let n=new Qt([...e.providers,{provide:Ui,useValue:this}],e.parent||An(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Gh(t,e,n=null){return new Pr({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}var v_=(()=>{class t{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=wa(!1,n.type),o=r.length>0?Gh([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=fe({token:t,providedIn:"environment",factory:()=>new t(qe(De))})}return t})();function E_(t){return Fr(()=>{let e=Wh(t),n=ee(G({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection!==Zc.Eager,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:e.standalone?o=>o.get(v_).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||ln.Emulated,styles:t.styles||oe,_:null,schemas:t.schemas||null,tView:null,id:""});e.standalone&&lt("NgStandalone"),Qh(n);let r=t.dependencies;return n.directiveDefs=Jf(r,I_),n.pipeDefs=Jf(r,Sd),n.id=S_(n),n})}function I_(t){return It(t)||ei(t)}function D_(t){return Fr(()=>({type:t.type,bootstrap:t.bootstrap||oe,declarations:t.declarations||oe,imports:t.imports||oe,exports:t.exports||oe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function __(t,e){if(t==null)return _t;let n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[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=ts.None,c=null),n[i]=[r,a,c],e[i]=s}return n}function T_(t){if(t==null)return _t;let e={};for(let n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function w_(t){return Fr(()=>{let e=Wh(t);return Qh(e),e})}function b_(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Wh(t){let e={};return{type:t.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputConfig:t.inputs||_t,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||oe,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:__(t.inputs,e),outputs:T_(t.outputs),debugInfo:null}}function Qh(t){t.features?.forEach(e=>e(t))}function Jf(t,e){return t?()=>{let n=typeof t=="function"?t():t,r=[];for(let o of n){let i=e(o);i!==null&&r.push(i)}return r}:null}function S_(t){let e=0,n=typeof t.consts=="function"?"":t.consts,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,n,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let i of r.join("|"))e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}var Kh=new P("");var bl=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=S(Kh,{optional:!0})??[];injector=S(ze);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=ii(this.injector,o);if(wl(i))n.push(i);else if(zh(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||t)};static \u0275prov=Qn({token:t,factory:t.\u0275fac})}return t})();function C_(t){return e=>{e.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r)},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r)},passThroughInput:t}}}function M_(t){let e=n=>{let r=Array.isArray(t);n.hostDirectives===null?(n.resolveHostDirectives=N_,n.hostDirectives=r?t.map(jc):[t]):r?n.hostDirectives.unshift(...t.map(jc)):n.hostDirectives.unshift(t)};return e.ngInherit=!0,e}function N_(t){let e=[],n=!1,r=null,o=null;for(let i=0;i<t.length;i++){let s=t[i];if(s.hostDirectives!==null){let a=e.length;r??=new Map,o??=new Map,Zh(s,e,r,t),o.set(s,[a,e.length-1])}i===0&&Re(s)&&(n=!0,e.push(s))}for(let i=n?1:0;i<t.length;i++)e.push(t[i]);return r!==null&&r.forEach((i,s)=>{x_(s.declaredInputs,i.inputs)}),[e,r,o]}function Zh(t,e,n,r){if(t.hostDirectives!==null)for(let o of t.hostDirectives)if(typeof o=="function"){let i=o();for(let s of i)Xf(jc(s),e,n,r)}else Xf(o,e,n,r)}function Xf(t,e,n,r){let o=ei(t.directive);if(Zh(o,e,n,r),n.has(o)){let i=n.get(o);ep(i,t.inputs,"input"),ep(i,t.outputs,"output")}else r.includes(o)||(n.set(o,t),e.push(o))}function ep(t,e,n){let r=n==="input"?t.inputs:t.outputs;Object.keys(e).forEach(o=>{let i=e[o];(!r.hasOwnProperty(o)||r[o]===i)&&(r[o]=i)})}function jc(t){return typeof t=="function"?{directive:Y(t),inputs:{},outputs:{}}:{directive:Y(t.directive),inputs:tp(t.inputs),outputs:tp(t.outputs)}}function tp(t){let e={};if(t!==void 0&&t.length>0)for(let n=0;n<t.length;n+=2)e[t[n]]=t[n+1];return e}function x_(t,e){for(let n in e)if(e.hasOwnProperty(n)){let r=e[n],o=t[n];t[r]=o}}function A_(t){return Object.getPrototypeOf(t.prototype).constructor}function Yh(t){let e=A_(t.type),n=!0,r=[t];for(;e;){let o;if(Re(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new g(903,!1);o=e.\u0275dir}if(o){if(n){r.push(o);let s=t;s.inputs=sc(t.inputs),s.declaredInputs=sc(t.declaredInputs),s.outputs=sc(t.outputs);let a=o.hostBindings;a&&L_(t,a);let c=o.viewQuery,l=o.contentQueries;if(c&&O_(t,c),l&&P_(t,l),k_(t,o),wd(t.outputs,o.outputs),Re(o)&&o.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(t),a===Yh&&(n=!1)}}e=Object.getPrototypeOf(e)}R_(r)}function k_(t,e){for(let n in e.inputs){if(!e.inputs.hasOwnProperty(n)||t.inputs.hasOwnProperty(n))continue;let r=e.inputs[n];r!==void 0&&(t.inputs[n]=r,t.declaredInputs[n]=e.declaredInputs[n])}}function R_(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){let o=t[r];o.hostVars=e+=o.hostVars,o.hostAttrs=Bn(o.hostAttrs,n=Bn(n,o.hostAttrs))}}function sc(t){return t===_t?{}:t===oe?[]:t}function O_(t,e){let n=t.viewQuery;n?t.viewQuery=(r,o)=>{e(r,o),n(r,o)}:t.viewQuery=e}function P_(t,e){let n=t.contentQueries;n?t.contentQueries=(r,o,i)=>{e(r,o,i),n(r,o,i)}:t.contentQueries=e}function L_(t,e){let n=t.hostBindings;n?t.hostBindings=(r,o)=>{e(r,o),n(r,o)}:t.hostBindings=e}function Jh(t,e,n,r,o,i,s,a){if(n.firstCreatePass){t.mergedAttrs=Bn(t.mergedAttrs,t.attrs);let u=t.tView=al(2,t,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,t),u.queries=n.queries.embeddedTView(t))}a&&(t.flags|=a),Ln(t,!1);let c=j_(n,e,t,r);yi()&&il(n,e,c,t),$n(c,e);let l=Eh(c,e,c,t);e[r+U]=l,ll(e,l),l_(l,t,e)}function F_(t,e,n,r,o,i,s,a,c,l,u){let d=n+U,p;return e.firstCreatePass?(p=Zn(e,d,4,s||null,a||null),di()&&kh(e,t,p,Ee(e.consts,l),ul),fp(e,p)):p=e.data[d],Jh(p,t,e,n,r,o,i,c),On(p)&&ns(e,t,p),l!=null&&Hr(t,p,u),p}function Gn(t,e,n,r,o,i,s,a,c,l,u){let d=n+U,p;if(e.firstCreatePass){if(p=Zn(e,d,4,s||null,a||null),l!=null){let f=Ee(e.consts,l);p.localNames=[];for(let h=0;h<f.length;h+=2)p.localNames.push(f[h],-1)}}else p=e.data[d];return Jh(p,t,e,n,r,o,i,c),l!=null&&Hr(t,p,u),p}function Xh(t,e,n,r,o,i,s,a){let c=w(),l=B(),u=Ee(l.consts,i);return F_(c,l,t,e,n,r,o,u,void 0,s,a),Xh}function em(t,e,n,r,o,i,s,a){let c=w(),l=B(),u=Ee(l.consts,i);return Gn(c,l,t,e,n,r,o,u,void 0,s,a),em}var j_=V_;function V_(t,e,n,r){return wr(!0),e[H].createComment("")}var tm=new P("");var nm=new P("");function rm(){ks(()=>{let t="";throw new g(600,t)})}var H_=10;var qr=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=S(Mt);afterRenderManager=S(Yi);zonelessEnabled=S(jn);rootEffectScheduler=S(Ii);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ye;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=S(Ct);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(tt(n=>!n))}constructor(){S(fn,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=S(De);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=ze.NULL){return this._injector.get(ne).run(()=>{if(F(O.BootstrapComponentStart),!this._injector.get(bl).done){let _="";throw new g(405,_)}let a=It(n),c=this._injector.get(Ui),l=new zn(a,c);this.componentTypes.push(n);let{hostElement:u,directives:d,bindings:p}=B_(r),f=u||l.selector,h=l.create(o,[],f,c.injector,d,p),m=h.location.nativeElement,v=h.injector.get(tm,null);return v?.registerApplication(m),h.onDestroy(()=>{this.detachView(h.hostView),Mr(this.components,h),v?.unregisterApplication(m)}),this._loadComponent(h),F(O.BootstrapComponentEnd,h),h})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){F(O.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Zi.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw F(O.ChangeDetectionEnd),new g(101,!1);let n=D(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,D(n),this.afterTick.next(),F(O.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Or,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<H_;){F(O.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{F(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&&!Dr(o))continue;let i=r&&!this.zonelessEnabled?0:1;mh(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})=>Dr(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;Mr(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(nm,[]).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),()=>Mr(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new g(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||t)};static \u0275prov=Qn({token:t,factory:t.\u0275fac})}return t})();function B_(t){return t===void 0||typeof t=="string"||t instanceof Element?{hostElement:t}:t}function Mr(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function om(t,e,n,r){let o=w(),i=on();if(Xe(o,i,e)){let s=B(),a=Tr();KI(a,o,t,e,n,r)}return om}var Vc=class{destroy(e){}updateValue(e,n){}swap(e,n){let r=Math.min(e,n),o=Math.max(e,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(e,n){this.attach(n,this.detach(e))}};function ac(t,e,n,r,o){return t===n&&Object.is(e,r)?1:Object.is(o(t,e),o(n,r))?-1:0}function $_(t,e,n,r){let o,i,s=0,a=t.length-1,c=void 0;if(Array.isArray(e)){D(r);let l=e.length-1;for(D(null);s<=a&&s<=l;){let u=t.at(s),d=e[s],p=ac(s,u,s,d,n);if(p!==0){p<0&&t.updateValue(s,d),s++;continue}let f=t.at(a),h=e[l],m=ac(a,f,l,h,n);if(m!==0){m<0&&t.updateValue(a,h),a--,l--;continue}let v=n(s,u),_=n(a,f),L=n(s,d);if(Object.is(L,_)){let K=n(l,h);Object.is(K,v)?(t.swap(s,a),t.updateValue(a,h),l--,a--):t.move(a,s),t.updateValue(s,d),s++;continue}if(o??=new qi,i??=rp(t,s,a,n),Hc(t,o,s,L))t.updateValue(s,d),s++,a++;else if(i.has(L))o.set(v,t.detach(s)),a--;else{let K=t.create(s,e[s]);t.attach(s,K),s++,a++}}for(;s<=l;)np(t,o,n,s,e[s]),s++}else if(e!=null){D(r);let l=e[Symbol.iterator]();D(null);let u=l.next();for(;!u.done&&s<=a;){let d=t.at(s),p=u.value,f=ac(s,d,s,p,n);if(f!==0)f<0&&t.updateValue(s,p),s++,u=l.next();else{o??=new qi,i??=rp(t,s,a,n);let h=n(s,p);if(Hc(t,o,s,h))t.updateValue(s,p),s++,a++,u=l.next();else if(!i.has(h))t.attach(s,t.create(s,p)),s++,a++,u=l.next();else{let m=n(s,d);o.set(m,t.detach(s)),a--}}}for(;!u.done;)np(t,o,n,t.length,u.value),u=l.next()}for(;s<=a;)t.destroy(t.detach(a--));o?.forEach(l=>{t.destroy(l)})}function Hc(t,e,n,r){return e!==void 0&&e.has(r)?(t.attach(n,e.get(r)),e.delete(r),!0):!1}function np(t,e,n,r,o){if(Hc(t,e,r,n(r,o)))t.updateValue(r,o);else{let i=t.create(r,o);t.attach(r,i)}}function rp(t,e,n,r){let o=new Set;for(let i=e;i<=n;i++)o.add(r(i,t.at(i)));return o}var qi=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let n=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(e,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,n){if(this.kvMap.has(e)){let r=this.kvMap.get(e);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(e,n)}forEach(e){for(let[n,r]of this.kvMap)if(e(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),e(r,n)}}};function U_(t,e,n,r,o,i,s,a){lt("NgControlFlow");let c=w(),l=B(),u=Ee(l.consts,i);return Gn(c,l,t,e,n,r,o,u,256,s,a),Sl}function Sl(t,e,n,r,o,i,s,a){lt("NgControlFlow");let c=w(),l=B(),u=Ee(l.consts,i);return Gn(c,l,t,e,n,r,o,u,512,s,a),Sl}function q_(t,e){lt("NgControlFlow");let n=w(),r=on(),o=n[r]!==pe?n[r]:-1,i=o!==-1?zi(n,U+o):void 0,s=0;if(Xe(n,r,t)){let a=D(null);try{if(i!==void 0&&Dh(i,s),t!==-1){let c=U+t,l=zi(n,c),u=qc(n[E],c),d=Th(l,u,n),p=Br(n,u,e,{dehydratedView:d});$r(l,p,s,qn(u,d))}}finally{D(a)}}else if(i!==void 0){let a=Ih(i,s);a!==void 0&&(a[W]=e)}}var Bc=class{lContainer;$implicit;$index;constructor(e,n,r){this.lContainer=e,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-z}};function z_(t,e){return e}var $c=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,n,r){this.hasEmptyBlock=e,this.trackByFn=n,this.liveCollection=r}};function G_(t,e,n,r,o,i,s,a,c,l,u,d,p){lt("NgControlFlow");let f=w(),h=B(),m=c!==void 0,v=w(),_=a?s.bind(v[le][W]):s,L=new $c(m,_);v[U+t]=L,Gn(f,h,t+1,e,n,r,o,Ee(h.consts,i),256),m&&Gn(f,h,t+2,c,l,u,d,Ee(h.consts,p),512)}var Uc=class extends Vc{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,n,r){super(),this.lContainer=e,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-z}at(e){return this.getLView(e)[W].$implicit}attach(e,n){let r=n[Jt];this.needsIndexUpdate||=e!==this.length,$r(this.lContainer,n,e,qn(this.templateTNode,r)),Q_(this.lContainer,e)}detach(e){return this.needsIndexUpdate||=e!==this.length-1,K_(this.lContainer,e),Z_(this.lContainer,e)}create(e,n){let r=Li(this.lContainer,this.templateTNode.tView.ssrId);return Br(this.hostLView,this.templateTNode,new Bc(this.lContainer,n,e),{dehydratedView:r})}destroy(e){Xi(e[E],e)}updateValue(e,n){this.getLView(e)[W].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[W].$index=e}getLView(e){return Y_(this.lContainer,e)}};function W_(t){let e=D(null),n=Ye();try{let r=w(),o=r[E],i=r[n],s=n+1,a=zi(r,s);if(i.liveCollection===void 0){let l=qc(o,s);i.liveCollection=new Uc(a,r,l)}else i.liveCollection.reset();let c=i.liveCollection;if($_(c,t,i.trackByFn,e),c.updateIndexes(),i.hasEmptyBlock){let l=on(),u=c.length===0;if(Xe(r,l,u)){let d=n+2,p=zi(r,d);if(u){let f=qc(o,d),h=Th(p,f,r),m=Br(r,f,void 0,{dehydratedView:h});$r(p,m,0,qn(f,h))}else o.firstUpdatePass&&ID(p),Dh(p,0)}}}finally{D(e)}}function zi(t,e){return t[e]}function Q_(t,e){if(t.length<=z)return;let n=z+e,r=t[n],o=r?r[Ze]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Ge];EI(i,o),Un.delete(r[Ke]),o.detachedLeaveAnimationFns=void 0}}function K_(t,e){if(t.length<=z)return;let n=z+e,r=t[n],o=r?r[Ze]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function Z_(t,e){return kr(t,e)}function Y_(t,e){return Ih(t,e)}function qc(t,e){return ai(t,e)}function im(t,e,n){let r=w(),o=on();if(Xe(r,o,e)){let i=B(),s=Tr();qI(s,r,t,e,r[H],n)}return im}function zc(t,e,n,r,o){pl(e,t,n,o?"class":"style",r)}function Gi(t,e,n,r){let o=w(),i=o[E],s=t+U,a=i.firstCreatePass?vl(s,o,2,e,ul,di(),n,r):i.data[s];if(st(a)){let c=o[We].tracingService;if(c&&c.componentCreate){let l=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(Sh(l),()=>(op(t,e,o,a,r),Gi))}}return op(t,e,o,a,r),Gi}function op(t,e,n,r,o){if(dl(r,n,t,e,cm),On(r)){let i=n[E];ns(i,n,r),Yc(i,r,n)}o!=null&&Hr(n,r)}function Cl(){let t=B(),e=Q(),n=fl(e);return t.firstCreatePass&&El(t,n),$a(n)&&Ua(),Ha(),n.classesWithoutHost!=null&&Zv(n)&&zc(t,n,w(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&Yv(n)&&zc(t,n,w(),n.stylesWithoutHost,!1),Cl}function sm(t,e,n,r){return Gi(t,e,n,r),Cl(),sm}function Ml(t,e,n,r){let o=w(),i=o[E],s=t+U,a=i.firstCreatePass?WD(s,i,2,e,n,r):i.data[s];return dl(a,o,t,e,cm),r!=null&&Hr(o,a),Ml}function Nl(){let t=Q(),e=fl(t);return $a(e)&&Ua(),Ha(),Nl}function am(t,e,n,r){return Ml(t,e,n,r),Nl(),am}var cm=(t,e,n,r,o)=>(wr(!0),zp(e[H],r,Za()));function xl(t,e,n){let r=w(),o=r[E],i=t+U,s=o.firstCreatePass?vl(i,r,8,"ng-container",ul,di(),e,n):o.data[i];if(dl(s,r,t,"ng-container",J_),On(s)){let a=r[E];ns(a,r,s),Yc(a,s,r)}return n!=null&&Hr(r,s),xl}function Al(){let t=B(),e=Q(),n=fl(e);return t.firstCreatePass&&El(t,n),Al}function lm(t,e,n){return xl(t,e,n),Al(),lm}var J_=(t,e,n,r,o)=>(wr(!0),ZE(e[H],""));function X_(){return w()}function um(t,e,n){let r=w(),o=on();if(Xe(r,o,e)){let i=B(),s=Tr();lh(s,r,t,e,r[H],n)}return um}var br=void 0;function eT(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return e===1&&n===0?1:5}var tT=["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"]],br,[["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"]],br,[["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}",br,br,br],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",eT],cc=Object.create(null);function nT(t){let e=oT(t),n=ip(e);if(n)return n;let r=e.split("-")[0];if(n=ip(r),n)return n;if(r==="en")return tT;throw new g(701,!1)}function ip(t){if(!(t in cc)){let e=Dt.ng&&Dt.ng.common&&Dt.ng.common.locales&&Dt.ng.common.locales[t];return e!==void 0&&(cc[t]=e),e}return cc[t]}var rT={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};function oT(t){return t.toLowerCase().replace(/_/g,"-")}var zr="en-US";var iT=zr;function dm(t){typeof t=="string"&&(iT=t.toLowerCase().replace(/_/g,"-"))}function fm(t,e,n){let r=w(),o=B(),i=Q();return sT(o,r,r[H],i,t,e,n),fm}function pm(t,e,n){let r=w(),o=B(),i=Q();return(i.type&3||n)&&yl(i,o,r,n,r[H],t,e,an(i,r,e)),pm}function sT(t,e,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=an(r,e,i),yl(r,t,e,s,n,o,i,c)&&(a=!1)),a){let l=r.outputs?.[o],u=r.hostDirectiveOutputs?.[o];if(u&&u.length)for(let d=0;d<u.length;d+=2){let p=u[d],f=u[d+1];c??=an(r,e,i),ji(r,e,p,f,o,c)}if(l&&l.length)for(let d of l)c??=an(r,e,i),ji(r,e,d,o,o,c)}}function aT(t=1){return lf(t)}function cT(t,e){let n=null,r=iI(t);for(let o=0;o<e.length;o++){let i=e[o];if(i==="*"){n=o;continue}if(r===null?Yp(t,i,!0):cI(r,i))return o}return n}function lT(t){let e=w()[le][ie];if(!e.projection){let n=t?t.length:1,r=e.projection=kd(n,null),o=r.slice(),i=e.child;for(;i!==null;){if(i.type!==128){let s=t?cT(i,t):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i)}i=i.next}}}function uT(t,e=0,n,r,o,i){let s=w(),a=B(),c=r?t+1:null;c!==null&&Gn(s,a,c,r,o,i,null,n);let l=Zn(a,U+t,16,null,n||null);l.projection===null&&(l.projection=e),Ga();let d=!s[Jt]||Ba();s[le][ie].projection[l.projection]===null&&c!==null?dT(s,a,c):d&&!Qi(l)&&RI(a,s,l)}function dT(t,e,n){let r=U+n,o=e.data[r],i=t[r],s=Li(i,o.tView.ssrId),a=Br(t,o,void 0,{dehydratedView:s});$r(i,a,0,qn(o,s))}function hm(t,e,n,r){return Hh(t,e,n,r),hm}function mm(t,e,n){return Vh(t,e,n),mm}function fT(t){let e=w(),n=B(),r=hi();_r(r+1);let o=Dl(n,r);if(t.dirty&&Bd(e)===((o.metadata.flags&2)===2)){if(o.matches===null)t.reset([]);else{let i=$h(e,r);t.reset(i,bp),t.notifyOnChanges()}return!0}return!1}function pT(){return Il(w(),hi())}function gm(t,e,n,r,o){return qh(e,Hh(t,n,r,o)),gm}function ym(t,e,n,r){return qh(t,Vh(e,n,r)),ym}function hT(t=1){_r(hi()+t)}function mT(t){let e=Yd();return Oa(e,U+t)}function Ti(t,e){return t<<17|e<<2}function dn(t){return t>>17&32767}function gT(t){return(t&2)==2}function yT(t,e){return t&131071|e<<17}function Gc(t){return t|2}function Wn(t){return(t&131068)>>2}function lc(t,e){return t&-131069|e<<2}function vT(t){return(t&1)===1}function Wc(t){return t|1}function ET(t,e,n,r,o,i){let s=i?e.classBindings:e.styleBindings,a=dn(s),c=Wn(s);t[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||xn(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let p=dn(t[a+1]);t[r+1]=Ti(p,a),p!==0&&(t[p+1]=lc(t[p+1],r)),t[a+1]=yT(t[a+1],r)}else t[r+1]=Ti(a,0),a!==0&&(t[a+1]=lc(t[a+1],r)),a=r;else t[r+1]=Ti(c,0),a===0?a=r:t[c+1]=lc(t[c+1],r),c=r;l&&(t[r+1]=Gc(t[r+1])),sp(t,u,r,!0),sp(t,u,r,!1),IT(e,u,t,r,i),s=Ti(a,c),i?e.classBindings=s:e.styleBindings=s}function IT(t,e,n,r,o){let i=o?t.residualClasses:t.residualStyles;i!=null&&typeof e=="string"&&xn(i,e)>=0&&(n[r+1]=Wc(n[r+1]))}function sp(t,e,n,r){let o=t[n+1],i=e===null,s=r?dn(o):Wn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=t[s],l=t[s+1];DT(c,e)&&(a=!0,t[s+1]=r?Wc(l):Gc(l)),s=r?dn(l):Wn(l)}a&&(t[n+1]=r?Gc(o):Wc(o))}function DT(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?xn(t,e)>=0:!1}var Pe={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function _T(t){return t.substring(Pe.key,Pe.keyEnd)}function TT(t){return wT(t),vm(t,Em(t,0,Pe.textEnd))}function vm(t,e){let n=Pe.textEnd;return n===e?-1:(e=Pe.keyEnd=bT(t,Pe.key=e,n),Em(t,e,n))}function wT(t){Pe.key=0,Pe.keyEnd=0,Pe.value=0,Pe.valueEnd=0,Pe.textEnd=t.length}function Em(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function bT(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}function Im(t,e,n){return _m(t,e,n,!1),Im}function Dm(t,e){return _m(t,e,null,!0),Dm}function ST(t){MT(OT,CT,t,!0)}function CT(t,e){for(let n=TT(e);n>=0;n=vm(e,n))ri(t,_T(e),!0)}function _m(t,e,n,r){let o=w(),i=B(),s=fi(2);if(i.firstUpdatePass&&wm(i,t,s,r),e!==pe&&Xe(o,s,e)){let a=i.data[Ye()];bm(i,a,o,o[H],t,o[s+1]=LT(e,n),r,s)}}function MT(t,e,n,r){let o=B(),i=fi(2);o.firstUpdatePass&&wm(o,null,i,r);let s=w();if(n!==pe&&Xe(s,i,n)){let a=o.data[Ye()];if(Sm(a,r)&&!Tm(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Zo(c,n||"")),zc(o,a,s,n,r)}else PT(o,a,s,s[H],s[i+1],s[i+1]=RT(t,e,n),r,i)}}function Tm(t,e){return e>=t.expandoStartIndex}function wm(t,e,n,r){let o=t.data;if(o[n+1]===null){let i=o[Ye()],s=Tm(t,n);Sm(i,r)&&e===null&&!s&&(e=!1),e=NT(o,i,e,r),ET(o,i,e,n,s,r)}}function NT(t,e,n,r){let o=of(t),i=r?e.residualClasses:e.residualStyles;if(o===null)(r?e.classBindings:e.styleBindings)===0&&(n=uc(null,t,e,n,r),n=Lr(n,e.attrs,r),i=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==o)if(n=uc(o,t,e,n,r),i===null){let c=xT(t,e,r);c!==void 0&&Array.isArray(c)&&(c=uc(null,t,e,c[1],r),c=Lr(c,e.attrs,r),AT(t,e,r,c))}else i=kT(t,e,r)}return i!==void 0&&(r?e.residualClasses=i:e.residualStyles=i),n}function xT(t,e,n){let r=n?e.classBindings:e.styleBindings;if(Wn(r)!==0)return t[dn(r)]}function AT(t,e,n,r){let o=n?e.classBindings:e.styleBindings;t[dn(o)]=r}function kT(t,e,n){let r,o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i<o;i++){let s=t[i].hostAttrs;r=Lr(r,s,n)}return Lr(r,e.attrs,n)}function uc(t,e,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=e[a],r=Lr(r,i.hostAttrs,o),i!==t);)a++;return t!==null&&(n.directiveStylingLast=a),r}function Lr(t,e,n){let r=n?1:2,o=-1;if(e!==null)for(let i=0;i<e.length;i++){let s=e[i];typeof s=="number"?o=s:o===r&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),ri(t,s,n?!0:e[++i]))}return t===void 0?null:t}function RT(t,e,n){if(n==null||n==="")return oe;let r=[],o=Jc(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)t(r,o[i],!0);else if(o instanceof Set)for(let i of o)t(r,i,!0);else if(typeof o=="object")for(let i in o)Object.hasOwn(o,i)&&t(r,i,o[i]);else typeof o=="string"&&e(r,o);return r}function OT(t,e,n){let r=String(e);r!==""&&!r.includes(" ")&&ri(t,r,n)}function PT(t,e,n,r,o,i,s,a){o===pe&&(o=oe);let c=0,l=0,u=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;u!==null||d!==null;){let p=c<o.length?o[c+1]:void 0,f=l<i.length?i[l+1]:void 0,h=null,m;u===d?(c+=2,l+=2,p!==f&&(h=d,m=f)):d===null||u!==null&&u<d?(c+=2,h=u):(l+=2,h=d,m=f),h!==null&&bm(t,e,n,r,h,m,s,a),u=c<o.length?o[c]:null,d=l<i.length?i[l]:null}}function bm(t,e,n,r,o,i,s,a){if(!(e.type&3))return;let c=t.data,l=c[a+1],u=vT(l)?ap(c,e,n,o,Wn(l),s):void 0;if(!Wi(u)){Wi(i)||gT(l)&&(i=ap(c,null,n,o,a,s));let d=Ra(Ye(),n);PI(r,s,d,o,i)}}function ap(t,e,n,r,o,i){let s=e===null,a;for(;o>0;){let c=t[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,p=n[o+1];p===pe&&(p=d?oe:void 0);let f=d?oi(p,r):u===r?p:void 0;if(l&&!Wi(f)&&(f=oi(c,r)),Wi(f)&&(a=f,s))return a;let h=t[o+1];o=s?dn(h):Wn(h)}if(e!==null){let c=i?e.residualClasses:e.residualStyles;c!=null&&(a=oi(c,r))}return a}function Wi(t){return t!==void 0}function LT(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Ko(Jc(t)))),t}function Sm(t,e){return(t.flags&(e?8:16))!==0}function FT(t,e=""){let n=w(),r=B(),o=t+U,i=r.firstCreatePass?Zn(r,o,1,e,null):r.data[o],s=jT(r,n,i,e);n[o]=s,yi()&&il(r,n,s,i),Ln(i,!1)}var jT=(t,e,n,r)=>(wr(!0),QE(e[H],r));function VT(t,e,n,r=""){return Xe(t,on(),n)?e+yr(n)+r:pe}function HT(t,e,n,r,o,i=""){let s=Xd(),a=Nh(t,s,n,o);return fi(2),a?e+yr(n)+r+yr(o)+i:pe}function Cm(t){return kl("",t),Cm}function kl(t,e,n){let r=w(),o=VT(r,t,e,n);return o!==pe&&Nm(r,Ye(),o),kl}function Mm(t,e,n,r,o){let i=w(),s=HT(i,t,e,n,r,o);return s!==pe&&Nm(i,Ye(),s),Mm}function Nm(t,e,n){let r=Ra(e,t);KE(t[H],r,n)}function cp(t,e,n){let r=B();r.firstCreatePass&&xm(e,r.data,r.blueprint,Re(t),n)}function xm(t,e,n,r,o){if(t=Y(t),Array.isArray(t))for(let i=0;i<t.length;i++)xm(t[i],e,n,r,o);else{let i=B(),s=w(),a=Q(),c=Wt(t)?t:Y(t.provide),l=Ca(t),u=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(Wt(t)||!t.multi){let f=new cn(l,o,Ur,null),h=fc(c,e,o?u:u+p,d);h===-1?(mc(ki(a,s),i,c),dc(i,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=fc(c,e,u+p,d),h=fc(c,e,u,u+p),m=f>=0&&n[f],v=h>=0&&n[h];if(o&&!v||!o&&!m){mc(ki(a,s),i,c);let _=UT(o?$T:BT,n.length,o,r,l,t);!o&&v&&(n[h].providerFactory=_),dc(i,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(_),s.push(_)}else{let _=Am(n[o?h:f],l,!o&&r);dc(i,t,f>-1?f:h,_)}!o&&r&&v&&n[h].componentProviders++}}}function dc(t,e,n,r){let o=Wt(e),i=Fd(e);if(o||i){let c=(i?Y(e.useClass):e).prototype.ngOnDestroy;if(c){let l=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function Am(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function fc(t,e,n,r){for(let o=n;o<r;o++)if(e[o]===t)return o;return-1}function BT(t,e,n,r,o){return Qc(this.multi,[])}function $T(t,e,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=Nr(r,r[E],this.providerFactory.index,o);s=c.slice(0,a),Qc(i,s);for(let l=a;l<c.length;l++)s.push(c[l])}else s=[],Qc(i,s);return s}function Qc(t,e){for(let n=0;n<t.length;n++){let r=t[n];e.push(r())}return e}function UT(t,e,n,r,o,i){let s=new cn(t,n,Ur,null);return s.multi=[],s.index=e,s.componentProviders=0,Am(s,o,r&&!n),s}function qT(t,e){return n=>{n.providersResolver=(r,o)=>cp(r,o?o(t):t,!1),e&&(n.viewProvidersResolver=(r,o)=>cp(r,o?o(e):e,!0))}}function zT(t,e){let n=t[e];return n===pe?void 0:n}function GT(t,e,n,r,o,i,s){let a=e+n;return Nh(t,a,o,i)?SD(t,a+2,s?r.call(s,o,i):r(o,i)):zT(t,a+2)}function WT(t,e){let n=B(),r,o=t+U;n.firstCreatePass?(r=QT(e,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=vt(r.type,!0)),s,a=ce(Ur);try{let c=Ai(!1),l=i();return Ai(c),Pa(n,w(),o,l),l}finally{ce(a)}}function QT(t,e){if(e)for(let n=e.length-1;n>=0;n--){let r=e[n];if(t===r.name)return r}}function KT(t,e,n,r){let o=t+U,i=w(),s=Oa(i,o);return ZT(i,o)?GT(i,Jd(),e,s.transform,n,r,s):s.transform(n,r)}function ZT(t,e){return t[E].data[e].pure}function YT(t,e){return rs(t,e)}var km=(()=>{class t{applicationErrorHandler=S(Mt);appRef=S(qr);taskService=S(Ct);ngZone=S(ne);zonelessEnabled=S(jn);tracing=S(fn,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new $;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(mr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(S(Ei,{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:case 2:{this.appRef.dirtyFlags|=2;break}case 3: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?mf:Ja;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(mr+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||t)};static \u0275prov=Qn({token:t,factory:t.\u0275fac})}return t})();function Rm(){return[{provide:Ae,useExisting:km},{provide:ne,useClass:gr},{provide:jn,useValue:!0}]}function JT(){return typeof $localize<"u"&&$localize.locale||zr}var Rl=new P("",{factory:()=>S(Rl,{optional:!0,skipSelf:!0})||JT()});function XT(t,e){return rr(t,e?.equal)}function ew(t){return Fu(t)}var Hm=Symbol("InputSignalNode#UNSET"),tw=ee(G({},or),{transformFn:void 0,applyValueToInputSignal(t,e){En(t,e)}});function Bm(t,e){let n=Object.create(tw);n.value=t,n.transformFn=e?.transform;function r(){if(Ft(n),n.value===Hm){let o=null;throw new g(-950,o)}return n.value}return r[Z]=n,r}var Om=class{attributeName;constructor(e){this.attributeName=e}__NG_ELEMENT_ID__=()=>wp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},qj=(()=>{let t=new P("");return t.__NG_ELEMENT_ID__=e=>{let n=Q();if(n===null)throw new g(-204,!1);if(n.type&2)return n.value;if(e&8)return null;throw new g(-204,!1)},t})();function Pm(t,e){return Bm(t,e)}function nw(t){return Bm(Hm,t)}var zj=(Pm.required=nw,Pm);function Lm(t,e){return _l(e)}function rw(t,e){return Tl(e)}var Gj=(Lm.required=rw,Lm);function Fm(t,e){return _l(e)}function ow(t,e){return Tl(e)}var Wj=(Fm.required=ow,Fm);var iw=1e4;var Qj=iw-1e3;var Pl=class{supports(e){return gl(e)}create(e){return new Ll(e)}},sw=(t,e)=>e,Ll=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(e){this._trackByFn=e||sw}forEachItem(e){let n;for(n=this._itHead;n!==null;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<jm(r,o,i)?n:r,a=jm(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 l=a-o,u=c-o;if(l!=u){for(let p=0;p<l;p++){let f=p<i.length?i[p]:i[p]=0,h=f+p;u<=h&&h<l&&(i[p]=f+1)}let d=s.previousIndex;i[d]=u-l}}a!==c&&e(s,a,c)}}forEachPreviousItem(e){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)e(n)}forEachAddedItem(e){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)e(n)}forEachMovedItem(e){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)e(n)}forEachRemovedItem(e){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)e(n)}forEachIdentityChange(e){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)e(n)}diff(e){if(e==null&&(e=[]),!gl(e))throw new g(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)i=e[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,Ch(e,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=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,o){let i;return e===null?i=this._itTail:(i=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,i,o)):(e=this._linkedRecords===null?null:this._linkedRecords.get(r,o),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,i,o)):e=this._addAfter(new Fl(n,r),i,o)),e}_verifyReinsertion(e,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;e!==null;){let n=e._next;this._addToRemovals(this._unlink(e)),e=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(e,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let o=e._prevRemoved,i=e._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){let o=n===null?this._itHead:n._next;return e._next=o,e._prev=n,o===null?this._itTail=e:o._prev=e,n===null?this._itHead=e:n._next=e,this._linkedRecords===null&&(this._linkedRecords=new ss),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let n=e._prev,r=e._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new ss),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Fl=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(e,n){this.item=e,this.trackById=n}},jl=class{_head=null;_tail=null;add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){let n=e._prevDup,r=e._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},ss=class{map=new Map;put(e){let n=e.trackById,r=this.map.get(n);r||(r=new jl,this.map.set(n,r)),r.add(e)}get(e,n){let r=e,o=this.map.get(r);return o?o.get(e,n):null}remove(e){let n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function jm(t,e,n){let r=t.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+e+o}function Vm(){return new aw([new Pl])}var aw=(()=>{class t{factories;static \u0275prov=fe({token:t,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 t(n)}static extend(n){return{provide:t,useFactory:()=>{let r=S(t,{optional:!0,skipSelf:!0});return t.create(n,r||Vm())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new g(901,!1)}}return t})();var Kj=(()=>{class t{static __NG_ELEMENT_ID__=cw}return t})();function cw(t){return lw(Q(),w(),(t&16)===16)}function lw(t,e,n){if(st(t)&&!n){let r=Se(t.index,e);return new xt(r,r)}else if(t.type&175){let r=e[le];return new xt(r,e)}return null}var uw=(()=>{class t{zone=S(ne);changeDetectionScheduler=S(Ae);applicationRef=S(qr);applicationErrorHandler=S(Mt);_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||t)};static \u0275prov=Qn({token:t,factory:t.\u0275fac})}return t})(),dw=new P("",{factory:()=>!1});function fw({ngZoneFactory:t,scheduleInRootZone:e}){return t??=()=>new ne(ee(G({},$m()),{scheduleInRootZone:e})),[{provide:jn,useValue:!1},{provide:ne,useFactory:t},{provide:Yt,multi:!0,useFactory:()=>{let n=S(uw,{optional:!0});return()=>n.initialize()}},{provide:Yt,multi:!0,useFactory:()=>{let n=S(pw);return()=>{n.initialize()}}},{provide:Ei,useValue:e??Ya}]}function Zj(t){let e=t?.scheduleInRootZone,n=fw({ngZoneFactory:()=>{let r=$m(t);return r.scheduleInRootZone=e,r.shouldCoalesceEventChangeDetection&&lt("NgZone_CoalesceEvent"),new ne(r)},scheduleInRootZone:e});return Ta([{provide:dw,useValue:!0},n])}function $m(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var pw=(()=>{class t{subscription=new $;initialized=!1;zone=S(ne);pendingTasks=S(Ct);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(()=>{ne.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ne.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Qn({token:t,factory:t.\u0275fac})}return t})();var Vl=new P(""),hw=new P("");function Gr(t){return!t.moduleRef}function mw(t){let e=Gr(t)?t.r3Injector:t.moduleRef.injector,n=e.get(ne);return n.run(()=>{Gr(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=e.get(Mt),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Gr(t)){let i=()=>e.destroy(),s=t.platformInjector.get(Vl);s.add(i),e.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>t.moduleRef.destroy(),s=t.platformInjector.get(Vl);s.add(i),t.moduleRef.onDestroy(()=>{Mr(t.allPlatformModules,t.moduleRef),o.unsubscribe(),s.delete(i)})}return yw(r,n,()=>{let i=e.get(Ct),s=i.add(),a=e.get(bl);return a.runInitializers(),a.donePromise.then(()=>{let c=e.get(Rl,zr);if(dm(c||zr),!e.get(hw,!0))return Gr(t)?e.get(qr):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Gr(t)){let u=e.get(qr);return t.rootComponent!==void 0&&u.bootstrap(t.rootComponent),u}else return gw?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{i.remove(s)})})})}var gw;function yw(t,e,n){try{let r=n();return wl(r)?r.catch(o=>{throw e.runOutsideAngular(()=>t(o)),o}):r}catch(r){throw e.runOutsideAngular(()=>t(r)),r}}var is=null;function vw(t=[],e){return ze.create({name:e,providers:[{provide:Sa,useValue:"platform"},{provide:Vl,useValue:new Set([()=>is=null])},...t]})}function Ew(t=[]){if(is)return is;let e=vw(t);return is=e,rm(),Iw(e),e}function Iw(t){let e=t.get(If,null);ii(t,()=>{e?.forEach(n=>n())})}function Yj(t){let{rootComponent:e,appProviders:n,platformProviders:r,platformRef:o}=t;F(O.BootstrapApplicationStart);try{let i=o?.injector??Ew(r),s=[Rm(),yf,...n||[]],a=new Pr({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return mw({r3Injector:a.injector,platformInjector:i,rootComponent:e})}catch(i){return Promise.reject(i)}finally{F(O.BootstrapApplicationEnd)}}function Jj(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Xj(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}var Ol=Symbol("NOT_SET"),Um=new Set,Dw=ee(G({},or),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:Ol,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=!0}this.sequence.scheduler.notify(7)},phaseFn(t){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=!1,this.value!==Ol&&!yn(this))return this.signal;try{for(let o of this.cleanup??Um)o()}finally{this.cleanup?.clear()}let e=[];t!==void 0&&e.push(t),e.push(this.registerCleanupFn);let n=pt(this),r;try{r=this.userFn.apply(null,e)}finally{jt(this,n)}return(this.value===Ol||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),Hl=class extends xr{scheduler;lastPhase=null;nodes=[void 0,void 0,void 0,void 0];onDestroyFns=null;constructor(e,n,r,o,i,s=null){super(e,[void 0,void 0,void 0,void 0],r,!1,i.get(sn),s),this.scheduler=o;for(let a of tl){let c=n[a];if(c===void 0)continue;let l=Object.create(Dw);l.sequence=this,l.phase=a,l.userFn=c,l.dirty=!0,l.signal=()=>(Ft(l),l.value),l.signal[Z]=l,l.registerCleanupFn=u=>(l.cleanup??=new Set).add(u),this.nodes[a]=l,this.hooks[a]=u=>l.phaseFn(u)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){if(this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();super.destroy();for(let e of this.nodes)if(e)try{for(let n of e.cleanup??Um)n()}finally{ht(e)}}};function eV(t,e){let n=e?.injector??S(ze),r=n.get(Ae),o=n.get(Yi),i=n.get(fn,null,{optional:!0});o.impl??=n.get(nl);let s=t;typeof s=="function"&&(s={mixedReadWrite:t});let a=n.get(Fn,null,{optional:!0}),c=new Hl(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}function tV(t,e){let n=It(t),r=e.elementInjector||An();return new zn(n).create(r,e.projectableNodes,e.hostElement,e.environmentInjector,e.directives,e.bindings)}var A=(function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t})(A||{}),Le="*";function qm(t,e=null){return{type:A.Sequence,steps:t,options:e}}function Bl(t){return{type:A.Style,styles:t,offset:null}}var ut=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(e=0,n=0){this.totalTime=e+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let n=e=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Yn=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let n=0,r=0,o=0,i=this.players.length;i==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==i&&this._onFinish()}),s.onDestroy(()=>{++r==i&&this._onDestroy()}),s.onStart(()=>{++o==i&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let n=e*this.totalTime;this.players.forEach(r=>{let o=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(o)})}getPosition(){let e=this.players.reduce((n,r)=>n===null||r.totalTime>n.totalTime?r:n,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let n=e=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Wr="!";function zm(t){return new g(3e3,!1)}function Tw(){return new g(3100,!1)}function ww(){return new g(3101,!1)}function bw(t){return new g(3001,!1)}function Sw(t){return new g(3003,!1)}function Cw(t){return new g(3004,!1)}function Wm(t,e){return new g(3005,!1)}function Qm(){return new g(3006,!1)}function Km(){return new g(3007,!1)}function Zm(t,e){return new g(3008,!1)}function Ym(t){return new g(3002,!1)}function Jm(t,e,n,r,o){return new g(3010,!1)}function Xm(){return new g(3011,!1)}function eg(){return new g(3012,!1)}function tg(){return new g(3200,!1)}function ng(){return new g(3202,!1)}function rg(){return new g(3013,!1)}function og(t){return new g(3014,!1)}function ig(t){return new g(3015,!1)}function sg(t){return new g(3016,!1)}function ag(t){return new g(3500,!1)}function cg(t){return new g(3501,!1)}function lg(t,e){return new g(3404,!1)}function Mw(t){return new g(3502,!1)}function ug(t){return new g(3503,!1)}function dg(){return new g(3300,!1)}function fg(t){return new g(3504,!1)}function pg(t){return new g(3301,!1)}function hg(t,e){return new g(3302,!1)}function mg(t){return new g(3303,!1)}function gg(t,e){return new g(3400,!1)}function yg(t){return new g(3401,!1)}function vg(t){return new g(3402,!1)}function Eg(t,e){return new g(3505,!1)}var Nw=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function dt(t){switch(t.length){case 0:return new ut;case 1:return t[0];default:return new Yn(t)}}function zl(t,e,n=new Map,r=new Map){let o=[],i=[],s=-1,a=null;if(e.forEach(c=>{let l=c.get("offset"),u=l==s,d=u&&a||new Map;c.forEach((p,f)=>{let h=f,m=p;if(f!=="offset")switch(h=t.normalizePropertyName(h,o),m){case Wr:m=n.get(f);break;case Le:m=r.get(f);break;default:m=t.normalizeStyleValue(f,h,m,o);break}d.set(h,m)}),u||i.push(d),a=d,s=l}),o.length)throw Mw(o);return i}function as(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&$l(n,"start",t)));break;case"done":t.onDone(()=>r(n&&$l(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&$l(n,"destroy",t)));break}}function $l(t,e,n){let r=n.totalTime,o=!!n.disabled,i=cs(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,r??t.totalTime,o),s=t._data;return s!=null&&(i._data=s),i}function cs(t,e,n,r,o="",i=0,s){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:o,totalTime:i,disabled:!!s}}function he(t,e,n){let r=t.get(e);return r||t.set(e,r=n),r}function Gl(t){let e=t.indexOf(":"),n=t.substring(1,e),r=t.slice(e+1);return[n,r]}var xw=typeof document>"u"?null:document.documentElement;function ls(t){let e=t.parentNode||t.host||null;return e===xw?null:e}function Aw(t){return t.substring(1,6)=="ebkit"}var pn=null,Gm=!1;function Ig(t){pn||(pn=Rw()||{},Gm=pn.style?"WebkitAppearance"in pn.style:!1);let e=!0;return pn.style&&!Aw(t)&&(e=t in pn.style,!e&&Gm&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in pn.style)),e}function kw(t){return Nw.has(t)}function Rw(){return typeof document<"u"?document.body:null}function Wl(t,e){for(;e;){if(e===t)return!0;e=ls(e)}return!1}function Ql(t,e,n){if(n)return Array.from(t.querySelectorAll(e));let r=t.querySelector(e);return r?[r]:[]}var Ow=1e3,Kl="{{",Pw="}}",us="ng-enter",Qr="ng-leave",Kr="ng-trigger",Zr=".ng-trigger",Zl="ng-animating",ds=".ng-animating";function et(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ul(parseFloat(e[1]),e[2])}function Ul(t,e){return e==="s"?t*Ow:t}function Yr(t,e,n){return t.hasOwnProperty("duration")?t:Fw(t,e,n)}var Lw=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Fw(t,e,n){let r,o=0,i="";if(typeof t=="string"){let s=t.match(Lw);if(s===null)return e.push(zm(t)),{duration:0,delay:0,easing:""};r=Ul(parseFloat(s[1]),s[2]);let a=s[3];a!=null&&(o=Ul(parseFloat(a),s[4]));let c=s[5];c&&(i=c)}else r=t;if(!n){let s=!1,a=e.length;r<0&&(e.push(Tw()),s=!0),o<0&&(e.push(ww()),s=!0),s&&e.splice(a,0,zm(t))}return{duration:r,delay:o,easing:i}}function Dg(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function Yl(t){return Array.isArray(t)?new Map(...t):new Map(t)}function Fe(t,e,n){e.forEach((r,o)=>{let i=fs(o);n&&!n.has(o)&&n.set(o,t.style[i]),t.style[i]=r})}function At(t,e){e.forEach((n,r)=>{let o=fs(r);t.style[o]=""})}function Jn(t){return Array.isArray(t)?t.length==1?t[0]:qm(t):t}function _g(t,e,n){let r=e.params||{},o=Jl(t);o.length&&o.forEach(i=>{r.hasOwnProperty(i)||n.push(bw(i))})}var ql=new RegExp(`${Kl}\\s*(.+?)\\s*${Pw}`,"g");function Jl(t){let e=[];if(typeof t=="string"){let n;for(;n=ql.exec(t);)e.push(n[1]);ql.lastIndex=0}return e}function Xn(t,e,n){let r=`${t}`,o=r.replace(ql,(i,s)=>{let a=e[s];return a==null&&(n.push(Sw(s)),a=""),a.toString()});return o==r?t:o}var jw=/-+([a-z0-9])/g;function fs(t){return t.replace(jw,(...e)=>e[1].toUpperCase())}function Vw(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Tg(t,e){return t===0||e===0}function wg(t,e,n){if(n.size&&e.length){let r=e[0],o=[];if(n.forEach((i,s)=>{r.has(s)||o.push(s),r.set(s,i)}),o.length)for(let i=1;i<e.length;i++){let s=e[i];o.forEach(a=>s.set(a,ps(t,a)))}}return e}function me(t,e,n){switch(e.type){case A.Trigger:return t.visitTrigger(e,n);case A.State:return t.visitState(e,n);case A.Transition:return t.visitTransition(e,n);case A.Sequence:return t.visitSequence(e,n);case A.Group:return t.visitGroup(e,n);case A.Animate:return t.visitAnimate(e,n);case A.Keyframes:return t.visitKeyframes(e,n);case A.Style:return t.visitStyle(e,n);case A.Reference:return t.visitReference(e,n);case A.AnimateChild:return t.visitAnimateChild(e,n);case A.AnimateRef:return t.visitAnimateRef(e,n);case A.Query:return t.visitQuery(e,n);case A.Stagger:return t.visitStagger(e,n);default:throw Cw(e.type)}}function ps(t,e){return window.getComputedStyle(t)[e]}var jg=(()=>{class t{validateStyleProperty(n){return Ig(n)}containsElement(n,r){return Wl(n,r)}getParentElement(n){return ls(n)}query(n,r,o){return Ql(n,r,o)}computeStyle(n,r,o){return o||""}animate(n,r,o,i,s,a=[],c){return new ut(o,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=fe({token:t,factory:t.\u0275fac})}return t})(),bg=class{static NOOP=new jg},ou=class{},iu=class{normalizePropertyName(e,n){return e}normalizeStyleValue(e,n,r,o){return r}},Hw=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),su=class extends ou{normalizePropertyName(e,n){return fs(e)}normalizeStyleValue(e,n,r,o){let i="",s=r.toString().trim();if(Hw.has(n)&&r!==0&&r!=="0")if(typeof r=="number")i="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&o.push(Wm(e,r))}return s+i}};var vs="*";function Bw(t,e){let n=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(r=>$w(r,n,e)):n.push(t),n}function $w(t,e,n){if(t[0]==":"){let c=Uw(t,n);if(typeof c=="function"){e.push(c);return}t=c}let r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return n.push(ig(t)),e;let o=r[1],i=r[2],s=r[3];e.push(Sg(o,s));let a=o==vs&&s==vs;i[0]=="<"&&!a&&e.push(Sg(s,o))}function Uw(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,r)=>parseFloat(r)>parseFloat(n);case":decrement":return(n,r)=>parseFloat(r)<parseFloat(n);default:return e.push(sg(t)),"* => *"}}var hs=new Set(["true","1"]),ms=new Set(["false","0"]);function Sg(t,e){let n=hs.has(t)||ms.has(t),r=hs.has(e)||ms.has(e);return(o,i)=>{let s=t==vs||t==o,a=e==vs||e==i;return!s&&n&&typeof o=="boolean"&&(s=o?hs.has(t):ms.has(t)),!a&&r&&typeof i=="boolean"&&(a=i?hs.has(e):ms.has(e)),s&&a}}var Vg=":self",qw=new RegExp(`s*${Vg}s*,?`,"g");function Eu(t,e,n,r){return new au(t).build(e,n,r)}var Cg="",au=class{_driver;constructor(e){this._driver=e}build(e,n,r){let o=new cu(n);return this._resetContextStyleTimingState(o),me(this,Jn(e),o)}_resetContextStyleTimingState(e){e.currentQuerySelector=Cg,e.collectedStyles=new Map,e.collectedStyles.set(Cg,new Map),e.currentTime=0}visitTrigger(e,n){let r=n.queryCount=0,o=n.depCount=0,i=[],s=[];return e.name.charAt(0)=="@"&&n.errors.push(Qm()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==A.State){let c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(u=>{c.name=u,i.push(this.visitState(c,n))}),c.name=l}else if(a.type==A.Transition){let c=this.visitTransition(a,n);r+=c.queryCount,o+=c.depCount,s.push(c)}else n.errors.push(Km())}),{type:A.Trigger,name:e.name,states:i,transitions:s,queryCount:r,depCount:o,options:null}}visitState(e,n){let r=this.visitStyle(e.styles,n),o=e.options&&e.options.params||null;if(r.containsDynamicStyles){let i=new Set,s=o||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{Jl(c).forEach(l=>{s.hasOwnProperty(l)||i.add(l)})})}),i.size&&n.errors.push(Zm(e.name,[...i.values()]))}return{type:A.State,name:e.name,style:r,options:o?{params:o}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;let r=me(this,Jn(e.animation),n),o=Bw(e.expr,n.errors);return{type:A.Transition,matchers:o,animation:r,queryCount:n.queryCount,depCount:n.depCount,options:hn(e.options)}}visitSequence(e,n){return{type:A.Sequence,steps:e.steps.map(r=>me(this,r,n)),options:hn(e.options)}}visitGroup(e,n){let r=n.currentTime,o=0,i=e.steps.map(s=>{n.currentTime=r;let a=me(this,s,n);return o=Math.max(o,n.currentTime),a});return n.currentTime=o,{type:A.Group,steps:i,options:hn(e.options)}}visitAnimate(e,n){let r=Qw(e.timings,n.errors);n.currentAnimateTimings=r;let o,i=e.styles?e.styles:Bl({});if(i.type==A.Keyframes)o=this.visitKeyframes(i,n);else{let s=e.styles,a=!1;if(!s){a=!0;let l={};r.easing&&(l.easing=r.easing),s=Bl(l)}n.currentTime+=r.duration+r.delay;let c=this.visitStyle(s,n);c.isEmptyStep=a,o=c}return n.currentAnimateTimings=null,{type:A.Animate,timings:r,style:o,options:null}}visitStyle(e,n){let r=this._makeStyleAst(e,n);return this._validateStyleAst(r,n),r}_makeStyleAst(e,n){let r=[],o=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of o)typeof a=="string"?a===Le?r.push(a):n.errors.push(Ym(a)):r.push(new Map(Object.entries(a)));let i=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!i)){for(let c of a.values())if(c.toString().indexOf(Kl)>=0){i=!0;break}}}),{type:A.Style,styles:r,easing:s,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,n){let r=n.currentAnimateTimings,o=n.currentTime,i=n.currentTime;r&&i>0&&(i-=r.duration+r.delay),e.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,c)=>{let l=n.collectedStyles.get(n.currentQuerySelector),u=l.get(c),d=!0;u&&(i!=o&&i>=u.startTime&&o<=u.endTime&&(n.errors.push(Jm(c,u.startTime,u.endTime,i,o)),d=!1),i=u.startTime),d&&l.set(c,{startTime:i,endTime:o}),n.options&&_g(a,n.options,n.errors)})})}visitKeyframes(e,n){let r={type:A.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(Xm()),r;let o=1,i=0,s=[],a=!1,c=!1,l=0,u=e.steps.map(_=>{let L=this._makeStyleAst(_,n),K=L.offset!=null?L.offset:Ww(L.styles),te=0;return K!=null&&(i++,te=L.offset=K),c=c||te<0||te>1,a=a||te<l,l=te,s.push(te),L});c&&n.errors.push(eg()),a&&n.errors.push(tg());let d=e.steps.length,p=0;i>0&&i<d?n.errors.push(ng()):i==0&&(p=o/(d-1));let f=d-1,h=n.currentTime,m=n.currentAnimateTimings,v=m.duration;return u.forEach((_,L)=>{let K=p>0?L==f?1:p*L:s[L],te=K*v;n.currentTime=h+m.delay+te,m.duration=te,this._validateStyleAst(_,n),_.offset=K,r.styles.push(_)}),r}visitReference(e,n){return{type:A.Reference,animation:me(this,Jn(e.animation),n),options:hn(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:A.AnimateChild,options:hn(e.options)}}visitAnimateRef(e,n){return{type:A.AnimateRef,animation:this.visitReference(e.animation,n),options:hn(e.options)}}visitQuery(e,n){let r=n.currentQuerySelector,o=e.options||{};n.queryCount++,n.currentQuery=e;let[i,s]=zw(e.selector);n.currentQuerySelector=r.length?r+" "+i:i,he(n.collectedStyles,n.currentQuerySelector,new Map);let a=me(this,Jn(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:A.Query,selector:i,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:hn(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(rg());let r=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Yr(e.timings,n.errors,!0);return{type:A.Stagger,animation:me(this,Jn(e.animation),n),timings:r,options:null}}};function zw(t){let e=!!t.split(/\s*,\s*/).find(n=>n==Vg);return e&&(t=t.replace(qw,"")),t=t.replace(/@\*/g,Zr).replace(/@\w+/g,n=>Zr+"-"+n.slice(1)).replace(/:animating/g,ds),[t,e]}function Gw(t){return t?G({},t):null}var cu=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function Ww(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(n=>{if(n instanceof Map&&n.has("offset")){let r=n;e=parseFloat(r.get("offset")),r.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}return e}function Qw(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let i=Yr(t,e).duration;return Xl(i,0,"")}let n=t;if(n.split(/\s+/).some(i=>i.charAt(0)=="{"&&i.charAt(1)=="{")){let i=Xl(0,0,"");return i.dynamic=!0,i.strValue=n,i}let o=Yr(n,e);return Xl(o.duration,o.delay,o.easing)}function hn(t){return t?(t=G({},t),t.params&&(t.params=Gw(t.params))):t={},t}function Xl(t,e,n){return{duration:t,delay:e,easing:n}}function Iu(t,e,n,r,o,i,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:o,delay:i,totalTime:o+i,easing:s,subTimeline:a}}var tr=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,n){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...n)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Kw=1,Zw=":enter",Yw=new RegExp(Zw,"g"),Jw=":leave",Xw=new RegExp(Jw,"g");function Du(t,e,n,r,o,i=new Map,s=new Map,a,c,l=[]){return new lu().buildKeyframes(t,e,n,r,o,i,s,a,c,l)}var lu=class{buildKeyframes(e,n,r,o,i,s,a,c,l,u=[]){l=l||new tr;let d=new uu(e,n,l,o,i,u,[]);d.options=c;let p=c.delay?et(c.delay):0;d.currentTimeline.delayNextStep(p),d.currentTimeline.setStyles([s],null,d.errors,c),me(this,r,d);let f=d.timelines.filter(h=>h.containsAnimation());if(f.length&&a.size){let h;for(let m=f.length-1;m>=0;m--){let v=f[m];if(v.element===n){h=v;break}}h&&!h.allowOnlyTimelineStyles()&&h.setStyles([a],null,d.errors,c)}return f.length?f.map(h=>h.buildKeyframes()):[Iu(n,[],[],[],0,p,"",!1)]}visitTrigger(e,n){}visitState(e,n){}visitTransition(e,n){}visitAnimateChild(e,n){let r=n.subInstructions.get(n.element);if(r){let o=n.createSubContext(e.options),i=n.currentTimeline.currentTime,s=this._visitSubInstructions(r,o,o.options);i!=s&&n.transformIntoNewTimeline(s)}n.previousNode=e}visitAnimateRef(e,n){let r=n.createSubContext(e.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],n,r),this.visitReference(e.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=e}_applyAnimationRefDelays(e,n,r){for(let o of e){let i=o?.delay;if(i){let s=typeof i=="number"?i:et(Xn(i,o?.params??{},n.errors));r.delayNextStep(s)}}}_visitSubInstructions(e,n,r){let i=n.currentTimeline.currentTime,s=r.duration!=null?et(r.duration):null,a=r.delay!=null?et(r.delay):null;return s!==0&&e.forEach(c=>{let l=n.appendInstructionToTimeline(c,s,a);i=Math.max(i,l.duration+l.delay)}),i}visitReference(e,n){n.updateOptions(e.options,!0),me(this,e.animation,n),n.previousNode=e}visitSequence(e,n){let r=n.subContextCount,o=n,i=e.options;if(i&&(i.params||i.delay)&&(o=n.createSubContext(i),o.transformIntoNewTimeline(),i.delay!=null)){o.previousNode.type==A.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Es);let s=et(i.delay);o.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>me(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>r&&o.transformIntoNewTimeline()),n.previousNode=e}visitGroup(e,n){let r=[],o=n.currentTimeline.currentTime,i=e.options&&e.options.delay?et(e.options.delay):0;e.steps.forEach(s=>{let a=n.createSubContext(e.options);i&&a.delayNextStep(i),me(this,s,a),o=Math.max(o,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>n.currentTimeline.mergeTimelineCollectedStyles(s)),n.transformIntoNewTimeline(o),n.previousNode=e}_visitTiming(e,n){if(e.dynamic){let r=e.strValue,o=n.params?Xn(r,n.params,n.errors):r;return Yr(o,n.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,n){let r=n.currentAnimateTimings=this._visitTiming(e.timings,n),o=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),o.snapshotCurrentStyles());let i=e.style;i.type==A.Keyframes?this.visitKeyframes(i,n):(n.incrementTime(r.duration),this.visitStyle(i,n),o.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=e}visitStyle(e,n){let r=n.currentTimeline,o=n.currentAnimateTimings;!o&&r.hasCurrentStyleProperties()&&r.forwardFrame();let i=o&&o.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(i):r.setStyles(e.styles,i,n.errors,n.options),n.previousNode=e}visitKeyframes(e,n){let r=n.currentAnimateTimings,o=n.currentTimeline.duration,i=r.duration,a=n.createSubContext().currentTimeline;a.easing=r.easing,e.styles.forEach(c=>{let l=c.offset||0;a.forwardTime(l*i),a.setStyles(c.styles,c.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(o+i),n.previousNode=e}visitQuery(e,n){let r=n.currentTimeline.currentTime,o=e.options||{},i=o.delay?et(o.delay):0;i&&(n.previousNode.type===A.Style||r==0&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Es);let s=r,a=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!o.optional,n.errors);n.currentQueryTotal=a.length;let c=null;a.forEach((l,u)=>{n.currentQueryIndex=u;let d=n.createSubContext(e.options,l);i&&d.delayNextStep(i),l===n.element&&(c=d.currentTimeline),me(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let p=d.currentTimeline.currentTime;s=Math.max(s,p)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(s),c&&(n.currentTimeline.mergeTimelineCollectedStyles(c),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=e}visitStagger(e,n){let r=n.parentContext,o=n.currentTimeline,i=e.timings,s=Math.abs(i.duration),a=s*(n.currentQueryTotal-1),c=s*n.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":c=a-c;break;case"full":c=r.currentStaggerTime;break}let u=n.currentTimeline;c&&u.delayNextStep(c);let d=u.currentTime;me(this,e.animation,n),n.previousNode=e,r.currentStaggerTime=o.currentTime-d+(o.startTime-r.currentTimeline.startTime)}},Es={},uu=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Es;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,n,r,o,i,s,a,c){this._driver=e,this.element=n,this.subInstructions=r,this._enterClassName=o,this._leaveClassName=i,this.errors=s,this.timelines=a,this.currentTimeline=c||new Is(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,n){if(!e)return;let r=e,o=this.options;r.duration!=null&&(o.duration=et(r.duration)),r.delay!=null&&(o.delay=et(r.delay));let i=r.params;if(i){let s=o.params;s||(s=this.options.params={}),Object.keys(i).forEach(a=>{(!n||!s.hasOwnProperty(a))&&(s[a]=Xn(i[a],s,this.errors))})}}_copyOptions(){let e={};if(this.options){let n=this.options.params;if(n){let r=e.params={};Object.keys(n).forEach(o=>{r[o]=n[o]})}}return e}createSubContext(e=null,n,r){let o=n||this.element,i=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,r||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=Es,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,n,r){let o={duration:n??e.duration,delay:this.currentTimeline.currentTime+(r??0)+e.delay,easing:""},i=new du(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,o,e.stretchStartingKeyframe);return this.timelines.push(i),o}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,n,r,o,i,s){let a=[];if(o&&a.push(this.element),e.length>0){e=e.replace(Yw,"."+this._enterClassName),e=e.replace(Xw,"."+this._leaveClassName);let c=r!=1,l=this._driver.query(this.element,e,c);r!==0&&(l=r<0?l.slice(l.length+r,l.length):l.slice(0,r)),a.push(...l)}return!i&&a.length==0&&s.push(og(n)),a}},Is=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,n,r,o){this._driver=e,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=o,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let n=this._keyframes.size===1&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+e),n&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Kw,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,n){this._localTimelineStyles.set(e,n),this._globalTimelineStyles.set(e,n),this._styleSummary.set(e,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[n,r]of this._globalTimelineStyles)this._backFill.set(n,r||Le),this._currentKeyframe.set(n,Le);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,r,o){n&&this._previousKeyframe.set("easing",n);let i=o&&o.params||{},s=eb(e,this._globalTimelineStyles);for(let[a,c]of s){let l=Xn(c,i,r);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Le),this._updateStyle(a,l)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,n)=>{this._currentKeyframe.set(n,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,e)}))}snapshotCurrentStyles(){for(let[e,n]of this._localTimelineStyles)this._pendingStyles.set(e,n),this._updateStyle(e,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let n in this._currentKeyframe)e.push(n);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((n,r)=>{let o=this._styleSummary.get(r);(!o||n.time>o.time)&&this._updateStyle(r,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,n=new Set,r=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((a,c)=>{let l=new Map([...this._backFill,...a]);l.forEach((u,d)=>{u===Wr?e.add(d):u===Le&&n.add(d)}),r||l.set("offset",c/this.duration),o.push(l)});let i=[...e.values()],s=[...n.values()];if(r){let a=o[0],c=new Map(a);a.set("offset",0),c.set("offset",1),o=[a,c]}return Iu(this.element,o,i,s,this.duration,this.startTime,this.easing,!1)}},du=class extends Is{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,n,r,o,i,s,a=!1){super(e,n,s.delay),this.keyframes=r,this.preStyleProps=o,this.postStyleProps=i,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:n,duration:r,easing:o}=this.timings;if(this._stretchStartingKeyframe&&n){let i=[],s=r+n,a=n/s,c=new Map(e[0]);c.set("offset",0),i.push(c);let l=new Map(e[0]);l.set("offset",Mg(a)),i.push(l);let u=e.length-1;for(let d=1;d<=u;d++){let p=new Map(e[d]),f=p.get("offset"),h=n+f*r;p.set("offset",Mg(h/s)),i.push(p)}r=s,n=0,o="",e=i}return Iu(this.element,e,this.preStyleProps,this.postStyleProps,r,n,o,!0)}};function Mg(t,e=3){let n=Math.pow(10,e-1);return Math.round(t*n)/n}function eb(t,e){let n=new Map,r;return t.forEach(o=>{if(o==="*"){r??=e.keys();for(let i of r)n.set(i,Le)}else for(let[i,s]of o)n.set(i,s)}),n}function Ng(t,e,n,r,o,i,s,a,c,l,u,d,p){return{type:0,element:t,triggerName:e,isRemovalTransition:o,fromState:n,fromStyles:i,toState:r,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:p}}var eu={},Ds=class{_triggerName;ast;_stateStyles;constructor(e,n,r){this._triggerName=e,this.ast=n,this._stateStyles=r}match(e,n,r,o){return tb(this.ast.matchers,e,n,r,o)}buildStyles(e,n,r){let o=this._stateStyles.get("*");return e!==void 0&&(o=this._stateStyles.get(e?.toString())||o),o?o.buildStyles(n,r):new Map}build(e,n,r,o,i,s,a,c,l,u){let d=[],p=this.ast.options&&this.ast.options.params||eu,f=a&&a.params||eu,h=this.buildStyles(r,f,d),m=c&&c.params||eu,v=this.buildStyles(o,m,d),_=new Set,L=new Map,K=new Map,te=o==="void",mn={params:Hg(m,p),delay:this.ast.options?.delay},Ve=u?[]:Du(e,n,this.ast.animation,i,s,h,v,mn,l,d),se=0;return Ve.forEach(ue=>{se=Math.max(ue.duration+ue.delay,se)}),d.length?Ng(n,this._triggerName,r,o,te,h,v,[],[],L,K,se,d):(Ve.forEach(ue=>{let kt=ue.element,gn=he(L,kt,new Set);ue.preStyleProps.forEach(Rt=>gn.add(Rt));let _u=he(K,kt,new Set);ue.postStyleProps.forEach(Rt=>_u.add(Rt)),kt!==n&&_.add(kt)}),Ng(n,this._triggerName,r,o,te,h,v,Ve,[..._.values()],L,K,se))}};function tb(t,e,n,r,o){return t.some(i=>i(e,n,r,o))}function Hg(t,e){let n=G({},e);return Object.entries(t).forEach(([r,o])=>{o!=null&&(n[r]=o)}),n}var fu=class{styles;defaultParams;normalizer;constructor(e,n,r){this.styles=e,this.defaultParams=n,this.normalizer=r}buildStyles(e,n){let r=new Map,o=Hg(e,this.defaultParams);return this.styles.styles.forEach(i=>{typeof i!="string"&&i.forEach((s,a)=>{s&&(s=Xn(s,o,n));let c=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,c,s,n),r.set(a,s)})}),r}};function nb(t,e,n){return new pu(t,e,n)}var pu=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,n,r){this.name=e,this.ast=n,this._normalizer=r,n.states.forEach(o=>{let i=o.options&&o.options.params||{};this.states.set(o.name,new fu(o.style,i,r))}),xg(this.states,"true","1"),xg(this.states,"false","0"),n.transitions.forEach(o=>{this.transitionFactories.push(new Ds(e,o,this.states))}),this.fallbackTransition=rb(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,n,r,o){return this.transitionFactories.find(s=>s.match(e,n,r,o))||null}matchStyles(e,n,r){return this.fallbackTransition.buildStyles(e,n,r)}};function rb(t,e,n){let r=[(s,a)=>!0],o={type:A.Sequence,steps:[],options:null},i={type:A.Transition,animation:o,matchers:r,options:null,queryCount:0,depCount:0};return new Ds(t,i,e)}function xg(t,e,n){t.has(e)?t.has(n)||t.set(n,t.get(e)):t.has(n)&&t.set(e,t.get(n))}var ob=new tr,hu=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,n,r){this.bodyNode=e,this._driver=n,this._normalizer=r}register(e,n){let r=[],o=[],i=Eu(this._driver,n,r,o);if(r.length)throw ug(r);this._animations.set(e,i)}_buildPlayer(e,n,r){let o=e.element,i=zl(this._normalizer,e.keyframes,n,r);return this._driver.animate(o,i,e.duration,e.delay,e.easing,[],!0)}create(e,n,r={}){let o=[],i=this._animations.get(e),s,a=new Map;if(i?(s=Du(this._driver,n,i,us,Qr,new Map,new Map,r,ob,o),s.forEach(u=>{let d=he(a,u.element,new Map);u.postStyleProps.forEach(p=>d.set(p,null))})):(o.push(dg()),s=[]),o.length)throw fg(o);a.forEach((u,d)=>{u.forEach((p,f)=>{u.set(f,this._driver.computeStyle(d,f,Le))})});let c=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),l=dt(c);return this._playersById.set(e,l),l.onDestroy(()=>this.destroy(e)),this.players.push(l),l}destroy(e){let n=this._getPlayer(e);n.destroy(),this._playersById.delete(e);let r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}_getPlayer(e){let n=this._playersById.get(e);if(!n)throw pg(e);return n}listen(e,n,r,o){let i=cs(n,"","","");return as(this._getPlayer(e),r,i,o),()=>{}}command(e,n,r,o){if(r=="register"){this.register(e,o[0]);return}if(r=="create"){let s=o[0]||{};this.create(e,n,s);return}let i=this._getPlayer(e);switch(r){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(e);break}}},Ag="ng-animate-queued",ib=".ng-animate-queued",tu="ng-animate-disabled",sb=".ng-animate-disabled",ab="ng-star-inserted",cb=".ng-star-inserted",lb=[],Bg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ub={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},je="__ng_removed",Xr=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,n=""){this.namespaceId=n;let r=e&&e.hasOwnProperty("value"),o=r?e.value:e;if(this.value=fb(o),r){let i=e,{value:s}=i,a=Cs(i,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let n=e.params;if(n){let r=this.options.params;Object.keys(n).forEach(o=>{r[o]==null&&(r[o]=n[o])})}}},Jr="void",nu=new Xr(Jr),mu=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,n,r){this.id=e,this.hostElement=n,this._engine=r,this._hostClassName="ng-tns-"+e,Ce(n,this._hostClassName)}listen(e,n,r,o){if(!this._triggers.has(n))throw hg(r,n);if(r==null||r.length==0)throw mg(n);if(!pb(r))throw gg(r,n);let i=he(this._elementListeners,e,[]),s={name:n,phase:r,callback:o};i.push(s);let a=he(this._engine.statesByElement,e,new Map);return a.has(n)||(Ce(e,Kr),Ce(e,Kr+"-"+n),a.set(n,nu)),()=>{this._engine.afterFlush(()=>{let c=i.indexOf(s);c>=0&&i.splice(c,1),this._triggers.has(n)||a.delete(n)})}}register(e,n){return this._triggers.has(e)?!1:(this._triggers.set(e,n),!0)}_getTrigger(e){let n=this._triggers.get(e);if(!n)throw yg(e);return n}trigger(e,n,r,o=!0){let i=this._getTrigger(n),s=new eo(this.id,n,e),a=this._engine.statesByElement.get(e);a||(Ce(e,Kr),Ce(e,Kr+"-"+n),this._engine.statesByElement.set(e,a=new Map));let c=a.get(n),l=new Xr(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(n,l),c||(c=nu),!(l.value===Jr)&&c.value===l.value){if(!gb(c.params,l.params)){let m=[],v=i.matchStyles(c.value,c.params,m),_=i.matchStyles(l.value,l.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{At(e,v),Fe(e,_)})}return}let p=he(this._engine.playersByElement,e,[]);p.forEach(m=>{m.namespaceId==this.id&&m.triggerName==n&&m.queued&&m.destroy()});let f=i.matchTransition(c.value,l.value,e,l.params),h=!1;if(!f){if(!o)return;f=i.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:f,fromState:c,toState:l,player:s,isFallbackTransition:h}),h||(Ce(e,Ag),s.onStart(()=>{er(e,Ag)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);let v=this._engine.playersByElement.get(e);if(v){let _=v.indexOf(s);_>=0&&v.splice(_,1)}}),this.players.push(s),p.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(n=>n.delete(e)),this._elementListeners.forEach((n,r)=>{this._elementListeners.set(r,n.filter(o=>o.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let n=this._engine.playersByElement.get(e);n&&(n.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,n){let r=this._engine.driver.query(e,Zr,!0);r.forEach(o=>{if(o[je])return;let i=this._engine.fetchNamespacesByElement(o);i.size?i.forEach(s=>s.triggerLeaveAnimation(o,n,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(e,n,r,o){let i=this._engine.statesByElement.get(e),s=new Map;if(i){let a=[];if(i.forEach((c,l)=>{if(s.set(l,c.value),this._triggers.has(l)){let u=this.trigger(e,l,Jr,o);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,s),r&&dt(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let n=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(n&&r){let o=new Set;n.forEach(i=>{let s=i.name;if(o.has(s))return;o.add(s);let c=this._triggers.get(s).fallbackTransition,l=r.get(s)||nu,u=new Xr(Jr),d=new eo(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:c,fromState:l,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,n){let r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,n),this.triggerLeaveAnimation(e,n,!0))return;let o=!1;if(r.totalAnimations){let i=r.players.length?r.playersByQueriedElement.get(e):[];if(i&&i.length)o=!0;else{let s=e;for(;s=s.parentNode;)if(r.statesByElement.get(s)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(e),o)r.markElementAsRemoved(this.id,e,!1,n);else{let i=e[je];(!i||i===Bg)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,n))}}insertNode(e,n){Ce(e,this._hostClassName)}drainQueuedTransitions(e){let n=[];return this._queue.forEach(r=>{let o=r.player;if(o.destroyed)return;let i=r.element,s=this._elementListeners.get(i);s&&s.forEach(a=>{if(a.name==r.triggerName){let c=cs(i,r.triggerName,r.fromState.value,r.toState.value);c._data=e,as(r.player,a.phase,c,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):n.push(r)}),this._queue=[],n.sort((r,o)=>{let i=r.transition.ast.depCount,s=o.transition.ast.depCount;return i==0||s==0?i-s:this._engine.driver.containsElement(r.element,o.element)?1:-1})}destroy(e){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},gu=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,n)=>{};_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}constructor(e,n,r){this.bodyNode=e,this.driver=n,this._normalizer=r}get queuedPlayers(){let e=[];return this._namespaceList.forEach(n=>{n.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,n){let r=new mu(e,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(r,n):(this.newHostElements.set(n,r),this.collectEnterElement(n)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,n){let r=this._namespaceList,o=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(n);for(;a;){let c=o.get(a);if(c){let l=r.indexOf(c);r.splice(l+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(e)}else r.push(e);return o.set(n,e),e}register(e,n){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,n)),r}registerTrigger(e,n,r){let o=this._namespaceLookup[e];o&&o.register(n,r)&&this.totalAnimations++}destroy(e,n){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let r=this._fetchNamespace(e);this.namespacesByHostElement.delete(r.hostElement);let o=this._namespaceList.indexOf(r);o>=0&&this._namespaceList.splice(o,1),r.destroy(n),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let n=new Set,r=this.statesByElement.get(e);if(r){for(let o of r.values())if(o.namespaceId){let i=this._fetchNamespace(o.namespaceId);i&&n.add(i)}}return n}trigger(e,n,r,o){if(gs(n)){let i=this._fetchNamespace(e);if(i)return i.trigger(n,r,o),!0}return!1}insertNode(e,n,r,o){if(!gs(n))return;let i=n[je];if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;let s=this.collectedLeaveElements.indexOf(n);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){let s=this._fetchNamespace(e);s&&s.insertNode(n,r)}o&&this.collectEnterElement(n)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,n){n?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ce(e,tu)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),er(e,tu))}removeNode(e,n,r){if(gs(n)){let o=e?this._fetchNamespace(e):null;o?o.removeNode(n,r):this.markElementAsRemoved(e,n,!1,r);let i=this.namespacesByHostElement.get(n);i&&i.id!==e&&i.removeNode(n,r)}else this._onRemovalComplete(n,r)}markElementAsRemoved(e,n,r,o,i){this.collectedLeaveElements.push(n),n[je]={namespaceId:e,setForRemoval:o,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:i}}listen(e,n,r,o,i){return gs(n)?this._fetchNamespace(e).listen(n,r,o,i):()=>{}}_buildInstruction(e,n,r,o,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,o,e.fromState.options,e.toState.options,n,i)}destroyInnerAnimations(e){let n=this.driver.query(e,Zr,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(n=this.driver.query(e,ds,!0),n.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){let n=this.playersByElement.get(e);n&&n.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){let n=this.playersByQueriedElement.get(e);n&&n.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return dt(this.players).onDone(()=>e());e()})}processLeaveNode(e){let n=e[je];if(n&&n.setForRemoval){if(e[je]=Bg,n.namespaceId){this.destroyInnerAnimations(e);let r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}e.classList?.contains(tu)&&this.markElementAsDisabled(e,!1),this.driver.query(e,sb,!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,o)=>this._balanceNamespaceList(r,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++){let o=this.collectedEnterElements[r];Ce(o,ab)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let r=[];try{n=this._flushAnimations(r,e)}finally{for(let o=0;o<r.length;o++)r[o]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++){let o=this.collectedLeaveElements[r];this.processLeaveNode(o)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){let r=this._whenQuietFns;this._whenQuietFns=[],n.length?dt(n).onDone(()=>{r.forEach(o=>o())}):r.forEach(o=>o())}}reportError(e){throw vg(e)}_flushAnimations(e,n){let r=new tr,o=[],i=new Map,s=[],a=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(y=>{u.add(y);let I=this.driver.query(y,ib,!0);for(let T=0;T<I.length;T++)u.add(I[T])});let d=this.bodyNode,p=Array.from(this.statesByElement.keys()),f=Og(p,this.collectedEnterElements),h=new Map,m=0;f.forEach((y,I)=>{let T=us+m++;h.set(I,T),y.forEach(R=>Ce(R,T))});let v=[],_=new Set,L=new Set;for(let y=0;y<this.collectedLeaveElements.length;y++){let I=this.collectedLeaveElements[y],T=I[je];T&&T.setForRemoval&&(v.push(I),_.add(I),T.hasAnimation?this.driver.query(I,cb,!0).forEach(R=>_.add(R)):L.add(I))}let K=new Map,te=Og(p,Array.from(_));te.forEach((y,I)=>{let T=Qr+m++;K.set(I,T),y.forEach(R=>Ce(R,T))}),e.push(()=>{f.forEach((y,I)=>{let T=h.get(I);y.forEach(R=>er(R,T))}),te.forEach((y,I)=>{let T=K.get(I);y.forEach(R=>er(R,T))}),v.forEach(y=>{this.processLeaveNode(y)})});let mn=[],Ve=[];for(let y=this._namespaceList.length-1;y>=0;y--)this._namespaceList[y].drainQueuedTransitions(n).forEach(T=>{let R=T.player,X=T.element;if(mn.push(R),this.collectedEnterElements.length){let re=X[je];if(re&&re.setForMove){if(re.previousTriggersValues&&re.previousTriggersValues.has(T.triggerName)){let Ot=re.previousTriggersValues.get(T.triggerName),Ie=this.statesByElement.get(T.element);if(Ie&&Ie.has(T.triggerName)){let to=Ie.get(T.triggerName);to.value=Ot,Ie.set(T.triggerName,to)}}R.destroy();return}}let He=!d||!this.driver.containsElement(d,X),ge=K.get(X),ft=h.get(X),q=this._buildInstruction(T,r,ft,ge,He);if(q.errors&&q.errors.length){Ve.push(q);return}if(He){R.onStart(()=>At(X,q.fromStyles)),R.onDestroy(()=>Fe(X,q.toStyles)),o.push(R);return}if(T.isFallbackTransition){R.onStart(()=>At(X,q.fromStyles)),R.onDestroy(()=>Fe(X,q.toStyles)),o.push(R);return}let bu=[];q.timelines.forEach(re=>{re.stretchStartingKeyframe=!0,this.disabledNodes.has(re.element)||bu.push(re)}),q.timelines=bu,r.append(X,q.timelines);let qg={instruction:q,player:R,element:X};s.push(qg),q.queriedElements.forEach(re=>he(a,re,[]).push(R)),q.preStyleProps.forEach((re,Ot)=>{if(re.size){let Ie=c.get(Ot);Ie||c.set(Ot,Ie=new Set),re.forEach((to,Ss)=>Ie.add(Ss))}}),q.postStyleProps.forEach((re,Ot)=>{let Ie=l.get(Ot);Ie||l.set(Ot,Ie=new Set),re.forEach((to,Ss)=>Ie.add(Ss))})});if(Ve.length){let y=[];Ve.forEach(I=>{y.push(Eg(I.triggerName,I.errors))}),mn.forEach(I=>I.destroy()),this.reportError(y)}let se=new Map,ue=new Map;s.forEach(y=>{let I=y.element;r.has(I)&&(ue.set(I,I),this._beforeAnimationBuild(y.player.namespaceId,y.instruction,se))}),o.forEach(y=>{let I=y.element;this._getPreviousPlayers(I,!1,y.namespaceId,y.triggerName,null).forEach(R=>{he(se,I,[]).push(R),R.destroy()})});let kt=v.filter(y=>Pg(y,c,l)),gn=new Map;Rg(gn,this.driver,L,l,Le).forEach(y=>{Pg(y,c,l)&&kt.push(y)});let Rt=new Map;f.forEach((y,I)=>{Rg(Rt,this.driver,new Set(y),c,Wr)}),kt.forEach(y=>{let I=gn.get(y),T=Rt.get(y);gn.set(y,new Map([...I?.entries()??[],...T?.entries()??[]]))});let bs=[],Tu=[],wu={};s.forEach(y=>{let{element:I,player:T,instruction:R}=y;if(r.has(I)){if(u.has(I)){T.onDestroy(()=>Fe(I,R.toStyles)),T.disabled=!0,T.overrideTotalTime(R.totalTime),o.push(T);return}let X=wu;if(ue.size>1){let ge=I,ft=[];for(;ge=ge.parentNode;){let q=ue.get(ge);if(q){X=q;break}ft.push(ge)}ft.forEach(q=>ue.set(q,X))}let He=this._buildAnimation(T.namespaceId,R,se,i,Rt,gn);if(T.setRealPlayer(He),X===wu)bs.push(T);else{let ge=this.playersByElement.get(X);ge&&ge.length&&(T.parentPlayer=dt(ge)),o.push(T)}}else At(I,R.fromStyles),T.onDestroy(()=>Fe(I,R.toStyles)),Tu.push(T),u.has(I)&&o.push(T)}),Tu.forEach(y=>{let I=i.get(y.element);if(I&&I.length){let T=dt(I);y.setRealPlayer(T)}}),o.forEach(y=>{y.parentPlayer?y.syncPlayerEvents(y.parentPlayer):y.destroy()});for(let y=0;y<v.length;y++){let I=v[y],T=I[je];if(er(I,Qr),T&&T.hasAnimation)continue;let R=[];if(a.size){let He=a.get(I);He&&He.length&&R.push(...He);let ge=this.driver.query(I,ds,!0);for(let ft=0;ft<ge.length;ft++){let q=a.get(ge[ft]);q&&q.length&&R.push(...q)}}let X=R.filter(He=>!He.destroyed);X.length?hb(this,I,X):this.processLeaveNode(I)}return v.length=0,bs.forEach(y=>{this.players.push(y),y.onDone(()=>{y.destroy();let I=this.players.indexOf(y);this.players.splice(I,1)}),y.play()}),bs}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,n,r,o,i){let s=[];if(n){let a=this.playersByQueriedElement.get(e);a&&(s=a)}else{let a=this.playersByElement.get(e);if(a){let c=!i||i==Jr;a.forEach(l=>{l.queued||!c&&l.triggerName!=o||s.push(l)})}}return(r||o)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||o&&o!=a.triggerName))),s}_beforeAnimationBuild(e,n,r){let o=n.triggerName,i=n.element,s=n.isRemovalTransition?void 0:e,a=n.isRemovalTransition?void 0:o;for(let c of n.timelines){let l=c.element,u=l!==i,d=he(r,l,[]);this._getPreviousPlayers(l,u,s,a,n.toState).forEach(f=>{let h=f.getRealPlayer();h.beforeDestroy&&h.beforeDestroy(),f.destroy(),d.push(f)})}At(i,n.fromStyles)}_buildAnimation(e,n,r,o,i,s){let a=n.triggerName,c=n.element,l=[],u=new Set,d=new Set,p=n.timelines.map(h=>{let m=h.element;u.add(m);let v=m[je];if(v&&v.removedBeforeQueried)return new ut(h.duration,h.delay);let _=m!==c,L=mb((r.get(m)||lb).map(se=>se.getRealPlayer())).filter(se=>{let ue=se;return ue.element?ue.element===m:!1}),K=i.get(m),te=s.get(m),mn=zl(this._normalizer,h.keyframes,K,te),Ve=this._buildPlayer(h,mn,L);if(h.subTimeline&&o&&d.add(m),_){let se=new eo(e,a,m);se.setRealPlayer(Ve),l.push(se)}return Ve});l.forEach(h=>{he(this.playersByQueriedElement,h.element,[]).push(h),h.onDone(()=>db(this.playersByQueriedElement,h.element,h))}),u.forEach(h=>Ce(h,Zl));let f=dt(p);return f.onDestroy(()=>{u.forEach(h=>er(h,Zl)),Fe(c,n.toStyles)}),d.forEach(h=>{he(o,h,[]).push(f)}),f}_buildPlayer(e,n,r){return n.length>0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,r):new ut(e.duration,e.delay)}},eo=class{namespaceId;triggerName;element;_player=new ut;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,n,r){this.namespaceId=e,this.triggerName=n,this.element=r}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((n,r)=>{n.forEach(o=>as(e,r,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let n=this._player;n.triggerCallback&&e.onStart(()=>n.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,n){he(this._queuedCallbacks,e,[]).push(n)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let n=this._player;n.triggerCallback&&n.triggerCallback(e)}};function db(t,e,n){let r=t.get(e);if(r){if(r.length){let o=r.indexOf(n);r.splice(o,1)}r.length==0&&t.delete(e)}return r}function fb(t){return t??null}function gs(t){return t&&t.nodeType===1}function pb(t){return t=="start"||t=="done"}function kg(t,e){let n=t.style.display;return t.style.display=e??"none",n}function Rg(t,e,n,r,o){let i=[];n.forEach(c=>i.push(kg(c)));let s=[];r.forEach((c,l)=>{let u=new Map;c.forEach(d=>{let p=e.computeStyle(l,d,o);u.set(d,p),(!p||p.length==0)&&(l[je]=ub,s.push(l))}),t.set(l,u)});let a=0;return n.forEach(c=>kg(c,i[a++])),s}function Og(t,e){let n=new Map;if(t.forEach(a=>n.set(a,[])),e.length==0)return n;let r=1,o=new Set(e),i=new Map;function s(a){if(!a)return r;let c=i.get(a);if(c)return c;let l=a.parentNode;return n.has(l)?c=l:o.has(l)?c=r:c=s(l),i.set(a,c),c}return e.forEach(a=>{let c=s(a);c!==r&&n.get(c).push(a)}),n}function Ce(t,e){t.classList?.add(e)}function er(t,e){t.classList?.remove(e)}function hb(t,e,n){dt(n).onDone(()=>t.processLeaveNode(e))}function mb(t){let e=[];return $g(t,e),e}function $g(t,e){for(let n=0;n<t.length;n++){let r=t[n];r instanceof Yn?$g(r.players,e):e.push(r)}}function gb(t,e){let n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let o=0;o<n.length;o++){let i=n[o];if(!e.hasOwnProperty(i)||t[i]!==e[i])return!1}return!0}function Pg(t,e,n){let r=n.get(t);if(!r)return!1;let o=e.get(t);return o?r.forEach(i=>o.add(i)):e.set(t,r),n.delete(t),!0}var _s=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,n)=>{};constructor(e,n,r){this._driver=n,this._normalizer=r,this._transitionEngine=new gu(e.body,n,r),this._timelineEngine=new hu(e.body,n,r),this._transitionEngine.onRemovalComplete=(o,i)=>this.onRemovalComplete(o,i)}registerTrigger(e,n,r,o,i){let s=e+"-"+o,a=this._triggerCache[s];if(!a){let c=[],l=[],u=Eu(this._driver,i,c,l);if(c.length)throw lg(o,c);a=nb(o,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(n,o,a)}register(e,n){this._transitionEngine.register(e,n)}destroy(e,n){this._transitionEngine.destroy(e,n)}onInsert(e,n,r,o){this._transitionEngine.insertNode(e,n,r,o)}onRemove(e,n,r){this._transitionEngine.removeNode(e,n,r)}disableAnimations(e,n){this._transitionEngine.markElementAsDisabled(e,n)}process(e,n,r,o){if(r.charAt(0)=="@"){let[i,s]=Gl(r),a=o;this._timelineEngine.command(i,n,s,a)}else this._transitionEngine.trigger(e,n,r,o)}listen(e,n,r,o,i){if(r.charAt(0)=="@"){let[s,a]=Gl(r);return this._timelineEngine.listen(s,n,a,i)}return this._transitionEngine.listen(e,n,r,o,i)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function yb(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=ru(e[0]),e.length>1&&(r=ru(e[e.length-1]))):e instanceof Map&&(n=ru(e)),n||r?new vb(t,n,r):null}var vb=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(n,r,o){this._element=n,this._startStyles=r,this._endStyles=o;let i=t.initialStylesByElement.get(n);i||t.initialStylesByElement.set(n,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Fe(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Fe(this._element,this._initialStyles),this._endStyles&&(Fe(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(At(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(At(this._element,this._endStyles),this._endStyles=null),Fe(this._element,this._initialStyles),this._state=3)}}return t})();function ru(t){let e=null;return t.forEach((n,r)=>{Eb(r)&&(e=e||new Map,e.set(r,n))}),e}function Eb(t){return t==="display"||t==="position"}var Ts=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,n,r,o){this.element=e,this.keyframes=n,this.options=r,this._specialStyles=o,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let e=this.keyframes,n=this._triggerWebAnimation(this.element,e,this.options);if(!n)return this._onFinish(),null;this.domPlayer=n,this._finalKeyframe=e.length?e[e.length-1]:new Map;let r=()=>this._onFinish();return n.addEventListener("finish",r),this.onDestroy(()=>{n.removeEventListener("finish",r)}),n}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(e){let n=[];return e.forEach(r=>{n.push(Object.fromEntries(r))}),n}_triggerWebAnimation(e,n,r){let o=this._convertKeyframesToObject(n);try{return e.animate(o,r)}catch(i){return null}}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){let e=this._buildPlayer();e&&(this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),e.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish())}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer?.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=e*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,o)=>{o!=="offset"&&e.set(o,this._finished?r:ps(this.element,o))}),this.currentSnapshot=e}triggerCallback(e){let n=e==="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},yu=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,n){return Wl(e,n)}getParentElement(e){return ls(e)}query(e,n,r){return Ql(e,n,r)}computeStyle(e,n,r){return ps(e,n)}animate(e,n,r,o,i,s=[]){let a=o==0?"both":"forwards",c={duration:r,delay:o,fill:a};i&&(c.easing=i);let l=new Map,u=s.filter(f=>f instanceof Ts);Tg(r,o)&&u.forEach(f=>{f.currentSnapshot.forEach((h,m)=>l.set(m,h))});let d=Dg(n).map(f=>new Map(f));d=wg(e,d,l);let p=yb(e,d);return new Ts(e,d,c,p)}};function dV(t,e){return t==="noop"?new _s(e,new jg,new iu):new _s(e,new yu,new su)}var Lg=class{_driver;_animationAst;constructor(e,n){this._driver=e;let r=[],i=Eu(e,n,r,[]);if(r.length)throw ag(r);this._animationAst=i}buildTimelines(e,n,r,o,i){let s=Array.isArray(n)?Yl(n):n,a=Array.isArray(r)?Yl(r):r,c=[];i=i||new tr;let l=Du(this._driver,e,this._animationAst,us,Qr,s,a,o,i,c);if(c.length)throw cg(c);return l}},ys="@",Ug="@.disabled",ws=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,n,r,o){this.namespaceId=e,this.delegate=n,this.engine=r,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,n){return this.delegate.createElement(e,n)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,n){this.delegate.appendChild(e,n),this.engine.onInsert(this.namespaceId,n,e,!1)}insertBefore(e,n,r,o=!0){this.delegate.insertBefore(e,n,r),this.engine.onInsert(this.namespaceId,n,e,o)}removeChild(e,n,r,o){if(o){this.delegate.removeChild(e,n,r,o);return}this.parentNode(n)&&this.engine.onRemove(this.namespaceId,n,this.delegate)}selectRootElement(e,n){return this.delegate.selectRootElement(e,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,n,r,o){this.delegate.setAttribute(e,n,r,o)}removeAttribute(e,n,r){this.delegate.removeAttribute(e,n,r)}addClass(e,n){this.delegate.addClass(e,n)}removeClass(e,n){this.delegate.removeClass(e,n)}setStyle(e,n,r,o){this.delegate.setStyle(e,n,r,o)}removeStyle(e,n,r){this.delegate.removeStyle(e,n,r)}setProperty(e,n,r){n.charAt(0)==ys&&n==Ug?this.disableAnimations(e,!!r):this.delegate.setProperty(e,n,r)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,r,o){return this.delegate.listen(e,n,r,o)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}},vu=class extends ws{factory;constructor(e,n,r,o,i){super(n,r,o,i),this.factory=e,this.namespaceId=n}setProperty(e,n,r){n.charAt(0)==ys?n.charAt(1)=="."&&n==Ug?(r=r===void 0?!0:!!r,this.disableAnimations(e,r)):this.engine.process(this.namespaceId,e,n.slice(1),r):this.delegate.setProperty(e,n,r)}listen(e,n,r,o){if(n.charAt(0)==ys){let i=Ib(e),s=n.slice(1),a="";return s.charAt(0)!=ys&&([s,a]=Db(s)),this.engine.listen(this.namespaceId,i,s,a,c=>{let l=c._data||-1;this.factory.scheduleListenerCallback(l,r,c)})}return this.delegate.listen(e,n,r,o)}};function Ib(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function Db(t){let e=t.indexOf("."),n=t.substring(0,e),r=t.slice(e+1);return[n,r]}var Fg=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,n,r){this.delegate=e,this.engine=n,this._zone=r,n.onRemovalComplete=(o,i)=>{i?.removeChild(null,o)}}createRenderer(e,n){let o=this.delegate.createRenderer(e,n);if(!e||!n?.data?.animation){let l=this._rendererCache,u=l.get(o);if(!u){let d=()=>l.delete(o);u=new ws("",o,this.engine,d),l.set(o,u)}return u}let i=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(i,s,e,l.name,l)};return n.data.animation.forEach(a),new vu(this,s,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,r){if(e>=0&&e<this._microtaskId){this._zone.run(()=>n(r));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(i=>{let[s,a]=i;s(a)}),this._animationCallbacksBuffer=[]})}),o.push([n,r])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}};export{G as a,ee as b,Ms as c,$ as d,k as e,zs as f,ye as g,ir as h,ar as i,cy as j,ly as k,ur as l,Ue as m,yy as n,vy as o,Ey as p,Iy as q,tt as r,My as s,Cn as t,xy as u,Ay as v,dr as w,ky as x,Ks as y,Ry as z,Zs as A,Oy as B,hd as C,Bo as D,Py as E,yd as F,Fy as G,jy as H,Xs as I,Vy as J,Hy as K,vd as L,Ed as M,By as N,$y as O,Uy as P,g as Q,Yo as R,fe as S,bd as T,P as U,qe as V,S as W,Ta as X,Sa as Y,De as Z,ii as _,Qd as $,Kd as aa,uf as ba,df as ca,ze as da,vi as ea,sn as fa,nt as ga,ne as ha,Kt as ia,tc as ja,Ef as ka,If as la,Dv as ma,_v as na,Tv as oa,Ae as pa,bv as qa,Tf as ra,wf as sa,Uv as ta,cE as ua,Qn as va,jr as wa,Ri as xa,mE as ya,ln as za,Jc as Aa,DE as Ba,_E as Ca,TE as Da,wE as Ea,bE as Fa,SE as Ga,Vp as Ha,$E as Ia,Kp as Ja,XE as Ka,Pi as La,Un as Ma,fn as Na,lt as Oa,mI as Pa,VI as Qa,Rr as Ra,Or as Sa,wD as Ta,ND as Ua,AD as Va,Ah as Wa,Ur as Xa,FD as Ya,os as Za,wl as _a,Ui as $a,E_ as ab,D_ as bb,w_ as cb,b_ as db,C_ as eb,M_ as fb,Yh as gb,Xh as hb,em as ib,qr as jb,om as kb,U_ as lb,q_ as mb,z_ as nb,G_ as ob,W_ as pb,im as qb,Gi as rb,Cl as sb,sm as tb,Ml as ub,Nl as vb,am as wb,xl as xb,Al as yb,lm as zb,X_ as Ab,um as Bb,nT as Cb,rT as Db,fm as Eb,pm as Fb,aT as Gb,lT as Hb,uT as Ib,hm as Jb,mm as Kb,fT as Lb,pT as Mb,gm as Nb,ym as Ob,hT as Pb,mT as Qb,Im as Rb,Dm as Sb,ST as Tb,FT as Ub,Cm as Vb,kl as Wb,Mm as Xb,qT as Yb,WT as Zb,KT as _b,YT as $b,Rl as ac,XT as bc,ew as cc,Om as dc,qj as ec,zj as fc,Gj as gc,Wj as hc,aw as ic,Kj as jc,Zj as kc,Yj as lc,Jj as mc,Xj as nc,eV as oc,tV as pc,ls as qc,Ig as rc,kw as sc,Wl as tc,Ql as uc,us as vc,Qr as wc,Dg as xc,Vw as yc,Tg as zc,jg as Ac,bg as Bc,ou as Cc,iu as Dc,su as Ec,eo as Fc,_s as Gc,Ts as Hc,yu as Ic,dV as Jc,Lg as Kc,ws as Lc,vu as Mc,Fg as Nc};