@lexho111/plainblog 0.6.4 → 0.6.6

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 (58) hide show
  1. package/Article.js +1 -1
  2. package/Blog.js +249 -138
  3. package/Formatter.js +5 -7
  4. package/model/DataModel.js +6 -2
  5. package/model/datastructures/BinarySearchTree.js +27 -0
  6. package/model/datastructures/BinarySearchTreeHashMap.js +14 -5
  7. package/package.json +1 -1
  8. package/public/favicon.ico +0 -0
  9. package/public/index.html +17 -0
  10. package/public/main-LAI5FAZI.js +7 -0
  11. package/public/main-SKL6R4NB.js +7 -0
  12. package/public/scripts.min.js +2 -2
  13. package/public/styles-I55BTQOK.css +1 -0
  14. package/public/styles.min.css +2 -2
  15. package/src/fetchData.js +53 -29
  16. package/src/styles.css +152 -42
  17. package/.vscode/settings.json +0 -2
  18. package/blog_test_empty.db +0 -0
  19. package/blog_test_load.db +0 -0
  20. package/coverage/clover.xml +0 -1051
  21. package/coverage/coverage-final.json +0 -20
  22. package/coverage/lcov-report/base.css +0 -224
  23. package/coverage/lcov-report/block-navigation.js +0 -87
  24. package/coverage/lcov-report/favicon.png +0 -0
  25. package/coverage/lcov-report/index.html +0 -161
  26. package/coverage/lcov-report/package/Article.js.html +0 -406
  27. package/coverage/lcov-report/package/Blog.js.html +0 -2674
  28. package/coverage/lcov-report/package/Formatter.js.html +0 -379
  29. package/coverage/lcov-report/package/build-scripts.js.html +0 -247
  30. package/coverage/lcov-report/package/build-styles.js.html +0 -367
  31. package/coverage/lcov-report/package/index.html +0 -191
  32. package/coverage/lcov-report/package/model/APIModel.js.html +0 -190
  33. package/coverage/lcov-report/package/model/ArrayList.js.html +0 -382
  34. package/coverage/lcov-report/package/model/ArrayListHashMap.js.html +0 -379
  35. package/coverage/lcov-report/package/model/BinarySearchTree.js.html +0 -856
  36. package/coverage/lcov-report/package/model/BinarySearchTreeHashMap.js.html +0 -346
  37. package/coverage/lcov-report/package/model/DataModel.js.html +0 -325
  38. package/coverage/lcov-report/package/model/DatabaseModel.js.html +0 -235
  39. package/coverage/lcov-report/package/model/FileAdapter.js.html +0 -397
  40. package/coverage/lcov-report/package/model/FileList.js.html +0 -244
  41. package/coverage/lcov-report/package/model/FileModel.js.html +0 -361
  42. package/coverage/lcov-report/package/model/SequelizeAdapter.js.html +0 -538
  43. package/coverage/lcov-report/package/model/SqliteAdapter.js.html +0 -247
  44. package/coverage/lcov-report/package/model/datastructures/ArrayList.js.html +0 -439
  45. package/coverage/lcov-report/package/model/datastructures/ArrayListHashMap.js.html +0 -196
  46. package/coverage/lcov-report/package/model/datastructures/BinarySearchTree.js.html +0 -916
  47. package/coverage/lcov-report/package/model/datastructures/BinarySearchTreeHashMap.js.html +0 -355
  48. package/coverage/lcov-report/package/model/datastructures/FileList.js.html +0 -244
  49. package/coverage/lcov-report/package/model/datastructures/index.html +0 -176
  50. package/coverage/lcov-report/package/model/index.html +0 -206
  51. package/coverage/lcov-report/package/utilities.js.html +0 -511
  52. package/coverage/lcov-report/prettify.css +0 -1
  53. package/coverage/lcov-report/prettify.js +0 -2
  54. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  55. package/coverage/lcov-report/sorter.js +0 -210
  56. package/coverage/lcov.info +0 -2078
  57. package/eslint.config.js +0 -27
  58. package/plainblog - Verkn/303/274pfung.lnk +0 -0
