From 40517335b7751ee1e4d8cc5b9f130793e14dfcf2 Mon Sep 17 00:00:00 2001 From: SondreB Date: Sun, 17 Nov 2024 00:08:57 +0000 Subject: [PATCH] Auto-generated commit Triggered by commit: https://github.com/sondreb/moments/commit/2e068b15b6faff29c30f50056cc28939433a658e --- 404.html | 2 +- index.html | 2 +- main-CG7TSDRZ.js | 8 ++++++++ main-CS5R27W5.js | 8 -------- ngsw.json | 8 ++++---- 5 files changed, 14 insertions(+), 14 deletions(-) create mode 100644 main-CG7TSDRZ.js delete mode 100644 main-CS5R27W5.js diff --git a/404.html b/404.html index 4ac2b69..84da5e6 100644 --- a/404.html +++ b/404.html @@ -13,5 +13,5 @@ - + diff --git a/index.html b/index.html index 4ac2b69..84da5e6 100644 --- a/index.html +++ b/index.html @@ -13,5 +13,5 @@ - + diff --git a/main-CG7TSDRZ.js b/main-CG7TSDRZ.js new file mode 100644 index 0000000..cb41cac --- /dev/null +++ b/main-CG7TSDRZ.js @@ -0,0 +1,8 @@ +var zp=Object.defineProperty,Gp=Object.defineProperties;var Wp=Object.getOwnPropertyDescriptors;var Tu=Object.getOwnPropertySymbols;var qp=Object.prototype.hasOwnProperty,Zp=Object.prototype.propertyIsEnumerable;var Nu=(e,t,n)=>t in e?zp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g=(e,t)=>{for(var n in t||={})qp.call(t,n)&&Nu(e,n,t[n]);if(Tu)for(var n of Tu(t))Zp.call(t,n)&&Nu(e,n,t[n]);return e},q=(e,t)=>Gp(e,Wp(t));var nr=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(u){o(u)}},s=c=>{try{a(n.throw(c))}catch(u){o(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});var ns=null;var ts=1,Au=Symbol("SIGNAL");function k(e){let t=ns;return ns=e,t}function Ru(){return ns}var rs={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Yp(e){if(!(cs(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===ts)){if(!e.producerMustRecompute(e)&&!is(e)){e.dirty=!1,e.lastCleanEpoch=ts;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=ts}}function os(e){return e&&(e.nextProducerIndex=0),k(e)}function Ou(e,t){if(k(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(cs(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function is(e){us(e);for(let t=0;t0}function us(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Qp(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Xp(e){return e.producerNode!==void 0}function Kp(){throw new Error}var Jp=Kp;function Pu(e){Jp=e}function v(e){return typeof e=="function"}function sn(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 Xr=sn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=n});function kt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Q=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(v(r))try{r()}catch(i){t=i instanceof Xr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{ku(i)}catch(s){t=t??[],s instanceof Xr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Xr(t)}}add(t){var n;if(t&&t!==this)if(this.closed)ku(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)&&kt(n,t)}remove(t){let{_finalizers:n}=this;n&&kt(n,t),t instanceof e&&t._removeParent(this)}};Q.EMPTY=(()=>{let e=new Q;return e.closed=!0,e})();var ls=Q.EMPTY;function Kr(e){return e instanceof Q||e&&"closed"in e&&v(e.remove)&&v(e.add)&&v(e.unsubscribe)}function ku(e){v(e)?e():e.unsubscribe()}var Te={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var an={setTimeout(e,t,...n){let{delegate:r}=an;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=an;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Jr(e){an.setTimeout(()=>{let{onUnhandledError:t}=Te;if(t)t(e);else throw e})}function Je(){}var Fu=ds("C",void 0,void 0);function Lu(e){return ds("E",void 0,e)}function ju(e){return ds("N",e,void 0)}function ds(e,t,n){return{kind:e,value:t,error:n}}var Ft=null;function cn(e){if(Te.useDeprecatedSynchronousErrorHandling){let t=!Ft;if(t&&(Ft={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Ft;if(Ft=null,n)throw r}}else e()}function Vu(e){Te.useDeprecatedSynchronousErrorHandling&&Ft&&(Ft.errorThrown=!0,Ft.error=e)}var Lt=class extends Q{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Kr(t)&&t.add(this)):this.destination=ng}static create(t,n,r){return new un(t,n,r)}next(t){this.isStopped?hs(ju(t),this):this._next(t)}error(t){this.isStopped?hs(Lu(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?hs(Fu,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()}}},eg=Function.prototype.bind;function fs(e,t){return eg.call(e,t)}var ps=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){eo(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){eo(r)}else eo(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){eo(n)}}},un=class extends Lt{constructor(t,n,r){super();let o;if(v(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Te.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&fs(t.next,i),error:t.error&&fs(t.error,i),complete:t.complete&&fs(t.complete,i)}):o=t}this.destination=new ps(o)}};function eo(e){Te.useDeprecatedSynchronousErrorHandling?Vu(e):Jr(e)}function tg(e){throw e}function hs(e,t){let{onStoppedNotification:n}=Te;n&&an.setTimeout(()=>n(e,t))}var ng={closed:!0,next:Je,error:tg,complete:Je};var ln=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ge(e){return e}function gs(...e){return ms(e)}function ms(e){return e.length===0?ge:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var R=(()=>{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=og(n)?n:new un(n,r,o);return cn(()=>{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=$u(r),new r((o,i)=>{let s=new un({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)}[ln](){return this}pipe(...n){return ms(n)(this)}toPromise(n){return n=$u(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 $u(e){var t;return(t=e??Te.Promise)!==null&&t!==void 0?t:Promise}function rg(e){return e&&v(e.next)&&v(e.error)&&v(e.complete)}function og(e){return e&&e instanceof Lt||rg(e)&&Kr(e)}function vs(e){return v(e?.lift)}function N(e){return t=>{if(vs(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 O(e,t,n,r,o){return new ys(e,t,n,r,o)}var ys=class extends Lt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function dn(){return N((e,t)=>{let n=null;e._refCount++;let r=O(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var pt=class extends R{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,vs(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Q;let n=this.getSubject();t.add(this.source.subscribe(O(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Q.EMPTY)}return t}refCount(){return dn()(this)}};var Bu=sn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var X=(()=>{class e extends R{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new to(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Bu}next(n){cn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){cn(()=>{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(){cn(()=>{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?ls:(this.currentObservers=null,i.push(n),new Q(()=>{this.currentObservers=null,kt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new R;return n.source=this,n}}return e.create=(t,n)=>new to(t,n),e})(),to=class extends X{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:ls}};var ne=class extends X{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 Ds={now(){return(Ds.delegate||Date).now()},delegate:void 0};var no=class extends Q{constructor(t,n){super()}schedule(t,n=0){return this}};var rr={setInterval(e,t,...n){let{delegate:r}=rr;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=rr;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var ro=class extends no{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 rr.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&&rr.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,kt(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var fn=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)}};fn.now=Ds.now;var oo=class extends fn{constructor(t,n=fn.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 ws=new oo(ro),Uu=ws;var ce=new R(e=>e.complete());function io(e){return e&&v(e.schedule)}function Cs(e){return e[e.length-1]}function Hu(e){return v(Cs(e))?e.pop():void 0}function $e(e){return io(Cs(e))?e.pop():void 0}function zu(e,t){return typeof Cs(e)=="number"?e.pop():t}function Wu(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 Gu(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 jt(e){return this instanceof jt?(this.v=e,this):new jt(e)}function qu(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(T){return new Promise(function(V,H){i.push([f,T,V,H])>1||c(f,T)})},m&&(o[f]=m(o[f])))}function c(f,m){try{u(r[f](m))}catch(T){h(i[0][3],T)}}function u(f){f.value instanceof jt?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function h(f,m){f(m),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Zu(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 Gu=="function"?Gu(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 hn=e=>e&&typeof e.length=="number"&&typeof e!="function";function so(e){return v(e?.then)}function ao(e){return v(e[ln])}function co(e){return Symbol.asyncIterator&&v(e?.[Symbol.asyncIterator])}function uo(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 ig(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var lo=ig();function fo(e){return v(e?.[lo])}function ho(e){return qu(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield jt(n.read());if(o)return yield jt(void 0);yield yield jt(r)}}finally{n.releaseLock()}})}function po(e){return v(e?.getReader)}function $(e){if(e instanceof R)return e;if(e!=null){if(ao(e))return sg(e);if(hn(e))return ag(e);if(so(e))return cg(e);if(co(e))return Yu(e);if(fo(e))return ug(e);if(po(e))return lg(e)}throw uo(e)}function sg(e){return new R(t=>{let n=e[ln]();if(v(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ag(e){return new R(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Jr)})}function ug(e){return new R(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Yu(e){return new R(t=>{dg(e,t).catch(n=>t.error(n))})}function lg(e){return Yu(ho(e))}function dg(e,t){var n,r,o,i;return Wu(this,void 0,void 0,function*(){try{for(n=Zu(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 fe(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 go(e,t=0){return N((n,r)=>{n.subscribe(O(r,o=>fe(r,e,()=>r.next(o),t),()=>fe(r,e,()=>r.complete(),t),o=>fe(r,e,()=>r.error(o),t)))})}function mo(e,t=0){return N((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Qu(e,t){return $(e).pipe(mo(t),go(t))}function Xu(e,t){return $(e).pipe(mo(t),go(t))}function Ku(e,t){return new R(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Ju(e,t){return new R(n=>{let r;return fe(n,t,()=>{r=e[lo](),fe(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)}),()=>v(r?.return)&&r.return()})}function vo(e,t){if(!e)throw new Error("Iterable cannot be null");return new R(n=>{fe(n,t,()=>{let r=e[Symbol.asyncIterator]();fe(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function el(e,t){return vo(ho(e),t)}function tl(e,t){if(e!=null){if(ao(e))return Qu(e,t);if(hn(e))return Ku(e,t);if(so(e))return Xu(e,t);if(co(e))return vo(e,t);if(fo(e))return Ju(e,t);if(po(e))return el(e,t)}throw uo(e)}function z(e,t){return t?tl(e,t):$(e)}function D(...e){let t=$e(e);return z(e,t)}function gt(e,t){let n=v(e)?e:()=>e,r=o=>o.error(n());return new R(t?o=>t.schedule(r,0,o):r)}function Is(e){return!!e&&(e instanceof R||v(e.lift)&&v(e.subscribe))}var et=sn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function nl(e){return e instanceof Date&&!isNaN(e)}function b(e,t){return N((n,r)=>{let o=0;n.subscribe(O(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:fg}=Array;function hg(e,t){return fg(t)?e(...t):e(t)}function yo(e){return b(t=>hg(e,t))}var{isArray:pg}=Array,{getPrototypeOf:gg,prototype:mg,keys:vg}=Object;function rl(e){if(e.length===1){let t=e[0];if(pg(t))return{args:t,keys:null};if(yg(t)){let n=vg(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function yg(e){return e&&typeof e=="object"&&gg(e)===mg}function ol(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function or(...e){let t=$e(e),n=Hu(e),{args:r,keys:o}=rl(e);if(r.length===0)return z([],t);let i=new R(Dg(r,t,o?s=>ol(o,s):ge));return n?i.pipe(yo(n)):i}function Dg(e,t,n=ge){return r=>{il(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c{let u=z(e[c],t),l=!1;u.subscribe(O(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function il(e,t,n){e?fe(n,e,t):t()}function sl(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&t.complete()},f=T=>u{i&&t.next(T),u++;let V=!1;$(n(T,l++)).subscribe(O(t,H=>{o?.(H),i?f(H):t.next(H)},()=>{V=!0},void 0,()=>{if(V)try{for(u--;c.length&&um(H)):m(H)}h()}catch(H){t.error(H)}}))};return e.subscribe(O(t,f,()=>{d=!0,h()})),()=>{a?.()}}function Z(e,t,n=1/0){return v(t)?Z((r,o)=>b((i,s)=>t(r,i,o,s))($(e(r,o))),n):(typeof t=="number"&&(n=t),N((r,o)=>sl(r,o,e,n)))}function mt(e=1/0){return Z(ge,e)}function al(){return mt(1)}function Be(...e){return al()(z(e,$e(e)))}function Vt(e){return new R(t=>{$(e()).subscribe(t)})}var wg=["addListener","removeListener"],Cg=["addEventListener","removeEventListener"],Ig=["on","off"];function pn(e,t,n,r){if(v(n)&&(r=n,n=void 0),r)return pn(e,t,n).pipe(yo(r));let[o,i]=Mg(e)?Cg.map(s=>a=>e[s](t,a,n)):Eg(e)?wg.map(cl(e,t)):bg(e)?Ig.map(cl(e,t)):[];if(!o&&hn(e))return Z(s=>pn(s,t,n))($(e));if(!o)throw new TypeError("Invalid event target");return new R(s=>{let a=(...c)=>s.next(1i(a)})}function cl(e,t){return n=>r=>e[n](t,r)}function Eg(e){return v(e.addListener)&&v(e.removeListener)}function bg(e){return v(e.on)&&v(e.off)}function Mg(e){return v(e.addEventListener)&&v(e.removeEventListener)}function ul(e=0,t,n=Uu){let r=-1;return t!=null&&(io(t)?n=t:r=t),new R(o=>{let i=nl(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function Do(...e){let t=$e(e),n=zu(e,1/0),r=e;return r.length?r.length===1?$(r[0]):mt(n)(z(r,t)):ce}var $t=new R(Je);function re(e,t){return N((n,r)=>{let o=0;n.subscribe(O(r,i=>e.call(t,i,o++)&&r.next(i)))})}function vt(e){return N((t,n)=>{let r=null,o=!1,i;r=t.subscribe(O(n,void 0,void 0,s=>{i=$(e(s,vt(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function ll(e,t,n,r,o){return(i,s)=>{let a=n,c=t,u=0;i.subscribe(O(s,l=>{let d=u++;c=a?e(c,l,d):(a=!0,l),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function Bt(e,t){return v(t)?Z(e,t,1):Z(e,1)}function dl(e){return new R(t=>e.subscribe(t))}var Sg={connector:()=>new X};function wo(e,t=Sg){let{connector:n}=t;return N((r,o)=>{let i=n();$(e(dl(i))).subscribe(o),o.add(r.subscribe(i))})}function yt(e){return N((t,n)=>{let r=!1;t.subscribe(O(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function J(e){return e<=0?()=>ce:N((t,n)=>{let r=0;t.subscribe(O(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function fl(){return N((e,t)=>{e.subscribe(O(t,Je))})}function ir(e){return b(()=>e)}function Es(e,t){return t?n=>Be(t.pipe(J(1),fl()),n.pipe(Es(e))):Z((n,r)=>$(e(n,r)).pipe(J(1),ir(n)))}function bs(e,t=ws){let n=ul(e,t);return Es(()=>n)}function Co(e=_g){return N((t,n)=>{let r=!1;t.subscribe(O(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function _g(){return new et}function sr(e){return N((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Ue(e,t){let n=arguments.length>=2;return r=>r.pipe(e?re((o,i)=>e(o,i,r)):ge,J(1),n?yt(t):Co(()=>new et))}function gn(e){return e<=0?()=>ce:N((t,n)=>{let r=[];t.subscribe(O(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Ms(e,t){let n=arguments.length>=2;return r=>r.pipe(e?re((o,i)=>e(o,i,r)):ge,gn(1),n?yt(t):Co(()=>new et))}function hl(e,t){let n=v(e)?e:()=>e;return v(t)?wo(t,{connector:n}):r=>new pt(r,n)}function Ss(e){return e?t=>wo(e)(t):t=>hl(new X)(t)}function _s(e,t){return N(ll(e,t,arguments.length>=2,!0))}function xs(...e){let t=$e(e);return N((n,r)=>{(t?Be(e,n,t):Be(e,n)).subscribe(r)})}function oe(e,t){return N((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(O(r,c=>{o?.unsubscribe();let u=0,l=i++;$(e(c,l)).subscribe(o=O(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Ts(e){return N((t,n)=>{$(e).subscribe(O(n,()=>n.complete(),Je)),!n.closed&&t.subscribe(n)})}function ee(e,t,n){let r=v(e)||t||n?{next:e,error:t,complete:n}:e;return r?N((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(O(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)}))}):ge}var Jl="https://g.co/ng/security#xss",w=class extends Error{constructor(t,n){super(La(t,n)),this.code=t}};function La(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function mr(e){return{toString:e}.toString()}var Io="__parameters__";function xg(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function ed(e,t,n){return mr(()=>{let r=xg(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(Io)?c[Io]:Object.defineProperty(c,Io,{value:[]})[Io];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var Bs=globalThis;function L(e){for(let t in e)if(e[t]===L)return t;throw Error("Could not find renamed property on target object.")}function ue(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(ue).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` +`);return n===-1?t:t.substring(0,n)}function pl(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Tg=L({__forward_ref__:L});function td(e){return e.__forward_ref__=td,e.toString=function(){return ue(this())},e}function Ee(e){return nd(e)?e():e}function nd(e){return typeof e=="function"&&e.hasOwnProperty(Tg)&&e.__forward_ref__===td}function y(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 ei(e){return gl(e,od)||gl(e,id)}function rd(e){return ei(e)!==null}function gl(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ng(e){let t=e&&(e[od]||e[id]);return t||null}function ml(e){return e&&(e.hasOwnProperty(vl)||e.hasOwnProperty(Ag))?e[vl]:null}var od=L({\u0275prov:L}),vl=L({\u0275inj:L}),id=L({ngInjectableDef:L}),Ag=L({ngInjectorDef:L}),I=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=y({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function sd(e){return e&&!!e.\u0275providers}var Rg=L({\u0275cmp:L}),Og=L({\u0275dir:L}),Pg=L({\u0275pipe:L}),kg=L({\u0275mod:L}),Ro=L({\u0275fac:L}),cr=L({__NG_ELEMENT_ID__:L}),yl=L({__NG_ENV_ID__:L});function In(e){return typeof e=="string"?e:e==null?"":String(e)}function Fg(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():In(e)}function Lg(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new w(-200,e)}function ja(e,t){throw new w(-201,!1)}var _=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(_||{}),Us;function ad(){return Us}function Ie(e){let t=Us;return Us=e,t}function cd(e,t,n){let r=ei(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&_.Optional)return null;if(t!==void 0)return t;ja(e,"Injector")}var jg={},ur=jg,Hs="__NG_DI_FLAG__",Oo="ngTempTokenPath",Vg="ngTokenPath",$g=/\n/gm,Bg="\u0275",Dl="__source",wn;function Ug(){return wn}function Dt(e){let t=wn;return wn=e,t}function Hg(e,t=_.Default){if(wn===void 0)throw new w(-203,!1);return wn===null?cd(e,void 0,t):wn.get(e,t&_.Optional?null:void 0,t)}function E(e,t=_.Default){return(ad()||Hg)(Ee(e),t)}function p(e,t=_.Default){return E(e,ti(t))}function ti(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function zs(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):ue(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace($g,` + `)}`}var ni=ud(ed("Optional"),8);var Va=ud(ed("SkipSelf"),4);function En(e,t){let n=e.hasOwnProperty(Ro);return n?e[Ro]:null}function qg(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?$a(n,t):t(n))}function ld(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Po(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Yg(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Qg(e,t,n){let r=vr(e,t);return r>=0?e[r|1]=n:(r=~r,Yg(e,r,t,n)),r}function Ns(e,t){let n=vr(e,t);if(n>=0)return e[n|1]}function vr(e,t){return Xg(e,t,1)}function Xg(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(Ne(r))return!1;s=!0}}}}return Ne(r)||s}function Ne(e){return(e&1)===0}function rm(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Ne(s)&&(t+=Cl(i,o),o=""),r=s,i=i||!Ne(r);n++}return o!==""&&(t+=Cl(i,o)),t}function cm(e){return e.map(am).join(",")}function um(e){let t=[],n=[],r=1,o=2;for(;r{let t=wd(e),n=q(g({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===hd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ge.Emulated,styles:e.styles||Ae,_:null,schemas:e.schemas||null,tView:null,id:""});Cd(n);let r=e.dependencies;return n.directiveDefs=El(r,!1),n.pipeDefs=El(r,!0),n.id=fm(n),n})}function lm(e){return Et(e)||md(e)}function dm(e){return e!==null}function kn(e){return mr(()=>({type:e.type,bootstrap:e.bootstrap||Ae,declarations:e.declarations||Ae,imports:e.imports||Ae,exports:e.exports||Ae,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Il(e,t){if(e==null)return lr;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=It.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==It.None?[r,a]:r,t[i]=s):n[i]=r}return n}function Fn(e){return mr(()=>{let t=wd(e);return Cd(t),t})}function Et(e){return e[Rg]||null}function md(e){return e[Og]||null}function vd(e){return e[Pg]||null}function yd(e){let t=Et(e)||md(e)||vd(e);return t!==null?t.standalone:!1}function Dd(e,t){let n=e[kg]||null;if(!n&&t===!0)throw new Error(`Type ${ue(e)} does not have '\u0275mod' property.`);return n}function wd(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||lr,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Ae,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Il(e.inputs,t),outputs:Il(e.outputs),debugInfo:null}}function Cd(e){e.features?.forEach(t=>t(e))}function El(e,t){if(!e)return null;let n=t?vd:lm;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(dm)}function fm(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,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].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Ln(e){return{\u0275providers:e}}function hm(...e){return{\u0275providers:Id(!0,e),\u0275fromNgModule:!0}}function Id(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return $a(t,s=>{let a=s;Ws(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Ed(o,i),n}function Ed(e,t){for(let n=0;n{t(i,r)})}}function Ws(e,t,n,r){if(e=Ee(e),!e)return!1;let o=null,i=ml(e),s=!i&&Et(e);if(!i&&!s){let c=e.ngModule;if(i=ml(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)Ws(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{$a(i.imports,l=>{Ws(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Ed(u,t)}if(!a){let u=En(o)||(()=>new o);t({provide:o,useFactory:u,deps:Ae},o),t({provide:fd,useValue:o,multi:!0},o),t({provide:bn,useValue:()=>E(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Ha(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Ha(e,t){for(let n of e)sd(n)&&(n=n.\u0275providers),Array.isArray(n)?Ha(n,t):t(n)}var pm=L({provide:String,useValue:L});function bd(e){return e!==null&&typeof e=="object"&&pm in e}function gm(e){return!!(e&&e.useExisting)}function mm(e){return!!(e&&e.useFactory)}function qs(e){return typeof e=="function"}var ri=new I(""),So={},vm={},As;function za(){return As===void 0&&(As=new ko),As}var ve=class{},dr=class extends ve{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ys(t,s=>this.processProvider(s)),this.records.set(dd,mn(void 0,this)),o.has("environment")&&this.records.set(ve,mn(void 0,this));let i=this.records.get(ri);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(fd,Ae,_.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=k(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(),k(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=Dt(this),r=Ie(void 0),o;try{return t()}finally{Dt(n),Ie(r)}}get(t,n=ur,r=_.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(yl))return t[yl](this);r=ti(r);let o,i=Dt(this),s=Ie(void 0);try{if(!(r&_.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=Em(t)&&ei(t);u&&this.injectableDefInScope(u)?c=mn(Zs(t),So):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&_.Self?za():this.parent;return n=r&_.Optional&&n===ur?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Oo]=a[Oo]||[]).unshift(ue(t)),i)throw a;return Gg(a,t,"R3InjectorError",this.source)}else throw a}finally{Ie(s),Dt(i)}}resolveInjectorInitializers(){let t=k(null),n=Dt(this),r=Ie(void 0),o;try{let i=this.get(bn,Ae,_.Self);for(let s of i)s()}finally{Dt(n),Ie(r),k(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(ue(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processProvider(t){t=Ee(t);let n=qs(t)?t:Ee(t&&t.provide),r=Dm(t);if(!qs(t)&&t.multi===!0){let o=this.records.get(n);o||(o=mn(void 0,So,!0),o.factory=()=>zs(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=k(null);try{return n.value===So&&(n.value=vm,n.value=n.factory()),typeof n.value=="object"&&n.value&&Im(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{k(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Ee(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 Zs(e){let t=ei(e),n=t!==null?t.factory:En(e);if(n!==null)return n;if(e instanceof I)throw new w(204,!1);if(e instanceof Function)return ym(e);throw new w(204,!1)}function ym(e){if(e.length>0)throw new w(204,!1);let n=Ng(e);return n!==null?()=>n.factory(e):()=>new e}function Dm(e){if(bd(e))return mn(void 0,e.useValue);{let t=wm(e);return mn(t,So)}}function wm(e,t,n){let r;if(qs(e)){let o=Ee(e);return En(o)||Zs(o)}else if(bd(e))r=()=>Ee(e.useValue);else if(mm(e))r=()=>e.useFactory(...zs(e.deps||[]));else if(gm(e))r=()=>E(Ee(e.useExisting));else{let o=Ee(e&&(e.useClass||e.provide));if(Cm(e))r=()=>new o(...zs(e.deps));else return En(o)||Zs(o)}return r}function mn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Cm(e){return!!e.deps}function Im(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Em(e){return typeof e=="function"||typeof e=="object"&&e instanceof I}function Ys(e,t){for(let n of e)Array.isArray(n)?Ys(n,t):n&&sd(n)?Ys(n.\u0275providers,t):t(n)}function Ye(e,t){e instanceof dr&&e.assertNotDestroyed();let n,r=Dt(e),o=Ie(void 0);try{return t()}finally{Dt(r),Ie(o)}}function Md(){return ad()!==void 0||Ug()!=null}function bm(e){if(!Md())throw new w(-203,!1)}function Mm(e){return typeof e=="function"}var it=0,x=1,C=2,ae=3,Re=4,Pe=5,Fo=6,Lo=7,Oe=8,Mn=9,We=10,ie=11,fr=12,bl=13,jn=14,qe=15,Ht=16,vn=17,tt=18,oi=19,Sd=20,wt=21,Rs=22,be=23,nt=25,_d=1;var zt=7,jo=8,Sn=9,me=10,Vo=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Vo||{});function Ct(e){return Array.isArray(e)&&typeof e[_d]=="object"}function st(e){return Array.isArray(e)&&e[_d]===!0}function xd(e){return(e.flags&4)!==0}function ii(e){return e.componentOffset>-1}function Ga(e){return(e.flags&1)===1}function yr(e){return!!e.template}function Qs(e){return(e[C]&512)!==0}var Xs=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Td(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Dr(){return Nd}function Nd(e){return e.type.prototype.ngOnChanges&&(e.setInput=_m),Sm}Dr.ngInherit=!0;function Sm(){let e=Rd(this),t=e?.current;if(t){let n=e.previous;if(n===lr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function _m(e,t,n,r,o){let i=this.declaredInputs[r],s=Rd(e)||xm(e,{previous:lr,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Xs(u&&u.currentValue,n,c===lr),Td(e,t,o,n)}var Ad="__ngSimpleChanges__";function Rd(e){return e[Ad]||null}function xm(e,t){return e[Ad]=t}var Ml=null;var He=function(e,t,n){Ml?.(e,t,n)},Tm="svg",Nm="math";function Ze(e){for(;Array.isArray(e);)e=e[it];return e}function Od(e,t){return Ze(t[e])}function Se(e,t){return Ze(t[e.index])}function Pd(e,t){return e.data[t]}function Am(e,t){return e[t]}function St(e,t){let n=t[e];return Ct(n)?n:n[it]}function Rm(e){return(e[C]&4)===4}function Wa(e){return(e[C]&128)===128}function Om(e){return st(e[ae])}function $o(e,t){return t==null?null:e[t]}function kd(e){e[vn]=0}function Fd(e){e[C]&1024||(e[C]|=1024,Wa(e)&&ai(e))}function Pm(e,t){for(;e>0;)t=t[jn],e--;return t}function si(e){return!!(e[C]&9216||e[be]?.dirty)}function Ks(e){e[We].changeDetectionScheduler?.notify(8),e[C]&64&&(e[C]|=1024),si(e)&&ai(e)}function ai(e){e[We].changeDetectionScheduler?.notify(0);let t=Gt(e);for(;t!==null&&!(t[C]&8192||(t[C]|=8192,!Wa(t)));)t=Gt(t)}function Ld(e,t){if((e[C]&256)===256)throw new w(911,!1);e[wt]===null&&(e[wt]=[]),e[wt].push(t)}function km(e,t){if(e[wt]===null)return;let n=e[wt].indexOf(t);n!==-1&&e[wt].splice(n,1)}function Gt(e){let t=e[ae];return st(t)?t[ae]:t}var S={lFrame:qd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var jd=!1;function Fm(){return S.lFrame.elementDepthCount}function Lm(){S.lFrame.elementDepthCount++}function jm(){S.lFrame.elementDepthCount--}function Vd(){return S.bindingsEnabled}function Vm(){return S.skipHydrationRootTNode!==null}function $m(e){return S.skipHydrationRootTNode===e}function Bm(){S.skipHydrationRootTNode=null}function j(){return S.lFrame.lView}function ke(){return S.lFrame.tView}function G(e){return S.lFrame.contextLView=e,e[Oe]}function W(e){return S.lFrame.contextLView=null,e}function ye(){let e=$d();for(;e!==null&&e.type===64;)e=e.parent;return e}function $d(){return S.lFrame.currentTNode}function Um(){let e=S.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function wr(e,t){let n=S.lFrame;n.currentTNode=e,n.isParent=t}function Bd(){return S.lFrame.isParent}function Hm(){S.lFrame.isParent=!1}function zm(){return S.lFrame.contextLView}function Ud(){return jd}function Sl(e){jd=e}function Gm(){let e=S.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Wm(){return S.lFrame.bindingIndex}function qm(e){return S.lFrame.bindingIndex=e}function qa(){return S.lFrame.bindingIndex++}function Hd(e){let t=S.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Zm(){return S.lFrame.inI18n}function Ym(e,t){let n=S.lFrame;n.bindingIndex=n.bindingRootIndex=e,Js(t)}function Qm(){return S.lFrame.currentDirectiveIndex}function Js(e){S.lFrame.currentDirectiveIndex=e}function Xm(e){let t=S.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function zd(){return S.lFrame.currentQueryIndex}function Za(e){S.lFrame.currentQueryIndex=e}function Km(e){let t=e[x];return t.type===2?t.declTNode:t.type===1?e[Pe]:null}function Gd(e,t,n){if(n&_.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&_.Host);)if(o=Km(i),o===null||(i=i[jn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=S.lFrame=Wd();return r.currentTNode=t,r.lView=e,!0}function Ya(e){let t=Wd(),n=e[x];S.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Wd(){let e=S.lFrame,t=e===null?null:e.child;return t===null?qd(e):t}function qd(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 Zd(){let e=S.lFrame;return S.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Yd=Zd;function Qa(){let e=Zd();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 Jm(e){return(S.lFrame.contextLView=Pm(e,S.lFrame.contextLView))[Oe]}function Xt(){return S.lFrame.selectedIndex}function Wt(e){S.lFrame.selectedIndex=e}function Qd(){let e=S.lFrame;return Pd(e.tView,e.selectedIndex)}function ev(){return S.lFrame.currentNamespace}var Xd=!0;function Xa(){return Xd}function Ka(e){Xd=e}function tv(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Nd(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 Ja(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[vn]+=65536),(a>14>16&&(e[C]&3)===t&&(e[C]+=16384,_l(a,i)):_l(a,i)}var Cn=-1,hr=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function rv(e){return e instanceof hr}function ov(e){return(e.flags&8)!==0}function iv(e){return(e.flags&16)!==0}var Ps={},ea=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=ti(r);let o=this.injector.get(t,Ps,r);return o!==Ps||n===Ps?o:this.parentInjector.get(t,n,r)}};function Jd(e){return e!==Cn}function Bo(e){return e&32767}function sv(e){return e>>16}function Uo(e,t){let n=sv(e),r=t;for(;n>0;)r=r[jn],n--;return r}var ta=!0;function xl(e){let t=ta;return ta=e,t}var av=256,ef=av-1,tf=5,cv=0,ze={};function uv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(cr)&&(r=n[cr]),r==null&&(r=n[cr]=cv++);let o=r&ef,i=1<>tf)]|=i}function nf(e,t){let n=rf(e,t);if(n!==-1)return n;let r=t[x];r.firstCreatePass&&(e.injectorIndex=t.length,ks(r.data,e),ks(t,null),ks(r.blueprint,null));let o=ec(e,t),i=e.injectorIndex;if(Jd(o)){let s=Bo(o),a=Uo(o,t),c=a[x].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function ks(e,t){e.push(0,0,0,0,0,0,0,0,t)}function rf(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function ec(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=uf(o),r===null)return Cn;if(n++,o=o[jn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Cn}function lv(e,t,n){uv(e,t,n)}function dv(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>20,d=r?a:a+l,h=o?a+l:u;for(let f=d;f=c&&m.type===n)return f}if(o){let f=s[c];if(f&&yr(f)&&f.type===n)return c}return null}function _n(e,t,n,r){let o=e[n],i=t.data;if(rv(o)){let s=o;s.resolving&&Lg(Fg(i[n]));let a=xl(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?Ie(s.injectImpl):null,l=Gd(e,r,_.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&tv(n,i[n],t)}finally{u!==null&&Ie(u),xl(a),s.resolving=!1,Yd()}}return o}function hv(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(cr)?e[cr]:void 0;return typeof t=="number"?t>=0?t&ef:pv:t}function Tl(e,t,n){let r=1<>tf)]&r)}function Nl(e,t){return!(e&_.Self)&&!(e&_.Host&&t)}var Ut=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return af(this._tNode,this._lView,t,ti(r),n)}};function pv(){return new Ut(ye(),j())}function tc(e){return mr(()=>{let t=e.prototype.constructor,n=t[Ro]||na(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Ro]||na(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function na(e){return nd(e)?()=>{let t=na(Ee(e));return t&&t()}:En(e)}function gv(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[C]&2048&&!(s[C]&512);){let a=cf(i,s,n,r|_.Self,ze);if(a!==ze)return a;let c=i.parent;if(!c){let u=s[Sd];if(u){let l=u.get(n,ze,r);if(l!==ze)return l}c=uf(s),s=s[jn]}i=c}return o}function uf(e){let t=e[x],n=t.type;return n===2?t.declTNode:n===1?e[Pe]:null}function nc(e){return dv(ye(),e)}function Al(e,t=null,n=null,r){let o=lf(e,t,n,r);return o.resolveInjectorInitializers(),o}function lf(e,t=null,n=null,r,o=new Set){let i=[n||Ae,hm(e)];return r=r||(typeof e=="object"?void 0:ue(e)),new dr(i,t||za(),r||null,o)}var Me=class e{static{this.THROW_IF_NOT_FOUND=ur}static{this.NULL=new ko}static create(t,n){if(Array.isArray(t))return Al({name:""},n,t,"");{let r=t.name??"";return Al({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=y({token:e,providedIn:"any",factory:()=>E(dd)})}static{this.__NG_ELEMENT_ID__=-1}};var mv=new I("");mv.__NG_ELEMENT_ID__=e=>{let t=ye();if(t===null)throw new w(204,!1);if(t.type&2)return t.value;if(e&_.Optional)return null;throw new w(204,!1)};var vv="ngOriginalError";function Fs(e){return e[vv]}var df=!0,rc=(()=>{class e{static{this.__NG_ELEMENT_ID__=yv}static{this.__NG_ENV_ID__=n=>n}}return e})(),ra=class extends rc{constructor(t){super(),this._lView=t}onDestroy(t){return Ld(this._lView,t),()=>km(this._lView,t)}};function yv(){return new ra(j())}var Vn=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ne(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=y({token:e,providedIn:"root",factory:()=>new e})}}return e})();var oa=class extends X{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,Md()&&(this.destroyRef=p(rc,{optional:!0})??void 0,this.pendingTasks=p(Vn,{optional:!0})??void 0)}emit(t){let n=k(null);try{super.next(t)}finally{k(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 Q&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},se=oa;function Ho(...e){}function ff(e){let t,n;function r(){e=Ho;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 Rl(e){return queueMicrotask(()=>e()),()=>{e=Ho}}var oc="isAngularZone",zo=oc+"_ID",Dv=0,Y=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new se(!1),this.onMicrotaskEmpty=new se(!1),this.onStable=new se(!1),this.onError=new se(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=df}=t;if(typeof Zone>"u")throw new w(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,Iv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(oc)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new w(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,wv,Ho,Ho);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)}},wv={};function ic(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 Cv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){ff(()=>{e.callbackScheduled=!1,ia(e),e.isCheckStableRunning=!0,ic(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),ia(e)}function Iv(e){let t=()=>{Cv(e)},n=Dv++;e._inner=e._inner.fork({name:"angular",properties:{[oc]:!0,[zo]:n,[zo+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Ev(c))return r.invokeTask(i,s,a,c);try{return Ol(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Pl(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Ol(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!bv(c)&&t(),Pl(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,ia(e),ic(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 ia(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Ol(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Pl(e){e._nesting--,ic(e)}var sa=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new se,this.onMicrotaskEmpty=new se,this.onStable=new se,this.onError=new se}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 Ev(e){return hf(e,"__ignore_ng_zone__")}function bv(e){return hf(e,"__scheduler_tick__")}function hf(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var rt=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Fs(t);for(;n&&Fs(n);)n=Fs(n);return n||null}},Mv=new I("",{providedIn:"root",factory:()=>{let e=p(Y),t=p(rt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Sv(){return $n(ye(),j())}function $n(e,t){return new _t(Se(e,t))}var _t=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=Sv}}return e})();function _v(e){return e instanceof _t?e.nativeElement:e}function xv(){return this._results[Symbol.iterator]()}var aa=class e{get changes(){return this._changes??=new se}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=xv)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Zg(t);(this._changesDetected=!qg(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function pf(e){return(e.flags&128)===128}var gf=new Map,Tv=0;function Nv(){return Tv++}function Av(e){gf.set(e[oi],e)}function ca(e){gf.delete(e[oi])}var kl="__ngContext__";function qt(e,t){Ct(t)?(e[kl]=t[oi],Av(t)):e[kl]=t}function mf(e){return yf(e[fr])}function vf(e){return yf(e[Re])}function yf(e){for(;e!==null&&!st(e);)e=e[Re];return e}var ua;function Df(e){ua=e}function Rv(){if(ua!==void 0)return ua;if(typeof document<"u")return document;throw new w(210,!1)}var sc=new I("",{providedIn:"root",factory:()=>Ov}),Ov="ng",ac=new I(""),Fe=new I("",{providedIn:"platform",factory:()=>"unknown"});var cc=new I("",{providedIn:"root",factory:()=>Rv().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Pv="h",kv="b";var Fv=()=>null;function uc(e,t,n=!1){return Fv(e,t,n)}var wf=!1,Lv=new I("",{providedIn:"root",factory:()=>wf});var Eo;function jv(){if(Eo===void 0&&(Eo=null,Bs.trustedTypes))try{Eo=Bs.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Eo}function Fl(e){return jv()?.createScriptURL(e)||e}var Go=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Jl})`}};function Cr(e){return e instanceof Go?e.changingThisBreaksApplicationSecurity:e}function lc(e,t){let n=Vv(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Jl})`)}return n===t}function Vv(e){return e instanceof Go&&e.getTypeName()||null}var $v=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Cf(e){return e=String(e),e.match($v)?e:"unsafe:"+e}var ci=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}(ci||{});function Bv(e){let t=Ef();return t?t.sanitize(ci.URL,e)||"":lc(e,"URL")?Cr(e):Cf(In(e))}function Uv(e){let t=Ef();if(t)return Fl(t.sanitize(ci.RESOURCE_URL,e)||"");if(lc(e,"ResourceURL"))return Fl(Cr(e));throw new w(904,!1)}function Hv(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?Uv:Bv}function If(e,t,n){return Hv(t,n)(e)}function Ef(){let e=j();return e&&e[We].sanitizer}function bf(e){return e instanceof Function?e():e}function zv(e){return(e??p(Me)).get(Fe)==="browser"}var ot=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(ot||{}),Gv;function dc(e,t){return Gv(e,t)}function yn(e,t,n,r,o){if(r!=null){let i,s=!1;st(r)?i=r:Ct(r)&&(s=!0,r=r[it]);let a=Ze(r);e===0&&n!==null?o==null?Tf(t,n,a):Wo(t,n,a,o||null,!0):e===1&&n!==null?Wo(t,n,a,o||null,!0):e===2?sy(t,a,s):e===3&&t.destroyNode(a),i!=null&&cy(t,e,i,n,o)}}function Wv(e,t){return e.createText(t)}function qv(e,t,n){e.setValue(t,n)}function Mf(e,t,n){return e.createElement(t,n)}function Zv(e,t){Sf(e,t),t[it]=null,t[Pe]=null}function Yv(e,t,n,r,o,i){r[it]=o,r[Pe]=t,ui(e,r,n,1,o,i)}function Sf(e,t){t[We].changeDetectionScheduler?.notify(9),ui(e,t,t[ie],2,null,null)}function Qv(e){let t=e[fr];if(!t)return Ls(e[x],e);for(;t;){let n=null;if(Ct(t))n=t[fr];else{let r=t[me];r&&(n=r)}if(!n){for(;t&&!t[Re]&&t!==e;)Ct(t)&&Ls(t[x],t),t=t[ae];t===null&&(t=e),Ct(t)&&Ls(t[x],t),n=t&&t[Re]}t=n}}function Xv(e,t,n,r){let o=me+r,i=n.length;r>0&&(n[o-1][Re]=t),r0&&(e[n-1][Re]=r[Re]);let i=Po(e,me+t);Zv(r[x],r);let s=i[tt];s!==null&&s.detachView(i[x]),r[ae]=null,r[Re]=null,r[C]&=-129}return r}function xf(e,t){if(!(t[C]&256)){let n=t[ie];n.destroyNode&&ui(e,t,n,3,null,null),Qv(t)}}function Ls(e,t){if(t[C]&256)return;let n=k(null);try{t[C]&=-129,t[C]|=256,t[be]&&ss(t[be]),Jv(e,t),Kv(e,t),t[x].type===1&&t[ie].destroy();let r=t[Ht];if(r!==null&&st(t[ae])){r!==t[ae]&&fc(r,t);let o=t[tt];o!==null&&o.detachView(e)}ca(t)}finally{k(n)}}function Kv(e,t){let n=e.cleanup,r=t[Lo];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[Lo]=null);let o=t[wt];if(o!==null){t[wt]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===Ge.None||i===Ge.Emulated)return null}return Se(r,n)}}function Wo(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Tf(e,t,n){e.appendChild(t,n)}function Ll(e,t,n,r,o){r!==null?Wo(e,t,n,r,o):Tf(e,t,n)}function Nf(e,t){return e.parentNode(t)}function ny(e,t){return e.nextSibling(t)}function ry(e,t,n){return iy(e,t,n)}function oy(e,t,n){return e.type&40?Se(e,n):null}var iy=oy,jl;function hc(e,t,n,r){let o=ey(e,r,t),i=t[ie],s=r.parent||t[Pe],a=ry(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;cnt&&Pf(e,t,nt,!1),He(s?2:0,o),n(r,o)}finally{Wt(i),He(s?3:1,o)}}function Vf(e,t,n){if(xd(t)){let r=k(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function vy(e,t,n,r){let o=Zf(t);o.push(n),e.firstCreatePass&&Yf(e).push(r,o.length-1)}function yy(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Vm()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs: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 Vl(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,c=It.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}e===0?$l(r,n,u,a,c):$l(r,n,u,a)}return r}function $l(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function Dy(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],c=null,u=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function My(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;ii(n)&&Ry(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||nf(n,t),qt(r,t);let s=n.initialInputs;for(let a=o;a{ai(e.lView)},consumerOnSignalRead(){this.lView[be]=this}});function qy(e){let t=e[be]??Object.create(Zy);return t.lView=e,t}var Zy=q(g({},rs),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Gt(e.lView);for(;t&&!Jf(t[x]);)t=Gt(t);t&&Fd(t)},consumerOnSignalRead(){this.lView[be]=this}});function Jf(e){return e.type!==2}var Yy=100;function eh(e,t=!0,n=0){let r=e[We],o=r.rendererFactory,i=!1;i||o.begin?.();try{Qy(e,n)}catch(s){throw t&&Qf(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function Qy(e,t){let n=Ud();try{Sl(!0),pa(e,t);let r=0;for(;si(e);){if(r===Yy)throw new w(103,!1);r++,pa(e,1)}}finally{Sl(n)}}function Xy(e,t,n,r){let o=t[C];if((o&256)===256)return;let i=!1,s=!1;!i&&t[We].inlineEffectRunner?.flush(),Ya(t);let a=!0,c=null,u=null;i||(Jf(e)?(u=Hy(t),c=os(u)):Ru()===null?(a=!1,u=qy(t),c=os(u)):t[be]&&(ss(t[be]),t[be]=null));try{kd(t),qm(e.bindingStartIndex),n!==null&&jf(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&_o(t,f,null)}else{let f=e.preOrderHooks;f!==null&&xo(t,f,0,null),Os(t,0)}if(s||Ky(t),th(t,0),e.contentQueries!==null&&qf(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&_o(t,f)}else{let f=e.contentHooks;f!==null&&xo(t,f,1),Os(t,1)}dy(e,t);let d=e.components;d!==null&&rh(t,d,0);let h=e.viewQuery;if(h!==null&&ha(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&_o(t,f)}else{let f=e.viewHooks;f!==null&&xo(t,f,2),Os(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Rs]){for(let f of t[Rs])f();t[Rs]=null}i||(t[C]&=-73)}catch(l){throw i||ai(t),l}finally{u!==null&&(Ou(u,c),a&&Gy(u)),Qa()}}function th(e,t){for(let n=mf(e);n!==null;n=vf(n))for(let r=me;r-1&&(la(t,r),Po(n,r))}this._attachedToViewContainer=!1}xf(this._lView[x],this._lView)}onDestroy(t){Ld(this._lView,t)}markForCheck(){yc(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[C]&=-129}reattach(){Ks(this._lView),this._lView[C]|=128}detectChanges(){this._lView[C]|=1024,eh(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Qs(this._lView),n=this._lView[Ht];n!==null&&!t&&fc(n,this._lView),Sf(this._lView[x],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=t;let n=Qs(this._lView),r=this._lView[Ht];r!==null&&!n&&_f(r,this._lView),Ks(this._lView)}},Yt=(()=>{class e{static{this.__NG_ELEMENT_ID__=nD}}return e})(),eD=Yt,tD=class extends eD{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=$y(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Zt(o)}};function nD(){return Dc(ye(),j())}function Dc(e,t){return e.type&4?new tD(t,e,$n(e,t)):null}var ET=new RegExp(`^(\\d+)*(${kv}|${Pv})*(.*)`);var rD=()=>null;function Ul(e,t){return rD(e,t)}var xn=class{},hi=new I("",{providedIn:"root",factory:()=>!1});var oh=new I(""),ih=new I(""),ga=class{},Zo=class{};function oD(e){let t=Error(`No component factory found for ${ue(e)}.`);return t[iD]=e,t}var iD="ngComponent";var ma=class{resolveComponentFactory(t){throw oD(t)}},Tn=class{static{this.NULL=new ma}},Nn=class{},pi=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>sD()}}return e})();function sD(){let e=j(),t=ye(),n=St(t.index,e);return(Ct(n)?n:e)[ie]}var aD=(()=>{class e{static{this.\u0275prov=y({token:e,providedIn:"root",factory:()=>null})}}return e})();function va(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Rf(e,n,i.join(" "))}}function pD(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static{this.__NG_ELEMENT_ID__=mD}}return e})();function mD(){let e=ye();return ah(e,j())}var vD=xt,sh=class extends vD{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return $n(this._hostTNode,this._hostLView)}get injector(){return new Ut(this._hostTNode,this._hostLView)}get parentInjector(){let t=ec(this._hostTNode,this._hostLView);if(Jd(t)){let n=Uo(t,this._hostLView),r=Bo(t),o=n[x].data[r+8];return new Ut(o,n)}else return new Ut(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=zl(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-me}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Ul(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Bl(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!Mm(t),a;if(s)a=n;else{let m=n||{};a=m.index,r=m.injector,o=m.projectableNodes,i=m.environmentInjector||m.ngModuleRef}let c=s?t:new An(Et(t)),u=r||this.parentInjector;if(!i&&c.ngModule==null){let T=(s?u:this.parentInjector).get(ve,null);T&&(i=T)}let l=Et(c.componentType??{}),d=Ul(this._lContainer,l?.id??null),h=d?.firstChild??null,f=c.create(u,o,h,i);return this.insertImpl(f.hostView,a,Bl(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Om(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[ae],u=new sh(c,c[Pe],c[ae]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return By(s,o,i,r),t.attachToViewContainerRef(),ld(js(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=zl(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=la(this._lContainer,n);r&&(Po(js(this._lContainer),n),xf(r[x],r))}detach(t){let n=this._adjustIndex(t,-1),r=la(this._lContainer,n);return r&&Po(js(this._lContainer),n)!=null?new Zt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function zl(e){return e[jo]}function js(e){return e[jo]||(e[jo]=[])}function ah(e,t){let n,r=t[e.index];return st(r)?n=r:(n=Wf(r,t,null,e),t[e.index]=n,fi(t,n)),DD(n,t,e,r),new sh(n,e,t)}function yD(e,t){let n=e[ie],r=n.createComment(""),o=Se(t,e),i=Nf(n,o);return Wo(n,i,r,ny(n,o),!1),r}var DD=ID,wD=()=>!1;function CD(e,t,n){return wD(e,t,n)}function ID(e,t,n,r){if(e[zt])return;let o;n.type&8?o=Ze(r):o=yD(t,n),e[zt]=o}var Da=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},wa=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let u=i[a+1],l=t[-c];for(let d=me;dt.trim())}function AD(e,t,n){e.queries===null&&(e.queries=new Ia),e.queries.track(new Ea(t,n))}function wc(e,t){return e.queries.getByIndex(t)}function RD(e,t){let n=e[x],r=wc(n,t);return r.crossesNgTemplate?ba(n,e,t,[]):ch(n,e,r,t)}var Gl=new Set;function gi(e){Gl.has(e)||(Gl.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Cc(e){let t=e.inputConfig,n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)&&o[3]&&(n[r]=o[3])}e.inputTransforms=n}var bt=class{},pr=class{};var Ma=class extends bt{constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Yo(this);let i=Dd(t);this._bootstrapComponents=bf(i.bootstrap),this._r3Injector=lf(t,n,[{provide:bt,useValue:this},{provide:Tn,useValue:this.componentFactoryResolver},...r],ue(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)}},Sa=class extends pr{constructor(t){super(),this.moduleType=t}create(t){return new Ma(this.moduleType,t,[])}};var Qo=class extends bt{constructor(t){super(),this.componentFactoryResolver=new Yo(this),this.instance=null;let n=new dr([...t.providers,{provide:bt,useValue:this},{provide:Tn,useValue:this.componentFactoryResolver}],t.parent||za(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function mi(e,t,n=null){return new Qo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function uh(e){return PD(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function OD(e,t){if(Array.isArray(e))for(let n=0;n{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=y({token:e,providedIn:"root",factory:()=>new e})}}return e})(),_a=class e{constructor(){this.ngZone=p(Y),this.scheduler=p(xn),this.errorHandler=p(rt,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[Dn.EarlyRead,Dn.Write,Dn.MixedReadWrite,Dn.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=y({token:e,providedIn:"root",factory:()=>new e})}},xa=class{constructor(t,n,r,o){this.impl=t,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function Ic(e,t){!t?.injector&&bm(Ic);let n=t?.injector??p(Me);return zv(n)?(gi("NgAfterNextRender"),zD(e,n,t,!0)):GD}function HD(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function zD(e,t,n,r){let o=t.get(lh);o.impl??=t.get(_a);let i=n?.phase??Dn.MixedReadWrite,s=n?.manualCleanup!==!0?t.get(rc):null,a=new xa(o.impl,HD(e,i),r,s);return o.impl.register(a),a}var GD={destroy(){}};function Ec(e,t,n,r){let o=j(),i=qa();if(Rn(o,i,t)){let s=ke(),a=Qd();Oy(a,o,e,t,n,r)}return Ec}function WD(e,t,n,r){return Rn(e,qa(),n)?t+In(n)+r:at}function qD(e,t,n,r,o,i){let s=Wm(),a=LD(e,s,n,o);return Hd(2),a?t+In(n)+r+In(o)+i:at}function bo(e,t){return e<<17|t<<2}function Qt(e){return e>>17&32767}function ZD(e){return(e&2)==2}function YD(e,t){return e&131071|t<<17}function Ta(e){return e|2}function On(e){return(e&131068)>>2}function Vs(e,t){return e&-131069|t<<2}function QD(e){return(e&1)===1}function Na(e){return e|1}function XD(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Qt(s),c=On(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||vr(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let h=Qt(e[a+1]);e[r+1]=bo(h,a),h!==0&&(e[h+1]=Vs(e[h+1],r)),e[a+1]=YD(e[a+1],r)}else e[r+1]=bo(a,0),a!==0&&(e[a+1]=Vs(e[a+1],r)),a=r;else e[r+1]=bo(c,0),a===0?a=r:e[c+1]=Vs(e[c+1],r),c=r;u&&(e[r+1]=Ta(e[r+1])),Wl(e,l,r,!0),Wl(e,l,r,!1),KD(t,l,e,r,i),s=bo(a,c),i?t.classBindings=s:t.styleBindings=s}function KD(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&vr(i,t)>=0&&(n[r+1]=Na(n[r+1]))}function Wl(e,t,n,r){let o=e[n+1],i=t===null,s=r?Qt(o):On(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];JD(c,t)&&(a=!0,e[s+1]=r?Na(u):Ta(u)),s=r?Qt(u):On(u)}a&&(e[n+1]=r?Ta(o):Na(o))}function JD(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?vr(e,t)>=0:!1}function je(e,t,n){let r=j(),o=qa();if(Rn(r,o,t)){let i=ke(),s=Qd();Cy(i,s,r,e,t,r[ie],n,!1)}return je}function ql(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";mc(e,n,i[s],s,r)}function vi(e,t,n){return ew(e,t,n,!1),vi}function ew(e,t,n,r){let o=j(),i=ke(),s=Hd(2);if(i.firstUpdatePass&&nw(i,e,s,r),t!==at&&Rn(o,s,t)){let a=i.data[Xt()];aw(i,a,o,o[ie],e,o[s+1]=cw(t,n),r,s)}}function tw(e,t){return t>=e.expandoStartIndex}function nw(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Xt()],s=tw(e,n);uw(i,r)&&t===null&&!s&&(t=!1),t=rw(o,i,t,r),XD(o,i,t,n,s,r)}}function rw(e,t,n,r){let o=Xm(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=$s(null,e,t,n,r),n=gr(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=$s(o,e,t,n,r),i===null){let c=ow(e,t,r);c!==void 0&&Array.isArray(c)&&(c=$s(null,e,t,c[1],r),c=gr(c,t.attrs,r),iw(e,t,r,c))}else i=sw(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function ow(e,t,n){let r=n?t.classBindings:t.styleBindings;if(On(r)!==0)return e[Qt(r)]}function iw(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Qt(o)]=r}function sw(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=n[o+1];h===at&&(h=d?Ae:void 0);let f=d?Ns(h,r):l===r?h:void 0;if(u&&!Xo(f)&&(f=Ns(c,r)),Xo(f)&&(a=f,s))return a;let m=e[o+1];o=s?Qt(m):On(m)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Ns(c,r))}return a}function Xo(e){return e!==void 0}function cw(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ue(Cr(e)))),e}function uw(e,t){return(e.flags&(t?8:16))!==0}function lw(e,t,n,r,o,i){let s=t.consts,a=$o(s,o),c=di(t,e,2,r,a);return Hf(t,n,c,$o(s,i)),c.attrs!==null&&va(c,c.attrs,!1),c.mergedAttrs!==null&&va(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function A(e,t,n,r){let o=j(),i=ke(),s=nt+e,a=o[ie],c=i.firstCreatePass?lw(s,i,o,t,n,r):i.data[s],u=dw(i,o,c,a,t,e);o[s]=u;let l=Ga(c);return wr(c,!0),Of(a,u,c),!jD(c)&&Xa()&&hc(i,o,u,c),Fm()===0&&qt(u,o),Lm(),l&&($f(i,o,c),Vf(i,c,o)),r!==null&&Bf(o,c),A}function P(){let e=ye();Bd()?Hm():(e=e.parent,wr(e,!1));let t=e;$m(t)&&Bm(),jm();let n=ke();return n.firstCreatePass&&(Ja(n,e),xd(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&ov(t)&&ql(n,t,j(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&iv(t)&&ql(n,t,j(),t.stylesWithoutHost,!1),P}function ct(e,t,n,r){return A(e,t,n,r),P(),ct}var dw=(e,t,n,r,o,i)=>(Ka(!0),Mf(r,o,ev()));function Nt(){return j()}var Ko="en-US";var fw=Ko;function hw(e){typeof e=="string"&&(fw=e.toLowerCase().replace(/_/g,"-"))}var pw=(e,t,n)=>{};function B(e,t,n,r){let o=j(),i=ke(),s=ye();return mw(i,o,o[ie],s,e,t,r),B}function gw(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function mw(e,t,n,r,o,i,s){let a=Ga(r),u=e.firstCreatePass&&Yf(e),l=t[Oe],d=Zf(t),h=!0;if(r.type&3||s){let T=Se(r,t),V=s?s(T):T,H=d.length,le=s?xe=>s(Ze(xe[r.index])):r.index,de=null;if(!s&&a&&(de=gw(e,t,o,r.index)),de!==null){let xe=de.__ngLastListenerFn__||de;xe.__ngNextListenerFn__=i,de.__ngLastListenerFn__=i,h=!1}else{i=Ql(r,t,l,i),pw(T,o,i);let xe=n.listen(V,o,i);d.push(i,xe),u&&u.push(o,le,H,H+1)}}else i=Ql(r,t,l,i);let f=r.outputs,m;if(h&&f!==null&&(m=f[o])){let T=m.length;if(T)for(let V=0;V-1?St(e.index,t):t;yc(s,5);let a=Yl(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=Yl(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function K(e=1){return Jm(e)}function bc(e,t,n){TD(e,t,n)}function yi(e){let t=j(),n=ke(),r=zd();Za(r+1);let o=wc(n,r);if(e.dirty&&Rm(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=RD(t,r);e.reset(i,_v),e.notifyOnChanges()}return!0}return!1}function Di(){return _D(j(),zd())}function Mc(e){let t=zm();return Am(t,nt+e)}function U(e,t=""){let n=j(),r=ke(),o=e+nt,i=r.firstCreatePass?di(r,o,1,t,null):r.data[o],s=vw(r,n,i,t,e);n[o]=s,Xa()&&hc(r,n,s,i),wr(i,!1)}var vw=(e,t,n,r,o)=>(Ka(!0),Wv(t[ie],r));function wi(e){return Ci("",e,""),wi}function Ci(e,t,n){let r=j(),o=WD(r,e,t,n);return o!==at&&Xf(r,Xt(),o),Ci}function Sc(e,t,n,r,o){let i=j(),s=qD(i,e,t,n,r,o);return s!==at&&Xf(i,Xt(),s),Sc}var yw=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Id(!1,n.type),o=r.length>0?mi([r],this._injector,`Standalone[${n.type.name}]`):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{this.\u0275prov=y({token:e,providedIn:"environment",factory:()=>new e(E(ve))})}}return e})();function At(e){gi("NgStandalone"),e.getStandaloneInjector=t=>t.get(yw).getOrCreateStandaloneInjector(e)}function dh(e,t,n){let r=Gm()+e,o=j();return o[r]===at?kD(o,r,n?t.call(n):t()):FD(o,r)}var Ii=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var fh=new I("");function Ir(e){return!!e&&typeof e.then=="function"}function hh(e){return!!e&&typeof e.subscribe=="function"}var Bn=new I(""),ph=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=p(Bn,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=o();if(Ir(i))n.push(i);else if(hh(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{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ei=new I("");function Dw(){Pu(()=>{throw new w(600,!1)})}function ww(e){return e.isBoundToModule}var Cw=10;function Iw(e,t,n){try{let r=n();return Ir(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Qe=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(Mv),this.afterRenderManager=p(lh),this.zonelessEnabled=p(hi),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new X,this.afterTick=new X,this.componentTypes=[],this.components=[],this.isStable=p(Vn).hasPendingTasks.pipe(b(n=>!n)),this._injector=p(ve)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Zo;if(!this._injector.get(ph).done){let h=!o&&yd(n),f=!1;throw new w(405,f)}let s;o?s=n:s=this._injector.get(Tn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=ww(s)?void 0:this._injector.get(bt),c=r||s.selector,u=s.create(Me.NULL,[],c,a),l=u.location.nativeElement,d=u.injector.get(fh,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),No(this.components,u),d?.unregisterApplication(l)}),this._loadComponent(u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new w(101,!1);let n=k(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,k(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Nn,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++si(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;No(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Ei,[]);[...this._bootstrapListeners,...r].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._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>No(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new w(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function No(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Ew(e,t,n,r){if(!n&&!si(e))return;eh(e,t,n&&!r?0:1)}var Aa=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},bi=(()=>{class e{compileModuleSync(n){return new Sa(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Dd(n),i=bf(o.declarations).reduce((s,a)=>{let c=Et(a);return c&&s.push(new An(c)),s},[]);return new Aa(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var bw=(()=>{class e{constructor(){this.zone=p(Y),this.changeDetectionScheduler=p(xn),this.applicationRef=p(Qe)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Mw=new I("",{factory:()=>!1});function gh({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Y(q(g({},vh()),{scheduleInRootZone:n})),[{provide:Y,useFactory:e},{provide:bn,multi:!0,useFactory:()=>{let r=p(bw,{optional:!0});return()=>r.initialize()}},{provide:bn,multi:!0,useFactory:()=>{let r=p(Sw);return()=>{r.initialize()}}},t===!0?{provide:oh,useValue:!0}:[],{provide:ih,useValue:n??df}]}function mh(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=gh({ngZoneFactory:()=>{let o=vh(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&gi("NgZone_CoalesceEvent"),new Y(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return Ln([{provide:Mw,useValue:!0},{provide:hi,useValue:!1},r])}function vh(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Sw=(()=>{class e{constructor(){this.subscription=new Q,this.initialized=!1,this.zone=p(Y),this.pendingTasks=p(Vn)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Y.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Y.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var _w=(()=>{class e{constructor(){this.appRef=p(Qe),this.taskService=p(Vn),this.ngZone=p(Y),this.zonelessEnabled=p(hi),this.disableScheduling=p(oh,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Q,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(zo):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(ih,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof sa||!this.zoneIsDefined)}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 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?Rl:ff;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.disableScheduling||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;!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){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Rl(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}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{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function xw(){return typeof $localize<"u"&&$localize.locale||Ko}var _c=new I("",{providedIn:"root",factory:()=>p(_c,_.Optional|_.SkipSelf)||xw()});var Ra=new I("");function Mo(e){return!e.moduleRef}function Tw(e){let t=Mo(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Y);return n.run(()=>{Mo(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(rt,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Mo(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Ra);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Ra);s.add(i),e.moduleRef.onDestroy(()=>{No(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return Iw(r,n,()=>{let i=t.get(ph);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(_c,Ko);if(hw(s||Ko),Mo(e)){let a=t.get(Qe);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return Nw(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function Nw(e,t){let n=e.injector.get(Qe);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new w(-403,!1);t.push(e)}var Ao=null;function Aw(e=[],t){return Me.create({name:t,providers:[{provide:ri,useValue:"platform"},{provide:Ra,useValue:new Set([()=>Ao=null])},...e]})}function Rw(e=[]){if(Ao)return Ao;let t=Aw(e);return Ao=t,Dw(),Ow(t),t}function Ow(e){e.get(ac,null)?.forEach(n=>n())}function yh(){return!1}var Er=(()=>{class e{static{this.__NG_ELEMENT_ID__=Pw}}return e})();function Pw(e){return kw(ye(),j(),(e&16)===16)}function kw(e,t,n){if(ii(e)&&!n){let r=St(e.index,t);return new Zt(r,r)}else if(e.type&175){let r=t[qe];return new Zt(r,t)}return null}var Oa=class{constructor(){}supports(t){return uh(t)}create(t){return new Pa(t)}},Fw=(e,t)=>t,Pa=class{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Fw}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new ka(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Jo),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Jo),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},ka=class{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Fa=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Jo=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Fa,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Xl(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r{class e{static{this.\u0275prov=y({token:e,providedIn:"root",factory:Kl})}constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Kl()),deps:[[e,new Va,new ni]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new w(901,!1)}}return e})();function Dh(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=Rw(r),i=[gh({}),{provide:xn,useExisting:_w},...n||[]],s=new Qo({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return Tw({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function br(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function wh(e){let t=Et(e);if(!t)return null;let n=new An(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var Sh=null;function Un(){return Sh}function _h(e){Sh??=e}var Mi=class{};var he=new I(""),Oc=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(Lw),providedIn:"platform"})}}return e})(),xh=new I(""),Lw=(()=>{class e extends Oc{constructor(){super(),this._doc=p(he),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Un().getBaseHref(this._doc)}onPopState(n){let r=Un().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Un().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{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function Pc(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Ch(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function ut(e){return e&&e[0]!=="?"?"?"+e:e}var lt=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(kc),providedIn:"root"})}}return e})(),Th=new I(""),kc=(()=>{class e extends lt{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??p(he).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 Pc(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+ut(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+ut(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+ut(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{this.\u0275fac=function(r){return new(r||e)(E(Oc),E(Th,8))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Nh=(()=>{class e extends lt{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}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}path(n=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=Pc(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+ut(i));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+ut(i));s.length==0&&(s=this._platformLocation.pathname),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{this.\u0275fac=function(r){return new(r||e)(E(Oc),E(Th,8))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),Hn=(()=>{class e{constructor(n){this._subject=new se,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=$w(Ch(Ih(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({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+ut(r))}normalize(n){return e.stripTrailingSlash(Vw(this._basePath,Ih(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+ut(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ut(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,complete:o})}static{this.normalizeQueryParams=ut}static{this.joinWithSlash=Pc}static{this.stripTrailingSlash=Ch}static{this.\u0275fac=function(r){return new(r||e)(E(lt))}}static{this.\u0275prov=y({token:e,factory:()=>jw(),providedIn:"root"})}}return e})();function jw(){return new Hn(E(lt))}function Vw(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Ih(e){return e.replace(/\/index.html$/,"")}function $w(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function Ah(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 Tc=class{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Rh=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new Tc(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),Eh(a,o)}});for(let o=0,i=r.length;o{let i=r.get(o.currentIndex);Eh(i,o)})}static ngTemplateContextGuard(n,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(De(xt),De(Yt),De(xc))}}static{this.\u0275dir=Fn({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return e})();function Eh(e,t){e.context.$implicit=t.item}var _i=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new Nc,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){bh("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){bh("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(De(xt),De(Yt))}}static{this.\u0275dir=Fn({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return e})(),Nc=class{constructor(){this.$implicit=null,this.ngIf=null}};function bh(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${ue(t)}'.`)}var Jt=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=kn({type:e})}static{this.\u0275inj=Pn({})}}return e})(),Fc="browser",Bw="server";function xi(e){return e===Fc}function Lc(e){return e===Bw}var Oh=(()=>{class e{static{this.\u0275prov=y({token:e,providedIn:"root",factory:()=>xi(p(Fe))?new Ac(p(he),window):new Rc})}}return e})(),Ac=class{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){let n=Uw(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){let n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}};function Uw(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}var Rc=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},Si=class{};var Bc=class extends Mi{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Uc=class e extends Bc{static makeCurrent(){_h(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}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=Hw();return n==null?null:zw(n)}resetBaseElement(){Mr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Ah(document.cookie,t)}},Mr=null;function Hw(){return Mr=Mr||document.querySelector("base"),Mr?Mr.getAttribute("href"):null}function zw(e){return new URL(e,document.baseURI).pathname}var Gw=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),Hc=new I(""),Lh=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}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 w(5101,!1);return this._eventNameToPlugin.set(n,r),r}static{this.\u0275fac=function(r){return new(r||e)(E(Hc),E(Y))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),Ti=class{constructor(t){this._doc=t}},Vc="ng-app-id",jh=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Lc(i),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Vc}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){let o=this.styleRef;if(o.has(n)){let i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(Vc),i;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Vc,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){let o=this.getStyleElement(n,r),i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(E(he),E(sc),E(cc,8),E(Fe))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),$c={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"},Gc=/%COMP%/g,Vh="%COMP%",Ww=`_nghost-${Vh}`,qw=`_ngcontent-${Vh}`,Zw=!0,Yw=new I("",{providedIn:"root",factory:()=>Zw});function Qw(e){return qw.replace(Gc,e)}function Xw(e){return Ww.replace(Gc,e)}function $h(e,t){return t.map(n=>n.replace(Gc,e))}var Ph=(()=>{class e{constructor(n,r,o,i,s,a,c,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=Lc(a),this.defaultRenderer=new Sr(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ge.ShadowDom&&(r=q(g({},r),{encapsulation:Ge.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Ni?o.applyToHost(n):o instanceof _r&&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.platformIsServer;switch(r.encapsulation){case Ge.Emulated:i=new Ni(c,u,r,this.appId,l,s,a,d);break;case Ge.ShadowDom:return new zc(c,u,n,r,s,a,this.nonce,d);default:i=new _r(c,u,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(E(Lh),E(jh),E(sc),E(Yw),E(he),E(Fe),E(Y),E(cc))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),Sr=class{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS($c[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(kh(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(kh(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 w(-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=$c[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=$c[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&(ot.DashCase|ot.Important)?t.style.setProperty(n,r,o&ot.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&ot.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){if(typeof t=="string"&&(t=Un().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function kh(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var zc=class extends Sr{constructor(t,n,r,o,i,s,a,c){super(t,i,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=$h(o.id,o.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}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.removeHost(this.shadowRoot)}},_r=class extends Sr{constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?$h(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Ni=class extends _r{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=Qw(u),this.hostAttr=Xw(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}},Kw=(()=>{class e extends Ti{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static{this.\u0275fac=function(r){return new(r||e)(E(he))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),Fh=["alt","control","meta","shift"],Jw={"\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"},eC={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},tC=(()=>{class e extends Ti{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Un().onAndCancel(n,i.domEventName,s))}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."),Fh.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=Jw[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"),Fh.forEach(s=>{if(s!==o){let a=eC[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{this.\u0275fac=function(r){return new(r||e)(E(he))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})();function Bh(e,t){return Dh(g({rootComponent:e},nC(t)))}function nC(e){return{appProviders:[...aC,...e?.providers??[]],platformProviders:sC}}function rC(){Uc.makeCurrent()}function oC(){return new rt}function iC(){return Df(document),document}var sC=[{provide:Fe,useValue:Fc},{provide:ac,useValue:rC,multi:!0},{provide:he,useFactory:iC,deps:[]}];var aC=[{provide:ri,useValue:"root"},{provide:rt,useFactory:oC,deps:[]},{provide:Hc,useClass:Kw,multi:!0,deps:[he,Y,Fe]},{provide:Hc,useClass:tC,multi:!0,deps:[he]},Ph,jh,Lh,{provide:Nn,useExisting:Ph},{provide:Si,useClass:Gw,deps:[]},[]];var Uh=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static{this.\u0275fac=function(r){return new(r||e)(E(he))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var M="primary",Ur=Symbol("RouteTitle"),Qc=class{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 Yn(e){return new Qc(e)}function uC(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.lengthr[i]===o)}else return e===t}function ep(e){return e.length>0?e[e.length-1]:null}function Pt(e){return Is(e)?e:Ir(e)?z(Promise.resolve(e)):D(e)}var dC={exact:np,subset:rp},tp={exact:fC,subset:hC,ignored:()=>!0};function Hh(e,t,n){return dC[n.paths](e.root,t.root,n.matrixParams)&&tp[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function fC(e,t){return Xe(e,t)}function np(e,t,n){if(!tn(e.segments,t.segments)||!Oi(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!np(e.children[r],t.children[r],n))return!1;return!0}function hC(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Jh(e[n],t[n]))}function rp(e,t,n){return op(e,t,t.segments,n)}function op(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!tn(o,n)||t.hasChildren()||!Oi(o,n,r))}else if(e.segments.length===n.length){if(!tn(e.segments,n)||!Oi(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!rp(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!tn(e.segments,o)||!Oi(e.segments,o,r)||!e.children[M]?!1:op(e.children[M],t,i,r)}}function Oi(e,t,n){return t.every((r,o)=>tp[n](e[o].parameters,r.parameters))}var ft=class{constructor(t=new F([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Yn(this.queryParams),this._queryParamMap}toString(){return mC.serialize(this)}},F=class{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Pi(this)}},en=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Yn(this.parameters),this._parameterMap}toString(){return sp(this)}};function pC(e,t){return tn(e,t)&&e.every((n,r)=>Xe(n.parameters,t[r].parameters))}function tn(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function gC(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===M&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==M&&(n=n.concat(t(o,r)))}),n}var Hr=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>new Qn,providedIn:"root"})}}return e})(),Qn=class{parse(t){let n=new Jc(t);return new ft(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${xr(t.root,!0)}`,r=DC(t.queryParams),o=typeof t.fragment=="string"?`#${vC(t.fragment)}`:"";return`${n}${r}${o}`}},mC=new Qn;function Pi(e){return e.segments.map(t=>sp(t)).join("/")}function xr(e,t){if(!e.hasChildren())return Pi(e);if(t){let n=e.children[M]?xr(e.children[M],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==M&&r.push(`${o}:${xr(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=gC(e,(r,o)=>o===M?[xr(e.children[M],!1)]:[`${o}:${xr(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[M]!=null?`${Pi(e)}/${n[0]}`:`${Pi(e)}/(${n.join("//")})`}}function ip(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ai(e){return ip(e).replace(/%3B/gi,";")}function vC(e){return encodeURI(e)}function Kc(e){return ip(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ki(e){return decodeURIComponent(e)}function zh(e){return ki(e.replace(/\+/g,"%20"))}function sp(e){return`${Kc(e.path)}${yC(e.parameters)}`}function yC(e){return Object.entries(e).map(([t,n])=>`;${Kc(t)}=${Kc(n)}`).join("")}function DC(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${Ai(n)}=${Ai(o)}`).join("&"):`${Ai(n)}=${Ai(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var wC=/^[^\/()?;#]+/;function Wc(e){let t=e.match(wC);return t?t[0]:""}var CC=/^[^\/()?;=#]+/;function IC(e){let t=e.match(CC);return t?t[0]:""}var EC=/^[^=?&#]+/;function bC(e){let t=e.match(EC);return t?t[0]:""}var MC=/^[^&#]+/;function SC(e){let t=e.match(MC);return t?t[0]:""}var Jc=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new F([],{}):new F([],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[M]=new F(t,n)),r}parseSegment(){let t=Wc(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(t),new en(ki(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=IC(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=Wc(this.remaining);o&&(r=o,this.capture(r))}t[ki(n)]=ki(r)}parseQueryParam(t){let n=bC(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=SC(this.remaining);s&&(r=s,this.capture(r))}let o=zh(n),i=zh(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=Wc(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new w(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=M);let s=this.parseChildren();n[i]=Object.keys(s).length===1?s[M]:new F([],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 w(4011,!1)}};function ap(e){return e.segments.length>0?new F([],{[M]:e}):e}function cp(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=cp(o);if(r===M&&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 F(e.segments,t);return _C(n)}function _C(e){if(e.numberOfChildren===1&&e.children[M]){let t=e.children[M];return new F(e.segments.concat(t.segments),t.children)}return e}function nn(e){return e instanceof ft}function xC(e,t,n=null,r=null){let o=up(e);return lp(o,t,n,r)}function up(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 F(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=ap(r);return t??o}function lp(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return qc(o,o,o,n,r);let i=TC(t);if(i.toRoot())return qc(o,o,new F([],{}),n,r);let s=NC(i,o,e),a=s.processChildren?Ar(s.segmentGroup,s.index,i.commands):fp(s.segmentGroup,s.index,i.commands);return qc(o,s.segmentGroup,a,n,r)}function Fi(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Pr(e){return typeof e=="object"&&e!=null&&e.outlets}function qc(e,t,n,r,o){let i={};r&&Object.entries(r).forEach(([c,u])=>{i[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;e===t?s=n:s=dp(e,t,n);let a=ap(cp(s));return new ft(a,i,o)}function dp(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=dp(i,t,n)}),new F(e.segments,r)}var Li=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Fi(r[0]))throw new w(4003,!1);let o=r.find(Pr);if(o&&o!==ep(r))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function TC(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Li(!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 Li(n,t,r)}var Wn=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function NC(e,t,n){if(e.isAbsolute)return new Wn(t,!0,0);if(!n)return new Wn(t,!1,NaN);if(n.parent===null)return new Wn(n,!0,0);let r=Fi(e.commands[0])?0:1,o=n.segments.length-1+r;return AC(n,o,e.numberOfDoubleDots)}function AC(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new w(4005,!1);o=r.segments.length}return new Wn(r,!1,o-i)}function RC(e){return Pr(e[0])?e[0].outlets:{[M]:e}}function fp(e,t,n){if(e??=new F([],{}),e.segments.length===0&&e.hasChildren())return Ar(e,t,n);let r=OC(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndexi!==M)&&e.children[M]&&e.numberOfChildren===1&&e.children[M].segments.length===0){let i=Ar(e.children[M],t,n);return new F(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=fp(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new F(e.segments,o)}}function OC(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;let s=e.segments[o],a=n[r];if(Pr(a))break;let c=`${a}`,u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Wh(c,u,s))return i;r+=2}else{if(!Wh(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function eu(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=eu(new F([],{}),0,r))}),t}function Gh(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function Wh(e,t,n){return e==n.path&&Xe(t,n.parameters)}var Rr="imperative",te=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}(te||{}),_e=class{constructor(t,n){this.id=t,this.url=n}},Xn=class extends _e{constructor(t,n,r="imperative",o=null){super(t,n),this.type=te.NavigationStart,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ke=class extends _e{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=te.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Ce=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(Ce||{}),ji=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(ji||{}),dt=class extends _e{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=te.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Rt=class extends _e{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=te.NavigationSkipped}},kr=class extends _e{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=te.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Vi=class extends _e{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=te.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},tu=class extends _e{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=te.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},nu=class extends _e{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=te.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},ru=class extends _e{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=te.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ou=class extends _e{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=te.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},iu=class{constructor(t){this.route=t,this.type=te.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},su=class{constructor(t){this.route=t,this.type=te.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},au=class{constructor(t){this.snapshot=t,this.type=te.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},cu=class{constructor(t){this.snapshot=t,this.type=te.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},uu=class{constructor(t){this.snapshot=t,this.type=te.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},lu=class{constructor(t){this.snapshot=t,this.type=te.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$i=class{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=te.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},Fr=class{},Kn=class{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function kC(e,t){return e.providers&&!e._injector&&(e._injector=mi(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Ve(e){return e.outlet||M}function FC(e,t){let n=e.filter(r=>Ve(r)===t);return n.push(...e.filter(r=>Ve(r)!==t)),n}function zr(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var du=class{get injector(){return zr(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new Gr(this.rootInjector),this.attachRef=null}},Gr=(()=>{class e{constructor(n){this.rootInjector=n,this.contexts=new Map}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 du(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static{this.\u0275fac=function(r){return new(r||e)(E(ve))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Bi=class{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=fu(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=fu(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=hu(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return hu(t,this._root).map(n=>n.value)}};function fu(e,t){if(e===t.value)return t;for(let n of t.children){let r=fu(e,n);if(r)return r}return null}function hu(e,t){if(e===t.value)return[t];for(let n of t.children){let r=hu(e,n);if(r.length)return r.unshift(t),r}return[]}var we=class{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Gn(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Ui=class extends Bi{constructor(t,n){super(t),this.snapshot=n,Iu(this,t)}toString(){return this.snapshot.toString()}};function hp(e){let t=LC(e),n=new ne([new en("",{})]),r=new ne({}),o=new ne({}),i=new ne({}),s=new ne(""),a=new Ot(n,r,i,s,o,M,e,t.root);return a.snapshot=t.root,new Ui(new we(a,[]),t)}function LC(e){let t={},n={},r={},o="",i=new qn([],t,r,o,n,M,e,null,{});return new zi("",new we(i,[]))}var Ot=class{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(b(u=>u[Ur]))??D(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(b(t=>Yn(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(b(t=>Yn(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Hi(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&&gp(o)&&(r.resolve[Ur]=o.title),r}var qn=class{get title(){return this.data?.[Ur]}constructor(t,n,r,o,i,s,a,c,u){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}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??=Yn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Yn(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 Bi{constructor(t,n){super(n),this.url=t,Iu(this,n)}toString(){return pp(this._root)}};function Iu(e,t){t.value._routerState=e,t.children.forEach(n=>Iu(e,n))}function pp(e){let t=e.children.length>0?` { ${e.children.map(pp).join(", ")} } `:"";return`${e.value}${t}`}function Zc(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Xe(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Xe(t.params,n.params)||e.paramsSubject.next(n.params),lC(t.url,n.url)||e.urlSubject.next(n.url),Xe(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function pu(e,t){let n=Xe(e.params,t.params)&&pC(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||pu(e.parent,t.parent))}function gp(e){return typeof e.title=="string"||e.title===null}var Eu=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=M,this.activateEvents=new se,this.deactivateEvents=new se,this.attachEvents=new se,this.detachEvents=new se,this.parentContexts=p(Gr),this.location=p(xt),this.changeDetector=p(Er),this.inputBinder=p(Zi,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}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 w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(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 w(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new gu(n,a,o.injector);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{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=Fn({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Dr]})}}return e})(),gu=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===Ot?this.route:t===Gr?this.childContexts:this.parent.get(t,n)}},Zi=new I(""),qh=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:r}=n,o=or([r.queryParams,r.params,r.data]).pipe(oe(([i,s,a],c)=>(a=g(g(g({},i),s),a),c===0?D(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let s=wh(r.component);if(!s){this.unsubscribeFromRouteData(n);return}for(let{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,i[a])});this.outletDataSubscriptions.set(n,o)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})();function jC(e,t,n){let r=Lr(e,t._root,n?n._root:void 0);return new Ui(r,t)}function Lr(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=VC(e,t,n);return new we(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=>Lr(e,a)),s}}let r=$C(t.value),o=t.children.map(i=>Lr(e,i));return new we(r,o)}}function VC(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Lr(e,r,o);return Lr(e,r)})}function $C(e){return new Ot(new ne(e.url),new ne(e.params),new ne(e.queryParams),new ne(e.fragment),new ne(e.data),e.outlet,e.component,e)}var jr=class{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},mp="ngNavigationCancelingError";function Gi(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=nn(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=vp(!1,Ce.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function vp(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[mp]=!0,n.cancellationCode=t,n}function BC(e){return yp(e)&&nn(e.url)}function yp(e){return!!e&&e[mp]}var UC=(e,t,n,r)=>b(o=>(new mu(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),mu=class{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),Zc(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=Gn(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=Gn(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=Gn(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=Gn(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new lu(i.value.snapshot))}),t.children.length&&this.forwardEvent(new cu(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(Zc(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),Zc(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)}},Wi=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Zn=class{constructor(t,n){this.component=t,this.route=n}};function HC(e,t,n){let r=e._root,o=t?t._root:null;return Tr(r,o,n,[r.value])}function zC(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function er(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!rd(e)?e:t.get(e):r}function Tr(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Gn(t);return e.children.forEach(s=>{GC(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Or(a,n.getContext(s),o)),o}function GC(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=WC(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Wi(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Tr(e,t,a?a.children:null,r,o):Tr(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Zn(a.outlet.component,s))}else s&&Or(t,a,o),o.canActivateChecks.push(new Wi(r)),i.component?Tr(e,null,a?a.children:null,r,o):Tr(e,null,n,r,o);return o}function WC(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!tn(e.url,t.url);case"pathParamsOrQueryParamsChange":return!tn(e.url,t.url)||!Xe(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!pu(e,t)||!Xe(e.queryParams,t.queryParams);case"paramsChange":default:return!pu(e,t)}}function Or(e,t,n){let r=Gn(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?Or(s,t.children.getContext(i),n):Or(s,null,n):Or(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Zn(t.outlet.component,o)):n.canDeactivateChecks.push(new Zn(null,o)):n.canDeactivateChecks.push(new Zn(null,o))}function Wr(e){return typeof e=="function"}function qC(e){return typeof e=="boolean"}function ZC(e){return e&&Wr(e.canLoad)}function YC(e){return e&&Wr(e.canActivate)}function QC(e){return e&&Wr(e.canActivateChild)}function XC(e){return e&&Wr(e.canDeactivate)}function KC(e){return e&&Wr(e.canMatch)}function Dp(e){return e instanceof et||e?.name==="EmptyError"}var Ri=Symbol("INITIAL_VALUE");function Jn(){return oe(e=>or(e.map(t=>t.pipe(J(1),xs(Ri)))).pipe(b(t=>{for(let n of t)if(n!==!0){if(n===Ri)return Ri;if(n===!1||JC(n))return n}return!0}),re(t=>t!==Ri),J(1)))}function JC(e){return nn(e)||e instanceof jr}function eI(e,t){return Z(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?D(q(g({},n),{guardsResult:!0})):tI(s,r,o,e).pipe(Z(a=>a&&qC(a)?nI(r,i,e,t):D(a)),b(a=>q(g({},n),{guardsResult:a})))})}function tI(e,t,n,r){return z(e).pipe(Z(o=>aI(o.component,o.route,n,t,r)),Ue(o=>o!==!0,!0))}function nI(e,t,n,r){return z(t).pipe(Bt(o=>Be(oI(o.route.parent,r),rI(o.route,r),sI(e,o.path,n),iI(e,o.route,n))),Ue(o=>o!==!0,!0))}function rI(e,t){return e!==null&&t&&t(new uu(e)),D(!0)}function oI(e,t){return e!==null&&t&&t(new au(e)),D(!0)}function iI(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return D(!0);let o=r.map(i=>Vt(()=>{let s=zr(t)??n,a=er(i,s),c=YC(a)?a.canActivate(t,e):Ye(s,()=>a(t,e));return Pt(c).pipe(Ue())}));return D(o).pipe(Jn())}function sI(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>zC(s)).filter(s=>s!==null).map(s=>Vt(()=>{let a=s.guards.map(c=>{let u=zr(s.node)??n,l=er(c,u),d=QC(l)?l.canActivateChild(r,e):Ye(u,()=>l(r,e));return Pt(d).pipe(Ue())});return D(a).pipe(Jn())}));return D(i).pipe(Jn())}function aI(e,t,n,r,o){let i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||i.length===0)return D(!0);let s=i.map(a=>{let c=zr(t)??o,u=er(a,c),l=XC(u)?u.canDeactivate(e,t,n,r):Ye(c,()=>u(e,t,n,r));return Pt(l).pipe(Ue())});return D(s).pipe(Jn())}function cI(e,t,n,r){let o=t.canLoad;if(o===void 0||o.length===0)return D(!0);let i=o.map(s=>{let a=er(s,e),c=ZC(a)?a.canLoad(t,n):Ye(e,()=>a(t,n));return Pt(c)});return D(i).pipe(Jn(),wp(r))}function wp(e){return gs(ee(t=>{if(typeof t!="boolean")throw Gi(e,t)}),b(t=>t===!0))}function uI(e,t,n,r){let o=t.canMatch;if(!o||o.length===0)return D(!0);let i=o.map(s=>{let a=er(s,e),c=KC(a)?a.canMatch(t,n):Ye(e,()=>a(t,n));return Pt(c)});return D(i).pipe(Jn(),wp(r))}var Vr=class{constructor(t){this.segmentGroup=t||null}},$r=class extends Error{constructor(t){super(),this.urlTree=t}};function zn(e){return gt(new Vr(e))}function lI(e){return gt(new w(4e3,!1))}function dI(e){return gt(vp(!1,Ce.GuardRejected))}var vu=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return D(r);if(o.numberOfChildren>1||!o.children[M])return lI(`${t.redirectTo}`);o=o.children[M]}}applyRedirectCommands(t,n,r,o,i){if(typeof n!="string"){let a=n,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,params:f,data:m,title:T}=o,V=Ye(i,()=>a({params:f,data:m,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,title:T}));if(V instanceof ft)throw new $r(V);n=V}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new $r(s);return s}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new ft(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 F(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 w(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}},yu={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function fI(e,t,n,r,o){let i=Cp(e,t,n);return i.matched?(r=kC(t,r),uI(r,t,n,o).pipe(b(s=>s===!0?i:g({},yu)))):D(i)}function Cp(e,t,n){if(t.path==="**")return hI(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?g({},yu):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||uC)(n,e,t);if(!o)return g({},yu);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 hI(e){return{matched:!0,parameters:e.length>0?ep(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function Zh(e,t,n,r){return n.length>0&&mI(e,n,r)?{segmentGroup:new F(t,gI(r,new F(n,e.children))),slicedSegments:[]}:n.length===0&&vI(e,n,r)?{segmentGroup:new F(e.segments,pI(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new F(e.segments,e.children),slicedSegments:n}}function pI(e,t,n,r){let o={};for(let i of n)if(Yi(e,t,i)&&!r[Ve(i)]){let s=new F([],{});o[Ve(i)]=s}return g(g({},r),o)}function gI(e,t){let n={};n[M]=t;for(let r of e)if(r.path===""&&Ve(r)!==M){let o=new F([],{});n[Ve(r)]=o}return n}function mI(e,t,n){return n.some(r=>Yi(e,t,r)&&Ve(r)!==M)}function vI(e,t,n){return n.some(r=>Yi(e,t,r))}function Yi(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function yI(e,t,n){return t.length===0&&!e.children[n]}var Du=class{};function DI(e,t,n,r,o,i,s="emptyOnly"){return new wu(e,t,n,r,o,s,i).recognize()}var wI=31,wu=class{constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new vu(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new w(4002,`'${t.segmentGroup}'`)}recognize(){let t=Zh(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(b(({children:n,rootSnapshot:r})=>{let o=new we(r,n),i=new zi("",o),s=xC(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(t){let n=new qn([],Object.freeze({}),Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),M,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,M,n).pipe(b(r=>({children:r,rootSnapshot:n})),vt(r=>{if(r instanceof $r)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Vr?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,o,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,i):this.processSegment(t,n,r,r.segments,o,!0,i).pipe(b(s=>s instanceof we?[s]:[]))}processChildren(t,n,r,o){let i=[];for(let s of Object.keys(r.children))s==="primary"?i.unshift(s):i.push(s);return z(i).pipe(Bt(s=>{let a=r.children[s],c=FC(n,s);return this.processSegmentGroup(t,c,a,s,o)}),_s((s,a)=>(s.push(...a),s)),yt(null),Ms(),Z(s=>{if(s===null)return zn(r);let a=Ip(s);return CI(a),D(a)}))}processSegment(t,n,r,o,i,s,a){return z(n).pipe(Bt(c=>this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a).pipe(vt(u=>{if(u instanceof Vr)return D(null);throw u}))),Ue(c=>!!c),vt(c=>{if(Dp(c))return yI(r,o,i)?D(new Du):zn(r);throw c}))}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return Ve(r)!==s&&(s===M||!Yi(o,i,r))?zn(o):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,o,r,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c):zn(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=Cp(n,o,i);if(!c)return zn(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>wI&&(this.allowRedirects=!1));let f=new qn(i,u,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Yh(o),Ve(o),o.component??o._loadedComponent??null,o,Qh(o)),m=Hi(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(m.params),f.data=Object.freeze(m.data);let T=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,t);return this.applyRedirects.lineralizeSegments(o,T).pipe(Z(V=>this.processSegment(t,r,n,V.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a=fI(n,r,o,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(oe(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,o).pipe(oe(({routes:u})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=c,m=new qn(h,d,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Yh(r),Ve(r),r.component??r._loadedComponent??null,r,Qh(r)),T=Hi(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(T.params),m.data=Object.freeze(T.data);let{segmentGroup:V,slicedSegments:H}=Zh(n,h,f,u);if(H.length===0&&V.hasChildren())return this.processChildren(l,u,V,m).pipe(b(de=>new we(m,de)));if(u.length===0&&H.length===0)return D(new we(m,[]));let le=Ve(r)===i;return this.processSegment(l,u,V,H,le?M:i,!0,m).pipe(b(de=>new we(m,de instanceof we?[de]:[])))}))):zn(n)))}getChildConfig(t,n,r){return n.children?D({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?D({routes:n._loadedRoutes,injector:n._loadedInjector}):cI(t,n,r,this.urlSerializer).pipe(Z(o=>o?this.configLoader.loadChildren(t,n).pipe(ee(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):dI(n))):D({routes:[],injector:t})}};function CI(e){e.sort((t,n)=>t.value.outlet===M?-1:n.value.outlet===M?1:t.value.outlet.localeCompare(n.value.outlet))}function II(e){let t=e.value.routeConfig;return t&&t.path===""}function Ip(e){let t=[],n=new Set;for(let r of e){if(!II(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=Ip(r.children);t.push(new we(r.value,o))}return t.filter(r=>!n.has(r))}function Yh(e){return e.data||{}}function Qh(e){return e.resolve||{}}function EI(e,t,n,r,o,i){return Z(s=>DI(e,t,n,r,s.extractedUrl,o,i).pipe(b(({state:a,tree:c})=>q(g({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function bI(e,t){return Z(n=>{let{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return D(n);let i=new Set(o.map(c=>c.route)),s=new Set;for(let c of i)if(!s.has(c))for(let u of Ep(c))s.add(u);let a=0;return z(s).pipe(Bt(c=>i.has(c)?MI(c,r,e,t):(c.data=Hi(c,c.parent,e).resolve,D(void 0))),ee(()=>a++),gn(1),Z(c=>a===s.size?D(n):ce))})}function Ep(e){let t=e.children.map(n=>Ep(n)).flat();return[e,...t]}function MI(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!gp(o)&&(i[Ur]=o.title),SI(i,e,t,r).pipe(b(s=>(e._resolvedData=s,e.data=Hi(e,e.parent,n).resolve,null)))}function SI(e,t,n,r){let o=Xc(e);if(o.length===0)return D({});let i={};return z(o).pipe(Z(s=>_I(e[s],t,n,r).pipe(Ue(),ee(a=>{if(a instanceof jr)throw Gi(new Qn,a);i[s]=a}))),gn(1),ir(i),vt(s=>Dp(s)?ce:gt(s)))}function _I(e,t,n,r){let o=zr(t)??r,i=er(e,o),s=i.resolve?i.resolve(t,n):Ye(o,()=>i(t,n));return Pt(s)}function Yc(e){return oe(t=>{let n=e(t);return n?z(n).pipe(b(()=>t)):D(t)})}var bp=(()=>{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===M);return r}getResolvedTitleForRoute(n){return n.data[Ur]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(xI),providedIn:"root"})}}return e})(),xI=(()=>{class e extends bp{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||e)(E(Uh))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),qr=new I("",{providedIn:"root",factory:()=>({})}),TI=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Mt({type:e,selectors:[["ng-component"]],standalone:!0,features:[At],decls:1,vars:0,template:function(r,o){r&1&&ct(0,"router-outlet")},dependencies:[Eu],encapsulation:2})}}return e})();function bu(e){let t=e.children&&e.children.map(bu),n=t?q(g({},e),{children:t}):g({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==M&&(n.component=TI),n}var Br=new I(""),Mu=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(bi)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return D(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=Pt(n.loadComponent()).pipe(b(Mp),ee(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),sr(()=>{this.componentLoaders.delete(n)})),o=new pt(r,()=>new X).pipe(dn());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return D({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=NI(r,this.compiler,n,this.onLoadEndListener).pipe(sr(()=>{this.childrenLoaders.delete(r)})),s=new pt(i,()=>new X).pipe(dn());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function NI(e,t,n,r){return Pt(e.loadChildren()).pipe(b(Mp),Z(o=>o instanceof pr||Array.isArray(o)?D(o):z(t.compileModuleAsync(o))),b(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(n).injector,s=i.get(Br,[],{optional:!0,self:!0}).flat()),{routes:s.map(bu),injector:i}}))}function AI(e){return e&&typeof e=="object"&&"default"in e}function Mp(e){return AI(e)?e.default:e}var Su=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(RI),providedIn:"root"})}}return e})(),RI=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Sp=new I(""),_p=new I("");function OI(e,t,n){let r=e.get(_p),o=e.get(he);return e.get(Y).runOutsideAngular(()=>{if(!o.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let i,s=new Promise(u=>{i=u}),a=o.startViewTransition(()=>(i(),PI(e))),{onViewTransitionCreated:c}=r;return c&&Ye(e,()=>c({transition:a,from:t,to:n})),s})}function PI(e){return new Promise(t=>{Ic({read:()=>setTimeout(t)},{injector:e})})}var kI=new I(""),_u=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new X,this.transitionAbortSubject=new X,this.configLoader=p(Mu),this.environmentInjector=p(ve),this.urlSerializer=p(Hr),this.rootContexts=p(Gr),this.location=p(Hn),this.inputBindingEnabled=p(Zi,{optional:!0})!==null,this.titleStrategy=p(bp),this.options=p(qr,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(Su),this.createViewTransition=p(Sp,{optional:!0}),this.navigationErrorHandler=p(kI,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>D(void 0),this.rootComponentType=null;let n=o=>this.events.next(new iu(o)),r=o=>this.events.next(new su(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(q(g(g({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new ne({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Rr,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(re(i=>i.id!==0),b(i=>q(g({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),oe(i=>{let s=!1,a=!1;return D(i).pipe(oe(c=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",Ce.SupersededByNewNavigation),ce;this.currentTransition=i,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?q(g({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&l!=="reload"){let d="";return this.events.next(new Rt(c.id,this.urlSerializer.serialize(c.rawUrl),d,ji.IgnoredSameUrlNavigation)),c.resolve(!1),ce}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return D(c).pipe(oe(d=>{let h=this.transitions?.getValue();return this.events.next(new Xn(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?ce:Promise.resolve(d)}),EI(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),ee(d=>{i.targetSnapshot=d.targetSnapshot,i.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=q(g({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new Vi(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:d,extractedUrl:h,source:f,restoredState:m,extras:T}=c,V=new Xn(d,this.urlSerializer.serialize(h),f,m);this.events.next(V);let H=hp(this.rootComponentType).snapshot;return this.currentTransition=i=q(g({},c),{targetSnapshot:H,urlAfterRedirects:h,extras:q(g({},T),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,D(i)}else{let d="";return this.events.next(new Rt(c.id,this.urlSerializer.serialize(c.extractedUrl),d,ji.IgnoredByUrlHandlingStrategy)),c.resolve(!1),ce}}),ee(c=>{let u=new tu(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),b(c=>(this.currentTransition=i=q(g({},c),{guards:HC(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),i)),eI(this.environmentInjector,c=>this.events.next(c)),ee(c=>{if(i.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw Gi(this.urlSerializer,c.guardsResult);let u=new nu(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),re(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",Ce.GuardRejected),!1)),Yc(c=>{if(c.guards.canActivateChecks.length)return D(c).pipe(ee(u=>{let l=new ru(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),oe(u=>{let l=!1;return D(u).pipe(bI(this.paramsInheritanceStrategy,this.environmentInjector),ee({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(u,"",Ce.NoDataFromResolver)}}))}),ee(u=>{let l=new ou(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}))}),Yc(c=>{let u=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(ee(h=>{l.component=h}),b(()=>{})));for(let h of l.children)d.push(...u(h));return d};return or(u(c.targetSnapshot.root)).pipe(yt(null),J(1))}),Yc(()=>this.afterPreactivation()),oe(()=>{let{currentSnapshot:c,targetSnapshot:u}=i,l=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return l?z(l).pipe(b(()=>i)):D(i)}),b(c=>{let u=jC(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=i=q(g({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,i}),ee(()=>{this.events.next(new Fr)}),UC(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),J(1),ee({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ke(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Ts(this.transitionAbortSubject.pipe(ee(c=>{throw c}))),sr(()=>{!s&&!a&&this.cancelNavigationTransition(i,"",Ce.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),vt(c=>{if(a=!0,yp(c))this.events.next(new dt(i.id,this.urlSerializer.serialize(i.extractedUrl),c.message,c.cancellationCode)),BC(c)?this.events.next(new Kn(c.url,c.navigationBehaviorOptions)):i.resolve(!1);else{let u=new kr(i.id,this.urlSerializer.serialize(i.extractedUrl),c,i.targetSnapshot??void 0);try{let l=Ye(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof jr){let{message:d,cancellationCode:h}=Gi(this.urlSerializer,l);this.events.next(new dt(i.id,this.urlSerializer.serialize(i.extractedUrl),d,h)),this.events.next(new Kn(l.redirectTo,l.navigationBehaviorOptions))}else{this.events.next(u);let d=n.errorHandler(c);i.resolve(!!d)}}catch(l){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(l)}}return ce}))}))}cancelNavigationTransition(n,r,o){let i=new dt(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=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function FI(e){return e!==Rr}var LI=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(jI),providedIn:"root"})}}return e})(),Cu=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},jI=(()=>{class e extends Cu{static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=tc(e)))(o||e)}})()}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),xp=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(VI),providedIn:"root"})}}return e})(),VI=(()=>{class e extends xp{constructor(){super(...arguments),this.location=p(Hn),this.urlSerializer=p(Hr),this.options=p(qr,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(Su),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new ft,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=hp(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof Xn)this.stateMemento=this.createStateMemento();else if(n instanceof Rt)this.rawUrlTree=r.initialUrl;else if(n instanceof Vi){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??o,r)}}else n instanceof Fr?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):n instanceof dt&&(n.code===Ce.GuardRejected||n.code===Ce.NoDataFromResolver)?this.restoreHistory(r):n instanceof kr?this.restoreHistory(r,!0):n instanceof Ke&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=n instanceof ft?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let i=this.browserPageId,s=g(g({},r.extras.state),this.generateNgRouterState(r.id,i));this.location.replaceState(o,"",s)}else{let i=g(g({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",i)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.currentUrlTree===n.finalUrl&&i===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=tc(e)))(o||e)}})()}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Nr=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Nr||{});function Tp(e,t){e.events.pipe(re(n=>n instanceof Ke||n instanceof dt||n instanceof kr||n instanceof Rt),b(n=>n instanceof Ke||n instanceof Rt?Nr.COMPLETE:(n instanceof dt?n.code===Ce.Redirect||n.code===Ce.SupersededByNewNavigation:!1)?Nr.REDIRECTING:Nr.FAILED),re(n=>n!==Nr.REDIRECTING),J(1)).subscribe(()=>{t()})}function $I(e){throw e}var BI={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},UI={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ht=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=p(Ii),this.stateManager=p(xp),this.options=p(qr,{optional:!0})||{},this.pendingTasks=p(Vn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(_u),this.urlSerializer=p(Hr),this.location=p(Hn),this.urlHandlingStrategy=p(Su),this._events=new X,this.errorHandler=this.options.errorHandler||$I,this.navigated=!1,this.routeReuseStrategy=p(LI),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(Br,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(Zi,{optional:!0}),this.eventsSubscription=new Q,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=this.navigationTransitions.currentNavigation;if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof dt&&r.code!==Ce.Redirect&&r.code!==Ce.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Ke)this.navigated=!0;else if(r instanceof Kn){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=g({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||FI(o.source)},s);this.scheduleNavigation(a,Rr,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}zI(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.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),Rr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}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)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(bu),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(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 h=o?o.snapshot:this.routerState.snapshot.root;d=up(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return lp(d,n,l,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=nn(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Rr,null,r)}navigate(n,r={skipLocationChange:!1}){return HI(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.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=g({},BI):r===!1?o=g({},UI):o=r,nn(n))return Hh(this.currentUrlTree,n,o);let i=this.parseUrl(n);return Hh(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,h)=>{a=d,c=h});let l=this.pendingTasks.add();return Tp(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{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function HI(e){for(let t=0;t{class e{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.href=null,this.onChanges=new X,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof Ke&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(nn(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),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:If(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}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:nn(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{this.\u0275fac=function(r){return new(r||e)(De(ht),De(Ot),nc("tabindex"),De(pi),De(_t),De(lt))}}static{this.\u0275dir=Fn({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&B("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Ec("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",br],skipLocationChange:[2,"skipLocationChange","skipLocationChange",br],replaceUrl:[2,"replaceUrl","replaceUrl",br],routerLink:"routerLink"},standalone:!0,features:[Cc,Dr]})}}return e})();var qi=class{};var GI=(()=>{class e{constructor(n,r,o,i,s){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(re(n=>n instanceof Ke),Bt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){let o=[];for(let i of r){i.providers&&!i._injector&&(i._injector=mi(i.providers,n,`Route: ${i.path}`));let s=i._injector??n,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&i.canLoad===void 0||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return z(o).pipe(mt())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;r.loadChildren&&r.canLoad===void 0?o=this.loader.loadChildren(n,r):o=D(null);let i=o.pipe(Z(s=>s===null?D(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return z([i,s]).pipe(mt())}else return i})}static{this.\u0275fac=function(r){return new(r||e)(E(ht),E(bi),E(ve),E(qi),E(Mu))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ap=new I(""),WI=(()=>{class e{constructor(n,r,o,i,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Xn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Ke?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Rt&&n.code===ji.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof $i&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new $i(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(r){kf()}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})();function Rp(e,...t){return Ln([{provide:Br,multi:!0,useValue:e},[],{provide:Ot,useFactory:Op,deps:[ht]},{provide:Ei,multi:!0,useFactory:Pp},t.map(n=>n.\u0275providers)])}function Op(e){return e.routerState.root}function Zr(e,t){return{\u0275kind:e,\u0275providers:t}}function Pp(){let e=p(Me);return t=>{let n=e.get(Qe);if(t!==n.components[0])return;let r=e.get(ht),o=e.get(kp);e.get(xu)===1&&r.initialNavigation(),e.get(Fp,null,_.Optional)?.setUpPreloading(),e.get(Ap,null,_.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var kp=new I("",{factory:()=>new X}),xu=new I("",{providedIn:"root",factory:()=>1});function qI(){return Zr(2,[{provide:xu,useValue:0},{provide:Bn,multi:!0,deps:[Me],useFactory:t=>{let n=t.get(xh,Promise.resolve());return()=>n.then(()=>new Promise(r=>{let o=t.get(ht),i=t.get(kp);Tp(o,()=>{r(!0)}),t.get(_u).afterPreactivation=()=>(r(!0),i.closed?D(void 0):i),o.initialNavigation()}))}}])}function ZI(){return Zr(3,[{provide:Bn,multi:!0,useFactory:()=>{let t=p(ht);return()=>{t.setUpLocationChangeListener()}}},{provide:xu,useValue:2}])}var Fp=new I("");function YI(e){return Zr(0,[{provide:Fp,useExisting:GI},{provide:qi,useExisting:e}])}function QI(){return Zr(8,[qh,{provide:Zi,useExisting:qh}])}function XI(e){let t=[{provide:Sp,useValue:OI},{provide:_p,useValue:g({skipNextTransition:!!e?.skipInitialTransition},e)}];return Zr(9,t)}var Xh=new I("ROUTER_FORROOT_GUARD"),KI=[Hn,{provide:Hr,useClass:Qn},ht,Gr,{provide:Ot,useFactory:Op,deps:[ht]},Mu,[]],Qi=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[KI,[],{provide:Br,multi:!0,useValue:n},{provide:Xh,useFactory:nE,deps:[[ht,new ni,new Va]]},{provide:qr,useValue:r||{}},r?.useHash?eE():tE(),JI(),r?.preloadingStrategy?YI(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?rE(r):[],r?.bindToComponentInputs?QI().\u0275providers:[],r?.enableViewTransitions?XI().\u0275providers:[],oE()]}}static forChild(n){return{ngModule:e,providers:[{provide:Br,multi:!0,useValue:n}]}}static{this.\u0275fac=function(r){return new(r||e)(E(Xh,8))}}static{this.\u0275mod=kn({type:e})}static{this.\u0275inj=Pn({})}}return e})();function JI(){return{provide:Ap,useFactory:()=>{let e=p(Oh),t=p(Y),n=p(qr),r=p(_u),o=p(Hr);return n.scrollOffset&&e.setOffset(n.scrollOffset),new WI(o,r,e,t,n)}}}function eE(){return{provide:lt,useClass:Nh}}function tE(){return{provide:lt,useClass:kc}}function nE(e){return"guarded"}function rE(e){return[e.initialNavigation==="disabled"?ZI().\u0275providers:[],e.initialNavigation==="enabledBlocking"?qI().\u0275providers:[]]}var Kh=new I("");function oE(){return[{provide:Kh,useFactory:Pp},{provide:Ei,multi:!0,useExisting:Kh}]}var sE=["canvas"],aE=["fileInput"];function cE(e,t){if(e&1){let n=Nt();A(0,"button",12),B("click",function(){let o=G(n).$implicit;return W(o.apply())}),U(1),P()}if(e&2){let n=t.$implicit;je("title",n.name),Le(),Ci(" ",n.icon," ")}}function uE(e,t){if(e&1){let n=Nt();A(0,"div",13),B("mouseenter",function(){G(n);let o=K();return W(o.onControlsMouseEnter())})("mouseleave",function(){G(n);let o=K();return W(o.onControlsMouseLeave())}),A(1,"div",14)(2,"button",15),B("click",function(){G(n);let o=K();return W(o.rotatePhoto(-15))}),U(3,"\u21BA"),P(),A(4,"button",15),B("click",function(){G(n);let o=K();return W(o.rotatePhoto(15))}),U(5,"\u21BB"),P(),A(6,"button",15),B("click",function(){G(n);let o=K();return W(o.scalePhoto(.9))}),U(7,"-"),P(),A(8,"button",15),B("click",function(){G(n);let o=K();return W(o.scalePhoto(1.1))}),U(9,"+"),P()(),A(10,"div",14)(11,"button",15),B("click",function(){G(n);let o=K();return W(o.moveBackward(o.hoveredPhoto))}),U(12,"\u2193"),P(),A(13,"button",15),B("click",function(){G(n);let o=K();return W(o.moveForward(o.hoveredPhoto))}),U(14,"\u2191"),P(),A(15,"button",15),B("click",function(){G(n);let o=K();return W(o.moveToBack(o.hoveredPhoto))}),U(16,"\u2913"),P(),A(17,"button",15),B("click",function(){G(n);let o=K();return W(o.moveToFront(o.hoveredPhoto))}),U(18,"\u2912"),P()(),A(19,"div",14)(20,"button",16),B("click",function(){G(n);let o=K();return W(o.removePhoto(o.hoveredPhoto))}),U(21,"\xD7"),P()()()}if(e&2){let n=K();vi("left",n.controlsPosition.x,"px")("top",n.controlsPosition.y,"px")}}function lE(e,t){if(e&1){let n=Nt();A(0,"button",24),B("click",function(){let o=G(n).$implicit,i=K(2);return W(i.saveWithSize(o.id))}),A(1,"strong"),U(2),P(),A(3,"span"),U(4),P(),A(5,"span",25),U(6),P()()}if(e&2){let n=t.$implicit;K(2);let r=Mc(7);Le(2),wi(n.name),Le(2),wi(n.description),Le(2),Sc("",r.width*n.scale,"\xD7",r.height*n.scale,"px")}}function dE(e,t){if(e&1){let n=Nt();A(0,"div",17),B("click",function(){G(n);let o=K();return W(o.closeSaveDialog())}),A(1,"div",18),B("click",function(o){return G(n),W(o.stopPropagation())}),A(2,"div",19)(3,"h2"),U(4,"Save Collage"),P(),A(5,"button",20),B("click",function(){G(n);let o=K();return W(o.closeSaveDialog())}),U(6,"\xD7"),P()(),A(7,"div",21)(8,"p"),U(9,"Choose output size:"),P(),A(10,"div",22),Tt(11,lE,7,4,"button",23),P()()()()}if(e&2){let n=K();Le(11),je("ngForOf",n.sizeOptions)}}var Xi=class e{canvasRef;fileInput;canvas;ctx;photos=[];scale=1;isDragging=!1;selectedPhoto=null;lastX=0;lastY=0;maxZIndex=0;touches=[];lastDistance=0;lastTapTime=0;initialTouchDistance=0;activePhoto=null;panX=0;panY=0;zoomPoint={x:0,y:0};isPanning=!1;lastClientX=0;lastClientY=0;hoveredPhoto=null;controlsPosition={x:0,y:0};isOnControls=!1;imageCache=new Map;saveSize="medium";showSaveDialog=!1;sizeOptions=[{id:"small",name:"Small",scale:1,description:"1x - Original Size"},{id:"normal",name:"Normal",scale:2,description:"2x - Good for sharing"},{id:"medium",name:"Medium",scale:3,description:"3x - Great for prints"},{id:"large",name:"Large",scale:6,description:"6x - Maximum quality"}];showSaveOptions(){this.showSaveDialog=!0}saveWithSize(t){this.saveSize=t,this.saveCollage(),this.showSaveDialog=!1}closeSaveDialog(){this.showSaveDialog=!1}presets=[{name:"Grid Layout",icon:"\u229E",apply:()=>this.applyGridLayout()},{name:"Stack",icon:"\u25A4",apply:()=>this.applyStackLayout()},{name:"Circle",icon:"\u25EF",apply:()=>this.applyCircleLayout()},{name:"Random",icon:"\u27F0",apply:()=>this.applyRandomLayout()},{name:"Compact Layout",icon:"\u25A3",apply:()=>this.applyCompactLayout()}];resizeHandler=()=>{this.setupCanvas()};ngAfterViewInit(){this.canvas=this.canvasRef.nativeElement,this.ctx=this.canvas.getContext("2d"),this.setupCanvas(),this.setupEventListeners(),window.addEventListener("resize",this.resizeHandler)}ngOnDestroy(){this.photos.forEach(t=>{URL.revokeObjectURL(t.url),this.imageCache.delete(t.url)}),window.removeEventListener("resize",this.resizeHandler)}setupCanvas(){let t=this.canvas.parentElement;t?(this.canvas.width=t.clientWidth,this.canvas.height=t.clientHeight):(this.canvas.width=window.innerWidth,this.canvas.height=window.innerHeight),this.render()}setupEventListeners(){this.canvas.addEventListener("wheel",this.handleZoom.bind(this)),this.canvas.addEventListener("mousedown",this.handleMouseDown.bind(this)),this.canvas.addEventListener("mousemove",this.handleMouseMove.bind(this)),this.canvas.addEventListener("mouseup",this.handleMouseUp.bind(this)),this.canvas.addEventListener("dblclick",this.handleDoubleClick.bind(this)),this.canvas.addEventListener("touchstart",this.handleTouchStart.bind(this)),this.canvas.addEventListener("touchmove",this.handleTouchMove.bind(this)),this.canvas.addEventListener("touchend",this.handleTouchEnd.bind(this)),this.canvas.addEventListener("mousemove",this.handleHover.bind(this)),this.canvas.addEventListener("mouseleave",()=>{this.isOnControls||(this.hoveredPhoto=null)})}handleFileSelect(t){let n=t.target.files;n&&this.loadImages(Array.from(n))}handleDrop(t){t.preventDefault();let n=Array.from(t.dataTransfer?.files||[]);this.loadImages(n.filter(r=>r.type.startsWith("image/")))}loadImages(t){return nr(this,null,function*(){for(let n of t){let r=URL.createObjectURL(n);try{let o=new Image,i=new Promise((s,a)=>{o.onload=()=>s(),o.onerror=()=>a()});o.src=r,yield i,this.imageCache.set(r,o),this.photos.push({id:Date.now()+Math.random(),url:r,x:Math.random()*(this.canvas.width-200),y:Math.random()*(this.canvas.height-200),width:200,height:200*o.height/o.width,zIndex:++this.maxZIndex,scale:1,rotation:(Math.random()-.5)*.5})}catch(o){console.error("Failed to load image:",o),URL.revokeObjectURL(r)}}this.render()})}render(){if(!this.ctx)return;this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);let t=[...this.photos].sort((n,r)=>n.zIndex-r.zIndex);this.ctx.setTransform(1,0,0,1,0,0),this.ctx.translate(this.panX,this.panY),this.ctx.scale(this.scale,this.scale);for(let n of t){let r=this.imageCache.get(n.url);r&&(this.ctx.save(),this.ctx.translate(n.x+n.width/2,n.y+n.height/2),this.ctx.rotate(n.rotation),this.ctx.scale(n.scale,n.scale),this.ctx.drawImage(r,-n.width/2,-n.height/2,n.width,n.height),this.ctx.restore())}this.ctx.setTransform(1,0,0,1,0,0)}saveCollage(){let n=this.sizeOptions.find(c=>c.id===this.saveSize)?.scale||3,r=document.createElement("canvas");r.width=this.canvas.width*n,r.height=this.canvas.height*n;let o=r.getContext("2d");if(!o)return;o.fillStyle="white",o.fillRect(0,0,r.width,r.height);let i=[...this.photos].sort((c,u)=>c.zIndex-u.zIndex);o.setTransform(1,0,0,1,0,0),o.translate(this.panX*n,this.panY*n),o.scale(this.scale*n,this.scale*n);for(let c of i){let u=this.imageCache.get(c.url);u&&(o.save(),o.translate(c.x+c.width/2,c.y+c.height/2),o.rotate(c.rotation),o.scale(c.scale,c.scale),o.drawImage(u,-c.width/2,-c.height/2,c.width,c.height),o.restore())}o.setTransform(1,0,0,1,0,0);let s=r.toDataURL("image/png"),a=document.createElement("a");a.download="collage.png",a.href=s,a.click()}setSaveSize(t){this.saveSize=t}handleZoom(t){t.preventDefault();let n={x:(t.offsetX-this.panX)/this.scale,y:(t.offsetY-this.panY)/this.scale},r=this.scale,o=-Math.sign(t.deltaY)*.025;this.scale=Math.max(.1,Math.min(5,this.scale+o)),this.panX=t.offsetX-n.x*this.scale,this.panY=t.offsetY-n.y*this.scale,this.render()}handleMouseDown(t){let{offsetX:n,offsetY:r}=t;this.lastX=n,this.lastY=r,this.lastClientX=t.clientX,this.lastClientY=t.clientY,this.selectedPhoto=this.findPhotoAtPosition(n,r),this.selectedPhoto?t.altKey?this.moveToBack(this.selectedPhoto):this.isDragging=!0:this.isPanning=!0,this.hoveredPhoto=null}handleMouseMove(t){if(this.isDragging&&this.selectedPhoto){let n=t.offsetX-this.lastX,r=t.offsetY-this.lastY;this.selectedPhoto.x+=n/this.scale,this.selectedPhoto.y+=r/this.scale,this.lastX=t.offsetX,this.lastY=t.offsetY,this.lastClientX=t.clientX,this.lastClientY=t.clientY,this.render()}else if(this.isPanning){let n=t.clientX-this.lastClientX,r=t.clientY-this.lastClientY;this.panX+=n,this.panY+=r,this.lastClientX=t.clientX,this.lastClientY=t.clientY,this.render()}}handleMouseUp(){this.isDragging=!1,this.isPanning=!1,this.selectedPhoto=null}findPhotoAtPosition(t,n){let r=(t-this.panX)/this.scale,o=(n-this.panY)/this.scale;return this.photos.filter(s=>r>=s.x&&r<=s.x+s.width&&o>=s.y&&o<=s.y+s.height).sort((s,a)=>a.zIndex-s.zIndex)[0]||null}handleDoubleClick(t){let n=this.findPhotoAtPosition(t.offsetX,t.offsetY);n&&(this.maxZIndex++,n.zIndex=this.maxZIndex,this.render())}handleTouchStart(t){if(t.preventDefault(),this.touches=Array.from(t.touches),this.touches.length===1){let n=this.touches[0],r=this.canvas.getBoundingClientRect(),o=n.clientX-r.left,i=n.clientY-r.top;this.lastClientX=n.clientX,this.lastClientY=n.clientY;let s=Date.now();s-this.lastTapTime<300&&this.handleDoubleClick({offsetX:o,offsetY:i}),this.lastTapTime=s;let a=this.findPhotoAtPosition(o,i);a?(this.selectedPhoto=a,this.isDragging=!0):this.isPanning=!0,this.lastX=o,this.lastY=i}else if(this.touches.length===2){let n=this.canvas.getBoundingClientRect(),r=(this.touches[0].clientX+this.touches[1].clientX)/2-n.left,o=(this.touches[0].clientX+this.touches[1].clientY)/2-n.top;this.zoomPoint={x:(r-this.panX)/this.scale,y:(o-this.panY)/this.scale},this.activePhoto=this.findPhotoAtPosition(r,o),this.initialTouchDistance=this.getTouchDistance(this.touches[0],this.touches[1])}}handleTouchMove(t){t.preventDefault();let n=Array.from(t.touches);if(n.length===1){let r=n[0],o=this.canvas.getBoundingClientRect(),i=r.clientX-o.left,s=r.clientY-o.top;if(this.isDragging&&this.selectedPhoto){let a=i-this.lastX,c=s-this.lastY;this.selectedPhoto.x+=a/this.scale,this.selectedPhoto.y+=c/this.scale,this.lastX=i,this.lastY=s,this.render()}else if(this.isPanning){let a=r.clientX-this.lastClientX,c=r.clientY-this.lastClientY;this.panX+=a,this.panY+=c,this.lastClientX=r.clientX,this.lastClientY=r.clientY,this.render()}}else if(n.length===2){let r=this.getTouchDistance(n[0],n[1]),o=r/this.initialTouchDistance,i=this.canvas.getBoundingClientRect(),s=(n[0].clientX+n[1].clientX)/2-i.left,a=(n[0].clientY+n[1].clientY)/2-i.top;if(this.activePhoto){let c=this.activePhoto.scale*o;this.activePhoto.scale=Math.max(.1,Math.min(5,c))}else{let c=this.scale;this.scale=Math.max(.1,Math.min(5,this.scale*o)),this.panX=s-this.zoomPoint.x*this.scale,this.panY=a-this.zoomPoint.y*this.scale}this.initialTouchDistance=r,this.render()}}handleTouchEnd(t){t.preventDefault(),t.touches.length===0&&(this.handleMouseUp(),this.activePhoto=null),this.touches=Array.from(t.touches)}getTouchDistance(t,n){let r=t.clientX-n.clientX,o=t.clientY-n.clientY;return Math.sqrt(r*r+o*o)}handleHover(t){if(!this.isDragging){let n=this.findPhotoAtPosition(t.offsetX,t.offsetY);if(n||this.isOnControls){if(n&&(!this.hoveredPhoto||this.hoveredPhoto.id!==n.id)){let r=n.x*this.scale+this.panX,o=n.y*this.scale+this.panY;this.hoveredPhoto=q(g({},n),{screenX:r,screenY:o}),this.controlsPosition={x:r+n.width*n.scale*this.scale/2,y:o+n.height*n.scale*this.scale/2}}}else this.hoveredPhoto=null}}rotatePhoto(t){if(this.hoveredPhoto){let n=t*(Math.PI/180),r=this.photos.find(o=>o.id===this.hoveredPhoto.id);r&&(r.rotation+=n,this.hoveredPhoto.rotation=r.rotation,this.render())}}scalePhoto(t){if(this.hoveredPhoto){let n=this.photos.find(r=>r.id===this.hoveredPhoto.id);n&&(n.scale=Math.max(.1,Math.min(5,n.scale*t)),this.hoveredPhoto.scale=n.scale,this.render())}}onControlsMouseEnter(){this.isOnControls=!0}onControlsMouseLeave(){this.isOnControls=!1;let t=this.canvas.getBoundingClientRect(),n=new MouseEvent("mousemove",{clientX:this.lastX+t.left,clientY:this.lastY+t.top});this.handleHover(n)}moveForward(t){let n=this.photos.find(o=>o.id===t.id);if(!n)return;let r=this.photos.find(o=>o.zIndex>n.zIndex);if(r){let o=r.zIndex;r.zIndex=n.zIndex,n.zIndex=o,this.hoveredPhoto&&this.hoveredPhoto.id===n.id&&(this.hoveredPhoto.zIndex=n.zIndex),this.render()}}moveBackward(t){let n=this.photos.find(o=>o.id===t.id);if(!n)return;let r=[...this.photos].sort((o,i)=>i.zIndex-o.zIndex).find(o=>o.zIndexo.id===t.id);if(!n)return;let r=n.zIndex;this.photos.forEach(o=>{o.zIndexo.id===t.id);if(!n)return;let r=n.zIndex;this.photos.forEach(o=>{o.zIndex>r&&o.zIndex--}),n.zIndex=this.maxZIndex,this.hoveredPhoto&&this.hoveredPhoto.id===n.id&&(this.hoveredPhoto.zIndex=this.maxZIndex),this.render()}resetCollage(){this.photos.forEach(t=>{URL.revokeObjectURL(t.url),this.imageCache.delete(t.url)}),this.photos=[],this.maxZIndex=0,this.scale=1,this.panX=0,this.panY=0,this.hoveredPhoto=null,this.render()}removePhoto(t){let n=this.photos.findIndex(r=>r.id===t.id);n!==-1&&(URL.revokeObjectURL(t.url),this.imageCache.delete(t.url),this.photos.splice(n,1),this.hoveredPhoto&&this.hoveredPhoto.id===t.id&&(this.hoveredPhoto=null),this.render())}applyGridLayout(){if(!this.photos.length)return;let t=20,n=this.canvas.width-t*2,r=this.canvas.height-t*2,o=this.photos.length,i=Math.ceil(Math.sqrt(o)),s=Math.ceil(o/i),a=n/i,c=r/s;this.photos.forEach((u,l)=>{let d=Math.floor(l/i),h=l%i,f=u.height/u.width;u.rotation=0,u.scale=1,u.width=Math.min(a-t,c/f-t),u.height=u.width*f,u.x=t+h*a+(a-u.width)/2,u.y=t+d*c+(c-u.height)/2,u.zIndex=l}),this.maxZIndex=this.photos.length-1,this.scale=1,this.panX=0,this.panY=0,this.render()}applyStackLayout(){if(!this.photos.length)return;let t=this.canvas.width/2,n=this.canvas.height/2,r=(Math.random()-.5)*.5;this.photos.forEach((o,i)=>{o.rotation=r+(Math.random()-.5)*.3,o.scale=1,o.x=t-o.width/2+(Math.random()-.5)*50,o.y=n-o.height/2+(Math.random()-.5)*50,o.zIndex=i}),this.maxZIndex=this.photos.length-1,this.scale=1,this.panX=0,this.panY=0,this.render()}applyCircleLayout(){if(!this.photos.length)return;let t=this.canvas.width/2,n=this.canvas.height/2,r=Math.min(this.canvas.width,this.canvas.height)*.3;this.photos.forEach((o,i)=>{let s=i/this.photos.length*Math.PI*2;o.rotation=s+Math.PI/2,o.scale=.8,o.x=t+Math.cos(s)*r-o.width/2,o.y=n+Math.sin(s)*r-o.height/2,o.zIndex=i}),this.maxZIndex=this.photos.length-1,this.scale=1,this.panX=0,this.panY=0,this.render()}applyRandomLayout(){this.photos.length&&(this.photos.forEach((t,n)=>{t.rotation=(Math.random()-.5)*Math.PI,t.scale=.5+Math.random()*1,t.x=Math.random()*(this.canvas.width-t.width),t.y=Math.random()*(this.canvas.height-t.height),t.zIndex=n}),this.maxZIndex=this.photos.length-1,this.scale=1,this.panX=0,this.panY=0,this.render())}applyCompactLayout(){if(!this.photos.length)return;let t=10,n=this.canvas.width-t*2,r=this.canvas.height-t*2,i=n*r/this.photos.length,s=Math.sqrt(i),a=this.photos.map(f=>({photo:f,aspect:f.height/f.width,processed:!1})),c=t,u=t,l=0,d=n,h=[];for(;a.filter(f=>!f.processed).length>0;){let f=this.findBestPhotoForRow(a.filter(m=>!m.processed),d,s);if(f){f.processed=!0,h.push(f);let m=s/f.aspect;d-=m,l=Math.max(l,s),(d!T.processed).length===0)&&(this.arrangeRow(h,c,u,n-(d+t),l),u+=l+t,c=t,d=n,l=0,h=[])}}this.maxZIndex=this.photos.length-1,this.scale=1,this.panX=0,this.panY=0,this.render()}findBestPhotoForRow(t,n,r){return t.length===0?null:t.reduce((o,i)=>{let s=r/i.aspect,a=o?r/o.aspect:1/0,c=Math.abs(n-s),u=Math.abs(n-a);return cu+i/l.aspect,0),a=o/s,c=n;t.forEach((u,l)=>{let d=u.photo,h=i/u.aspect*a;d.width=h,d.height=i,d.x=c,d.y=r,d.rotation=0,d.scale=1,d.zIndex=l,c+=h})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Mt({type:e,selectors:[["app-photo-collage"]],viewQuery:function(n,r){if(n&1&&(bc(sE,5),bc(aE,5)),n&2){let o;yi(o=Di())&&(r.canvasRef=o.first),yi(o=Di())&&(r.fileInput=o.first)}},standalone:!0,features:[At],decls:19,vars:3,consts:[["canvas",""],["fileInput",""],[1,"collage-container",3,"dragover","drop"],[1,"toolbar"],[1,"toolbar-label"],["class","preset-btn",3,"title","click",4,"ngFor","ngForOf"],[1,"canvas-container"],["class","photo-controls",3,"left","top","mouseenter","mouseleave",4,"ngIf"],["type","file","accept","image/*","multiple","",2,"display","none",3,"change"],[1,"controls"],[3,"click"],["class","modal-overlay",3,"click",4,"ngIf"],[1,"preset-btn",3,"click","title"],[1,"photo-controls",3,"mouseenter","mouseleave"],[1,"controls-row"],[1,"control-btn",3,"click"],[1,"control-btn","remove-btn",3,"click"],[1,"modal-overlay",3,"click"],[1,"modal",3,"click"],[1,"modal-header"],[1,"close-btn",3,"click"],[1,"modal-content"],[1,"size-options"],["class","size-option",3,"click",4,"ngFor","ngForOf"],[1,"size-option",3,"click"],[1,"pixels"]],template:function(n,r){if(n&1){let o=Nt();A(0,"div",2),B("dragover",function(s){return G(o),W(s.preventDefault())})("drop",function(s){return G(o),W(r.handleDrop(s))}),A(1,"div",3)(2,"span",4),U(3,"Layouts:"),P(),Tt(4,cE,2,2,"button",5),P(),A(5,"div",6),ct(6,"canvas",null,0),Tt(8,uE,22,4,"div",7),P(),A(9,"input",8,1),B("change",function(s){return G(o),W(r.handleFileSelect(s))}),P(),A(11,"div",9)(12,"button",10),B("click",function(){G(o);let s=Mc(10);return W(s.click())}),U(13,"Add Photos"),P(),A(14,"button",10),B("click",function(){return G(o),W(r.showSaveOptions())}),U(15,"Save Collage"),P(),A(16,"button",10),B("click",function(){return G(o),W(r.resetCollage())}),U(17,"Reset"),P()(),Tt(18,dE,12,1,"div",11),P()}n&2&&(Le(4),je("ngForOf",r.presets),Le(4),je("ngIf",r.hoveredPhoto),Le(10),je("ngIf",r.showSaveDialog))},dependencies:[Jt,Rh,_i],styles:[".collage-container[_ngcontent-%COMP%]{width:100vw;height:100vh;position:relative;overflow:hidden}canvas[_ngcontent-%COMP%]{position:absolute;top:0;left:0;cursor:move}.controls[_ngcontent-%COMP%]{position:fixed;bottom:20px;left:50%;transform:translate(-50%);display:flex;gap:10px;z-index:1000}.controls[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:10px 20px;border-radius:20px;border:none;background:#007bffe6;color:#fff;cursor:pointer;transition:transform .2s}.controls[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{transform:scale(1.05);background:#007bff}.canvas-container[_ngcontent-%COMP%]{position:relative;width:100%;height:100%}.photo-controls-container[_ngcontent-%COMP%]{position:absolute;width:200px;height:100px;transform:translate(-50%,-50%);z-index:1000;pointer-events:none;display:flex;align-items:center;justify-content:center}.photo-controls[_ngcontent-%COMP%]{position:absolute;display:flex;flex-direction:column;gap:8px;padding:8px;background:#00000080;border-radius:20px;transform:translate(-50%,-50%);z-index:1000;pointer-events:all}.control-btn[_ngcontent-%COMP%]{width:32px;height:32px;padding:0;border:none;border-radius:50%;background:#fff;color:#333;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:18px}.control-btn[_ngcontent-%COMP%]:hover{background:#eee}.controls-row[_ngcontent-%COMP%]{display:flex;gap:8px;justify-content:center}.toolbar[_ngcontent-%COMP%]{position:fixed;top:20px;left:50%;transform:translate(-50%);display:flex;gap:10px;align-items:center;background:#000000b3;padding:10px 20px;border-radius:30px;z-index:1000}.toolbar-label[_ngcontent-%COMP%]{color:#fff;font-size:14px;margin-right:10px}.preset-btn[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:20px;border:none;background:#ffffffe6;color:#333;cursor:pointer;font-size:20px;display:flex;align-items:center;justify-content:center;transition:transform .2s,background-color .2s}.preset-btn[_ngcontent-%COMP%]:hover{transform:scale(1.1);background:#fff}.remove-btn[_ngcontent-%COMP%]{background:#f44;color:#fff}.remove-btn[_ngcontent-%COMP%]:hover{background:#f66}.toggle-btn[_ngcontent-%COMP%]{background:#808080e6!important}.toggle-btn.active[_ngcontent-%COMP%]{background:#00c800e6!important}.toggle-btn[_ngcontent-%COMP%]:hover{background:gray!important}.toggle-btn.active[_ngcontent-%COMP%]:hover{background:#00c800!important}.save-group[_ngcontent-%COMP%], .save-options[_ngcontent-%COMP%], .size-buttons[_ngcontent-%COMP%]{display:none}.modal-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:2000}.modal[_ngcontent-%COMP%]{background:#fff;border-radius:12px;padding:20px;width:90%;max-width:400px;box-shadow:0 2px 10px #0000001a}.modal-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;color:#333;font-size:20px}.close-btn[_ngcontent-%COMP%]{background:none;border:none;font-size:24px;cursor:pointer;padding:0 8px;color:#666}.close-btn[_ngcontent-%COMP%]:hover{color:#333}.modal-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 15px;color:#666}.size-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.size-option[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;width:100%;padding:12px;border:1px solid #ddd;border-radius:8px;background:#fff;cursor:pointer;transition:all .2s}.size-option[_ngcontent-%COMP%]:hover{background:#f8f8f8;border-color:#06c}.size-option[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:16px;color:#333;margin-bottom:4px}.size-option[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;color:#666}.size-option[_ngcontent-%COMP%] .pixels[_ngcontent-%COMP%]{color:#999;margin-top:4px}@media (hover: none){.save-options[_ngcontent-%COMP%]{position:static;margin:0 0 10px}.save-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:stretch}}"]})};var fE=()=>["/collage"],Ki=class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Mt({type:e,selectors:[["app-home"]],standalone:!0,features:[At],decls:7,vars:2,consts:[[1,"fullscreen-container"],["src","/icons/icon-1024x1024.png","alt","Moments Logo",1,"logo"],[1,"content"],[1,"start-button",3,"routerLink"]],template:function(n,r){n&1&&(A(0,"div",0),ct(1,"img",1),A(2,"div",2)(3,"h1"),U(4,"Welcome to Moments"),P(),A(5,"button",3),U(6," Create Collage "),P()()()),n&2&&(Le(5),je("routerLink",dh(1,fE)))},dependencies:[Jt,Qi,Np],styles:[".fullscreen-container[_ngcontent-%COMP%]{position:relative;width:100vw;height:100vh;overflow:hidden}.fullscreen-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}.content[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;z-index:1}.content[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#fff;font-size:3rem;text-shadow:2px 2px 4px rgba(0,0,0,.5);margin-bottom:2rem}.start-button[_ngcontent-%COMP%]{padding:12px 24px;background-color:#007bff;color:#fff;border:none;border-radius:24px;font-size:1.1rem;cursor:pointer;box-shadow:0 2px 5px #0003;transition:transform .2s}.start-button[_ngcontent-%COMP%]:hover{transform:scale(1.05);background-color:#0056b3}.install-button[_ngcontent-%COMP%]{position:fixed;bottom:20px;right:20px;padding:12px 24px;background-color:#007bff;color:#fff;border:none;border-radius:24px;font-size:1.1rem;cursor:pointer;box-shadow:0 2px 5px #0003;z-index:1000;transition:transform .2s}.install-button[_ngcontent-%COMP%]:hover{transform:scale(1.05);background-color:#0056b3}"]})};var jp=[{path:"",redirectTo:"/home",pathMatch:"full"},{path:"home",component:Ki},{path:"collage",component:Xi}];var Qr="Service workers are disabled or not supported by this browser";function hE(e){return Vt(()=>gt(new Error(e)))}var tr=class{constructor(t){if(this.serviceWorker=t,!t)this.worker=this.events=this.registration=hE(Qr);else{let r=pn(t,"controllerchange").pipe(b(()=>t.controller)),o=Vt(()=>D(t.controller)),i=Be(o,r);this.worker=i.pipe(re(l=>!!l)),this.registration=this.worker.pipe(oe(()=>t.getRegistration()));let u=pn(t,"message").pipe(b(l=>l.data)).pipe(re(l=>l&&l.type)).pipe(Ss());u.connect(),this.events=u}}postMessage(t,n){return this.worker.pipe(J(1),ee(r=>{r.postMessage(g({action:t},n))})).toPromise().then(()=>{})}postMessageWithOperation(t,n,r){let o=this.waitForOperationCompleted(r),i=this.postMessage(t,n);return Promise.all([i,o]).then(([,s])=>s)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(t){let n;return typeof t=="string"?n=r=>r.type===t:n=r=>t.includes(r.type),this.events.pipe(re(n))}nextEventOfType(t){return this.eventsOfType(t).pipe(J(1))}waitForOperationCompleted(t){return this.eventsOfType("OPERATION_COMPLETED").pipe(re(n=>n.nonce===t),J(1),b(n=>{if(n.result!==void 0)return n.result;throw new Error(n.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},pE=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,this.pushManager=null,this.subscriptionChanges=new X,!n.isEnabled){this.messages=$t,this.notificationClicks=$t,this.subscription=$t;return}this.messages=this.sw.eventsOfType("PUSH").pipe(b(o=>o.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(b(o=>o.data)),this.pushManager=this.sw.registration.pipe(b(o=>o.pushManager));let r=this.pushManager.pipe(oe(o=>o.getSubscription()));this.subscription=Do(r,this.subscriptionChanges)}requestSubscription(n){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(Qr));let r={userVisibleOnly:!0},o=this.decodeBase64(n.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),i=new Uint8Array(new ArrayBuffer(o.length));for(let s=0;ss.subscribe(r)),J(1)).toPromise().then(s=>(this.subscriptionChanges.next(s),s))}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(Qr));let n=r=>{if(r===null)throw new Error("Not subscribed to push notifications.");return r.unsubscribe().then(o=>{if(!o)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})};return this.subscription.pipe(J(1),oe(n)).toPromise()}decodeBase64(n){return atob(n)}static{this.\u0275fac=function(r){return new(r||e)(E(tr))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),gE=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,!n.isEnabled){this.versionUpdates=$t,this.unrecoverable=$t;return}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Qr));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:n},n)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Qr));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:n},n)}static{this.\u0275fac=function(r){return new(r||e)(E(tr))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})();var Vp=new I("");function mE(e,t,n,r){return()=>{if(!(xi(r)&&"serviceWorker"in navigator&&n.enabled!==!1))return;let o=e.get(Y),i=e.get(Qe);o.runOutsideAngular(()=>{let a=navigator.serviceWorker,c=()=>a.controller?.postMessage({action:"INITIALIZE"});a.addEventListener("controllerchange",c),i.onDestroy(()=>{a.removeEventListener("controllerchange",c)})});let s;if(typeof n.registrationStrategy=="function")s=n.registrationStrategy();else{let[a,...c]=(n.registrationStrategy||"registerWhenStable:30000").split(":");switch(a){case"registerImmediately":s=D(null);break;case"registerWithDelay":s=$p(+c[0]||0);break;case"registerWhenStable":let u=z(e.get(Qe).whenStable());s=c[0]?Do(u,$p(+c[0])):u;break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${n.registrationStrategy}`)}}o.runOutsideAngular(()=>s.pipe(J(1)).subscribe(()=>navigator.serviceWorker.register(t,{scope:n.scope}).catch(a=>console.error("Service worker registration failed with:",a))))}}function $p(e){return D(null).pipe(bs(e))}function vE(e,t){return new tr(xi(t)&&e.enabled!==!1?navigator.serviceWorker:void 0)}var Yr=class{};function Bp(e,t={}){return Ln([pE,gE,{provide:Vp,useValue:e},{provide:Yr,useValue:t},{provide:tr,useFactory:vE,deps:[Yr,Fe]},{provide:Bn,useFactory:mE,deps:[Me,Vp,Yr,Fe],multi:!0}])}var Up={providers:[mh({eventCoalescing:!0}),Rp(jp),Bp("ngsw-worker.js",{enabled:!yh(),registrationStrategy:"registerWhenStable:30000"})]};function yE(e,t){if(e&1){let n=Nt();A(0,"button",1),B("click",function(){G(n);let o=K();return W(o.installPwa())}),U(1,` Install App +`),P()}}var Ji=class e{deferredPrompt;showInstallButton=!1;ngOnInit(){window.addEventListener("beforeinstallprompt",t=>{t.preventDefault(),this.deferredPrompt=t,this.showInstallButton=!0})}installPwa(){return nr(this,null,function*(){if(!this.deferredPrompt)return;this.deferredPrompt.prompt();let{outcome:t}=yield this.deferredPrompt.userChoice;t==="accepted"&&(this.showInstallButton=!1),this.deferredPrompt=null})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Mt({type:e,selectors:[["app-root"]],standalone:!0,features:[At],decls:2,vars:1,consts:[["class","install-button",3,"click",4,"ngIf"],[1,"install-button",3,"click"]],template:function(n,r){n&1&&(Tt(0,yE,2,0,"button",0),ct(1,"router-outlet")),n&2&&je("ngIf",r.showInstallButton)},dependencies:[Eu,Jt,_i,Qi],styles:[".fullscreen-container[_ngcontent-%COMP%]{position:relative;width:100vw;height:100vh;overflow:hidden}.fullscreen-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}.content[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;z-index:1}.content[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#fff;font-size:3rem;text-shadow:2px 2px 4px rgba(0,0,0,.5);margin-bottom:2rem}.start-button[_ngcontent-%COMP%]{padding:12px 24px;background-color:#007bff;color:#fff;border:none;border-radius:24px;font-size:1.1rem;cursor:pointer;box-shadow:0 2px 5px #0003;transition:transform .2s}.start-button[_ngcontent-%COMP%]:hover{transform:scale(1.05);background-color:#0056b3}.install-button[_ngcontent-%COMP%]{position:fixed;bottom:20px;right:20px;padding:12px 24px;background-color:#007bff;color:#fff;border:none;border-radius:24px;font-size:1.1rem;cursor:pointer;box-shadow:0 2px 5px #0003;z-index:1000;transition:transform .2s}.install-button[_ngcontent-%COMP%]:hover{transform:scale(1.05);background-color:#0056b3}"]})};Bh(Ji,Up).catch(e=>console.error(e)); diff --git a/main-CS5R27W5.js b/main-CS5R27W5.js deleted file mode 100644 index 8c9c3ec..0000000 --- a/main-CS5R27W5.js +++ /dev/null @@ -1,8 +0,0 @@ -var Up=Object.defineProperty,Hp=Object.defineProperties;var zp=Object.getOwnPropertyDescriptors;var _u=Object.getOwnPropertySymbols;var Gp=Object.prototype.hasOwnProperty,Wp=Object.prototype.propertyIsEnumerable;var xu=(e,t,n)=>t in e?Up(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g=(e,t)=>{for(var n in t||={})Gp.call(t,n)&&xu(e,n,t[n]);if(_u)for(var n of _u(t))Wp.call(t,n)&&xu(e,n,t[n]);return e},z=(e,t)=>Hp(e,zp(t));var er=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(u){o(u)}},s=c=>{try{a(n.throw(c))}catch(u){o(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});var ns=null;var ts=1,Tu=Symbol("SIGNAL");function O(e){let t=ns;return ns=e,t}function Nu(){return ns}var rs={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function qp(e){if(!(cs(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===ts)){if(!e.producerMustRecompute(e)&&!is(e)){e.dirty=!1,e.lastCleanEpoch=ts;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=ts}}function os(e){return e&&(e.nextProducerIndex=0),O(e)}function Au(e,t){if(O(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(cs(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function is(e){us(e);for(let t=0;t0}function us(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Zp(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Yp(e){return e.producerNode!==void 0}function Qp(){throw new Error}var Xp=Qp;function Ru(e){Xp=e}function v(e){return typeof e=="function"}function nn(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 Qr=nn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: -${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Rt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Q=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(v(r))try{r()}catch(i){t=i instanceof Qr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Ou(i)}catch(s){t=t??[],s instanceof Qr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Qr(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Ou(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)&&Rt(n,t)}remove(t){let{_finalizers:n}=this;n&&Rt(n,t),t instanceof e&&t._removeParent(this)}};Q.EMPTY=(()=>{let e=new Q;return e.closed=!0,e})();var ls=Q.EMPTY;function Xr(e){return e instanceof Q||e&&"closed"in e&&v(e.remove)&&v(e.add)&&v(e.unsubscribe)}function Ou(e){v(e)?e():e.unsubscribe()}var Te={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var rn={setTimeout(e,t,...n){let{delegate:r}=rn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=rn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Kr(e){rn.setTimeout(()=>{let{onUnhandledError:t}=Te;if(t)t(e);else throw e})}function Ke(){}var Pu=ds("C",void 0,void 0);function ku(e){return ds("E",void 0,e)}function Fu(e){return ds("N",e,void 0)}function ds(e,t,n){return{kind:e,value:t,error:n}}var Ot=null;function on(e){if(Te.useDeprecatedSynchronousErrorHandling){let t=!Ot;if(t&&(Ot={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Ot;if(Ot=null,n)throw r}}else e()}function Lu(e){Te.useDeprecatedSynchronousErrorHandling&&Ot&&(Ot.errorThrown=!0,Ot.error=e)}var Pt=class extends Q{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Xr(t)&&t.add(this)):this.destination=eg}static create(t,n,r){return new sn(t,n,r)}next(t){this.isStopped?hs(Fu(t),this):this._next(t)}error(t){this.isStopped?hs(ku(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?hs(Pu,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()}}},Kp=Function.prototype.bind;function fs(e,t){return Kp.call(e,t)}var ps=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Jr(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Jr(r)}else Jr(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Jr(n)}}},sn=class extends Pt{constructor(t,n,r){super();let o;if(v(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Te.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&fs(t.next,i),error:t.error&&fs(t.error,i),complete:t.complete&&fs(t.complete,i)}):o=t}this.destination=new ps(o)}};function Jr(e){Te.useDeprecatedSynchronousErrorHandling?Lu(e):Kr(e)}function Jp(e){throw e}function hs(e,t){let{onStoppedNotification:n}=Te;n&&rn.setTimeout(()=>n(e,t))}var eg={closed:!0,next:Ke,error:Jp,complete:Ke};var an=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ge(e){return e}function gs(...e){return ms(e)}function ms(e){return e.length===0?ge:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var A=(()=>{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=ng(n)?n:new sn(n,r,o);return on(()=>{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=ju(r),new r((o,i)=>{let s=new sn({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)}[an](){return this}pipe(...n){return ms(n)(this)}toPromise(n){return n=ju(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 ju(e){var t;return(t=e??Te.Promise)!==null&&t!==void 0?t:Promise}function tg(e){return e&&v(e.next)&&v(e.error)&&v(e.complete)}function ng(e){return e&&e instanceof Pt||tg(e)&&Xr(e)}function vs(e){return v(e?.lift)}function N(e){return t=>{if(vs(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 R(e,t,n,r,o){return new ys(e,t,n,r,o)}var ys=class extends Pt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function cn(){return N((e,t)=>{let n=null;e._refCount++;let r=R(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var ht=class extends A{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,vs(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Q;let n=this.getSubject();t.add(this.source.subscribe(R(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Q.EMPTY)}return t}refCount(){return cn()(this)}};var Vu=nn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var X=(()=>{class e extends A{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new eo(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Vu}next(n){on(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){on(()=>{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(){on(()=>{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?ls:(this.currentObservers=null,i.push(n),new Q(()=>{this.currentObservers=null,Rt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new A;return n.source=this,n}}return e.create=(t,n)=>new eo(t,n),e})(),eo=class extends X{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:ls}};var te=class extends X{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 Ds={now(){return(Ds.delegate||Date).now()},delegate:void 0};var to=class extends Q{constructor(t,n){super()}schedule(t,n=0){return this}};var tr={setInterval(e,t,...n){let{delegate:r}=tr;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=tr;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var no=class extends to{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 tr.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&&tr.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,Rt(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var un=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)}};un.now=Ds.now;var ro=class extends un{constructor(t,n=un.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 ws=new ro(no),$u=ws;var ae=new A(e=>e.complete());function oo(e){return e&&v(e.schedule)}function Cs(e){return e[e.length-1]}function Bu(e){return v(Cs(e))?e.pop():void 0}function je(e){return oo(Cs(e))?e.pop():void 0}function Uu(e,t){return typeof Cs(e)=="number"?e.pop():t}function zu(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 Hu(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 kt(e){return this instanceof kt?(this.v=e,this):new kt(e)}function Gu(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(T){return new Promise(function(j,B){i.push([f,T,j,B])>1||c(f,T)})},m&&(o[f]=m(o[f])))}function c(f,m){try{u(r[f](m))}catch(T){h(i[0][3],T)}}function u(f){f.value instanceof kt?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function h(f,m){f(m),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Wu(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 Hu=="function"?Hu(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 ln=e=>e&&typeof e.length=="number"&&typeof e!="function";function io(e){return v(e?.then)}function so(e){return v(e[an])}function ao(e){return Symbol.asyncIterator&&v(e?.[Symbol.asyncIterator])}function co(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 rg(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var uo=rg();function lo(e){return v(e?.[uo])}function fo(e){return Gu(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield kt(n.read());if(o)return yield kt(void 0);yield yield kt(r)}}finally{n.releaseLock()}})}function ho(e){return v(e?.getReader)}function V(e){if(e instanceof A)return e;if(e!=null){if(so(e))return og(e);if(ln(e))return ig(e);if(io(e))return sg(e);if(ao(e))return qu(e);if(lo(e))return ag(e);if(ho(e))return cg(e)}throw co(e)}function og(e){return new A(t=>{let n=e[an]();if(v(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ig(e){return new A(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Kr)})}function ag(e){return new A(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function qu(e){return new A(t=>{ug(e,t).catch(n=>t.error(n))})}function cg(e){return qu(fo(e))}function ug(e,t){var n,r,o,i;return zu(this,void 0,void 0,function*(){try{for(n=Wu(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 fe(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 po(e,t=0){return N((n,r)=>{n.subscribe(R(r,o=>fe(r,e,()=>r.next(o),t),()=>fe(r,e,()=>r.complete(),t),o=>fe(r,e,()=>r.error(o),t)))})}function go(e,t=0){return N((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Zu(e,t){return V(e).pipe(go(t),po(t))}function Yu(e,t){return V(e).pipe(go(t),po(t))}function Qu(e,t){return new A(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Xu(e,t){return new A(n=>{let r;return fe(n,t,()=>{r=e[uo](),fe(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)}),()=>v(r?.return)&&r.return()})}function mo(e,t){if(!e)throw new Error("Iterable cannot be null");return new A(n=>{fe(n,t,()=>{let r=e[Symbol.asyncIterator]();fe(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Ku(e,t){return mo(fo(e),t)}function Ju(e,t){if(e!=null){if(so(e))return Zu(e,t);if(ln(e))return Qu(e,t);if(io(e))return Yu(e,t);if(ao(e))return mo(e,t);if(lo(e))return Xu(e,t);if(ho(e))return Ku(e,t)}throw co(e)}function U(e,t){return t?Ju(e,t):V(e)}function D(...e){let t=je(e);return U(e,t)}function pt(e,t){let n=v(e)?e:()=>e,r=o=>o.error(n());return new A(t?o=>t.schedule(r,0,o):r)}function Is(e){return!!e&&(e instanceof A||v(e.lift)&&v(e.subscribe))}var Je=nn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function el(e){return e instanceof Date&&!isNaN(e)}function b(e,t){return N((n,r)=>{let o=0;n.subscribe(R(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:lg}=Array;function dg(e,t){return lg(t)?e(...t):e(t)}function vo(e){return b(t=>dg(e,t))}var{isArray:fg}=Array,{getPrototypeOf:hg,prototype:pg,keys:gg}=Object;function tl(e){if(e.length===1){let t=e[0];if(fg(t))return{args:t,keys:null};if(mg(t)){let n=gg(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function mg(e){return e&&typeof e=="object"&&hg(e)===pg}function nl(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function nr(...e){let t=je(e),n=Bu(e),{args:r,keys:o}=tl(e);if(r.length===0)return U([],t);let i=new A(vg(r,t,o?s=>nl(o,s):ge));return n?i.pipe(vo(n)):i}function vg(e,t,n=ge){return r=>{rl(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c{let u=U(e[c],t),l=!1;u.subscribe(R(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function rl(e,t,n){e?fe(n,e,t):t()}function ol(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&t.complete()},f=T=>u{i&&t.next(T),u++;let j=!1;V(n(T,l++)).subscribe(R(t,B=>{o?.(B),i?f(B):t.next(B)},()=>{j=!0},void 0,()=>{if(j)try{for(u--;c.length&&um(B)):m(B)}h()}catch(B){t.error(B)}}))};return e.subscribe(R(t,f,()=>{d=!0,h()})),()=>{a?.()}}function G(e,t,n=1/0){return v(t)?G((r,o)=>b((i,s)=>t(r,i,o,s))(V(e(r,o))),n):(typeof t=="number"&&(n=t),N((r,o)=>ol(r,o,e,n)))}function gt(e=1/0){return G(ge,e)}function il(){return gt(1)}function Ve(...e){return il()(U(e,je(e)))}function Ft(e){return new A(t=>{V(e()).subscribe(t)})}var yg=["addListener","removeListener"],Dg=["addEventListener","removeEventListener"],wg=["on","off"];function dn(e,t,n,r){if(v(n)&&(r=n,n=void 0),r)return dn(e,t,n).pipe(vo(r));let[o,i]=Eg(e)?Dg.map(s=>a=>e[s](t,a,n)):Cg(e)?yg.map(sl(e,t)):Ig(e)?wg.map(sl(e,t)):[];if(!o&&ln(e))return G(s=>dn(s,t,n))(V(e));if(!o)throw new TypeError("Invalid event target");return new A(s=>{let a=(...c)=>s.next(1i(a)})}function sl(e,t){return n=>r=>e[n](t,r)}function Cg(e){return v(e.addListener)&&v(e.removeListener)}function Ig(e){return v(e.on)&&v(e.off)}function Eg(e){return v(e.addEventListener)&&v(e.removeEventListener)}function al(e=0,t,n=$u){let r=-1;return t!=null&&(oo(t)?n=t:r=t),new A(o=>{let i=el(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function yo(...e){let t=je(e),n=Uu(e,1/0),r=e;return r.length?r.length===1?V(r[0]):gt(n)(U(r,t)):ae}var Lt=new A(Ke);function ne(e,t){return N((n,r)=>{let o=0;n.subscribe(R(r,i=>e.call(t,i,o++)&&r.next(i)))})}function mt(e){return N((t,n)=>{let r=null,o=!1,i;r=t.subscribe(R(n,void 0,void 0,s=>{i=V(e(s,mt(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function cl(e,t,n,r,o){return(i,s)=>{let a=n,c=t,u=0;i.subscribe(R(s,l=>{let d=u++;c=a?e(c,l,d):(a=!0,l),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function jt(e,t){return v(t)?G(e,t,1):G(e,1)}function ul(e){return new A(t=>e.subscribe(t))}var bg={connector:()=>new X};function Do(e,t=bg){let{connector:n}=t;return N((r,o)=>{let i=n();V(e(ul(i))).subscribe(o),o.add(r.subscribe(i))})}function vt(e){return N((t,n)=>{let r=!1;t.subscribe(R(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function K(e){return e<=0?()=>ae:N((t,n)=>{let r=0;t.subscribe(R(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function ll(){return N((e,t)=>{e.subscribe(R(t,Ke))})}function rr(e){return b(()=>e)}function Es(e,t){return t?n=>Ve(t.pipe(K(1),ll()),n.pipe(Es(e))):G((n,r)=>V(e(n,r)).pipe(K(1),rr(n)))}function bs(e,t=ws){let n=al(e,t);return Es(()=>n)}function wo(e=Mg){return N((t,n)=>{let r=!1;t.subscribe(R(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Mg(){return new Je}function or(e){return N((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function $e(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ne((o,i)=>e(o,i,r)):ge,K(1),n?vt(t):wo(()=>new Je))}function fn(e){return e<=0?()=>ae:N((t,n)=>{let r=[];t.subscribe(R(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Ms(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ne((o,i)=>e(o,i,r)):ge,fn(1),n?vt(t):wo(()=>new Je))}function dl(e,t){let n=v(e)?e:()=>e;return v(t)?Do(t,{connector:n}):r=>new ht(r,n)}function Ss(e){return e?t=>Do(e)(t):t=>dl(new X)(t)}function _s(e,t){return N(cl(e,t,arguments.length>=2,!0))}function xs(...e){let t=je(e);return N((n,r)=>{(t?Ve(e,n,t):Ve(e,n)).subscribe(r)})}function re(e,t){return N((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(R(r,c=>{o?.unsubscribe();let u=0,l=i++;V(e(c,l)).subscribe(o=R(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Ts(e){return N((t,n)=>{V(e).subscribe(R(n,()=>n.complete(),Ke)),!n.closed&&t.subscribe(n)})}function J(e,t,n){let r=v(e)||t||n?{next:e,error:t,complete:n}:e;return r?N((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(R(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)}))}):ge}var Xl="https://g.co/ng/security#xss",w=class extends Error{constructor(t,n){super(La(t,n)),this.code=t}};function La(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function pr(e){return{toString:e}.toString()}var Co="__parameters__";function Sg(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Kl(e,t,n){return pr(()=>{let r=Sg(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(Co)?c[Co]:Object.defineProperty(c,Co,{value:[]})[Co];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var Bs=globalThis;function L(e){for(let t in e)if(e[t]===L)return t;throw Error("Could not find renamed property on target object.")}function ce(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(ce).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` -`);return n===-1?t:t.substring(0,n)}function fl(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var _g=L({__forward_ref__:L});function Jl(e){return e.__forward_ref__=Jl,e.toString=function(){return ce(this())},e}function Ee(e){return ed(e)?e():e}function ed(e){return typeof e=="function"&&e.hasOwnProperty(_g)&&e.__forward_ref__===Jl}function y(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Tn(e){return{providers:e.providers||[],imports:e.imports||[]}}function Jo(e){return hl(e,nd)||hl(e,rd)}function td(e){return Jo(e)!==null}function hl(e,t){return e.hasOwnProperty(t)?e[t]:null}function xg(e){let t=e&&(e[nd]||e[rd]);return t||null}function pl(e){return e&&(e.hasOwnProperty(gl)||e.hasOwnProperty(Tg))?e[gl]:null}var nd=L({\u0275prov:L}),gl=L({\u0275inj:L}),rd=L({ngInjectableDef:L}),Tg=L({ngInjectorDef:L}),I=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=y({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function od(e){return e&&!!e.\u0275providers}var Ng=L({\u0275cmp:L}),Ag=L({\u0275dir:L}),Rg=L({\u0275pipe:L}),Og=L({\u0275mod:L}),Ao=L({\u0275fac:L}),sr=L({__NG_ELEMENT_ID__:L}),ml=L({__NG_ENV_ID__:L});function ei(e){return typeof e=="string"?e:e==null?"":String(e)}function Pg(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():ei(e)}function kg(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new w(-200,e)}function ja(e,t){throw new w(-201,!1)}var S=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(S||{}),Us;function id(){return Us}function Ie(e){let t=Us;return Us=e,t}function sd(e,t,n){let r=Jo(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&S.Optional)return null;if(t!==void 0)return t;ja(e,"Injector")}var Fg={},ar=Fg,Hs="__NG_DI_FLAG__",Ro="ngTempTokenPath",Lg="ngTokenPath",jg=/\n/gm,Vg="\u0275",vl="__source",vn;function $g(){return vn}function yt(e){let t=vn;return vn=e,t}function Bg(e,t=S.Default){if(vn===void 0)throw new w(-203,!1);return vn===null?sd(e,void 0,t):vn.get(e,t&S.Optional?null:void 0,t)}function E(e,t=S.Default){return(id()||Bg)(Ee(e),t)}function p(e,t=S.Default){return E(e,ti(t))}function ti(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function zs(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):ce(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(jg,` - `)}`}var ni=ad(Kl("Optional"),8);var Va=ad(Kl("SkipSelf"),4);function Dn(e,t){let n=e.hasOwnProperty(Ao);return n?e[Ao]:null}function Gg(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?$a(n,t):t(n))}function cd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Oo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function qg(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Zg(e,t,n){let r=gr(e,t);return r>=0?e[r|1]=n:(r=~r,qg(e,r,t,n)),r}function Ns(e,t){let n=gr(e,t);if(n>=0)return e[n|1]}function gr(e,t){return Yg(e,t,1)}function Yg(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(Ne(r))return!1;s=!0}}}}return Ne(r)||s}function Ne(e){return(e&1)===0}function tm(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Ne(s)&&(t+=Dl(i,o),o=""),r=s,i=i||!Ne(r);n++}return o!==""&&(t+=Dl(i,o)),t}function sm(e){return e.map(im).join(",")}function am(e){let t=[],n=[],r=1,o=2;for(;r{let t=yd(e),n=z(g({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===dd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||He.Emulated,styles:e.styles||Ae,_:null,schemas:e.schemas||null,tView:null,id:""});Dd(n);let r=e.dependencies;return n.directiveDefs=Cl(r,!1),n.pipeDefs=Cl(r,!0),n.id=lm(n),n})}function cm(e){return It(e)||pd(e)}function um(e){return e!==null}function Nn(e){return pr(()=>({type:e.type,bootstrap:e.bootstrap||Ae,declarations:e.declarations||Ae,imports:e.imports||Ae,exports:e.exports||Ae,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function wl(e,t){if(e==null)return cr;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=Ct.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Ct.None?[r,a]:r,t[i]=s):n[i]=r}return n}function An(e){return pr(()=>{let t=yd(e);return Dd(t),t})}function It(e){return e[Ng]||null}function pd(e){return e[Ag]||null}function gd(e){return e[Rg]||null}function md(e){let t=It(e)||pd(e)||gd(e);return t!==null?t.standalone:!1}function vd(e,t){let n=e[Og]||null;if(!n&&t===!0)throw new Error(`Type ${ce(e)} does not have '\u0275mod' property.`);return n}function yd(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||cr,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Ae,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:wl(e.inputs,t),outputs:wl(e.outputs),debugInfo:null}}function Dd(e){e.features?.forEach(t=>t(e))}function Cl(e,t){if(!e)return null;let n=t?gd:cm;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(um)}function lm(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,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].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Rn(e){return{\u0275providers:e}}function dm(...e){return{\u0275providers:wd(!0,e),\u0275fromNgModule:!0}}function wd(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return $a(t,s=>{let a=s;Ws(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Cd(o,i),n}function Cd(e,t){for(let n=0;n{t(i,r)})}}function Ws(e,t,n,r){if(e=Ee(e),!e)return!1;let o=null,i=pl(e),s=!i&&It(e);if(!i&&!s){let c=e.ngModule;if(i=pl(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)Ws(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{$a(i.imports,l=>{Ws(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Cd(u,t)}if(!a){let u=Dn(o)||(()=>new o);t({provide:o,useFactory:u,deps:Ae},o),t({provide:ld,useValue:o,multi:!0},o),t({provide:wn,useValue:()=>E(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Ha(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Ha(e,t){for(let n of e)od(n)&&(n=n.\u0275providers),Array.isArray(n)?Ha(n,t):t(n)}var fm=L({provide:String,useValue:L});function Id(e){return e!==null&&typeof e=="object"&&fm in e}function hm(e){return!!(e&&e.useExisting)}function pm(e){return!!(e&&e.useFactory)}function qs(e){return typeof e=="function"}var ri=new I(""),Mo={},gm={},As;function za(){return As===void 0&&(As=new Po),As}var ve=class{},ur=class extends ve{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ys(t,s=>this.processProvider(s)),this.records.set(ud,hn(void 0,this)),o.has("environment")&&this.records.set(ve,hn(void 0,this));let i=this.records.get(ri);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ld,Ae,S.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=O(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(),O(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=yt(this),r=Ie(void 0),o;try{return t()}finally{yt(n),Ie(r)}}get(t,n=ar,r=S.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(ml))return t[ml](this);r=ti(r);let o,i=yt(this),s=Ie(void 0);try{if(!(r&S.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=Cm(t)&&Jo(t);u&&this.injectableDefInScope(u)?c=hn(Zs(t),Mo):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&S.Self?za():this.parent;return n=r&S.Optional&&n===ar?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Ro]=a[Ro]||[]).unshift(ce(t)),i)throw a;return Hg(a,t,"R3InjectorError",this.source)}else throw a}finally{Ie(s),yt(i)}}resolveInjectorInitializers(){let t=O(null),n=yt(this),r=Ie(void 0),o;try{let i=this.get(wn,Ae,S.Self);for(let s of i)s()}finally{yt(n),Ie(r),O(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(ce(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processProvider(t){t=Ee(t);let n=qs(t)?t:Ee(t&&t.provide),r=vm(t);if(!qs(t)&&t.multi===!0){let o=this.records.get(n);o||(o=hn(void 0,Mo,!0),o.factory=()=>zs(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=O(null);try{return n.value===Mo&&(n.value=gm,n.value=n.factory()),typeof n.value=="object"&&n.value&&wm(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{O(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Ee(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 Zs(e){let t=Jo(e),n=t!==null?t.factory:Dn(e);if(n!==null)return n;if(e instanceof I)throw new w(204,!1);if(e instanceof Function)return mm(e);throw new w(204,!1)}function mm(e){if(e.length>0)throw new w(204,!1);let n=xg(e);return n!==null?()=>n.factory(e):()=>new e}function vm(e){if(Id(e))return hn(void 0,e.useValue);{let t=ym(e);return hn(t,Mo)}}function ym(e,t,n){let r;if(qs(e)){let o=Ee(e);return Dn(o)||Zs(o)}else if(Id(e))r=()=>Ee(e.useValue);else if(pm(e))r=()=>e.useFactory(...zs(e.deps||[]));else if(hm(e))r=()=>E(Ee(e.useExisting));else{let o=Ee(e&&(e.useClass||e.provide));if(Dm(e))r=()=>new o(...zs(e.deps));else return Dn(o)||Zs(o)}return r}function hn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Dm(e){return!!e.deps}function wm(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Cm(e){return typeof e=="function"||typeof e=="object"&&e instanceof I}function Ys(e,t){for(let n of e)Array.isArray(n)?Ys(n,t):n&&od(n)?Ys(n.\u0275providers,t):t(n)}function qe(e,t){e instanceof ur&&e.assertNotDestroyed();let n,r=yt(e),o=Ie(void 0);try{return t()}finally{yt(r),Ie(o)}}function Ed(){return id()!==void 0||$g()!=null}function Im(e){if(!Ed())throw new w(-203,!1)}function Em(e){return typeof e=="function"}var ot=0,_=1,C=2,se=3,Re=4,Pe=5,ko=6,Fo=7,Oe=8,Cn=9,ze=10,oe=11,lr=12,Il=13,On=14,Ge=15,$t=16,pn=17,et=18,oi=19,bd=20,Dt=21,Rs=22,be=23,tt=25,Md=1;var Bt=7,Lo=8,In=9,me=10,jo=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(jo||{});function wt(e){return Array.isArray(e)&&typeof e[Md]=="object"}function it(e){return Array.isArray(e)&&e[Md]===!0}function Sd(e){return(e.flags&4)!==0}function ii(e){return e.componentOffset>-1}function Ga(e){return(e.flags&1)===1}function mr(e){return!!e.template}function Qs(e){return(e[C]&512)!==0}var Xs=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function _d(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function vr(){return xd}function xd(e){return e.type.prototype.ngOnChanges&&(e.setInput=Mm),bm}vr.ngInherit=!0;function bm(){let e=Nd(this),t=e?.current;if(t){let n=e.previous;if(n===cr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Mm(e,t,n,r,o){let i=this.declaredInputs[r],s=Nd(e)||Sm(e,{previous:cr,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Xs(u&&u.currentValue,n,c===cr),_d(e,t,o,n)}var Td="__ngSimpleChanges__";function Nd(e){return e[Td]||null}function Sm(e,t){return e[Td]=t}var El=null;var Be=function(e,t,n){El?.(e,t,n)},_m="svg",xm="math";function We(e){for(;Array.isArray(e);)e=e[ot];return e}function Ad(e,t){return We(t[e])}function Se(e,t){return We(t[e.index])}function Rd(e,t){return e.data[t]}function Tm(e,t){return e[t]}function Mt(e,t){let n=t[e];return wt(n)?n:n[ot]}function Nm(e){return(e[C]&4)===4}function Wa(e){return(e[C]&128)===128}function Am(e){return it(e[se])}function Vo(e,t){return t==null?null:e[t]}function Od(e){e[pn]=0}function Pd(e){e[C]&1024||(e[C]|=1024,Wa(e)&&ai(e))}function Rm(e,t){for(;e>0;)t=t[On],e--;return t}function si(e){return!!(e[C]&9216||e[be]?.dirty)}function Ks(e){e[ze].changeDetectionScheduler?.notify(8),e[C]&64&&(e[C]|=1024),si(e)&&ai(e)}function ai(e){e[ze].changeDetectionScheduler?.notify(0);let t=Ut(e);for(;t!==null&&!(t[C]&8192||(t[C]|=8192,!Wa(t)));)t=Ut(t)}function kd(e,t){if((e[C]&256)===256)throw new w(911,!1);e[Dt]===null&&(e[Dt]=[]),e[Dt].push(t)}function Om(e,t){if(e[Dt]===null)return;let n=e[Dt].indexOf(t);n!==-1&&e[Dt].splice(n,1)}function Ut(e){let t=e[se];return it(t)?t[se]:t}var x={lFrame:zd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Fd=!1;function Pm(){return x.lFrame.elementDepthCount}function km(){x.lFrame.elementDepthCount++}function Fm(){x.lFrame.elementDepthCount--}function Ld(){return x.bindingsEnabled}function Lm(){return x.skipHydrationRootTNode!==null}function jm(e){return x.skipHydrationRootTNode===e}function Vm(){x.skipHydrationRootTNode=null}function $(){return x.lFrame.lView}function ke(){return x.lFrame.tView}function q(e){return x.lFrame.contextLView=e,e[Oe]}function Z(e){return x.lFrame.contextLView=null,e}function ye(){let e=jd();for(;e!==null&&e.type===64;)e=e.parent;return e}function jd(){return x.lFrame.currentTNode}function $m(){let e=x.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function yr(e,t){let n=x.lFrame;n.currentTNode=e,n.isParent=t}function Vd(){return x.lFrame.isParent}function Bm(){x.lFrame.isParent=!1}function Um(){return x.lFrame.contextLView}function $d(){return Fd}function bl(e){Fd=e}function Hm(){let e=x.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function zm(e){return x.lFrame.bindingIndex=e}function qa(){return x.lFrame.bindingIndex++}function Gm(e){let t=x.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Wm(){return x.lFrame.inI18n}function qm(e,t){let n=x.lFrame;n.bindingIndex=n.bindingRootIndex=e,Js(t)}function Zm(){return x.lFrame.currentDirectiveIndex}function Js(e){x.lFrame.currentDirectiveIndex=e}function Ym(e){let t=x.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Bd(){return x.lFrame.currentQueryIndex}function Za(e){x.lFrame.currentQueryIndex=e}function Qm(e){let t=e[_];return t.type===2?t.declTNode:t.type===1?e[Pe]:null}function Ud(e,t,n){if(n&S.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&S.Host);)if(o=Qm(i),o===null||(i=i[On],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=x.lFrame=Hd();return r.currentTNode=t,r.lView=e,!0}function Ya(e){let t=Hd(),n=e[_];x.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Hd(){let e=x.lFrame,t=e===null?null:e.child;return t===null?zd(e):t}function zd(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 Gd(){let e=x.lFrame;return x.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Wd=Gd;function Qa(){let e=Gd();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 Xm(e){return(x.lFrame.contextLView=Rm(e,x.lFrame.contextLView))[Oe]}function Pn(){return x.lFrame.selectedIndex}function Ht(e){x.lFrame.selectedIndex=e}function qd(){let e=x.lFrame;return Rd(e.tView,e.selectedIndex)}function Km(){return x.lFrame.currentNamespace}var Zd=!0;function Xa(){return Zd}function Ka(e){Zd=e}function Jm(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=xd(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 Ja(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[pn]+=65536),(a>14>16&&(e[C]&3)===t&&(e[C]+=16384,Ml(a,i)):Ml(a,i)}var yn=-1,dr=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function tv(e){return e instanceof dr}function nv(e){return(e.flags&8)!==0}function rv(e){return(e.flags&16)!==0}var Ps={},ea=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=ti(r);let o=this.injector.get(t,Ps,r);return o!==Ps||n===Ps?o:this.parentInjector.get(t,n,r)}};function Qd(e){return e!==yn}function $o(e){return e&32767}function ov(e){return e>>16}function Bo(e,t){let n=ov(e),r=t;for(;n>0;)r=r[On],n--;return r}var ta=!0;function Sl(e){let t=ta;return ta=e,t}var iv=256,Xd=iv-1,Kd=5,sv=0,Ue={};function av(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(sr)&&(r=n[sr]),r==null&&(r=n[sr]=sv++);let o=r&Xd,i=1<>Kd)]|=i}function Jd(e,t){let n=ef(e,t);if(n!==-1)return n;let r=t[_];r.firstCreatePass&&(e.injectorIndex=t.length,ks(r.data,e),ks(t,null),ks(r.blueprint,null));let o=ec(e,t),i=e.injectorIndex;if(Qd(o)){let s=$o(o),a=Bo(o,t),c=a[_].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function ks(e,t){e.push(0,0,0,0,0,0,0,0,t)}function ef(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function ec(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=sf(o),r===null)return yn;if(n++,o=o[On],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return yn}function cv(e,t,n){av(e,t,n)}function uv(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>20,d=r?a:a+l,h=o?a+l:u;for(let f=d;f=c&&m.type===n)return f}if(o){let f=s[c];if(f&&mr(f)&&f.type===n)return c}return null}function En(e,t,n,r){let o=e[n],i=t.data;if(tv(o)){let s=o;s.resolving&&kg(Pg(i[n]));let a=Sl(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?Ie(s.injectImpl):null,l=Ud(e,r,S.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&Jm(n,i[n],t)}finally{u!==null&&Ie(u),Sl(a),s.resolving=!1,Wd()}}return o}function dv(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(sr)?e[sr]:void 0;return typeof t=="number"?t>=0?t&Xd:fv:t}function _l(e,t,n){let r=1<>Kd)]&r)}function xl(e,t){return!(e&S.Self)&&!(e&S.Host&&t)}var Vt=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return rf(this._tNode,this._lView,t,ti(r),n)}};function fv(){return new Vt(ye(),$())}function tc(e){return pr(()=>{let t=e.prototype.constructor,n=t[Ao]||na(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Ao]||na(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function na(e){return ed(e)?()=>{let t=na(Ee(e));return t&&t()}:Dn(e)}function hv(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[C]&2048&&!(s[C]&512);){let a=of(i,s,n,r|S.Self,Ue);if(a!==Ue)return a;let c=i.parent;if(!c){let u=s[bd];if(u){let l=u.get(n,Ue,r);if(l!==Ue)return l}c=sf(s),s=s[On]}i=c}return o}function sf(e){let t=e[_],n=t.type;return n===2?t.declTNode:n===1?e[Pe]:null}function nc(e){return uv(ye(),e)}function Tl(e,t=null,n=null,r){let o=af(e,t,n,r);return o.resolveInjectorInitializers(),o}function af(e,t=null,n=null,r,o=new Set){let i=[n||Ae,dm(e)];return r=r||(typeof e=="object"?void 0:ce(e)),new ur(i,t||za(),r||null,o)}var Me=class e{static{this.THROW_IF_NOT_FOUND=ar}static{this.NULL=new Po}static create(t,n){if(Array.isArray(t))return Tl({name:""},n,t,"");{let r=t.name??"";return Tl({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=y({token:e,providedIn:"any",factory:()=>E(ud)})}static{this.__NG_ELEMENT_ID__=-1}};var pv=new I("");pv.__NG_ELEMENT_ID__=e=>{let t=ye();if(t===null)throw new w(204,!1);if(t.type&2)return t.value;if(e&S.Optional)return null;throw new w(204,!1)};var gv="ngOriginalError";function Fs(e){return e[gv]}var cf=!0,rc=(()=>{class e{static{this.__NG_ELEMENT_ID__=mv}static{this.__NG_ENV_ID__=n=>n}}return e})(),ra=class extends rc{constructor(t){super(),this._lView=t}onDestroy(t){return kd(this._lView,t),()=>Om(this._lView,t)}};function mv(){return new ra($())}var kn=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new te(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=y({token:e,providedIn:"root",factory:()=>new e})}}return e})();var oa=class extends X{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,Ed()&&(this.destroyRef=p(rc,{optional:!0})??void 0,this.pendingTasks=p(kn,{optional:!0})??void 0)}emit(t){let n=O(null);try{super.next(t)}finally{O(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 Q&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},ie=oa;function Uo(...e){}function uf(e){let t,n;function r(){e=Uo;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 Nl(e){return queueMicrotask(()=>e()),()=>{e=Uo}}var oc="isAngularZone",Ho=oc+"_ID",vv=0,W=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ie(!1),this.onMicrotaskEmpty=new ie(!1),this.onStable=new ie(!1),this.onError=new ie(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=cf}=t;if(typeof Zone>"u")throw new w(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,wv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(oc)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new w(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,yv,Uo,Uo);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)}},yv={};function ic(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 Dv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){uf(()=>{e.callbackScheduled=!1,ia(e),e.isCheckStableRunning=!0,ic(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),ia(e)}function wv(e){let t=()=>{Dv(e)},n=vv++;e._inner=e._inner.fork({name:"angular",properties:{[oc]:!0,[Ho]:n,[Ho+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Cv(c))return r.invokeTask(i,s,a,c);try{return Al(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Rl(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Al(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Iv(c)&&t(),Rl(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,ia(e),ic(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 ia(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Al(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Rl(e){e._nesting--,ic(e)}var sa=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ie,this.onMicrotaskEmpty=new ie,this.onStable=new ie,this.onError=new ie}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 Cv(e){return lf(e,"__ignore_ng_zone__")}function Iv(e){return lf(e,"__scheduler_tick__")}function lf(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var nt=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Fs(t);for(;n&&Fs(n);)n=Fs(n);return n||null}},Ev=new I("",{providedIn:"root",factory:()=>{let e=p(W),t=p(nt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function bv(){return Fn(ye(),$())}function Fn(e,t){return new St(Se(e,t))}var St=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=bv}}return e})();function Mv(e){return e instanceof St?e.nativeElement:e}function Sv(){return this._results[Symbol.iterator]()}var aa=class e{get changes(){return this._changes??=new ie}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=Sv)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Wg(t);(this._changesDetected=!Gg(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function df(e){return(e.flags&128)===128}var ff=new Map,_v=0;function xv(){return _v++}function Tv(e){ff.set(e[oi],e)}function ca(e){ff.delete(e[oi])}var Ol="__ngContext__";function zt(e,t){wt(t)?(e[Ol]=t[oi],Tv(t)):e[Ol]=t}function hf(e){return gf(e[lr])}function pf(e){return gf(e[Re])}function gf(e){for(;e!==null&&!it(e);)e=e[Re];return e}var ua;function mf(e){ua=e}function Nv(){if(ua!==void 0)return ua;if(typeof document<"u")return document;throw new w(210,!1)}var sc=new I("",{providedIn:"root",factory:()=>Av}),Av="ng",ac=new I(""),Fe=new I("",{providedIn:"platform",factory:()=>"unknown"});var cc=new I("",{providedIn:"root",factory:()=>Nv().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Rv="h",Ov="b";var Pv=()=>null;function uc(e,t,n=!1){return Pv(e,t,n)}var vf=!1,kv=new I("",{providedIn:"root",factory:()=>vf});var Io;function Fv(){if(Io===void 0&&(Io=null,Bs.trustedTypes))try{Io=Bs.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Io}function Pl(e){return Fv()?.createScriptURL(e)||e}var zo=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Xl})`}};function Dr(e){return e instanceof zo?e.changingThisBreaksApplicationSecurity:e}function lc(e,t){let n=Lv(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Xl})`)}return n===t}function Lv(e){return e instanceof zo&&e.getTypeName()||null}var jv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function yf(e){return e=String(e),e.match(jv)?e:"unsafe:"+e}var ci=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}(ci||{});function Vv(e){let t=wf();return t?t.sanitize(ci.URL,e)||"":lc(e,"URL")?Dr(e):yf(ei(e))}function $v(e){let t=wf();if(t)return Pl(t.sanitize(ci.RESOURCE_URL,e)||"");if(lc(e,"ResourceURL"))return Pl(Dr(e));throw new w(904,!1)}function Bv(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?$v:Vv}function Df(e,t,n){return Bv(t,n)(e)}function wf(){let e=$();return e&&e[ze].sanitizer}function Cf(e){return e instanceof Function?e():e}function Uv(e){return(e??p(Me)).get(Fe)==="browser"}var rt=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(rt||{}),Hv;function dc(e,t){return Hv(e,t)}function gn(e,t,n,r,o){if(r!=null){let i,s=!1;it(r)?i=r:wt(r)&&(s=!0,r=r[ot]);let a=We(r);e===0&&n!==null?o==null?Sf(t,n,a):Go(t,n,a,o||null,!0):e===1&&n!==null?Go(t,n,a,o||null,!0):e===2?oy(t,a,s):e===3&&t.destroyNode(a),i!=null&&sy(t,e,i,n,o)}}function zv(e,t){return e.createText(t)}function Gv(e,t,n){e.setValue(t,n)}function If(e,t,n){return e.createElement(t,n)}function Wv(e,t){Ef(e,t),t[ot]=null,t[Pe]=null}function qv(e,t,n,r,o,i){r[ot]=o,r[Pe]=t,ui(e,r,n,1,o,i)}function Ef(e,t){t[ze].changeDetectionScheduler?.notify(9),ui(e,t,t[oe],2,null,null)}function Zv(e){let t=e[lr];if(!t)return Ls(e[_],e);for(;t;){let n=null;if(wt(t))n=t[lr];else{let r=t[me];r&&(n=r)}if(!n){for(;t&&!t[Re]&&t!==e;)wt(t)&&Ls(t[_],t),t=t[se];t===null&&(t=e),wt(t)&&Ls(t[_],t),n=t&&t[Re]}t=n}}function Yv(e,t,n,r){let o=me+r,i=n.length;r>0&&(n[o-1][Re]=t),r0&&(e[n-1][Re]=r[Re]);let i=Oo(e,me+t);Wv(r[_],r);let s=i[et];s!==null&&s.detachView(i[_]),r[se]=null,r[Re]=null,r[C]&=-129}return r}function Mf(e,t){if(!(t[C]&256)){let n=t[oe];n.destroyNode&&ui(e,t,n,3,null,null),Zv(t)}}function Ls(e,t){if(t[C]&256)return;let n=O(null);try{t[C]&=-129,t[C]|=256,t[be]&&ss(t[be]),Xv(e,t),Qv(e,t),t[_].type===1&&t[oe].destroy();let r=t[$t];if(r!==null&&it(t[se])){r!==t[se]&&fc(r,t);let o=t[et];o!==null&&o.detachView(e)}ca(t)}finally{O(n)}}function Qv(e,t){let n=e.cleanup,r=t[Fo];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[Fo]=null);let o=t[Dt];if(o!==null){t[Dt]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===He.None||i===He.Emulated)return null}return Se(r,n)}}function Go(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Sf(e,t,n){e.appendChild(t,n)}function kl(e,t,n,r,o){r!==null?Go(e,t,n,r,o):Sf(e,t,n)}function _f(e,t){return e.parentNode(t)}function ey(e,t){return e.nextSibling(t)}function ty(e,t,n){return ry(e,t,n)}function ny(e,t,n){return e.type&40?Se(e,n):null}var ry=ny,Fl;function hc(e,t,n,r){let o=Kv(e,r,t),i=t[oe],s=r.parent||t[Pe],a=ty(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;ctt&&Af(e,t,tt,!1),Be(s?2:0,o),n(r,o)}finally{Ht(i),Be(s?3:1,o)}}function Ff(e,t,n){if(Sd(t)){let r=O(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function gy(e,t,n,r){let o=Gf(t);o.push(n),e.firstCreatePass&&Wf(e).push(r,o.length-1)}function my(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Lm()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs: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 Ll(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,c=Ct.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}e===0?jl(r,n,u,a,c):jl(r,n,u,a)}return r}function jl(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function vy(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],c=null,u=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Ey(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;ii(n)&&Ny(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Jd(n,t),zt(r,t);let s=n.initialInputs;for(let a=o;a{ai(e.lView)},consumerOnSignalRead(){this.lView[be]=this}});function Wy(e){let t=e[be]??Object.create(qy);return t.lView=e,t}var qy=z(g({},rs),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Ut(e.lView);for(;t&&!Yf(t[_]);)t=Ut(t);t&&Pd(t)},consumerOnSignalRead(){this.lView[be]=this}});function Yf(e){return e.type!==2}var Zy=100;function Qf(e,t=!0,n=0){let r=e[ze],o=r.rendererFactory,i=!1;i||o.begin?.();try{Yy(e,n)}catch(s){throw t&&qf(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function Yy(e,t){let n=$d();try{bl(!0),pa(e,t);let r=0;for(;si(e);){if(r===Zy)throw new w(103,!1);r++,pa(e,1)}}finally{bl(n)}}function Qy(e,t,n,r){let o=t[C];if((o&256)===256)return;let i=!1,s=!1;!i&&t[ze].inlineEffectRunner?.flush(),Ya(t);let a=!0,c=null,u=null;i||(Yf(e)?(u=Uy(t),c=os(u)):Nu()===null?(a=!1,u=Wy(t),c=os(u)):t[be]&&(ss(t[be]),t[be]=null));try{Od(t),zm(e.bindingStartIndex),n!==null&&kf(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&So(t,f,null)}else{let f=e.preOrderHooks;f!==null&&_o(t,f,0,null),Os(t,0)}if(s||Xy(t),Xf(t,0),e.contentQueries!==null&&zf(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&So(t,f)}else{let f=e.contentHooks;f!==null&&_o(t,f,1),Os(t,1)}uy(e,t);let d=e.components;d!==null&&Jf(t,d,0);let h=e.viewQuery;if(h!==null&&ha(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&So(t,f)}else{let f=e.viewHooks;f!==null&&_o(t,f,2),Os(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Rs]){for(let f of t[Rs])f();t[Rs]=null}i||(t[C]&=-73)}catch(l){throw i||ai(t),l}finally{u!==null&&(Au(u,c),a&&zy(u)),Qa()}}function Xf(e,t){for(let n=hf(e);n!==null;n=pf(n))for(let r=me;r-1&&(la(t,r),Oo(n,r))}this._attachedToViewContainer=!1}Mf(this._lView[_],this._lView)}onDestroy(t){kd(this._lView,t)}markForCheck(){yc(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[C]&=-129}reattach(){Ks(this._lView),this._lView[C]|=128}detectChanges(){this._lView[C]|=1024,Qf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Qs(this._lView),n=this._lView[$t];n!==null&&!t&&fc(n,this._lView),Ef(this._lView[_],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=t;let n=Qs(this._lView),r=this._lView[$t];r!==null&&!n&&bf(r,this._lView),Ks(this._lView)}},Wt=(()=>{class e{static{this.__NG_ELEMENT_ID__=tD}}return e})(),Jy=Wt,eD=class extends Jy{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=Vy(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Gt(o)}};function tD(){return Dc(ye(),$())}function Dc(e,t){return e.type&4?new eD(t,e,Fn(e,t)):null}var vT=new RegExp(`^(\\d+)*(${Ov}|${Rv})*(.*)`);var nD=()=>null;function $l(e,t){return nD(e,t)}var bn=class{},hi=new I("",{providedIn:"root",factory:()=>!1});var eh=new I(""),th=new I(""),ga=class{},qo=class{};function rD(e){let t=Error(`No component factory found for ${ce(e)}.`);return t[oD]=e,t}var oD="ngComponent";var ma=class{resolveComponentFactory(t){throw rD(t)}},Mn=class{static{this.NULL=new ma}},Sn=class{},pi=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>iD()}}return e})();function iD(){let e=$(),t=ye(),n=Mt(t.index,e);return(wt(n)?n:e)[oe]}var sD=(()=>{class e{static{this.\u0275prov=y({token:e,providedIn:"root",factory:()=>null})}}return e})();function va(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Tf(e,n,i.join(" "))}}function hD(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static{this.__NG_ELEMENT_ID__=gD}}return e})();function gD(){let e=ye();return rh(e,$())}var mD=_t,nh=class extends mD{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Fn(this._hostTNode,this._hostLView)}get injector(){return new Vt(this._hostTNode,this._hostLView)}get parentInjector(){let t=ec(this._hostTNode,this._hostLView);if(Qd(t)){let n=Bo(t,this._hostLView),r=$o(t),o=n[_].data[r+8];return new Vt(o,n)}else return new Vt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Ul(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-me}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=$l(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Vl(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!Em(t),a;if(s)a=n;else{let m=n||{};a=m.index,r=m.injector,o=m.projectableNodes,i=m.environmentInjector||m.ngModuleRef}let c=s?t:new _n(It(t)),u=r||this.parentInjector;if(!i&&c.ngModule==null){let T=(s?u:this.parentInjector).get(ve,null);T&&(i=T)}let l=It(c.componentType??{}),d=$l(this._lContainer,l?.id??null),h=d?.firstChild??null,f=c.create(u,o,h,i);return this.insertImpl(f.hostView,a,Vl(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Am(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[se],u=new nh(c,c[Pe],c[se]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return $y(s,o,i,r),t.attachToViewContainerRef(),cd(js(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Ul(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=la(this._lContainer,n);r&&(Oo(js(this._lContainer),n),Mf(r[_],r))}detach(t){let n=this._adjustIndex(t,-1),r=la(this._lContainer,n);return r&&Oo(js(this._lContainer),n)!=null?new Gt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Ul(e){return e[Lo]}function js(e){return e[Lo]||(e[Lo]=[])}function rh(e,t){let n,r=t[e.index];return it(r)?n=r:(n=Hf(r,t,null,e),t[e.index]=n,fi(t,n)),yD(n,t,e,r),new nh(n,e,t)}function vD(e,t){let n=e[oe],r=n.createComment(""),o=Se(t,e),i=_f(n,o);return Go(n,i,r,ey(n,o),!1),r}var yD=CD,DD=()=>!1;function wD(e,t,n){return DD(e,t,n)}function CD(e,t,n,r){if(e[Bt])return;let o;n.type&8?o=We(r):o=vD(t,n),e[Bt]=o}var Da=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},wa=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let u=i[a+1],l=t[-c];for(let d=me;dt.trim())}function ND(e,t,n){e.queries===null&&(e.queries=new Ia),e.queries.track(new Ea(t,n))}function wc(e,t){return e.queries.getByIndex(t)}function AD(e,t){let n=e[_],r=wc(n,t);return r.crossesNgTemplate?ba(n,e,t,[]):oh(n,e,r,t)}var Hl=new Set;function gi(e){Hl.has(e)||(Hl.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Cc(e){let t=e.inputConfig,n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)&&o[3]&&(n[r]=o[3])}e.inputTransforms=n}var Et=class{},fr=class{};var Ma=class extends Et{constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Zo(this);let i=vd(t);this._bootstrapComponents=Cf(i.bootstrap),this._r3Injector=af(t,n,[{provide:Et,useValue:this},{provide:Mn,useValue:this.componentFactoryResolver},...r],ce(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)}},Sa=class extends fr{constructor(t){super(),this.moduleType=t}create(t){return new Ma(this.moduleType,t,[])}};var Yo=class extends Et{constructor(t){super(),this.componentFactoryResolver=new Zo(this),this.instance=null;let n=new ur([...t.providers,{provide:Et,useValue:this},{provide:Mn,useValue:this.componentFactoryResolver}],t.parent||za(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function mi(e,t,n=null){return new Yo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function ih(e){return OD(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function RD(e,t){if(Array.isArray(e))for(let n=0;n{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=y({token:e,providedIn:"root",factory:()=>new e})}}return e})(),_a=class e{constructor(){this.ngZone=p(W),this.scheduler=p(bn),this.errorHandler=p(nt,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[mn.EarlyRead,mn.Write,mn.MixedReadWrite,mn.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=y({token:e,providedIn:"root",factory:()=>new e})}},xa=class{constructor(t,n,r,o){this.impl=t,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function Ic(e,t){!t?.injector&&Im(Ic);let n=t?.injector??p(Me);return Uv(n)?(gi("NgAfterNextRender"),UD(e,n,t,!0)):HD}function BD(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function UD(e,t,n,r){let o=t.get(sh);o.impl??=t.get(_a);let i=n?.phase??mn.MixedReadWrite,s=n?.manualCleanup!==!0?t.get(rc):null,a=new xa(o.impl,BD(e,i),r,s);return o.impl.register(a),a}var HD={destroy(){}};function Ec(e,t,n,r){let o=$(),i=qa();if(vi(o,i,t)){let s=ke(),a=qd();Ay(a,o,e,t,n,r)}return Ec}function zD(e,t,n,r){return vi(e,qa(),n)?t+ei(n)+r:Zt}function Eo(e,t){return e<<17|t<<2}function qt(e){return e>>17&32767}function GD(e){return(e&2)==2}function WD(e,t){return e&131071|t<<17}function Ta(e){return e|2}function xn(e){return(e&131068)>>2}function Vs(e,t){return e&-131069|t<<2}function qD(e){return(e&1)===1}function Na(e){return e|1}function ZD(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=qt(s),c=xn(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||gr(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let h=qt(e[a+1]);e[r+1]=Eo(h,a),h!==0&&(e[h+1]=Vs(e[h+1],r)),e[a+1]=WD(e[a+1],r)}else e[r+1]=Eo(a,0),a!==0&&(e[a+1]=Vs(e[a+1],r)),a=r;else e[r+1]=Eo(c,0),a===0?a=r:e[c+1]=Vs(e[c+1],r),c=r;u&&(e[r+1]=Ta(e[r+1])),zl(e,l,r,!0),zl(e,l,r,!1),YD(t,l,e,r,i),s=Eo(a,c),i?t.classBindings=s:t.styleBindings=s}function YD(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&gr(i,t)>=0&&(n[r+1]=Na(n[r+1]))}function zl(e,t,n,r){let o=e[n+1],i=t===null,s=r?qt(o):xn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];QD(c,t)&&(a=!0,e[s+1]=r?Na(u):Ta(u)),s=r?qt(u):xn(u)}a&&(e[n+1]=r?Ta(o):Na(o))}function QD(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?gr(e,t)>=0:!1}function st(e,t,n){let r=$(),o=qa();if(vi(r,o,t)){let i=ke(),s=qd();Dy(i,s,r,e,t,r[oe],n,!1)}return st}function Gl(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";mc(e,n,i[s],s,r)}function yi(e,t,n){return ah(e,t,n,!1),yi}function wr(e,t){return ah(e,t,null,!0),wr}function ah(e,t,n,r){let o=$(),i=ke(),s=Gm(2);if(i.firstUpdatePass&&KD(i,e,s,r),t!==Zt&&vi(o,s,t)){let a=i.data[Pn()];rw(i,a,o,o[oe],e,o[s+1]=ow(t,n),r,s)}}function XD(e,t){return t>=e.expandoStartIndex}function KD(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Pn()],s=XD(e,n);iw(i,r)&&t===null&&!s&&(t=!1),t=JD(o,i,t,r),ZD(o,i,t,n,s,r)}}function JD(e,t,n,r){let o=Ym(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=$s(null,e,t,n,r),n=hr(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=$s(o,e,t,n,r),i===null){let c=ew(e,t,r);c!==void 0&&Array.isArray(c)&&(c=$s(null,e,t,c[1],r),c=hr(c,t.attrs,r),tw(e,t,r,c))}else i=nw(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function ew(e,t,n){let r=n?t.classBindings:t.styleBindings;if(xn(r)!==0)return e[qt(r)]}function tw(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[qt(o)]=r}function nw(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=n[o+1];h===Zt&&(h=d?Ae:void 0);let f=d?Ns(h,r):l===r?h:void 0;if(u&&!Qo(f)&&(f=Ns(c,r)),Qo(f)&&(a=f,s))return a;let m=e[o+1];o=s?qt(m):xn(m)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Ns(c,r))}return a}function Qo(e){return e!==void 0}function ow(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ce(Dr(e)))),e}function iw(e,t){return(e.flags&(t?8:16))!==0}function sw(e,t,n,r,o,i){let s=t.consts,a=Vo(s,o),c=di(t,e,2,r,a);return $f(t,n,c,Vo(s,i)),c.attrs!==null&&va(c,c.attrs,!1),c.mergedAttrs!==null&&va(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function P(e,t,n,r){let o=$(),i=ke(),s=tt+e,a=o[oe],c=i.firstCreatePass?sw(s,i,o,t,n,r):i.data[s],u=aw(i,o,c,a,t,e);o[s]=u;let l=Ga(c);return yr(c,!0),Nf(a,u,c),!FD(c)&&Xa()&&hc(i,o,u,c),Pm()===0&&zt(u,o),km(),l&&(Lf(i,o,c),Ff(i,c,o)),r!==null&&jf(o,c),P}function F(){let e=ye();Vd()?Bm():(e=e.parent,yr(e,!1));let t=e;jm(t)&&Vm(),Fm();let n=ke();return n.firstCreatePass&&(Ja(n,e),Sd(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&nv(t)&&Gl(n,t,$(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&rv(t)&&Gl(n,t,$(),t.stylesWithoutHost,!1),F}function at(e,t,n,r){return P(e,t,n,r),F(),at}var aw=(e,t,n,r,o,i)=>(Ka(!0),If(r,o,Km()));function jn(){return $()}var Xo="en-US";var cw=Xo;function uw(e){typeof e=="string"&&(cw=e.toLowerCase().replace(/_/g,"-"))}var lw=(e,t,n)=>{};function H(e,t,n,r){let o=$(),i=ke(),s=ye();return fw(i,o,o[oe],s,e,t,r),H}function dw(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function fw(e,t,n,r,o,i,s){let a=Ga(r),u=e.firstCreatePass&&Wf(e),l=t[Oe],d=Gf(t),h=!0;if(r.type&3||s){let T=Se(r,t),j=s?s(T):T,B=d.length,le=s?xe=>s(We(xe[r.index])):r.index,de=null;if(!s&&a&&(de=dw(e,t,o,r.index)),de!==null){let xe=de.__ngLastListenerFn__||de;xe.__ngNextListenerFn__=i,de.__ngLastListenerFn__=i,h=!1}else{i=Zl(r,t,l,i),lw(T,o,i);let xe=n.listen(j,o,i);d.push(i,xe),u&&u.push(o,le,B,B+1)}}else i=Zl(r,t,l,i);let f=r.outputs,m;if(h&&f!==null&&(m=f[o])){let T=m.length;if(T)for(let j=0;j-1?Mt(e.index,t):t;yc(s,5);let a=ql(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=ql(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function ue(e=1){return Xm(e)}function bc(e,t,n){xD(e,t,n)}function Di(e){let t=$(),n=ke(),r=Bd();Za(r+1);let o=wc(n,r);if(e.dirty&&Nm(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=AD(t,r);e.reset(i,Mv),e.notifyOnChanges()}return!0}return!1}function wi(){return SD($(),Bd())}function ch(e){let t=Um();return Tm(t,tt+e)}function Y(e,t=""){let n=$(),r=ke(),o=e+tt,i=r.firstCreatePass?di(r,o,1,t,null):r.data[o],s=hw(r,n,i,t,e);n[o]=s,Xa()&&hc(r,n,s,i),yr(i,!1)}var hw=(e,t,n,r,o)=>(Ka(!0),zv(t[oe],r));function Ci(e,t,n){let r=$(),o=zD(r,e,t,n);return o!==Zt&&ky(r,Pn(),o),Ci}var pw=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=wd(!1,n.type),o=r.length>0?mi([r],this._injector,`Standalone[${n.type.name}]`):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{this.\u0275prov=y({token:e,providedIn:"environment",factory:()=>new e(E(ve))})}}return e})();function xt(e){gi("NgStandalone"),e.getStandaloneInjector=t=>t.get(pw).getOrCreateStandaloneInjector(e)}function uh(e,t,n){let r=Hm()+e,o=$();return o[r]===Zt?PD(o,r,n?t.call(n):t()):kD(o,r)}var Ii=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var lh=new I("");function Cr(e){return!!e&&typeof e.then=="function"}function dh(e){return!!e&&typeof e.subscribe=="function"}var Vn=new I(""),fh=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=p(Vn,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=o();if(Cr(i))n.push(i);else if(dh(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{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ei=new I("");function gw(){Ru(()=>{throw new w(600,!1)})}function mw(e){return e.isBoundToModule}var vw=10;function yw(e,t,n){try{let r=n();return Cr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Ye=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(Ev),this.afterRenderManager=p(sh),this.zonelessEnabled=p(hi),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new X,this.afterTick=new X,this.componentTypes=[],this.components=[],this.isStable=p(kn).hasPendingTasks.pipe(b(n=>!n)),this._injector=p(ve)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof qo;if(!this._injector.get(fh).done){let h=!o&&md(n),f=!1;throw new w(405,f)}let s;o?s=n:s=this._injector.get(Mn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=mw(s)?void 0:this._injector.get(Et),c=r||s.selector,u=s.create(Me.NULL,[],c,a),l=u.location.nativeElement,d=u.injector.get(lh,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),To(this.components,u),d?.unregisterApplication(l)}),this._loadComponent(u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new w(101,!1);let n=O(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,O(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Sn,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++si(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;To(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Ei,[]);[...this._bootstrapListeners,...r].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._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>To(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new w(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function To(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Dw(e,t,n,r){if(!n&&!si(e))return;Qf(e,t,n&&!r?0:1)}var Aa=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},bi=(()=>{class e{compileModuleSync(n){return new Sa(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=vd(n),i=Cf(o.declarations).reduce((s,a)=>{let c=It(a);return c&&s.push(new _n(c)),s},[]);return new Aa(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ww=(()=>{class e{constructor(){this.zone=p(W),this.changeDetectionScheduler=p(bn),this.applicationRef=p(Ye)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Cw=new I("",{factory:()=>!1});function hh({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new W(z(g({},gh()),{scheduleInRootZone:n})),[{provide:W,useFactory:e},{provide:wn,multi:!0,useFactory:()=>{let r=p(ww,{optional:!0});return()=>r.initialize()}},{provide:wn,multi:!0,useFactory:()=>{let r=p(Iw);return()=>{r.initialize()}}},t===!0?{provide:eh,useValue:!0}:[],{provide:th,useValue:n??cf}]}function ph(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=hh({ngZoneFactory:()=>{let o=gh(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&gi("NgZone_CoalesceEvent"),new W(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return Rn([{provide:Cw,useValue:!0},{provide:hi,useValue:!1},r])}function gh(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Iw=(()=>{class e{constructor(){this.subscription=new Q,this.initialized=!1,this.zone=p(W),this.pendingTasks=p(kn)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{W.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{W.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Ew=(()=>{class e{constructor(){this.appRef=p(Ye),this.taskService=p(kn),this.ngZone=p(W),this.zonelessEnabled=p(hi),this.disableScheduling=p(eh,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Q,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ho):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(th,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof sa||!this.zoneIsDefined)}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 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?Nl:uf;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.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ho+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)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){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Nl(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}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{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function bw(){return typeof $localize<"u"&&$localize.locale||Xo}var Mc=new I("",{providedIn:"root",factory:()=>p(Mc,S.Optional|S.SkipSelf)||bw()});var Ra=new I("");function bo(e){return!e.moduleRef}function Mw(e){let t=bo(e)?e.r3Injector:e.moduleRef.injector,n=t.get(W);return n.run(()=>{bo(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(nt,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),bo(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Ra);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Ra);s.add(i),e.moduleRef.onDestroy(()=>{To(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return yw(r,n,()=>{let i=t.get(fh);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Mc,Xo);if(uw(s||Xo),bo(e)){let a=t.get(Ye);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return Sw(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function Sw(e,t){let n=e.injector.get(Ye);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new w(-403,!1);t.push(e)}var No=null;function _w(e=[],t){return Me.create({name:t,providers:[{provide:ri,useValue:"platform"},{provide:Ra,useValue:new Set([()=>No=null])},...e]})}function xw(e=[]){if(No)return No;let t=_w(e);return No=t,gw(),Tw(t),t}function Tw(e){e.get(ac,null)?.forEach(n=>n())}function mh(){return!1}var Ir=(()=>{class e{static{this.__NG_ELEMENT_ID__=Nw}}return e})();function Nw(e){return Aw(ye(),$(),(e&16)===16)}function Aw(e,t,n){if(ii(e)&&!n){let r=Mt(e.index,t);return new Gt(r,r)}else if(e.type&175){let r=t[Ge];return new Gt(r,t)}return null}var Oa=class{constructor(){}supports(t){return ih(t)}create(t){return new Pa(t)}},Rw=(e,t)=>t,Pa=class{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Rw}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new ka(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Ko),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Ko),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},ka=class{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Fa=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Ko=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Fa,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Yl(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r{class e{static{this.\u0275prov=y({token:e,providedIn:"root",factory:Ql})}constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Ql()),deps:[[e,new Va,new ni]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new w(901,!1)}}return e})();function vh(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=xw(r),i=[hh({}),{provide:bn,useExisting:Ew},...n||[]],s=new Yo({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return Mw({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function Er(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function yh(e){let t=It(e);if(!t)return null;let n=new _n(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var bh=null;function $n(){return bh}function Mh(e){bh??=e}var Mi=class{};var he=new I(""),Ac=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(Ow),providedIn:"platform"})}}return e})(),Sh=new I(""),Ow=(()=>{class e extends Ac{constructor(){super(),this._doc=p(he),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return $n().getBaseHref(this._doc)}onPopState(n){let r=$n().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=$n().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{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function Rc(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Dh(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function ct(e){return e&&e[0]!=="?"?"?"+e:e}var ut=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(Oc),providedIn:"root"})}}return e})(),_h=new I(""),Oc=(()=>{class e extends ut{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??p(he).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 Rc(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+ct(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+ct(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+ct(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{this.\u0275fac=function(r){return new(r||e)(E(Ac),E(_h,8))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),xh=(()=>{class e extends ut{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}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}path(n=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=Rc(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+ct(i));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+ct(i));s.length==0&&(s=this._platformLocation.pathname),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{this.\u0275fac=function(r){return new(r||e)(E(Ac),E(_h,8))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),Bn=(()=>{class e{constructor(n){this._subject=new ie,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=Fw(Dh(wh(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({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+ct(r))}normalize(n){return e.stripTrailingSlash(kw(this._basePath,wh(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+ct(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ct(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,complete:o})}static{this.normalizeQueryParams=ct}static{this.joinWithSlash=Rc}static{this.stripTrailingSlash=Dh}static{this.\u0275fac=function(r){return new(r||e)(E(ut))}}static{this.\u0275prov=y({token:e,factory:()=>Pw(),providedIn:"root"})}}return e})();function Pw(){return new Bn(E(ut))}function kw(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function wh(e){return e.replace(/\/index.html$/,"")}function Fw(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function Th(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 _c=class{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Nh=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new _c(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),Ch(a,o)}});for(let o=0,i=r.length;o{let i=r.get(o.currentIndex);Ch(i,o)})}static ngTemplateContextGuard(n,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(De(_t),De(Wt),De(Sc))}}static{this.\u0275dir=An({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return e})();function Ch(e,t){e.context.$implicit=t.item}var _i=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new xc,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Ih("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Ih("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(De(_t),De(Wt))}}static{this.\u0275dir=An({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return e})(),xc=class{constructor(){this.$implicit=null,this.ngIf=null}};function Ih(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${ce(t)}'.`)}var Qt=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Nn({type:e})}static{this.\u0275inj=Tn({})}}return e})(),Pc="browser",Lw="server";function xi(e){return e===Pc}function kc(e){return e===Lw}var Ah=(()=>{class e{static{this.\u0275prov=y({token:e,providedIn:"root",factory:()=>xi(p(Fe))?new Tc(p(he),window):new Nc})}}return e})(),Tc=class{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){let n=jw(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){let n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}};function jw(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}var Nc=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},Si=class{};var Vc=class extends Mi{constructor(){super(...arguments),this.supportsDOMEvents=!0}},$c=class e extends Vc{static makeCurrent(){Mh(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}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=Vw();return n==null?null:$w(n)}resetBaseElement(){br=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Th(document.cookie,t)}},br=null;function Vw(){return br=br||document.querySelector("base"),br?br.getAttribute("href"):null}function $w(e){return new URL(e,document.baseURI).pathname}var Bw=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),Bc=new I(""),kh=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}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 w(5101,!1);return this._eventNameToPlugin.set(n,r),r}static{this.\u0275fac=function(r){return new(r||e)(E(Bc),E(W))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),Ti=class{constructor(t){this._doc=t}},Lc="ng-app-id",Fh=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=kc(i),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Lc}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){let o=this.styleRef;if(o.has(n)){let i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(Lc),i;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Lc,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){let o=this.getStyleElement(n,r),i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(E(he),E(sc),E(cc,8),E(Fe))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),jc={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"},Hc=/%COMP%/g,Lh="%COMP%",Uw=`_nghost-${Lh}`,Hw=`_ngcontent-${Lh}`,zw=!0,Gw=new I("",{providedIn:"root",factory:()=>zw});function Ww(e){return Hw.replace(Hc,e)}function qw(e){return Uw.replace(Hc,e)}function jh(e,t){return t.map(n=>n.replace(Hc,e))}var Rh=(()=>{class e{constructor(n,r,o,i,s,a,c,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=kc(a),this.defaultRenderer=new Mr(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===He.ShadowDom&&(r=z(g({},r),{encapsulation:He.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Ni?o.applyToHost(n):o instanceof Sr&&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.platformIsServer;switch(r.encapsulation){case He.Emulated:i=new Ni(c,u,r,this.appId,l,s,a,d);break;case He.ShadowDom:return new Uc(c,u,n,r,s,a,this.nonce,d);default:i=new Sr(c,u,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(E(kh),E(Fh),E(sc),E(Gw),E(he),E(Fe),E(W),E(cc))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),Mr=class{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(jc[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Oh(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Oh(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 w(-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=jc[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=jc[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&(rt.DashCase|rt.Important)?t.style.setProperty(n,r,o&rt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&rt.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){if(typeof t=="string"&&(t=$n().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function Oh(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Uc=class extends Mr{constructor(t,n,r,o,i,s,a,c){super(t,i,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=jh(o.id,o.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}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.removeHost(this.shadowRoot)}},Sr=class extends Mr{constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?jh(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Ni=class extends Sr{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=Ww(u),this.hostAttr=qw(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}},Zw=(()=>{class e extends Ti{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static{this.\u0275fac=function(r){return new(r||e)(E(he))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),Ph=["alt","control","meta","shift"],Yw={"\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"},Qw={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Xw=(()=>{class e extends Ti{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>$n().onAndCancel(n,i.domEventName,s))}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."),Ph.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=Yw[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"),Ph.forEach(s=>{if(s!==o){let a=Qw[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{this.\u0275fac=function(r){return new(r||e)(E(he))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})();function Vh(e,t){return vh(g({rootComponent:e},Kw(t)))}function Kw(e){return{appProviders:[...rC,...e?.providers??[]],platformProviders:nC}}function Jw(){$c.makeCurrent()}function eC(){return new nt}function tC(){return mf(document),document}var nC=[{provide:Fe,useValue:Pc},{provide:ac,useValue:Jw,multi:!0},{provide:he,useFactory:tC,deps:[]}];var rC=[{provide:ri,useValue:"root"},{provide:nt,useFactory:eC,deps:[]},{provide:Bc,useClass:Zw,multi:!0,deps:[he,W,Fe]},{provide:Bc,useClass:Xw,multi:!0,deps:[he]},Rh,Fh,kh,{provide:Sn,useExisting:Rh},{provide:Si,useClass:Bw,deps:[]},[]];var $h=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static{this.\u0275fac=function(r){return new(r||e)(E(he))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var M="primary",Br=Symbol("RouteTitle"),Zc=class{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 qn(e){return new Zc(e)}function iC(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.lengthr[i]===o)}else return e===t}function Kh(e){return e.length>0?e[e.length-1]:null}function At(e){return Is(e)?e:Cr(e)?U(Promise.resolve(e)):D(e)}var aC={exact:ep,subset:tp},Jh={exact:cC,subset:uC,ignored:()=>!0};function Bh(e,t,n){return aC[n.paths](e.root,t.root,n.matrixParams)&&Jh[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function cC(e,t){return Qe(e,t)}function ep(e,t,n){if(!Kt(e.segments,t.segments)||!Oi(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!ep(e.children[r],t.children[r],n))return!1;return!0}function uC(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Xh(e[n],t[n]))}function tp(e,t,n){return np(e,t,t.segments,n)}function np(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!Kt(o,n)||t.hasChildren()||!Oi(o,n,r))}else if(e.segments.length===n.length){if(!Kt(e.segments,n)||!Oi(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!tp(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!Kt(e.segments,o)||!Oi(e.segments,o,r)||!e.children[M]?!1:np(e.children[M],t,i,r)}}function Oi(e,t,n){return t.every((r,o)=>Jh[n](e[o].parameters,r.parameters))}var dt=class{constructor(t=new k([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=qn(this.queryParams),this._queryParamMap}toString(){return fC.serialize(this)}},k=class{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Pi(this)}},Xt=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=qn(this.parameters),this._parameterMap}toString(){return op(this)}};function lC(e,t){return Kt(e,t)&&e.every((n,r)=>Qe(n.parameters,t[r].parameters))}function Kt(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function dC(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===M&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==M&&(n=n.concat(t(o,r)))}),n}var Ur=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>new Zn,providedIn:"root"})}}return e})(),Zn=class{parse(t){let n=new Xc(t);return new dt(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${_r(t.root,!0)}`,r=gC(t.queryParams),o=typeof t.fragment=="string"?`#${hC(t.fragment)}`:"";return`${n}${r}${o}`}},fC=new Zn;function Pi(e){return e.segments.map(t=>op(t)).join("/")}function _r(e,t){if(!e.hasChildren())return Pi(e);if(t){let n=e.children[M]?_r(e.children[M],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==M&&r.push(`${o}:${_r(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=dC(e,(r,o)=>o===M?[_r(e.children[M],!1)]:[`${o}:${_r(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[M]!=null?`${Pi(e)}/${n[0]}`:`${Pi(e)}/(${n.join("//")})`}}function rp(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ai(e){return rp(e).replace(/%3B/gi,";")}function hC(e){return encodeURI(e)}function Qc(e){return rp(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ki(e){return decodeURIComponent(e)}function Uh(e){return ki(e.replace(/\+/g,"%20"))}function op(e){return`${Qc(e.path)}${pC(e.parameters)}`}function pC(e){return Object.entries(e).map(([t,n])=>`;${Qc(t)}=${Qc(n)}`).join("")}function gC(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${Ai(n)}=${Ai(o)}`).join("&"):`${Ai(n)}=${Ai(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var mC=/^[^\/()?;#]+/;function zc(e){let t=e.match(mC);return t?t[0]:""}var vC=/^[^\/()?;=#]+/;function yC(e){let t=e.match(vC);return t?t[0]:""}var DC=/^[^=?&#]+/;function wC(e){let t=e.match(DC);return t?t[0]:""}var CC=/^[^&#]+/;function IC(e){let t=e.match(CC);return t?t[0]:""}var Xc=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new k([],{}):new k([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){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[M]=new k(t,n)),r}parseSegment(){let t=zc(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(t),new Xt(ki(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=yC(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=zc(this.remaining);o&&(r=o,this.capture(r))}t[ki(n)]=ki(r)}parseQueryParam(t){let n=wC(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=IC(this.remaining);s&&(r=s,this.capture(r))}let o=Uh(n),i=Uh(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=zc(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new w(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=M);let s=this.parseChildren();n[i]=Object.keys(s).length===1?s[M]:new k([],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 w(4011,!1)}};function ip(e){return e.segments.length>0?new k([],{[M]:e}):e}function sp(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=sp(o);if(r===M&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new k(e.segments,t);return EC(n)}function EC(e){if(e.numberOfChildren===1&&e.children[M]){let t=e.children[M];return new k(e.segments.concat(t.segments),t.children)}return e}function Jt(e){return e instanceof dt}function bC(e,t,n=null,r=null){let o=ap(e);return cp(o,t,n,r)}function ap(e){let t;function n(i){let s={};for(let c of i.children){let u=n(c);s[c.outlet]=u}let a=new k(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=ip(r);return t??o}function cp(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return Gc(o,o,o,n,r);let i=MC(t);if(i.toRoot())return Gc(o,o,new k([],{}),n,r);let s=SC(i,o,e),a=s.processChildren?Nr(s.segmentGroup,s.index,i.commands):lp(s.segmentGroup,s.index,i.commands);return Gc(o,s.segmentGroup,a,n,r)}function Fi(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Or(e){return typeof e=="object"&&e!=null&&e.outlets}function Gc(e,t,n,r,o){let i={};r&&Object.entries(r).forEach(([c,u])=>{i[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;e===t?s=n:s=up(e,t,n);let a=ip(sp(s));return new dt(a,i,o)}function up(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=up(i,t,n)}),new k(e.segments,r)}var Li=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Fi(r[0]))throw new w(4003,!1);let o=r.find(Or);if(o&&o!==Kh(r))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function MC(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Li(!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 Li(n,t,r)}var zn=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function SC(e,t,n){if(e.isAbsolute)return new zn(t,!0,0);if(!n)return new zn(t,!1,NaN);if(n.parent===null)return new zn(n,!0,0);let r=Fi(e.commands[0])?0:1,o=n.segments.length-1+r;return _C(n,o,e.numberOfDoubleDots)}function _C(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new w(4005,!1);o=r.segments.length}return new zn(r,!1,o-i)}function xC(e){return Or(e[0])?e[0].outlets:{[M]:e}}function lp(e,t,n){if(e??=new k([],{}),e.segments.length===0&&e.hasChildren())return Nr(e,t,n);let r=TC(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndexi!==M)&&e.children[M]&&e.numberOfChildren===1&&e.children[M].segments.length===0){let i=Nr(e.children[M],t,n);return new k(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=lp(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new k(e.segments,o)}}function TC(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;let s=e.segments[o],a=n[r];if(Or(a))break;let c=`${a}`,u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!zh(c,u,s))return i;r+=2}else{if(!zh(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function Kc(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Kc(new k([],{}),0,r))}),t}function Hh(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function zh(e,t,n){return e==n.path&&Qe(t,n.parameters)}var Ar="imperative",ee=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}(ee||{}),_e=class{constructor(t,n){this.id=t,this.url=n}},Yn=class extends _e{constructor(t,n,r="imperative",o=null){super(t,n),this.type=ee.NavigationStart,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Xe=class extends _e{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=ee.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Ce=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(Ce||{}),ji=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(ji||{}),lt=class extends _e{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=ee.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Tt=class extends _e{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=ee.NavigationSkipped}},Pr=class extends _e{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=ee.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Vi=class extends _e{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=ee.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Jc=class extends _e{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=ee.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},eu=class extends _e{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=ee.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},tu=class extends _e{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=ee.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},nu=class extends _e{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=ee.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ru=class{constructor(t){this.route=t,this.type=ee.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},ou=class{constructor(t){this.route=t,this.type=ee.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},iu=class{constructor(t){this.snapshot=t,this.type=ee.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},su=class{constructor(t){this.snapshot=t,this.type=ee.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},au=class{constructor(t){this.snapshot=t,this.type=ee.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},cu=class{constructor(t){this.snapshot=t,this.type=ee.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$i=class{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=ee.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},kr=class{},Qn=class{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function AC(e,t){return e.providers&&!e._injector&&(e._injector=mi(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Le(e){return e.outlet||M}function RC(e,t){let n=e.filter(r=>Le(r)===t);return n.push(...e.filter(r=>Le(r)!==t)),n}function Hr(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var uu=class{get injector(){return Hr(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new zr(this.rootInjector),this.attachRef=null}},zr=(()=>{class e{constructor(n){this.rootInjector=n,this.contexts=new Map}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 uu(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static{this.\u0275fac=function(r){return new(r||e)(E(ve))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Bi=class{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=lu(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=lu(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=du(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return du(t,this._root).map(n=>n.value)}};function lu(e,t){if(e===t.value)return t;for(let n of t.children){let r=lu(e,n);if(r)return r}return null}function du(e,t){if(e===t.value)return[t];for(let n of t.children){let r=du(e,n);if(r.length)return r.unshift(t),r}return[]}var we=class{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Hn(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Ui=class extends Bi{constructor(t,n){super(t),this.snapshot=n,wu(this,t)}toString(){return this.snapshot.toString()}};function dp(e){let t=OC(e),n=new te([new Xt("",{})]),r=new te({}),o=new te({}),i=new te({}),s=new te(""),a=new Nt(n,r,i,s,o,M,e,t.root);return a.snapshot=t.root,new Ui(new we(a,[]),t)}function OC(e){let t={},n={},r={},o="",i=new Gn([],t,r,o,n,M,e,null,{});return new zi("",new we(i,[]))}var Nt=class{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(b(u=>u[Br]))??D(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(b(t=>qn(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(b(t=>qn(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Hi(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&&hp(o)&&(r.resolve[Br]=o.title),r}var Gn=class{get title(){return this.data?.[Br]}constructor(t,n,r,o,i,s,a,c,u){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}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??=qn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=qn(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 Bi{constructor(t,n){super(n),this.url=t,wu(this,n)}toString(){return fp(this._root)}};function wu(e,t){t.value._routerState=e,t.children.forEach(n=>wu(e,n))}function fp(e){let t=e.children.length>0?` { ${e.children.map(fp).join(", ")} } `:"";return`${e.value}${t}`}function Wc(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Qe(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Qe(t.params,n.params)||e.paramsSubject.next(n.params),sC(t.url,n.url)||e.urlSubject.next(n.url),Qe(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function fu(e,t){let n=Qe(e.params,t.params)&&lC(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||fu(e.parent,t.parent))}function hp(e){return typeof e.title=="string"||e.title===null}var Cu=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=M,this.activateEvents=new ie,this.deactivateEvents=new ie,this.attachEvents=new ie,this.detachEvents=new ie,this.parentContexts=p(zr),this.location=p(_t),this.changeDetector=p(Ir),this.inputBinder=p(Zi,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}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 w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(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 w(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new hu(n,a,o.injector);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{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=An({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[vr]})}}return e})(),hu=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===Nt?this.route:t===zr?this.childContexts:this.parent.get(t,n)}},Zi=new I(""),Gh=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:r}=n,o=nr([r.queryParams,r.params,r.data]).pipe(re(([i,s,a],c)=>(a=g(g(g({},i),s),a),c===0?D(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let s=yh(r.component);if(!s){this.unsubscribeFromRouteData(n);return}for(let{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,i[a])});this.outletDataSubscriptions.set(n,o)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})();function PC(e,t,n){let r=Fr(e,t._root,n?n._root:void 0);return new Ui(r,t)}function Fr(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=kC(e,t,n);return new we(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=>Fr(e,a)),s}}let r=FC(t.value),o=t.children.map(i=>Fr(e,i));return new we(r,o)}}function kC(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Fr(e,r,o);return Fr(e,r)})}function FC(e){return new Nt(new te(e.url),new te(e.params),new te(e.queryParams),new te(e.fragment),new te(e.data),e.outlet,e.component,e)}var Lr=class{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},pp="ngNavigationCancelingError";function Gi(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Jt(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=gp(!1,Ce.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function gp(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[pp]=!0,n.cancellationCode=t,n}function LC(e){return mp(e)&&Jt(e.url)}function mp(e){return!!e&&e[pp]}var jC=(e,t,n,r)=>b(o=>(new pu(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),pu=class{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),Wc(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=Hn(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=Hn(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=Hn(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=Hn(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new cu(i.value.snapshot))}),t.children.length&&this.forwardEvent(new su(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(Wc(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),Wc(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)}},Wi=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Wn=class{constructor(t,n){this.component=t,this.route=n}};function VC(e,t,n){let r=e._root,o=t?t._root:null;return xr(r,o,n,[r.value])}function $C(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Kn(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!td(e)?e:t.get(e):r}function xr(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Hn(t);return e.children.forEach(s=>{BC(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Rr(a,n.getContext(s),o)),o}function BC(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=UC(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Wi(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?xr(e,t,a?a.children:null,r,o):xr(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Wn(a.outlet.component,s))}else s&&Rr(t,a,o),o.canActivateChecks.push(new Wi(r)),i.component?xr(e,null,a?a.children:null,r,o):xr(e,null,n,r,o);return o}function UC(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!Kt(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Kt(e.url,t.url)||!Qe(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!fu(e,t)||!Qe(e.queryParams,t.queryParams);case"paramsChange":default:return!fu(e,t)}}function Rr(e,t,n){let r=Hn(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?Rr(s,t.children.getContext(i),n):Rr(s,null,n):Rr(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Wn(t.outlet.component,o)):n.canDeactivateChecks.push(new Wn(null,o)):n.canDeactivateChecks.push(new Wn(null,o))}function Gr(e){return typeof e=="function"}function HC(e){return typeof e=="boolean"}function zC(e){return e&&Gr(e.canLoad)}function GC(e){return e&&Gr(e.canActivate)}function WC(e){return e&&Gr(e.canActivateChild)}function qC(e){return e&&Gr(e.canDeactivate)}function ZC(e){return e&&Gr(e.canMatch)}function vp(e){return e instanceof Je||e?.name==="EmptyError"}var Ri=Symbol("INITIAL_VALUE");function Xn(){return re(e=>nr(e.map(t=>t.pipe(K(1),xs(Ri)))).pipe(b(t=>{for(let n of t)if(n!==!0){if(n===Ri)return Ri;if(n===!1||YC(n))return n}return!0}),ne(t=>t!==Ri),K(1)))}function YC(e){return Jt(e)||e instanceof Lr}function QC(e,t){return G(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?D(z(g({},n),{guardsResult:!0})):XC(s,r,o,e).pipe(G(a=>a&&HC(a)?KC(r,i,e,t):D(a)),b(a=>z(g({},n),{guardsResult:a})))})}function XC(e,t,n,r){return U(e).pipe(G(o=>rI(o.component,o.route,n,t,r)),$e(o=>o!==!0,!0))}function KC(e,t,n,r){return U(t).pipe(jt(o=>Ve(eI(o.route.parent,r),JC(o.route,r),nI(e,o.path,n),tI(e,o.route,n))),$e(o=>o!==!0,!0))}function JC(e,t){return e!==null&&t&&t(new au(e)),D(!0)}function eI(e,t){return e!==null&&t&&t(new iu(e)),D(!0)}function tI(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return D(!0);let o=r.map(i=>Ft(()=>{let s=Hr(t)??n,a=Kn(i,s),c=GC(a)?a.canActivate(t,e):qe(s,()=>a(t,e));return At(c).pipe($e())}));return D(o).pipe(Xn())}function nI(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>$C(s)).filter(s=>s!==null).map(s=>Ft(()=>{let a=s.guards.map(c=>{let u=Hr(s.node)??n,l=Kn(c,u),d=WC(l)?l.canActivateChild(r,e):qe(u,()=>l(r,e));return At(d).pipe($e())});return D(a).pipe(Xn())}));return D(i).pipe(Xn())}function rI(e,t,n,r,o){let i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||i.length===0)return D(!0);let s=i.map(a=>{let c=Hr(t)??o,u=Kn(a,c),l=qC(u)?u.canDeactivate(e,t,n,r):qe(c,()=>u(e,t,n,r));return At(l).pipe($e())});return D(s).pipe(Xn())}function oI(e,t,n,r){let o=t.canLoad;if(o===void 0||o.length===0)return D(!0);let i=o.map(s=>{let a=Kn(s,e),c=zC(a)?a.canLoad(t,n):qe(e,()=>a(t,n));return At(c)});return D(i).pipe(Xn(),yp(r))}function yp(e){return gs(J(t=>{if(typeof t!="boolean")throw Gi(e,t)}),b(t=>t===!0))}function iI(e,t,n,r){let o=t.canMatch;if(!o||o.length===0)return D(!0);let i=o.map(s=>{let a=Kn(s,e),c=ZC(a)?a.canMatch(t,n):qe(e,()=>a(t,n));return At(c)});return D(i).pipe(Xn(),yp(r))}var jr=class{constructor(t){this.segmentGroup=t||null}},Vr=class extends Error{constructor(t){super(),this.urlTree=t}};function Un(e){return pt(new jr(e))}function sI(e){return pt(new w(4e3,!1))}function aI(e){return pt(gp(!1,Ce.GuardRejected))}var gu=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return D(r);if(o.numberOfChildren>1||!o.children[M])return sI(`${t.redirectTo}`);o=o.children[M]}}applyRedirectCommands(t,n,r,o,i){if(typeof n!="string"){let a=n,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,params:f,data:m,title:T}=o,j=qe(i,()=>a({params:f,data:m,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,title:T}));if(j instanceof dt)throw new Vr(j);n=j}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new Vr(s);return s}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new dt(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o)}),new k(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new w(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}},mu={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function cI(e,t,n,r,o){let i=Dp(e,t,n);return i.matched?(r=AC(t,r),iI(r,t,n,o).pipe(b(s=>s===!0?i:g({},mu)))):D(i)}function Dp(e,t,n){if(t.path==="**")return uI(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?g({},mu):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||iC)(n,e,t);if(!o)return g({},mu);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 uI(e){return{matched:!0,parameters:e.length>0?Kh(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function Wh(e,t,n,r){return n.length>0&&fI(e,n,r)?{segmentGroup:new k(t,dI(r,new k(n,e.children))),slicedSegments:[]}:n.length===0&&hI(e,n,r)?{segmentGroup:new k(e.segments,lI(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new k(e.segments,e.children),slicedSegments:n}}function lI(e,t,n,r){let o={};for(let i of n)if(Yi(e,t,i)&&!r[Le(i)]){let s=new k([],{});o[Le(i)]=s}return g(g({},r),o)}function dI(e,t){let n={};n[M]=t;for(let r of e)if(r.path===""&&Le(r)!==M){let o=new k([],{});n[Le(r)]=o}return n}function fI(e,t,n){return n.some(r=>Yi(e,t,r)&&Le(r)!==M)}function hI(e,t,n){return n.some(r=>Yi(e,t,r))}function Yi(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function pI(e,t,n){return t.length===0&&!e.children[n]}var vu=class{};function gI(e,t,n,r,o,i,s="emptyOnly"){return new yu(e,t,n,r,o,s,i).recognize()}var mI=31,yu=class{constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new gu(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new w(4002,`'${t.segmentGroup}'`)}recognize(){let t=Wh(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(b(({children:n,rootSnapshot:r})=>{let o=new we(r,n),i=new zi("",o),s=bC(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(t){let n=new Gn([],Object.freeze({}),Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),M,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,M,n).pipe(b(r=>({children:r,rootSnapshot:n})),mt(r=>{if(r instanceof Vr)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof jr?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,o,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,i):this.processSegment(t,n,r,r.segments,o,!0,i).pipe(b(s=>s instanceof we?[s]:[]))}processChildren(t,n,r,o){let i=[];for(let s of Object.keys(r.children))s==="primary"?i.unshift(s):i.push(s);return U(i).pipe(jt(s=>{let a=r.children[s],c=RC(n,s);return this.processSegmentGroup(t,c,a,s,o)}),_s((s,a)=>(s.push(...a),s)),vt(null),Ms(),G(s=>{if(s===null)return Un(r);let a=wp(s);return vI(a),D(a)}))}processSegment(t,n,r,o,i,s,a){return U(n).pipe(jt(c=>this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a).pipe(mt(u=>{if(u instanceof jr)return D(null);throw u}))),$e(c=>!!c),mt(c=>{if(vp(c))return pI(r,o,i)?D(new vu):Un(r);throw c}))}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return Le(r)!==s&&(s===M||!Yi(o,i,r))?Un(o):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,o,r,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c):Un(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=Dp(n,o,i);if(!c)return Un(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>mI&&(this.allowRedirects=!1));let f=new Gn(i,u,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,qh(o),Le(o),o.component??o._loadedComponent??null,o,Zh(o)),m=Hi(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(m.params),f.data=Object.freeze(m.data);let T=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,t);return this.applyRedirects.lineralizeSegments(o,T).pipe(G(j=>this.processSegment(t,r,n,j.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a=cI(n,r,o,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(re(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,o).pipe(re(({routes:u})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=c,m=new Gn(h,d,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,qh(r),Le(r),r.component??r._loadedComponent??null,r,Zh(r)),T=Hi(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(T.params),m.data=Object.freeze(T.data);let{segmentGroup:j,slicedSegments:B}=Wh(n,h,f,u);if(B.length===0&&j.hasChildren())return this.processChildren(l,u,j,m).pipe(b(de=>new we(m,de)));if(u.length===0&&B.length===0)return D(new we(m,[]));let le=Le(r)===i;return this.processSegment(l,u,j,B,le?M:i,!0,m).pipe(b(de=>new we(m,de instanceof we?[de]:[])))}))):Un(n)))}getChildConfig(t,n,r){return n.children?D({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?D({routes:n._loadedRoutes,injector:n._loadedInjector}):oI(t,n,r,this.urlSerializer).pipe(G(o=>o?this.configLoader.loadChildren(t,n).pipe(J(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):aI(n))):D({routes:[],injector:t})}};function vI(e){e.sort((t,n)=>t.value.outlet===M?-1:n.value.outlet===M?1:t.value.outlet.localeCompare(n.value.outlet))}function yI(e){let t=e.value.routeConfig;return t&&t.path===""}function wp(e){let t=[],n=new Set;for(let r of e){if(!yI(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=wp(r.children);t.push(new we(r.value,o))}return t.filter(r=>!n.has(r))}function qh(e){return e.data||{}}function Zh(e){return e.resolve||{}}function DI(e,t,n,r,o,i){return G(s=>gI(e,t,n,r,s.extractedUrl,o,i).pipe(b(({state:a,tree:c})=>z(g({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function wI(e,t){return G(n=>{let{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return D(n);let i=new Set(o.map(c=>c.route)),s=new Set;for(let c of i)if(!s.has(c))for(let u of Cp(c))s.add(u);let a=0;return U(s).pipe(jt(c=>i.has(c)?CI(c,r,e,t):(c.data=Hi(c,c.parent,e).resolve,D(void 0))),J(()=>a++),fn(1),G(c=>a===s.size?D(n):ae))})}function Cp(e){let t=e.children.map(n=>Cp(n)).flat();return[e,...t]}function CI(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!hp(o)&&(i[Br]=o.title),II(i,e,t,r).pipe(b(s=>(e._resolvedData=s,e.data=Hi(e,e.parent,n).resolve,null)))}function II(e,t,n,r){let o=Yc(e);if(o.length===0)return D({});let i={};return U(o).pipe(G(s=>EI(e[s],t,n,r).pipe($e(),J(a=>{if(a instanceof Lr)throw Gi(new Zn,a);i[s]=a}))),fn(1),rr(i),mt(s=>vp(s)?ae:pt(s)))}function EI(e,t,n,r){let o=Hr(t)??r,i=Kn(e,o),s=i.resolve?i.resolve(t,n):qe(o,()=>i(t,n));return At(s)}function qc(e){return re(t=>{let n=e(t);return n?U(n).pipe(b(()=>t)):D(t)})}var Ip=(()=>{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===M);return r}getResolvedTitleForRoute(n){return n.data[Br]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(bI),providedIn:"root"})}}return e})(),bI=(()=>{class e extends Ip{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||e)(E($h))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Wr=new I("",{providedIn:"root",factory:()=>({})}),MI=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=bt({type:e,selectors:[["ng-component"]],standalone:!0,features:[xt],decls:1,vars:0,template:function(r,o){r&1&&at(0,"router-outlet")},dependencies:[Cu],encapsulation:2})}}return e})();function Iu(e){let t=e.children&&e.children.map(Iu),n=t?z(g({},e),{children:t}):g({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==M&&(n.component=MI),n}var $r=new I(""),Eu=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(bi)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return D(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=At(n.loadComponent()).pipe(b(Ep),J(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),or(()=>{this.componentLoaders.delete(n)})),o=new ht(r,()=>new X).pipe(cn());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return D({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=SI(r,this.compiler,n,this.onLoadEndListener).pipe(or(()=>{this.childrenLoaders.delete(r)})),s=new ht(i,()=>new X).pipe(cn());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function SI(e,t,n,r){return At(e.loadChildren()).pipe(b(Ep),G(o=>o instanceof fr||Array.isArray(o)?D(o):U(t.compileModuleAsync(o))),b(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(n).injector,s=i.get($r,[],{optional:!0,self:!0}).flat()),{routes:s.map(Iu),injector:i}}))}function _I(e){return e&&typeof e=="object"&&"default"in e}function Ep(e){return _I(e)?e.default:e}var bu=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(xI),providedIn:"root"})}}return e})(),xI=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),bp=new I(""),Mp=new I("");function TI(e,t,n){let r=e.get(Mp),o=e.get(he);return e.get(W).runOutsideAngular(()=>{if(!o.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let i,s=new Promise(u=>{i=u}),a=o.startViewTransition(()=>(i(),NI(e))),{onViewTransitionCreated:c}=r;return c&&qe(e,()=>c({transition:a,from:t,to:n})),s})}function NI(e){return new Promise(t=>{Ic({read:()=>setTimeout(t)},{injector:e})})}var AI=new I(""),Mu=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new X,this.transitionAbortSubject=new X,this.configLoader=p(Eu),this.environmentInjector=p(ve),this.urlSerializer=p(Ur),this.rootContexts=p(zr),this.location=p(Bn),this.inputBindingEnabled=p(Zi,{optional:!0})!==null,this.titleStrategy=p(Ip),this.options=p(Wr,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(bu),this.createViewTransition=p(bp,{optional:!0}),this.navigationErrorHandler=p(AI,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>D(void 0),this.rootComponentType=null;let n=o=>this.events.next(new ru(o)),r=o=>this.events.next(new ou(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(z(g(g({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new te({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Ar,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ne(i=>i.id!==0),b(i=>z(g({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),re(i=>{let s=!1,a=!1;return D(i).pipe(re(c=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",Ce.SupersededByNewNavigation),ae;this.currentTransition=i,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?z(g({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&l!=="reload"){let d="";return this.events.next(new Tt(c.id,this.urlSerializer.serialize(c.rawUrl),d,ji.IgnoredSameUrlNavigation)),c.resolve(!1),ae}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return D(c).pipe(re(d=>{let h=this.transitions?.getValue();return this.events.next(new Yn(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?ae:Promise.resolve(d)}),DI(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),J(d=>{i.targetSnapshot=d.targetSnapshot,i.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=z(g({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new Vi(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:d,extractedUrl:h,source:f,restoredState:m,extras:T}=c,j=new Yn(d,this.urlSerializer.serialize(h),f,m);this.events.next(j);let B=dp(this.rootComponentType).snapshot;return this.currentTransition=i=z(g({},c),{targetSnapshot:B,urlAfterRedirects:h,extras:z(g({},T),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,D(i)}else{let d="";return this.events.next(new Tt(c.id,this.urlSerializer.serialize(c.extractedUrl),d,ji.IgnoredByUrlHandlingStrategy)),c.resolve(!1),ae}}),J(c=>{let u=new Jc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),b(c=>(this.currentTransition=i=z(g({},c),{guards:VC(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),i)),QC(this.environmentInjector,c=>this.events.next(c)),J(c=>{if(i.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw Gi(this.urlSerializer,c.guardsResult);let u=new eu(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),ne(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",Ce.GuardRejected),!1)),qc(c=>{if(c.guards.canActivateChecks.length)return D(c).pipe(J(u=>{let l=new tu(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),re(u=>{let l=!1;return D(u).pipe(wI(this.paramsInheritanceStrategy,this.environmentInjector),J({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(u,"",Ce.NoDataFromResolver)}}))}),J(u=>{let l=new nu(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}))}),qc(c=>{let u=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(J(h=>{l.component=h}),b(()=>{})));for(let h of l.children)d.push(...u(h));return d};return nr(u(c.targetSnapshot.root)).pipe(vt(null),K(1))}),qc(()=>this.afterPreactivation()),re(()=>{let{currentSnapshot:c,targetSnapshot:u}=i,l=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return l?U(l).pipe(b(()=>i)):D(i)}),b(c=>{let u=PC(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=i=z(g({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,i}),J(()=>{this.events.next(new kr)}),jC(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),K(1),J({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Xe(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Ts(this.transitionAbortSubject.pipe(J(c=>{throw c}))),or(()=>{!s&&!a&&this.cancelNavigationTransition(i,"",Ce.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),mt(c=>{if(a=!0,mp(c))this.events.next(new lt(i.id,this.urlSerializer.serialize(i.extractedUrl),c.message,c.cancellationCode)),LC(c)?this.events.next(new Qn(c.url,c.navigationBehaviorOptions)):i.resolve(!1);else{let u=new Pr(i.id,this.urlSerializer.serialize(i.extractedUrl),c,i.targetSnapshot??void 0);try{let l=qe(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof Lr){let{message:d,cancellationCode:h}=Gi(this.urlSerializer,l);this.events.next(new lt(i.id,this.urlSerializer.serialize(i.extractedUrl),d,h)),this.events.next(new Qn(l.redirectTo,l.navigationBehaviorOptions))}else{this.events.next(u);let d=n.errorHandler(c);i.resolve(!!d)}}catch(l){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(l)}}return ae}))}))}cancelNavigationTransition(n,r,o){let i=new lt(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=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function RI(e){return e!==Ar}var OI=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(PI),providedIn:"root"})}}return e})(),Du=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},PI=(()=>{class e extends Du{static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=tc(e)))(o||e)}})()}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Sp=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(kI),providedIn:"root"})}}return e})(),kI=(()=>{class e extends Sp{constructor(){super(...arguments),this.location=p(Bn),this.urlSerializer=p(Ur),this.options=p(Wr,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(bu),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new dt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=dp(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof Yn)this.stateMemento=this.createStateMemento();else if(n instanceof Tt)this.rawUrlTree=r.initialUrl;else if(n instanceof Vi){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??o,r)}}else n instanceof kr?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):n instanceof lt&&(n.code===Ce.GuardRejected||n.code===Ce.NoDataFromResolver)?this.restoreHistory(r):n instanceof Pr?this.restoreHistory(r,!0):n instanceof Xe&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=n instanceof dt?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let i=this.browserPageId,s=g(g({},r.extras.state),this.generateNgRouterState(r.id,i));this.location.replaceState(o,"",s)}else{let i=g(g({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",i)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.currentUrlTree===n.finalUrl&&i===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=tc(e)))(o||e)}})()}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Tr=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Tr||{});function _p(e,t){e.events.pipe(ne(n=>n instanceof Xe||n instanceof lt||n instanceof Pr||n instanceof Tt),b(n=>n instanceof Xe||n instanceof Tt?Tr.COMPLETE:(n instanceof lt?n.code===Ce.Redirect||n.code===Ce.SupersededByNewNavigation:!1)?Tr.REDIRECTING:Tr.FAILED),ne(n=>n!==Tr.REDIRECTING),K(1)).subscribe(()=>{t()})}function FI(e){throw e}var LI={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},jI={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ft=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=p(Ii),this.stateManager=p(Sp),this.options=p(Wr,{optional:!0})||{},this.pendingTasks=p(kn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(Mu),this.urlSerializer=p(Ur),this.location=p(Bn),this.urlHandlingStrategy=p(bu),this._events=new X,this.errorHandler=this.options.errorHandler||FI,this.navigated=!1,this.routeReuseStrategy=p(OI),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p($r,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(Zi,{optional:!0}),this.eventsSubscription=new Q,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=this.navigationTransitions.currentNavigation;if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof lt&&r.code!==Ce.Redirect&&r.code!==Ce.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Xe)this.navigated=!0;else if(r instanceof Qn){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=g({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||RI(o.source)},s);this.scheduleNavigation(a,Ar,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}$I(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.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),Ar,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}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)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Iu),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(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 h=o?o.snapshot:this.routerState.snapshot.root;d=ap(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return cp(d,n,l,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=Jt(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Ar,null,r)}navigate(n,r={skipLocationChange:!1}){return VI(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.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=g({},LI):r===!1?o=g({},jI):o=r,Jt(n))return Bh(this.currentUrlTree,n,o);let i=this.parseUrl(n);return Bh(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,h)=>{a=d,c=h});let l=this.pendingTasks.add();return _p(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{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function VI(e){for(let t=0;t{class e{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.href=null,this.onChanges=new X,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof Xe&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Jt(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),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:Df(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}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:Jt(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{this.\u0275fac=function(r){return new(r||e)(De(ft),De(Nt),nc("tabindex"),De(pi),De(St),De(ut))}}static{this.\u0275dir=An({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&H("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Ec("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Er],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Er],replaceUrl:[2,"replaceUrl","replaceUrl",Er],routerLink:"routerLink"},standalone:!0,features:[Cc,vr]})}}return e})();var qi=class{};var BI=(()=>{class e{constructor(n,r,o,i,s){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(ne(n=>n instanceof Xe),jt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){let o=[];for(let i of r){i.providers&&!i._injector&&(i._injector=mi(i.providers,n,`Route: ${i.path}`));let s=i._injector??n,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&i.canLoad===void 0||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return U(o).pipe(gt())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;r.loadChildren&&r.canLoad===void 0?o=this.loader.loadChildren(n,r):o=D(null);let i=o.pipe(G(s=>s===null?D(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return U([i,s]).pipe(gt())}else return i})}static{this.\u0275fac=function(r){return new(r||e)(E(ft),E(bi),E(ve),E(qi),E(Eu))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Tp=new I(""),UI=(()=>{class e{constructor(n,r,o,i,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Yn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Xe?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Tt&&n.code===ji.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof $i&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new $i(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(r){Rf()}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})();function Np(e,...t){return Rn([{provide:$r,multi:!0,useValue:e},[],{provide:Nt,useFactory:Ap,deps:[ft]},{provide:Ei,multi:!0,useFactory:Rp},t.map(n=>n.\u0275providers)])}function Ap(e){return e.routerState.root}function qr(e,t){return{\u0275kind:e,\u0275providers:t}}function Rp(){let e=p(Me);return t=>{let n=e.get(Ye);if(t!==n.components[0])return;let r=e.get(ft),o=e.get(Op);e.get(Su)===1&&r.initialNavigation(),e.get(Pp,null,S.Optional)?.setUpPreloading(),e.get(Tp,null,S.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var Op=new I("",{factory:()=>new X}),Su=new I("",{providedIn:"root",factory:()=>1});function HI(){return qr(2,[{provide:Su,useValue:0},{provide:Vn,multi:!0,deps:[Me],useFactory:t=>{let n=t.get(Sh,Promise.resolve());return()=>n.then(()=>new Promise(r=>{let o=t.get(ft),i=t.get(Op);_p(o,()=>{r(!0)}),t.get(Mu).afterPreactivation=()=>(r(!0),i.closed?D(void 0):i),o.initialNavigation()}))}}])}function zI(){return qr(3,[{provide:Vn,multi:!0,useFactory:()=>{let t=p(ft);return()=>{t.setUpLocationChangeListener()}}},{provide:Su,useValue:2}])}var Pp=new I("");function GI(e){return qr(0,[{provide:Pp,useExisting:BI},{provide:qi,useExisting:e}])}function WI(){return qr(8,[Gh,{provide:Zi,useExisting:Gh}])}function qI(e){let t=[{provide:bp,useValue:TI},{provide:Mp,useValue:g({skipNextTransition:!!e?.skipInitialTransition},e)}];return qr(9,t)}var Yh=new I("ROUTER_FORROOT_GUARD"),ZI=[Bn,{provide:Ur,useClass:Zn},ft,zr,{provide:Nt,useFactory:Ap,deps:[ft]},Eu,[]],Qi=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[ZI,[],{provide:$r,multi:!0,useValue:n},{provide:Yh,useFactory:KI,deps:[[ft,new ni,new Va]]},{provide:Wr,useValue:r||{}},r?.useHash?QI():XI(),YI(),r?.preloadingStrategy?GI(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?JI(r):[],r?.bindToComponentInputs?WI().\u0275providers:[],r?.enableViewTransitions?qI().\u0275providers:[],eE()]}}static forChild(n){return{ngModule:e,providers:[{provide:$r,multi:!0,useValue:n}]}}static{this.\u0275fac=function(r){return new(r||e)(E(Yh,8))}}static{this.\u0275mod=Nn({type:e})}static{this.\u0275inj=Tn({})}}return e})();function YI(){return{provide:Tp,useFactory:()=>{let e=p(Ah),t=p(W),n=p(Wr),r=p(Mu),o=p(Ur);return n.scrollOffset&&e.setOffset(n.scrollOffset),new UI(o,r,e,t,n)}}}function QI(){return{provide:ut,useClass:xh}}function XI(){return{provide:ut,useClass:Oc}}function KI(e){return"guarded"}function JI(e){return[e.initialNavigation==="disabled"?zI().\u0275providers:[],e.initialNavigation==="enabledBlocking"?HI().\u0275providers:[]]}var Qh=new I("");function eE(){return[{provide:Qh,useFactory:Rp},{provide:Ei,multi:!0,useExisting:Qh}]}var nE=["canvas"],rE=["fileInput"];function oE(e,t){if(e&1){let n=jn();P(0,"button",16),H("click",function(){let o=q(n).$implicit;return Z(o.apply())}),Y(1),F()}if(e&2){let n=t.$implicit;st("title",n.name),Ze(),Ci(" ",n.icon," ")}}function iE(e,t){if(e&1){let n=jn();P(0,"div",17),H("mouseenter",function(){q(n);let o=ue();return Z(o.onControlsMouseEnter())})("mouseleave",function(){q(n);let o=ue();return Z(o.onControlsMouseLeave())}),P(1,"div",18)(2,"button",19),H("click",function(){q(n);let o=ue();return Z(o.rotatePhoto(-15))}),Y(3,"\u21BA"),F(),P(4,"button",19),H("click",function(){q(n);let o=ue();return Z(o.rotatePhoto(15))}),Y(5,"\u21BB"),F(),P(6,"button",19),H("click",function(){q(n);let o=ue();return Z(o.scalePhoto(.9))}),Y(7,"-"),F(),P(8,"button",19),H("click",function(){q(n);let o=ue();return Z(o.scalePhoto(1.1))}),Y(9,"+"),F()(),P(10,"div",18)(11,"button",19),H("click",function(){q(n);let o=ue();return Z(o.moveBackward(o.hoveredPhoto))}),Y(12,"\u2193"),F(),P(13,"button",19),H("click",function(){q(n);let o=ue();return Z(o.moveForward(o.hoveredPhoto))}),Y(14,"\u2191"),F(),P(15,"button",19),H("click",function(){q(n);let o=ue();return Z(o.moveToBack(o.hoveredPhoto))}),Y(16,"\u2913"),F(),P(17,"button",19),H("click",function(){q(n);let o=ue();return Z(o.moveToFront(o.hoveredPhoto))}),Y(18,"\u2912"),F()(),P(19,"div",18)(20,"button",20),H("click",function(){q(n);let o=ue();return Z(o.removePhoto(o.hoveredPhoto))}),Y(21,"\xD7"),F()()()}if(e&2){let n=ue();yi("left",n.controlsPosition.x,"px")("top",n.controlsPosition.y,"px")}}var Xi=class e{canvasRef;fileInput;canvas;ctx;photos=[];scale=1;isDragging=!1;selectedPhoto=null;lastX=0;lastY=0;maxZIndex=0;touches=[];lastDistance=0;lastTapTime=0;initialTouchDistance=0;activePhoto=null;panX=0;panY=0;zoomPoint={x:0,y:0};isPanning=!1;lastClientX=0;lastClientY=0;hoveredPhoto=null;controlsPosition={x:0,y:0};isOnControls=!1;imageCache=new Map;saveSize="medium";presets=[{name:"Grid Layout",icon:"\u229E",apply:()=>this.applyGridLayout()},{name:"Stack",icon:"\u25A4",apply:()=>this.applyStackLayout()},{name:"Circle",icon:"\u25EF",apply:()=>this.applyCircleLayout()},{name:"Random",icon:"\u27F0",apply:()=>this.applyRandomLayout()},{name:"Compact Layout",icon:"\u25A3",apply:()=>this.applyCompactLayout()}];resizeHandler=()=>{this.setupCanvas()};ngAfterViewInit(){this.canvas=this.canvasRef.nativeElement,this.ctx=this.canvas.getContext("2d"),this.setupCanvas(),this.setupEventListeners(),window.addEventListener("resize",this.resizeHandler)}ngOnDestroy(){this.photos.forEach(t=>{URL.revokeObjectURL(t.url),this.imageCache.delete(t.url)}),window.removeEventListener("resize",this.resizeHandler)}setupCanvas(){let t=this.canvas.parentElement;t?(this.canvas.width=t.clientWidth,this.canvas.height=t.clientHeight):(this.canvas.width=window.innerWidth,this.canvas.height=window.innerHeight),this.render()}setupEventListeners(){this.canvas.addEventListener("wheel",this.handleZoom.bind(this)),this.canvas.addEventListener("mousedown",this.handleMouseDown.bind(this)),this.canvas.addEventListener("mousemove",this.handleMouseMove.bind(this)),this.canvas.addEventListener("mouseup",this.handleMouseUp.bind(this)),this.canvas.addEventListener("dblclick",this.handleDoubleClick.bind(this)),this.canvas.addEventListener("touchstart",this.handleTouchStart.bind(this)),this.canvas.addEventListener("touchmove",this.handleTouchMove.bind(this)),this.canvas.addEventListener("touchend",this.handleTouchEnd.bind(this)),this.canvas.addEventListener("mousemove",this.handleHover.bind(this)),this.canvas.addEventListener("mouseleave",()=>{this.isOnControls||(this.hoveredPhoto=null)})}handleFileSelect(t){let n=t.target.files;n&&this.loadImages(Array.from(n))}handleDrop(t){t.preventDefault();let n=Array.from(t.dataTransfer?.files||[]);this.loadImages(n.filter(r=>r.type.startsWith("image/")))}loadImages(t){return er(this,null,function*(){for(let n of t){let r=URL.createObjectURL(n);try{let o=new Image,i=new Promise((s,a)=>{o.onload=()=>s(),o.onerror=()=>a()});o.src=r,yield i,this.imageCache.set(r,o),this.photos.push({id:Date.now()+Math.random(),url:r,x:Math.random()*(this.canvas.width-200),y:Math.random()*(this.canvas.height-200),width:200,height:200*o.height/o.width,zIndex:++this.maxZIndex,scale:1,rotation:(Math.random()-.5)*.5})}catch(o){console.error("Failed to load image:",o),URL.revokeObjectURL(r)}}this.render()})}render(){if(!this.ctx)return;this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);let t=[...this.photos].sort((n,r)=>n.zIndex-r.zIndex);this.ctx.setTransform(1,0,0,1,0,0),this.ctx.translate(this.panX,this.panY),this.ctx.scale(this.scale,this.scale);for(let n of t){let r=this.imageCache.get(n.url);r&&(this.ctx.save(),this.ctx.translate(n.x+n.width/2,n.y+n.height/2),this.ctx.rotate(n.rotation),this.ctx.scale(n.scale,n.scale),this.ctx.drawImage(r,-n.width/2,-n.height/2,n.width,n.height),this.ctx.restore())}this.ctx.setTransform(1,0,0,1,0,0)}saveCollage(){let n={normal:2,medium:3,large:6}[this.saveSize],r=document.createElement("canvas");r.width=this.canvas.width*n,r.height=this.canvas.height*n;let o=r.getContext("2d");if(!o)return;o.fillStyle="white",o.fillRect(0,0,r.width,r.height);let i=[...this.photos].sort((c,u)=>c.zIndex-u.zIndex);o.setTransform(1,0,0,1,0,0),o.translate(this.panX*n,this.panY*n),o.scale(this.scale*n,this.scale*n);for(let c of i){let u=this.imageCache.get(c.url);u&&(o.save(),o.translate(c.x+c.width/2,c.y+c.height/2),o.rotate(c.rotation),o.scale(c.scale,c.scale),o.drawImage(u,-c.width/2,-c.height/2,c.width,c.height),o.restore())}o.setTransform(1,0,0,1,0,0);let s=r.toDataURL("image/png"),a=document.createElement("a");a.download="collage.png",a.href=s,a.click()}setSaveSize(t){this.saveSize=t}handleZoom(t){t.preventDefault();let n={x:(t.offsetX-this.panX)/this.scale,y:(t.offsetY-this.panY)/this.scale},r=this.scale,o=-Math.sign(t.deltaY)*.025;this.scale=Math.max(.1,Math.min(5,this.scale+o)),this.panX=t.offsetX-n.x*this.scale,this.panY=t.offsetY-n.y*this.scale,this.render()}handleMouseDown(t){let{offsetX:n,offsetY:r}=t;this.lastX=n,this.lastY=r,this.lastClientX=t.clientX,this.lastClientY=t.clientY,this.selectedPhoto=this.findPhotoAtPosition(n,r),this.selectedPhoto?t.altKey?this.moveToBack(this.selectedPhoto):this.isDragging=!0:this.isPanning=!0,this.hoveredPhoto=null}handleMouseMove(t){if(this.isDragging&&this.selectedPhoto){let n=t.offsetX-this.lastX,r=t.offsetY-this.lastY;this.selectedPhoto.x+=n/this.scale,this.selectedPhoto.y+=r/this.scale,this.lastX=t.offsetX,this.lastY=t.offsetY,this.lastClientX=t.clientX,this.lastClientY=t.clientY,this.render()}else if(this.isPanning){let n=t.clientX-this.lastClientX,r=t.clientY-this.lastClientY;this.panX+=n,this.panY+=r,this.lastClientX=t.clientX,this.lastClientY=t.clientY,this.render()}}handleMouseUp(){this.isDragging=!1,this.isPanning=!1,this.selectedPhoto=null}findPhotoAtPosition(t,n){let r=(t-this.panX)/this.scale,o=(n-this.panY)/this.scale;return this.photos.filter(s=>r>=s.x&&r<=s.x+s.width&&o>=s.y&&o<=s.y+s.height).sort((s,a)=>a.zIndex-s.zIndex)[0]||null}handleDoubleClick(t){let n=this.findPhotoAtPosition(t.offsetX,t.offsetY);n&&(this.maxZIndex++,n.zIndex=this.maxZIndex,this.render())}handleTouchStart(t){if(t.preventDefault(),this.touches=Array.from(t.touches),this.touches.length===1){let n=this.touches[0],r=this.canvas.getBoundingClientRect(),o=n.clientX-r.left,i=n.clientY-r.top;this.lastClientX=n.clientX,this.lastClientY=n.clientY;let s=Date.now();s-this.lastTapTime<300&&this.handleDoubleClick({offsetX:o,offsetY:i}),this.lastTapTime=s;let a=this.findPhotoAtPosition(o,i);a?(this.selectedPhoto=a,this.isDragging=!0):this.isPanning=!0,this.lastX=o,this.lastY=i}else if(this.touches.length===2){let n=this.canvas.getBoundingClientRect(),r=(this.touches[0].clientX+this.touches[1].clientX)/2-n.left,o=(this.touches[0].clientX+this.touches[1].clientY)/2-n.top;this.zoomPoint={x:(r-this.panX)/this.scale,y:(o-this.panY)/this.scale},this.activePhoto=this.findPhotoAtPosition(r,o),this.initialTouchDistance=this.getTouchDistance(this.touches[0],this.touches[1])}}handleTouchMove(t){t.preventDefault();let n=Array.from(t.touches);if(n.length===1){let r=n[0],o=this.canvas.getBoundingClientRect(),i=r.clientX-o.left,s=r.clientY-o.top;if(this.isDragging&&this.selectedPhoto){let a=i-this.lastX,c=s-this.lastY;this.selectedPhoto.x+=a/this.scale,this.selectedPhoto.y+=c/this.scale,this.lastX=i,this.lastY=s,this.render()}else if(this.isPanning){let a=r.clientX-this.lastClientX,c=r.clientY-this.lastClientY;this.panX+=a,this.panY+=c,this.lastClientX=r.clientX,this.lastClientY=r.clientY,this.render()}}else if(n.length===2){let r=this.getTouchDistance(n[0],n[1]),o=r/this.initialTouchDistance,i=this.canvas.getBoundingClientRect(),s=(n[0].clientX+n[1].clientX)/2-i.left,a=(n[0].clientY+n[1].clientY)/2-i.top;if(this.activePhoto){let c=this.activePhoto.scale*o;this.activePhoto.scale=Math.max(.1,Math.min(5,c))}else{let c=this.scale;this.scale=Math.max(.1,Math.min(5,this.scale*o)),this.panX=s-this.zoomPoint.x*this.scale,this.panY=a-this.zoomPoint.y*this.scale}this.initialTouchDistance=r,this.render()}}handleTouchEnd(t){t.preventDefault(),t.touches.length===0&&(this.handleMouseUp(),this.activePhoto=null),this.touches=Array.from(t.touches)}getTouchDistance(t,n){let r=t.clientX-n.clientX,o=t.clientY-n.clientY;return Math.sqrt(r*r+o*o)}handleHover(t){if(!this.isDragging){let n=this.findPhotoAtPosition(t.offsetX,t.offsetY);if(n||this.isOnControls){if(n&&(!this.hoveredPhoto||this.hoveredPhoto.id!==n.id)){let r=n.x*this.scale+this.panX,o=n.y*this.scale+this.panY;this.hoveredPhoto=z(g({},n),{screenX:r,screenY:o}),this.controlsPosition={x:r+n.width*n.scale*this.scale/2,y:o+n.height*n.scale*this.scale/2}}}else this.hoveredPhoto=null}}rotatePhoto(t){if(this.hoveredPhoto){let n=t*(Math.PI/180),r=this.photos.find(o=>o.id===this.hoveredPhoto.id);r&&(r.rotation+=n,this.hoveredPhoto.rotation=r.rotation,this.render())}}scalePhoto(t){if(this.hoveredPhoto){let n=this.photos.find(r=>r.id===this.hoveredPhoto.id);n&&(n.scale=Math.max(.1,Math.min(5,n.scale*t)),this.hoveredPhoto.scale=n.scale,this.render())}}onControlsMouseEnter(){this.isOnControls=!0}onControlsMouseLeave(){this.isOnControls=!1;let t=this.canvas.getBoundingClientRect(),n=new MouseEvent("mousemove",{clientX:this.lastX+t.left,clientY:this.lastY+t.top});this.handleHover(n)}moveForward(t){let n=this.photos.find(o=>o.id===t.id);if(!n)return;let r=this.photos.find(o=>o.zIndex>n.zIndex);if(r){let o=r.zIndex;r.zIndex=n.zIndex,n.zIndex=o,this.hoveredPhoto&&this.hoveredPhoto.id===n.id&&(this.hoveredPhoto.zIndex=n.zIndex),this.render()}}moveBackward(t){let n=this.photos.find(o=>o.id===t.id);if(!n)return;let r=[...this.photos].sort((o,i)=>i.zIndex-o.zIndex).find(o=>o.zIndexo.id===t.id);if(!n)return;let r=n.zIndex;this.photos.forEach(o=>{o.zIndexo.id===t.id);if(!n)return;let r=n.zIndex;this.photos.forEach(o=>{o.zIndex>r&&o.zIndex--}),n.zIndex=this.maxZIndex,this.hoveredPhoto&&this.hoveredPhoto.id===n.id&&(this.hoveredPhoto.zIndex=this.maxZIndex),this.render()}resetCollage(){this.photos.forEach(t=>{URL.revokeObjectURL(t.url),this.imageCache.delete(t.url)}),this.photos=[],this.maxZIndex=0,this.scale=1,this.panX=0,this.panY=0,this.hoveredPhoto=null,this.render()}removePhoto(t){let n=this.photos.findIndex(r=>r.id===t.id);n!==-1&&(URL.revokeObjectURL(t.url),this.imageCache.delete(t.url),this.photos.splice(n,1),this.hoveredPhoto&&this.hoveredPhoto.id===t.id&&(this.hoveredPhoto=null),this.render())}applyGridLayout(){if(!this.photos.length)return;let t=20,n=this.canvas.width-t*2,r=this.canvas.height-t*2,o=this.photos.length,i=Math.ceil(Math.sqrt(o)),s=Math.ceil(o/i),a=n/i,c=r/s;this.photos.forEach((u,l)=>{let d=Math.floor(l/i),h=l%i,f=u.height/u.width;u.rotation=0,u.scale=1,u.width=Math.min(a-t,c/f-t),u.height=u.width*f,u.x=t+h*a+(a-u.width)/2,u.y=t+d*c+(c-u.height)/2,u.zIndex=l}),this.maxZIndex=this.photos.length-1,this.scale=1,this.panX=0,this.panY=0,this.render()}applyStackLayout(){if(!this.photos.length)return;let t=this.canvas.width/2,n=this.canvas.height/2,r=(Math.random()-.5)*.5;this.photos.forEach((o,i)=>{o.rotation=r+(Math.random()-.5)*.3,o.scale=1,o.x=t-o.width/2+(Math.random()-.5)*50,o.y=n-o.height/2+(Math.random()-.5)*50,o.zIndex=i}),this.maxZIndex=this.photos.length-1,this.scale=1,this.panX=0,this.panY=0,this.render()}applyCircleLayout(){if(!this.photos.length)return;let t=this.canvas.width/2,n=this.canvas.height/2,r=Math.min(this.canvas.width,this.canvas.height)*.3;this.photos.forEach((o,i)=>{let s=i/this.photos.length*Math.PI*2;o.rotation=s+Math.PI/2,o.scale=.8,o.x=t+Math.cos(s)*r-o.width/2,o.y=n+Math.sin(s)*r-o.height/2,o.zIndex=i}),this.maxZIndex=this.photos.length-1,this.scale=1,this.panX=0,this.panY=0,this.render()}applyRandomLayout(){this.photos.length&&(this.photos.forEach((t,n)=>{t.rotation=(Math.random()-.5)*Math.PI,t.scale=.5+Math.random()*1,t.x=Math.random()*(this.canvas.width-t.width),t.y=Math.random()*(this.canvas.height-t.height),t.zIndex=n}),this.maxZIndex=this.photos.length-1,this.scale=1,this.panX=0,this.panY=0,this.render())}applyCompactLayout(){if(!this.photos.length)return;let t=10,n=this.canvas.width-t*2,r=this.canvas.height-t*2,i=n*r/this.photos.length,s=Math.sqrt(i),a=this.photos.map(f=>({photo:f,aspect:f.height/f.width,processed:!1})),c=t,u=t,l=0,d=n,h=[];for(;a.filter(f=>!f.processed).length>0;){let f=this.findBestPhotoForRow(a.filter(m=>!m.processed),d,s);if(f){f.processed=!0,h.push(f);let m=s/f.aspect;d-=m,l=Math.max(l,s),(d!T.processed).length===0)&&(this.arrangeRow(h,c,u,n-(d+t),l),u+=l+t,c=t,d=n,l=0,h=[])}}this.maxZIndex=this.photos.length-1,this.scale=1,this.panX=0,this.panY=0,this.render()}findBestPhotoForRow(t,n,r){return t.length===0?null:t.reduce((o,i)=>{let s=r/i.aspect,a=o?r/o.aspect:1/0,c=Math.abs(n-s),u=Math.abs(n-a);return cu+i/l.aspect,0),a=o/s,c=n;t.forEach((u,l)=>{let d=u.photo,h=i/u.aspect*a;d.width=h,d.height=i,d.x=c,d.y=r,d.rotation=0,d.scale=1,d.zIndex=l,c+=h})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=bt({type:e,selectors:[["app-photo-collage"]],viewQuery:function(n,r){if(n&1&&(bc(nE,5),bc(rE,5)),n&2){let o;Di(o=wi())&&(r.canvasRef=o.first),Di(o=wi())&&(r.fileInput=o.first)}},standalone:!0,features:[xt],decls:29,vars:9,consts:[["canvas",""],["fileInput",""],[1,"collage-container",3,"dragover","drop"],[1,"toolbar"],[1,"toolbar-label"],["class","preset-btn",3,"title","click",4,"ngFor","ngForOf"],[1,"canvas-container"],["class","photo-controls",3,"left","top","mouseenter","mouseleave",4,"ngIf"],["type","file","accept","image/*","multiple","",2,"display","none",3,"change"],[1,"controls"],[3,"click"],[1,"save-group"],[1,"save-options"],[1,"size-label"],[1,"size-buttons"],[1,"size-btn",3,"click"],[1,"preset-btn",3,"click","title"],[1,"photo-controls",3,"mouseenter","mouseleave"],[1,"controls-row"],[1,"control-btn",3,"click"],[1,"control-btn","remove-btn",3,"click"]],template:function(n,r){if(n&1){let o=jn();P(0,"div",2),H("dragover",function(s){return q(o),Z(s.preventDefault())})("drop",function(s){return q(o),Z(r.handleDrop(s))}),P(1,"div",3)(2,"span",4),Y(3,"Layouts:"),F(),Ln(4,oE,2,2,"button",5),F(),P(5,"div",6),at(6,"canvas",null,0),Ln(8,iE,22,4,"div",7),F(),P(9,"input",8,1),H("change",function(s){return q(o),Z(r.handleFileSelect(s))}),F(),P(11,"div",9)(12,"button",10),H("click",function(){q(o);let s=ch(10);return Z(s.click())}),Y(13,"Add Photos"),F(),P(14,"div",11)(15,"div",12)(16,"div",13),Y(17,"Size:"),F(),P(18,"div",14)(19,"button",15),H("click",function(){return q(o),Z(r.setSaveSize("normal"))}),Y(20," Normal "),F(),P(21,"button",15),H("click",function(){return q(o),Z(r.setSaveSize("medium"))}),Y(22," Medium "),F(),P(23,"button",15),H("click",function(){return q(o),Z(r.setSaveSize("large"))}),Y(24," Large "),F()()(),P(25,"button",10),H("click",function(){return q(o),Z(r.saveCollage())}),Y(26),F()(),P(27,"button",10),H("click",function(){return q(o),Z(r.resetCollage())}),Y(28,"Reset"),F()()()}n&2&&(Ze(4),st("ngForOf",r.presets),Ze(4),st("ngIf",r.hoveredPhoto),Ze(11),wr("active",r.saveSize==="normal"),Ze(2),wr("active",r.saveSize==="medium"),Ze(2),wr("active",r.saveSize==="large"),Ze(3),Ci("Save Collage (",r.saveSize,")"))},dependencies:[Qt,Nh,_i],styles:['.collage-container[_ngcontent-%COMP%]{width:100vw;height:100vh;position:relative;overflow:hidden}canvas[_ngcontent-%COMP%]{position:absolute;top:0;left:0;cursor:move}.controls[_ngcontent-%COMP%]{position:fixed;bottom:20px;left:50%;transform:translate(-50%);display:flex;gap:10px;z-index:1000}.controls[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:10px 20px;border-radius:20px;border:none;background:#007bffe6;color:#fff;cursor:pointer;transition:transform .2s}.controls[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{transform:scale(1.05);background:#007bff}.canvas-container[_ngcontent-%COMP%]{position:relative;width:100%;height:100%}.photo-controls-container[_ngcontent-%COMP%]{position:absolute;width:200px;height:100px;transform:translate(-50%,-50%);z-index:1000;pointer-events:none;display:flex;align-items:center;justify-content:center}.photo-controls[_ngcontent-%COMP%]{position:absolute;display:flex;flex-direction:column;gap:8px;padding:8px;background:#00000080;border-radius:20px;transform:translate(-50%,-50%);z-index:1000;pointer-events:all}.control-btn[_ngcontent-%COMP%]{width:32px;height:32px;padding:0;border:none;border-radius:50%;background:#fff;color:#333;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:18px}.control-btn[_ngcontent-%COMP%]:hover{background:#eee}.controls-row[_ngcontent-%COMP%]{display:flex;gap:8px;justify-content:center}.toolbar[_ngcontent-%COMP%]{position:fixed;top:20px;left:50%;transform:translate(-50%);display:flex;gap:10px;align-items:center;background:#000000b3;padding:10px 20px;border-radius:30px;z-index:1000}.toolbar-label[_ngcontent-%COMP%]{color:#fff;font-size:14px;margin-right:10px}.preset-btn[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:20px;border:none;background:#ffffffe6;color:#333;cursor:pointer;font-size:20px;display:flex;align-items:center;justify-content:center;transition:transform .2s,background-color .2s}.preset-btn[_ngcontent-%COMP%]:hover{transform:scale(1.1);background:#fff}.remove-btn[_ngcontent-%COMP%]{background:#f44;color:#fff}.remove-btn[_ngcontent-%COMP%]:hover{background:#f66}.toggle-btn[_ngcontent-%COMP%]{background:#808080e6!important}.toggle-btn.active[_ngcontent-%COMP%]{background:#00c800e6!important}.toggle-btn[_ngcontent-%COMP%]:hover{background:gray!important}.toggle-btn.active[_ngcontent-%COMP%]:hover{background:#00c800!important}.save-group[_ngcontent-%COMP%]{position:relative;display:inline-block}.save-group[_ngcontent-%COMP%]:hover .save-options[_ngcontent-%COMP%], .save-options[_ngcontent-%COMP%]:hover{display:flex}.save-options[_ngcontent-%COMP%]{display:none;position:absolute;bottom:calc(100% + 2px);left:0;right:0;flex-direction:column;gap:5px;background:#000c;padding:5px 5px 8px;border-radius:10px;margin-bottom:0}.save-options[_ngcontent-%COMP%]:after{content:"";position:absolute;bottom:-4px;left:50%;transform:translate(-50%);border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(0,0,0,.8)}.size-btn[_ngcontent-%COMP%]{padding:5px 10px!important;font-size:12px!important;background:#808080e6!important}.size-btn[_ngcontent-%COMP%]:hover{background:gray!important}.size-btn.active[_ngcontent-%COMP%]{background:#007bffe6!important}.size-btn.active[_ngcontent-%COMP%]:hover{background:#007bff!important}.size-label[_ngcontent-%COMP%]{color:#fff;font-size:12px;text-align:center}.size-buttons[_ngcontent-%COMP%]{display:flex;gap:5px;justify-content:center}@media (hover: none){.save-options[_ngcontent-%COMP%]{position:static;margin:0 0 10px}.save-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:stretch}}']})};var sE=()=>["/collage"],Ki=class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=bt({type:e,selectors:[["app-home"]],standalone:!0,features:[xt],decls:7,vars:2,consts:[[1,"fullscreen-container"],["src","/icons/icon-1024x1024.png","alt","Moments Logo",1,"logo"],[1,"content"],[1,"start-button",3,"routerLink"]],template:function(n,r){n&1&&(P(0,"div",0),at(1,"img",1),P(2,"div",2)(3,"h1"),Y(4,"Welcome to Moments"),F(),P(5,"button",3),Y(6," Create Collage "),F()()()),n&2&&(Ze(5),st("routerLink",uh(1,sE)))},dependencies:[Qt,Qi,xp],styles:[".fullscreen-container[_ngcontent-%COMP%]{position:relative;width:100vw;height:100vh;overflow:hidden}.fullscreen-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}.content[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;z-index:1}.content[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#fff;font-size:3rem;text-shadow:2px 2px 4px rgba(0,0,0,.5);margin-bottom:2rem}.start-button[_ngcontent-%COMP%]{padding:12px 24px;background-color:#007bff;color:#fff;border:none;border-radius:24px;font-size:1.1rem;cursor:pointer;box-shadow:0 2px 5px #0003;transition:transform .2s}.start-button[_ngcontent-%COMP%]:hover{transform:scale(1.05);background-color:#0056b3}.install-button[_ngcontent-%COMP%]{position:fixed;bottom:20px;right:20px;padding:12px 24px;background-color:#007bff;color:#fff;border:none;border-radius:24px;font-size:1.1rem;cursor:pointer;box-shadow:0 2px 5px #0003;z-index:1000;transition:transform .2s}.install-button[_ngcontent-%COMP%]:hover{transform:scale(1.05);background-color:#0056b3}"]})};var Fp=[{path:"",redirectTo:"/home",pathMatch:"full"},{path:"home",component:Ki},{path:"collage",component:Xi}];var Yr="Service workers are disabled or not supported by this browser";function aE(e){return Ft(()=>pt(new Error(e)))}var Jn=class{constructor(t){if(this.serviceWorker=t,!t)this.worker=this.events=this.registration=aE(Yr);else{let r=dn(t,"controllerchange").pipe(b(()=>t.controller)),o=Ft(()=>D(t.controller)),i=Ve(o,r);this.worker=i.pipe(ne(l=>!!l)),this.registration=this.worker.pipe(re(()=>t.getRegistration()));let u=dn(t,"message").pipe(b(l=>l.data)).pipe(ne(l=>l&&l.type)).pipe(Ss());u.connect(),this.events=u}}postMessage(t,n){return this.worker.pipe(K(1),J(r=>{r.postMessage(g({action:t},n))})).toPromise().then(()=>{})}postMessageWithOperation(t,n,r){let o=this.waitForOperationCompleted(r),i=this.postMessage(t,n);return Promise.all([i,o]).then(([,s])=>s)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(t){let n;return typeof t=="string"?n=r=>r.type===t:n=r=>t.includes(r.type),this.events.pipe(ne(n))}nextEventOfType(t){return this.eventsOfType(t).pipe(K(1))}waitForOperationCompleted(t){return this.eventsOfType("OPERATION_COMPLETED").pipe(ne(n=>n.nonce===t),K(1),b(n=>{if(n.result!==void 0)return n.result;throw new Error(n.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},cE=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,this.pushManager=null,this.subscriptionChanges=new X,!n.isEnabled){this.messages=Lt,this.notificationClicks=Lt,this.subscription=Lt;return}this.messages=this.sw.eventsOfType("PUSH").pipe(b(o=>o.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(b(o=>o.data)),this.pushManager=this.sw.registration.pipe(b(o=>o.pushManager));let r=this.pushManager.pipe(re(o=>o.getSubscription()));this.subscription=yo(r,this.subscriptionChanges)}requestSubscription(n){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(Yr));let r={userVisibleOnly:!0},o=this.decodeBase64(n.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),i=new Uint8Array(new ArrayBuffer(o.length));for(let s=0;ss.subscribe(r)),K(1)).toPromise().then(s=>(this.subscriptionChanges.next(s),s))}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(Yr));let n=r=>{if(r===null)throw new Error("Not subscribed to push notifications.");return r.unsubscribe().then(o=>{if(!o)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})};return this.subscription.pipe(K(1),re(n)).toPromise()}decodeBase64(n){return atob(n)}static{this.\u0275fac=function(r){return new(r||e)(E(Jn))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),uE=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,!n.isEnabled){this.versionUpdates=Lt,this.unrecoverable=Lt;return}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Yr));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:n},n)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Yr));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:n},n)}static{this.\u0275fac=function(r){return new(r||e)(E(Jn))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})();var Lp=new I("");function lE(e,t,n,r){return()=>{if(!(xi(r)&&"serviceWorker"in navigator&&n.enabled!==!1))return;let o=e.get(W),i=e.get(Ye);o.runOutsideAngular(()=>{let a=navigator.serviceWorker,c=()=>a.controller?.postMessage({action:"INITIALIZE"});a.addEventListener("controllerchange",c),i.onDestroy(()=>{a.removeEventListener("controllerchange",c)})});let s;if(typeof n.registrationStrategy=="function")s=n.registrationStrategy();else{let[a,...c]=(n.registrationStrategy||"registerWhenStable:30000").split(":");switch(a){case"registerImmediately":s=D(null);break;case"registerWithDelay":s=jp(+c[0]||0);break;case"registerWhenStable":let u=U(e.get(Ye).whenStable());s=c[0]?yo(u,jp(+c[0])):u;break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${n.registrationStrategy}`)}}o.runOutsideAngular(()=>s.pipe(K(1)).subscribe(()=>navigator.serviceWorker.register(t,{scope:n.scope}).catch(a=>console.error("Service worker registration failed with:",a))))}}function jp(e){return D(null).pipe(bs(e))}function dE(e,t){return new Jn(xi(t)&&e.enabled!==!1?navigator.serviceWorker:void 0)}var Zr=class{};function Vp(e,t={}){return Rn([cE,uE,{provide:Lp,useValue:e},{provide:Zr,useValue:t},{provide:Jn,useFactory:dE,deps:[Zr,Fe]},{provide:Vn,useFactory:lE,deps:[Me,Lp,Zr,Fe],multi:!0}])}var $p={providers:[ph({eventCoalescing:!0}),Np(Fp),Vp("ngsw-worker.js",{enabled:!mh(),registrationStrategy:"registerWhenStable:30000"})]};function fE(e,t){if(e&1){let n=jn();P(0,"button",1),H("click",function(){q(n);let o=ue();return Z(o.installPwa())}),Y(1,` Install App -`),F()}}var Ji=class e{deferredPrompt;showInstallButton=!1;ngOnInit(){window.addEventListener("beforeinstallprompt",t=>{t.preventDefault(),this.deferredPrompt=t,this.showInstallButton=!0})}installPwa(){return er(this,null,function*(){if(!this.deferredPrompt)return;this.deferredPrompt.prompt();let{outcome:t}=yield this.deferredPrompt.userChoice;t==="accepted"&&(this.showInstallButton=!1),this.deferredPrompt=null})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=bt({type:e,selectors:[["app-root"]],standalone:!0,features:[xt],decls:2,vars:1,consts:[["class","install-button",3,"click",4,"ngIf"],[1,"install-button",3,"click"]],template:function(n,r){n&1&&(Ln(0,fE,2,0,"button",0),at(1,"router-outlet")),n&2&&st("ngIf",r.showInstallButton)},dependencies:[Cu,Qt,_i,Qi],styles:[".fullscreen-container[_ngcontent-%COMP%]{position:relative;width:100vw;height:100vh;overflow:hidden}.fullscreen-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}.content[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;z-index:1}.content[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#fff;font-size:3rem;text-shadow:2px 2px 4px rgba(0,0,0,.5);margin-bottom:2rem}.start-button[_ngcontent-%COMP%]{padding:12px 24px;background-color:#007bff;color:#fff;border:none;border-radius:24px;font-size:1.1rem;cursor:pointer;box-shadow:0 2px 5px #0003;transition:transform .2s}.start-button[_ngcontent-%COMP%]:hover{transform:scale(1.05);background-color:#0056b3}.install-button[_ngcontent-%COMP%]{position:fixed;bottom:20px;right:20px;padding:12px 24px;background-color:#007bff;color:#fff;border:none;border-radius:24px;font-size:1.1rem;cursor:pointer;box-shadow:0 2px 5px #0003;z-index:1000;transition:transform .2s}.install-button[_ngcontent-%COMP%]:hover{transform:scale(1.05);background-color:#0056b3}"]})};Vh(Ji,$p).catch(e=>console.error(e)); diff --git a/ngsw.json b/ngsw.json index bb88f93..1d1dff1 100644 --- a/ngsw.json +++ b/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1731800810623, + "timestamp": 1731802136325, "index": "/index.html", "assetGroups": [ { @@ -12,7 +12,7 @@ }, "urls": [ "/index.html", - "/main-CS5R27W5.js", + "/main-CG7TSDRZ.js", "/manifest.webmanifest", "/polyfills-FFHMD2TL.js", "/styles-IH7QB2KV.css" @@ -53,8 +53,8 @@ "/icons/icon-512x512.png": "22aab1c2adcaec3d57b71438ab510cab8c2aa8be", "/icons/icon-72x72.png": "37ba72005c5066d5e7ebf1a34eda07f01038d6c3", "/icons/icon-96x96.png": "c54a9f8a8bc51994079b2926dead222631ef4478", - "/index.html": "8b91da6c19858454d2490da310d7248dd945026f", - "/main-CS5R27W5.js": "c45842234494aa987f99136de4a9d835b3476afa", + "/index.html": "cdde9e3d870a2c196fcef8363c1e490e2e7fa350", + "/main-CG7TSDRZ.js": "1747c5e8ce768b8fcaa4c52e2fd4a02f4c65fe02", "/manifest.webmanifest": "6c2e5a015db86afd19982c24a59eae765c60e468", "/polyfills-FFHMD2TL.js": "f49b49a155bc7d192db62a4c15d0a612b460a667", "/styles-IH7QB2KV.css": "420e493224bf31e7de01bcdf9fd81bb33c95d60c"