@@ -0,0 +1,7 @@
1
+ var AD=Object.defineProperty,ND=Object.defineProperties;var RD=Object.getOwnPropertyDescriptors;var ah=Object.getOwnPropertySymbols;var xD=Object.prototype.hasOwnProperty,OD=Object.prototype.propertyIsEnumerable;var ch=(e,t,n)=>t in e?AD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g=(e,t)=>{for(var n in t||={})xD.call(t,n)&&ch(e,n,t[n]);if(ah)for(var n of ah(t))OD.call(t,n)&&ch(e,n,t[n]);return e},_=(e,t)=>ND(e,RD(t));var Me=null,ss=!1,iu=1,kD=null,X=Symbol("SIGNAL");function S(e){let t=Me;return Me=e,t}function as(){return Me}var xt={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 Ln(e){if(ss)throw new Error("");if(Me===null)return;Me.consumerOnSignalRead(e);let t=Me.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Me.recomputing;if(r&&(n=t!==void 0?t.nextProducer:Me.producers,n!==void 0&&n.producer===e)){Me.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===Me&&(!r||FD(o,Me)))return;let i=Nr(Me),s={producer:e,consumer:Me,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};Me.producersTail=s,t!==void 0?t.nextProducer=s:Me.producers=s,i&&hh(e,s)}function uh(){iu++}function jn(e){if(!(Nr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===iu)){if(!e.producerMustRecompute(e)&&!Ar(e)){Tr(e);return}e.producerRecomputeValue(e),Tr(e)}}function su(e){if(e.consumers===void 0)return;let t=ss;ss=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||lh(r)}}finally{ss=t}}function au(){return Me?.consumerAllowSignalWrites!==!1}function lh(e){e.dirty=!0,su(e),e.consumerMarkedDirty?.(e)}function Tr(e){e.dirty=!1,e.lastCleanEpoch=iu}function Ot(e){return e&&dh(e),S(e)}function dh(e){e.producersTail=void 0,e.recomputing=!0}function on(e,t){S(t),e&&fh(e)}function fh(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Nr(e))do n=cu(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function Ar(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(jn(n),r!==n.version))return!0}return!1}function sn(e){if(Nr(e)){let t=e.producers;for(;t!==void 0;)t=cu(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function hh(e,t){let n=e.consumersTail,r=Nr(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)hh(o.producer,o)}function cu(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!Nr(t)){let i=t.producers;for(;i!==void 0;)i=cu(i)}return n}function Nr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function xo(e){kD?.(e)}function FD(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function Oo(e,t){return Object.is(e,t)}function cs(e,t){let n=Object.create(PD);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(jn(n),Ln(n),n.value===Rt)throw n.error;return n.value};return r[X]=n,xo(n),r}var rn=Symbol("UNSET"),Pn=Symbol("COMPUTING"),Rt=Symbol("ERRORED"),PD=_(g({},xt),{value:rn,dirty:!0,error:null,equal:Oo,kind:"computed",producerMustRecompute(e){return e.value===rn||e.value===Pn},producerRecomputeValue(e){if(e.value===Pn)throw new Error("");let t=e.value;e.value=Pn;let n=Ot(e),r,o=!1;try{r=e.computation(),S(null),o=t!==rn&&t!==Rt&&r!==Rt&&e.equal(t,r)}catch(i){r=Rt,e.error=i}finally{on(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function LD(){throw new Error}var ph=LD;function gh(e){ph(e)}function uu(e){ph=e}var jD=null;function lu(e,t){let n=Object.create(ls);n.value=e,t!==void 0&&(n.equal=t);let r=()=>mh(n);return r[X]=n,xo(n),[r,s=>Vn(n,s),s=>us(n,s)]}function mh(e){return Ln(e),e.value}function Vn(e,t){au()||gh(e),e.equal(e.value,t)||(e.value=t,VD(e))}function us(e,t){au()||gh(e),Vn(e,t(e.value))}var ls=_(g({},xt),{equal:Oo,value:void 0,kind:"signal"});function VD(e){e.version++,uh(),su(e),jD?.(e)}function du(e){let t=S(null);try{return e()}finally{S(t)}}var fu=_(g({},xt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function hu(e){if(e.dirty=!1,e.version>0&&!Ar(e))return;e.version++;let t=Ot(e);try{e.cleanup(),e.fn()}finally{on(e,t)}}function O(e){return typeof e=="function"}function Rr(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var ds=Rr(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2
+ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Bn(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var fe=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(O(r))try{r()}catch(i){t=i instanceof ds?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{yh(i)}catch(s){t=t??[],s instanceof ds?t=[...t,...s.errors]:t.push(s)}}if(t)throw new ds(t)}}add(t){var n;if(t&&t!==this)if(this.closed)yh(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Bn(n,t)}remove(t){let{_finalizers:n}=this;n&&Bn(n,t),t instanceof e&&t._removeParent(this)}};fe.EMPTY=(()=>{let e=new fe;return e.closed=!0,e})();var pu=fe.EMPTY;function fs(e){return e instanceof fe||e&&"closed"in e&&O(e.remove)&&O(e.add)&&O(e.unsubscribe)}function yh(e){O(e)?e():e.unsubscribe()}var at={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var xr={setTimeout(e,t,...n){let{delegate:r}=xr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=xr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function hs(e){xr.setTimeout(()=>{let{onUnhandledError:t}=at;if(t)t(e);else throw e})}function ko(){}var vh=gu("C",void 0,void 0);function Dh(e){return gu("E",void 0,e)}function Eh(e){return gu("N",e,void 0)}function gu(e,t,n){return{kind:e,value:t,error:n}}var Un=null;function Or(e){if(at.useDeprecatedSynchronousErrorHandling){let t=!Un;if(t&&(Un={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Un;if(Un=null,n)throw r}}else e()}function Ch(e){at.useDeprecatedSynchronousErrorHandling&&Un&&(Un.errorThrown=!0,Un.error=e)}var Hn=class extends fe{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,fs(t)&&t.add(this)):this.destination=HD}static create(t,n,r){return new kr(t,n,r)}next(t){this.isStopped?yu(Eh(t),this):this._next(t)}error(t){this.isStopped?yu(Dh(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?yu(vh,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},BD=Function.prototype.bind;function mu(e,t){return BD.call(e,t)}var vu=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ps(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ps(r)}else ps(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ps(n)}}},kr=class extends Hn{constructor(t,n,r){super();let o;if(O(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&at.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&mu(t.next,i),error:t.error&&mu(t.error,i),complete:t.complete&&mu(t.complete,i)}):o=t}this.destination=new vu(o)}};function ps(e){at.useDeprecatedSynchronousErrorHandling?Ch(e):hs(e)}function UD(e){throw e}function yu(e,t){let{onStoppedNotification:n}=at;n&&xr.setTimeout(()=>n(e,t))}var HD={closed:!0,next:ko,error:UD,complete:ko};var Fr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function $e(e){return e}function Du(...e){return Eu(e)}function Eu(e){return e.length===0?$e:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var j=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=zD(n)?n:new kr(n,r,o);return Or(()=>{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=bh(r),new r((o,i)=>{let s=new kr({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)}[Fr](){return this}pipe(...n){return Eu(n)(this)}toPromise(n){return n=bh(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function bh(e){var t;return(t=e??at.Promise)!==null&&t!==void 0?t:Promise}function $D(e){return e&&O(e.next)&&O(e.error)&&O(e.complete)}function zD(e){return e&&e instanceof Hn||$D(e)&&fs(e)}function GD(e){return O(e?.lift)}function B(e){return t=>{if(GD(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function U(e,t,n,r,o){return new Cu(e,t,n,r,o)}var Cu=class extends Hn{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var wh=Rr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var te=(()=>{class e extends j{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new gs(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new wh}next(n){Or(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Or(()=>{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(){Or(()=>{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?pu:(this.currentObservers=null,i.push(n),new fe(()=>{this.currentObservers=null,Bn(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new j;return n.source=this,n}}return e.create=(t,n)=>new gs(t,n),e})(),gs=class extends te{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:pu}};var _e=class extends te{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Fo={now(){return(Fo.delegate||Date).now()},delegate:void 0};var Po=class extends te{constructor(t=1/0,n=1/0,r=Fo){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<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 ms=class extends fe{constructor(t,n){super()}schedule(t,n=0){return this}};var Lo={setInterval(e,t,...n){let{delegate:r}=Lo;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Lo;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var ys=class extends ms{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;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(t,n,r=0){return Lo.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&Lo.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}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:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,Bn(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var Pr=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Pr.now=Fo.now;var vs=class extends Pr{constructor(t,n=Pr.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var _h=new vs(ys);var Ie=new j(e=>e.complete());function Ih(e){return e&&O(e.schedule)}function Sh(e){return e[e.length-1]}function Ds(e){return O(Sh(e))?e.pop():void 0}function an(e){return Ih(Sh(e))?e.pop():void 0}function Th(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function Mh(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $n(e){return this instanceof $n?(this.v=e,this):new $n(e)}function Ah(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(m){return Promise.resolve(m).then(f,d)}}function a(f,m){r[f]&&(o[f]=function(D){return new Promise(function(v,C){i.push([f,D,v,C])>1||c(f,D)})},m&&(o[f]=m(o[f])))}function c(f,m){try{u(r[f](m))}catch(D){p(i[0][3],D)}}function u(f){f.value instanceof $n?Promise.resolve(f.value.v).then(l,d):p(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function p(f,m){f(m),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Nh(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Mh=="function"?Mh(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var Es=e=>e&&typeof e.length=="number"&&typeof e!="function";function Cs(e){return O(e?.then)}function bs(e){return O(e[Fr])}function ws(e){return Symbol.asyncIterator&&O(e?.[Symbol.asyncIterator])}function _s(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function qD(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Is=qD();function Ss(e){return O(e?.[Is])}function Ms(e){return Ah(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield $n(n.read());if(o)return yield $n(void 0);yield yield $n(r)}}finally{n.releaseLock()}})}function Ts(e){return O(e?.getReader)}function ae(e){if(e instanceof j)return e;if(e!=null){if(bs(e))return WD(e);if(Es(e))return ZD(e);if(Cs(e))return KD(e);if(ws(e))return Rh(e);if(Ss(e))return YD(e);if(Ts(e))return QD(e)}throw _s(e)}function WD(e){return new j(t=>{let n=e[Fr]();if(O(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ZD(e){return new j(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function KD(e){return new j(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,hs)})}function YD(e){return new j(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Rh(e){return new j(t=>{JD(e,t).catch(n=>t.error(n))})}function QD(e){return Rh(Ms(e))}function JD(e,t){var n,r,o,i;return Th(this,void 0,void 0,function*(){try{for(n=Nh(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function Le(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function As(e,t=0){return B((n,r)=>{n.subscribe(U(r,o=>Le(r,e,()=>r.next(o),t),()=>Le(r,e,()=>r.complete(),t),o=>Le(r,e,()=>r.error(o),t)))})}function Ns(e,t=0){return B((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function xh(e,t){return ae(e).pipe(Ns(t),As(t))}function Oh(e,t){return ae(e).pipe(Ns(t),As(t))}function kh(e,t){return new j(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Fh(e,t){return new j(n=>{let r;return Le(n,t,()=>{r=e[Is](),Le(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>O(r?.return)&&r.return()})}function Rs(e,t){if(!e)throw new Error("Iterable cannot be null");return new j(n=>{Le(n,t,()=>{let r=e[Symbol.asyncIterator]();Le(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Ph(e,t){return Rs(Ms(e),t)}function Lh(e,t){if(e!=null){if(bs(e))return xh(e,t);if(Es(e))return kh(e,t);if(Cs(e))return Oh(e,t);if(ws(e))return Rs(e,t);if(Ss(e))return Fh(e,t);if(Ts(e))return Ph(e,t)}throw _s(e)}function ce(e,t){return t?Lh(e,t):ae(e)}function k(...e){let t=an(e);return ce(e,t)}function bu(e,t){let n=O(e)?e:()=>e,r=o=>o.error(n());return new j(t?o=>t.schedule(r,0,o):r)}function xs(e){return!!e&&(e instanceof j||O(e.lift)&&O(e.subscribe))}var kt=Rr(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function zn(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=!1,s;e.subscribe({next:a=>{s=a,i=!0},error:o,complete:()=>{i?r(s):n?r(t.defaultValue):o(new kt)}})})}function $(e,t){return B((n,r)=>{let o=0;n.subscribe(U(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:XD}=Array;function eE(e,t){return XD(t)?e(...t):e(t)}function Os(e){return $(t=>eE(e,t))}var{isArray:tE}=Array,{getPrototypeOf:nE,prototype:rE,keys:oE}=Object;function ks(e){if(e.length===1){let t=e[0];if(tE(t))return{args:t,keys:null};if(iE(t)){let n=oE(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function iE(e){return e&&typeof e=="object"&&nE(e)===rE}function Fs(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function wu(...e){let t=an(e),n=Ds(e),{args:r,keys:o}=ks(e);if(r.length===0)return ce([],t);let i=new j(sE(r,t,o?s=>Fs(o,s):$e));return n?i.pipe(Os(n)):i}function sE(e,t,n=$e){return r=>{jh(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)jh(t,()=>{let u=ce(e[c],t),l=!1;u.subscribe(U(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function jh(e,t,n){e?Le(n,e,t):t()}function Vh(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,p=()=>{d&&!c.length&&!u&&t.complete()},f=D=>u<r?m(D):c.push(D),m=D=>{i&&t.next(D),u++;let v=!1;ae(n(D,l++)).subscribe(U(t,C=>{o?.(C),i?f(C):t.next(C)},()=>{v=!0},void 0,()=>{if(v)try{for(u--;c.length&&u<r;){let C=c.shift();s?Le(t,s,()=>m(C)):m(C)}p()}catch(C){t.error(C)}}))};return e.subscribe(U(t,f,()=>{d=!0,p()})),()=>{a?.()}}function Re(e,t,n=1/0){return O(t)?Re((r,o)=>$((i,s)=>t(r,i,o,s))(ae(e(r,o))),n):(typeof t=="number"&&(n=t),B((r,o)=>Vh(r,o,e,n)))}function Bh(e=1/0){return Re($e,e)}function Uh(){return Bh(1)}function Lr(...e){return Uh()(ce(e,an(e)))}function jo(e){return new j(t=>{ae(e()).subscribe(t)})}function _u(...e){let t=Ds(e),{args:n,keys:r}=ks(e),o=new j(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let d=!1;ae(n[l]).subscribe(U(i,p=>{d||(d=!0,u--),a[l]=p},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?Fs(r,a):a),i.complete())}))}});return t?o.pipe(Os(t)):o}function ct(e,t){return B((n,r)=>{let o=0;n.subscribe(U(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Ft(e){return B((t,n)=>{let r=null,o=!1,i;r=t.subscribe(U(n,void 0,void 0,s=>{i=ae(e(s,Ft(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function jr(e,t){return O(t)?Re(e,t,1):Re(e,1)}function Iu(e,t=_h){return B((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u)}};function c(){let u=s+e,l=t.now();if(l<u){o=this.schedule(void 0,u-l),r.add(o);return}a()}n.subscribe(U(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function Hh(e){return B((t,n)=>{let r=!1;t.subscribe(U(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Pt(e){return e<=0?()=>Ie:B((t,n)=>{let r=0;t.subscribe(U(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Su(e,t=$e){return e=e??aE,B((n,r)=>{let o,i=!0;n.subscribe(U(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function aE(e,t){return e===t}function $h(e=cE){return B((t,n)=>{let r=!1;t.subscribe(U(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function cE(){return new kt}function Vr(e){return B((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Lt(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ct((o,i)=>e(o,i,r)):$e,Pt(1),n?Hh(t):$h(()=>new kt))}function Ps(e){return e<=0?()=>Ie:B((t,n)=>{let r=[];t.subscribe(U(n,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Mu(...e){let t=an(e);return B((n,r)=>{(t?Lr(e,n,t):Lr(e,n)).subscribe(r)})}function ut(e,t){return B((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(U(r,c=>{o?.unsubscribe();let u=0,l=i++;ae(e(c,l)).subscribe(o=U(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Vo(e){return B((t,n)=>{ae(e).subscribe(U(n,()=>n.complete(),ko)),!n.closed&&t.subscribe(n)})}function xe(e,t,n){let r=O(e)||t||n?{next:e,error:t,complete:n}:e;return r?B((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(U(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):$e}var Tu;function Ls(){return Tu}function wt(e){let t=Tu;return Tu=e,t}var zh=Symbol("NotFound");function Br(e){return e===zh||e?.name==="\u0275NotFound"}function Au(e,t,n){let r=Object.create(uE);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(jn(r),Ln(r),r.value===Rt)throw r.error;return r.value};return i[X]=r,xo(r),i}function Gh(e,t){jn(e),Vn(e,t),Tr(e)}function qh(e,t){jn(e),us(e,t),Tr(e)}var uE=_(g({},xt),{value:rn,dirty:!0,error:null,equal:Oo,kind:"linkedSignal",producerMustRecompute(e){return e.value===rn||e.value===Pn},producerRecomputeValue(e){if(e.value===Pn)throw new Error("");let t=e.value;e.value=Pn;let n=Ot(e),r;try{let o=e.source(),i=t===rn||t===Rt?void 0:{source:e.sourceValue,value:t};r=e.computation(o,i),e.sourceValue=o}catch(o){r=Rt,e.error=o}finally{on(e,n)}if(t!==rn&&r!==Rt&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});var zs="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",y=class extends Error{code;constructor(t,n){super(hn(t,n)),this.code=t}};function lE(e){return`NG0${Math.abs(e)}`}function hn(e,t){return`${lE(e)}${t?": "+t:""}`}var Vt=globalThis;function A(e){for(let t in e)if(e[t]===A)return t;throw Error("")}function cn(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(cn).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
4
+ `);return r>=0?n.slice(0,r):n}function Hu(e,t){return e?t?`${e} ${t}`:e:t||""}var dE=A({__forward_ref__:A});function qo(e){return e.__forward_ref__=qo,e.toString=function(){return cn(this())},e}function Se(e){return $u(e)?e():e}function $u(e){return typeof e=="function"&&e.hasOwnProperty(dE)&&e.__forward_ref__===qo}function b(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function pn(e){return{providers:e.providers||[],imports:e.imports||[]}}function Wo(e){return fE(e,Gs)}function zu(e){return Wo(e)!==null}function fE(e,t){return e.hasOwnProperty(t)&&e[t]||null}function hE(e){let t=e?.[Gs]??null;return t||null}function Ru(e){return e&&e.hasOwnProperty(Vs)?e[Vs]:null}var Gs=A({\u0275prov:A}),Vs=A({\u0275inj:A}),E=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=b({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Gu(e){return e&&!!e.\u0275providers}var qu=A({\u0275cmp:A}),Wu=A({\u0275dir:A}),Zu=A({\u0275pipe:A}),Ku=A({\u0275mod:A}),Uo=A({\u0275fac:A}),Kn=A({__NG_ELEMENT_ID__:A}),Wh=A({__NG_ENV_ID__:A});function Yu(e){return qs(e,"@NgModule"),e[Ku]||null}function gn(e){return qs(e,"@Component"),e[qu]||null}function Qu(e){return qs(e,"@Directive"),e[Wu]||null}function Qh(e){return qs(e,"@Pipe"),e[Zu]||null}function qs(e,t){if(e==null)throw new y(-919,!1)}function Zo(e){return typeof e=="string"?e:e==null?"":String(e)}function Jh(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Zo(e)}var Xh=A({ngErrorCode:A}),pE=A({ngErrorMessage:A}),gE=A({ngTokenPath:A});function Ju(e,t){return ep("",-200,t)}function Ws(e,t){throw new y(-201,!1)}function ep(e,t,n){let r=new y(t,e);return r[Xh]=t,r[pE]=e,n&&(r[gE]=n),r}function mE(e){return e[Xh]}var xu;function tp(){return xu}function Oe(e){let t=xu;return xu=e,t}function Xu(e,t,n){let r=Wo(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;Ws(e,"")}var yE={},Gn=yE,vE="__NG_DI_FLAG__",Ou=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=qn(n)||0;try{return this.injector.get(t,r&8?null:Gn,r)}catch(o){if(Br(o))return o;throw o}}};function DE(e,t=0){let n=Ls();if(n===void 0)throw new y(-203,!1);if(n===null)return Xu(e,void 0,t);{let r=EE(t),o=n.retrieve(e,r);if(Br(o)){if(r.optional)return null;throw o}return o}}function M(e,t=0){return(tp()||DE)(Se(e),t)}function h(e,t){return M(e,qn(t))}function qn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function EE(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function ku(e){let t=[];for(let n=0;n<e.length;n++){let r=Se(e[n]);if(Array.isArray(r)){if(r.length===0)throw new y(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=CE(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(M(o,i))}else t.push(M(r))}return t}function CE(e){return e[vE]}function un(e,t){let n=e.hasOwnProperty(Uo);return n?e[Uo]:null}function Zs(e,t){e.forEach(n=>Array.isArray(n)?Zs(n,t):t(n))}function el(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ko(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var Yn={},lt=[],Hr=new E(""),tl=new E("",-1),nl=new E(""),Ho=class{get(t,n=Gn){if(n===Gn){let o=ep("",-201);throw o.name="\u0275NotFound",o}return n}};function $r(e){return{\u0275providers:e}}function np(...e){return{\u0275providers:rl(!0,e),\u0275fromNgModule:!0}}function rl(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Zs(t,s=>{let a=s;Bs(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&rp(o,i),n}function rp(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];ol(o,i=>{t(i,r)})}}function Bs(e,t,n,r){if(e=Se(e),!e)return!1;let o=null,i=Ru(e),s=!i&&gn(e);if(!i&&!s){let c=e.ngModule;if(i=Ru(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Bs(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;Zs(i.imports,l=>{Bs(l,t,n,r)&&(u||=[],u.push(l))}),u!==void 0&&rp(u,t)}if(!a){let u=un(o)||(()=>new o);t({provide:o,useFactory:u,deps:lt},o),t({provide:nl,useValue:o,multi:!0},o),t({provide:Hr,useValue:()=>M(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;ol(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function ol(e,t){for(let n of e)Gu(n)&&(n=n.\u0275providers),Array.isArray(n)?ol(n,t):t(n)}var bE=A({provide:String,useValue:A});function op(e){return e!==null&&typeof e=="object"&&bE in e}function wE(e){return!!(e&&e.useExisting)}function _E(e){return!!(e&&e.useFactory)}function Wn(e){return typeof e=="function"}function ip(e){return!!e.useClass}var Yo=new E(""),js={},Zh={},Nu;function Qo(){return Nu===void 0&&(Nu=new Ho),Nu}var Q=class{},Zn=class extends Q{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Pu(t,s=>this.processProvider(s)),this.records.set(tl,Ur(void 0,this)),o.has("environment")&&this.records.set(Q,Ur(void 0,this));let i=this.records.get(Yo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(nl,lt,{self:!0}))}retrieve(t,n){let r=qn(n)||0;try{return this.get(t,Gn,r)}catch(o){if(Br(o))return o;throw o}}destroy(){Bo(this),this._destroyed=!0;let t=S(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(),S(t)}}onDestroy(t){return Bo(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Bo(this);let n=wt(this),r=Oe(void 0),o;try{return t()}finally{wt(n),Oe(r)}}get(t,n=Gn,r){if(Bo(this),t.hasOwnProperty(Wh))return t[Wh](this);let o=qn(r),i,s=wt(this),a=Oe(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=AE(t)&&Wo(t);l&&this.injectableDefInScope(l)?u=Ur(Fu(t),js):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?Qo():this.parent;return n=o&8&&n===Gn?null:n,c.get(t,n)}catch(c){let u=mE(c);throw u===-200||u===-201?new y(u,null):c}finally{Oe(a),wt(s)}}resolveInjectorInitializers(){let t=S(null),n=wt(this),r=Oe(void 0),o;try{let i=this.get(Hr,lt,{self:!0});for(let s of i)s()}finally{wt(n),Oe(r),S(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(cn(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Se(t);let n=Wn(t)?t:Se(t&&t.provide),r=SE(t);if(!Wn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Ur(void 0,js,!0),o.factory=()=>ku(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=S(null);try{if(n.value===Zh)throw Ju(cn(t));return n.value===js&&(n.value=Zh,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&TE(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{S(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Se(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Fu(e){let t=Wo(e),n=t!==null?t.factory:un(e);if(n!==null)return n;if(e instanceof E)throw new y(204,!1);if(e instanceof Function)return IE(e);throw new y(204,!1)}function IE(e){if(e.length>0)throw new y(204,!1);let n=hE(e);return n!==null?()=>n.factory(e):()=>new e}function SE(e){if(op(e))return Ur(void 0,e.useValue);{let t=il(e);return Ur(t,js)}}function il(e,t,n){let r;if(Wn(e)){let o=Se(e);return un(o)||Fu(o)}else if(op(e))r=()=>Se(e.useValue);else if(_E(e))r=()=>e.useFactory(...ku(e.deps||[]));else if(wE(e))r=(o,i)=>M(Se(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Se(e&&(e.useClass||e.provide));if(ME(e))r=()=>new o(...ku(e.deps));else return un(o)||Fu(o)}return r}function Bo(e){if(e.destroyed)throw new y(205,!1)}function Ur(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ME(e){return!!e.deps}function TE(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function AE(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Pu(e,t){for(let n of e)Array.isArray(n)?Pu(n,t):n&&Gu(n)?Pu(n.\u0275providers,t):t(n)}function ne(e,t){let n;e instanceof Zn?(Bo(e),n=e):n=new Ou(e);let r,o=wt(n),i=Oe(void 0);try{return t()}finally{wt(o),Oe(i)}}function sp(){return tp()!==void 0||Ls()!=null}var dt=0,N=1,R=2,ve=3,Je=4,Xe=5,zr=6,Gr=7,re=8,Bt=9,It=10,K=11,qr=12,sl=13,Qn=14,ze=15,Jn=16,Xn=17,er=18,Ut=19,al=20,jt=21,Ks=22,ln=23,Ge=24,Ys=25,tr=26,De=27,ap=1,cl=6,mn=7,Jo=8,Xo=9,oe=10;function St(e){return Array.isArray(e)&&typeof e[ap]=="object"}function ft(e){return Array.isArray(e)&&e[ap]===!0}function ul(e){return(e.flags&4)!==0}function Ht(e){return e.componentOffset>-1}function Qs(e){return(e.flags&1)===1}function yn(e){return!!e.template}function Wr(e){return(e[R]&512)!==0}function nr(e){return(e[R]&256)===256}var cp="svg",up="math";function et(e){for(;Array.isArray(e);)e=e[dt];return e}function lp(e,t){return et(t[e])}function Te(e,t){return et(t[e.index])}function ei(e,t){return e.data[t]}function dp(e,t){return e[t]}function ll(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function tt(e,t){let n=t[e];return St(n)?n:n[dt]}function Js(e){return(e[R]&128)===128}function fp(e){return ft(e[ve])}function vn(e,t){return t==null?null:e[t]}function dl(e){e[Xn]=0}function fl(e){e[R]&1024||(e[R]|=1024,Js(e)&&Zr(e))}function hp(e,t){for(;e>0;)t=t[Qn],e--;return t}function ti(e){return!!(e[R]&9216||e[Ge]?.dirty)}function Xs(e){e[It].changeDetectionScheduler?.notify(8),e[R]&64&&(e[R]|=1024),ti(e)&&Zr(e)}function Zr(e){e[It].changeDetectionScheduler?.notify(0);let t=dn(e);for(;t!==null&&!(t[R]&8192||(t[R]|=8192,!Js(t)));)t=dn(t)}function hl(e,t){if(nr(e))throw new y(911,!1);e[jt]===null&&(e[jt]=[]),e[jt].push(t)}function pp(e,t){if(e[jt]===null)return;let n=e[jt].indexOf(t);n!==-1&&e[jt].splice(n,1)}function dn(e){let t=e[ve];return ft(t)?t[ve]:t}function pl(e){return e[Gr]??=[]}function gl(e){return e.cleanup??=[]}function gp(e,t,n,r){let o=pl(t);o.push(n),e.firstCreatePass&&gl(e).push(r,o.length-1)}var V={lFrame:xp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Lu=!1;function mp(){return V.lFrame.elementDepthCount}function yp(){V.lFrame.elementDepthCount++}function vp(){V.lFrame.elementDepthCount--}function Dp(){return V.bindingsEnabled}function Ep(){return V.skipHydrationRootTNode!==null}function Cp(e){return V.skipHydrationRootTNode===e}function bp(){V.skipHydrationRootTNode=null}function H(){return V.lFrame.lView}function he(){return V.lFrame.tView}function ht(e){return V.lFrame.contextLView=e,e[re]}function pt(e){return V.lFrame.contextLView=null,e}function Ve(){let e=ml();for(;e!==null&&e.type===64;)e=e.parent;return e}function ml(){return V.lFrame.currentTNode}function wp(){let e=V.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Kr(e,t){let n=V.lFrame;n.currentTNode=e,n.isParent=t}function yl(){return V.lFrame.isParent}function _p(){V.lFrame.isParent=!1}function vl(){return Lu}function $o(e){let t=Lu;return Lu=e,t}function Ip(){let e=V.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Sp(){return V.lFrame.bindingIndex}function Mp(e){return V.lFrame.bindingIndex=e}function Dn(){return V.lFrame.bindingIndex++}function Tp(){return V.lFrame.inI18n}function Ap(e,t){let n=V.lFrame;n.bindingIndex=n.bindingRootIndex=e,ea(t)}function Np(){return V.lFrame.currentDirectiveIndex}function ea(e){V.lFrame.currentDirectiveIndex=e}function Dl(e){V.lFrame.currentQueryIndex=e}function NE(e){let t=e[N];return t.type===2?t.declTNode:t.type===1?e[Xe]:null}function El(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=NE(i),o===null||(i=i[Qn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=V.lFrame=Rp();return r.currentTNode=t,r.lView=e,!0}function ta(e){let t=Rp(),n=e[N];V.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Rp(){let e=V.lFrame,t=e===null?null:e.child;return t===null?xp(e):t}function xp(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Op(){let e=V.lFrame;return V.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Cl=Op;function na(){let e=Op();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function kp(e){return(V.lFrame.contextLView=hp(e,V.lFrame.contextLView))[re]}function ni(){return V.lFrame.selectedIndex}function En(e){V.lFrame.selectedIndex=e}function ri(){let e=V.lFrame;return ei(e.tView,e.selectedIndex)}function Fp(){return V.lFrame.currentNamespace}var Pp=!0;function ra(){return Pp}function oa(e){Pp=e}function ju(e,t=null,n=null,r){let o=bl(e,t,n,r);return o.resolveInjectorInitializers(),o}function bl(e,t=null,n=null,r,o=new Set){let i=[n||lt,np(e)];return r=r||(typeof e=="object"?void 0:cn(e)),new Zn(i,t||Qo(),r||null,o)}var ue=class e{static THROW_IF_NOT_FOUND=Gn;static NULL=new Ho;static create(t,n){if(Array.isArray(t))return ju({name:""},n,t,"");{let r=t.name??"";return ju({name:r},t.parent,t.providers,r)}}static \u0275prov=b({token:e,providedIn:"any",factory:()=>M(tl)});static __NG_ELEMENT_ID__=-1},le=new E(""),ke=(()=>{class e{static __NG_ELEMENT_ID__=RE;static __NG_ENV_ID__=n=>n}return e})(),Us=class extends ke{_lView;constructor(t){super(),this._lView=t}get destroyed(){return nr(this._lView)}onDestroy(t){let n=this._lView;return hl(n,t),()=>pp(n,t)}};function RE(){return new Us(H())}var Lp=!1,jp=new E(""),$t=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new _e(!1);debugTaskTracker=h(jp,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new j(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=b({token:e,providedIn:"root",factory:()=>new e})}return e})(),Vu=class extends te{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,sp()&&(this.destroyRef=h(ke,{optional:!0})??void 0,this.pendingTasks=h($t,{optional:!0})??void 0)}emit(t){let n=S(null);try{super.next(t)}finally{S(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof fe&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},ye=Vu;function Hs(...e){}function wl(e){let t,n;function r(){e=Hs;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Vp(e){return queueMicrotask(()=>e()),()=>{e=Hs}}var _l="isAngularZone",zo=_l+"_ID",xE=0,je=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new ye(!1);onMicrotaskEmpty=new ye(!1);onStable=new ye(!1);onError=new ye(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Lp}=t;if(typeof Zone>"u")throw new y(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,FE(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(_l)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new y(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new y(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,OE,Hs,Hs);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},OE={};function Il(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function kE(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){wl(()=>{e.callbackScheduled=!1,Bu(e),e.isCheckStableRunning=!0,Il(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Bu(e)}function FE(e){let t=()=>{kE(e)},n=xE++;e._inner=e._inner.fork({name:"angular",properties:{[_l]:!0,[zo]:n,[zo+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(PE(c))return r.invokeTask(i,s,a,c);try{return Kh(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Yh(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Kh(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!LE(c)&&t(),Yh(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Bu(e),Il(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Bu(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Kh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Yh(e){e._nesting--,Il(e)}var Go=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new ye;onMicrotaskEmpty=new ye;onStable=new ye;onError=new ye;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function PE(e){return Bp(e,"__ignore_ng_zone__")}function LE(e){return Bp(e,"__scheduler_tick__")}function Bp(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var _t=class{_console=console;handleError(t){this._console.error("ERROR",t)}},nt=new E("",{factory:()=>{let e=h(je),t=h(Q),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(_t),n.handleError(r))})}}}),Up={provide:Hr,useValue:()=>{let e=h(_t,{optional:!0})},multi:!0};function z(e,t){let[n,r,o]=lu(e,t?.equal),i=n,s=i[X];return i.set=r,i.update=o,i.asReadonly=ia.bind(i),i}function ia(){let e=this[X];if(e.readonlyFn===void 0){let t=()=>this();t[X]=e,e.readonlyFn=t}return e.readonlyFn}var sa=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=jE}return e})();function jE(){return new sa(H(),Ve())}var fn=class{},oi=new E("",{factory:()=>!0});var Sl=new E(""),rr=(()=>{class e{internalPendingTasks=h($t);scheduler=h(fn);errorHandler=h(nt);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();n().catch(this.errorHandler).finally(r)}static \u0275prov=b({token:e,providedIn:"root",factory:()=>new e})}return e})(),aa=(()=>{class e{static \u0275prov=b({token:e,providedIn:"root",factory:()=>new Uu})}return e})(),Uu=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},$s=class{[X];constructor(t){this[X]=t}destroy(){this[X].destroy()}};function gt(e,t){let n=t?.injector??h(ue),r=t?.manualCleanup!==!0?n.get(ke):null,o,i=n.get(sa,null,{optional:!0}),s=n.get(fn);return i!==null?(o=UE(i.view,s,e),r instanceof Us&&r._lView===i.view&&(r=null)):o=HE(e,n.get(aa),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new $s(o)}var Hp=_(g({},fu),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=$o(!1);try{hu(this)}finally{$o(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=S(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],S(e)}}}),VE=_(g({},Hp),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(sn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}}),BE=_(g({},Hp),{consumerMarkedDirty(){this.view[R]|=8192,Zr(this.view),this.notifier.notify(13)},destroy(){if(sn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[ln]?.delete(this)}});function UE(e,t,n){let r=Object.create(BE);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=$p(r,n),e[ln]??=new Set,e[ln].add(r),r.consumerMarkedDirty(r),r}function HE(e,t,n){let r=Object.create(VE);return r.fn=$p(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function $p(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}function F(e){return du(e)}function hi(e){return{toString:e}.toString()}function YE(e){return typeof e=="function"}function bg(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var fa=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}},to=(()=>{let e=()=>wg;return e.ngInherit=!0,e})();function wg(e){return e.type.prototype.ngOnChanges&&(e.setInput=JE),QE}function QE(){let e=Ig(this),t=e?.current;if(t){let n=e.previous;if(n===Yn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function JE(e,t,n,r,o){let i=this.declaredInputs[r],s=Ig(e)||XE(e,{previous:Yn,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new fa(u&&u.currentValue,n,c===Yn),bg(e,t,o,n)}var _g="__ngSimpleChanges__";function Ig(e){return e[_g]||null}function XE(e,t){return e[_g]=t}var zp=[];var W=function(e,t=null,n){for(let r=0;r<zp.length;r++){let o=zp[r];o(e,t,n)}},G=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(G||{});function eC(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=wg(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function tC(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function ua(e,t,n){Sg(e,t,3,n)}function la(e,t,n,r){(e[R]&3)===n&&Sg(e,t,n,r)}function Ml(e,t){let n=e[R];(n&3)===t&&(n&=16383,n+=1,e[R]=n)}function Sg(e,t,n,r){let o=r!==void 0?e[Xn]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[Xn]+=65536),(a<i||i==-1)&&(nC(e,n,t,c),e[Xn]=(e[Xn]&4294901760)+c+2),c++}function Gp(e,t){W(G.LifecycleHookStart,e,t);let n=S(null);try{t.call(e)}finally{S(n),W(G.LifecycleHookEnd,e,t)}}function nC(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[R]>>14<e[Xn]>>16&&(e[R]&3)===t&&(e[R]+=16384,Gp(a,i)):Gp(a,i)}var Qr=-1,sr=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function rC(e){return(e.flags&8)!==0}function oC(e){return(e.flags&16)!==0}function iC(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];sC(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function ed(e){return e===3||e===4||e===6}function sC(e){return e.charCodeAt(0)===64}function td(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?qp(e,n,o,null,t[++r]):qp(e,n,o,null,null))}}return e}function qp(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function Mg(e){return e!==Qr}function ha(e){return e&32767}function aC(e){return e>>16}function pa(e,t){let n=aC(e),r=t;for(;n>0;)r=r[Qn],n--;return r}var Fl=!0;function ga(e){let t=Fl;return Fl=e,t}var cC=256,Tg=cC-1,Ag=5,uC=0,Mt={};function lC(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Kn)&&(r=n[Kn]),r==null&&(r=n[Kn]=uC++);let o=r&Tg,i=1<<o;t.data[e+(o>>Ag)]|=i}function ma(e,t){let n=Ng(e,t);if(n!==-1)return n;let r=t[N];r.firstCreatePass&&(e.injectorIndex=t.length,Tl(r.data,e),Tl(t,null),Tl(r.blueprint,null));let o=nd(e,t),i=e.injectorIndex;if(Mg(o)){let s=ha(o),a=pa(o,t),c=a[N].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function Tl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ng(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function nd(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Fg(o),r===null)return Qr;if(n++,o=o[Qn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Qr}function Pl(e,t,n){lC(e,t,n)}function dC(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(ed(i))break;if(i===0)o=o+2;else if(typeof i=="number")for(o++;o<r&&typeof n[o]=="string";)o++;else{if(i===t)return n[o+1];o=o+2}}}return null}function Rg(e,t,n){if(n&8||e!==void 0)return e;Ws(t,"NodeInjector")}function xg(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Bt],i=Oe(void 0);try{return o?o.get(t,r,n&8):Xu(t,r,n&8)}finally{Oe(i)}}return Rg(r,t,n)}function Og(e,t,n,r=0,o){if(e!==null){if(t[R]&2048&&!(r&2)){let s=mC(e,t,n,r,Mt);if(s!==Mt)return s}let i=kg(e,t,n,r,Mt);if(i!==Mt)return i}return xg(t,n,r,o)}function kg(e,t,n,r,o){let i=pC(n);if(typeof i=="function"){if(!El(t,e,r))return r&1?Rg(o,n,r):xg(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Ws(n);else return s}finally{Cl()}}else if(typeof i=="number"){let s=null,a=Ng(e,t),c=Qr,u=r&1?t[ze][Xe]:null;for((a===-1||r&4)&&(c=a===-1?nd(e,t):t[a+8],c===Qr||!Zp(r,!1)?a=-1:(s=t[N],a=ha(c),t=pa(c,t)));a!==-1;){let l=t[N];if(Wp(i,a,l.data)){let d=fC(a,t,n,s,r,u);if(d!==Mt)return d}c=t[a+8],c!==Qr&&Zp(r,t[N].data[a+8]===u)&&Wp(i,a,t)?(s=l,a=ha(c),t=pa(c,t)):a=-1}}return o}function fC(e,t,n,r,o,i){let s=t[N],a=s.data[e+8],c=r==null?Ht(a)&&Fl:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=hC(a,s,n,c,u);return l!==null?ya(t,s,l,a,o):Mt}function hC(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,p=o?a+l:u;for(let f=d;f<p;f++){let m=s[f];if(f<c&&n===m||f>=c&&m.type===n)return f}if(o){let f=s[c];if(f&&yn(f)&&f.type===n)return c}return null}function ya(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof sr){let a=i;if(a.resolving){let f=Jh(s[n]);throw Ju(f)}let c=ga(a.canSeeViewProviders);a.resolving=!0;let u=s[n].type||s[n],l,d=a.injectImpl?Oe(a.injectImpl):null,p=El(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&eC(n,s[n],t)}finally{d!==null&&Oe(d),ga(c),a.resolving=!1,Cl()}}return i}function pC(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Kn)?e[Kn]:void 0;return typeof t=="number"?t>=0?t&Tg:gC:t}function Wp(e,t,n){let r=1<<e;return!!(n[t+(e>>Ag)]&r)}function Zp(e,t){return!(e&2)&&!(e&1&&t)}var or=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Og(this._tNode,this._lView,t,qn(r),n)}};function gC(){return new or(Ve(),H())}function Aa(e){return hi(()=>{let t=e.prototype.constructor,n=t[Uo]||Ll(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Uo]||Ll(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Ll(e){return $u(e)?()=>{let t=Ll(Se(e));return t&&t()}:un(e)}function mC(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[R]&2048&&!Wr(s);){let a=kg(i,s,n,r|2,Mt);if(a!==Mt)return a;let c=i.parent;if(!c){let u=s[al];if(u){let l=u.get(n,Mt,r);if(l!==Mt)return l}c=Fg(s),s=s[Qn]}i=c}return o}function Fg(e){let t=e[N],n=t.type;return n===2?t.declTNode:n===1?e[Xe]:null}function pi(e){return dC(Ve(),e)}function yC(){return rd(Ve(),H())}function rd(e,t){return new dr(Te(e,t))}var dr=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=yC}return e})();function Pg(e){return(e.flags&128)===128}var od=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(od||{}),Lg=new Map,vC=0;function DC(){return vC++}function EC(e){Lg.set(e[Ut],e)}function jl(e){Lg.delete(e[Ut])}var Kp="__ngContext__";function Jr(e,t){St(t)?(e[Kp]=t[Ut],EC(t)):e[Kp]=t}function jg(e){return Bg(e[qr])}function Vg(e){return Bg(e[Je])}function Bg(e){for(;e!==null&&!ft(e);)e=e[Je];return e}var CC;function id(e){CC=e}var no=new E("",{factory:()=>bC}),bC="ng";var Na=new E(""),gi=new E("",{providedIn:"platform",factory:()=>"unknown"});var Ra=new E("",{factory:()=>h(le).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Ug="r";var Hg="di";var $g=!1,zg=new E("",{factory:()=>$g});var wC=(e,t,n,r)=>{};function _C(e,t,n,r){wC(e,t,n,r)}function sd(e){return(e.flags&32)===32}var IC=()=>null;function Gg(e,t,n=!1){return IC(e,t,n)}function qg(e,t){let n=e.contentQueries;if(n!==null){let r=S(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];Dl(i),a.contentQueries(2,t[s],s)}}}finally{S(r)}}}function Vl(e,t,n){Dl(0);let r=S(null);try{t(e,n)}finally{S(r)}}function Wg(e,t,n){if(ul(t)){let r=S(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{S(r)}}}var yt=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(yt||{});var ca;function SC(){if(ca===void 0&&(ca=null,Vt.trustedTypes))try{ca=Vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ca}function Yp(e){return SC()?.createScriptURL(e)||e}var va=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${zs})`}};function ad(e){return e instanceof va?e.changingThisBreaksApplicationSecurity:e}function cd(e,t){let n=Zg(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${zs})`)}return n===t}function Zg(e){return e instanceof va&&e.getTypeName()||null}var MC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Kg(e){return e=String(e),e.match(MC)?e:"unsafe:"+e}function TC(e,t){return e.createText(t)}function AC(e,t,n){e.setValue(t,n)}function Yg(e,t,n){return e.createElement(t,n)}function Da(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Qg(e,t,n){e.appendChild(t,n)}function Qp(e,t,n,r,o){r!==null?Da(e,t,n,r,o):Qg(e,t,n)}function Jg(e,t,n,r){e.removeChild(null,t,n,r)}function NC(e,t,n){e.setAttribute(t,"style",n)}function RC(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Xg(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&iC(e,t,r),o!==null&&RC(e,t,o),i!==null&&NC(e,t,i)}var xa=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e})(xa||{});function em(e){let t=nm();return t?t.sanitize(xa.URL,e)||"":cd(e,"URL")?ad(e):Kg(Zo(e))}function tm(e){let t=nm();if(t)return Yp(t.sanitize(xa.RESOURCE_URL,e)||"");if(cd(e,"ResourceURL"))return Yp(ad(e));throw new y(904,!1)}var xC=new Set(["embed","frame","iframe","media","script"]),OC=new Set(["base","link","script"]);function kC(e,t){return t==="src"&&xC.has(e)||t==="href"&&OC.has(e)||t==="xlink:href"&&e==="script"?tm:em}function ud(e,t,n){return kC(t,n)(e)}function nm(){let e=H();return e&&e[It].sanitizer}function rm(e){return e instanceof Function?e():e}function FC(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var om="ng-template";function PC(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&FC(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(ld(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function ld(e){return e.type===4&&e.value!==om}function LC(e,t,n){let r=e.type===4&&!n?om:e.value;return t===r}function jC(e,t,n){let r=4,o=e.attrs,i=o!==null?UC(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!mt(r)&&!mt(c))return!1;if(s&&mt(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!LC(e,c,n)||c===""&&t.length===1){if(mt(r))return!1;s=!0}}else if(r&8){if(o===null||!PC(e,o,c,n)){if(mt(r))return!1;s=!0}}else{let u=t[++a],l=VC(c,o,ld(e),n);if(l===-1){if(mt(r))return!1;s=!0;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(mt(r))return!1;s=!0}}}}return mt(r)||s}function mt(e){return(e&1)===0}function VC(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return HC(t,e)}function BC(e,t,n=!1){for(let r=0;r<t.length;r++)if(jC(e,t[r],n))return!0;return!1}function UC(e){for(let t=0;t<e.length;t++){let n=e[t];if(ed(n))return t}return e.length}function HC(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Jp(e,t){return e?":not("+t.trim()+")":t}function $C(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!mt(s)&&(t+=Jp(i,o),o=""),r=s,i=i||!mt(r);n++}return o!==""&&(t+=Jp(i,o)),t}function zC(e){return e.map($C).join(",")}function GC(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!mt(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var zt={};function dd(e,t,n,r,o,i,s,a,c,u,l){let d=De+r,p=d+o,f=qC(d,p),m=typeof u=="function"?u():u;return f[N]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,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:m,incompleteFirstPass:!1,ssrId:l}}function qC(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:zt);return n}function WC(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=dd(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function fd(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[dt]=o,d[R]=r|4|128|8|64|1024,(u!==null||e&&e[R]&2048)&&(d[R]|=2048),dl(d),d[ve]=d[Qn]=e,d[re]=n,d[It]=s||e&&e[It],d[K]=a||e&&e[K],d[Bt]=c||e&&e[Bt]||null,d[Xe]=i,d[Ut]=DC(),d[zr]=l,d[al]=u,d[ze]=t.type==2?e[ze]:d,d}function ZC(e,t,n){let r=Te(t,e),o=WC(n),i=e[It].rendererFactory,s=hd(e,fd(e,o,null,im(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function im(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function sm(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function hd(e,t){return e[qr]?e[sl][Je]=t:e[qr]=t,e[sl]=t,t}function L(e=1){am(he(),H(),ni()+e,!1)}function am(e,t,n,r){if(!r)if((t[R]&3)===3){let i=e.preOrderCheckHooks;i!==null&&ua(t,i,n)}else{let i=e.preOrderHooks;i!==null&&la(t,i,0,n)}En(n)}var Oa=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Oa||{});function ci(e,t,n,r){let o=S(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Oa.SignalBased)!==0&&(c=t[i][X]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):bg(t,c,i,r)}finally{S(o)}}var bn=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(bn||{}),KC;function pd(e,t){return KC(e,t)}var ar=new Set,gd=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(gd||{}),fr=new E(""),Xp=new Set;function wn(e){Xp.has(e)||(Xp.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var cm=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=b({token:e,providedIn:"root",factory:()=>new e})}return e})();var um=new E("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:h(Q)})});function lm(e,t,n){let r=e.get(um);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function YC(e,t){let n=e.get(um);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function QC(e,t){for(let[n,r]of t)lm(e,r.animateFns)}function eg(e,t,n,r){let o=e?.[tr]?.enter;t!==null&&o&&o.has(n.index)&&QC(r,o)}function Yr(e,t,n,r,o,i,s,a){if(o!=null){let c,u=!1;ft(o)?c=o:St(o)&&(u=!0,o=o[dt]);let l=et(o);e===0&&r!==null?(eg(a,r,i,n),s==null?Qg(t,r,l):Da(t,r,l,s||null,!0)):e===1&&r!==null?(eg(a,r,i,n),Da(t,r,l,s||null,!0)):e===2?tg(a,i,n,d=>{Jg(t,l,u,d)}):e===3&&tg(a,i,n,()=>{t.destroyNode(l)}),c!=null&&lb(t,e,n,c,i,r,s)}}function JC(e,t){dm(e,t),t[dt]=null,t[Xe]=null}function XC(e,t,n,r,o,i){r[dt]=o,r[Xe]=t,Fa(e,r,n,1,o,i)}function dm(e,t){t[It].changeDetectionScheduler?.notify(9),Fa(e,t,t[K],2,null,null)}function eb(e){let t=e[qr];if(!t)return Al(e[N],e);for(;t;){let n=null;if(St(t))n=t[qr];else{let r=t[oe];r&&(n=r)}if(!n){for(;t&&!t[Je]&&t!==e;)St(t)&&Al(t[N],t),t=t[ve];t===null&&(t=e),St(t)&&Al(t[N],t),n=t&&t[Je]}t=n}}function md(e,t){let n=e[Xo],r=n.indexOf(t);n.splice(r,1)}function ka(e,t){if(nr(t))return;let n=t[K];n.destroyNode&&Fa(e,t,n,3,null,null),eb(t)}function Al(e,t){if(nr(t))return;let n=S(null);try{t[R]&=-129,t[R]|=256,t[Ge]&&sn(t[Ge]),rb(e,t),nb(e,t),t[N].type===1&&t[K].destroy();let r=t[Jn];if(r!==null&&ft(t[ve])){r!==t[ve]&&md(r,t);let o=t[er];o!==null&&o.detachView(e)}jl(t)}finally{S(n)}}function tg(e,t,n,r){let o=e?.[tr];if(o==null||o.leave==null||!o.leave.has(t.index))return r(!1);e&&ar.add(e[Ut]),lm(n,()=>{if(o.leave&&o.leave.has(t.index)){let s=o.leave.get(t.index),a=[];if(s){for(let c=0;c<s.animateFns.length;c++){let u=s.animateFns[c],{promise:l}=u();a.push(l)}o.detachedLeaveAnimationFns=void 0}o.running=Promise.allSettled(a),tb(e,r)}else e&&ar.delete(e[Ut]),r(!1)},o)}function tb(e,t){let n=e[tr]?.running;if(n){n.then(()=>{e[tr].running=void 0,ar.delete(e[Ut]),t(!0)});return}t(!1)}function nb(e,t){let n=e.cleanup,r=t[Gr];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Gr]=null);let o=t[jt];if(o!==null){t[jt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[ln];if(i!==null){t[ln]=null;for(let s of i)s.destroy()}}function rb(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof sr)){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];W(G.LifecycleHookStart,a,c);try{c.call(a)}finally{W(G.LifecycleHookEnd,a,c)}}else{W(G.LifecycleHookStart,o,i);try{i.call(o)}finally{W(G.LifecycleHookEnd,o,i)}}}}}function ob(e,t,n){return ib(e,t.parent,n)}function ib(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[dt];if(Ht(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===yt.None||o===yt.Emulated)return null}return Te(r,n)}function sb(e,t,n){return cb(e,t,n)}function ab(e,t,n){return e.type&40?Te(e,n):null}var cb=ab,ng;function yd(e,t,n,r){let o=ob(e,r,t),i=t[K],s=r.parent||t[Xe],a=sb(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Qp(i,o,n[c],a,!1);else Qp(i,o,n,a,!1);ng!==void 0&&ng(i,r,t,n,o)}function si(e,t){if(t!==null){let n=t.type;if(n&3)return Te(t,e);if(n&4)return Bl(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return si(e,r);{let o=e[t.index];return ft(o)?Bl(-1,o):et(o)}}else{if(n&128)return si(e,t.next);if(n&32)return pd(t,e)()||et(e[t.index]);{let r=fm(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=dn(e[ze]);return si(o,r)}else return si(e,t.next)}}}return null}function fm(e,t){if(t!==null){let r=e[ze][Xe],o=t.projection;return r.projection[o]}return null}function Bl(e,t){let n=oe+e+1;if(n<t.length){let r=t[n],o=r[N].firstChild;if(o!==null)return si(r,o)}return t[mn]}function vd(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Bt];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&Jr(et(c),r),n.flags|=2),!sd(n))if(u&8)vd(e,t,n.child,r,o,i,!1),Yr(t,e,a,o,c,n,i,r);else if(u&32){let l=pd(n,r),d;for(;d=l();)Yr(t,e,a,o,d,n,i,r);Yr(t,e,a,o,c,n,i,r)}else u&16?ub(e,t,r,n,o,i):Yr(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function Fa(e,t,n,r,o,i){vd(n,r,e.firstChild,t,o,i,!1)}function ub(e,t,n,r,o,i){let s=n[ze],c=s[Xe].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];Yr(t,e,n[Bt],o,l,r,i,n)}else{let u=c,l=s[ve];Pg(r)&&(u.flags|=128),vd(e,t,u,l,o,i,!0)}}function lb(e,t,n,r,o,i,s){let a=r[mn],c=et(r);a!==c&&Yr(t,e,n,i,a,o,s);for(let u=oe;u<r.length;u++){let l=r[u];Fa(l[N],l,e,t,i,a)}}function hm(e,t,n,r,o){let i=ni(),s=r&2;try{En(-1),s&&t.length>De&&am(e,t,De,!1);let a=s?G.TemplateUpdateStart:G.TemplateCreateStart;W(a,o,n),n(r,o)}finally{En(i);let a=s?G.TemplateUpdateEnd:G.TemplateCreateEnd;W(a,o,n)}}function pm(e,t,n){yb(e,t,n),(n.flags&64)===64&&vb(e,t,n)}function gm(e,t,n=Te){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function db(e,t,n,r){let i=r.get(zg,$g)||n===yt.ShadowDom||n===yt.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return fb(s),s}function fb(e){hb(e)}var hb=()=>null;function pb(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function mm(e,t,n,r,o,i){let s=t[N];if(Dd(e,s,t,n,r)){Ht(e)&&mb(t,e.index);return}e.type&3&&(n=pb(n)),gb(e,t,n,r,o,i)}function gb(e,t,n,r,o,i){if(e.type&3){let s=Te(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function mb(e,t){let n=tt(t,e);n[R]&16||(n[R]|=64)}function yb(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Ht(n)&&ZC(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||ma(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=ya(t,e,s,n);if(Jr(c,t),i!==null&&wb(t,s-r,c,a,n,i),yn(a)){let u=tt(n.index,t);u[re]=ya(t,e,s,n)}}}function vb(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Np();try{En(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];ea(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&Db(c,u)}}finally{En(-1),ea(s)}}function Db(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Eb(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];BC(t,i.selectors,!1)&&(r??=[],yn(i)?r.unshift(i):r.push(i))}return r}function Cb(e,t,n,r,o,i){let s=Te(e,t);bb(t[K],s,i,e.value,n,r,o)}function bb(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?Zo(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function wb(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];ci(r,n,c,u)}}function _b(e,t,n,r,o){let i=De+n,s=t[N],a=o(s,t,e,r,n);t[i]=a,Kr(e,!0);let c=e.type===2;return c?(Xg(t[K],a,e),(mp()===0||Qs(e))&&Jr(a,t),yp()):Jr(a,t),ra()&&(!c||!sd(e))&&yd(s,t,a,e),e}function Ib(e){let t=e;return yl()?_p():(t=t.parent,Kr(t,!1)),t}function Sb(e,t){let n=e[Bt];if(!n)return;let r;try{r=n.get(nt,null)}catch{r=null}r?.(t)}function Dd(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],d=t.data[u];ci(d,n[u],l,o),a=!0}if(i)for(let c of i){let u=n[c],l=t.data[c];ci(l,u,r,o),a=!0}return a}function Mb(e,t){let n=tt(t,e),r=n[N];Tb(r,n);let o=n[dt];o!==null&&n[zr]===null&&(n[zr]=Gg(o,n[Bt])),W(G.ComponentStart);try{Ed(r,n,n[re])}finally{W(G.ComponentEnd,n[re])}}function Tb(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Ed(e,t,n){ta(t);try{let r=e.viewQuery;r!==null&&Vl(1,r,n);let o=e.template;o!==null&&hm(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[er]?.finishViewCreation(e),e.staticContentQueries&&qg(e,t),e.staticViewQueries&&Vl(2,e.viewQuery,n);let i=e.components;i!==null&&Ab(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[R]&=-5,na()}}function Ab(e,t){for(let n=0;n<t.length;n++)Mb(e,t[n])}function Cd(e,t,n,r){let o=S(null);try{let i=t.tView,a=e[R]&4096?4096:16,c=fd(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[Jn]=u;let l=e[er];return l!==null&&(c[er]=l.createEmbeddedView(i)),Ed(i,c,n),c}finally{S(o)}}function ui(e,t){return!t||t.firstChild===null||Pg(e)}function li(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(et(i)),ft(i)&&ym(i,r);let s=n.type;if(s&8)li(e,t,n.child,r);else if(s&32){let a=pd(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=fm(t,n);if(Array.isArray(a))r.push(...a);else{let c=dn(t[ze]);li(c[N],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function ym(e,t){for(let n=oe;n<e.length;n++){let r=e[n],o=r[N].firstChild;o!==null&&li(r[N],r,o,t)}e[mn]!==e[dt]&&t.push(e[mn])}function vm(e){if(e[Ys]!==null){for(let t of e[Ys])t.impl.addSequence(t);e[Ys].length=0}}var Dm=[];function Nb(e){return e[Ge]??Rb(e)}function Rb(e){let t=Dm.pop()??Object.create(Ob);return t.lView=e,t}function xb(e){e.lView[Ge]!==e&&(e.lView=null,Dm.push(e))}var Ob=_(g({},xt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Zr(e.lView)},consumerOnSignalRead(){this.lView[Ge]=this}});function kb(e){let t=e[Ge]??Object.create(Fb);return t.lView=e,t}var Fb=_(g({},xt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=dn(e.lView);for(;t&&!Em(t[N]);)t=dn(t);t&&fl(t)},consumerOnSignalRead(){this.lView[Ge]=this}});function Em(e){return e.type!==2}function Cm(e){if(e[ln]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[ln])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[R]&8192)}}var Pb=100;function bm(e,t=0){let r=e[It].rendererFactory,o=!1;o||r.begin?.();try{Lb(e,t)}finally{o||r.end?.()}}function Lb(e,t){let n=vl();try{$o(!0),Ul(e,t);let r=0;for(;ti(e);){if(r===Pb)throw new y(103,!1);r++,Ul(e,1)}}finally{$o(n)}}function jb(e,t,n,r){if(nr(t))return;let o=t[R],i=!1,s=!1;ta(t);let a=!0,c=null,u=null;i||(Em(e)?(u=Nb(t),c=Ot(u)):as()===null?(a=!1,u=kb(t),c=Ot(u)):t[Ge]&&(sn(t[Ge]),t[Ge]=null));try{dl(t),Mp(e.bindingStartIndex),n!==null&&hm(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&ua(t,f,null)}else{let f=e.preOrderHooks;f!==null&&la(t,f,0,null),Ml(t,0)}if(s||Vb(t),Cm(t),wm(t,0),e.contentQueries!==null&&qg(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&ua(t,f)}else{let f=e.contentHooks;f!==null&&la(t,f,1),Ml(t,1)}Ub(e,t);let d=e.components;d!==null&&Im(t,d,0);let p=e.viewQuery;if(p!==null&&Vl(2,p,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&ua(t,f)}else{let f=e.viewHooks;f!==null&&la(t,f,2),Ml(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ks]){for(let f of t[Ks])f();t[Ks]=null}i||(vm(t),t[R]&=-73)}catch(l){throw i||Zr(t),l}finally{u!==null&&(on(u,c),a&&xb(u)),na()}}function wm(e,t){for(let n=jg(e);n!==null;n=Vg(n))for(let r=oe;r<n.length;r++){let o=n[r];_m(o,t)}}function Vb(e){for(let t=jg(e);t!==null;t=Vg(t)){if(!(t[R]&2))continue;let n=t[Xo];for(let r=0;r<n.length;r++){let o=n[r];fl(o)}}}function Bb(e,t,n){W(G.ComponentStart);let r=tt(t,e);try{_m(r,n)}finally{W(G.ComponentEnd,r[re])}}function _m(e,t){Js(e)&&Ul(e,t)}function Ul(e,t){let r=e[N],o=e[R],i=e[Ge],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Ar(i)),s||=!1,i&&(i.dirty=!1),e[R]&=-9217,s)jb(r,e,r.template,e[re]);else if(o&8192){let a=S(null);try{Cm(e),wm(e,1);let c=r.components;c!==null&&Im(e,c,1),vm(e)}finally{S(a)}}}function Im(e,t,n){for(let r=0;r<t.length;r++)Bb(e,t[r],n)}function Ub(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)En(~o);else{let i=o,s=n[++r],a=n[++r];Ap(s,i);let c=t[i];W(G.HostBindingsUpdateStart,c);try{a(2,c)}finally{W(G.HostBindingsUpdateEnd,c)}}}}finally{En(-1)}}function bd(e,t){let n=vl()?64:1088;for(e[It].changeDetectionScheduler?.notify(t);e;){e[R]|=n;let r=dn(e);if(Wr(e)&&!r)return e;e=r}return null}function Sm(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Mm(e,t){let n=oe+t;if(n<e.length)return e[n]}function Pa(e,t,n,r=!0){let o=t[N];if(Hb(o,t,e,n),r){let s=Bl(n,e),a=t[K],c=a.parentNode(e[mn]);c!==null&&XC(o,e[Xe],a,t,c,s)}let i=t[zr];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Tm(e,t){let n=di(e,t);return n!==void 0&&ka(n[N],n),n}function di(e,t){if(e.length<=oe)return;let n=oe+t,r=e[n];if(r){let o=r[Jn];o!==null&&o!==e&&md(o,r),t>0&&(e[n-1][Je]=r[Je]);let i=Ko(e,oe+t);JC(r[N],r);let s=i[er];s!==null&&s.detachView(i[N]),r[ve]=null,r[Je]=null,r[R]&=-129}return r}function Hb(e,t,n,r){let o=oe+r,i=n.length;r>0&&(n[o-1][Je]=t),r<i-oe?(t[Je]=n[o],el(n,oe+r,t)):(n.push(t),t[Je]=null),t[ve]=n;let s=t[Jn];s!==null&&n!==s&&Am(s,t);let a=t[er];a!==null&&a.insertView(e),Xs(t),t[R]|=128}function Am(e,t){let n=e[Xo],r=t[ve];if(St(r))e[R]|=2;else{let o=r[ve][ze];t[ze]!==o&&(e[R]|=2)}n===null?e[Xo]=[t]:n.push(t)}var cr=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[N];return li(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[re]}set context(t){this._lView[re]=t}get destroyed(){return nr(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ve];if(ft(t)){let n=t[Jo],r=n?n.indexOf(this):-1;r>-1&&(di(t,r),Ko(n,r))}this._attachedToViewContainer=!1}ka(this._lView[N],this._lView)}onDestroy(t){hl(this._lView,t)}markForCheck(){bd(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[R]&=-129}reattach(){Xs(this._lView),this._lView[R]|=128}detectChanges(){this._lView[R]|=1024,bm(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new y(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Wr(this._lView),n=this._lView[Jn];n!==null&&!t&&md(n,this._lView),dm(this._lView[N],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new y(902,!1);this._appRef=t;let n=Wr(this._lView),r=this._lView[Jn];r!==null&&!n&&Am(r,this._lView),Xs(this._lView)}};function wd(e,t,n,r,o){let i=e.data[t];if(i===null)i=$b(e,t,n,r,o),Tp()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=wp();i.injectorIndex=s===null?-1:s.injectorIndex}return Kr(i,!0),i}function $b(e,t,n,r,o){let i=ml(),s=yl(),a=s?i:i&&i.parent,c=e.data[t]=Gb(e,a,n,t,r,o);return zb(e,c,i,s),c}function zb(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function Gb(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Ep()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,fieldIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function qb(e){let t=e[cl]??[],r=e[ve][K],o=[];for(let i of t)i.data[Hg]!==void 0?o.push(i):Wb(i,r);e[cl]=o}function Wb(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Ug];for(;n<o;){let i=r.nextSibling;Jg(t,r,!1),r=i,n++}}}var Zb=()=>null,Kb=()=>null;function Hl(e,t){return Zb(e,t)}function Nm(e,t,n){return Kb(e,t,n)}var Rm=class{},La=class{},$l=class{resolveComponentFactory(t){throw new y(917,!1)}},mi=class{static NULL=new $l},ur=class{},ja=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>Yb()}return e})();function Yb(){let e=H(),t=Ve(),n=tt(t.index,e);return(St(n)?n:e)[K]}var xm=(()=>{class e{static \u0275prov=b({token:e,providedIn:"root",factory:()=>null})}return e})();var da={},zl=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,da,r);return o!==da||n===da?o:this.parentInjector.get(t,n,r)}};function rg(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=Hu(o,a);else if(i==2){let c=a,u=t[++s];r=Hu(r,c+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Fe(e,t=0){let n=H();if(n===null)return M(e,t);let r=Ve();return Og(r,n,Se(e),t)}function Qb(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,u=null;for(let l of s)if(l.resolveHostDirectives!==null){[a,c,u]=l.resolveHostDirectives(s);break}ew(e,t,n,a,i,c,u)}i!==null&&r!==null&&Jb(n,r,i)}function Jb(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new y(-301,!1);r.push(t[o],i)}}function Xb(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function ew(e,t,n,r,o,i,s){let a=r.length,c=null;for(let p=0;p<a;p++){let f=r[p];c===null&&yn(f)&&(c=f,Xb(e,n,p)),Pl(ma(n,t),e,f.type)}sw(n,e.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 u=!1,l=!1,d=sm(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=td(n.mergedAttrs,f.hostAttrs),nw(e,n,t,d,f),iw(d,f,o),s!==null&&s.has(f)){let[D,v]=s.get(f);n.directiveToIndex.set(f.type,[d,D+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 m=f.type.prototype;!u&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!l&&(m.ngOnChanges||m.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),d++}tw(e,n,i)}function tw(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))og(0,t,o,r),og(1,t,o,r),sg(t,r,!1);else{let i=n.get(o);ig(0,t,i,r),ig(1,t,i,r),sg(t,r,!0)}}}function og(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Om(t,i)}}function ig(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Om(t,s)}}function Om(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function sg(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||ld(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function nw(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=un(o.type,!0)),s=new sr(i,yn(o),Fe,null);e.blueprint[r]=s,n[r]=s,rw(e,t,r,sm(e,n,o.hostVars,zt),o)}function rw(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;ow(s)!=a&&s.push(a),s.push(n,r,i)}}function ow(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function iw(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;yn(t)&&(n[""]=e)}}function sw(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function km(e,t,n,r,o,i,s,a){let c=t[N],u=c.consts,l=vn(u,s),d=wd(c,e,n,r,l);return i&&Qb(c,t,d,vn(u,a),o),d.mergedAttrs=td(d.mergedAttrs,d.attrs),d.attrs!==null&&rg(d,d.attrs,!1),d.mergedAttrs!==null&&rg(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function Fm(e,t){tC(e,t),ul(t)&&e.queries.elementEnd(t)}function aw(e,t,n){return e[t]=n}function Cn(e,t,n){if(n===zt)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function cw(e,t,n,r){let o=Cn(e,t,n);return Cn(e,t+1,r)||o}var Va=Symbol("CONTROL");function ir(e,t,n){return function r(o){let i=Ht(e)?tt(e.index,t):t;bd(i,5);let s=t[re],a=ag(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=ag(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function ag(e,t,n,r){let o=S(null);try{return W(G.OutputStart,t,n),n(r)!==!1}catch(i){return Sb(e,i),!1}finally{W(G.OutputEnd,t,n),S(o)}}function Gl(e,t,n,r,o,i,s,a){let c=Qs(e),u=!1,l=null;if(!r&&c&&(l=lw(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=!0}else{let d=Te(e,n),p=r?r(d):d;_C(n,p,i,a);let f=o.listen(p,i,a);if(!uw(i)){let m=r?D=>r(et(D[e.index])):e.index;Pm(m,t,n,i,a,f,!1)}}return u}function uw(e){return e.startsWith("animation")||e.startsWith("transition")}function lw(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[Gr],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Pm(e,t,n,r,o,i,s){let a=t.firstCreatePass?gl(t):null,c=pl(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1))}function Ea(e,t,n,r,o,i){let s=t[n],a=t[N],u=a.data[n].outputs[r],d=s[u].subscribe(i);Pm(e.index,a,t,o,i,d,!0)}var ql=Symbol("BINDING");var Ca=class extends mi{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=gn(t);return new Xr(n,this.ngModule)}};function dw(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Oa.SignalBased)!==0};return o&&(i.transform=o),i})}function fw(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function hw(e,t,n){let r=t instanceof Q?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new zl(n,r):n}function pw(e){let t=e.get(ur,null);if(t===null)throw new y(407,!1);let n=e.get(xm,null),r=e.get(fn,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function gw(e,t){let n=Lm(e);return Yg(t,n,n==="svg"?cp:n==="math"?up:null)}function Lm(e){return(e.selectors[0][0]||"div").toLowerCase()}var Xr=class extends La{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=dw(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=fw(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=zC(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){W(G.DynamicComponentStart);let a=S(null);try{let c=this.componentDef,u=mw(r,c,s,i),l=hw(c,o||this.ngModule,t),d=pw(l),p=d.rendererFactory.createRenderer(null,c),f=r?db(p,r,c.encapsulation,l):gw(c,p),m=s?.some(cg)||i?.some(C=>typeof C!="function"&&C.bindings.some(cg)),D=fd(null,u,null,512|im(c),null,null,d,p,l,null,Gg(f,l,!0));D[De]=f,ta(D);let v=null;try{let C=km(De,D,2,"#host",()=>u.directiveRegistry,!0,0);Xg(p,f,C),Jr(f,D),pm(u,D,C),Wg(u,C,D),Fm(u,C),n!==void 0&&vw(C,this.ngContentSelectors,n),v=tt(C.index,D),D[re]=v[re],Ed(u,D,null)}catch(C){throw v!==null&&jl(v),jl(D),C}finally{W(G.DynamicComponentEnd),na()}return new ba(this.componentType,D,!!m)}finally{S(a)}}};function mw(e,t,n,r){let o=e?["ng-version","21.1.0"]:GC(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[ql].requiredVars,l.create&&(l.targetIdx=0,(i??=[]).push(l)),l.update&&(l.targetIdx=0,(s??=[]).push(l));if(r)for(let l=0;l<r.length;l++){let d=r[l];if(typeof d!="function")for(let p of d.bindings){a+=p[ql].requiredVars;let f=l+1;p.create&&(p.targetIdx=f,(i??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p))}}let c=[t];if(r)for(let l of r){let d=typeof l=="function"?l:l.type,p=Qu(d);c.push(p)}return dd(0,null,yw(i,s),1,a,c,null,null,null,[o],null)}function yw(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function cg(e){let t=e[ql].kind;return t==="input"||t==="twoWay"}var ba=class extends Rm{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=ei(n[N],De),this.location=rd(this._tNode,n),this.instance=tt(this._tNode.index,n)[re],this.hostView=this.changeDetectorRef=new cr(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=Dd(r,o[N],o,t,n);this.previousInputValues.set(t,n);let s=tt(r.index,o);bd(s,1)}get injector(){return new or(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function vw(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var yi=(()=>{class e{static __NG_ELEMENT_ID__=Dw}return e})();function Dw(){let e=Ve();return Cw(e,H())}var Ew=yi,jm=class extends Ew{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return rd(this._hostTNode,this._hostLView)}get injector(){return new or(this._hostTNode,this._hostLView)}get parentInjector(){let t=nd(this._hostTNode,this._hostLView);if(Mg(t)){let n=pa(t,this._hostLView),r=ha(t),o=n[N].data[r+8];return new or(o,n)}else return new or(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=ug(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-oe}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Hl(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,ui(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!YE(t),u;if(c)u=n;else{let v=n||{};u=v.index,r=v.injector,o=v.projectableNodes,i=v.environmentInjector||v.ngModuleRef,s=v.directives,a=v.bindings}let l=c?t:new Xr(gn(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let C=(c?d:this.parentInjector).get(Q,null);C&&(i=C)}let p=gn(l.componentType??{}),f=Hl(this._lContainer,p?.id??null),m=f?.firstChild??null,D=l.create(d,o,m,i,s,a);return this.insertImpl(D.hostView,u,ui(this._hostTNode,f)),D}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(fp(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[ve],u=new jm(c,c[Xe],c[ve]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Pa(s,o,i,r),t.attachToViewContainerRef(),el(Nl(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=ug(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=di(this._lContainer,n);r&&(Ko(Nl(this._lContainer),n),ka(r[N],r))}detach(t){let n=this._adjustIndex(t,-1),r=di(this._lContainer,n);return r&&Ko(Nl(this._lContainer),n)!=null?new cr(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function ug(e){return e[Jo]}function Nl(e){return e[Jo]||(e[Jo]=[])}function Cw(e,t){let n,r=t[e.index];return ft(r)?n=r:(n=Sm(r,t,null,e),t[e.index]=n,hd(t,n)),ww(n,t,e,r),new jm(n,e,t)}function bw(e,t){let n=e[K],r=n.createComment(""),o=Te(t,e),i=n.parentNode(o);return Da(n,i,r,n.nextSibling(o),!1),r}var ww=Sw,_w=()=>!1;function Iw(e,t,n){return _w(e,t,n)}function Sw(e,t,n,r){if(e[mn])return;let o;n.type&8?o=et(r):o=bw(t,n),e[mn]=o}var lr=class{},Ba=class{};var wa=class extends lr{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Ca(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=Yu(t);this._bootstrapComponents=rm(i.bootstrap),this._r3Injector=bl(t,n,[{provide:lr,useValue:this},{provide:mi,useValue:this.componentFactoryResolver},...r],cn(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},_a=class extends Ba{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new wa(this.moduleType,t,[])}};var fi=class extends lr{injector;componentFactoryResolver=new Ca(this);instance=null;constructor(t){super();let n=new Zn([...t.providers,{provide:lr,useValue:this},{provide:mi,useValue:this.componentFactoryResolver}],t.parent||Qo(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function vi(e,t,n=null){return new fi({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Mw=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=rl(!1,n.type),o=r.length>0?vi([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=b({token:e,providedIn:"environment",factory:()=>new e(M(Q))})}return e})();function qe(e){return hi(()=>{let t=Vm(e),n=_(g({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===od.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Mw).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||yt.Emulated,styles:e.styles||lt,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&wn("NgStandalone"),Bm(n);let r=e.dependencies;return n.directiveDefs=lg(r,Tw),n.pipeDefs=lg(r,Qh),n.id=Rw(n),n})}function Tw(e){return gn(e)||Qu(e)}function hr(e){return hi(()=>({type:e.type,bootstrap:e.bootstrap||lt,declarations:e.declarations||lt,imports:e.imports||lt,exports:e.exports||lt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Aw(e,t){if(e==null)return Yn;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Oa.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function Nw(e){if(e==null)return Yn;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function _n(e){return hi(()=>{let t=Vm(e);return Bm(t),t})}function _d(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Vm(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Yn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||lt,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:Aw(e.inputs,t),outputs:Nw(e.outputs),debugInfo:null}}function Bm(e){e.features?.forEach(t=>t(e))}function lg(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i)}return r}:null}function Rw(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function xw(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=td(e.mergedAttrs,e.attrs);let l=e.tView=dd(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),l.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),Kr(e,!1);let c=Ow(n,t,e,r);ra()&&yd(n,t,c,e),Jr(c,t);let u=Sm(c,t,c,e);t[r+De]=u,hd(t,u),Iw(u,e,t)}function Ia(e,t,n,r,o,i,s,a,c,u,l){let d=n+De,p;if(t.firstCreatePass){if(p=wd(t,d,4,s||null,a||null),u!=null){let f=vn(t.consts,u);p.localNames=[];for(let m=0;m<f.length;m+=2)p.localNames.push(f[m],-1)}}else p=t.data[d];return xw(p,e,t,n,r,o,i,c),u!=null&&gm(e,p,l),p}var Ow=kw;function kw(e,t,n,r){return oa(!0),t[K].createComment("")}var Id=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function Ua(e){return typeof e=="function"&&e[X]!==void 0}var Sd=new E("");function Gt(e){return!!e&&typeof e.then=="function"}function Md(e){return!!e&&typeof e.subscribe=="function"}var Um=new E("");var Td=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=h(Um,{optional:!0})??[];injector=h(ue);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=ne(this.injector,o);if(Gt(i))n.push(i);else if(Md(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ha=new E("");function Hm(){uu(()=>{let e="";throw new y(600,e)})}function $m(e){return e.isBoundToModule}var Fw=10;var pr=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=h(nt);afterRenderManager=h(cm);zonelessEnabled=h(oi);rootEffectScheduler=h(aa);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new te;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=h($t);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe($(n=>!n))}constructor(){h(fr,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=h(Q);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=ue.NULL){return this._injector.get(je).run(()=>{W(G.BootstrapComponentStart);let s=n instanceof La;if(!this._injector.get(Td).done){let m="";throw new y(405,m)}let c;s?c=n:c=this._injector.get(mi).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let u=$m(c)?void 0:this._injector.get(lr),l=r||c.selector,d=c.create(o,[],l,u),p=d.location.nativeElement,f=d.injector.get(Sd,null);return f?.registerApplication(p),d.onDestroy(()=>{this.detachView(d.hostView),ai(this.components,d),f?.unregisterApplication(p)}),this._loadComponent(d),W(G.BootstrapComponentEnd,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){W(G.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(gd.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw W(G.ChangeDetectionEnd),new y(101,!1);let n=S(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,S(n),this.afterTick.next(),W(G.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(ur,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<Fw;){W(G.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{W(G.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&&!ti(o))continue;let i=r&&!this.zonelessEnabled?0:1;bm(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})=>ti(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;ai(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(Ha,[]).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),()=>ai(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new y(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ai(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function $a(e,t,n,r){let o=H(),i=Dn();if(Cn(o,i,t)){let s=he(),a=ri();Cb(a,o,e,t,n,r)}return $a}var JF=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function Be(){let e=H(),t=he(),n=Ve();t.firstCreatePass&&Pw(t,n,e);let r=Gm(n,e);r&&(wn("NgSignalForms"),n.flags&1024?fg(e,n,r,"value"):n.flags&2048?fg(e,n,r,"checked"):n.flags&4096?Uw(r):n.flags&8192&&$w(e,n,r),r.\u0275register())}function rt(e,t,n){let r=H(),o=ri(),i=Dn();if(Cn(r,i,e)){let s=he();mm(o,r,t,e,r[K],n)}zm(r,o)}function Ad(){let e=H(),t=ri();zm(e,t)}function zm(e,t){let n=Gm(t,e);n&&(qw(e,t,n),t.flags&1024?hg(t,e,n,"value"):t.flags&2048?hg(t,e,n,"checked"):t.flags&4096?Ww(t,e,n):Zw(t,e,n)),Dn()}function Pw(e,t,n){let r=t.inputs?.formField;if(!r||Ht(t)&&r.includes(t.directiveStart+t.componentOffset))return;let o=r.find(s=>Va in n[s]);if(o===void 0)return;t.fieldIndex=o;let i=Lw(t,n)||jw(e,t);if(!(Vw(t)||i))throw new y(318,!1)}function Lw(e,t){return t[e.fieldIndex].\u0275interopControl?(e.flags|=4096,!0):!1}function jw(e,t){for(let n=t.directiveStart;n<t.directiveEnd;n++){let r=e.data[n];if(dg(r,"value"))return t.flags|=1024,t.customControlIndex=n,!0;if(dg(r,"checked"))return t.flags|=2048,t.customControlIndex=n,!0}return!1}function Vw(e){return Hw(e)?(e.flags|=8192,Kw(e)&&(e.flags|=16384),Yw(e)&&(e.flags|=32768),!0):!1}function Gm(e,t){let n=e.fieldIndex;return n===-1?null:t[n]}function dg(e,t){return Bw(e,t)&&qm(e,t+"Change")}function Bw(e,t){return t in e.inputs}function qm(e,t){return t in e.outputs}function fg(e,t,n,r){let o=he(),i=t.customControlIndex,s=r+"Change";Ea(t,e,i,s,s,ir(t,e,l=>n.state().setControlValue(l)));let a=o.data[i],c="touchedChange";qm(a,c)&&Ea(t,e,i,c,c,ir(t,e,()=>n.state().markAsTouched()));let u=e[i];n.focus=()=>u.focus?u.focus():n.element.focus()}function Uw(e){let t=e.\u0275interopControl;t.registerOnChange(n=>e.state().setControlValue(n)),t.registerOnTouched(()=>e.state().markAsTouched()),e.focus=()=>e.element.focus()}function Hw(e){if(e.type!==2)return!1;let t=e.value;return t==="input"||t==="textarea"||t==="select"}function $w(e,t,n){let r=he(),o=e[K],i=Te(t,e),s=()=>{let c=n.state();c.setControlValue(Qw(i,c.value))};Gl(t,r,e,void 0,o,"input",s,ir(t,e,s));let a=()=>{n.state().markAsTouched()};if(Gl(t,r,e,void 0,o,"blur",a,ir(t,e,a)),t.type===2&&t.value==="select"&&typeof MutationObserver=="function"){let c=zw(i,n);gp(r,e,c,c.disconnect)}n.focus=()=>i.focus()}function zw(e,t){let n=new MutationObserver(r=>{r.some(o=>Gw(o))&&(e.value=t.state().value())});return n.observe(e,{attributes:!0,attributeFilter:["value"],characterData:!0,childList:!0,subtree:!0}),n}function Gw(e){if(e.type==="childList"||e.type==="characterData"){if(e.target instanceof Comment)return!1;for(let t of e.addedNodes)if(!(t instanceof Comment))return!0;for(let t of e.removedNodes)if(!(t instanceof Comment))return!0;return!1}return e.type==="attributes"&&e.target instanceof HTMLOptionElement}function qw(e,t,n){if(n.classes){let r=Ga(e);r.classes??={},n.state();let o=e[K],i=Te(t,e);for(let[s,a]of n.classes){let c=a();s_(r.classes,s,c)&&(c?o.addClass(i,s):o.removeClass(i,s))}}}function hg(e,t,n,r){let o=he(),i=e.customControlIndex,s=t[i],a=o.data[i],c=n.state(),u=Ga(t),l=c.controlValue();eo(u,xd,l)&&ci(a,s,r,l);let d=(e.flags&8192)!==0,p=d?Te(e,t):null,f=t[K];for(let m of Od){let D=c[m]?.();if(eo(u,m,D)){let v=za[m];Nd(e,t,v,D),d&&!(v in a.inputs)&&Rd(e,f,p,m,D,v)}}}function Ww(e,t,n){let r=n.\u0275interopControl,o=Ga(t),i=n.state(),s=(e.flags&8192)!==0,a=s?Te(e,t):null,c=t[K],u=i.value();eo(o,xd,u)&&F(()=>r.writeValue(u));for(let l of Od){let d=i[l]?.();if(eo(o,l,d)){let p=za[l],f=Nd(e,t,p,d);l===Zm?r.setDisabledState&&F(()=>r.setDisabledState(d)):s&&!f&&Rd(e,c,a,l,d,p)}}}function Zw(e,t,n){let r=Te(e,t),o=t[K],i=n.state(),s=Ga(t),a=i.controlValue();eo(s,xd,a)&&Jw(r,a);for(let c of Od){let u=i[c]?.();if(eo(s,c,u)){let l=za[c];Rd(e,o,r,c,u,l),Nd(e,t,l,u)}}}function Nd(e,t,n,r){let o=e.inputs?.[n];if(o){let i=he();for(let s of o){let a=i.data[s],c=t[s];ci(a,c,n,r)}return!0}return!1}function Rd(e,t,n,r,o,i){switch(r){case r_:t.setAttribute(n,i,o);break;case Zm:case o_:case i_:a_(t,n,i,o);break;case Xw:case t_:e.flags&16384&&gg(t,n,i,o);break;case e_:case n_:e.flags&32768&&gg(t,n,i,o);break}}function Wm(e){return e===null||e instanceof Date}function Kw(e){if(!e.attrs||e.value!=="input")return!1;for(let t=0;t<e.attrs.length;t+=2){let n=e.attrs[t];if(ed(n))break;if(n==="type"){let r=e.attrs[t+1];return r==="date"||r==="datetime-local"||r==="month"||r==="number"||r==="range"||r==="time"||r==="week"}}return!1}function Yw(e){return e.value!=="select"}function Qw(e,t){switch(e.type){case"checkbox":return e.checked;case"number":case"range":case"datetime-local":if(typeof t()=="number")return e.valueAsNumber;break;case"date":case"month":case"time":case"week":let n=t();if(Wm(n))return e.valueAsDate;if(typeof n=="number")return e.valueAsNumber;break}return e.value}function Jw(e,t){switch(e.type){case"checkbox":e.checked=t;return;case"radio":e.checked=t===e.value;return;case"number":case"range":case"datetime-local":if(typeof t=="number"){pg(e,t);return}break;case"date":case"month":case"time":case"week":if(Wm(t)){e.valueAsDate=t;return}else if(typeof t=="number"){pg(e,t);return}}e.value=t}function pg(e,t){isNaN(t)?e.value="":e.valueAsNumber=t}var Zm=A({disabled:A}),Xw=A({max:A}),e_=A({maxLength:A}),t_=A({min:A}),n_=A({minLength:A}),r_=A({name:A}),o_=A({readonly:A}),i_=A({required:A}),xd=A({controlValue:A}),za={disabled:"disabled",disabledReasons:"disabledReasons",dirty:"dirty",errors:"errors",hidden:"hidden",invalid:"invalid",max:"max",maxLength:"maxLength",min:"min",minLength:"minLength",name:"name",pattern:"pattern",pending:"pending",readonly:"readonly",required:"required",touched:"touched"},Od=Object.keys(za);function Ga(e){let t=Sp(),n=e[t];return n===zt&&(n=e[t]={}),n}function eo(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function s_(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function a_(e,t,n,r){r?e.setAttribute(t,n,""):e.removeAttribute(t,n)}function gg(e,t,n,r){r!==void 0?e.setAttribute(t,n,r.toString()):e.removeAttribute(t,n)}var Wl=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Rl(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function c_(e,t,n,r){let o,i,s=0,a=e.length-1,c=void 0;if(Array.isArray(t)){S(r);let u=t.length-1;for(S(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],p=Rl(s,l,s,d,n);if(p!==0){p<0&&e.updateValue(s,d),s++;continue}let f=e.at(a),m=t[u],D=Rl(a,f,u,m,n);if(D!==0){D<0&&e.updateValue(a,m),a--,u--;continue}let v=n(s,l),C=n(a,f),J=n(s,d);if(Object.is(J,C)){let Qe=n(u,m);Object.is(Qe,v)?(e.swap(s,a),e.updateValue(a,m),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new Sa,i??=yg(e,s,a,n),Zl(e,o,s,J))e.updateValue(s,d),s++,a++;else if(i.has(J))o.set(v,e.detach(s)),a--;else{let Qe=e.create(s,t[s]);e.attach(s,Qe),s++,a++}}for(;s<=u;)mg(e,o,n,s,t[s]),s++}else if(t!=null){S(r);let u=t[Symbol.iterator]();S(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),p=l.value,f=Rl(s,d,s,p,n);if(f!==0)f<0&&e.updateValue(s,p),s++,l=u.next();else{o??=new Sa,i??=yg(e,s,a,n);let m=n(s,p);if(Zl(e,o,s,m))e.updateValue(s,p),s++,a++,l=u.next();else if(!i.has(m))e.attach(s,e.create(s,p)),s++,a++,l=u.next();else{let D=n(s,d);o.set(D,e.detach(s)),a--}}}for(;!l.done;)mg(e,o,n,e.length,l.value),l=u.next()}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(u=>{e.destroy(u)})}function Zl(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function mg(e,t,n,r,o){if(Zl(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function yg(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Sa=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function pe(e,t,n,r,o,i,s,a){wn("NgControlFlow");let c=H(),u=he(),l=vn(u.consts,i);return Ia(c,u,e,t,n,r,o,l,256,s,a),kd}function kd(e,t,n,r,o,i,s,a){wn("NgControlFlow");let c=H(),u=he(),l=vn(u.consts,i);return Ia(c,u,e,t,n,r,o,l,512,s,a),kd}function ge(e,t){wn("NgControlFlow");let n=H(),r=Dn(),o=n[r]!==zt?n[r]:-1,i=o!==-1?Ma(n,De+o):void 0,s=0;if(Cn(n,r,e)){let a=S(null);try{if(i!==void 0&&Tm(i,s),e!==-1){let c=De+e,u=Ma(n,c),l=Jl(n[N],c),d=Nm(u,l,n),p=Cd(n,l,t,{dehydratedView:d});Pa(u,p,s,ui(l,d))}}finally{S(a)}}else if(i!==void 0){let a=Mm(i,s);a!==void 0&&(a[re]=t)}}var Kl=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-oe}};var Yl=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function qt(e,t,n,r,o,i,s,a,c,u,l,d,p){wn("NgControlFlow");let f=H(),m=he(),D=c!==void 0,v=H(),C=a?s.bind(v[ze][re]):s,J=new Yl(D,C);v[De+e]=J,Ia(f,m,e+1,t,n,r,o,vn(m.consts,i),256),D&&Ia(f,m,e+2,c,u,l,d,vn(m.consts,p),512)}var Ql=class extends Wl{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-oe}at(t){return this.getLView(t)[re].$implicit}attach(t,n){let r=n[zr];this.needsIndexUpdate||=t!==this.length,Pa(this.lContainer,n,t,ui(this.templateTNode,r)),u_(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,l_(this.lContainer,t),d_(this.lContainer,t)}create(t,n){let r=Hl(this.lContainer,this.templateTNode.tView.ssrId);return Cd(this.hostLView,this.templateTNode,new Kl(this.lContainer,n,t),{dehydratedView:r})}destroy(t){ka(t[N],t)}updateValue(t,n){this.getLView(t)[re].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[re].$index=t}getLView(t){return f_(this.lContainer,t)}};function Wt(e){let t=S(null),n=ni();try{let r=H(),o=r[N],i=r[n],s=n+1,a=Ma(r,s);if(i.liveCollection===void 0){let u=Jl(o,s);i.liveCollection=new Ql(a,r,u)}else i.liveCollection.reset();let c=i.liveCollection;if(c_(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=Dn(),l=c.length===0;if(Cn(r,u,l)){let d=n+2,p=Ma(r,d);if(l){let f=Jl(o,d),m=Nm(p,f,r),D=Cd(r,f,void 0,{dehydratedView:m});Pa(p,D,0,ui(f,m))}else o.firstUpdatePass&&qb(p),Tm(p,0)}}}finally{S(t)}}function Ma(e,t){return e[t]}function u_(e,t){if(e.length<=oe)return;let n=oe+t,r=e[n],o=r?r[tr]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Bt];YC(i,o),ar.delete(r[Ut]),o.detachedLeaveAnimationFns=void 0}}function l_(e,t){if(e.length<=oe)return;let n=oe+t,r=e[n],o=r?r[tr]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function d_(e,t){return di(e,t)}function f_(e,t){return Mm(e,t)}function Jl(e,t){return ei(e,t)}function qa(e,t,n){let r=H(),o=Dn();if(Cn(r,o,t)){let i=he(),s=ri();mm(s,r,e,t,r[K],n)}return qa}function vg(e,t,n,r,o){Dd(t,e,n,o?"class":"style",r)}function I(e,t,n,r){let o=H(),i=o[N],s=e+De,a=i.firstCreatePass?km(s,o,2,t,Eb,Dp(),n,r):i.data[s];if(_b(a,o,e,t,h_),Qs(a)){let c=o[N];pm(c,o,a),Wg(c,a,o)}return r!=null&&gm(o,a),I}function w(){let e=he(),t=Ve(),n=Ib(t);return e.firstCreatePass&&Fm(e,n),Cp(n)&&bp(),vp(),n.classesWithoutHost!=null&&rC(n)&&vg(e,n,H(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&oC(n)&&vg(e,n,H(),n.stylesWithoutHost,!1),w}function Ee(e,t,n,r){return I(e,t,n,r),w(),Ee}var h_=(e,t,n,r,o)=>(oa(!0),Yg(t[K],r,Fp()));function gr(){return H()}var ii=void 0;function p_(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var g_=["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"]],ii,[["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"]],ii,[["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}",ii,ii,ii],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",p_],xl={};function We(e){let t=m_(e),n=Dg(t);if(n)return n;let r=t.split("-")[0];if(n=Dg(r),n)return n;if(r==="en")return g_;throw new y(701,!1)}function Dg(e){return e in xl||(xl[e]=Vt.ng&&Vt.ng.common&&Vt.ng.common.locales&&Vt.ng.common.locales[e]),xl[e]}var ie=(function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e})(ie||{});function m_(e){return e.toLowerCase().replace(/_/g,"-")}var Di="en-US";var y_=Di;function Km(e){typeof e=="string"&&(y_=e.toLowerCase().replace(/_/g,"-"))}function se(e,t,n){let r=H(),o=he(),i=Ve();return v_(o,r,r[K],i,e,t,n),se}function v_(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=ir(r,t,i),Gl(r,e,t,s,n,o,i,c)&&(a=!1)),a){let u=r.outputs?.[o],l=r.hostDirectiveOutputs?.[o];if(l&&l.length)for(let d=0;d<l.length;d+=2){let p=l[d],f=l[d+1];c??=ir(r,t,i),Ea(r,t,p,f,o,c)}if(u&&u.length)for(let d of u)c??=ir(r,t,i),Ea(r,t,d,o,o,c)}}function ee(e=1){return kp(e)}function P(e,t=""){let n=H(),r=he(),o=e+De,i=r.firstCreatePass?wd(r,o,1,t,null):r.data[o],s=D_(r,n,i,t,e);n[o]=s,ra()&&yd(r,n,s,i),Kr(i,!1)}var D_=(e,t,n,r,o)=>(oa(!0),TC(t[K],r));function E_(e,t,n,r=""){return Cn(e,Dn(),n)?t+Zo(n)+r:zt}function Ue(e){return Fd("",e),Ue}function Fd(e,t,n){let r=H(),o=E_(r,e,t,n);return o!==zt&&C_(r,ni(),o),Fd}function C_(e,t,n){let r=lp(t,e);AC(e[K],r,n)}function Eg(e,t,n){let r=he();r.firstCreatePass&&Ym(t,r.data,r.blueprint,yn(e),n)}function Ym(e,t,n,r,o){if(e=Se(e),Array.isArray(e))for(let i=0;i<e.length;i++)Ym(e[i],t,n,r,o);else{let i=he(),s=H(),a=Ve(),c=Wn(e)?e:Se(e.provide),u=il(e),l=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(Wn(e)||!e.multi){let f=new sr(u,o,Fe,null),m=kl(c,t,o?l:l+p,d);m===-1?(Pl(ma(a,s),i,c),Ol(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[m]=f,s[m]=f)}else{let f=kl(c,t,l+p,d),m=kl(c,t,l,l+p),D=f>=0&&n[f],v=m>=0&&n[m];if(o&&!v||!o&&!D){Pl(ma(a,s),i,c);let C=__(o?w_:b_,n.length,o,r,u,e);!o&&v&&(n[m].providerFactory=C),Ol(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(C),s.push(C)}else{let C=Qm(n[o?m:f],u,!o&&r);Ol(i,e,f>-1?f:m,C)}!o&&r&&v&&n[m].componentProviders++}}}function Ol(e,t,n,r){let o=Wn(t),i=ip(t);if(o||i){let c=(i?Se(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function Qm(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function kl(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function b_(e,t,n,r,o){return Xl(this.multi,[])}function w_(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=ya(r,r[N],this.providerFactory.index,o);s=c.slice(0,a),Xl(i,s);for(let u=a;u<c.length;u++)s.push(c[u])}else s=[],Xl(i,s);return s}function Xl(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function __(e,t,n,r,o,i){let s=new sr(e,n,Fe,null);return s.multi=[],s.index=t,s.componentProviders=0,Qm(s,o,r&&!n),s}function mr(e,t){return n=>{n.providersResolver=(r,o)=>Eg(r,o?o(e):e,!1),t&&(n.viewProvidersResolver=(r,o)=>Eg(r,o?o(t):t,!0))}}function I_(e,t){let n=e[t];return n===zt?void 0:n}function S_(e,t,n,r,o,i,s){let a=t+n;return cw(e,a,o,i)?aw(e,a+2,s?r.call(s,o,i):r(o,i)):I_(e,a+2)}function Pd(e,t){let n=he(),r,o=e+De;n.firstCreatePass?(r=M_(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=un(r.type,!0)),s,a=Oe(Fe);try{let c=ga(!1),u=i();return ga(c),ll(n,H(),o,u),u}finally{Oe(a)}}function M_(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Ld(e,t,n,r){let o=e+De,i=H(),s=dp(i,o);return T_(i,o)?S_(i,Ip(),t,s.transform,n,r,s):s.transform(n,r)}function T_(e,t){return e[N].data[t].pure}var Ta=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},jd=(()=>{class e{compileModuleSync(n){return new _a(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Yu(n),i=rm(o.declarations).reduce((s,a)=>{let c=gn(a);return c&&s.push(new Xr(c)),s},[]);return new Ta(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Jm=(()=>{class e{applicationErrorHandler=h(nt);appRef=h(pr);taskService=h($t);ngZone=h(je);zonelessEnabled=h(oi);tracing=h(fr,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new fe;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(zo):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(h(Sl,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?Vp:wl;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(zo+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.applicationErrorHandler(r)}finally{this.taskService.remove(n),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Xm(){return[{provide:fn,useExisting:Jm},{provide:je,useClass:Go},{provide:oi,useValue:!0}]}function A_(){return typeof $localize<"u"&&$localize.locale||Di}var Ei=new E("",{factory:()=>h(Ei,{optional:!0,skipSelf:!0})||A_()});function T(e,t){return cs(e,t?.equal)}var N_=e=>e;function yr(e,t){if(typeof e=="function"){let n=Au(e,N_,t?.equal);return ey(n,t?.debugName)}else{let n=Au(e.source,e.computation,e.equal);return ey(n,e.debugName)}}function ey(e,t){let n=e[X],r=e;return r.set=o=>Gh(n,o),r.update=o=>qh(n,o),r.asReadonly=ia.bind(e),r}var ny=Symbol("InputSignalNode#UNSET"),Q_=_(g({},ls),{transformFn:void 0,applyValueToInputSignal(e,t){Vn(e,t)}});function ry(e,t){let n=Object.create(Q_);n.value=e,n.transformFn=t?.transform;function r(){if(Ln(n),n.value===ny){let o=null;throw new y(-950,o)}return n.value}return r[X]=n,r}var Za=class{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>pi(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}};function ty(e,t){return ry(e,t)}function J_(e){return ry(ny,e)}var Ka=(ty.required=J_,ty);var Vd=new E(""),X_=new E("");function Ci(e){return!e.moduleRef}function eI(e){let t=Ci(e)?e.r3Injector:e.moduleRef.injector,n=t.get(je);return n.run(()=>{Ci(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(nt),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Ci(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Vd);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Vd);s.add(i),e.moduleRef.onDestroy(()=>{ai(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return nI(r,n,()=>{let i=t.get($t),s=i.add(),a=t.get(Td);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(Ei,Di);if(Km(c||Di),!t.get(X_,!0))return Ci(e)?t.get(pr):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Ci(e)){let l=t.get(pr);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return tI?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var tI;function nI(e,t,n){try{let r=n();return Gt(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var Wa=null;function rI(e=[],t){return ue.create({name:t,providers:[{provide:Yo,useValue:"platform"},{provide:Vd,useValue:new Set([()=>Wa=null])},...e]})}function oI(e=[]){if(Wa)return Wa;let t=rI(e);return Wa=t,Hm(),iI(t),t}function iI(e){let t=e.get(Na,null);ne(e,()=>{t?.forEach(n=>n())})}var sI=1e4;var MU=sI-1e3;var wi=(()=>{class e{static __NG_ELEMENT_ID__=aI}return e})();function aI(e){return cI(Ve(),H(),(e&16)===16)}function cI(e,t,n){if(Ht(e)&&!n){let r=tt(e.index,t);return new cr(r,r)}else if(e.type&175){let r=t[ze];return new cr(r,t)}return null}function oy(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;W(G.BootstrapApplicationStart);try{let i=o?.injector??oI(r),s=[Xm(),Up,...n||[]],a=new fi({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return eI({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{W(G.BootstrapApplicationEnd)}}function _i(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var iy=null;function Zt(){return iy}function Ud(e){iy??=e}var Ii=class{},ro=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=b({token:e,factory:()=>h(sy),providedIn:"platform"})}return e})();var sy=(()=>{class e extends ro{_location;_history;_doc=h(le);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Zt().getBaseHref(this._doc)}onPopState(n){let r=Zt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Zt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=b({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function uy(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function ay(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function In(e){return e&&e[0]!=="?"?`?${e}`:e}var oo=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=b({token:e,factory:()=>h(lI),providedIn:"root"})}return e})(),uI=new E(""),lI=(()=>{class e extends oo{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??h(le).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return uy(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+In(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+In(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+In(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(M(ro),M(uI,8))};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),io=(()=>{class e{_subject=new te;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=hI(ay(cy(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+In(r))}normalize(n){return e.stripTrailingSlash(fI(this._basePath,cy(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+In(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+In(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=In;static joinWithSlash=uy;static stripTrailingSlash=ay;static \u0275fac=function(r){return new(r||e)(M(oo))};static \u0275prov=b({token:e,factory:()=>dI(),providedIn:"root"})}return e})();function dI(){return new io(M(oo))}function fI(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function cy(e){return e.replace(/\/index.html$/,"")}function hI(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var Ae=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(Ae||{}),Z=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(Z||{}),He=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(He||{}),Yt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function dy(e){return We(e)[ie.LocaleId]}function fy(e,t,n){let r=We(e),o=[r[ie.DayPeriodsFormat],r[ie.DayPeriodsStandalone]],i=ot(o,t);return ot(i,n)}function hy(e,t,n){let r=We(e),o=[r[ie.DaysFormat],r[ie.DaysStandalone]],i=ot(o,t);return ot(i,n)}function py(e,t,n){let r=We(e),o=[r[ie.MonthsFormat],r[ie.MonthsStandalone]],i=ot(o,t);return ot(i,n)}function gy(e,t){let r=We(e)[ie.Eras];return ot(r,t)}function Si(e,t){let n=We(e);return ot(n[ie.DateFormat],t)}function Mi(e,t){let n=We(e);return ot(n[ie.TimeFormat],t)}function Ti(e,t){let r=We(e)[ie.DateTimeFormat];return ot(r,t)}function Ai(e,t){let n=We(e),r=n[ie.NumberSymbols][t];if(typeof r>"u"){if(t===Yt.CurrencyDecimal)return n[ie.NumberSymbols][Yt.Decimal];if(t===Yt.CurrencyGroup)return n[ie.NumberSymbols][Yt.Group]}return r}function my(e){if(!e[ie.ExtraData])throw new y(2303,!1)}function yy(e){let t=We(e);return my(t),(t[ie.ExtraData][2]||[]).map(r=>typeof r=="string"?Hd(r):[Hd(r[0]),Hd(r[1])])}function vy(e,t,n){let r=We(e);my(r);let o=[r[ie.ExtraData][0],r[ie.ExtraData][1]],i=ot(o,t)||[];return ot(i,n)||[]}function ot(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new y(2304,!1)}function Hd(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var pI=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ya={},gI=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function Dy(e,t,n,r){let o=_I(e);t=Kt(n,t)||t;let s=[],a;for(;t;)if(a=gI.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=Cy(r,c),o=wI(o,r));let u="";return s.forEach(l=>{let d=CI(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function tc(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Kt(e,t){let n=dy(e);if(Ya[n]??={},Ya[n][t])return Ya[n][t];let r="";switch(t){case"shortDate":r=Si(e,He.Short);break;case"mediumDate":r=Si(e,He.Medium);break;case"longDate":r=Si(e,He.Long);break;case"fullDate":r=Si(e,He.Full);break;case"shortTime":r=Mi(e,He.Short);break;case"mediumTime":r=Mi(e,He.Medium);break;case"longTime":r=Mi(e,He.Long);break;case"fullTime":r=Mi(e,He.Full);break;case"short":let o=Kt(e,"shortTime"),i=Kt(e,"shortDate");r=Qa(Ti(e,He.Short),[o,i]);break;case"medium":let s=Kt(e,"mediumTime"),a=Kt(e,"mediumDate");r=Qa(Ti(e,He.Medium),[s,a]);break;case"long":let c=Kt(e,"longTime"),u=Kt(e,"longDate");r=Qa(Ti(e,He.Long),[c,u]);break;case"full":let l=Kt(e,"fullTime"),d=Kt(e,"fullDate");r=Qa(Ti(e,He.Full),[l,d]);break}return r&&(Ya[n][t]=r),r}function Qa(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function vt(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function mI(e,t){return vt(e,3).substring(0,t)}function de(e,t,n=0,r=!1,o=!1){return function(i,s){let a=yI(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return mI(a,t);let c=Ai(s,Yt.MinusSign);return vt(a,t,c,r,o)}}function yI(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new y(2301,!1)}}function Y(e,t,n=Ae.Format,r=!1){return function(o,i){return vI(o,i,e,t,n,r)}}function vI(e,t,n,r,o,i){switch(n){case 2:return py(t,o,r)[e.getMonth()];case 1:return hy(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=yy(t),l=vy(t,o,r),d=u.findIndex(p=>{if(Array.isArray(p)){let[f,m]=p,D=s>=f.hours&&a>=f.minutes,v=s<m.hours||s===m.hours&&a<m.minutes;if(f.hours<m.hours){if(D&&v)return!0}else if(D||v)return!0}else if(p.hours===s&&p.minutes===a)return!0;return!1});if(d!==-1)return l[d]}return fy(t,o,r)[s<12?0:1];case 3:return gy(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new y(2302,!1)}}function Ja(e){return function(t,n,r){let o=-1*r,i=Ai(n,Yt.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+vt(s,2,i)+vt(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+vt(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+vt(s,2,i)+":"+vt(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+vt(s,2,i)+":"+vt(Math.abs(o%60),2,i);default:throw new y(2310,!1)}}}var DI=0,ec=4;function EI(e){let t=tc(e,DI,1).getDay();return tc(e,0,1+(t<=ec?ec:ec+7)-t)}function Ey(e){let t=e.getDay(),n=t===0?-3:ec-t;return tc(e.getFullYear(),e.getMonth(),e.getDate()+n)}function $d(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=Ey(n),s=EI(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return vt(o,e,Ai(r,Yt.MinusSign))}}function Xa(e,t=!1){return function(n,r){let i=Ey(n).getFullYear();return vt(i,e,Ai(r,Yt.MinusSign),t)}}var zd={};function CI(e){if(zd[e])return zd[e];let t;switch(e){case"G":case"GG":case"GGG":t=Y(3,Z.Abbreviated);break;case"GGGG":t=Y(3,Z.Wide);break;case"GGGGG":t=Y(3,Z.Narrow);break;case"y":t=de(0,1,0,!1,!0);break;case"yy":t=de(0,2,0,!0,!0);break;case"yyy":t=de(0,3,0,!1,!0);break;case"yyyy":t=de(0,4,0,!1,!0);break;case"Y":t=Xa(1);break;case"YY":t=Xa(2,!0);break;case"YYY":t=Xa(3);break;case"YYYY":t=Xa(4);break;case"M":case"L":t=de(1,1,1);break;case"MM":case"LL":t=de(1,2,1);break;case"MMM":t=Y(2,Z.Abbreviated);break;case"MMMM":t=Y(2,Z.Wide);break;case"MMMMM":t=Y(2,Z.Narrow);break;case"LLL":t=Y(2,Z.Abbreviated,Ae.Standalone);break;case"LLLL":t=Y(2,Z.Wide,Ae.Standalone);break;case"LLLLL":t=Y(2,Z.Narrow,Ae.Standalone);break;case"w":t=$d(1);break;case"ww":t=$d(2);break;case"W":t=$d(1,!0);break;case"d":t=de(2,1);break;case"dd":t=de(2,2);break;case"c":case"cc":t=de(7,1);break;case"ccc":t=Y(1,Z.Abbreviated,Ae.Standalone);break;case"cccc":t=Y(1,Z.Wide,Ae.Standalone);break;case"ccccc":t=Y(1,Z.Narrow,Ae.Standalone);break;case"cccccc":t=Y(1,Z.Short,Ae.Standalone);break;case"E":case"EE":case"EEE":t=Y(1,Z.Abbreviated);break;case"EEEE":t=Y(1,Z.Wide);break;case"EEEEE":t=Y(1,Z.Narrow);break;case"EEEEEE":t=Y(1,Z.Short);break;case"a":case"aa":case"aaa":t=Y(0,Z.Abbreviated);break;case"aaaa":t=Y(0,Z.Wide);break;case"aaaaa":t=Y(0,Z.Narrow);break;case"b":case"bb":case"bbb":t=Y(0,Z.Abbreviated,Ae.Standalone,!0);break;case"bbbb":t=Y(0,Z.Wide,Ae.Standalone,!0);break;case"bbbbb":t=Y(0,Z.Narrow,Ae.Standalone,!0);break;case"B":case"BB":case"BBB":t=Y(0,Z.Abbreviated,Ae.Format,!0);break;case"BBBB":t=Y(0,Z.Wide,Ae.Format,!0);break;case"BBBBB":t=Y(0,Z.Narrow,Ae.Format,!0);break;case"h":t=de(3,1,-12);break;case"hh":t=de(3,2,-12);break;case"H":t=de(3,1);break;case"HH":t=de(3,2);break;case"m":t=de(4,1);break;case"mm":t=de(4,2);break;case"s":t=de(5,1);break;case"ss":t=de(5,2);break;case"S":t=de(6,1);break;case"SS":t=de(6,2);break;case"SSS":t=de(6,3);break;case"Z":case"ZZ":case"ZZZ":t=Ja(0);break;case"ZZZZZ":t=Ja(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Ja(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=Ja(2);break;default:return null}return zd[e]=t,t}function Cy(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function bI(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function wI(e,t,n){let o=e.getTimezoneOffset(),i=Cy(t,o);return bI(e,-1*(i-o))}function _I(e){if(ly(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return tc(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(pI))return II(r)}let t=new Date(e);if(!ly(t))throw new y(2311,!1);return t}function II(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,u),t}function ly(e){return e instanceof Date&&!isNaN(e.valueOf())}function SI(e,t){return new y(2100,!1)}var MI="mediumDate",by=new E(""),wy=new E(""),Gd=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??MI,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Dy(n,s,i||this.locale,a)}catch(s){throw SI(e,s.message)}}static \u0275fac=function(r){return new(r||e)(Fe(Ei,16),Fe(by,24),Fe(wy,24))};static \u0275pipe=_d({name:"date",type:e,pure:!0})}return e})();var it=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=hr({type:e});static \u0275inj=pn({})}return e})();function Ni(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var vr=class{};var _y="browser";var Ri=class{_doc;constructor(t){this._doc=t}manager},nc=(()=>{class e extends Ri{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(M(le))};static \u0275prov=b({token:e,factory:e.\u0275fac})}return e})(),ic=new E(""),Kd=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});let o=n.filter(s=>!(s instanceof nc));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof nc);i&&this._plugins.push(i)}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new y(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(M(ic),M(je))};static \u0275prov=b({token:e,factory:e.\u0275fac})}return e})(),qd="ng-app-id";function Sy(e){for(let t of e)t.remove()}function My(e,t){let n=t.createElement("style");return n.textContent=e,n}function AI(e,t,n,r){let o=e.head?.querySelectorAll(`style[${qd}="${t}"],link[${qd}="${t}"]`);if(o)for(let i of o)i.removeAttribute(qd),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function Zd(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Yd=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,AI(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,My);r?.forEach(o=>this.addUsage(o,this.external,Zd))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(Sy(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Sy(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,My(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Zd(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(M(le),M(no),M(Ra,8),M(gi))};static \u0275prov=b({token:e,factory:e.\u0275fac})}return e})(),Wd={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Qd=/%COMP%/g;var Ay="%COMP%",NI=`_nghost-${Ay}`,RI=`_ngcontent-${Ay}`,xI=!0,OI=new E("",{factory:()=>xI});function kI(e){return RI.replace(Qd,e)}function FI(e){return NI.replace(Qd,e)}function Ny(e,t){return t.map(n=>n.replace(Qd,e))}var Jd=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(n,r,o,i,s,a,c=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=u,this.defaultRenderer=new xi(n,s,a,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof oc?o.applyToHost(n):o instanceof Oi&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.tracingService;switch(r.encapsulation){case yt.Emulated:i=new oc(c,u,r,this.appId,l,s,a,d);break;case yt.ShadowDom:return new rc(c,n,r,s,a,this.nonce,d,u);case yt.ExperimentalIsolatedShadowDom:return new rc(c,n,r,s,a,this.nonce,d);default:i=new Oi(c,u,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(M(Kd),M(Yd),M(no),M(OI),M(le),M(je),M(Ra),M(fr,8))};static \u0275prov=b({token:e,factory:e.\u0275fac})}return e})(),xi=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Wd[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Ty(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Ty(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new y(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Wd[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Wd[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(bn.DashCase|bn.Important)?t.style.setProperty(n,r,o&bn.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&bn.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=Zt().getGlobalEventTarget(this.doc,t),!t))throw new y(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function Ty(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var rc=class extends xi{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,o,i,a),this.hostEl=n,this.sharedStylesHost=c,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=Ny(r.id,u);for(let d of u){let p=document.createElement("style");s&&p.setAttribute("nonce",s),p.textContent=d,this.shadowRoot.appendChild(p)}let l=r.getExternalStyles?.();if(l)for(let d of l){let p=Zd(d,o);s&&p.setAttribute("nonce",s),this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},Oi=class extends xi{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=c?Ny(c,u):u,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&ar.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},oc=class extends Oi{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=kI(u),this.hostAttr=FI(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var sc=class e extends Ii{supportsDOMEvents=!0;static makeCurrent(){Ud(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=PI();return n==null?null:LI(n)}resetBaseElement(){ki=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Ni(document.cookie,t)}},ki=null;function PI(){return ki=ki||document.head.querySelector("base"),ki?ki.getAttribute("href"):null}function LI(e){return new URL(e,document.baseURI).pathname}var jI=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=b({token:e,factory:e.\u0275fac})}return e})(),Ry=["alt","control","meta","shift"],VI={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},BI={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},xy=(()=>{class e extends Ri{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Zt().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Ry.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=VI[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Ry.forEach(s=>{if(s!==o){let a=BI[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(M(le))};static \u0275prov=b({token:e,factory:e.\u0275fac})}return e})();async function Xd(e,t,n){let r=g({rootComponent:e},UI(t,n));return oy(r)}function UI(e,t){return{platformRef:t?.platformRef,appProviders:[...qI,...e?.providers??[]],platformProviders:GI}}function HI(){sc.makeCurrent()}function $I(){return new _t}function zI(){return id(document),document}var GI=[{provide:gi,useValue:_y},{provide:Na,useValue:HI,multi:!0},{provide:le,useFactory:zI}];var qI=[{provide:Yo,useValue:"root"},{provide:_t,useFactory:$I},{provide:ic,useClass:nc,multi:!0},{provide:ic,useClass:xy,multi:!0},Jd,Yd,Kd,{provide:ur,useExisting:Jd},{provide:vr,useClass:jI},[]];var Sn=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
5
+ `).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var cc=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}},uc=class{encodeKey(t){return Oy(t)}encodeValue(t){return Oy(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function WI(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var ZI=/%(\d[a-f0-9])/gi,KI={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Oy(e){return encodeURIComponent(e).replace(ZI,(t,n)=>KI[n]??t)}function ac(e){return`${e}`}var Dt=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new uc,t.fromString){if(t.fromObject)throw new y(2805,!1);this.map=WI(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(ac):[ac(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(ac(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(ac(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};function YI(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ky(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Fy(e){return typeof Blob<"u"&&e instanceof Blob}function Py(e){return typeof FormData<"u"&&e instanceof FormData}function QI(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Ly="Content-Type",jy="Accept",By="text/plain",Uy="application/json",JI=`${Uy}, ${By}, */*`,so=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(YI(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new y(2822,"");this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache}if(this.headers??=new Sn,this.context??=new cc,!this.params)this.params=new Dt,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||ky(this.body)||Fy(this.body)||Py(this.body)||QI(this.body)?this.body:this.body instanceof Dt?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Py(this.body)?null:Fy(this.body)?this.body.type||null:ky(this.body)?null:typeof this.body=="string"?By:this.body instanceof Dt?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Uy:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,u=t.redirect||this.redirect,l=t.credentials||this.credentials,d=t.referrer||this.referrer,p=t.integrity||this.integrity,f=t.referrerPolicy||this.referrerPolicy,m=t.transferCache??this.transferCache,D=t.timeout??this.timeout,v=t.body!==void 0?t.body:this.body,C=t.withCredentials??this.withCredentials,J=t.reportProgress??this.reportProgress,Qe=t.headers||this.headers,me=t.params||this.params,No=t.context??this.context;return t.setHeaders!==void 0&&(Qe=Object.keys(t.setHeaders).reduce((Ro,Fn)=>Ro.set(Fn,t.setHeaders[Fn]),Qe)),t.setParams&&(me=Object.keys(t.setParams).reduce((Ro,Fn)=>Ro.set(Fn,t.setParams[Fn]),me)),new e(n,r,v,{params:me,headers:Qe,context:No,reportProgress:J,responseType:o,withCredentials:C,transferCache:m,keepalive:i,cache:a,priority:s,timeout:D,mode:c,redirect:u,credentials:l,referrer:d,integrity:p,referrerPolicy:f})}},Dr=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(Dr||{}),co=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new Sn,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300}},lc=class e extends co{constructor(t={}){super(t)}type=Dr.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Fi=class e extends co{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Dr.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},ao=class extends co{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},XI=200,eS=204;var tS=new E("");var nS=/^\)\]\}',?\n/;var tf=(()=>{class e{xhrFactory;tracingService=h(fr,{optional:!0});constructor(n){this.xhrFactory=n}maybePropagateTrace(n){return this.tracingService?.propagate?this.tracingService.propagate(n):n}handle(n){if(n.method==="JSONP")throw new y(-2800,!1);let r=this.xhrFactory;return k(null).pipe(ut(()=>new j(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((v,C)=>s.setRequestHeader(v,C.join(","))),n.headers.has(jy)||s.setRequestHeader(jy,JI),!n.headers.has(Ly)){let v=n.detectContentTypeHeader();v!==null&&s.setRequestHeader(Ly,v)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let v=n.responseType.toLowerCase();s.responseType=v!=="json"?v:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let v=s.statusText||"OK",C=new Sn(s.getAllResponseHeaders()),J=s.responseURL||n.url;return c=new lc({headers:C,status:s.status,statusText:v,url:J}),c},l=this.maybePropagateTrace(()=>{let{headers:v,status:C,statusText:J,url:Qe}=u(),me=null;C!==eS&&(me=typeof s.response>"u"?s.responseText:s.response),C===0&&(C=me?XI:0);let No=C>=200&&C<300;if(n.responseType==="json"&&typeof me=="string"){let Ro=me;me=me.replace(nS,"");try{me=me!==""?JSON.parse(me):null}catch(Fn){me=Ro,No&&(No=!1,me={error:Fn,text:me})}}No?(i.next(new Fi({body:me,headers:v,status:C,statusText:J,url:Qe||void 0})),i.complete()):i.error(new ao({error:me,headers:v,status:C,statusText:J,url:Qe||void 0}))}),d=this.maybePropagateTrace(v=>{let{url:C}=u(),J=new ao({error:v,status:s.status||0,statusText:s.statusText||"Unknown Error",url:C||void 0});i.error(J)}),p=d;n.timeout&&(p=this.maybePropagateTrace(v=>{let{url:C}=u(),J=new ao({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:C||void 0});i.error(J)}));let f=!1,m=this.maybePropagateTrace(v=>{f||(i.next(u()),f=!0);let C={type:Dr.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(C.total=v.total),n.responseType==="text"&&s.responseText&&(C.partialText=s.responseText),i.next(C)}),D=this.maybePropagateTrace(v=>{let C={type:Dr.UploadProgress,loaded:v.loaded};v.lengthComputable&&(C.total=v.total),i.next(C)});return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",p),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",m),a!==null&&s.upload&&s.upload.addEventListener("progress",D)),s.send(a),i.next({type:Dr.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",p),n.reportProgress&&(s.removeEventListener("progress",m),a!==null&&s.upload&&s.upload.removeEventListener("progress",D)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(M(vr))};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Hy(e,t){return t(e)}function rS(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}function oS(e,t,n){return(r,o)=>ne(n,()=>t(r,i=>e(i,o)))}var $y=new E(""),nf=new E("",{factory:()=>[]}),zy=new E(""),rf=new E("",{factory:()=>!0});function iS(){let e=null;return(t,n)=>{e===null&&(e=(h($y,{optional:!0})??[]).reduceRight(rS,Hy));let r=h(rr);if(h(rf)){let i=r.add();return e(t,n).pipe(Vr(i))}else return e(t,n)}}var of=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=b({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=M(tf),o},providedIn:"root"})}return e})();var dc=(()=>{class e{backend;injector;chain=null;pendingTasks=h(rr);contributeToStability=h(rf);constructor(n,r){this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(nf),...this.injector.get(zy,[])]));this.chain=r.reduceRight((o,i)=>oS(o,i,this.injector),Hy)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Vr(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(M(of),M(Q))};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),sf=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=b({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=M(dc),o},providedIn:"root"})}return e})();function ef(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,credentials:e.credentials,transferCache:e.transferCache,timeout:e.timeout,keepalive:e.keepalive,priority:e.priority,cache:e.cache,mode:e.mode,redirect:e.redirect,integrity:e.integrity,referrer:e.referrer,referrerPolicy:e.referrerPolicy}}var fc=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof so)i=n;else{let c;o.headers instanceof Sn?c=o.headers:c=new Sn(o.headers);let u;o.params&&(o.params instanceof Dt?u=o.params:u=new Dt({fromObject:o.params})),i=new so(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let s=k(i).pipe(jr(c=>this.handler.handle(c)));if(n instanceof so||o.observe==="events")return s;let a=s.pipe(ct(c=>c instanceof Fi));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe($(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new y(2806,!1);return c.body}));case"blob":return a.pipe($(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new y(2807,!1);return c.body}));case"text":return a.pipe($(c=>{if(c.body!==null&&typeof c.body!="string")throw new y(2808,!1);return c.body}));default:return a.pipe($(c=>c.body))}case"response":return a;default:throw new y(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Dt().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,ef(o,r))}post(n,r,o={}){return this.request("POST",n,ef(o,r))}put(n,r,o={}){return this.request("PUT",n,ef(o,r))}static \u0275fac=function(r){return new(r||e)(M(sf))};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var sS=new E("",{factory:()=>!0}),aS="XSRF-TOKEN",cS=new E("",{factory:()=>aS}),uS="X-XSRF-TOKEN",lS=new E("",{factory:()=>uS}),dS=(()=>{class e{cookieName=h(cS);doc=h(le);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ni(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Gy=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=b({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=M(dS),o},providedIn:"root"})}return e})();function fS(e,t){if(!h(sS)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=h(ro).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch{return t(e)}let n=h(Gy).getToken(),r=h(lS);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}var af=(function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e})(af||{});function hS(e,t){return{\u0275kind:e,\u0275providers:t}}function cf(...e){let t=[fc,dc,{provide:sf,useExisting:dc},{provide:of,useFactory:()=>h(tS,{optional:!0})??h(tf)},{provide:nf,useValue:fS,multi:!0}];for(let n of e)t.push(...n.\u0275providers);return $r(t)}var Vy=new E("");function uf(){return hS(af.LegacyInterceptors,[{provide:Vy,useFactory:iS},{provide:nf,useExisting:Vy,multi:!0}])}var qy=(()=>{class e{_doc;constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static \u0275fac=function(r){return new(r||e)(M(le))};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var x="primary",Wi=Symbol("RouteTitle"),pf=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function br(e){return new pf(e)}function lf(e,t,n){for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(o[0]===":")n[o.substring(1)]=i;else if(o!==i.path)return!1}return!0}function nv(e,t,n){let r=n.path.split("/"),o=r.indexOf("**");if(o===-1){if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let c={},u=e.slice(0,r.length);return lf(r,u,c)?{consumed:u,posParams:c}:null}if(o!==r.lastIndexOf("**"))return null;let i=r.slice(0,o),s=r.slice(o+1);if(i.length+s.length>e.length||n.pathMatch==="full"&&t.hasChildren()&&n.path!=="**")return null;let a={};return!lf(i,e.slice(0,i.length),a)||!lf(s,e.slice(e.length-s.length),a)?null:{consumed:e,posParams:a}}function vc(e){return new Promise((t,n)=>{e.pipe(Lt()).subscribe({next:r=>t(r),error:r=>n(r)})})}function gS(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!Tt(e[n],t[n]))return!1;return!0}function Tt(e,t){let n=e?gf(e):void 0,r=t?gf(t):void 0;if(!n||!r||n.length!=r.length)return!1;let o;for(let i=0;i<n.length;i++)if(o=n[i],!rv(e[o],t[o]))return!1;return!0}function gf(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function rv(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let n=[...e].sort(),r=[...t].sort();return n.every((o,i)=>r[i]===o)}else return e===t}function mS(e){return e.length>0?e[e.length-1]:null}function Ir(e){return xs(e)?e:Gt(e)?ce(Promise.resolve(e)):k(e)}function ov(e){return xs(e)?vc(e):Promise.resolve(e)}var yS={exact:sv,subset:av},iv={exact:vS,subset:DS,ignored:()=>!0};function Wy(e,t,n){return yS[n.paths](e.root,t.root,n.matrixParams)&&iv[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function vS(e,t){return Tt(e,t)}function sv(e,t,n){if(!Er(e.segments,t.segments)||!gc(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!sv(e.children[r],t.children[r],n))return!1;return!0}function DS(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>rv(e[n],t[n]))}function av(e,t,n){return cv(e,t,t.segments,n)}function cv(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!Er(o,n)||t.hasChildren()||!gc(o,n,r))}else if(e.segments.length===n.length){if(!Er(e.segments,n)||!gc(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!av(e.children[o],t.children[o],r))return!1;return!0}else{let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!Er(e.segments,o)||!gc(e.segments,o,r)||!e.children[x]?!1:cv(e.children[x],t,i,r)}}function gc(e,t,n){return t.every((r,o)=>iv[n](e[o].parameters,r.parameters))}var Ct=class{root;queryParams;fragment;_queryParamMap;constructor(t=new q([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=br(this.queryParams),this._queryParamMap}toString(){return bS.serialize(this)}},q=class{segments;children;parent=null;constructor(t,n){this.segments=t,this.children=n,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return mc(this)}},Mn=class{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=br(this.parameters),this._parameterMap}toString(){return lv(this)}};function ES(e,t){return Er(e,t)&&e.every((n,r)=>Tt(n.parameters,t[r].parameters))}function Er(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function CS(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===x&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==x&&(n=n.concat(t(o,r)))}),n}var Zi=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=b({token:e,factory:()=>new Tn,providedIn:"root"})}return e})(),Tn=class{parse(t){let n=new yf(t);return new Ct(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Pi(t.root,!0)}`,r=IS(t.queryParams),o=typeof t.fragment=="string"?`#${wS(t.fragment)}`:"";return`${n}${r}${o}`}},bS=new Tn;function mc(e){return e.segments.map(t=>lv(t)).join("/")}function Pi(e,t){if(!e.hasChildren())return mc(e);if(t){let n=e.children[x]?Pi(e.children[x],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==x&&r.push(`${o}:${Pi(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=CS(e,(r,o)=>o===x?[Pi(e.children[x],!1)]:[`${o}:${Pi(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[x]!=null?`${mc(e)}/${n[0]}`:`${mc(e)}/(${n.join("//")})`}}function uv(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function hc(e){return uv(e).replace(/%3B/gi,";")}function wS(e){return encodeURI(e)}function mf(e){return uv(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yc(e){return decodeURIComponent(e)}function Zy(e){return yc(e.replace(/\+/g,"%20"))}function lv(e){return`${mf(e.path)}${_S(e.parameters)}`}function _S(e){return Object.entries(e).map(([t,n])=>`;${mf(t)}=${mf(n)}`).join("")}function IS(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${hc(n)}=${hc(o)}`).join("&"):`${hc(n)}=${hc(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var SS=/^[^\/()?;#]+/;function df(e){let t=e.match(SS);return t?t[0]:""}var MS=/^[^\/()?;=#]+/;function TS(e){let t=e.match(MS);return t?t[0]:""}var AS=/^[^=?&#]+/;function NS(e){let t=e.match(AS);return t?t[0]:""}var RS=/^[^&#]+/;function xS(e){let t=e.match(RS);return t?t[0]:""}var yf=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new q([],{}):new q([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[x]=new q(t,n)),r}parseSegment(){let t=df(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new y(4009,!1);return this.capture(t),new Mn(yc(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=TS(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=df(this.remaining);o&&(r=o,this.capture(r))}t[yc(n)]=yc(r)}parseQueryParam(t){let n=NS(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=xS(this.remaining);s&&(r=s,this.capture(r))}let o=Zy(n),i=Zy(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=df(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new y(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=x);let s=this.parseChildren();n[i??x]=Object.keys(s).length===1&&s[x]?s[x]:new q([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new y(4011,!1)}};function dv(e){return e.segments.length>0?new q([],{[x]:e}):e}function fv(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=fv(o);if(r===x&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new q(e.segments,t);return OS(n)}function OS(e){if(e.numberOfChildren===1&&e.children[x]){let t=e.children[x];return new q(e.segments.concat(t.segments),t.children)}return e}function An(e){return e instanceof Ct}function hv(e,t,n=null,r=null,o=new Tn){let i=pv(e);return gv(i,t,n,r,o)}function pv(e){let t;function n(i){let s={};for(let c of i.children){let u=n(c);s[c.outlet]=u}let a=new q(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=dv(r);return t??o}function gv(e,t,n,r,o){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return ff(i,i,i,n,r,o);let s=kS(t);if(s.toRoot())return ff(i,i,new q([],{}),n,r,o);let a=FS(s,i,e),c=a.processChildren?ji(a.segmentGroup,a.index,s.commands):yv(a.segmentGroup,a.index,s.commands);return ff(i,a.segmentGroup,c,n,r,o)}function Dc(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Ui(e){return typeof e=="object"&&e!=null&&e.outlets}function Ky(e,t,n){e||="\u0275";let r=new Ct;return r.queryParams={[e]:t},n.parse(n.serialize(r)).queryParams[e]}function ff(e,t,n,r,o,i){let s={};for(let[u,l]of Object.entries(r??{}))s[u]=Array.isArray(l)?l.map(d=>Ky(u,d,i)):Ky(u,l,i);let a;e===t?a=n:a=mv(e,t,n);let c=dv(fv(a));return new Ct(c,s,o)}function mv(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=mv(i,t,n)}),new q(e.segments,r)}var Ec=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Dc(r[0]))throw new y(4003,!1);let o=r.find(Ui);if(o&&o!==mS(r))throw new y(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function kS(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Ec(!0,0,e);let t=0,n=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new Ec(n,t,r)}var lo=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function FS(e,t,n){if(e.isAbsolute)return new lo(t,!0,0);if(!n)return new lo(t,!1,NaN);if(n.parent===null)return new lo(n,!0,0);let r=Dc(e.commands[0])?0:1,o=n.segments.length-1+r;return PS(n,o,e.numberOfDoubleDots)}function PS(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new y(4005,!1);o=r.segments.length}return new lo(r,!1,o-i)}function LS(e){return Ui(e[0])?e[0].outlets:{[x]:e}}function yv(e,t,n){if(e??=new q([],{}),e.segments.length===0&&e.hasChildren())return ji(e,t,n);let r=jS(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let i=new q(e.segments.slice(0,r.pathIndex),{});return i.children[x]=new q(e.segments.slice(r.pathIndex),e.children),ji(i,0,o)}else return r.match&&o.length===0?new q(e.segments,{}):r.match&&!e.hasChildren()?vf(e,t,n):r.match?ji(e,0,o):vf(e,t,n)}function ji(e,t,n){if(n.length===0)return new q(e.segments,{});{let r=LS(n),o={};if(Object.keys(r).some(i=>i!==x)&&e.children[x]&&e.numberOfChildren===1&&e.children[x].segments.length===0){let i=ji(e.children[x],t,n);return new q(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=yv(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new q(e.segments,o)}}function jS(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=n.length)return i;let s=e.segments[o],a=n[r];if(Ui(a))break;let c=`${a}`,u=r<n.length-1?n[r+1]:null;if(o>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Qy(c,u,s))return i;r+=2}else{if(!Qy(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function vf(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o<n.length;){let i=n[o];if(Ui(i)){let c=VS(i.outlets);return new q(r,c)}if(o===0&&Dc(n[0])){let c=e.segments[t];r.push(new Mn(c.path,Yy(n[0]))),o++;continue}let s=Ui(i)?i.outlets[x]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&Dc(a)?(r.push(new Mn(s,Yy(a))),o+=2):(r.push(new Mn(s,{})),o++)}return new q(r,{})}function VS(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=vf(new q([],{}),0,r))}),t}function Yy(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function Qy(e,t,n){return e==n.path&&Tt(t,n.parameters)}var Vi="imperative",be=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(be||{}),Ke=class{id;url;constructor(t,n){this.id=t,this.url=n}},wr=class extends Ke{type=be.NavigationStart;navigationTrigger;restoredState;constructor(t,n,r="imperative",o=null){super(t,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},At=class extends Ke{urlAfterRedirects;type=be.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Ne=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(Ne||{}),Hi=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(Hi||{}),st=class extends Ke{reason;code;type=be.NavigationCancel;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function vv(e){return e instanceof st&&(e.code===Ne.Redirect||e.code===Ne.SupersededByNewNavigation)}var Jt=class extends Ke{reason;code;type=be.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}},_r=class extends Ke{error;target;type=be.NavigationError;constructor(t,n,r,o){super(t,n),this.error=r,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ho=class extends Ke{urlAfterRedirects;state;type=be.RoutesRecognized;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Cc=class extends Ke{urlAfterRedirects;state;type=be.GuardsCheckStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},bc=class extends Ke{urlAfterRedirects;state;shouldActivate;type=be.GuardsCheckEnd;constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},wc=class extends Ke{urlAfterRedirects;state;type=be.ResolveStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},_c=class extends Ke{urlAfterRedirects;state;type=be.ResolveEnd;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ic=class{route;type=be.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Sc=class{route;type=be.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Mc=class{snapshot;type=be.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Tc=class{snapshot;type=be.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ac=class{snapshot;type=be.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Nc=class{snapshot;type=be.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var po=class{},go=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function BS(e){return!(e instanceof po)&&!(e instanceof go)}var Rc=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new vo(this.rootInjector)}},vo=(()=>{class e{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Rc(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(M(Q))};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),xc=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=Df(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Df(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Ef(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Ef(t,this._root).map(n=>n.value)}};function Df(e,t){if(e===t.value)return t;for(let n of t.children){let r=Df(e,n);if(r)return r}return null}function Ef(e,t){if(e===t.value)return[t];for(let n of t.children){let r=Ef(e,n);if(r.length)return r.unshift(t),r}return[]}var Ze=class{value;children;constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function uo(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var $i=class extends xc{snapshot;constructor(t,n){super(t),this.snapshot=n,Tf(this,t)}toString(){return this.snapshot.toString()}};function Dv(e,t){let n=US(e,t),r=new _e([new Mn("",{})]),o=new _e({}),i=new _e({}),s=new _e({}),a=new _e(""),c=new bt(r,o,s,a,i,x,e,n.root);return c.snapshot=n.root,new $i(new Ze(c,[]),n)}function US(e,t){let n={},r={},o={},s=new Cr([],n,o,"",r,x,e,null,{},t);return new zi("",new Ze(s,[]))}var bt=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe($(u=>u[Wi]))??k(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe($(t=>br(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe($(t=>br(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Oc(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:g(g({},t.params),e.params),data:g(g({},t.data),e.data),resolve:g(g(g(g({},e.data),t.data),o?.data),e._resolvedData)}:r={params:g({},e.params),data:g({},e.data),resolve:g(g({},e.data),e._resolvedData??{})},o&&Cv(o)&&(r.resolve[Wi]=o.title),r}var Cr=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Wi]}constructor(t,n,r,o,i,s,a,c,u,l){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u,this._environmentInjector=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=br(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=br(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},zi=class extends xc{url;constructor(t,n){super(n),this.url=t,Tf(this,n)}toString(){return Ev(this._root)}};function Tf(e,t){t.value._routerState=e,t.children.forEach(n=>Tf(e,n))}function Ev(e){let t=e.children.length>0?` { ${e.children.map(Ev).join(", ")} } `:"";return`${e.value}${t}`}function hf(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Tt(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Tt(t.params,n.params)||e.paramsSubject.next(n.params),gS(t.url,n.url)||e.urlSubject.next(n.url),Tt(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Cf(e,t){let n=Tt(e.params,t.params)&&ES(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||Cf(e.parent,t.parent))}function Cv(e){return typeof e.title=="string"||e.title===null}var bv=new E(""),Ki=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=x;activateEvents=new ye;deactivateEvents=new ye;attachEvents=new ye;detachEvents=new ye;routerOutletData=Ka();parentContexts=h(vo);location=h(yi);changeDetector=h(wi);inputBinder=h(Lc,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new y(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new y(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new y(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new y(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new bf(n,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=_n({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[to]})}return e})(),bf=class{route;childContexts;parent;outletData;constructor(t,n,r,o){this.route=t,this.childContexts=n,this.parent=r,this.outletData=o}get(t,n){return t===bt?this.route:t===vo?this.childContexts:t===bv?this.outletData:this.parent.get(t,n)}},Lc=new E("");var Af=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=qe({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&Ee(0,"router-outlet")},dependencies:[Ki],encapsulation:2})}return e})();function Nf(e){let t=e.children&&e.children.map(Nf),n=t?_(g({},e),{children:t}):g({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==x&&(n.component=Af),n}function HS(e,t,n){let r=Gi(e,t._root,n?n._root:void 0);return new $i(r,t)}function Gi(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=$S(e,t,n);return new Ze(r,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Gi(e,a)),s}}let r=zS(t.value),o=t.children.map(i=>Gi(e,i));return new Ze(r,o)}}function $S(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Gi(e,r,o);return Gi(e,r)})}function zS(e){return new bt(new _e(e.url),new _e(e.params),new _e(e.queryParams),new _e(e.fragment),new _e(e.data),e.outlet,e.component,e)}var mo=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},wv="ngNavigationCancelingError";function kc(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=An(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=_v(!1,Ne.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function _v(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[wv]=!0,n.cancellationCode=t,n}function GS(e){return Iv(e)&&An(e.url)}function Iv(e){return!!e&&e[wv]}var wf=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),hf(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=uo(n);t.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=uo(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=uo(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let o=uo(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Nc(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Tc(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(hf(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),hf(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},Fc=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},fo=class{component;route;constructor(t,n){this.component=t,this.route=n}};function qS(e,t,n){let r=e._root,o=t?t._root:null;return Li(r,o,n,[r.value])}function WS(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Do(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!zu(e)?e:t.get(e):r}function Li(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=uo(t);return e.children.forEach(s=>{ZS(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Bi(a,n.getContext(s),o)),o}function ZS(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=KS(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Fc(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Li(e,t,a?a.children:null,r,o):Li(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new fo(a.outlet.component,s))}else s&&Bi(t,a,o),o.canActivateChecks.push(new Fc(r)),i.component?Li(e,null,a?a.children:null,r,o):Li(e,null,n,r,o);return o}function KS(e,t,n){if(typeof n=="function")return ne(t._environmentInjector,()=>n(e,t));switch(n){case"pathParamsChange":return!Er(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Er(e.url,t.url)||!Tt(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Cf(e,t)||!Tt(e.queryParams,t.queryParams);default:return!Cf(e,t)}}function Bi(e,t,n){let r=uo(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?Bi(s,t.children.getContext(i),n):Bi(s,null,n):Bi(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new fo(t.outlet.component,o)):n.canDeactivateChecks.push(new fo(null,o)):n.canDeactivateChecks.push(new fo(null,o))}function Yi(e){return typeof e=="function"}function YS(e){return typeof e=="boolean"}function QS(e){return e&&Yi(e.canLoad)}function JS(e){return e&&Yi(e.canActivate)}function XS(e){return e&&Yi(e.canActivateChild)}function eM(e){return e&&Yi(e.canDeactivate)}function tM(e){return e&&Yi(e.canMatch)}function Sv(e){return e instanceof kt||e?.name==="EmptyError"}var pc=Symbol("INITIAL_VALUE");function yo(){return ut(e=>wu(e.map(t=>t.pipe(Pt(1),Mu(pc)))).pipe($(t=>{for(let n of t)if(n!==!0){if(n===pc)return pc;if(n===!1||nM(n))return n}return!0}),ct(t=>t!==pc),Pt(1)))}function nM(e){return An(e)||e instanceof mo}function Mv(e){return e.aborted?k(void 0).pipe(Pt(1)):new j(t=>{let n=()=>{t.next(),t.complete()};return e.addEventListener("abort",n),()=>e.removeEventListener("abort",n)})}function Tv(e){return Vo(Mv(e))}function rM(e){return Re(t=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:i}}=t;return i.length===0&&o.length===0?k(_(g({},t),{guardsResult:!0})):oM(i,n,r).pipe(Re(s=>s&&YS(s)?iM(n,o,e):k(s)),$(s=>_(g({},t),{guardsResult:s})))})}function oM(e,t,n){return ce(e).pipe(Re(r=>lM(r.component,r.route,n,t)),Lt(r=>r!==!0,!0))}function iM(e,t,n){return ce(t).pipe(jr(r=>Lr(aM(r.route.parent,n),sM(r.route,n),uM(e,r.path),cM(e,r.route))),Lt(r=>r!==!0,!0))}function sM(e,t){return e!==null&&t&&t(new Ac(e)),k(!0)}function aM(e,t){return e!==null&&t&&t(new Mc(e)),k(!0)}function cM(e,t){let n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||n.length===0)return k(!0);let r=n.map(o=>jo(()=>{let i=t._environmentInjector,s=Do(o,i),a=JS(s)?s.canActivate(t,e):ne(i,()=>s(t,e));return Ir(a).pipe(Lt())}));return k(r).pipe(yo())}function uM(e,t){let n=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(i=>WS(i)).filter(i=>i!==null).map(i=>jo(()=>{let s=i.guards.map(a=>{let c=i.node._environmentInjector,u=Do(a,c),l=XS(u)?u.canActivateChild(n,e):ne(c,()=>u(n,e));return Ir(l).pipe(Lt())});return k(s).pipe(yo())}));return k(o).pipe(yo())}function lM(e,t,n,r){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return k(!0);let i=o.map(s=>{let a=t._environmentInjector,c=Do(s,a),u=eM(c)?c.canDeactivate(e,t,n,r):ne(a,()=>c(e,t,n,r));return Ir(u).pipe(Lt())});return k(i).pipe(yo())}function dM(e,t,n,r,o){let i=t.canLoad;if(i===void 0||i.length===0)return k(!0);let s=i.map(a=>{let c=Do(a,e),u=QS(c)?c.canLoad(t,n):ne(e,()=>c(t,n)),l=Ir(u);return o?l.pipe(Tv(o)):l});return k(s).pipe(yo(),Av(r))}function Av(e){return Du(xe(t=>{if(typeof t!="boolean")throw kc(e,t)}),$(t=>t===!0))}function fM(e,t,n,r,o){let i=t.canMatch;if(!i||i.length===0)return k(!0);let s=i.map(a=>{let c=Do(a,e),u=tM(c)?c.canMatch(t,n):ne(e,()=>c(t,n));return Ir(u).pipe(Tv(o))});return k(s).pipe(yo(),Av(r))}var Qt=class e extends Error{segmentGroup;constructor(t){super(),this.segmentGroup=t||null,Object.setPrototypeOf(this,e.prototype)}},qi=class e extends Error{urlTree;constructor(t){super(),this.urlTree=t,Object.setPrototypeOf(this,e.prototype)}};function hM(e){throw new y(4e3,!1)}function pM(e){throw _v(!1,Ne.GuardRejected)}var _f=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n}async lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return r;if(o.numberOfChildren>1||!o.children[x])throw hM(`${t.redirectTo}`);o=o.children[x]}}async applyRedirectCommands(t,n,r,o,i){let s=await gM(n,o,i);if(s instanceof Ct)throw new qi(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),t,r);if(s[0]==="/")throw new qi(a);return a}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new Ct(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o)}),new q(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new y(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}};function gM(e,t,n){if(typeof e=="string")return Promise.resolve(e);let r=e,{queryParams:o,fragment:i,routeConfig:s,url:a,outlet:c,params:u,data:l,title:d,paramMap:p,queryParamMap:f}=t;return vc(Ir(ne(n,()=>r({params:u,data:l,queryParams:o,fragment:i,routeConfig:s,url:a,outlet:c,title:d,paramMap:p,queryParamMap:f}))))}function mM(e,t){return e.providers&&!e._injector&&(e._injector=vi(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Et(e){return e.outlet||x}function yM(e,t){let n=e.filter(r=>Et(r)===t);return n.push(...e.filter(r=>Et(r)!==t)),n}var If={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function vM(e,t,n,r,o,i){let s=Nv(e,t,n);return s.matched?(r=mM(t,r),fM(r,t,n,o,i).pipe($(a=>a===!0?s:g({},If)))):k(s)}function Nv(e,t,n){if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?g({},If):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||nv)(n,e,t);if(!o)return g({},If);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?g(g({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Jy(e,t,n,r){return n.length>0&&CM(e,n,r)?{segmentGroup:new q(t,EM(r,new q(n,e.children))),slicedSegments:[]}:n.length===0&&bM(e,n,r)?{segmentGroup:new q(e.segments,DM(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new q(e.segments,e.children),slicedSegments:n}}function DM(e,t,n,r){let o={};for(let i of n)if(jc(e,t,i)&&!r[Et(i)]){let s=new q([],{});o[Et(i)]=s}return g(g({},r),o)}function EM(e,t){let n={};n[x]=t;for(let r of e)if(r.path===""&&Et(r)!==x){let o=new q([],{});n[Et(r)]=o}return n}function CM(e,t,n){return n.some(r=>jc(e,t,r)&&Et(r)!==x)}function bM(e,t,n){return n.some(r=>jc(e,t,r))}function jc(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function wM(e,t,n){return t.length===0&&!e.children[n]}var Sf=class{};async function _M(e,t,n,r,o,i,s="emptyOnly",a){return new Mf(e,t,n,r,o,s,i,a).recognize()}var IM=31,Mf=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,n,r,o,i,s,a,c){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new _f(this.urlSerializer,this.urlTree)}noMatchError(t){return new y(4002,`'${t.segmentGroup}'`)}async recognize(){let t=Jy(this.urlTree.root,[],[],this.config).segmentGroup,{children:n,rootSnapshot:r}=await this.match(t),o=new Ze(r,n),i=new zi("",o),s=hv(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}async match(t){let n=new Cr([],Object.freeze({}),Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),x,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,t,x,n),rootSnapshot:n}}catch(r){if(r instanceof qi)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Qt?this.noMatchError(r):r}}async processSegmentGroup(t,n,r,o,i){if(r.segments.length===0&&r.hasChildren())return this.processChildren(t,n,r,i);let s=await this.processSegment(t,n,r,r.segments,o,!0,i);return s instanceof Ze?[s]:[]}async processChildren(t,n,r,o){let i=[];for(let c of Object.keys(r.children))c==="primary"?i.unshift(c):i.push(c);let s=[];for(let c of i){let u=r.children[c],l=yM(n,c),d=await this.processSegmentGroup(t,l,u,c,o);s.push(...d)}let a=Rv(s);return SM(a),a}async processSegment(t,n,r,o,i,s,a){for(let c of n)try{return await this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a)}catch(u){if(u instanceof Qt||Sv(u))continue;throw u}if(wM(r,o,i))return new Sf;throw new Qt(r)}async processSegmentAgainstRoute(t,n,r,o,i,s,a,c){if(Et(r)!==s&&(s===x||!jc(o,i,r)))throw new Qt(o);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(t,o,r,i,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c);throw new Qt(o)}async expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:p}=Nv(n,o,i);if(!c)throw new Qt(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>IM&&(this.allowRedirects=!1));let f=new Cr(i,u,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Xy(o),Et(o),o.component??o._loadedComponent??null,o,ev(o),t),m=Oc(f,a,this.paramsInheritanceStrategy);if(f.params=Object.freeze(m.params),f.data=Object.freeze(m.data),this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let D=await this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,t),v=await this.applyRedirects.lineralizeSegments(o,D);return this.processSegment(t,r,n,v.concat(p),s,!1,a)}async matchSegmentAgainstRoute(t,n,r,o,i,s){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=await vc(vM(n,r,o,t,this.urlSerializer,this.abortSignal));if(r.path==="**"&&(n.children={}),!a?.matched)throw new Qt(n);t=r._injector??t;let{routes:c}=await this.getChildConfig(t,r,o),u=r._loadedInjector??t,{parameters:l,consumedSegments:d,remainingSegments:p}=a,f=new Cr(d,l,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Xy(r),Et(r),r.component??r._loadedComponent??null,r,ev(r),t),m=Oc(f,s,this.paramsInheritanceStrategy);f.params=Object.freeze(m.params),f.data=Object.freeze(m.data);let{segmentGroup:D,slicedSegments:v}=Jy(n,d,p,c);if(v.length===0&&D.hasChildren()){let Qe=await this.processChildren(u,c,D,f);return new Ze(f,Qe)}if(c.length===0&&v.length===0)return new Ze(f,[]);let C=Et(r)===i,J=await this.processSegment(u,c,D,v,C?x:i,!0,f);return new Ze(f,J instanceof Ze?[J]:[])}async getChildConfig(t,n,r){if(n.children)return{routes:n.children,injector:t};if(n.loadChildren){if(n._loadedRoutes!==void 0){let i=n._loadedNgModuleFactory;return i&&!n._loadedInjector&&(n._loadedInjector=i.create(t).injector),{routes:n._loadedRoutes,injector:n._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await vc(dM(t,n,r,this.urlSerializer,this.abortSignal))){let i=await this.configLoader.loadChildren(t,n);return n._loadedRoutes=i.routes,n._loadedInjector=i.injector,n._loadedNgModuleFactory=i.factory,i}throw pM(n)}return{routes:[],injector:t}}};function SM(e){e.sort((t,n)=>t.value.outlet===x?-1:n.value.outlet===x?1:t.value.outlet.localeCompare(n.value.outlet))}function MM(e){let t=e.value.routeConfig;return t&&t.path===""}function Rv(e){let t=[],n=new Set;for(let r of e){if(!MM(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r)}for(let r of n){let o=Rv(r.children);t.push(new Ze(r.value,o))}return t.filter(r=>!n.has(r))}function Xy(e){return e.data||{}}function ev(e){return e.resolve||{}}function TM(e,t,n,r,o,i,s){return Re(async a=>{let{state:c,tree:u}=await _M(e,t,n,r,a.extractedUrl,o,i,s);return _(g({},a),{targetSnapshot:c,urlAfterRedirects:u})})}function AM(e){return Re(t=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=t;if(!r.length)return k(t);let o=new Set(r.map(a=>a.route)),i=new Set;for(let a of o)if(!i.has(a))for(let c of xv(a))i.add(c);let s=0;return ce(i).pipe(jr(a=>o.has(a)?NM(a,n,e):(a.data=Oc(a,a.parent,e).resolve,k(void 0))),xe(()=>s++),Ps(1),Re(a=>s===i.size?k(t):Ie))})}function xv(e){let t=e.children.map(n=>xv(n)).flat();return[e,...t]}function NM(e,t,n){let r=e.routeConfig,o=e._resolve;return r?.title!==void 0&&!Cv(r)&&(o[Wi]=r.title),jo(()=>(e.data=Oc(e,e.parent,n).resolve,RM(o,e,t).pipe($(i=>(e._resolvedData=i,e.data=g(g({},e.data),i),null)))))}function RM(e,t,n){let r=gf(e);if(r.length===0)return k({});let o={};return ce(r).pipe(Re(i=>xM(e[i],t,n).pipe(Lt(),xe(s=>{if(s instanceof mo)throw kc(new Tn,s);o[i]=s}))),Ps(1),$(()=>o),Ft(i=>Sv(i)?Ie:bu(i)))}function xM(e,t,n){let r=t._environmentInjector,o=Do(e,r),i=o.resolve?o.resolve(t,n):ne(r,()=>o(t,n));return Ir(i)}function tv(e){return ut(t=>{let n=e(t);return n?ce(n).pipe($(()=>t)):k(t)})}var Rf=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===x);return r}getResolvedTitleForRoute(n){return n.data[Wi]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=b({token:e,factory:()=>h(Ov),providedIn:"root"})}return e})(),Ov=(()=>{class e extends Rf{title;constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(M(qy))};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Eo=new E("",{factory:()=>({})}),Qi=new E(""),kv=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=h(jd);async loadComponent(n,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let o=(async()=>{try{let i=await ov(ne(n,()=>r.loadComponent())),s=await Lv(Pv(i));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r)}})();return this.componentLoaders.set(r,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=(async()=>{try{let i=await Fv(r,this.compiler,n,this.onLoadEndListener);return r._loadedRoutes=i.routes,r._loadedInjector=i.injector,r._loadedNgModuleFactory=i.factory,i}finally{this.childrenLoaders.delete(r)}})();return this.childrenLoaders.set(r,o),o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();async function Fv(e,t,n,r){let o=await ov(ne(n,()=>e.loadChildren())),i=await Lv(Pv(o)),s;i instanceof Ba||Array.isArray(i)?s=i:s=await t.compileModuleAsync(i),r&&r(e);let a,c,u=!1,l;return Array.isArray(s)?(c=s,u=!0):(a=s.create(n).injector,l=s,c=a.get(Qi,[],{optional:!0,self:!0}).flat()),{routes:c.map(Nf),injector:a,factory:l}}function OM(e){return e&&typeof e=="object"&&"default"in e}function Pv(e){return OM(e)?e.default:e}async function Lv(e){return e}var Vc=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=b({token:e,factory:()=>h(kM),providedIn:"root"})}return e})(),kM=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),jv=new E("");var FM=()=>{},Vv=new E(""),Bv=(()=>{class e{currentNavigation=z(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=z(null);events=new te;transitionAbortWithErrorSubject=new te;configLoader=h(kv);environmentInjector=h(Q);destroyRef=h(ke);urlSerializer=h(Zi);rootContexts=h(vo);location=h(io);inputBindingEnabled=h(Lc,{optional:!0})!==null;titleStrategy=h(Rf);options=h(Eo,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=h(Vc);createViewTransition=h(jv,{optional:!0});navigationErrorHandler=h(Vv,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>k(void 0);rootComponentType=null;destroyed=!1;constructor(){let n=o=>this.events.next(new Ic(o)),r=o=>this.events.next(new Sc(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;F(()=>{this.transitions?.next(_(g({},n),{extractedUrl:this.urlHandlingStrategy.extract(n.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r}))})}setupNavigations(n){return this.transitions=new _e(null),this.transitions.pipe(ct(r=>r!==null),ut(r=>{let o=!1,i=new AbortController,s=()=>!o&&this.currentTransition?.id===r.id;return k(r).pipe(ut(a=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",Ne.SupersededByNewNavigation),Ie;this.currentTransition=r;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:c?_(g({},c),{previousNavigation:null}):null,abort:()=>i.abort()});let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=a.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&l!=="reload")return this.events.next(new Jt(a.id,this.urlSerializer.serialize(a.rawUrl),"",Hi.IgnoredSameUrlNavigation)),a.resolve(!1),Ie;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return k(a).pipe(ut(d=>(this.events.next(new wr(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),d.id!==this.navigationId?Ie:Promise.resolve(d))),TM(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy,i.signal),xe(d=>{r.targetSnapshot=d.targetSnapshot,r.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation.update(f=>(f.finalUrl=d.urlAfterRedirects,f));let p=new ho(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:d,extractedUrl:p,source:f,restoredState:m,extras:D}=a,v=new wr(d,this.urlSerializer.serialize(p),f,m);this.events.next(v);let C=Dv(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=_(g({},a),{targetSnapshot:C,urlAfterRedirects:p,extras:_(g({},D),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(J=>(J.finalUrl=p,J)),k(r)}else return this.events.next(new Jt(a.id,this.urlSerializer.serialize(a.extractedUrl),"",Hi.IgnoredByUrlHandlingStrategy)),a.resolve(!1),Ie}),$(a=>{let c=new Cc(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=r=_(g({},a),{guards:qS(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r}),rM(a=>this.events.next(a)),ut(a=>{if(r.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw kc(this.urlSerializer,a.guardsResult);let c=new bc(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!s())return Ie;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",Ne.GuardRejected),Ie;if(a.guards.canActivateChecks.length===0)return k(a);let u=new wc(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(u),!s())return Ie;let l=!1;return k(a).pipe(AM(this.paramsInheritanceStrategy),xe({next:()=>{l=!0;let d=new _c(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(d)},complete:()=>{l||this.cancelNavigationTransition(a,"",Ne.NoDataFromResolver)}}))}),tv(a=>{let c=l=>{let d=[];if(l.routeConfig?._loadedComponent)l.component=l.routeConfig?._loadedComponent;else if(l.routeConfig?.loadComponent){let p=l._environmentInjector;d.push(this.configLoader.loadComponent(p,l.routeConfig).then(f=>{l.component=f}))}for(let p of l.children)d.push(...c(p));return d},u=c(a.targetSnapshot.root);return u.length===0?k(a):ce(Promise.all(u).then(()=>a))}),tv(()=>this.afterPreactivation()),ut(()=>{let{currentSnapshot:a,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return u?ce(u).pipe($(()=>r)):k(r)}),Pt(1),$(a=>{let c=HS(n.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=r=a=_(g({},a),{targetRouterState:c}),this.currentNavigation.update(u=>(u.targetRouterState=c,u)),this.events.next(new po),s()&&(new wf(n.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s()&&(o=!0,this.currentNavigation.update(u=>(u.abort=FM,u)),this.lastSuccessfulNavigation.set(F(this.currentNavigation)),this.events.next(new At(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)))}),Vo(Mv(i.signal).pipe(ct(()=>!o&&!r.targetRouterState),xe(()=>{this.cancelNavigationTransition(r,i.signal.reason+"",Ne.Aborted)}))),xe({complete:()=>{o=!0}}),Vo(this.transitionAbortWithErrorSubject.pipe(xe(a=>{throw a}))),Vr(()=>{i.abort(),o||this.cancelNavigationTransition(r,"",Ne.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Ft(a=>{if(o=!0,this.destroyed)return r.resolve(!1),Ie;if(Iv(a))this.events.next(new st(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode)),GS(a)?this.events.next(new go(a.url,a.navigationBehaviorOptions)):r.resolve(!1);else{let c=new _r(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);try{let u=ne(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof mo){let{message:l,cancellationCode:d}=kc(this.urlSerializer,u);this.events.next(new st(r.id,this.urlSerializer.serialize(r.extractedUrl),l,d)),this.events.next(new go(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(u){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(u)}}return Ie}))}))}cancelNavigationTransition(n,r,o){let i=new st(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=F(this.currentNavigation),o=r?.targetBrowserUrl??r?.extractedUrl;return n.toString()!==o?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function PM(e){return e!==Vi}var Uv=new E("");var Hv=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=b({token:e,factory:()=>h(LM),providedIn:"root"})}return e})(),Pc=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}shouldDestroyInjector(t){return!0}},LM=(()=>{class e extends Pc{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Aa(e)))(o||e)}})();static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),xf=(()=>{class e{urlSerializer=h(Zi);options=h(Eo,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=h(io);urlHandlingStrategy=h(Vc);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Ct;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:n,initialUrl:r,targetBrowserUrl:o}){let i=n!==void 0?this.urlHandlingStrategy.merge(n,r):r,s=o??i;return s instanceof Ct?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:n,finalUrl:r,initialUrl:o}){r&&n?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,o),this.routerState=n):this.rawUrlTree=o}routerState=Dv(null,h(Q));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=b({token:e,factory:()=>h(jM),providedIn:"root"})}return e})(),jM=(()=>{class e extends xf{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{n(r.url,r.state,"popstate")})})}handleRouterEvent(n,r){n instanceof wr?this.updateStateMemento():n instanceof Jt?this.commitTransition(r):n instanceof ho?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof po?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof st&&!vv(n)?this.restoreHistory(r):n instanceof _r?this.restoreHistory(r,!0):n instanceof At&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,{extras:r,id:o}){let{replaceUrl:i,state:s}=r;if(this.location.isCurrentPathEqualTo(n)||i){let a=this.browserPageId,c=g(g({},s),this.generateNgRouterState(o,a));this.location.replaceState(n,"",c)}else{let a=g(g({},s),this.generateNgRouterState(o,this.browserPageId+1));this.location.go(n,"",a)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.getCurrentUrlTree()===n.finalUrl&&i===0&&(this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:n}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Aa(e)))(o||e)}})();static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Of(e,t){e.events.pipe(ct(n=>n instanceof At||n instanceof st||n instanceof _r||n instanceof Jt),$(n=>n instanceof At||n instanceof Jt?0:(n instanceof st?n.code===Ne.Redirect||n.code===Ne.SupersededByNewNavigation:!1)?2:1),ct(n=>n!==2),Pt(1)).subscribe(()=>{t()})}var $v={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},zv={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Pe=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=h(Id);stateManager=h(xf);options=h(Eo,{optional:!0})||{};pendingTasks=h($t);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=h(Bv);urlSerializer=h(Zi);location=h(io);urlHandlingStrategy=h(Vc);injector=h(Q);_events=new te;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=h(Hv);injectorCleanup=h(Uv,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=h(Qi,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!h(Lc,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:n=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new fe;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=F(this.navigationTransitions.currentNavigation);if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof st&&r.code!==Ne.Redirect&&r.code!==Ne.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof At)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof go){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=g({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||PM(o.source)},s);this.scheduleNavigation(a,Vi,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}BS(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Vi,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r,o)=>{this.navigateToSyncWithBrowser(n,o,r)})}navigateToSyncWithBrowser(n,r,o){let i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let c=g({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(i.state=c)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i).catch(c=>{this.disposed||this.injector.get(nt)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return F(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Nf),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=g(g({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let p=o?o.snapshot:this.routerState.snapshot.root;d=pv(p)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return gv(d,n,l,u??null,this.urlSerializer)}navigateByUrl(n,r={skipLocationChange:!1}){let o=An(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Vi,null,r)}navigate(n,r={skipLocationChange:!1}){return VM(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.console.warn(hn(4018,!1)),this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=g({},$v):r===!1?o=g({},zv):o=r,An(n))return Wy(this.currentUrlTree,n,o);let i=this.parseUrl(n);return Wy(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((d,p)=>{a=d,c=p});let l=this.pendingTasks.add();return Of(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function VM(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new y(4008,!1)}var Co=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=z(null);get href(){return F(this.reactiveHref)}set href(n){this.reactiveHref.set(n)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new te;applicationErrorHandler=h(nt);options=h(Eo,{optional:!0});constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a,this.reactiveHref.set(h(new Za("href"),{optional:!0}));let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href")),this.isAnchorElement&&(this.setTabIndexIfNotOnNativeEl("0"),this.subscribeToNavigationEventsIfNecessary())}subscribeToNavigationEventsIfNecessary(){this.subscription===void 0&&(this.subscription=this.router.events.subscribe(n=>{n instanceof At&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(n){n==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(An(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,r,o,i,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(n!==0||r||o||i||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.reactiveHref.set(n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n))??"":null)}applyAttributeValue(n,r){let o=this.renderer,i=this.el.nativeElement;r!==null?o.setAttribute(i,n,r):o.removeAttribute(i,n)}get urlTree(){return this.routerLinkInput===null?null:An(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||e)(Fe(Pe),Fe(bt),pi("tabindex"),Fe(ja),Fe(dr),Fe(oo))};static \u0275dir=_n({type:e,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,o){r&1&&se("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&$a("href",o.reactiveHref(),ud)("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",_i],skipLocationChange:[2,"skipLocationChange","skipLocationChange",_i],replaceUrl:[2,"replaceUrl","replaceUrl",_i],routerLink:"routerLink"},features:[to]})}return e})();var HM=new E("");function kf(e,...t){return $r([{provide:Qi,multi:!0,useValue:e},[],{provide:bt,useFactory:$M},{provide:Ha,multi:!0,useFactory:zM},t.map(n=>n.\u0275providers)])}function $M(){return h(Pe).routerState.root}function zM(){let e=h(ue);return t=>{let n=e.get(pr);if(t!==n.components[0])return;let r=e.get(Pe),o=e.get(GM);e.get(qM)===1&&r.initialNavigation(),e.get(WM,null,{optional:!0})?.setUpPreloading(),e.get(HM,null,{optional:!0})?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var GM=new E("",{factory:()=>new te}),qM=new E("",{factory:()=>1});var WM=new E("");var bo=class e{sampleEntries={articles:[{id:1,title:"First Article",content:"This is the content of the first article.",createdAt:new Date().toISOString()},{id:2,title:"Second Article",content:"Here is some more content for the second article.",createdAt:new Date().toISOString()}]};http=h(fc);apiUrl="/api";getArticles(t){let n=new Dt().set("limit","20");return t&&(n=n.set("q",t)),this.http.get(`${this.apiUrl}/articles`,{params:n}).pipe($(r=>r&&r.articles&&r.articles.length>0?r:this.sampleEntries),Ft(()=>k(this.sampleEntries)))}getArticle(t){return this.http.get(`${this.apiUrl}/articles/${t}`)}createArticle(t){return this.http.post(`${this.apiUrl}/articles`,t,{withCredentials:!0}).pipe(Ft(()=>{let n=Math.max(...this.sampleEntries.articles.map(o=>o.id),0)+1,r=_(g({},t),{id:n,createdAt:new Date().toISOString()});return this.sampleEntries.articles.push(r),k(r)}))}updateArticle(t,n){return this.http.put(`${this.apiUrl}/articles/${t}`,n,{withCredentials:!0})}deleteArticle(t){return this.http.delete(`${this.apiUrl}/articles/${t}`,{withCredentials:!0})}login(t,n){let r=new URLSearchParams;return r.set("password",n),this.http.post(`${this.apiUrl}/login`,r.toString(),{headers:{"Content-Type":"application/x-www-form-urlencoded"},responseType:"text",withCredentials:!0}).pipe(xe(()=>console.log("\u2705 Login Success")),Ft(o=>(console.error("\u274C Login Failed:",o),k({error:!0,message:o.message}))))}logout(){return this.http.post(`${this.apiUrl}/logout`,{},{withCredentials:!0,responseType:"text"})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})};var Nn=class e{constructor(t){this.router=t}apiService=h(bo);isLoggedIn=z(!1);login(t,n){return this.apiService.login(t,n).pipe(xe(r=>{if(r&&r.error){console.error("Login failed",r.message);return}this.isLoggedIn.set(!0),this.router.navigate(["/"])}))}logout(){this.apiService.logout().subscribe({next:()=>{this.isLoggedIn.set(!1),this.router.navigate(["/login"])},error:t=>console.error("Logout failed",t)})}static \u0275fac=function(n){return new(n||e)(M(Pe))};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})};function Gv(e,t){let n=t?.injector??h(ue),r=new Po(1),o=gt(()=>{let i;try{i=e()}catch(s){F(()=>r.error(s));return}F(()=>r.next(i))},{injector:n,manualCleanup:!0});return n.get(ke).onDestroy(()=>{o.destroy(),r.complete()}),r.asObservable()}var Zv=new E("");function Lf(e){return e==null||jf(e)===0}function jf(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var KM=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Uc=class{static min(t){return YM(t)}static max(t){return QM(t)}static required(t){return JM(t)}static requiredTrue(t){return XM(t)}static email(t){return eT(t)}static minLength(t){return tT(t)}static maxLength(t){return nT(t)}static pattern(t){return rT(t)}static nullValidator(t){return Kv()}static compose(t){return tD(t)}static composeAsync(t){return rD(t)}};function YM(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}function QM(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function JM(e){return Lf(e.value)?{required:!0}:null}function XM(e){return e.value===!0?null:{required:!0}}function eT(e){return Lf(e.value)||KM.test(e.value)?null:{email:!0}}function tT(e){return t=>{let n=t.value?.length??jf(t.value);return n===null||n===0?null:n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}function nT(e){return t=>{let n=t.value?.length??jf(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function rT(e){if(!e)return Kv;let t,n;return typeof e=="string"?(n="",e.charAt(0)!=="^"&&(n+="^"),n+=e,e.charAt(e.length-1)!=="$"&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(Lf(r.value))return null;let o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}function Kv(e){return null}function Yv(e){return e!=null}function Qv(e){return Gt(e)?ce(e):e}function Jv(e){let t={};return e.forEach(n=>{t=n!=null?g(g({},t),n):t}),Object.keys(t).length===0?null:t}function Xv(e,t){return t.map(n=>n(e))}function oT(e){return!e.validate}function eD(e){return e.map(t=>oT(t)?t:n=>t.validate(n))}function tD(e){if(!e)return null;let t=e.filter(Yv);return t.length==0?null:function(n){return Jv(Xv(n,t))}}function nD(e){return e!=null?tD(eD(e)):null}function rD(e){if(!e)return null;let t=e.filter(Yv);return t.length==0?null:function(n){let r=Xv(n,t).map(Qv);return _u(r).pipe($(Jv))}}function oD(e){return e!=null?rD(eD(e)):null}function Ff(e){return e?Array.isArray(e)?e:[e]:[]}function Hc(e,t){return Array.isArray(e)?e.includes(t):e===t}function qv(e,t){let n=Ff(t);return Ff(e).forEach(o=>{Hc(n,o)||n.push(o)}),n}function Wv(e,t){return Ff(t).filter(n=>!Hc(e,n))}var Pf=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=nD(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=oD(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}};var $c=class extends Pf{_parent=null;name=null;valueAccessor=null};var Ji="VALID",Bc="INVALID",wo="PENDING",Xi="DISABLED",Io=class{},zc=class extends Io{value;source;constructor(t,n){super(),this.value=t,this.source=n}},es=class extends Io{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},ts=class extends Io{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},_o=class extends Io{status;source;constructor(t,n){super(),this.status=t,this.source=n}};function iT(e){return Array.isArray(e)?nD(e):e||null}function sT(e){return Array.isArray(e)?oD(e):e||null}function aT(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Gc=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return F(this.statusReactive)}set status(t){F(()=>this.statusReactive.set(t))}_status=T(()=>this.statusReactive());statusReactive=z(void 0);get valid(){return this.status===Ji}get invalid(){return this.status===Bc}get pending(){return this.status==wo}get disabled(){return this.status===Xi}get enabled(){return this.status!==Xi}errors;get pristine(){return F(this.pristineReactive)}set pristine(t){F(()=>this.pristineReactive.set(t))}_pristine=T(()=>this.pristineReactive());pristineReactive=z(!0);get dirty(){return!this.pristine}get touched(){return F(this.touchedReactive)}set touched(t){F(()=>this.touchedReactive.set(t))}_touched=T(()=>this.touchedReactive());touchedReactive=z(!1);get untouched(){return!this.touched}_events=new te;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(qv(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(qv(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Wv(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Wv(t,this._rawAsyncValidators))}hasValidator(t){return Hc(this._rawValidators,t)}hasAsyncValidator(t){return Hc(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(_(g({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new ts(!0,r))}markAllAsDirty(t={}){this.markAsDirty({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsDirty(t))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new ts(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(_(g({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new es(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new es(!0,r))}markAsPending(t={}){this.status=wo;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new _o(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(_(g({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Xi,this.errors=null,this._forEachChild(o=>{o.disable(_(g({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new zc(this.value,r)),this._events.next(new _o(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(_(g({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Ji,this._forEachChild(r=>{r.enable(_(g({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(_(g({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ji||this.status===wo)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new zc(this.value,n)),this._events.next(new _o(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(_(g({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Xi:Ji}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=wo,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1,shouldHaveEmitted:t!==!1};let r=Qv(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new _o(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new ye,this.statusChanges=new ye}_calculateStatus(){return this._allControlsDisabled()?Xi:this.errors?Bc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(wo)?wo:this._anyControlsHaveStatus(Bc)?Bc:Ji}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new es(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new ts(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){aT(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=iT(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=sT(this._rawAsyncValidators)}};var Vf=0;function cT(){return Vf}function Rn(e,t){return(...n)=>{try{return Vf=t,e(...n)}finally{Vf=0}}}function uT(e){return!e}function iD(e){return e}function Nt(e){return Array.isArray(e)}function So(e){return(typeof e=="object"||typeof e=="function")&&e!=null}var Sr=Symbol(),Xc=Symbol(),rs=class{predicates;fns=[];constructor(t){this.predicates=t}push(t){this.fns.push(sD(this.predicates,t))}mergeIn(t){let n=this.predicates?t.fns.map(r=>sD(this.predicates,r)):t.fns;this.fns.push(...n)}},Wc=class extends rs{get defaultValue(){return!1}compute(t){return this.fns.some(n=>{let r=n(t);return r&&r!==Xc})}},Mo=class e extends rs{ignore;static ignoreNull(t){return new e(t,n=>n===null)}constructor(t,n){super(t),this.ignore=n}get defaultValue(){return[]}compute(t){return this.fns.reduce((n,r)=>{let o=r(t);return o===void 0||o===Xc?n:Nt(o)?[...n,...this.ignore?o.filter(i=>!this.ignore(i)):o]:this.ignore&&this.ignore(o)?n:[...n,o]},[])}},Bf=class extends Mo{constructor(t){super(t,void 0)}},Uf=class extends rs{key;get defaultValue(){return this.key.reducer.getInitial()}constructor(t,n){super(t),this.key=n}compute(t){if(this.fns.length===0)return this.key.reducer.getInitial();let n=this.key.reducer.getInitial();for(let r=0;r<this.fns.length;r++){let o=this.fns[r](t);o!==Xc&&(n=this.key.reducer.reduce(n,o))}return n}};function sD(e,t){return e.length===0?t:n=>{for(let r of e){let o=n.stateOf(r.path),i=F(o.structure.pathKeys).length-r.depth;for(let s=0;s<i;s++)o=o.structure.parent;if(!r.fn(o.context))return Xc}return t(n)}}var To=class{predicates;hidden;disabledReasons;readonly;syncErrors;syncTreeErrors;asyncErrors;metadata=new Map;constructor(t){this.predicates=t,this.hidden=new Wc(t),this.disabledReasons=new Bf(t),this.readonly=new Wc(t),this.syncErrors=Mo.ignoreNull(t),this.syncTreeErrors=Mo.ignoreNull(t),this.asyncErrors=Mo.ignoreNull(t)}hasMetadata(t){return this.metadata.has(t)}getMetadataKeys(){return this.metadata.keys()}getMetadata(t){return this.metadata.has(t)||this.metadata.set(t,new Uf(this.predicates,t)),this.metadata.get(t)}mergeIn(t){this.hidden.mergeIn(t.hidden),this.disabledReasons.mergeIn(t.disabledReasons),this.readonly.mergeIn(t.readonly),this.syncErrors.mergeIn(t.syncErrors),this.syncTreeErrors.mergeIn(t.syncTreeErrors),this.asyncErrors.mergeIn(t.asyncErrors);for(let n of t.getMetadataKeys()){let r=t.metadata.get(n);this.getMetadata(n).mergeIn(r)}}},Zc=class{depth;constructor(t){this.depth=t}build(){return new Kc(this,[],0)}},Ao=class e extends Zc{constructor(t){super(t)}current;all=[];addHiddenRule(t){this.getCurrent().addHiddenRule(t)}addDisabledReasonRule(t){this.getCurrent().addDisabledReasonRule(t)}addReadonlyRule(t){this.getCurrent().addReadonlyRule(t)}addSyncErrorRule(t){this.getCurrent().addSyncErrorRule(t)}addSyncTreeErrorRule(t){this.getCurrent().addSyncTreeErrorRule(t)}addAsyncErrorRule(t){this.getCurrent().addAsyncErrorRule(t)}addMetadataRule(t,n){this.getCurrent().addMetadataRule(t,n)}getChild(t){if(t===Sr){let n=this.getCurrent().children;n.size>(n.has(Sr)?1:0)&&(this.current=void 0)}return this.getCurrent().getChild(t)}hasLogic(t){return this===t?!0:this.all.some(({builder:n})=>n.hasLogic(t))}mergeIn(t,n){n?this.all.push({builder:t,predicate:{fn:Rn(n.fn,this.depth),path:n.path}}):this.all.push({builder:t}),this.current=void 0}getCurrent(){return this.current===void 0&&(this.current=new os(this.depth),this.all.push({builder:this.current})),this.current}static newRoot(){return new e(0)}},os=class extends Zc{logic=new To([]);children=new Map;constructor(t){super(t)}addHiddenRule(t){this.logic.hidden.push(Rn(t,this.depth))}addDisabledReasonRule(t){this.logic.disabledReasons.push(Rn(t,this.depth))}addReadonlyRule(t){this.logic.readonly.push(Rn(t,this.depth))}addSyncErrorRule(t){this.logic.syncErrors.push(Rn(t,this.depth))}addSyncTreeErrorRule(t){this.logic.syncTreeErrors.push(Rn(t,this.depth))}addAsyncErrorRule(t){this.logic.asyncErrors.push(Rn(t,this.depth))}addMetadataRule(t,n){this.logic.getMetadata(t).push(Rn(n,this.depth))}getChild(t){return this.children.has(t)||this.children.set(t,new Ao(this.depth+1)),this.children.get(t)}hasLogic(t){return this===t}},Kc=class e{builder;predicates;depth;logic;constructor(t,n,r){this.builder=t,this.predicates=n,this.depth=r,this.logic=t?lT(t,n,r):new To([])}getChild(t){let n=this.builder?cD(this.builder,t):[];if(n.length===0)return new e(void 0,[],this.depth+1);if(n.length===1){let{builder:r,predicates:o}=n[0];return new e(r,[...this.predicates,...o.map(i=>$f(i,this.depth))],this.depth+1)}else{let r=n.map(({builder:o,predicates:i})=>new e(o,[...this.predicates,...i.map(s=>$f(s,this.depth))],this.depth+1));return new Hf(r)}}hasLogic(t){return this.builder?.hasLogic(t)??!1}},Hf=class e{all;logic;constructor(t){this.all=t,this.logic=new To([]);for(let n of t)this.logic.mergeIn(n.logic)}getChild(t){return new e(this.all.flatMap(n=>n.getChild(t)))}hasLogic(t){return this.all.some(n=>n.hasLogic(t))}};function cD(e,t){if(e instanceof Ao)return e.all.flatMap(({builder:n,predicate:r})=>{let o=cD(n,t);return r?o.map(({builder:i,predicates:s})=>({builder:i,predicates:[...s,r]})):o});if(e instanceof os)return[...t!==Sr&&e.children.has(Sr)?[{builder:e.getChild(Sr),predicates:[]}]:[],...e.children.has(t)?[{builder:e.getChild(t),predicates:[]}]:[]];throw new y(1909,!1)}function lT(e,t,n){let r=new To(t);if(e instanceof Ao){let o=e.all.map(({builder:i,predicate:s})=>new Kc(i,s?[...t,$f(s,n)]:t,n));for(let i of o)r.mergeIn(i.logic)}else if(e instanceof os)r.mergeIn(e.logic);else throw new y(1909,!1);return r}function $f(e,t){return _(g({},e),{depth:t})}var uD=Symbol("PATH"),Xt=class e{keys;parent;keyInParent;root;children=new Map;fieldPathProxy=new Proxy(this,dT);logicBuilder;constructor(t,n,r,o){this.keys=t,this.parent=r,this.keyInParent=o,this.root=n??this,r||(this.logicBuilder=Ao.newRoot())}get builder(){return this.logicBuilder?this.logicBuilder:this.parent.builder.getChild(this.keyInParent)}getChild(t){return this.children.has(t)||this.children.set(t,new e([...this.keys,t],this.root,this,t)),this.children.get(t)}mergeIn(t,n){let r=t.compile();this.builder.mergeIn(r.builder,n)}static unwrapFieldPath(t){return t[uD]}static newRoot(){return new e([],void 0,void 0,void 0)}},dT={get(e,t){return t===uD?e:e.getChild(t).fieldPathProxy}},qc,ns=new Map,Yc=class e{schemaFn;constructor(t){this.schemaFn=t}compile(){if(ns.has(this))return ns.get(this);let t=Xt.newRoot();ns.set(this,t);let n=qc;try{qc=t,this.schemaFn(t.fieldPathProxy)}finally{qc=n}return t}static create(t){return t instanceof e?t:new e(t)}static rootCompile(t){try{return ns.clear(),t===void 0?Xt.newRoot():t instanceof e?t.compile():new e(t).compile()}finally{ns.clear()}}};function fT(e){return e instanceof Yc||typeof e=="function"}function eh(e){if(qc!==Xt.unwrapFieldPath(e).root)throw new y(1908,!1)}function th(e,t,n){return eh(e),Xt.unwrapFieldPath(e).builder.addMetadataRule(t,n),t}var xn={list(){return{reduce:(e,t)=>t===void 0?e:[...e,t],getInitial:()=>[]}},min(){return{reduce:(e,t)=>e===void 0||t===void 0?e??t:Math.min(e,t),getInitial:()=>{}}},max(){return{reduce:(e,t)=>e===void 0||t===void 0?e??t:Math.max(e,t),getInitial:()=>{}}},or(){return{reduce:(e,t)=>e||t,getInitial:()=>!1}},and(){return{reduce:(e,t)=>e&&t,getInitial:()=>!0}},override:hT};function hT(e){return{reduce:(t,n)=>n,getInitial:()=>e?.()}}var Qc=class{reducer;create;brand;constructor(t,n){this.reducer=t,this.create=n}};function en(e){return new Qc(e??xn.override())}var nh=en(xn.or()),lD=en(xn.max()),dD=en(xn.min()),fD=en(xn.max()),hD=en(xn.min()),pD=en(xn.list());function pT(e){return e.errors().length>0?"invalid":e.pending()?"unknown":"valid"}var zf=class{node;constructor(t){this.node=t}rawSyncTreeErrors=T(()=>this.shouldSkipValidation()?[]:[...this.node.logicNode.logic.syncTreeErrors.compute(this.node.context),...this.node.structure.parent?.validationState.rawSyncTreeErrors()??[]]);syncErrors=T(()=>this.shouldSkipValidation()?[]:[...this.node.logicNode.logic.syncErrors.compute(this.node.context),...this.syncTreeErrors(),...gT(this.node.submitState.submissionErrors())]);syncValid=T(()=>this.shouldSkipValidation()?!0:this.node.structure.reduceChildren(this.syncErrors().length===0,(t,n)=>n&&t.validationState.syncValid(),uT));syncTreeErrors=T(()=>this.rawSyncTreeErrors().filter(t=>t.fieldTree===this.node.fieldProxy));rawAsyncErrors=T(()=>this.shouldSkipValidation()?[]:[...this.node.logicNode.logic.asyncErrors.compute(this.node.context),...this.node.structure.parent?.validationState.rawAsyncErrors()??[]]);asyncErrors=T(()=>this.shouldSkipValidation()?[]:this.rawAsyncErrors().filter(t=>t==="pending"||t.fieldTree===this.node.fieldProxy));errors=T(()=>[...this.syncErrors(),...this.asyncErrors().filter(t=>t!=="pending")]);errorSummary=T(()=>this.node.structure.reduceChildren(this.errors(),(t,n)=>[...n,...t.errorSummary()]));pending=T(()=>this.node.structure.reduceChildren(this.asyncErrors().includes("pending"),(t,n)=>n||t.validationState.asyncErrors().includes("pending")));status=T(()=>{if(this.shouldSkipValidation())return"valid";let t=pT(this);return this.node.structure.reduceChildren(t,(n,r)=>r==="invalid"||n.validationState.status()==="invalid"?"invalid":r==="unknown"||n.validationState.status()==="unknown"?"unknown":"valid",n=>n==="invalid")});valid=T(()=>this.status()==="valid");invalid=T(()=>this.status()==="invalid");shouldSkipValidation=T(()=>this.node.hidden()||this.node.disabled()||this.node.readonly())};function gT(e){return e===void 0?[]:Nt(e)?e:[e]}function rh(e,t){if(Nt(e))for(let n of e)n.fieldTree??=t;else e&&(e.fieldTree??=t);return e}var Gf=en(),qf=class{node;cache=new WeakMap;constructor(t){this.node=t}resolve(t){if(!this.cache.has(t)){let n=T(()=>{let r=Xt.unwrapFieldPath(t),o=this.node,i=cT();for(;i>0||!o.structure.logic.hasLogic(r.root.builder);)if(i--,o=o.structure.parent,o===void 0)throw new y(1900,!1);for(let s of r.keys)if(o=o.structure.getChild(s),o===void 0)throw new y(1901,!1);return o.fieldProxy});this.cache.set(t,n)}return this.cache.get(t)()}get fieldTree(){return this.node.fieldProxy}get state(){return this.node}get value(){return this.node.structure.value}get key(){return this.node.structure.keyInParent}get pathKeys(){return this.node.structure.pathKeys}index=T(()=>{let t=this.key();if(!Nt(F(this.node.structure.parent.value)))throw new y(1906,!1);return Number(t)});fieldTreeOf=t=>this.resolve(t);stateOf=t=>this.resolve(t)();valueOf=t=>{let n=this.resolve(t)().value();if(n instanceof Gc)throw new y(1907,!1);return n}},Wf=class{node;metadata=new Map;constructor(t){this.node=t;for(let n of this.node.logicNode.logic.getMetadataKeys())if(n.create){let r=this.node.logicNode.logic.getMetadata(n),o=F(()=>ne(this.node.structure.injector,()=>n.create(T(()=>r.compute(this.node.context)))));this.metadata.set(n,o)}}get(t){if(this.has(t)&&!this.metadata.has(t)){if(t.create)throw new y(1912,!1);let n=this.node.logicNode.logic.getMetadata(t);this.metadata.set(t,T(()=>n.compute(this.node.context)))}return this.metadata.get(t)}has(t){return this.node.logicNode.logic.hasMetadata(t)}},mT={get(e,t,n){let r=e(),o=r.structure.getChild(t);if(o!==void 0)return o.fieldProxy;let i=F(r.value);if(Nt(i)){if(t==="length")return r.value().length;if(t===Symbol.iterator)return()=>(r.value(),Array.prototype[Symbol.iterator].apply(r.fieldProxy))}if(So(i)&&t===Symbol.iterator)return function*(){for(let s in n)yield[s,n[s]]}},getOwnPropertyDescriptor(e,t){let n=F(e().value),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&!r.configurable&&(r.configurable=!0),r},ownKeys(e){let t=F(e().value);return typeof t=="object"&&t!==null?Reflect.ownKeys(t):[]}};function yT(e,t){let n=T(()=>e()[t()]);return n[X]=e[X],n.set=r=>{e.update(o=>vT(o,r,t()))},n.update=r=>{n.set(r(F(n)))},n.asReadonly=()=>n,n}function vT(e,t,n){if(Nt(e)){let r=[...e];return r[n]=t,r}else return _(g({},e),{[n]:t})}var Jc=class{logic;node;createChildNode;identitySymbol=Symbol();_injector=void 0;get injector(){return this._injector??=ue.create({providers:[],parent:this.fieldManager.injector}),this._injector}constructor(t,n,r){this.logic=t,this.node=n,this.createChildNode=r}children(){let t=this.childrenMap();return t===void 0?[]:Array.from(t.byPropertyKey.values()).map(n=>F(n.reader))}getChild(t){let n=t.toString(),r=F(this.childrenMap)?.byPropertyKey.get(n)?.reader;return r||(r=this.createReader(n)),r()}reduceChildren(t,n,r){let o=this.childrenMap();if(!o)return t;let i=t;for(let s of o.byPropertyKey.values()){if(r?.(i))break;i=n(F(s.reader),i)}return i}destroy(){this.injector.destroy()}createKeyInParent(t,n,r){if(t.kind==="root")return gD;if(n===void 0){let o=r;return T(()=>{if(this.parent.structure.getChild(o)!==this.node)throw new y(1902,!1);return o})}else{let o=r;return T(()=>{let i=this.parent.structure.value();if(!Nt(i))throw new y(1903,!1);let s=i[o];if(So(s)&&s.hasOwnProperty(this.parent.structure.identitySymbol)&&s[this.parent.structure.identitySymbol]===n)return o;for(let a=0;a<i.length;a++){let c=i[a];if(So(c)&&c.hasOwnProperty(this.parent.structure.identitySymbol)&&c[this.parent.structure.identitySymbol]===n)return o=a.toString()}throw new y(1904,!1)})}}createChildrenMap(){return yr({source:this.value,computation:(t,n)=>{if(!So(t))return;let r=n?.value??{byPropertyKey:new Map},o,i=Nt(t);r!==void 0&&(i?o=ET(r,t,this.identitySymbol):o=CT(r,t));for(let s of Object.keys(t)){let a,c=t[s];if(c===void 0){r.byPropertyKey.has(s)&&(o??=g({},r),o.byPropertyKey.delete(s));continue}i&&So(c)&&!Nt(c)&&(a=c[this.identitySymbol]??=Symbol(""));let u;a&&(r.byTrackingKey?.has(a)||(o??=g({},r),o.byTrackingKey??=new Map,o.byTrackingKey.set(a,this.createChildNode(s,a,i))),u=(o??r).byTrackingKey.get(a));let l=r.byPropertyKey.get(s);l===void 0?(o??=g({},r),o.byPropertyKey.set(s,{reader:this.createReader(s),node:u??this.createChildNode(s,a,i)})):u&&u!==l.node&&(o??=g({},r),l.node=u)}return o??r}})}createReader(t){return T(()=>this.childrenMap()?.byPropertyKey.get(t)?.node)}},Zf=class extends Jc{fieldManager;value;get parent(){}get root(){return this.node}get pathKeys(){return DT}get keyInParent(){return gD}childrenMap;constructor(t,n,r,o,i){super(n,t,i),this.fieldManager=r,this.value=o,this.childrenMap=this.createChildrenMap()}},Kf=class extends Jc{logic;parent;root;pathKeys;keyInParent;value;childrenMap;get fieldManager(){return this.root.structure.fieldManager}constructor(t,n,r,o,i,s){super(n,t,s),this.logic=n,this.parent=r,this.root=this.parent.structure.root,this.keyInParent=this.createKeyInParent({kind:"child",parent:r,pathNode:void 0,logic:n,initialKeyInParent:i,identityInParent:o,fieldAdapter:void 0},o,i),this.pathKeys=T(()=>[...r.structure.pathKeys(),this.keyInParent()]),this.value=yT(this.parent.structure.value,this.keyInParent),this.childrenMap=this.createChildrenMap(),this.fieldManager.structures.add(this)}};var DT=T(()=>[]),gD=T(()=>{throw new y(1905,!1)});function ET(e,t,n){let r,o=new Set(e.byPropertyKey.keys()),i=new Set(e.byTrackingKey?.keys());for(let s=0;s<t.length;s++){let a=t[s];o.delete(s.toString()),So(a)&&a.hasOwnProperty(n)&&i.delete(a[n])}if(o.size>0){r??=g({},e);for(let s of o)r.byPropertyKey.delete(s)}if(i.size>0){r??=g({},e);for(let s of i)r.byTrackingKey?.delete(s)}return r}function CT(e,t){let n;for(let r of e.byPropertyKey.keys())t.hasOwnProperty(r)||(n??=g({},e),n.byPropertyKey.delete(r));return n}var Yf=class{node;selfSubmitting=z(!1);submissionErrors;constructor(t){this.node=t,this.submissionErrors=yr({source:this.node.structure.value,computation:()=>[]})}submitting=T(()=>this.selfSubmitting()||(this.node.structure.parent?.submitting()??!1))},is=class{structure;validationState;metadataState;nodeState;submitState;fieldAdapter;_context=void 0;get context(){return this._context??=new qf(this)}fieldProxy=new Proxy(()=>this,mT);pathNode;constructor(t){this.pathNode=t.pathNode,this.fieldAdapter=t.fieldAdapter,this.structure=this.fieldAdapter.createStructure(this,t),this.validationState=this.fieldAdapter.createValidationState(this,t),this.nodeState=this.fieldAdapter.createNodeState(this,t),this.metadataState=new Wf(this),this.submitState=new Yf(this)}focusBoundControl(){this.getBindingForFocus()?.focus()}getBindingForFocus(){let t=this.formFieldBindings().filter(n=>n.focus!==void 0).reduce(aD,void 0);return t||this.structure.children().map(n=>n.getBindingForFocus()).reduce(aD,void 0)}pendingSync=yr({source:()=>this.value(),computation:(t,n)=>{n?.value?.abort()}});get logicNode(){return this.structure.logic}get value(){return this.structure.value}_controlValue=yr(()=>this.value());get controlValue(){return this._controlValue.asReadonly()}get keyInParent(){return this.structure.keyInParent}get errors(){return this.validationState.errors}get errorSummary(){return this.validationState.errorSummary}get pending(){return this.validationState.pending}get valid(){return this.validationState.valid}get invalid(){return this.validationState.invalid}get dirty(){return this.nodeState.dirty}get touched(){return this.nodeState.touched}get disabled(){return this.nodeState.disabled}get disabledReasons(){return this.nodeState.disabledReasons}get hidden(){return this.nodeState.hidden}get readonly(){return this.nodeState.readonly}get formFieldBindings(){return this.nodeState.formFieldBindings}get submitting(){return this.submitState.submitting}get name(){return this.nodeState.name}get max(){return this.metadata(dD)}get maxLength(){return this.metadata(hD)}get min(){return this.metadata(lD)}get minLength(){return this.metadata(fD)}get pattern(){return this.metadata(pD)??bT}get required(){return this.metadata(nh)??wT}metadata(t){return this.metadataState.get(t)}hasMetadata(t){return this.metadataState.has(t)}markAsTouched(){this.nodeState.markAsTouched(),this.pendingSync()?.abort(),this.sync()}markAsDirty(){this.nodeState.markAsDirty()}reset(t){F(()=>this._reset(t))}_reset(t){t!==void 0&&this.value.set(t),this.nodeState.markAsUntouched(),this.nodeState.markAsPristine();for(let n of this.structure.children())n._reset()}setControlValue(t){this._controlValue.set(t),this.markAsDirty(),this.debounceSync()}sync(){this.value.set(this.controlValue())}async debounceSync(){this.pendingSync()?.abort();let t=this.nodeState.debouncer();if(t){let n=new AbortController,r=t(n.signal);if(r&&(this.pendingSync.set(n),await r,n.signal.aborted))return}this.sync()}static newRoot(t,n,r,o){return o.newRoot(t,n,r,o)}createStructure(t){return t.kind==="root"?new Zf(this,t.logic,t.fieldManager,t.value,this.newChild.bind(this)):new Kf(this,t.logic,t.parent,t.identityInParent,t.initialKeyInParent,this.newChild.bind(this))}newChild(t,n,r){let o,i;return r?(o=this.pathNode.getChild(Sr),i=this.structure.logic.getChild(Sr)):(o=this.pathNode.getChild(t),i=this.structure.logic.getChild(t)),this.fieldAdapter.newChild({kind:"child",parent:this,pathNode:o,logic:i,initialKeyInParent:t,identityInParent:n,fieldAdapter:this.fieldAdapter})}},bT=T(()=>[]),wT=T(()=>!1);function aD(e,t){return e?t&&e.element.compareDocumentPosition(t.element)&Node.DOCUMENT_POSITION_PRECEDING?t:e:t}var Qf=class{node;selfTouched=z(!1);selfDirty=z(!1);markAsTouched(){this.selfTouched.set(!0)}markAsDirty(){this.selfDirty.set(!0)}markAsPristine(){this.selfDirty.set(!1)}markAsUntouched(){this.selfTouched.set(!1)}formFieldBindings=z([]);constructor(t){this.node=t}dirty=T(()=>{let t=this.selfDirty()&&!this.isNonInteractive();return this.node.structure.reduceChildren(t,(n,r)=>r||n.nodeState.dirty(),iD)});touched=T(()=>{let t=this.selfTouched()&&!this.isNonInteractive();return this.node.structure.reduceChildren(t,(n,r)=>r||n.nodeState.touched(),iD)});disabledReasons=T(()=>[...this.node.structure.parent?.nodeState.disabledReasons()??[],...this.node.logicNode.logic.disabledReasons.compute(this.node.context)]);disabled=T(()=>!!this.disabledReasons().length);readonly=T(()=>(this.node.structure.parent?.nodeState.readonly()||this.node.logicNode.logic.readonly.compute(this.node.context))??!1);hidden=T(()=>(this.node.structure.parent?.nodeState.hidden()||this.node.logicNode.logic.hidden.compute(this.node.context))??!1);name=T(()=>{let t=this.node.structure.parent;return t?`${t.name()}.${this.node.structure.keyInParent()}`:this.node.structure.fieldManager.rootName});debouncer=T(()=>{if(this.node.logicNode.logic.hasMetadata(Gf)){let n=this.node.logicNode.logic.getMetadata(Gf).compute(this.node.context);if(n)return r=>n(this.node.context,r)}return this.node.structure.parent?.nodeState.debouncer?.()});isNonInteractive=T(()=>this.hidden()||this.disabled()||this.readonly())},Jf=class{newRoot(t,n,r,o){return new is({kind:"root",fieldManager:t,value:n,pathNode:r,logic:r.builder.build(),fieldAdapter:o})}newChild(t){return new is(t)}createNodeState(t){return new Qf(t)}createValidationState(t){return new zf(t)}createStructure(t,n){return t.createStructure(n)}},Xf=class{injector;rootName;constructor(t,n){this.injector=t,this.rootName=n??`${this.injector.get(no)}.form${_T++}`}structures=new Set;createFieldManagementEffect(t){gt(()=>{let n=new Set;this.markStructuresLive(t,n);for(let r of this.structures)n.has(r)||(this.structures.delete(r),F(()=>r.destroy()))},{injector:this.injector})}markStructuresLive(t,n){n.add(t);for(let r of t.children())this.markStructuresLive(r.structure,n)}},_T=0;function IT(e){let t,n,r;return e.length===3?[t,n,r]=e:e.length===2?fT(e[1])?[t,n]=e:[t,r]=e:[t]=e,[t,n,r]}function tn(...e){let[t,n,r]=IT(e),o=r?.injector??h(ue),i=ne(o,()=>Yc.rootCompile(n)),s=new Xf(o,r?.name),a=r?.adapter??new Jf,c=is.newRoot(s,t,i,a);return s.createFieldManagementEffect(c.structure),c.fieldProxy}async function Mr(e,t){let n=e();if(mD(n),!n.invalid()){n.submitState.selfSubmitting.set(!0);try{let r=await t(e);r&&ST(n,r)}finally{n.submitState.selfSubmitting.set(!1)}}}function ST(e,t){Nt(t)||(t=[t]);let n=new Map;for(let r of t){let o=rh(r,e.fieldProxy),i=o.fieldTree(),s=n.get(i);s||(s=[],n.set(i,s)),s.push(o)}for(let[r,o]of n)r.submitState.submissionErrors.set(o)}function mD(e){e.markAsTouched();for(let t of e.structure.children())mD(t)}var MT=new E("");var oh=class{field;constructor(t){this.field=t}control=this;get value(){return this.field().value()}get valid(){return this.field().valid()}get invalid(){return this.field().invalid()}get pending(){return this.field().pending()}get disabled(){return this.field().disabled()}get enabled(){return!this.field().disabled()}get errors(){let t=this.field().errors();if(t.length===0)return null;let n={};for(let r of t)n[r.kind]=r;return n}get pristine(){return!this.field().dirty()}get dirty(){return this.field().dirty()}get touched(){return this.field().touched()}get untouched(){return!this.field().touched()}get status(){if(this.field().disabled())return"DISABLED";if(this.field().valid())return"VALID";if(this.field().invalid())return"INVALID";if(this.field().pending())return"PENDING";throw new y(1910,!1)}valueAccessor=null;hasValidator(t){return t===Uc.required?this.field().required():!1}updateValueAndValidity(){}},TT=new E(""),AT={create:Be,update:Ad},On=(()=>{class e{element=h(dr).nativeElement;injector=h(ue);formField=Ka.required();state=T(()=>this.formField()());[Va]=AT;config=h(MT,{optional:!0});classes=Object.entries(this.config?.classes??{}).map(([n,r])=>[n,T(()=>r(this))]);controlValueAccessors=h(Zv,{optional:!0,self:!0});interopNgControl;get \u0275interopControl(){return this.controlValueAccessors?.[0]??this.interopNgControl?.valueAccessor??void 0}getOrCreateNgControl(){return this.interopNgControl??=new oh(this.state)}\u0275register(){gt(n=>{let r=this.state();r.nodeState.formFieldBindings.update(o=>[...o,this]),n(()=>{r.nodeState.formFieldBindings.update(o=>o.filter(i=>i!==this))})},{injector:this.injector})}static \u0275fac=function(r){return new(r||e)};static \u0275dir=_n({type:e,selectors:[["","formField",""]],inputs:{formField:[1,"formField"]},features:[mr([{provide:TT,useExisting:e},{provide:$c,useFactory:()=>h(e).getOrCreateNgControl()}])]})}return e})();function yD(e,t){return e instanceof Function?e(t):e}function NT(e){return typeof e=="number"?isNaN(e):e===""||e===!1||e==null}function RT(e,t){eh(e),Xt.unwrapFieldPath(e).builder.addSyncErrorRule(r=>rh(t(r),r.fieldTree))}function xT(e){return new sh(e)}var ih=class{__brand=void 0;kind="";fieldTree;message;constructor(t){t&&Object.assign(this,t)}},sh=class extends ih{kind="required"};function nn(e,t){let n=th(e,en(),r=>t?.when?t.when(r):!0);th(e,nh,({state:r})=>r.metadata(n)()),RT(e,r=>{if(r.state.metadata(n)()&&NT(r.value()))return t?.error?yD(t.error,r):xT({message:yD(t?.message,r)})})}var vD=Symbol("");function DD(e){return new Proxy(e,{has(t,n){return!!this.get(t,n,void 0)},get(t,n){let r=F(t);return!kT(r)||!(n in r)?(Ua(t[n])&&t[n][vD]&&delete t[n],t[n]):(Ua(t[n])||(Object.defineProperty(t,n,{value:T(()=>t()[n]),configurable:!0}),t[n][vD]=!0),DD(t[n]))}})}var OT=[WeakSet,WeakMap,Promise,Date,Error,RegExp,ArrayBuffer,DataView,Function];function kT(e){if(e===null||typeof e!="object"||FT(e))return!1;let t=Object.getPrototypeOf(e);if(t===Object.prototype)return!0;for(;t&&t!==Object.prototype;){if(OT.includes(t.constructor))return!1;t=Object.getPrototypeOf(t)}return t===Object.prototype}function FT(e){return typeof e?.[Symbol.iterator]=="function"}var PT=new WeakMap,Ye=Symbol("");function we(e,...t){let n=F(()=>ED(e)),r=t.reduce((s,a)=>g(g({},s),typeof a=="function"?a(s):a),n),o=e[Ye],i=Reflect.ownKeys(e[Ye]);for(let s of Reflect.ownKeys(r))if(i.includes(s)){let a=s;n[a]!==r[a]&&o[a].set(r[a])}jT(e)}function ED(e){let t=e[Ye];return Reflect.ownKeys(e[Ye]).reduce((n,r)=>{let o=t[r]();return _(g({},n),{[r]:o})},{})}function LT(e){return PT.get(e[Ye])||[]}function jT(e){let t=LT(e);for(let n of t){let r=F(()=>ED(e));n(r)}}function CD(...e){let t=[...e],n=typeof t[0]=="function"?{}:t.shift(),r=t;return(()=>{class i{constructor(){let a=r.reduce((D,v)=>v(D),VT()),{stateSignals:c,props:u,methods:l,hooks:d}=a,p=g(g(g({},c),u),l);this[Ye]=a[Ye];for(let D of Reflect.ownKeys(p))this[D]=p[D];let{onInit:f,onDestroy:m}=d;f&&f(),m&&h(ke).onDestroy(m)}static \u0275fac=function(c){return new(c||i)};static \u0275prov=b({token:i,factory:i.\u0275fac,providedIn:n.providedIn||null})}return i})()}function VT(){return{[Ye]:{},stateSignals:{},props:{},methods:{},hooks:{}}}function bD(e){return t=>{let n=e(g(g(g({[Ye]:t[Ye]},t.stateSignals),t.props),t.methods));return _(g({},t),{props:g(g({},t.props),n)})}}function wD(e){return t=>{let n=e(g(g(g({[Ye]:t[Ye]},t.stateSignals),t.props),t.methods));return _(g({},t),{methods:g(g({},t.methods),n)})}}function _D(e){return t=>{let n=typeof e=="function"?e():e,r=Reflect.ownKeys(n),o=t[Ye],i={};for(let s of r)o[s]=z(n[s]),i[s]=DD(o[s]);return _(g({},t),{stateSignals:g(g({},t.stateSignals),i)})}}var kn=CD({providedIn:"root"},_D({filter:{id:0},articles:[],article:void 0,isLoading:!1,error:null}),bD(()=>({_apiService:h(bo)})),wD(e=>({async loadArticles(t){we(e,{isLoading:!0,error:null});try{let n=await zn(e._apiService.getArticles(t));we(e,{articles:n.articles,isLoading:!1})}catch{we(e,{isLoading:!1,error:"Failed to load articles"})}},async load(t){we(e,{isLoading:!0,error:null});try{let n=await zn(e._apiService.getArticle(t));we(e,{article:n,isLoading:!1})}catch(n){we(e,{error:n.message||"Failed to load article",isLoading:!1})}},async createArticle(t){we(e,{isLoading:!0,error:null});try{let n=await zn(e._apiService.createArticle(t));return we(e,r=>({articles:[...r.articles,n],isLoading:!1})),{status:"success"}}catch(n){return we(e,{error:n.message||"Failed to create article"}),{status:"error",error:n}}finally{we(e,{isLoading:!1})}},async saveArticle(t){console.log("store: saveArticle!"),we(e,{isLoading:!0,error:null});try{let n=e.article();if(n){let r=await zn(e._apiService.updateArticle(n.id,t));we(e,{article:r})}return{status:"success"}}catch(n){return we(e,{error:n.message||"Failed to save article"}),{status:"error",error:n}}finally{we(e,{isLoading:!1})}},async deleteArticle(t){we(e,{isLoading:!0,error:null});try{await zn(e._apiService.deleteArticle(t)),we(e,n=>({articles:n.articles.filter(r=>r.id!==t),isLoading:!1}))}catch{we(e,{error:"Failed to delete article",isLoading:!1})}},update(t,n){return e._apiService.updateArticle(t,n)}})));var BT=(e,t)=>t.id;function UT(e,t){e&1&&(I(0,"a",4),P(1,"Create New"),w())}function HT(e,t){if(e&1){let n=gr();I(0,"footer",11)(1,"button",12),se("click",function(){ht(n);let o=ee().$implicit,i=ee();return pt(i.editArticle(o.id))}),P(2,"Edit"),w(),I(3,"button",13),se("click",function(){ht(n);let o=ee().$implicit,i=ee();return pt(i.deleteArticle(o.id))}),P(4,"Delete"),w()()}}function $T(e,t){if(e&1&&(I(0,"article",6)(1,"h2",9),P(2),w(),I(3,"time"),P(4),Pd(5,"date"),w(),I(6,"div",10)(7,"p"),P(8),w()(),pe(9,HT,5,0,"footer",11),w()),e&2){let n=t.$implicit,r=ee();L(),qa("title",n.title),L(),Ue(n.title),L(2),Ue(Ld(5,5,n.createdAt,"yyyy/MM/dd HH:mm")),L(4),Ue(n.content),L(),ge(r.authService.isLoggedIn()?9:-1)}}function zT(e,t){e&1&&(I(0,"p",7),P(1,"No articles found."),w())}function GT(e,t){e&1&&(I(0,"div",8),P(1,"Loading..."),w())}var eu=class e{authService=h(Nn);router=h(Pe);store=h(kn);searchSignal=z({query:""});searchForm=tn(this.searchSignal);querySignal=T(()=>this.searchSignal().query);constructor(){Gv(this.querySignal).pipe(Iu(300),Su()).subscribe(t=>{this.store.loadArticles(t)})}ngOnInit(){this.store.loadArticles()}trimmedArticles=T(()=>this.store.articles().map(t=>qT(t)));search(t){t.preventDefault()}editArticle(t){this.router.navigate(["/edit",t])}deleteArticle(t){confirm("Are you sure you want to delete this article?")&&this.store.deleteArticle(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=qe({type:e,selectors:[["app-home"]],decls:13,vars:5,consts:[[1,"nav"],[1,"search-form",3,"submit"],[1,"search-container"],["type","text","placeholder","Search Articles...",1,"search-bar",2,"padding","0.5rem","margin-right","0.5rem",3,"formField"],["routerLink","/new","id","createNew",1,"btn","btn-link","btn-electric"],[1,"articles-container"],[1,"article-card"],[1,"text-center"],[1,"loading-overlay"],[3,"title"],[1,"content"],[1,"actions"],[1,"btn","btn-text",2,"margin-right","5px",3,"click"],[1,"btn","btn-danger",2,"margin-right","5px",3,"click"]],template:function(n,r){n&1&&(I(0,"header",0)(1,"h1"),P(2,"My Blog"),w(),I(3,"form",1),se("submit",function(i){return r.search(i)}),I(4,"div",2),Ee(5,"input",3),Be(),w(),pe(6,UT,2,0,"a",4),w()(),I(7,"main")(8,"section",5),qt(9,$T,10,8,"article",6,BT,!1,zT,2,0,"p",7),w()(),pe(12,GT,2,0,"div",8)),n&2&&(L(5),rt(r.searchForm.query,"formField"),L(),ge(r.authService.isLoggedIn()?6:-1),L(3),Wt(r.trimmedArticles()),L(3),ge(r.store.isLoading()?12:-1))},dependencies:[it,On,Co,Gd],styles:["header[_ngcontent-%COMP%]{padding:3rem 1rem;text-align:center;margin-bottom:2rem;color:#fff}header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0 0 2.4rem;font-size:50px;font-weight:800}.search-form[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:12px;max-width:600px;margin:0 auto}.search-bar[_ngcontent-%COMP%]{padding:12px 16px;font-size:1rem;border:1px solid var(--border);border-radius:4px;width:100%;max-width:350px;outline:none;transition:all .2s ease;background-color:#fafafa;color:#000}.search-bar[_ngcontent-%COMP%]:focus{border-color:var(--azure);box-shadow:0 0 0 4px var(--azure-soft)}.search-bar[_ngcontent-%COMP%]::placeholder{color:#676d74}.articles-container[_ngcontent-%COMP%]{max-width:800px;margin:0 auto;padding:0 1rem 3rem;display:flex;flex-direction:column;gap:1.5rem}.article-card[_ngcontent-%COMP%]{border:1px solid #eee;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0000000d;transition:transform .2s,box-shadow .2s}.article-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 12px 24px #0000001a;border-color:var(--azure)}#createNew[_ngcontent-%COMP%]{margin-left:15px}"]})};function qT(e){return _(g({},e),{title:e.title.length>28?e.title.substring(0,28)+"...":e.title,content:e.content.length>400?e.content.substring(0,400)+"...":e.content})}function WT(e,t){if(e&1&&(I(0,"div",1),P(1),w()),e&2){let n=ee();L(),Ue(n.errorMessage())}}var tu=class e{authService=h(Nn);credentials=z({username:"",password:""});errorMessage=z("");loginForm=tn(this.credentials,t=>{nn(t.username),nn(t.password)});login(){Mr(this.loginForm,async()=>{let{username:t,password:n}=this.credentials();this.errorMessage.set(""),this.authService.login(t,n).subscribe(r=>{r&&r.error&&this.errorMessage.set(r.message||"Login failed")})})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=qe({type:e,selectors:[["app-login"]],decls:15,vars:5,consts:[[1,"login-container"],[1,"error-message"],[3,"ngSubmit"],[1,"form-group"],["for","username"],["type","text","id","username",3,"formField"],["for","password"],["type","password","id","password",3,"formField"],["type","submit",1,"btn",3,"click"]],template:function(n,r){n&1&&(I(0,"div",0)(1,"h2"),P(2,"Login"),w(),pe(3,WT,2,1,"div",1),I(4,"form",2),se("ngSubmit",function(){return r.login()}),I(5,"div",3)(6,"label",4),P(7,"Username"),w(),Ee(8,"input",5),Be(),w(),I(9,"div",3)(10,"label",6),P(11,"Password"),w(),Ee(12,"input",7),Be(),w(),I(13,"div",8),se("click",function(){return r.login()}),P(14,"Sign In"),w()()()),n&2&&(L(3),ge(r.errorMessage()?3:-1),L(5),rt(r.loginForm.username,"formField"),L(4),rt(r.loginForm.password,"formField"))},dependencies:[it,On],styles:[".login-container[_ngcontent-%COMP%]{max-width:400px;margin:2rem auto;padding:2rem;border:1px solid #ddd;border-radius:8px}.form-group[_ngcontent-%COMP%]{margin-bottom:1rem}label[_ngcontent-%COMP%]{display:block;margin-bottom:.5rem}input[_ngcontent-%COMP%]{width:100%;padding:.5rem;box-sizing:border-box}button[_ngcontent-%COMP%]{padding:.5rem 1rem;background:#007bff;color:#fff;border:none;border-radius:4px;cursor:pointer}.error-message[_ngcontent-%COMP%]{color:#721c24;background-color:#f8d7da;border:1px solid #f5c6cb;padding:.75rem;margin-bottom:1rem;border-radius:4px}"]})};var ID=(e,t)=>t.kind;function ZT(e,t){if(e&1&&(I(0,"small"),P(1),w()),e&2){let n=t.$implicit;L(),Ue(n.message)}}function KT(e,t){if(e&1&&(I(0,"div",6),qt(1,ZT,2,1,"small",null,ID),w()),e&2){let n=ee(2);L(),Wt(n.editForm.title().errors())}}function YT(e,t){if(e&1&&(I(0,"small"),P(1),w()),e&2){let n=t.$implicit;L(),Ue(n.message)}}function QT(e,t){if(e&1&&(I(0,"div",6),qt(1,YT,2,1,"small",null,ID),w()),e&2){let n=ee(2);L(),Wt(n.editForm.content().errors())}}function JT(e,t){if(e&1){let n=gr();I(0,"div",0)(1,"h2"),P(2,"Edit Article"),w(),I(3,"form",2),se("ngSubmit",function(){ht(n);let o=ee();return pt(o.save())}),I(4,"div",3)(5,"label",4),P(6,"Title"),w(),Ee(7,"input",5),Be(),pe(8,KT,3,0,"div",6),w(),I(9,"div",3)(10,"label",7),P(11,"Content"),w(),Ee(12,"textarea",8),Be(),pe(13,QT,3,0,"div",6),w(),I(14,"button",9),se("click",function(){ht(n);let o=ee();return pt(o.save())}),P(15,"Save"),w(),I(16,"button",10),se("click",function(){ht(n);let o=ee();return pt(o.cancel())}),P(17,"Cancel"),w()()()}if(e&2){let n=ee();L(7),rt(n.editForm.title,"formField"),L(),ge(n.editForm.title().touched()&&n.editForm.title().invalid()?8:-1),L(4),rt(n.editForm.content,"formField"),L(),ge(n.editForm.content().touched()&&n.editForm.content().invalid()?13:-1)}}function XT(e,t){e&1&&(I(0,"div",1),P(1,`
6
+ is Loading...
7
+ `),w())}var nu=class e{route=h(bt);router=h(Pe);store=h(kn);articleModel=z({id:0,title:"",content:""});editForm=tn(this.articleModel,t=>{nn(t.title,{message:"Title is required"}),nn(t.content,{message:"Content is required"})});id=null;isPending=this.store.isLoading;constructor(){gt(()=>{let t=this.store.article();t&&this.articleModel.set({id:t.id,title:t.title,content:t.content})})}ngOnInit(){let t=this.route.snapshot.paramMap.get("id");t&&(this.id=t,this.store.load(+t))}save(){Mr(this.editForm,async t=>{let n=await this.store.saveArticle(t().value());return n.status==="error"?{kind:"processing_error",error:n.error}:(this.router.navigate(["/"]),null)})}cancel(){this.router.navigate(["/"])}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=qe({type:e,selectors:[["app-edit"]],features:[mr([kn])],decls:2,vars:2,consts:[[1,"edit-container"],[1,"overlay"],[3,"ngSubmit"],[1,"form-group"],["for","title"],["type","text","id","title",3,"formField"],[2,"color","var(--red)"],["for","content"],["id","content","rows","10",3,"formField"],["type","button",1,"btn","btn-default",3,"click"],["type","button",1,"btn","btn-secondary",3,"click"]],template:function(n,r){n&1&&(pe(0,JT,18,6,"div",0),pe(1,XT,2,0,"div",1)),n&2&&(ge(r.editForm.id().value()!==0?0:-1),L(),ge(r.isPending()?1:-1))},dependencies:[it,On],styles:[".edit-container[_ngcontent-%COMP%]{max-width:600px;margin:2rem auto;padding:2rem}.form-group[_ngcontent-%COMP%]{margin-bottom:1rem}label[_ngcontent-%COMP%]{display:block;margin-bottom:.5rem}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{width:100%;padding:.5rem;box-sizing:border-box}.btn[_ngcontent-%COMP%]{margin-right:.5rem;padding:.5rem 1rem;cursor:pointer}.error-message[_ngcontent-%COMP%]{color:red;font-size:.875rem;margin-top:.25rem}.error[_ngcontent-%COMP%]{color:red}"]})};var SD=(e,t)=>t.kind;function e0(e,t){if(e&1&&(I(0,"small"),P(1),w()),e&2){let n=t.$implicit;L(),Ue(n.message)}}function t0(e,t){if(e&1&&(I(0,"div",5),qt(1,e0,2,1,"small",null,SD),w()),e&2){let n=ee();L(),Wt(n.createForm.title().errors())}}function n0(e,t){if(e&1&&(I(0,"small"),P(1),w()),e&2){let n=t.$implicit;L(),Ue(n.message)}}function r0(e,t){if(e&1&&(I(0,"div",5),qt(1,n0,2,1,"small",null,SD),w()),e&2){let n=ee();L(),Wt(n.createForm.content().errors())}}function o0(e,t){e&1&&(I(0,"div",10),P(1," is Loading... "),w())}var ru=class e{router=h(Pe);store=h(kn);articleModel=z({title:"",content:""});createForm=tn(this.articleModel,t=>{nn(t.title,{message:"Title is required"}),nn(t.content,{message:"Content is required"})});save(){Mr(this.createForm,async t=>{let n=await this.store.createArticle(t().value());return n.status==="error"?{kind:"processing_error",error:n.error}:(this.router.navigate(["/"]),null)})}cancel(){this.router.navigate(["/"])}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=qe({type:e,selectors:[["app-create"]],features:[mr([kn])],decls:19,vars:7,consts:[[1,"create-container"],[3,"ngSubmit"],[1,"form-group"],["for","title"],["type","text","id","title",3,"formField"],[2,"color","var(--red)"],["for","content"],["id","content","rows","10",3,"formField"],["type","button",1,"btn","btn-default","mr-2",3,"click"],["type","button",1,"btn","btn-secondary",3,"click"],[1,"overlay"]],template:function(n,r){n&1&&(I(0,"div",0)(1,"h2"),P(2,"Create New Article"),w(),I(3,"form",1),se("ngSubmit",function(){return r.save()}),I(4,"div",2)(5,"label",3),P(6,"Title"),w(),Ee(7,"input",4),Be(),pe(8,t0,3,0,"div",5),w(),I(9,"div",2)(10,"label",6),P(11,"Content"),w(),Ee(12,"textarea",7),Be(),pe(13,r0,3,0,"div",5),w(),I(14,"button",8),se("click",function(){return r.save()}),P(15,"Create"),w(),I(16,"button",9),se("click",function(){return r.cancel()}),P(17,"Cancel"),w()()(),pe(18,o0,2,0,"div",10)),n&2&&(L(7),rt(r.createForm.title,"formField"),L(),ge(r.createForm.title().touched()&&r.createForm.title().invalid()?8:-1),L(4),rt(r.createForm.content,"formField"),L(),ge(r.createForm.content().touched()&&r.createForm.content().invalid()?13:-1),L(5),ge(r.store.isLoading()?18:-1))},dependencies:[it,On],styles:[".create-container[_ngcontent-%COMP%]{max-width:600px;margin:2rem auto;padding:2rem}.overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background:#ffffffb3;display:flex;justify-content:center;align-items:center}.btn[_ngcontent-%COMP%]{margin-right:.5rem;padding:.5rem 1rem;cursor:pointer}"]})};var MD=[{path:"",component:eu},{path:"login",component:tu},{path:"edit/:id",component:nu},{path:"new",component:ru},{path:"**",redirectTo:""}];var TD={providers:[cf(uf()),kf(MD)]};function i0(e,t){if(e&1){let n=gr();I(0,"a",5),P(1,"create new"),w(),I(2,"button",6),se("click",function(){ht(n);let o=ee();return pt(o.authService.logout())}),P(3,"Logout"),w()}}function s0(e,t){e&1&&(I(0,"a",7),P(1,"Login"),w())}function a0(e,t){if(e&1&&pe(0,s0,2,0,"a",7),e&2){let n=ee();ge(n.isLoginPage()?-1:0)}}var ou=class e{authService=h(Nn);router=h(Pe);isLoginPage(){return this.router.url==="/login"}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=qe({type:e,selectors:[["app-root"]],decls:9,vars:1,consts:[[1,"main-nav"],[1,"nav-brand"],["routerLink","/",1,"brand-link"],[1,"nav-actions"],[1,"toggle-wrapper"],["routerLink","/new",1,"btn","nav-link","inverted"],[1,"btn","btn-link","inverted",3,"click"],["routerLink","/login",1,"btn","btn-link"]],template:function(n,r){n&1&&(I(0,"nav",0)(1,"div",1)(2,"a",2),P(3,"My Blog"),w()(),I(4,"div",3),pe(5,i0,4,0)(6,a0,1,1),Ee(7,"div",4),w()(),Ee(8,"router-outlet")),n&2&&(L(5),ge(r.authService.isLoggedIn()?5:6))},dependencies:[it,Ki,Co],styles:[".main-nav[_ngcontent-%COMP%]{color:#fff;display:flex;justify-content:space-between;align-items:center;width:100%;height:64px;padding:0 0rem;box-sizing:border-box;box-shadow:0 2px 4px #0000001a;position:sticky;top:0;z-index:1000}.nav-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:15px;list-style:none;margin:0;padding:0}.nav-brand[_ngcontent-%COMP%] .brand-link[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:700;text-decoration:none;margin-left:15px}.toggle-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center} .main-nav .mdc-label{color:#fff!important}"]})};Xd(ou,TD).catch(e=>console.error(e));