From a7bfb10c5688e7bd0b002daa2cbba6a5edae603e Mon Sep 17 00:00:00 2001 From: SondreB Date: Sat, 16 Nov 2024 23:11:43 +0000 Subject: [PATCH] Auto-generated commit Triggered by commit: https://github.com/sondreb/moments/commit/d6d8da9e1c421bb8e2e464ea0b8836a98c993d9e --- 404.html | 2 +- index.html | 2 +- main-2AJKMG4J.js | 8 ++++++++ main-IAPDGBLK.js | 8 -------- ngsw.json | 8 ++++---- 5 files changed, 14 insertions(+), 14 deletions(-) create mode 100644 main-2AJKMG4J.js delete mode 100644 main-IAPDGBLK.js diff --git a/404.html b/404.html index eb197b5..71e3fec 100644 --- a/404.html +++ b/404.html @@ -13,5 +13,5 @@ - + diff --git a/index.html b/index.html index eb197b5..71e3fec 100644 --- a/index.html +++ b/index.html @@ -13,5 +13,5 @@ - + diff --git a/main-2AJKMG4J.js b/main-2AJKMG4J.js new file mode 100644 index 0000000..fa0963d --- /dev/null +++ b/main-2AJKMG4J.js @@ -0,0 +1,8 @@ +var $p=Object.defineProperty,Bp=Object.defineProperties;var Up=Object.getOwnPropertyDescriptors;var Su=Object.getOwnPropertySymbols;var Hp=Object.prototype.hasOwnProperty,zp=Object.prototype.propertyIsEnumerable;var _u=(e,t,n)=>t in e?$p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g=(e,t)=>{for(var n in t||={})Hp.call(t,n)&&_u(e,n,t[n]);if(Su)for(var n of Su(t))zp.call(t,n)&&_u(e,n,t[n]);return e},H=(e,t)=>Bp(e,Up(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 es=null;var Ji=1,xu=Symbol("SIGNAL");function O(e){let t=es;return es=e,t}function Tu(){return es}var ts={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 Gp(e){if(!(ss(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Ji)){if(!e.producerMustRecompute(e)&&!rs(e)){e.dirty=!1,e.lastCleanEpoch=Ji;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=Ji}}function ns(e){return e&&(e.nextProducerIndex=0),O(e)}function Nu(e,t){if(O(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(ss(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function rs(e){as(e);for(let t=0;t0}function as(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Wp(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function qp(e){return e.producerNode!==void 0}function Zp(){throw new Error}var Yp=Zp;function Au(e){Yp=e}function v(e){return typeof e=="function"}function tn(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 Yr=tn(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 At(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var W=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 Yr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Ru(i)}catch(s){t=t??[],s instanceof Yr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Yr(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Ru(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)&&At(n,t)}remove(t){let{_finalizers:n}=this;n&&At(n,t),t instanceof e&&t._removeParent(this)}};W.EMPTY=(()=>{let e=new W;return e.closed=!0,e})();var cs=W.EMPTY;function Qr(e){return e instanceof W||e&&"closed"in e&&v(e.remove)&&v(e.add)&&v(e.unsubscribe)}function Ru(e){v(e)?e():e.unsubscribe()}var Te={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var nn={setTimeout(e,t,...n){let{delegate:r}=nn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=nn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Xr(e){nn.setTimeout(()=>{let{onUnhandledError:t}=Te;if(t)t(e);else throw e})}function Xe(){}var Ou=us("C",void 0,void 0);function Pu(e){return us("E",void 0,e)}function ku(e){return us("N",e,void 0)}function us(e,t,n){return{kind:e,value:t,error:n}}var Rt=null;function rn(e){if(Te.useDeprecatedSynchronousErrorHandling){let t=!Rt;if(t&&(Rt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Rt;if(Rt=null,n)throw r}}else e()}function Fu(e){Te.useDeprecatedSynchronousErrorHandling&&Rt&&(Rt.errorThrown=!0,Rt.error=e)}var Ot=class extends W{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Qr(t)&&t.add(this)):this.destination=Kp}static create(t,n,r){return new on(t,n,r)}next(t){this.isStopped?ds(ku(t),this):this._next(t)}error(t){this.isStopped?ds(Pu(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ds(Ou,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()}}},Qp=Function.prototype.bind;function ls(e,t){return Qp.call(e,t)}var fs=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Kr(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Kr(r)}else Kr(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Kr(n)}}},on=class extends Ot{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&&ls(t.next,i),error:t.error&&ls(t.error,i),complete:t.complete&&ls(t.complete,i)}):o=t}this.destination=new fs(o)}};function Kr(e){Te.useDeprecatedSynchronousErrorHandling?Fu(e):Xr(e)}function Xp(e){throw e}function ds(e,t){let{onStoppedNotification:n}=Te;n&&nn.setTimeout(()=>n(e,t))}var Kp={closed:!0,next:Xe,error:Xp,complete:Xe};var sn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ge(e){return e}function hs(...e){return ps(e)}function ps(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=eg(n)?n:new on(n,r,o);return rn(()=>{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=Lu(r),new r((o,i)=>{let s=new on({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)}[sn](){return this}pipe(...n){return ps(n)(this)}toPromise(n){return n=Lu(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 Lu(e){var t;return(t=e??Te.Promise)!==null&&t!==void 0?t:Promise}function Jp(e){return e&&v(e.next)&&v(e.error)&&v(e.complete)}function eg(e){return e&&e instanceof Ot||Jp(e)&&Qr(e)}function gs(e){return v(e?.lift)}function N(e){return t=>{if(gs(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 ms(e,t,n,r,o)}var ms=class extends Ot{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 an(){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 ft=class extends A{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,gs(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 W;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=W.EMPTY)}return t}refCount(){return an()(this)}};var ju=tn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var q=(()=>{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 Jr(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new ju}next(n){rn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){rn(()=>{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(){rn(()=>{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?cs:(this.currentObservers=null,i.push(n),new W(()=>{this.currentObservers=null,At(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 Jr(t,n),e})(),Jr=class extends q{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:cs}};var te=class extends q{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 vs={now(){return(vs.delegate||Date).now()},delegate:void 0};var eo=class extends W{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 to=class extends eo{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,At(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var cn=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)}};cn.now=vs.now;var no=class extends cn{constructor(t,n=cn.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 ys=new no(to),Vu=ys;var ae=new A(e=>e.complete());function ro(e){return e&&v(e.schedule)}function Ds(e){return e[e.length-1]}function $u(e){return v(Ds(e))?e.pop():void 0}function je(e){return ro(Ds(e))?e.pop():void 0}function Bu(e,t){return typeof Ds(e)=="number"?e.pop():t}function Hu(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 Uu(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 Pt(e){return this instanceof Pt?(this.v=e,this):new Pt(e)}function zu(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(L,$){i.push([f,T,L,$])>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 Pt?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 Gu(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 Uu=="function"?Uu(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 un=e=>e&&typeof e.length=="number"&&typeof e!="function";function oo(e){return v(e?.then)}function io(e){return v(e[sn])}function so(e){return Symbol.asyncIterator&&v(e?.[Symbol.asyncIterator])}function ao(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 tg(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var co=tg();function uo(e){return v(e?.[co])}function lo(e){return zu(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Pt(n.read());if(o)return yield Pt(void 0);yield yield Pt(r)}}finally{n.releaseLock()}})}function fo(e){return v(e?.getReader)}function j(e){if(e instanceof A)return e;if(e!=null){if(io(e))return ng(e);if(un(e))return rg(e);if(oo(e))return og(e);if(so(e))return Wu(e);if(uo(e))return ig(e);if(fo(e))return sg(e)}throw ao(e)}function ng(e){return new A(t=>{let n=e[sn]();if(v(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function rg(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,Xr)})}function ig(e){return new A(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Wu(e){return new A(t=>{ag(e,t).catch(n=>t.error(n))})}function sg(e){return Wu(lo(e))}function ag(e,t){var n,r,o,i;return Hu(this,void 0,void 0,function*(){try{for(n=Gu(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 ho(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 po(e,t=0){return N((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function qu(e,t){return j(e).pipe(po(t),ho(t))}function Zu(e,t){return j(e).pipe(po(t),ho(t))}function Yu(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 Qu(e,t){return new A(n=>{let r;return fe(n,t,()=>{r=e[co](),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 go(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 Xu(e,t){return go(lo(e),t)}function Ku(e,t){if(e!=null){if(io(e))return qu(e,t);if(un(e))return Yu(e,t);if(oo(e))return Zu(e,t);if(so(e))return go(e,t);if(uo(e))return Qu(e,t);if(fo(e))return Xu(e,t)}throw ao(e)}function B(e,t){return t?Ku(e,t):j(e)}function D(...e){let t=je(e);return B(e,t)}function ht(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 ws(e){return!!e&&(e instanceof A||v(e.lift)&&v(e.subscribe))}var Ke=tn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Ju(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:cg}=Array;function ug(e,t){return cg(t)?e(...t):e(t)}function mo(e){return b(t=>ug(e,t))}var{isArray:lg}=Array,{getPrototypeOf:dg,prototype:fg,keys:hg}=Object;function el(e){if(e.length===1){let t=e[0];if(lg(t))return{args:t,keys:null};if(pg(t)){let n=hg(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function pg(e){return e&&typeof e=="object"&&dg(e)===fg}function tl(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function nr(...e){let t=je(e),n=$u(e),{args:r,keys:o}=el(e);if(r.length===0)return B([],t);let i=new A(gg(r,t,o?s=>tl(o,s):ge));return n?i.pipe(mo(n)):i}function gg(e,t,n=ge){return r=>{nl(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c{let u=B(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 nl(e,t,n){e?fe(n,e,t):t()}function rl(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 L=!1;j(n(T,l++)).subscribe(R(t,$=>{o?.($),i?f($):t.next($)},()=>{L=!0},void 0,()=>{if(L)try{for(u--;c.length&&um($)):m($)}h()}catch($){t.error($)}}))};return e.subscribe(R(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))(j(e(r,o))),n):(typeof t=="number"&&(n=t),N((r,o)=>rl(r,o,e,n)))}function pt(e=1/0){return z(ge,e)}function ol(){return pt(1)}function Ve(...e){return ol()(B(e,je(e)))}function kt(e){return new A(t=>{j(e()).subscribe(t)})}var mg=["addListener","removeListener"],vg=["addEventListener","removeEventListener"],yg=["on","off"];function ln(e,t,n,r){if(v(n)&&(r=n,n=void 0),r)return ln(e,t,n).pipe(mo(r));let[o,i]=Cg(e)?vg.map(s=>a=>e[s](t,a,n)):Dg(e)?mg.map(il(e,t)):wg(e)?yg.map(il(e,t)):[];if(!o&&un(e))return z(s=>ln(s,t,n))(j(e));if(!o)throw new TypeError("Invalid event target");return new A(s=>{let a=(...c)=>s.next(1i(a)})}function il(e,t){return n=>r=>e[n](t,r)}function Dg(e){return v(e.addListener)&&v(e.removeListener)}function wg(e){return v(e.on)&&v(e.off)}function Cg(e){return v(e.addEventListener)&&v(e.removeEventListener)}function sl(e=0,t,n=Vu){let r=-1;return t!=null&&(ro(t)?n=t:r=t),new A(o=>{let i=Ju(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 vo(...e){let t=je(e),n=Bu(e,1/0),r=e;return r.length?r.length===1?j(r[0]):pt(n)(B(r,t)):ae}var Ft=new A(Xe);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 gt(e){return N((t,n)=>{let r=null,o=!1,i;r=t.subscribe(R(n,void 0,void 0,s=>{i=j(e(s,gt(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function al(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 Lt(e,t){return v(t)?z(e,t,1):z(e,1)}function cl(e){return new A(t=>e.subscribe(t))}var Ig={connector:()=>new q};function yo(e,t=Ig){let{connector:n}=t;return N((r,o)=>{let i=n();j(e(cl(i))).subscribe(o),o.add(r.subscribe(i))})}function mt(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 ul(){return N((e,t)=>{e.subscribe(R(t,Xe))})}function rr(e){return b(()=>e)}function Cs(e,t){return t?n=>Ve(t.pipe(K(1),ul()),n.pipe(Cs(e))):z((n,r)=>j(e(n,r)).pipe(K(1),rr(n)))}function Is(e,t=ys){let n=sl(e,t);return Cs(()=>n)}function Do(e=Eg){return N((t,n)=>{let r=!1;t.subscribe(R(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Eg(){return new Ke}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?mt(t):Do(()=>new Ke))}function dn(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 Es(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ne((o,i)=>e(o,i,r)):ge,dn(1),n?mt(t):Do(()=>new Ke))}function ll(e,t){let n=v(e)?e:()=>e;return v(t)?yo(t,{connector:n}):r=>new ft(r,n)}function bs(e){return e?t=>yo(e)(t):t=>ll(new q)(t)}function Ms(e,t){return N(al(e,t,arguments.length>=2,!0))}function Ss(...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++;j(e(c,l)).subscribe(o=R(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function _s(e){return N((t,n)=>{j(e).subscribe(R(n,()=>n.complete(),Xe)),!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 Ql="https://g.co/ng/security#xss",w=class extends Error{constructor(t,n){super(ka(t,n)),this.code=t}};function ka(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function pr(e){return{toString:e}.toString()}var wo="__parameters__";function bg(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Xl(e,t,n){return pr(()=>{let r=bg(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(wo)?c[wo]:Object.defineProperty(c,wo,{value:[]})[wo];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 Vs=globalThis;function k(e){for(let t in e)if(e[t]===k)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 dl(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Mg=k({__forward_ref__:k});function Kl(e){return e.__forward_ref__=Kl,e.toString=function(){return ce(this())},e}function Ee(e){return Jl(e)?e():e}function Jl(e){return typeof e=="function"&&e.hasOwnProperty(Mg)&&e.__forward_ref__===Kl}function y(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function xn(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ko(e){return fl(e,td)||fl(e,nd)}function ed(e){return Ko(e)!==null}function fl(e,t){return e.hasOwnProperty(t)?e[t]:null}function Sg(e){let t=e&&(e[td]||e[nd]);return t||null}function hl(e){return e&&(e.hasOwnProperty(pl)||e.hasOwnProperty(_g))?e[pl]:null}var td=k({\u0275prov:k}),pl=k({\u0275inj:k}),nd=k({ngInjectableDef:k}),_g=k({ngInjectorDef:k}),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 rd(e){return e&&!!e.\u0275providers}var xg=k({\u0275cmp:k}),Tg=k({\u0275dir:k}),Ng=k({\u0275pipe:k}),Ag=k({\u0275mod:k}),No=k({\u0275fac:k}),sr=k({__NG_ELEMENT_ID__:k}),gl=k({__NG_ENV_ID__:k});function Jo(e){return typeof e=="string"?e:e==null?"":String(e)}function Rg(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Jo(e)}function Og(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new w(-200,e)}function Fa(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||{}),$s;function od(){return $s}function Ie(e){let t=$s;return $s=e,t}function id(e,t,n){let r=Ko(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;Fa(e,"Injector")}var Pg={},ar=Pg,Bs="__NG_DI_FLAG__",Ao="ngTempTokenPath",kg="ngTokenPath",Fg=/\n/gm,Lg="\u0275",ml="__source",mn;function jg(){return mn}function vt(e){let t=mn;return mn=e,t}function Vg(e,t=S.Default){if(mn===void 0)throw new w(-203,!1);return mn===null?id(e,void 0,t):mn.get(e,t&S.Optional?null:void 0,t)}function E(e,t=S.Default){return(od()||Vg)(Ee(e),t)}function p(e,t=S.Default){return E(e,ei(t))}function ei(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Us(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(Fg,` + `)}`}var ti=sd(Xl("Optional"),8);var La=sd(Xl("SkipSelf"),4);function yn(e,t){let n=e.hasOwnProperty(No);return n?e[No]:null}function Hg(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?ja(n,t):t(n))}function ad(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ro(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Gg(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 Wg(e,t,n){let r=gr(e,t);return r>=0?e[r|1]=n:(r=~r,Gg(e,r,t,n)),r}function xs(e,t){let n=gr(e,t);if(n>=0)return e[n|1]}function gr(e,t){return qg(e,t,1)}function qg(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 Jg(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+=yl(i,o),o=""),r=s,i=i||!Ne(r);n++}return o!==""&&(t+=yl(i,o)),t}function om(e){return e.map(rm).join(",")}function im(e){let t=[],n=[],r=1,o=2;for(;r{let t=vd(e),n=H(g({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ld.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:""});yd(n);let r=e.dependencies;return n.directiveDefs=wl(r,!1),n.pipeDefs=wl(r,!0),n.id=cm(n),n})}function sm(e){return Ct(e)||hd(e)}function am(e){return e!==null}function Tn(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 Dl(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=wt.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==wt.None?[r,a]:r,t[i]=s):n[i]=r}return n}function Nn(e){return pr(()=>{let t=vd(e);return yd(t),t})}function Ct(e){return e[xg]||null}function hd(e){return e[Tg]||null}function pd(e){return e[Ng]||null}function gd(e){let t=Ct(e)||hd(e)||pd(e);return t!==null?t.standalone:!1}function md(e,t){let n=e[Ag]||null;if(!n&&t===!0)throw new Error(`Type ${ce(e)} does not have '\u0275mod' property.`);return n}function vd(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:Dl(e.inputs,t),outputs:Dl(e.outputs),debugInfo:null}}function yd(e){e.features?.forEach(t=>t(e))}function wl(e,t){if(!e)return null;let n=t?pd:sm;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(am)}function cm(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 An(e){return{\u0275providers:e}}function um(...e){return{\u0275providers:Dd(!0,e),\u0275fromNgModule:!0}}function Dd(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return ja(t,s=>{let a=s;zs(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&wd(o,i),n}function wd(e,t){for(let n=0;n{t(i,r)})}}function zs(e,t,n,r){if(e=Ee(e),!e)return!1;let o=null,i=hl(e),s=!i&&Ct(e);if(!i&&!s){let c=e.ngModule;if(i=hl(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)zs(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{ja(i.imports,l=>{zs(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&wd(u,t)}if(!a){let u=yn(o)||(()=>new o);t({provide:o,useFactory:u,deps:Ae},o),t({provide:ud,useValue:o,multi:!0},o),t({provide:Dn,useValue:()=>E(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Ba(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Ba(e,t){for(let n of e)rd(n)&&(n=n.\u0275providers),Array.isArray(n)?Ba(n,t):t(n)}var lm=k({provide:String,useValue:k});function Cd(e){return e!==null&&typeof e=="object"&&lm in e}function dm(e){return!!(e&&e.useExisting)}function fm(e){return!!(e&&e.useFactory)}function Gs(e){return typeof e=="function"}var ni=new I(""),bo={},hm={},Ts;function Ua(){return Ts===void 0&&(Ts=new Oo),Ts}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,qs(t,s=>this.processProvider(s)),this.records.set(cd,fn(void 0,this)),o.has("environment")&&this.records.set(ve,fn(void 0,this));let i=this.records.get(ni);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ud,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=vt(this),r=Ie(void 0),o;try{return t()}finally{vt(n),Ie(r)}}get(t,n=ar,r=S.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(gl))return t[gl](this);r=ei(r);let o,i=vt(this),s=Ie(void 0);try{if(!(r&S.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=Dm(t)&&Ko(t);u&&this.injectableDefInScope(u)?c=fn(Ws(t),bo):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&S.Self?Ua():this.parent;return n=r&S.Optional&&n===ar?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Ao]=a[Ao]||[]).unshift(ce(t)),i)throw a;return Bg(a,t,"R3InjectorError",this.source)}else throw a}finally{Ie(s),vt(i)}}resolveInjectorInitializers(){let t=O(null),n=vt(this),r=Ie(void 0),o;try{let i=this.get(Dn,Ae,S.Self);for(let s of i)s()}finally{vt(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=Gs(t)?t:Ee(t&&t.provide),r=gm(t);if(!Gs(t)&&t.multi===!0){let o=this.records.get(n);o||(o=fn(void 0,bo,!0),o.factory=()=>Us(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===bo&&(n.value=hm,n.value=n.factory()),typeof n.value=="object"&&n.value&&ym(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 Ws(e){let t=Ko(e),n=t!==null?t.factory:yn(e);if(n!==null)return n;if(e instanceof I)throw new w(204,!1);if(e instanceof Function)return pm(e);throw new w(204,!1)}function pm(e){if(e.length>0)throw new w(204,!1);let n=Sg(e);return n!==null?()=>n.factory(e):()=>new e}function gm(e){if(Cd(e))return fn(void 0,e.useValue);{let t=mm(e);return fn(t,bo)}}function mm(e,t,n){let r;if(Gs(e)){let o=Ee(e);return yn(o)||Ws(o)}else if(Cd(e))r=()=>Ee(e.useValue);else if(fm(e))r=()=>e.useFactory(...Us(e.deps||[]));else if(dm(e))r=()=>E(Ee(e.useExisting));else{let o=Ee(e&&(e.useClass||e.provide));if(vm(e))r=()=>new o(...Us(e.deps));else return yn(o)||Ws(o)}return r}function fn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function vm(e){return!!e.deps}function ym(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Dm(e){return typeof e=="function"||typeof e=="object"&&e instanceof I}function qs(e,t){for(let n of e)Array.isArray(n)?qs(n,t):n&&rd(n)?qs(n.\u0275providers,t):t(n)}function qe(e,t){e instanceof ur&&e.assertNotDestroyed();let n,r=vt(e),o=Ie(void 0);try{return t()}finally{vt(r),Ie(o)}}function Id(){return od()!==void 0||jg()!=null}function wm(e){if(!Id())throw new w(-203,!1)}function Cm(e){return typeof e=="function"}var rt=0,_=1,C=2,se=3,Re=4,Pe=5,Po=6,ko=7,Oe=8,wn=9,ze=10,oe=11,lr=12,Cl=13,Rn=14,Ge=15,Vt=16,hn=17,Je=18,ri=19,Ed=20,yt=21,Ns=22,be=23,et=25,bd=1;var $t=7,Fo=8,Cn=9,me=10,Lo=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Lo||{});function Dt(e){return Array.isArray(e)&&typeof e[bd]=="object"}function ot(e){return Array.isArray(e)&&e[bd]===!0}function Md(e){return(e.flags&4)!==0}function oi(e){return e.componentOffset>-1}function Ha(e){return(e.flags&1)===1}function mr(e){return!!e.template}function Zs(e){return(e[C]&512)!==0}var Ys=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Sd(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function vr(){return _d}function _d(e){return e.type.prototype.ngOnChanges&&(e.setInput=Em),Im}vr.ngInherit=!0;function Im(){let e=Td(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 Em(e,t,n,r,o){let i=this.declaredInputs[r],s=Td(e)||bm(e,{previous:cr,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Ys(u&&u.currentValue,n,c===cr),Sd(e,t,o,n)}var xd="__ngSimpleChanges__";function Td(e){return e[xd]||null}function bm(e,t){return e[xd]=t}var Il=null;var Be=function(e,t,n){Il?.(e,t,n)},Mm="svg",Sm="math";function We(e){for(;Array.isArray(e);)e=e[rt];return e}function Nd(e,t){return We(t[e])}function Se(e,t){return We(t[e.index])}function Ad(e,t){return e.data[t]}function _m(e,t){return e[t]}function bt(e,t){let n=t[e];return Dt(n)?n:n[rt]}function xm(e){return(e[C]&4)===4}function za(e){return(e[C]&128)===128}function Tm(e){return ot(e[se])}function jo(e,t){return t==null?null:e[t]}function Rd(e){e[hn]=0}function Od(e){e[C]&1024||(e[C]|=1024,za(e)&&si(e))}function Nm(e,t){for(;e>0;)t=t[Rn],e--;return t}function ii(e){return!!(e[C]&9216||e[be]?.dirty)}function Qs(e){e[ze].changeDetectionScheduler?.notify(8),e[C]&64&&(e[C]|=1024),ii(e)&&si(e)}function si(e){e[ze].changeDetectionScheduler?.notify(0);let t=Bt(e);for(;t!==null&&!(t[C]&8192||(t[C]|=8192,!za(t)));)t=Bt(t)}function Pd(e,t){if((e[C]&256)===256)throw new w(911,!1);e[yt]===null&&(e[yt]=[]),e[yt].push(t)}function Am(e,t){if(e[yt]===null)return;let n=e[yt].indexOf(t);n!==-1&&e[yt].splice(n,1)}function Bt(e){let t=e[se];return ot(t)?t[se]:t}var x={lFrame:Hd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var kd=!1;function Rm(){return x.lFrame.elementDepthCount}function Om(){x.lFrame.elementDepthCount++}function Pm(){x.lFrame.elementDepthCount--}function Fd(){return x.bindingsEnabled}function km(){return x.skipHydrationRootTNode!==null}function Fm(e){return x.skipHydrationRootTNode===e}function Lm(){x.skipHydrationRootTNode=null}function V(){return x.lFrame.lView}function ke(){return x.lFrame.tView}function Y(e){return x.lFrame.contextLView=e,e[Oe]}function Q(e){return x.lFrame.contextLView=null,e}function ye(){let e=Ld();for(;e!==null&&e.type===64;)e=e.parent;return e}function Ld(){return x.lFrame.currentTNode}function jm(){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 jd(){return x.lFrame.isParent}function Vm(){x.lFrame.isParent=!1}function $m(){return x.lFrame.contextLView}function Vd(){return kd}function El(e){kd=e}function Bm(){let e=x.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Um(e){return x.lFrame.bindingIndex=e}function Ga(){return x.lFrame.bindingIndex++}function Hm(e){let t=x.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function zm(){return x.lFrame.inI18n}function Gm(e,t){let n=x.lFrame;n.bindingIndex=n.bindingRootIndex=e,Xs(t)}function Wm(){return x.lFrame.currentDirectiveIndex}function Xs(e){x.lFrame.currentDirectiveIndex=e}function qm(e){let t=x.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function $d(){return x.lFrame.currentQueryIndex}function Wa(e){x.lFrame.currentQueryIndex=e}function Zm(e){let t=e[_];return t.type===2?t.declTNode:t.type===1?e[Pe]:null}function Bd(e,t,n){if(n&S.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&S.Host);)if(o=Zm(i),o===null||(i=i[Rn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=x.lFrame=Ud();return r.currentTNode=t,r.lView=e,!0}function qa(e){let t=Ud(),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 Ud(){let e=x.lFrame,t=e===null?null:e.child;return t===null?Hd(e):t}function Hd(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=x.lFrame;return x.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Gd=zd;function Za(){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 Ym(e){return(x.lFrame.contextLView=Nm(e,x.lFrame.contextLView))[Oe]}function On(){return x.lFrame.selectedIndex}function Ut(e){x.lFrame.selectedIndex=e}function Wd(){let e=x.lFrame;return Ad(e.tView,e.selectedIndex)}function Qm(){return x.lFrame.currentNamespace}var qd=!0;function Ya(){return qd}function Qa(e){qd=e}function Xm(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=_d(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 Xa(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[hn]+=65536),(a>14>16&&(e[C]&3)===t&&(e[C]+=16384,bl(a,i)):bl(a,i)}var vn=-1,dr=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Jm(e){return e instanceof dr}function ev(e){return(e.flags&8)!==0}function tv(e){return(e.flags&16)!==0}var Rs={},Ks=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=ei(r);let o=this.injector.get(t,Rs,r);return o!==Rs||n===Rs?o:this.parentInjector.get(t,n,r)}};function Yd(e){return e!==vn}function Vo(e){return e&32767}function nv(e){return e>>16}function $o(e,t){let n=nv(e),r=t;for(;n>0;)r=r[Rn],n--;return r}var Js=!0;function Ml(e){let t=Js;return Js=e,t}var rv=256,Qd=rv-1,Xd=5,ov=0,Ue={};function iv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(sr)&&(r=n[sr]),r==null&&(r=n[sr]=ov++);let o=r&Qd,i=1<>Xd)]|=i}function Kd(e,t){let n=Jd(e,t);if(n!==-1)return n;let r=t[_];r.firstCreatePass&&(e.injectorIndex=t.length,Os(r.data,e),Os(t,null),Os(r.blueprint,null));let o=Ka(e,t),i=e.injectorIndex;if(Yd(o)){let s=Vo(o),a=$o(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 Os(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Jd(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Ka(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=of(o),r===null)return vn;if(n++,o=o[Rn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return vn}function sv(e,t,n){iv(e,t,n)}function av(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 In(e,t,n,r){let o=e[n],i=t.data;if(Jm(o)){let s=o;s.resolving&&Og(Rg(i[n]));let a=Ml(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?Ie(s.injectImpl):null,l=Bd(e,r,S.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&Xm(n,i[n],t)}finally{u!==null&&Ie(u),Ml(a),s.resolving=!1,Gd()}}return o}function uv(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&Qd:lv:t}function Sl(e,t,n){let r=1<>Xd)]&r)}function _l(e,t){return!(e&S.Self)&&!(e&S.Host&&t)}var jt=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return nf(this._tNode,this._lView,t,ei(r),n)}};function lv(){return new jt(ye(),V())}function Ja(e){return pr(()=>{let t=e.prototype.constructor,n=t[No]||ea(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[No]||ea(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function ea(e){return Jl(e)?()=>{let t=ea(Ee(e));return t&&t()}:yn(e)}function dv(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[C]&2048&&!(s[C]&512);){let a=rf(i,s,n,r|S.Self,Ue);if(a!==Ue)return a;let c=i.parent;if(!c){let u=s[Ed];if(u){let l=u.get(n,Ue,r);if(l!==Ue)return l}c=of(s),s=s[Rn]}i=c}return o}function of(e){let t=e[_],n=t.type;return n===2?t.declTNode:n===1?e[Pe]:null}function ec(e){return av(ye(),e)}function xl(e,t=null,n=null,r){let o=sf(e,t,n,r);return o.resolveInjectorInitializers(),o}function sf(e,t=null,n=null,r,o=new Set){let i=[n||Ae,um(e)];return r=r||(typeof e=="object"?void 0:ce(e)),new ur(i,t||Ua(),r||null,o)}var Me=class e{static{this.THROW_IF_NOT_FOUND=ar}static{this.NULL=new Oo}static create(t,n){if(Array.isArray(t))return xl({name:""},n,t,"");{let r=t.name??"";return xl({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=y({token:e,providedIn:"any",factory:()=>E(cd)})}static{this.__NG_ELEMENT_ID__=-1}};var fv=new I("");fv.__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 hv="ngOriginalError";function Ps(e){return e[hv]}var af=!0,tc=(()=>{class e{static{this.__NG_ELEMENT_ID__=pv}static{this.__NG_ENV_ID__=n=>n}}return e})(),ta=class extends tc{constructor(t){super(),this._lView=t}onDestroy(t){return Pd(this._lView,t),()=>Am(this._lView,t)}};function pv(){return new ta(V())}var Pn=(()=>{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 na=class extends q{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,Id()&&(this.destroyRef=p(tc,{optional:!0})??void 0,this.pendingTasks=p(Pn,{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 W&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},ie=na;function Bo(...e){}function cf(e){let t,n;function r(){e=Bo;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 Tl(e){return queueMicrotask(()=>e()),()=>{e=Bo}}var nc="isAngularZone",Uo=nc+"_ID",gv=0,G=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=af}=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,yv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(nc)===!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,mv,Bo,Bo);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)}},mv={};function rc(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 vv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){cf(()=>{e.callbackScheduled=!1,ra(e),e.isCheckStableRunning=!0,rc(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),ra(e)}function yv(e){let t=()=>{vv(e)},n=gv++;e._inner=e._inner.fork({name:"angular",properties:{[nc]:!0,[Uo]:n,[Uo+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Dv(c))return r.invokeTask(i,s,a,c);try{return Nl(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Al(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Nl(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!wv(c)&&t(),Al(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,ra(e),rc(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 ra(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Nl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Al(e){e._nesting--,rc(e)}var oa=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 Dv(e){return uf(e,"__ignore_ng_zone__")}function wv(e){return uf(e,"__scheduler_tick__")}function uf(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var tt=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&&Ps(t);for(;n&&Ps(n);)n=Ps(n);return n||null}},Cv=new I("",{providedIn:"root",factory:()=>{let e=p(G),t=p(tt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Iv(){return kn(ye(),V())}function kn(e,t){return new Mt(Se(e,t))}var Mt=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=Iv}}return e})();function Ev(e){return e instanceof Mt?e.nativeElement:e}function bv(){return this._results[Symbol.iterator]()}var ia=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]=bv)}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=!Hg(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 lf(e){return(e.flags&128)===128}var df=new Map,Mv=0;function Sv(){return Mv++}function _v(e){df.set(e[ri],e)}function sa(e){df.delete(e[ri])}var Rl="__ngContext__";function Ht(e,t){Dt(t)?(e[Rl]=t[ri],_v(t)):e[Rl]=t}function ff(e){return pf(e[lr])}function hf(e){return pf(e[Re])}function pf(e){for(;e!==null&&!ot(e);)e=e[Re];return e}var aa;function gf(e){aa=e}function xv(){if(aa!==void 0)return aa;if(typeof document<"u")return document;throw new w(210,!1)}var oc=new I("",{providedIn:"root",factory:()=>Tv}),Tv="ng",ic=new I(""),Fe=new I("",{providedIn:"platform",factory:()=>"unknown"});var sc=new I("",{providedIn:"root",factory:()=>xv().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Nv="h",Av="b";var Rv=()=>null;function ac(e,t,n=!1){return Rv(e,t,n)}var mf=!1,Ov=new I("",{providedIn:"root",factory:()=>mf});var Co;function Pv(){if(Co===void 0&&(Co=null,Vs.trustedTypes))try{Co=Vs.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Co}function Ol(e){return Pv()?.createScriptURL(e)||e}var Ho=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ql})`}};function Dr(e){return e instanceof Ho?e.changingThisBreaksApplicationSecurity:e}function cc(e,t){let n=kv(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Ql})`)}return n===t}function kv(e){return e instanceof Ho&&e.getTypeName()||null}var Fv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function vf(e){return e=String(e),e.match(Fv)?e:"unsafe:"+e}var ai=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}(ai||{});function Lv(e){let t=Df();return t?t.sanitize(ai.URL,e)||"":cc(e,"URL")?Dr(e):vf(Jo(e))}function jv(e){let t=Df();if(t)return Ol(t.sanitize(ai.RESOURCE_URL,e)||"");if(cc(e,"ResourceURL"))return Ol(Dr(e));throw new w(904,!1)}function Vv(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?jv:Lv}function yf(e,t,n){return Vv(t,n)(e)}function Df(){let e=V();return e&&e[ze].sanitizer}function wf(e){return e instanceof Function?e():e}function $v(e){return(e??p(Me)).get(Fe)==="browser"}var nt=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(nt||{}),Bv;function uc(e,t){return Bv(e,t)}function pn(e,t,n,r,o){if(r!=null){let i,s=!1;ot(r)?i=r:Dt(r)&&(s=!0,r=r[rt]);let a=We(r);e===0&&n!==null?o==null?Mf(t,n,a):zo(t,n,a,o||null,!0):e===1&&n!==null?zo(t,n,a,o||null,!0):e===2?ny(t,a,s):e===3&&t.destroyNode(a),i!=null&&oy(t,e,i,n,o)}}function Uv(e,t){return e.createText(t)}function Hv(e,t,n){e.setValue(t,n)}function Cf(e,t,n){return e.createElement(t,n)}function zv(e,t){If(e,t),t[rt]=null,t[Pe]=null}function Gv(e,t,n,r,o,i){r[rt]=o,r[Pe]=t,ci(e,r,n,1,o,i)}function If(e,t){t[ze].changeDetectionScheduler?.notify(9),ci(e,t,t[oe],2,null,null)}function Wv(e){let t=e[lr];if(!t)return ks(e[_],e);for(;t;){let n=null;if(Dt(t))n=t[lr];else{let r=t[me];r&&(n=r)}if(!n){for(;t&&!t[Re]&&t!==e;)Dt(t)&&ks(t[_],t),t=t[se];t===null&&(t=e),Dt(t)&&ks(t[_],t),n=t&&t[Re]}t=n}}function qv(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=Ro(e,me+t);zv(r[_],r);let s=i[Je];s!==null&&s.detachView(i[_]),r[se]=null,r[Re]=null,r[C]&=-129}return r}function bf(e,t){if(!(t[C]&256)){let n=t[oe];n.destroyNode&&ci(e,t,n,3,null,null),Wv(t)}}function ks(e,t){if(t[C]&256)return;let n=O(null);try{t[C]&=-129,t[C]|=256,t[be]&&os(t[be]),Yv(e,t),Zv(e,t),t[_].type===1&&t[oe].destroy();let r=t[Vt];if(r!==null&&ot(t[se])){r!==t[se]&&lc(r,t);let o=t[Je];o!==null&&o.detachView(e)}sa(t)}finally{O(n)}}function Zv(e,t){let n=e.cleanup,r=t[ko];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[ko]=null);let o=t[yt];if(o!==null){t[yt]=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 zo(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Mf(e,t,n){e.appendChild(t,n)}function Pl(e,t,n,r,o){r!==null?zo(e,t,n,r,o):Mf(e,t,n)}function Sf(e,t){return e.parentNode(t)}function Kv(e,t){return e.nextSibling(t)}function Jv(e,t,n){return ty(e,t,n)}function ey(e,t,n){return e.type&40?Se(e,n):null}var ty=ey,kl;function dc(e,t,n,r){let o=Qv(e,r,t),i=t[oe],s=r.parent||t[Pe],a=Jv(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;cet&&Nf(e,t,et,!1),Be(s?2:0,o),n(r,o)}finally{Ut(i),Be(s?3:1,o)}}function kf(e,t,n){if(Md(t)){let r=O(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function hy(e,t,n,r){let o=zf(t);o.push(n),e.firstCreatePass&&Gf(e).push(r,o.length-1)}function py(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return km()&&(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 Fl(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=wt.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?Ll(r,n,u,a,c):Ll(r,n,u,a)}return r}function Ll(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 gy(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 Cy(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;oi(n)&&xy(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Kd(n,t),Ht(r,t);let s=n.initialInputs;for(let a=o;a{si(e.lView)},consumerOnSignalRead(){this.lView[be]=this}});function zy(e){let t=e[be]??Object.create(Gy);return t.lView=e,t}var Gy=H(g({},ts),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Bt(e.lView);for(;t&&!Zf(t[_]);)t=Bt(t);t&&Od(t)},consumerOnSignalRead(){this.lView[be]=this}});function Zf(e){return e.type!==2}var Wy=100;function Yf(e,t=!0,n=0){let r=e[ze],o=r.rendererFactory,i=!1;i||o.begin?.();try{qy(e,n)}catch(s){throw t&&Wf(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function qy(e,t){let n=Vd();try{El(!0),fa(e,t);let r=0;for(;ii(e);){if(r===Wy)throw new w(103,!1);r++,fa(e,1)}}finally{El(n)}}function Zy(e,t,n,r){let o=t[C];if((o&256)===256)return;let i=!1,s=!1;!i&&t[ze].inlineEffectRunner?.flush(),qa(t);let a=!0,c=null,u=null;i||(Zf(e)?(u=$y(t),c=ns(u)):Tu()===null?(a=!1,u=zy(t),c=ns(u)):t[be]&&(os(t[be]),t[be]=null));try{Rd(t),Um(e.bindingStartIndex),n!==null&&Pf(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Mo(t,f,null)}else{let f=e.preOrderHooks;f!==null&&So(t,f,0,null),As(t,0)}if(s||Yy(t),Qf(t,0),e.contentQueries!==null&&Hf(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Mo(t,f)}else{let f=e.contentHooks;f!==null&&So(t,f,1),As(t,1)}ay(e,t);let d=e.components;d!==null&&Kf(t,d,0);let h=e.viewQuery;if(h!==null&&da(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Mo(t,f)}else{let f=e.viewHooks;f!==null&&So(t,f,2),As(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ns]){for(let f of t[Ns])f();t[Ns]=null}i||(t[C]&=-73)}catch(l){throw i||si(t),l}finally{u!==null&&(Nu(u,c),a&&Uy(u)),Za()}}function Qf(e,t){for(let n=ff(e);n!==null;n=hf(n))for(let r=me;r-1&&(ca(t,r),Ro(n,r))}this._attachedToViewContainer=!1}bf(this._lView[_],this._lView)}onDestroy(t){Pd(this._lView,t)}markForCheck(){mc(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[C]&=-129}reattach(){Qs(this._lView),this._lView[C]|=128}detectChanges(){this._lView[C]|=1024,Yf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Zs(this._lView),n=this._lView[Vt];n!==null&&!t&&lc(n,this._lView),If(this._lView[_],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=t;let n=Zs(this._lView),r=this._lView[Vt];r!==null&&!n&&Ef(r,this._lView),Qs(this._lView)}},Gt=(()=>{class e{static{this.__NG_ELEMENT_ID__=Jy}}return e})(),Xy=Gt,Ky=class extends Xy{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=Ly(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new zt(o)}};function Jy(){return vc(ye(),V())}function vc(e,t){return e.type&4?new Ky(t,e,kn(e,t)):null}var mT=new RegExp(`^(\\d+)*(${Av}|${Nv})*(.*)`);var eD=()=>null;function Vl(e,t){return eD(e,t)}var En=class{},fi=new I("",{providedIn:"root",factory:()=>!1});var Jf=new I(""),eh=new I(""),ha=class{},Wo=class{};function tD(e){let t=Error(`No component factory found for ${ce(e)}.`);return t[nD]=e,t}var nD="ngComponent";var pa=class{resolveComponentFactory(t){throw tD(t)}},bn=class{static{this.NULL=new pa}},Mn=class{},hi=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>rD()}}return e})();function rD(){let e=V(),t=ye(),n=bt(t.index,e);return(Dt(n)?n:e)[oe]}var oD=(()=>{class e{static{this.\u0275prov=y({token:e,providedIn:"root",factory:()=>null})}}return e})();function ga(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&xf(e,n,i.join(" "))}}function dD(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static{this.__NG_ELEMENT_ID__=hD}}return e})();function hD(){let e=ye();return nh(e,V())}var pD=St,th=class extends pD{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return kn(this._hostTNode,this._hostLView)}get injector(){return new jt(this._hostTNode,this._hostLView)}get parentInjector(){let t=Ka(this._hostTNode,this._hostLView);if(Yd(t)){let n=$o(t,this._hostLView),r=Vo(t),o=n[_].data[r+8];return new jt(o,n)}else return new jt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Bl(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=Vl(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,jl(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!Cm(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 Sn(Ct(t)),u=r||this.parentInjector;if(!i&&c.ngModule==null){let T=(s?u:this.parentInjector).get(ve,null);T&&(i=T)}let l=Ct(c.componentType??{}),d=Vl(this._lContainer,l?.id??null),h=d?.firstChild??null,f=c.create(u,o,h,i);return this.insertImpl(f.hostView,a,jl(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Tm(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[se],u=new th(c,c[Pe],c[se]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return jy(s,o,i,r),t.attachToViewContainerRef(),ad(Fs(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Bl(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=ca(this._lContainer,n);r&&(Ro(Fs(this._lContainer),n),bf(r[_],r))}detach(t){let n=this._adjustIndex(t,-1),r=ca(this._lContainer,n);return r&&Ro(Fs(this._lContainer),n)!=null?new zt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Bl(e){return e[Fo]}function Fs(e){return e[Fo]||(e[Fo]=[])}function nh(e,t){let n,r=t[e.index];return ot(r)?n=r:(n=Uf(r,t,null,e),t[e.index]=n,di(t,n)),mD(n,t,e,r),new th(n,e,t)}function gD(e,t){let n=e[oe],r=n.createComment(""),o=Se(t,e),i=Sf(n,o);return zo(n,i,r,Kv(n,o),!1),r}var mD=DD,vD=()=>!1;function yD(e,t,n){return vD(e,t,n)}function DD(e,t,n,r){if(e[$t])return;let o;n.type&8?o=We(r):o=gD(t,n),e[$t]=o}var va=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},ya=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 xD(e,t,n){e.queries===null&&(e.queries=new wa),e.queries.track(new Ca(t,n))}function yc(e,t){return e.queries.getByIndex(t)}function TD(e,t){let n=e[_],r=yc(n,t);return r.crossesNgTemplate?Ia(n,e,t,[]):rh(n,e,r,t)}var Ul=new Set;function pi(e){Ul.has(e)||(Ul.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Dc(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 It=class{},fr=class{};var Ea=class extends It{constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new qo(this);let i=md(t);this._bootstrapComponents=wf(i.bootstrap),this._r3Injector=sf(t,n,[{provide:It,useValue:this},{provide:bn,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)}},ba=class extends fr{constructor(t){super(),this.moduleType=t}create(t){return new Ea(this.moduleType,t,[])}};var Zo=class extends It{constructor(t){super(),this.componentFactoryResolver=new qo(this),this.instance=null;let n=new ur([...t.providers,{provide:It,useValue:this},{provide:bn,useValue:this.componentFactoryResolver}],t.parent||Ua(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function gi(e,t,n=null){return new Zo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function oh(e){return AD(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function ND(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})(),Ma=class e{constructor(){this.ngZone=p(G),this.scheduler=p(En),this.errorHandler=p(tt,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[gn.EarlyRead,gn.Write,gn.MixedReadWrite,gn.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})}},Sa=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 wc(e,t){!t?.injector&&wm(wc);let n=t?.injector??p(Me);return $v(n)?(pi("NgAfterNextRender"),$D(e,n,t,!0)):BD}function VD(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 $D(e,t,n,r){let o=t.get(ih);o.impl??=t.get(Ma);let i=n?.phase??gn.MixedReadWrite,s=n?.manualCleanup!==!0?t.get(tc):null,a=new Sa(o.impl,VD(e,i),r,s);return o.impl.register(a),a}var BD={destroy(){}};function Cc(e,t,n,r){let o=V(),i=Ga();if(mi(o,i,t)){let s=ke(),a=Wd();Ty(a,o,e,t,n,r)}return Cc}function UD(e,t,n,r){return mi(e,Ga(),n)?t+Jo(n)+r:qt}function Io(e,t){return e<<17|t<<2}function Wt(e){return e>>17&32767}function HD(e){return(e&2)==2}function zD(e,t){return e&131071|t<<17}function _a(e){return e|2}function _n(e){return(e&131068)>>2}function Ls(e,t){return e&-131069|t<<2}function GD(e){return(e&1)===1}function xa(e){return e|1}function WD(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Wt(s),c=_n(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=Wt(e[a+1]);e[r+1]=Io(h,a),h!==0&&(e[h+1]=Ls(e[h+1],r)),e[a+1]=zD(e[a+1],r)}else e[r+1]=Io(a,0),a!==0&&(e[a+1]=Ls(e[a+1],r)),a=r;else e[r+1]=Io(c,0),a===0?a=r:e[c+1]=Ls(e[c+1],r),c=r;u&&(e[r+1]=_a(e[r+1])),Hl(e,l,r,!0),Hl(e,l,r,!1),qD(t,l,e,r,i),s=Io(a,c),i?t.classBindings=s:t.styleBindings=s}function qD(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&gr(i,t)>=0&&(n[r+1]=xa(n[r+1]))}function Hl(e,t,n,r){let o=e[n+1],i=t===null,s=r?Wt(o):_n(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];ZD(c,t)&&(a=!0,e[s+1]=r?xa(u):_a(u)),s=r?Wt(u):_n(u)}a&&(e[n+1]=r?_a(o):xa(o))}function ZD(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 it(e,t,n){let r=V(),o=Ga();if(mi(r,o,t)){let i=ke(),s=Wd();vy(i,s,r,e,t,r[oe],n,!1)}return it}function zl(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";pc(e,n,i[s],s,r)}function vi(e,t,n){return YD(e,t,n,!1),vi}function YD(e,t,n,r){let o=V(),i=ke(),s=Hm(2);if(i.firstUpdatePass&&XD(i,e,s,r),t!==qt&&mi(o,s,t)){let a=i.data[On()];nw(i,a,o,o[oe],e,o[s+1]=rw(t,n),r,s)}}function QD(e,t){return t>=e.expandoStartIndex}function XD(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[On()],s=QD(e,n);ow(i,r)&&t===null&&!s&&(t=!1),t=KD(o,i,t,r),WD(o,i,t,n,s,r)}}function KD(e,t,n,r){let o=qm(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=js(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=js(o,e,t,n,r),i===null){let c=JD(e,t,r);c!==void 0&&Array.isArray(c)&&(c=js(null,e,t,c[1],r),c=hr(c,t.attrs,r),ew(e,t,r,c))}else i=tw(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function JD(e,t,n){let r=n?t.classBindings:t.styleBindings;if(_n(r)!==0)return e[Wt(r)]}function ew(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Wt(o)]=r}function tw(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===qt&&(h=d?Ae:void 0);let f=d?xs(h,r):l===r?h:void 0;if(u&&!Yo(f)&&(f=xs(c,r)),Yo(f)&&(a=f,s))return a;let m=e[o+1];o=s?Wt(m):_n(m)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=xs(c,r))}return a}function Yo(e){return e!==void 0}function rw(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ce(Dr(e)))),e}function ow(e,t){return(e.flags&(t?8:16))!==0}function iw(e,t,n,r,o,i){let s=t.consts,a=jo(s,o),c=li(t,e,2,r,a);return Vf(t,n,c,jo(s,i)),c.attrs!==null&&ga(c,c.attrs,!1),c.mergedAttrs!==null&&ga(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function F(e,t,n,r){let o=V(),i=ke(),s=et+e,a=o[oe],c=i.firstCreatePass?iw(s,i,o,t,n,r):i.data[s],u=sw(i,o,c,a,t,e);o[s]=u;let l=Ha(c);return yr(c,!0),Tf(a,u,c),!PD(c)&&Ya()&&dc(i,o,u,c),Rm()===0&&Ht(u,o),Om(),l&&(Ff(i,o,c),kf(i,c,o)),r!==null&&Lf(o,c),F}function U(){let e=ye();jd()?Vm():(e=e.parent,yr(e,!1));let t=e;Fm(t)&&Lm(),Pm();let n=ke();return n.firstCreatePass&&(Xa(n,e),Md(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&ev(t)&&zl(n,t,V(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&tv(t)&&zl(n,t,V(),t.stylesWithoutHost,!1),U}function st(e,t,n,r){return F(e,t,n,r),U(),st}var sw=(e,t,n,r,o,i)=>(Qa(!0),Cf(r,o,Qm()));function jn(){return V()}var Qo="en-US";var aw=Qo;function cw(e){typeof e=="string"&&(aw=e.toLowerCase().replace(/_/g,"-"))}var uw=(e,t,n)=>{};function Z(e,t,n,r){let o=V(),i=ke(),s=ye();return dw(i,o,o[oe],s,e,t,r),Z}function lw(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 dw(e,t,n,r,o,i,s){let a=Ha(r),u=e.firstCreatePass&&Gf(e),l=t[Oe],d=zf(t),h=!0;if(r.type&3||s){let T=Se(r,t),L=s?s(T):T,$=d.length,le=s?xe=>s(We(xe[r.index])):r.index,de=null;if(!s&&a&&(de=lw(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),uw(T,o,i);let xe=n.listen(L,o,i);d.push(i,xe),u&&u.push(o,le,$,$+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 L=0;L-1?bt(e.index,t):t;mc(s,5);let a=Wl(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=Wl(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function ue(e=1){return Ym(e)}function Ic(e,t,n){SD(e,t,n)}function yi(e){let t=V(),n=ke(),r=$d();Wa(r+1);let o=yc(n,r);if(e.dirty&&xm(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=TD(t,r);e.reset(i,Ev),e.notifyOnChanges()}return!0}return!1}function Di(){return bD(V(),$d())}function sh(e){let t=$m();return _m(t,et+e)}function X(e,t=""){let n=V(),r=ke(),o=e+et,i=r.firstCreatePass?li(r,o,1,t,null):r.data[o],s=fw(r,n,i,t,e);n[o]=s,Ya()&&dc(r,n,s,i),yr(i,!1)}var fw=(e,t,n,r,o)=>(Qa(!0),Uv(t[oe],r));function Ec(e,t,n){let r=V(),o=UD(r,e,t,n);return o!==qt&&Oy(r,On(),o),Ec}var hw=(()=>{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=Dd(!1,n.type),o=r.length>0?gi([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 _t(e){pi("NgStandalone"),e.getStandaloneInjector=t=>t.get(hw).getOrCreateStandaloneInjector(e)}function ah(e,t,n){let r=Bm()+e,o=V();return o[r]===qt?RD(o,r,n?t.call(n):t()):OD(o,r)}var wi=(()=>{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 ch=new I("");function wr(e){return!!e&&typeof e.then=="function"}function uh(e){return!!e&&typeof e.subscribe=="function"}var Vn=new I(""),lh=(()=>{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(wr(i))n.push(i);else if(uh(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})(),Ci=new I("");function pw(){Au(()=>{throw new w(600,!1)})}function gw(e){return e.isBoundToModule}var mw=10;function vw(e,t,n){try{let r=n();return wr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Ze=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(Cv),this.afterRenderManager=p(ih),this.zonelessEnabled=p(fi),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new q,this.afterTick=new q,this.componentTypes=[],this.components=[],this.isStable=p(Pn).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 Wo;if(!this._injector.get(lh).done){let h=!o&&gd(n),f=!1;throw new w(405,f)}let s;o?s=n:s=this._injector.get(bn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=gw(s)?void 0:this._injector.get(It),c=r||s.selector,u=s.create(Me.NULL,[],c,a),l=u.location.nativeElement,d=u.injector.get(ch,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),xo(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(Mn,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++ii(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;xo(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Ci,[]);[...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),()=>xo(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 xo(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function yw(e,t,n,r){if(!n&&!ii(e))return;Yf(e,t,n&&!r?0:1)}var Ta=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Ii=(()=>{class e{compileModuleSync(n){return new ba(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=md(n),i=wf(o.declarations).reduce((s,a)=>{let c=Ct(a);return c&&s.push(new Sn(c)),s},[]);return new Ta(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 Dw=(()=>{class e{constructor(){this.zone=p(G),this.changeDetectionScheduler=p(En),this.applicationRef=p(Ze)}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})(),ww=new I("",{factory:()=>!1});function dh({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new G(H(g({},hh()),{scheduleInRootZone:n})),[{provide:G,useFactory:e},{provide:Dn,multi:!0,useFactory:()=>{let r=p(Dw,{optional:!0});return()=>r.initialize()}},{provide:Dn,multi:!0,useFactory:()=>{let r=p(Cw);return()=>{r.initialize()}}},t===!0?{provide:Jf,useValue:!0}:[],{provide:eh,useValue:n??af}]}function fh(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=dh({ngZoneFactory:()=>{let o=hh(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&pi("NgZone_CoalesceEvent"),new G(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return An([{provide:ww,useValue:!0},{provide:fi,useValue:!1},r])}function hh(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Cw=(()=>{class e{constructor(){this.subscription=new W,this.initialized=!1,this.zone=p(G),this.pendingTasks=p(Pn)}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(()=>{G.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{G.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 Iw=(()=>{class e{constructor(){this.appRef=p(Ze),this.taskService=p(Pn),this.ngZone=p(G),this.zonelessEnabled=p(fi),this.disableScheduling=p(Jf,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new W,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Uo):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(eh,{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 oa||!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?Tl:cf;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(Uo+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,Tl(()=>{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 Ew(){return typeof $localize<"u"&&$localize.locale||Qo}var bc=new I("",{providedIn:"root",factory:()=>p(bc,S.Optional|S.SkipSelf)||Ew()});var Na=new I("");function Eo(e){return!e.moduleRef}function bw(e){let t=Eo(e)?e.r3Injector:e.moduleRef.injector,n=t.get(G);return n.run(()=>{Eo(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(tt,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Eo(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Na);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Na);s.add(i),e.moduleRef.onDestroy(()=>{xo(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return vw(r,n,()=>{let i=t.get(lh);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(bc,Qo);if(cw(s||Qo),Eo(e)){let a=t.get(Ze);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return Mw(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function Mw(e,t){let n=e.injector.get(Ze);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 To=null;function Sw(e=[],t){return Me.create({name:t,providers:[{provide:ni,useValue:"platform"},{provide:Na,useValue:new Set([()=>To=null])},...e]})}function _w(e=[]){if(To)return To;let t=Sw(e);return To=t,pw(),xw(t),t}function xw(e){e.get(ic,null)?.forEach(n=>n())}function ph(){return!1}var Cr=(()=>{class e{static{this.__NG_ELEMENT_ID__=Tw}}return e})();function Tw(e){return Nw(ye(),V(),(e&16)===16)}function Nw(e,t,n){if(oi(e)&&!n){let r=bt(e.index,t);return new zt(r,r)}else if(e.type&175){let r=t[Ge];return new zt(r,t)}return null}var Aa=class{constructor(){}supports(t){return oh(t)}create(t){return new Ra(t)}},Aw=(e,t)=>t,Ra=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||Aw}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 Oa(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 Xo),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 Xo),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}},Oa=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}},Pa=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}},Xo=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Pa,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 Zl(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:Yl})}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||Yl()),deps:[[e,new La,new ti]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new w(901,!1)}}return e})();function gh(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=_w(r),i=[dh({}),{provide:En,useExisting:Iw},...n||[]],s=new Zo({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return bw({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function Ir(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function mh(e){let t=Ct(e);if(!t)return null;let n=new Sn(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 Ih=null;function $n(){return Ih}function Eh(e){Ih??=e}var Ei=class{};var he=new I(""),Nc=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(Rw),providedIn:"platform"})}}return e})(),bh=new I(""),Rw=(()=>{class e extends Nc{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 Ac(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 vh(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 at(e){return e&&e[0]!=="?"?"?"+e:e}var ct=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(Rc),providedIn:"root"})}}return e})(),Mh=new I(""),Rc=(()=>{class e extends ct{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 Ac(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+at(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+at(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+at(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(Nc),E(Mh,8))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Sh=(()=>{class e extends ct{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=Ac(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+at(i));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+at(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(Nc),E(Mh,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=kw(vh(yh(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+at(r))}normalize(n){return e.stripTrailingSlash(Pw(this._basePath,yh(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+at(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+at(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=at}static{this.joinWithSlash=Ac}static{this.stripTrailingSlash=vh}static{this.\u0275fac=function(r){return new(r||e)(E(ct))}}static{this.\u0275prov=y({token:e,factory:()=>Ow(),providedIn:"root"})}}return e})();function Ow(){return new Bn(E(ct))}function Pw(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function yh(e){return e.replace(/\/index.html$/,"")}function kw(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function _h(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 Sc=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}},xh=(()=>{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 Sc(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),Dh(a,o)}});for(let o=0,i=r.length;o{let i=r.get(o.currentIndex);Dh(i,o)})}static ngTemplateContextGuard(n,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(De(St),De(Gt),De(Mc))}}static{this.\u0275dir=Nn({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return e})();function Dh(e,t){e.context.$implicit=t.item}var Mi=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new _c,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){wh("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){wh("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(St),De(Gt))}}static{this.\u0275dir=Nn({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return e})(),_c=class{constructor(){this.$implicit=null,this.ngIf=null}};function wh(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${ce(t)}'.`)}var Yt=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Tn({type:e})}static{this.\u0275inj=xn({})}}return e})(),Oc="browser",Fw="server";function Si(e){return e===Oc}function Pc(e){return e===Fw}var Th=(()=>{class e{static{this.\u0275prov=y({token:e,providedIn:"root",factory:()=>Si(p(Fe))?new xc(p(he),window):new Tc})}}return e})(),xc=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=Lw(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 Lw(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 Tc=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},bi=class{};var jc=class extends Ei{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Vc=class e extends jc{static makeCurrent(){Eh(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=jw();return n==null?null:Vw(n)}resetBaseElement(){Er=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return _h(document.cookie,t)}},Er=null;function jw(){return Er=Er||document.querySelector("base"),Er?Er.getAttribute("href"):null}function Vw(e){return new URL(e,document.baseURI).pathname}var $w=(()=>{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})(),$c=new I(""),Oh=(()=>{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($c),E(G))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),_i=class{constructor(t){this._doc=t}},Fc="ng-app-id",Ph=(()=>{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=Pc(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[${Fc}="${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(Fc),i;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Fc,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(oc),E(sc,8),E(Fe))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),Lc={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"},Uc=/%COMP%/g,kh="%COMP%",Bw=`_nghost-${kh}`,Uw=`_ngcontent-${kh}`,Hw=!0,zw=new I("",{providedIn:"root",factory:()=>Hw});function Gw(e){return Uw.replace(Uc,e)}function Ww(e){return Bw.replace(Uc,e)}function Fh(e,t){return t.map(n=>n.replace(Uc,e))}var Nh=(()=>{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=Pc(a),this.defaultRenderer=new br(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===He.ShadowDom&&(r=H(g({},r),{encapsulation:He.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof xi?o.applyToHost(n):o instanceof Mr&&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 xi(c,u,r,this.appId,l,s,a,d);break;case He.ShadowDom:return new Bc(c,u,n,r,s,a,this.nonce,d);default:i=new Mr(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(Oh),E(Ph),E(oc),E(zw),E(he),E(Fe),E(G),E(sc))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),br=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(Lc[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Ah(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Ah(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=Lc[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Lc[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&(nt.DashCase|nt.Important)?t.style.setProperty(n,r,o&nt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&nt.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 Ah(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Bc=class extends br{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=Fh(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)}},Mr=class extends br{constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?Fh(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},xi=class extends Mr{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=Gw(u),this.hostAttr=Ww(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}},qw=(()=>{class e extends _i{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})(),Rh=["alt","control","meta","shift"],Zw={"\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"},Yw={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Qw=(()=>{class e extends _i{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."),Rh.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=Zw[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"),Rh.forEach(s=>{if(s!==o){let a=Yw[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 Lh(e,t){return gh(g({rootComponent:e},Xw(t)))}function Xw(e){return{appProviders:[...nC,...e?.providers??[]],platformProviders:tC}}function Kw(){Vc.makeCurrent()}function Jw(){return new tt}function eC(){return gf(document),document}var tC=[{provide:Fe,useValue:Oc},{provide:ic,useValue:Kw,multi:!0},{provide:he,useFactory:eC,deps:[]}];var nC=[{provide:ni,useValue:"root"},{provide:tt,useFactory:Jw,deps:[]},{provide:$c,useClass:qw,multi:!0,deps:[he,G,Fe]},{provide:$c,useClass:Qw,multi:!0,deps:[he]},Nh,Ph,Oh,{provide:Mn,useExisting:Nh},{provide:bi,useClass:$w,deps:[]},[]];var jh=(()=>{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",$r=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 qn(e){return new qc(e)}function oC(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 Qh(e){return e.length>0?e[e.length-1]:null}function Nt(e){return ws(e)?e:wr(e)?B(Promise.resolve(e)):D(e)}var sC={exact:Kh,subset:Jh},Xh={exact:aC,subset:cC,ignored:()=>!0};function Vh(e,t,n){return sC[n.paths](e.root,t.root,n.matrixParams)&&Xh[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function aC(e,t){return Ye(e,t)}function Kh(e,t,n){if(!Xt(e.segments,t.segments)||!Ai(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!Kh(e.children[r],t.children[r],n))return!1;return!0}function cC(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Yh(e[n],t[n]))}function Jh(e,t,n){return ep(e,t,t.segments,n)}function ep(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!Xt(o,n)||t.hasChildren()||!Ai(o,n,r))}else if(e.segments.length===n.length){if(!Xt(e.segments,n)||!Ai(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!Jh(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!Xt(e.segments,o)||!Ai(e.segments,o,r)||!e.children[M]?!1:ep(e.children[M],t,i,r)}}function Ai(e,t,n){return t.every((r,o)=>Xh[n](e[o].parameters,r.parameters))}var lt=class{constructor(t=new P([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=qn(this.queryParams),this._queryParamMap}toString(){return dC.serialize(this)}},P=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 Ri(this)}},Qt=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=qn(this.parameters),this._parameterMap}toString(){return np(this)}};function uC(e,t){return Xt(e,t)&&e.every((n,r)=>Ye(n.parameters,t[r].parameters))}function Xt(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function lC(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 Br=(()=>{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 Qc(t);return new lt(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Sr(t.root,!0)}`,r=pC(t.queryParams),o=typeof t.fragment=="string"?`#${fC(t.fragment)}`:"";return`${n}${r}${o}`}},dC=new Zn;function Ri(e){return e.segments.map(t=>np(t)).join("/")}function Sr(e,t){if(!e.hasChildren())return Ri(e);if(t){let n=e.children[M]?Sr(e.children[M],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==M&&r.push(`${o}:${Sr(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=lC(e,(r,o)=>o===M?[Sr(e.children[M],!1)]:[`${o}:${Sr(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[M]!=null?`${Ri(e)}/${n[0]}`:`${Ri(e)}/(${n.join("//")})`}}function tp(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ti(e){return tp(e).replace(/%3B/gi,";")}function fC(e){return encodeURI(e)}function Yc(e){return tp(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Oi(e){return decodeURIComponent(e)}function $h(e){return Oi(e.replace(/\+/g,"%20"))}function np(e){return`${Yc(e.path)}${hC(e.parameters)}`}function hC(e){return Object.entries(e).map(([t,n])=>`;${Yc(t)}=${Yc(n)}`).join("")}function pC(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${Ti(n)}=${Ti(o)}`).join("&"):`${Ti(n)}=${Ti(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var gC=/^[^\/()?;#]+/;function Hc(e){let t=e.match(gC);return t?t[0]:""}var mC=/^[^\/()?;=#]+/;function vC(e){let t=e.match(mC);return t?t[0]:""}var yC=/^[^=?&#]+/;function DC(e){let t=e.match(yC);return t?t[0]:""}var wC=/^[^&#]+/;function CC(e){let t=e.match(wC);return t?t[0]:""}var Qc=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new P([],{}):new P([],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 P(t,n)),r}parseSegment(){let t=Hc(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(t),new Qt(Oi(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=vC(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=Hc(this.remaining);o&&(r=o,this.capture(r))}t[Oi(n)]=Oi(r)}parseQueryParam(t){let n=DC(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=CC(this.remaining);s&&(r=s,this.capture(r))}let o=$h(n),i=$h(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=Hc(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 P([],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 rp(e){return e.segments.length>0?new P([],{[M]:e}):e}function op(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=op(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 P(e.segments,t);return IC(n)}function IC(e){if(e.numberOfChildren===1&&e.children[M]){let t=e.children[M];return new P(e.segments.concat(t.segments),t.children)}return e}function Kt(e){return e instanceof lt}function EC(e,t,n=null,r=null){let o=ip(e);return sp(o,t,n,r)}function ip(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 P(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=rp(r);return t??o}function sp(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return zc(o,o,o,n,r);let i=bC(t);if(i.toRoot())return zc(o,o,new P([],{}),n,r);let s=MC(i,o,e),a=s.processChildren?Tr(s.segmentGroup,s.index,i.commands):cp(s.segmentGroup,s.index,i.commands);return zc(o,s.segmentGroup,a,n,r)}function Pi(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Rr(e){return typeof e=="object"&&e!=null&&e.outlets}function zc(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=ap(e,t,n);let a=rp(op(s));return new lt(a,i,o)}function ap(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=ap(i,t,n)}),new P(e.segments,r)}var ki=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Pi(r[0]))throw new w(4003,!1);let o=r.find(Rr);if(o&&o!==Qh(r))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function bC(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new ki(!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 ki(n,t,r)}var zn=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function MC(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=Pi(e.commands[0])?0:1,o=n.segments.length-1+r;return SC(n,o,e.numberOfDoubleDots)}function SC(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 _C(e){return Rr(e[0])?e[0].outlets:{[M]:e}}function cp(e,t,n){if(e??=new P([],{}),e.segments.length===0&&e.hasChildren())return Tr(e,t,n);let r=xC(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=Tr(e.children[M],t,n);return new P(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=cp(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new P(e.segments,o)}}function xC(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(Rr(a))break;let c=`${a}`,u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Uh(c,u,s))return i;r+=2}else{if(!Uh(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function Xc(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Xc(new P([],{}),0,r))}),t}function Bh(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function Uh(e,t,n){return e==n.path&&Ye(t,n.parameters)}var Nr="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}')`}},Qe=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||{}),Fi=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Fi||{}),ut=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}')`}},xt=class extends _e{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=ee.NavigationSkipped}},Or=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})`}},Li=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})`}},Kc=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})`}},Jc=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})`}},eu=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})`}},tu=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})`}},nu=class{constructor(t){this.route=t,this.type=ee.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},ru=class{constructor(t){this.route=t,this.type=ee.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ou=class{constructor(t){this.snapshot=t,this.type=ee.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},iu=class{constructor(t){this.snapshot=t,this.type=ee.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},su=class{constructor(t){this.snapshot=t,this.type=ee.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},au=class{constructor(t){this.snapshot=t,this.type=ee.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ji=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}')`}},Pr=class{},Qn=class{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function NC(e,t){return e.providers&&!e._injector&&(e._injector=gi(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Le(e){return e.outlet||M}function AC(e,t){let n=e.filter(r=>Le(r)===t);return n.push(...e.filter(r=>Le(r)!==t)),n}function Ur(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 cu=class{get injector(){return Ur(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new Hr(this.rootInjector),this.attachRef=null}},Hr=(()=>{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 cu(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})(),Vi=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=uu(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=uu(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=lu(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return lu(t,this._root).map(n=>n.value)}};function uu(e,t){if(e===t.value)return t;for(let n of t.children){let r=uu(e,n);if(r)return r}return null}function lu(e,t){if(e===t.value)return[t];for(let n of t.children){let r=lu(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 $i=class extends Vi{constructor(t,n){super(t),this.snapshot=n,Du(this,t)}toString(){return this.snapshot.toString()}};function up(e){let t=RC(e),n=new te([new Qt("",{})]),r=new te({}),o=new te({}),i=new te({}),s=new te(""),a=new Tt(n,r,i,s,o,M,e,t.root);return a.snapshot=t.root,new $i(new we(a,[]),t)}function RC(e){let t={},n={},r={},o="",i=new Gn([],t,r,o,n,M,e,null,{});return new Ui("",new we(i,[]))}var Tt=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[$r]))??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 Bi(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&&dp(o)&&(r.resolve[$r]=o.title),r}var Gn=class{get title(){return this.data?.[$r]}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}')`}},Ui=class extends Vi{constructor(t,n){super(n),this.url=t,Du(this,n)}toString(){return lp(this._root)}};function Du(e,t){t.value._routerState=e,t.children.forEach(n=>Du(e,n))}function lp(e){let t=e.children.length>0?` { ${e.children.map(lp).join(", ")} } `:"";return`${e.value}${t}`}function Gc(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Ye(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Ye(t.params,n.params)||e.paramsSubject.next(n.params),iC(t.url,n.url)||e.urlSubject.next(n.url),Ye(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function du(e,t){let n=Ye(e.params,t.params)&&uC(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||du(e.parent,t.parent))}function dp(e){return typeof e.title=="string"||e.title===null}var wu=(()=>{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(Hr),this.location=p(St),this.changeDetector=p(Cr),this.inputBinder=p(Wi,{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 fu(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=Nn({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})(),fu=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===Tt?this.route:t===Hr?this.childContexts:this.parent.get(t,n)}},Wi=new I(""),Hh=(()=>{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=mh(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 OC(e,t,n){let r=kr(e,t._root,n?n._root:void 0);return new $i(r,t)}function kr(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=PC(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=>kr(e,a)),s}}let r=kC(t.value),o=t.children.map(i=>kr(e,i));return new we(r,o)}}function PC(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return kr(e,r,o);return kr(e,r)})}function kC(e){return new Tt(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 Fr=class{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},fp="ngNavigationCancelingError";function Hi(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Kt(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=hp(!1,Ce.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function hp(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[fp]=!0,n.cancellationCode=t,n}function FC(e){return pp(e)&&Kt(e.url)}function pp(e){return!!e&&e[fp]}var LC=(e,t,n,r)=>b(o=>(new hu(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),hu=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),Gc(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 au(i.value.snapshot))}),t.children.length&&this.forwardEvent(new iu(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(Gc(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),Gc(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)}},zi=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 jC(e,t,n){let r=e._root,o=t?t._root:null;return _r(r,o,n,[r.value])}function VC(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"&&!ed(e)?e:t.get(e):r}function _r(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Hn(t);return e.children.forEach(s=>{$C(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Ar(a,n.getContext(s),o)),o}function $C(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=BC(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new zi(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?_r(e,t,a?a.children:null,r,o):_r(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Wn(a.outlet.component,s))}else s&&Ar(t,a,o),o.canActivateChecks.push(new zi(r)),i.component?_r(e,null,a?a.children:null,r,o):_r(e,null,n,r,o);return o}function BC(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!Xt(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Xt(e.url,t.url)||!Ye(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!du(e,t)||!Ye(e.queryParams,t.queryParams);case"paramsChange":default:return!du(e,t)}}function Ar(e,t,n){let r=Hn(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?Ar(s,t.children.getContext(i),n):Ar(s,null,n):Ar(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 zr(e){return typeof e=="function"}function UC(e){return typeof e=="boolean"}function HC(e){return e&&zr(e.canLoad)}function zC(e){return e&&zr(e.canActivate)}function GC(e){return e&&zr(e.canActivateChild)}function WC(e){return e&&zr(e.canDeactivate)}function qC(e){return e&&zr(e.canMatch)}function gp(e){return e instanceof Ke||e?.name==="EmptyError"}var Ni=Symbol("INITIAL_VALUE");function Xn(){return re(e=>nr(e.map(t=>t.pipe(K(1),Ss(Ni)))).pipe(b(t=>{for(let n of t)if(n!==!0){if(n===Ni)return Ni;if(n===!1||ZC(n))return n}return!0}),ne(t=>t!==Ni),K(1)))}function ZC(e){return Kt(e)||e instanceof Fr}function YC(e,t){return z(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?D(H(g({},n),{guardsResult:!0})):QC(s,r,o,e).pipe(z(a=>a&&UC(a)?XC(r,i,e,t):D(a)),b(a=>H(g({},n),{guardsResult:a})))})}function QC(e,t,n,r){return B(e).pipe(z(o=>nI(o.component,o.route,n,t,r)),$e(o=>o!==!0,!0))}function XC(e,t,n,r){return B(t).pipe(Lt(o=>Ve(JC(o.route.parent,r),KC(o.route,r),tI(e,o.path,n),eI(e,o.route,n))),$e(o=>o!==!0,!0))}function KC(e,t){return e!==null&&t&&t(new su(e)),D(!0)}function JC(e,t){return e!==null&&t&&t(new ou(e)),D(!0)}function eI(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return D(!0);let o=r.map(i=>kt(()=>{let s=Ur(t)??n,a=Kn(i,s),c=zC(a)?a.canActivate(t,e):qe(s,()=>a(t,e));return Nt(c).pipe($e())}));return D(o).pipe(Xn())}function tI(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>VC(s)).filter(s=>s!==null).map(s=>kt(()=>{let a=s.guards.map(c=>{let u=Ur(s.node)??n,l=Kn(c,u),d=GC(l)?l.canActivateChild(r,e):qe(u,()=>l(r,e));return Nt(d).pipe($e())});return D(a).pipe(Xn())}));return D(i).pipe(Xn())}function nI(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=Ur(t)??o,u=Kn(a,c),l=WC(u)?u.canDeactivate(e,t,n,r):qe(c,()=>u(e,t,n,r));return Nt(l).pipe($e())});return D(s).pipe(Xn())}function rI(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=HC(a)?a.canLoad(t,n):qe(e,()=>a(t,n));return Nt(c)});return D(i).pipe(Xn(),mp(r))}function mp(e){return hs(J(t=>{if(typeof t!="boolean")throw Hi(e,t)}),b(t=>t===!0))}function oI(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=qC(a)?a.canMatch(t,n):qe(e,()=>a(t,n));return Nt(c)});return D(i).pipe(Xn(),mp(r))}var Lr=class{constructor(t){this.segmentGroup=t||null}},jr=class extends Error{constructor(t){super(),this.urlTree=t}};function Un(e){return ht(new Lr(e))}function iI(e){return ht(new w(4e3,!1))}function sI(e){return ht(hp(!1,Ce.GuardRejected))}var pu=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 iI(`${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,L=qe(i,()=>a({params:f,data:m,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,title:T}));if(L instanceof lt)throw new jr(L);n=L}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new jr(s);return s}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new lt(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 P(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}},gu={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function aI(e,t,n,r,o){let i=vp(e,t,n);return i.matched?(r=NC(t,r),oI(r,t,n,o).pipe(b(s=>s===!0?i:g({},gu)))):D(i)}function vp(e,t,n){if(t.path==="**")return cI(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?g({},gu):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||oC)(n,e,t);if(!o)return g({},gu);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 cI(e){return{matched:!0,parameters:e.length>0?Qh(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function zh(e,t,n,r){return n.length>0&&dI(e,n,r)?{segmentGroup:new P(t,lI(r,new P(n,e.children))),slicedSegments:[]}:n.length===0&&fI(e,n,r)?{segmentGroup:new P(e.segments,uI(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new P(e.segments,e.children),slicedSegments:n}}function uI(e,t,n,r){let o={};for(let i of n)if(qi(e,t,i)&&!r[Le(i)]){let s=new P([],{});o[Le(i)]=s}return g(g({},r),o)}function lI(e,t){let n={};n[M]=t;for(let r of e)if(r.path===""&&Le(r)!==M){let o=new P([],{});n[Le(r)]=o}return n}function dI(e,t,n){return n.some(r=>qi(e,t,r)&&Le(r)!==M)}function fI(e,t,n){return n.some(r=>qi(e,t,r))}function qi(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function hI(e,t,n){return t.length===0&&!e.children[n]}var mu=class{};function pI(e,t,n,r,o,i,s="emptyOnly"){return new vu(e,t,n,r,o,s,i).recognize()}var gI=31,vu=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 pu(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 Ui("",o),s=EC(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})),gt(r=>{if(r instanceof jr)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Lr?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 B(i).pipe(Lt(s=>{let a=r.children[s],c=AC(n,s);return this.processSegmentGroup(t,c,a,s,o)}),Ms((s,a)=>(s.push(...a),s)),mt(null),Es(),z(s=>{if(s===null)return Un(r);let a=yp(s);return mI(a),D(a)}))}processSegment(t,n,r,o,i,s,a){return B(n).pipe(Lt(c=>this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a).pipe(gt(u=>{if(u instanceof Lr)return D(null);throw u}))),$e(c=>!!c),gt(c=>{if(gp(c))return hI(r,o,i)?D(new mu):Un(r);throw c}))}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return Le(r)!==s&&(s===M||!qi(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}=vp(n,o,i);if(!c)return Un(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>gI&&(this.allowRedirects=!1));let f=new Gn(i,u,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Gh(o),Le(o),o.component??o._loadedComponent??null,o,Wh(o)),m=Bi(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(L=>this.processSegment(t,r,n,L.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a=aI(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,Gh(r),Le(r),r.component??r._loadedComponent??null,r,Wh(r)),T=Bi(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(T.params),m.data=Object.freeze(T.data);let{segmentGroup:L,slicedSegments:$}=zh(n,h,f,u);if($.length===0&&L.hasChildren())return this.processChildren(l,u,L,m).pipe(b(de=>new we(m,de)));if(u.length===0&&$.length===0)return D(new we(m,[]));let le=Le(r)===i;return this.processSegment(l,u,L,$,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}):rI(t,n,r,this.urlSerializer).pipe(z(o=>o?this.configLoader.loadChildren(t,n).pipe(J(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):sI(n))):D({routes:[],injector:t})}};function mI(e){e.sort((t,n)=>t.value.outlet===M?-1:n.value.outlet===M?1:t.value.outlet.localeCompare(n.value.outlet))}function vI(e){let t=e.value.routeConfig;return t&&t.path===""}function yp(e){let t=[],n=new Set;for(let r of e){if(!vI(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=yp(r.children);t.push(new we(r.value,o))}return t.filter(r=>!n.has(r))}function Gh(e){return e.data||{}}function Wh(e){return e.resolve||{}}function yI(e,t,n,r,o,i){return z(s=>pI(e,t,n,r,s.extractedUrl,o,i).pipe(b(({state:a,tree:c})=>H(g({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function DI(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 Dp(c))s.add(u);let a=0;return B(s).pipe(Lt(c=>i.has(c)?wI(c,r,e,t):(c.data=Bi(c,c.parent,e).resolve,D(void 0))),J(()=>a++),dn(1),z(c=>a===s.size?D(n):ae))})}function Dp(e){let t=e.children.map(n=>Dp(n)).flat();return[e,...t]}function wI(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!dp(o)&&(i[$r]=o.title),CI(i,e,t,r).pipe(b(s=>(e._resolvedData=s,e.data=Bi(e,e.parent,n).resolve,null)))}function CI(e,t,n,r){let o=Zc(e);if(o.length===0)return D({});let i={};return B(o).pipe(z(s=>II(e[s],t,n,r).pipe($e(),J(a=>{if(a instanceof Fr)throw Hi(new Zn,a);i[s]=a}))),dn(1),rr(i),gt(s=>gp(s)?ae:ht(s)))}function II(e,t,n,r){let o=Ur(t)??r,i=Kn(e,o),s=i.resolve?i.resolve(t,n):qe(o,()=>i(t,n));return Nt(s)}function Wc(e){return re(t=>{let n=e(t);return n?B(n).pipe(b(()=>t)):D(t)})}var wp=(()=>{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[$r]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(EI),providedIn:"root"})}}return e})(),EI=(()=>{class e extends wp{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(jh))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Gr=new I("",{providedIn:"root",factory:()=>({})}),bI=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Et({type:e,selectors:[["ng-component"]],standalone:!0,features:[_t],decls:1,vars:0,template:function(r,o){r&1&&st(0,"router-outlet")},dependencies:[wu],encapsulation:2})}}return e})();function Cu(e){let t=e.children&&e.children.map(Cu),n=t?H(g({},e),{children:t}):g({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==M&&(n.component=bI),n}var Vr=new I(""),Iu=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(Ii)}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=Nt(n.loadComponent()).pipe(b(Cp),J(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),or(()=>{this.componentLoaders.delete(n)})),o=new ft(r,()=>new q).pipe(an());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=MI(r,this.compiler,n,this.onLoadEndListener).pipe(or(()=>{this.childrenLoaders.delete(r)})),s=new ft(i,()=>new q).pipe(an());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 MI(e,t,n,r){return Nt(e.loadChildren()).pipe(b(Cp),z(o=>o instanceof fr||Array.isArray(o)?D(o):B(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(Vr,[],{optional:!0,self:!0}).flat()),{routes:s.map(Cu),injector:i}}))}function SI(e){return e&&typeof e=="object"&&"default"in e}function Cp(e){return SI(e)?e.default:e}var Eu=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(_I),providedIn:"root"})}}return e})(),_I=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ip=new I(""),Ep=new I("");function xI(e,t,n){let r=e.get(Ep),o=e.get(he);return e.get(G).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(),TI(e))),{onViewTransitionCreated:c}=r;return c&&qe(e,()=>c({transition:a,from:t,to:n})),s})}function TI(e){return new Promise(t=>{wc({read:()=>setTimeout(t)},{injector:e})})}var NI=new I(""),bu=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new q,this.transitionAbortSubject=new q,this.configLoader=p(Iu),this.environmentInjector=p(ve),this.urlSerializer=p(Br),this.rootContexts=p(Hr),this.location=p(Bn),this.inputBindingEnabled=p(Wi,{optional:!0})!==null,this.titleStrategy=p(wp),this.options=p(Gr,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(Eu),this.createViewTransition=p(Ip,{optional:!0}),this.navigationErrorHandler=p(NI,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>D(void 0),this.rootComponentType=null;let n=o=>this.events.next(new nu(o)),r=o=>this.events.next(new ru(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(H(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:Nr,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=>H(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?H(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 xt(c.id,this.urlSerializer.serialize(c.rawUrl),d,Fi.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)}),yI(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),J(d=>{i.targetSnapshot=d.targetSnapshot,i.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=H(g({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new Li(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,L=new Yn(d,this.urlSerializer.serialize(h),f,m);this.events.next(L);let $=up(this.rootComponentType).snapshot;return this.currentTransition=i=H(g({},c),{targetSnapshot:$,urlAfterRedirects:h,extras:H(g({},T),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,D(i)}else{let d="";return this.events.next(new xt(c.id,this.urlSerializer.serialize(c.extractedUrl),d,Fi.IgnoredByUrlHandlingStrategy)),c.resolve(!1),ae}}),J(c=>{let u=new Kc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),b(c=>(this.currentTransition=i=H(g({},c),{guards:jC(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),i)),YC(this.environmentInjector,c=>this.events.next(c)),J(c=>{if(i.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw Hi(this.urlSerializer,c.guardsResult);let u=new Jc(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)),Wc(c=>{if(c.guards.canActivateChecks.length)return D(c).pipe(J(u=>{let l=new eu(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(DI(this.paramsInheritanceStrategy,this.environmentInjector),J({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(u,"",Ce.NoDataFromResolver)}}))}),J(u=>{let l=new tu(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}))}),Wc(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(mt(null),K(1))}),Wc(()=>this.afterPreactivation()),re(()=>{let{currentSnapshot:c,targetSnapshot:u}=i,l=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return l?B(l).pipe(b(()=>i)):D(i)}),b(c=>{let u=OC(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=i=H(g({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,i}),J(()=>{this.events.next(new Pr)}),LC(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 Qe(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),_s(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)}),gt(c=>{if(a=!0,pp(c))this.events.next(new ut(i.id,this.urlSerializer.serialize(i.extractedUrl),c.message,c.cancellationCode)),FC(c)?this.events.next(new Qn(c.url,c.navigationBehaviorOptions)):i.resolve(!1);else{let u=new Or(i.id,this.urlSerializer.serialize(i.extractedUrl),c,i.targetSnapshot??void 0);try{let l=qe(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof Fr){let{message:d,cancellationCode:h}=Hi(this.urlSerializer,l);this.events.next(new ut(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 ut(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 AI(e){return e!==Nr}var RI=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(OI),providedIn:"root"})}}return e})(),yu=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},OI=(()=>{class e extends yu{static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Ja(e)))(o||e)}})()}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),bp=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(PI),providedIn:"root"})}}return e})(),PI=(()=>{class e extends bp{constructor(){super(...arguments),this.location=p(Bn),this.urlSerializer=p(Br),this.options=p(Gr,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(Eu),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new lt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=up(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 xt)this.rawUrlTree=r.initialUrl;else if(n instanceof Li){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 Pr?(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 ut&&(n.code===Ce.GuardRejected||n.code===Ce.NoDataFromResolver)?this.restoreHistory(r):n instanceof Or?this.restoreHistory(r,!0):n instanceof Qe&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=n instanceof lt?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=Ja(e)))(o||e)}})()}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),xr=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(xr||{});function Mp(e,t){e.events.pipe(ne(n=>n instanceof Qe||n instanceof ut||n instanceof Or||n instanceof xt),b(n=>n instanceof Qe||n instanceof xt?xr.COMPLETE:(n instanceof ut?n.code===Ce.Redirect||n.code===Ce.SupersededByNewNavigation:!1)?xr.REDIRECTING:xr.FAILED),ne(n=>n!==xr.REDIRECTING),K(1)).subscribe(()=>{t()})}function kI(e){throw e}var FI={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},LI={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},dt=(()=>{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(wi),this.stateManager=p(bp),this.options=p(Gr,{optional:!0})||{},this.pendingTasks=p(Pn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(bu),this.urlSerializer=p(Br),this.location=p(Bn),this.urlHandlingStrategy=p(Eu),this._events=new q,this.errorHandler=this.options.errorHandler||kI,this.navigated=!1,this.routeReuseStrategy=p(RI),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(Vr,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(Wi,{optional:!0}),this.eventsSubscription=new W,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 ut&&r.code!==Ce.Redirect&&r.code!==Ce.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Qe)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"||AI(o.source)},s);this.scheduleNavigation(a,Nr,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}VI(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),Nr,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(Cu),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=ip(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return sp(d,n,l,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=Kt(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Nr,null,r)}navigate(n,r={skipLocationChange:!1}){return jI(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({},FI):r===!1?o=g({},LI):o=r,Kt(n))return Vh(this.currentUrlTree,n,o);let i=this.parseUrl(n);return Vh(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 Mp(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 jI(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 q,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 Qe&&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)):(Kt(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:yf(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:Kt(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(dt),De(Tt),ec("tabindex"),De(hi),De(Mt),De(ct))}}static{this.\u0275dir=Nn({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&Z("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Cc("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ir],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ir],replaceUrl:[2,"replaceUrl","replaceUrl",Ir],routerLink:"routerLink"},standalone:!0,features:[Dc,vr]})}}return e})();var Gi=class{};var $I=(()=>{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 Qe),Lt(()=>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=gi(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 B(o).pipe(pt())}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 B([i,s]).pipe(pt())}else return i})}static{this.\u0275fac=function(r){return new(r||e)(E(dt),E(Ii),E(ve),E(Gi),E(Iu))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),_p=new I(""),BI=(()=>{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 Qe?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof xt&&n.code===Fi.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 ji&&(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 ji(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(r){Af()}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})();function xp(e,...t){return An([{provide:Vr,multi:!0,useValue:e},[],{provide:Tt,useFactory:Tp,deps:[dt]},{provide:Ci,multi:!0,useFactory:Np},t.map(n=>n.\u0275providers)])}function Tp(e){return e.routerState.root}function Wr(e,t){return{\u0275kind:e,\u0275providers:t}}function Np(){let e=p(Me);return t=>{let n=e.get(Ze);if(t!==n.components[0])return;let r=e.get(dt),o=e.get(Ap);e.get(Mu)===1&&r.initialNavigation(),e.get(Rp,null,S.Optional)?.setUpPreloading(),e.get(_p,null,S.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var Ap=new I("",{factory:()=>new q}),Mu=new I("",{providedIn:"root",factory:()=>1});function UI(){return Wr(2,[{provide:Mu,useValue:0},{provide:Vn,multi:!0,deps:[Me],useFactory:t=>{let n=t.get(bh,Promise.resolve());return()=>n.then(()=>new Promise(r=>{let o=t.get(dt),i=t.get(Ap);Mp(o,()=>{r(!0)}),t.get(bu).afterPreactivation=()=>(r(!0),i.closed?D(void 0):i),o.initialNavigation()}))}}])}function HI(){return Wr(3,[{provide:Vn,multi:!0,useFactory:()=>{let t=p(dt);return()=>{t.setUpLocationChangeListener()}}},{provide:Mu,useValue:2}])}var Rp=new I("");function zI(e){return Wr(0,[{provide:Rp,useExisting:$I},{provide:Gi,useExisting:e}])}function GI(){return Wr(8,[Hh,{provide:Wi,useExisting:Hh}])}function WI(e){let t=[{provide:Ip,useValue:xI},{provide:Ep,useValue:g({skipNextTransition:!!e?.skipInitialTransition},e)}];return Wr(9,t)}var qh=new I("ROUTER_FORROOT_GUARD"),qI=[Bn,{provide:Br,useClass:Zn},dt,Hr,{provide:Tt,useFactory:Tp,deps:[dt]},Iu,[]],Zi=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[qI,[],{provide:Vr,multi:!0,useValue:n},{provide:qh,useFactory:XI,deps:[[dt,new ti,new La]]},{provide:Gr,useValue:r||{}},r?.useHash?YI():QI(),ZI(),r?.preloadingStrategy?zI(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?KI(r):[],r?.bindToComponentInputs?GI().\u0275providers:[],r?.enableViewTransitions?WI().\u0275providers:[],JI()]}}static forChild(n){return{ngModule:e,providers:[{provide:Vr,multi:!0,useValue:n}]}}static{this.\u0275fac=function(r){return new(r||e)(E(qh,8))}}static{this.\u0275mod=Tn({type:e})}static{this.\u0275inj=xn({})}}return e})();function ZI(){return{provide:_p,useFactory:()=>{let e=p(Th),t=p(G),n=p(Gr),r=p(bu),o=p(Br);return n.scrollOffset&&e.setOffset(n.scrollOffset),new BI(o,r,e,t,n)}}}function YI(){return{provide:ct,useClass:Sh}}function QI(){return{provide:ct,useClass:Rc}}function XI(e){return"guarded"}function KI(e){return[e.initialNavigation==="disabled"?HI().\u0275providers:[],e.initialNavigation==="enabledBlocking"?UI().\u0275providers:[]]}var Zh=new I("");function JI(){return[{provide:Zh,useFactory:Np},{provide:Ci,multi:!0,useExisting:Zh}]}var tE=["canvas"],nE=["fileInput"];function rE(e,t){if(e&1){let n=jn();F(0,"button",11),Z("click",function(){let o=Y(n).$implicit;return Q(o.apply())}),X(1),U()}if(e&2){let n=t.$implicit;it("title",n.name),Fn(),Ec(" ",n.icon," ")}}function oE(e,t){if(e&1){let n=jn();F(0,"div",12),Z("mouseenter",function(){Y(n);let o=ue();return Q(o.onControlsMouseEnter())})("mouseleave",function(){Y(n);let o=ue();return Q(o.onControlsMouseLeave())}),F(1,"div",13)(2,"button",14),Z("click",function(){Y(n);let o=ue();return Q(o.rotatePhoto(-15))}),X(3,"\u21BA"),U(),F(4,"button",14),Z("click",function(){Y(n);let o=ue();return Q(o.rotatePhoto(15))}),X(5,"\u21BB"),U(),F(6,"button",14),Z("click",function(){Y(n);let o=ue();return Q(o.scalePhoto(.9))}),X(7,"-"),U(),F(8,"button",14),Z("click",function(){Y(n);let o=ue();return Q(o.scalePhoto(1.1))}),X(9,"+"),U()(),F(10,"div",13)(11,"button",14),Z("click",function(){Y(n);let o=ue();return Q(o.moveBackward(o.hoveredPhoto))}),X(12,"\u2193"),U(),F(13,"button",14),Z("click",function(){Y(n);let o=ue();return Q(o.moveForward(o.hoveredPhoto))}),X(14,"\u2191"),U(),F(15,"button",14),Z("click",function(){Y(n);let o=ue();return Q(o.moveToBack(o.hoveredPhoto))}),X(16,"\u2913"),U(),F(17,"button",14),Z("click",function(){Y(n);let o=ue();return Q(o.moveToFront(o.hoveredPhoto))}),X(18,"\u2912"),U()(),F(19,"div",13)(20,"button",15),Z("click",function(){Y(n);let o=ue();return Q(o.removePhoto(o.hoveredPhoto))}),X(21,"\xD7"),U()()()}if(e&2){let n=ue();vi("left",n.controlsPosition.x,"px")("top",n.controlsPosition.y,"px")}}var Yi=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;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(){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),o=new Image;o.src=r,yield o.decode(),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})}this.render()})}render(){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=new Image;r.src=n.url,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 t=this.canvas.toDataURL("image/png"),n=document.createElement("a");n.download="collage.png",n.href=t,n.click()}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.find(i=>r>=i.x&&r<=i.x+i.width&&o>=i.y&&o<=i.y+i.height)||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){let r=n.x*this.scale+this.panX,o=n.y*this.scale+this.panY;this.hoveredPhoto=H(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=[],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.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=Et({type:e,selectors:[["app-photo-collage"]],viewQuery:function(n,r){if(n&1&&(Ic(tE,5),Ic(nE,5)),n&2){let o;yi(o=Di())&&(r.canvasRef=o.first),yi(o=Di())&&(r.fileInput=o.first)}},standalone:!0,features:[_t],decls:18,vars:2,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,"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();F(0,"div",2),Z("dragover",function(s){return Y(o),Q(s.preventDefault())})("drop",function(s){return Y(o),Q(r.handleDrop(s))}),F(1,"div",3)(2,"span",4),X(3,"Layouts:"),U(),Ln(4,rE,2,2,"button",5),U(),F(5,"div",6),st(6,"canvas",null,0),Ln(8,oE,22,4,"div",7),U(),F(9,"input",8,1),Z("change",function(s){return Y(o),Q(r.handleFileSelect(s))}),U(),F(11,"div",9)(12,"button",10),Z("click",function(){Y(o);let s=sh(10);return Q(s.click())}),X(13,"Add Photos"),U(),F(14,"button",10),Z("click",function(){return Y(o),Q(r.saveCollage())}),X(15,"Save Collage"),U(),F(16,"button",10),Z("click",function(){return Y(o),Q(r.resetCollage())}),X(17,"Reset"),U()()()}n&2&&(Fn(4),it("ngForOf",r.presets),Fn(4),it("ngIf",r.hoveredPhoto))},dependencies:[Yt,xh,Mi],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}"]})};var iE=()=>["/collage"],Qi=class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Et({type:e,selectors:[["app-home"]],standalone:!0,features:[_t],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&&(F(0,"div",0),st(1,"img",1),F(2,"div",2)(3,"h1"),X(4,"Welcome to Moments"),U(),F(5,"button",3),X(6," Create Collage "),U()()()),n&2&&(Fn(5),it("routerLink",ah(1,iE)))},dependencies:[Yt,Zi,Sp],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 Pp=[{path:"",redirectTo:"/home",pathMatch:"full"},{path:"home",component:Qi},{path:"collage",component:Yi}];var Zr="Service workers are disabled or not supported by this browser";function sE(e){return kt(()=>ht(new Error(e)))}var Jn=class{constructor(t){if(this.serviceWorker=t,!t)this.worker=this.events=this.registration=sE(Zr);else{let r=ln(t,"controllerchange").pipe(b(()=>t.controller)),o=kt(()=>D(t.controller)),i=Ve(o,r);this.worker=i.pipe(ne(l=>!!l)),this.registration=this.worker.pipe(re(()=>t.getRegistration()));let u=ln(t,"message").pipe(b(l=>l.data)).pipe(ne(l=>l&&l.type)).pipe(bs());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}},aE=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,this.pushManager=null,this.subscriptionChanges=new q,!n.isEnabled){this.messages=Ft,this.notificationClicks=Ft,this.subscription=Ft;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=vo(r,this.subscriptionChanges)}requestSubscription(n){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(Zr));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(Zr));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})(),cE=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,!n.isEnabled){this.versionUpdates=Ft,this.unrecoverable=Ft;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(Zr));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(Zr));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 kp=new I("");function uE(e,t,n,r){return()=>{if(!(Si(r)&&"serviceWorker"in navigator&&n.enabled!==!1))return;let o=e.get(G),i=e.get(Ze);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=Fp(+c[0]||0);break;case"registerWhenStable":let u=B(e.get(Ze).whenStable());s=c[0]?vo(u,Fp(+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 Fp(e){return D(null).pipe(Is(e))}function lE(e,t){return new Jn(Si(t)&&e.enabled!==!1?navigator.serviceWorker:void 0)}var qr=class{};function Lp(e,t={}){return An([aE,cE,{provide:kp,useValue:e},{provide:qr,useValue:t},{provide:Jn,useFactory:lE,deps:[qr,Fe]},{provide:Vn,useFactory:uE,deps:[Me,kp,qr,Fe],multi:!0}])}var jp={providers:[fh({eventCoalescing:!0}),xp(Pp),Lp("ngsw-worker.js",{enabled:!ph(),registrationStrategy:"registerWhenStable:30000"})]};function dE(e,t){if(e&1){let n=jn();F(0,"button",1),Z("click",function(){Y(n);let o=ue();return Q(o.installPwa())}),X(1,` Install App +`),U()}}var Xi=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=Et({type:e,selectors:[["app-root"]],standalone:!0,features:[_t],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,dE,2,0,"button",0),st(1,"router-outlet")),n&2&&it("ngIf",r.showInstallButton)},dependencies:[wu,Yt,Mi,Zi],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}"]})};Lh(Xi,jp).catch(e=>console.error(e)); diff --git a/main-IAPDGBLK.js b/main-IAPDGBLK.js deleted file mode 100644 index c85bc27..0000000 --- a/main-IAPDGBLK.js +++ /dev/null @@ -1,8 +0,0 @@ -var Sp=Object.defineProperty,_p=Object.defineProperties;var xp=Object.getOwnPropertyDescriptors;var mu=Object.getOwnPropertySymbols;var Tp=Object.prototype.hasOwnProperty,Np=Object.prototype.propertyIsEnumerable;var vu=(e,t,n)=>t in e?Sp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g=(e,t)=>{for(var n in t||={})Tp.call(t,n)&&vu(e,n,t[n]);if(mu)for(var n of mu(t))Np.call(t,n)&&vu(e,n,t[n]);return e},B=(e,t)=>_p(e,xp(t));var Zn=(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 Qi=null;var Yi=1,yu=Symbol("SIGNAL");function O(e){let t=Qi;return Qi=e,t}function Du(){return Qi}var Xi={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 Ap(e){if(!(ns(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Yi)){if(!e.producerMustRecompute(e)&&!Ji(e)){e.dirty=!1,e.lastCleanEpoch=Yi;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=Yi}}function Ki(e){return e&&(e.nextProducerIndex=0),O(e)}function wu(e,t){if(O(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(ns(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Ji(e){rs(e);for(let t=0;t0}function rs(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Rp(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Op(e){return e.producerNode!==void 0}function Pp(){throw new Error}var kp=Pp;function Cu(e){kp=e}function v(e){return typeof e=="function"}function Jt(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 Zr=Jt(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 Tt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var G=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 Zr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Iu(i)}catch(s){t=t??[],s instanceof Zr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Zr(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Iu(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)&&Tt(n,t)}remove(t){let{_finalizers:n}=this;n&&Tt(n,t),t instanceof e&&t._removeParent(this)}};G.EMPTY=(()=>{let e=new G;return e.closed=!0,e})();var os=G.EMPTY;function Yr(e){return e instanceof G||e&&"closed"in e&&v(e.remove)&&v(e.add)&&v(e.unsubscribe)}function Iu(e){v(e)?e():e.unsubscribe()}var xe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var en={setTimeout(e,t,...n){let{delegate:r}=en;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=en;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Qr(e){en.setTimeout(()=>{let{onUnhandledError:t}=xe;if(t)t(e);else throw e})}function Xe(){}var Eu=is("C",void 0,void 0);function bu(e){return is("E",void 0,e)}function Mu(e){return is("N",e,void 0)}function is(e,t,n){return{kind:e,value:t,error:n}}var Nt=null;function tn(e){if(xe.useDeprecatedSynchronousErrorHandling){let t=!Nt;if(t&&(Nt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Nt;if(Nt=null,n)throw r}}else e()}function Su(e){xe.useDeprecatedSynchronousErrorHandling&&Nt&&(Nt.errorThrown=!0,Nt.error=e)}var At=class extends G{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Yr(t)&&t.add(this)):this.destination=jp}static create(t,n,r){return new nn(t,n,r)}next(t){this.isStopped?as(Mu(t),this):this._next(t)}error(t){this.isStopped?as(bu(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?as(Eu,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()}}},Fp=Function.prototype.bind;function ss(e,t){return Fp.call(e,t)}var cs=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Xr(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Xr(r)}else Xr(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Xr(n)}}},nn=class extends At{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&&xe.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&ss(t.next,i),error:t.error&&ss(t.error,i),complete:t.complete&&ss(t.complete,i)}):o=t}this.destination=new cs(o)}};function Xr(e){xe.useDeprecatedSynchronousErrorHandling?Su(e):Qr(e)}function Lp(e){throw e}function as(e,t){let{onStoppedNotification:n}=xe;n&&en.setTimeout(()=>n(e,t))}var jp={closed:!0,next:Xe,error:Lp,complete:Xe};var rn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ge(e){return e}function us(...e){return ls(e)}function ls(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=$p(n)?n:new nn(n,r,o);return tn(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=_u(r),new r((o,i)=>{let s=new nn({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)}[rn](){return this}pipe(...n){return ls(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??xe.Promise)!==null&&t!==void 0?t:Promise}function Vp(e){return e&&v(e.next)&&v(e.error)&&v(e.complete)}function $p(e){return e&&e instanceof At||Vp(e)&&Yr(e)}function ds(e){return v(e?.lift)}function T(e){return t=>{if(ds(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 fs(e,t,n,r,o)}var fs=class extends At{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 on(){return T((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 dt=class extends A{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,ds(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 G;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=G.EMPTY)}return t}refCount(){return on()(this)}};var xu=Jt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var q=(()=>{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 Kr(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new xu}next(n){tn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){tn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){tn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?os:(this.currentObservers=null,i.push(n),new G(()=>{this.currentObservers=null,Tt(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 Kr(t,n),e})(),Kr=class extends q{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:os}};var ee=class extends q{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 hs={now(){return(hs.delegate||Date).now()},delegate:void 0};var Jr=class extends G{constructor(t,n){super()}schedule(t,n=0){return this}};var Yn={setInterval(e,t,...n){let{delegate:r}=Yn;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Yn;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var eo=class extends Jr{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 Yn.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&&Yn.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,Tt(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var sn=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)}};sn.now=hs.now;var to=class extends sn{constructor(t,n=sn.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 ps=new to(eo),Tu=ps;var ae=new A(e=>e.complete());function no(e){return e&&v(e.schedule)}function gs(e){return e[e.length-1]}function Nu(e){return v(gs(e))?e.pop():void 0}function Le(e){return no(gs(e))?e.pop():void 0}function Au(e,t){return typeof gs(e)=="number"?e.pop():t}function Ou(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 Ru(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 Rt(e){return this instanceof Rt?(this.v=e,this):new Rt(e)}function Pu(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(N){return new Promise(function(F,j){i.push([f,N,F,j])>1||c(f,N)})},m&&(o[f]=m(o[f])))}function c(f,m){try{u(r[f](m))}catch(N){h(i[0][3],N)}}function u(f){f.value instanceof Rt?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 ku(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 Ru=="function"?Ru(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 an=e=>e&&typeof e.length=="number"&&typeof e!="function";function ro(e){return v(e?.then)}function oo(e){return v(e[rn])}function io(e){return Symbol.asyncIterator&&v(e?.[Symbol.asyncIterator])}function so(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 Bp(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ao=Bp();function co(e){return v(e?.[ao])}function uo(e){return Pu(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Rt(n.read());if(o)return yield Rt(void 0);yield yield Rt(r)}}finally{n.releaseLock()}})}function lo(e){return v(e?.getReader)}function L(e){if(e instanceof A)return e;if(e!=null){if(oo(e))return Up(e);if(an(e))return Hp(e);if(ro(e))return zp(e);if(io(e))return Fu(e);if(co(e))return Gp(e);if(lo(e))return qp(e)}throw so(e)}function Up(e){return new A(t=>{let n=e[rn]();if(v(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Hp(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,Qr)})}function Gp(e){return new A(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Fu(e){return new A(t=>{Wp(e,t).catch(n=>t.error(n))})}function qp(e){return Fu(uo(e))}function Wp(e,t){var n,r,o,i;return Ou(this,void 0,void 0,function*(){try{for(n=ku(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 de(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 fo(e,t=0){return T((n,r)=>{n.subscribe(R(r,o=>de(r,e,()=>r.next(o),t),()=>de(r,e,()=>r.complete(),t),o=>de(r,e,()=>r.error(o),t)))})}function ho(e,t=0){return T((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Lu(e,t){return L(e).pipe(ho(t),fo(t))}function ju(e,t){return L(e).pipe(ho(t),fo(t))}function Vu(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 $u(e,t){return new A(n=>{let r;return de(n,t,()=>{r=e[ao](),de(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 po(e,t){if(!e)throw new Error("Iterable cannot be null");return new A(n=>{de(n,t,()=>{let r=e[Symbol.asyncIterator]();de(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Bu(e,t){return po(uo(e),t)}function Uu(e,t){if(e!=null){if(oo(e))return Lu(e,t);if(an(e))return Vu(e,t);if(ro(e))return ju(e,t);if(io(e))return po(e,t);if(co(e))return $u(e,t);if(lo(e))return Bu(e,t)}throw so(e)}function V(e,t){return t?Uu(e,t):L(e)}function D(...e){let t=Le(e);return V(e,t)}function ft(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 ms(e){return!!e&&(e instanceof A||v(e.lift)&&v(e.subscribe))}var Ke=Jt(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Hu(e){return e instanceof Date&&!isNaN(e)}function b(e,t){return T((n,r)=>{let o=0;n.subscribe(R(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Zp}=Array;function Yp(e,t){return Zp(t)?e(...t):e(t)}function go(e){return b(t=>Yp(e,t))}var{isArray:Qp}=Array,{getPrototypeOf:Xp,prototype:Kp,keys:Jp}=Object;function zu(e){if(e.length===1){let t=e[0];if(Qp(t))return{args:t,keys:null};if(eg(t)){let n=Jp(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function eg(e){return e&&typeof e=="object"&&Xp(e)===Kp}function Gu(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Qn(...e){let t=Le(e),n=Nu(e),{args:r,keys:o}=zu(e);if(r.length===0)return V([],t);let i=new A(tg(r,t,o?s=>Gu(o,s):ge));return n?i.pipe(go(n)):i}function tg(e,t,n=ge){return r=>{qu(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c{let u=V(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 qu(e,t,n){e?de(n,e,t):t()}function Wu(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&t.complete()},f=N=>u{i&&t.next(N),u++;let F=!1;L(n(N,l++)).subscribe(R(t,j=>{o?.(j),i?f(j):t.next(j)},()=>{F=!0},void 0,()=>{if(F)try{for(u--;c.length&&um(j)):m(j)}h()}catch(j){t.error(j)}}))};return e.subscribe(R(t,f,()=>{d=!0,h()})),()=>{a?.()}}function U(e,t,n=1/0){return v(t)?U((r,o)=>b((i,s)=>t(r,i,o,s))(L(e(r,o))),n):(typeof t=="number"&&(n=t),T((r,o)=>Wu(r,o,e,n)))}function ht(e=1/0){return U(ge,e)}function Zu(){return ht(1)}function je(...e){return Zu()(V(e,Le(e)))}function Ot(e){return new A(t=>{L(e()).subscribe(t)})}var ng=["addListener","removeListener"],rg=["addEventListener","removeEventListener"],og=["on","off"];function cn(e,t,n,r){if(v(n)&&(r=n,n=void 0),r)return cn(e,t,n).pipe(go(r));let[o,i]=ag(e)?rg.map(s=>a=>e[s](t,a,n)):ig(e)?ng.map(Yu(e,t)):sg(e)?og.map(Yu(e,t)):[];if(!o&&an(e))return U(s=>cn(s,t,n))(L(e));if(!o)throw new TypeError("Invalid event target");return new A(s=>{let a=(...c)=>s.next(1i(a)})}function Yu(e,t){return n=>r=>e[n](t,r)}function ig(e){return v(e.addListener)&&v(e.removeListener)}function sg(e){return v(e.on)&&v(e.off)}function ag(e){return v(e.addEventListener)&&v(e.removeEventListener)}function Qu(e=0,t,n=Tu){let r=-1;return t!=null&&(no(t)?n=t:r=t),new A(o=>{let i=Hu(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 mo(...e){let t=Le(e),n=Au(e,1/0),r=e;return r.length?r.length===1?L(r[0]):ht(n)(V(r,t)):ae}var Pt=new A(Xe);function te(e,t){return T((n,r)=>{let o=0;n.subscribe(R(r,i=>e.call(t,i,o++)&&r.next(i)))})}function pt(e){return T((t,n)=>{let r=null,o=!1,i;r=t.subscribe(R(n,void 0,void 0,s=>{i=L(e(s,pt(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Xu(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 kt(e,t){return v(t)?U(e,t,1):U(e,1)}function Ku(e){return new A(t=>e.subscribe(t))}var cg={connector:()=>new q};function vo(e,t=cg){let{connector:n}=t;return T((r,o)=>{let i=n();L(e(Ku(i))).subscribe(o),o.add(r.subscribe(i))})}function gt(e){return T((t,n)=>{let r=!1;t.subscribe(R(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Y(e){return e<=0?()=>ae:T((t,n)=>{let r=0;t.subscribe(R(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Ju(){return T((e,t)=>{e.subscribe(R(t,Xe))})}function Xn(e){return b(()=>e)}function vs(e,t){return t?n=>je(t.pipe(Y(1),Ju()),n.pipe(vs(e))):U((n,r)=>L(e(n,r)).pipe(Y(1),Xn(n)))}function ys(e,t=ps){let n=Qu(e,t);return vs(()=>n)}function yo(e=ug){return T((t,n)=>{let r=!1;t.subscribe(R(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function ug(){return new Ke}function Kn(e){return T((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Ve(e,t){let n=arguments.length>=2;return r=>r.pipe(e?te((o,i)=>e(o,i,r)):ge,Y(1),n?gt(t):yo(()=>new Ke))}function un(e){return e<=0?()=>ae:T((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 Ds(e,t){let n=arguments.length>=2;return r=>r.pipe(e?te((o,i)=>e(o,i,r)):ge,un(1),n?gt(t):yo(()=>new Ke))}function el(e,t){let n=v(e)?e:()=>e;return v(t)?vo(t,{connector:n}):r=>new dt(r,n)}function ws(e){return e?t=>vo(e)(t):t=>el(new q)(t)}function Cs(e,t){return T(Xu(e,t,arguments.length>=2,!0))}function Is(...e){let t=Le(e);return T((n,r)=>{(t?je(e,n,t):je(e,n)).subscribe(r)})}function ne(e,t){return T((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++;L(e(c,l)).subscribe(o=R(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Es(e){return T((t,n)=>{L(e).subscribe(R(n,()=>n.complete(),Xe)),!n.closed&&t.subscribe(n)})}function Q(e,t,n){let r=v(e)||t||n?{next:e,error:t,complete:n}:e;return r?T((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 jl="https://g.co/ng/security#xss",w=class extends Error{constructor(t,n){super(_a(t,n)),this.code=t}};function _a(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function cr(e){return{toString:e}.toString()}var Do="__parameters__";function lg(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Vl(e,t,n){return cr(()=>{let r=lg(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(Do)?c[Do]:Object.defineProperty(c,Do,{value:[]})[Do];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 ks=globalThis;function k(e){for(let t in e)if(e[t]===k)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 tl(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var dg=k({__forward_ref__:k});function $l(e){return e.__forward_ref__=$l,e.toString=function(){return ce(this())},e}function Ie(e){return Bl(e)?e():e}function Bl(e){return typeof e=="function"&&e.hasOwnProperty(dg)&&e.__forward_ref__===$l}function y(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function _n(e){return{providers:e.providers||[],imports:e.imports||[]}}function Qo(e){return nl(e,Hl)||nl(e,zl)}function Ul(e){return Qo(e)!==null}function nl(e,t){return e.hasOwnProperty(t)?e[t]:null}function fg(e){let t=e&&(e[Hl]||e[zl]);return t||null}function rl(e){return e&&(e.hasOwnProperty(ol)||e.hasOwnProperty(hg))?e[ol]:null}var Hl=k({\u0275prov:k}),ol=k({\u0275inj:k}),zl=k({ngInjectableDef:k}),hg=k({ngInjectorDef:k}),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 Gl(e){return e&&!!e.\u0275providers}var pg=k({\u0275cmp:k}),gg=k({\u0275dir:k}),mg=k({\u0275pipe:k}),vg=k({\u0275mod:k}),To=k({\u0275fac:k}),er=k({__NG_ELEMENT_ID__:k}),il=k({__NG_ENV_ID__:k});function xa(e){return typeof e=="string"?e:e==null?"":String(e)}function yg(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():xa(e)}function Dg(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new w(-200,e)}function Ta(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||{}),Fs;function ql(){return Fs}function Ce(e){let t=Fs;return Fs=e,t}function Wl(e,t,n){let r=Qo(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;Ta(e,"Injector")}var wg={},tr=wg,Ls="__NG_DI_FLAG__",No="ngTempTokenPath",Cg="ngTokenPath",Ig=/\n/gm,Eg="\u0275",sl="__source",pn;function bg(){return pn}function mt(e){let t=pn;return pn=e,t}function Mg(e,t=S.Default){if(pn===void 0)throw new w(-203,!1);return pn===null?Wl(e,void 0,t):pn.get(e,t&S.Optional?null:void 0,t)}function E(e,t=S.Default){return(ql()||Mg)(Ie(e),t)}function p(e,t=S.Default){return E(e,Xo(t))}function Xo(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function js(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(Ig,` - `)}`}var Na=Zl(Vl("Optional"),8);var Yl=Zl(Vl("SkipSelf"),4);function mn(e,t){let n=e.hasOwnProperty(To);return n?e[To]:null}function Tg(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?Aa(n,t):t(n))}function Ql(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ao(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ag(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 Rg(e,t,n){let r=ur(e,t);return r>=0?e[r|1]=n:(r=~r,Ag(e,r,t,n)),r}function bs(e,t){let n=ur(e,t);if(n>=0)return e[n|1]}function ur(e,t){return Og(e,t,1)}function Og(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(Te(r))return!1;s=!0}}}}return Te(r)||s}function Te(e){return(e&1)===0}function Vg(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!==""&&!Te(s)&&(t+=cl(i,o),o=""),r=s,i=i||!Te(r);n++}return o!==""&&(t+=cl(i,o)),t}function zg(e){return e.map(Hg).join(",")}function Gg(e){let t=[],n=[],r=1,o=2;for(;r{let t=sd(e),n=B(g({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Jl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ue.Emulated,styles:e.styles||Ne,_:null,schemas:e.schemas||null,tView:null,id:""});ad(n);let r=e.dependencies;return n.directiveDefs=ll(r,!1),n.pipeDefs=ll(r,!0),n.id=Zg(n),n})}function qg(e){return wt(e)||nd(e)}function Wg(e){return e!==null}function xn(e){return cr(()=>({type:e.type,bootstrap:e.bootstrap||Ne,declarations:e.declarations||Ne,imports:e.imports||Ne,exports:e.exports||Ne,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function ul(e,t){if(e==null)return nr;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=Dt.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Dt.None?[r,a]:r,t[i]=s):n[i]=r}return n}function lr(e){return cr(()=>{let t=sd(e);return ad(t),t})}function wt(e){return e[pg]||null}function nd(e){return e[gg]||null}function rd(e){return e[mg]||null}function od(e){let t=wt(e)||nd(e)||rd(e);return t!==null?t.standalone:!1}function id(e,t){let n=e[vg]||null;if(!n&&t===!0)throw new Error(`Type ${ce(e)} does not have '\u0275mod' property.`);return n}function sd(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||nr,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Ne,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ul(e.inputs,t),outputs:ul(e.outputs),debugInfo:null}}function ad(e){e.features?.forEach(t=>t(e))}function ll(e,t){if(!e)return null;let n=t?rd:qg;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Wg)}function Zg(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 Tn(e){return{\u0275providers:e}}function Yg(...e){return{\u0275providers:cd(!0,e),\u0275fromNgModule:!0}}function cd(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Aa(t,s=>{let a=s;$s(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&ud(o,i),n}function ud(e,t){for(let n=0;n{t(i,r)})}}function $s(e,t,n,r){if(e=Ie(e),!e)return!1;let o=null,i=rl(e),s=!i&&wt(e);if(!i&&!s){let c=e.ngModule;if(i=rl(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)$s(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{Aa(i.imports,l=>{$s(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&ud(u,t)}if(!a){let u=mn(o)||(()=>new o);t({provide:o,useFactory:u,deps:Ne},o),t({provide:Kl,useValue:o,multi:!0},o),t({provide:vn,useValue:()=>E(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Pa(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Pa(e,t){for(let n of e)Gl(n)&&(n=n.\u0275providers),Array.isArray(n)?Pa(n,t):t(n)}var Qg=k({provide:String,useValue:k});function ld(e){return e!==null&&typeof e=="object"&&Qg in e}function Xg(e){return!!(e&&e.useExisting)}function Kg(e){return!!(e&&e.useFactory)}function Bs(e){return typeof e=="function"}var Ko=new I(""),Eo={},Jg={},Ms;function ka(){return Ms===void 0&&(Ms=new Ro),Ms}var ve=class{},rr=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,Hs(t,s=>this.processProvider(s)),this.records.set(Xl,ln(void 0,this)),o.has("environment")&&this.records.set(ve,ln(void 0,this));let i=this.records.get(Ko);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Kl,Ne,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=mt(this),r=Ce(void 0),o;try{return t()}finally{mt(n),Ce(r)}}get(t,n=tr,r=S.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(il))return t[il](this);r=Xo(r);let o,i=mt(this),s=Ce(void 0);try{if(!(r&S.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=im(t)&&Qo(t);u&&this.injectableDefInScope(u)?c=ln(Us(t),Eo):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&S.Self?ka():this.parent;return n=r&S.Optional&&n===tr?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[No]=a[No]||[]).unshift(ce(t)),i)throw a;return _g(a,t,"R3InjectorError",this.source)}else throw a}finally{Ce(s),mt(i)}}resolveInjectorInitializers(){let t=O(null),n=mt(this),r=Ce(void 0),o;try{let i=this.get(vn,Ne,S.Self);for(let s of i)s()}finally{mt(n),Ce(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=Ie(t);let n=Bs(t)?t:Ie(t&&t.provide),r=tm(t);if(!Bs(t)&&t.multi===!0){let o=this.records.get(n);o||(o=ln(void 0,Eo,!0),o.factory=()=>js(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===Eo&&(n.value=Jg,n.value=n.factory()),typeof n.value=="object"&&n.value&&om(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{O(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Ie(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 Us(e){let t=Qo(e),n=t!==null?t.factory:mn(e);if(n!==null)return n;if(e instanceof I)throw new w(204,!1);if(e instanceof Function)return em(e);throw new w(204,!1)}function em(e){if(e.length>0)throw new w(204,!1);let n=fg(e);return n!==null?()=>n.factory(e):()=>new e}function tm(e){if(ld(e))return ln(void 0,e.useValue);{let t=nm(e);return ln(t,Eo)}}function nm(e,t,n){let r;if(Bs(e)){let o=Ie(e);return mn(o)||Us(o)}else if(ld(e))r=()=>Ie(e.useValue);else if(Kg(e))r=()=>e.useFactory(...js(e.deps||[]));else if(Xg(e))r=()=>E(Ie(e.useExisting));else{let o=Ie(e&&(e.useClass||e.provide));if(rm(e))r=()=>new o(...js(e.deps));else return mn(o)||Us(o)}return r}function ln(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function rm(e){return!!e.deps}function om(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function im(e){return typeof e=="function"||typeof e=="object"&&e instanceof I}function Hs(e,t){for(let n of e)Array.isArray(n)?Hs(n,t):n&&Gl(n)?Hs(n.\u0275providers,t):t(n)}function qe(e,t){e instanceof rr&&e.assertNotDestroyed();let n,r=mt(e),o=Ce(void 0);try{return t()}finally{mt(r),Ce(o)}}function dd(){return ql()!==void 0||bg()!=null}function sm(e){if(!dd())throw new w(-203,!1)}function am(e){return typeof e=="function"}var rt=0,_=1,C=2,ie=3,Ae=4,Oe=5,Oo=6,Po=7,Re=8,yn=9,He=10,se=11,or=12,dl=13,Nn=14,ze=15,Lt=16,dn=17,Je=18,Jo=19,fd=20,vt=21,Ss=22,Ee=23,et=25,hd=1;var jt=7,ko=8,Dn=9,me=10,Fo=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Fo||{});function yt(e){return Array.isArray(e)&&typeof e[hd]=="object"}function ot(e){return Array.isArray(e)&&e[hd]===!0}function pd(e){return(e.flags&4)!==0}function ei(e){return e.componentOffset>-1}function Fa(e){return(e.flags&1)===1}function dr(e){return!!e.template}function zs(e){return(e[C]&512)!==0}var Gs=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function gd(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function fr(){return md}function md(e){return e.type.prototype.ngOnChanges&&(e.setInput=um),cm}fr.ngInherit=!0;function cm(){let e=yd(this),t=e?.current;if(t){let n=e.previous;if(n===nr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function um(e,t,n,r,o){let i=this.declaredInputs[r],s=yd(e)||lm(e,{previous:nr,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Gs(u&&u.currentValue,n,c===nr),gd(e,t,o,n)}var vd="__ngSimpleChanges__";function yd(e){return e[vd]||null}function lm(e,t){return e[vd]=t}var fl=null;var $e=function(e,t,n){fl?.(e,t,n)},dm="svg",fm="math";function Ge(e){for(;Array.isArray(e);)e=e[rt];return e}function hm(e,t){return Ge(t[e])}function Me(e,t){return Ge(t[e.index])}function Dd(e,t){return e.data[t]}function pm(e,t){return e[t]}function Et(e,t){let n=t[e];return yt(n)?n:n[rt]}function gm(e){return(e[C]&4)===4}function La(e){return(e[C]&128)===128}function mm(e){return ot(e[ie])}function Lo(e,t){return t==null?null:e[t]}function wd(e){e[dn]=0}function Cd(e){e[C]&1024||(e[C]|=1024,La(e)&&ni(e))}function vm(e,t){for(;e>0;)t=t[Nn],e--;return t}function ti(e){return!!(e[C]&9216||e[Ee]?.dirty)}function qs(e){e[He].changeDetectionScheduler?.notify(8),e[C]&64&&(e[C]|=1024),ti(e)&&ni(e)}function ni(e){e[He].changeDetectionScheduler?.notify(0);let t=Vt(e);for(;t!==null&&!(t[C]&8192||(t[C]|=8192,!La(t)));)t=Vt(t)}function Id(e,t){if((e[C]&256)===256)throw new w(911,!1);e[vt]===null&&(e[vt]=[]),e[vt].push(t)}function ym(e,t){if(e[vt]===null)return;let n=e[vt].indexOf(t);n!==-1&&e[vt].splice(n,1)}function Vt(e){let t=e[ie];return ot(t)?t[ie]:t}var x={lFrame:Rd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Ed=!1;function Dm(){return x.lFrame.elementDepthCount}function wm(){x.lFrame.elementDepthCount++}function Cm(){x.lFrame.elementDepthCount--}function bd(){return x.bindingsEnabled}function Im(){return x.skipHydrationRootTNode!==null}function Em(e){return x.skipHydrationRootTNode===e}function bm(){x.skipHydrationRootTNode=null}function $(){return x.lFrame.lView}function Pe(){return x.lFrame.tView}function X(e){return x.lFrame.contextLView=e,e[Re]}function K(e){return x.lFrame.contextLView=null,e}function ye(){let e=Md();for(;e!==null&&e.type===64;)e=e.parent;return e}function Md(){return x.lFrame.currentTNode}function Mm(){let e=x.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function hr(e,t){let n=x.lFrame;n.currentTNode=e,n.isParent=t}function Sd(){return x.lFrame.isParent}function Sm(){x.lFrame.isParent=!1}function _m(){return x.lFrame.contextLView}function _d(){return Ed}function hl(e){Ed=e}function xm(){let e=x.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Tm(e){return x.lFrame.bindingIndex=e}function xd(){return x.lFrame.bindingIndex++}function Nm(e){let t=x.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Am(){return x.lFrame.inI18n}function Rm(e,t){let n=x.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ws(t)}function Om(){return x.lFrame.currentDirectiveIndex}function Ws(e){x.lFrame.currentDirectiveIndex=e}function Pm(e){let t=x.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Td(){return x.lFrame.currentQueryIndex}function ja(e){x.lFrame.currentQueryIndex=e}function km(e){let t=e[_];return t.type===2?t.declTNode:t.type===1?e[Oe]:null}function Nd(e,t,n){if(n&S.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&S.Host);)if(o=km(i),o===null||(i=i[Nn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=x.lFrame=Ad();return r.currentTNode=t,r.lView=e,!0}function Va(e){let t=Ad(),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 Ad(){let e=x.lFrame,t=e===null?null:e.child;return t===null?Rd(e):t}function Rd(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 Od(){let e=x.lFrame;return x.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Pd=Od;function $a(){let e=Od();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 Fm(e){return(x.lFrame.contextLView=vm(e,x.lFrame.contextLView))[Re]}function pr(){return x.lFrame.selectedIndex}function $t(e){x.lFrame.selectedIndex=e}function kd(){let e=x.lFrame;return Dd(e.tView,e.selectedIndex)}function Lm(){return x.lFrame.currentNamespace}var Fd=!0;function Ba(){return Fd}function Ua(e){Fd=e}function jm(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=md(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 Ha(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[dn]+=65536),(a>14>16&&(e[C]&3)===t&&(e[C]+=16384,pl(a,i)):pl(a,i)}var gn=-1,ir=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function $m(e){return e instanceof ir}function Bm(e){return(e.flags&8)!==0}function Um(e){return(e.flags&16)!==0}var xs={},Zs=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Xo(r);let o=this.injector.get(t,xs,r);return o!==xs||n===xs?o:this.parentInjector.get(t,n,r)}};function jd(e){return e!==gn}function jo(e){return e&32767}function Hm(e){return e>>16}function Vo(e,t){let n=Hm(e),r=t;for(;n>0;)r=r[Nn],n--;return r}var Ys=!0;function gl(e){let t=Ys;return Ys=e,t}var zm=256,Vd=zm-1,$d=5,Gm=0,Be={};function qm(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(er)&&(r=n[er]),r==null&&(r=n[er]=Gm++);let o=r&Vd,i=1<>$d)]|=i}function Bd(e,t){let n=Ud(e,t);if(n!==-1)return n;let r=t[_];r.firstCreatePass&&(e.injectorIndex=t.length,Ts(r.data,e),Ts(t,null),Ts(r.blueprint,null));let o=za(e,t),i=e.injectorIndex;if(jd(o)){let s=jo(o),a=Vo(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 Ts(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ud(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function za(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=Wd(o),r===null)return gn;if(n++,o=o[Nn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return gn}function Wm(e,t,n){qm(e,t,n)}function Zm(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&&dr(f)&&f.type===n)return c}return null}function wn(e,t,n,r){let o=e[n],i=t.data;if($m(o)){let s=o;s.resolving&&Dg(yg(i[n]));let a=gl(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?Ce(s.injectImpl):null,l=Nd(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&&Ce(u),gl(a),s.resolving=!1,Pd()}}return o}function Qm(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(er)?e[er]:void 0;return typeof t=="number"?t>=0?t&Vd:Xm:t}function ml(e,t,n){let r=1<>$d)]&r)}function vl(e,t){return!(e&S.Self)&&!(e&S.Host&&t)}var Ft=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Gd(this._tNode,this._lView,t,Xo(r),n)}};function Xm(){return new Ft(ye(),$())}function Ga(e){return cr(()=>{let t=e.prototype.constructor,n=t[To]||Qs(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[To]||Qs(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Qs(e){return Bl(e)?()=>{let t=Qs(Ie(e));return t&&t()}:mn(e)}function Km(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[C]&2048&&!(s[C]&512);){let a=qd(i,s,n,r|S.Self,Be);if(a!==Be)return a;let c=i.parent;if(!c){let u=s[fd];if(u){let l=u.get(n,Be,r);if(l!==Be)return l}c=Wd(s),s=s[Nn]}i=c}return o}function Wd(e){let t=e[_],n=t.type;return n===2?t.declTNode:n===1?e[Oe]:null}function qa(e){return Zm(ye(),e)}function yl(e,t=null,n=null,r){let o=Zd(e,t,n,r);return o.resolveInjectorInitializers(),o}function Zd(e,t=null,n=null,r,o=new Set){let i=[n||Ne,Yg(e)];return r=r||(typeof e=="object"?void 0:ce(e)),new rr(i,t||ka(),r||null,o)}var be=class e{static{this.THROW_IF_NOT_FOUND=tr}static{this.NULL=new Ro}static create(t,n){if(Array.isArray(t))return yl({name:""},n,t,"");{let r=t.name??"";return yl({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=y({token:e,providedIn:"any",factory:()=>E(Xl)})}static{this.__NG_ELEMENT_ID__=-1}};var Jm=new I("");Jm.__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 ev="ngOriginalError";function Ns(e){return e[ev]}var Yd=!0,Wa=(()=>{class e{static{this.__NG_ELEMENT_ID__=tv}static{this.__NG_ENV_ID__=n=>n}}return e})(),Xs=class extends Wa{constructor(t){super(),this._lView=t}onDestroy(t){return Id(this._lView,t),()=>ym(this._lView,t)}};function tv(){return new Xs($())}var An=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ee(!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 Ks=class extends q{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,dd()&&(this.destroyRef=p(Wa,{optional:!0})??void 0,this.pendingTasks=p(An,{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 G&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},oe=Ks;function $o(...e){}function Qd(e){let t,n;function r(){e=$o;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 Dl(e){return queueMicrotask(()=>e()),()=>{e=$o}}var Za="isAngularZone",Bo=Za+"_ID",nv=0,H=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new oe(!1),this.onMicrotaskEmpty=new oe(!1),this.onStable=new oe(!1),this.onError=new oe(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Yd}=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(Za)===!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,rv,$o,$o);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)}},rv={};function Ya(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 ov(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Qd(()=>{e.callbackScheduled=!1,Js(e),e.isCheckStableRunning=!0,Ya(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Js(e)}function iv(e){let t=()=>{ov(e)},n=nv++;e._inner=e._inner.fork({name:"angular",properties:{[Za]:!0,[Bo]:n,[Bo+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(sv(c))return r.invokeTask(i,s,a,c);try{return wl(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Cl(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return wl(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!av(c)&&t(),Cl(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Js(e),Ya(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 Js(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function wl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Cl(e){e._nesting--,Ya(e)}var ea=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new oe,this.onMicrotaskEmpty=new oe,this.onStable=new oe,this.onError=new oe}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 sv(e){return Xd(e,"__ignore_ng_zone__")}function av(e){return Xd(e,"__scheduler_tick__")}function Xd(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var tt=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&&Ns(t);for(;n&&Ns(n);)n=Ns(n);return n||null}},cv=new I("",{providedIn:"root",factory:()=>{let e=p(H),t=p(tt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function uv(){return Rn(ye(),$())}function Rn(e,t){return new bt(Me(e,t))}var bt=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=uv}}return e})();function lv(e){return e instanceof bt?e.nativeElement:e}function dv(){return this._results[Symbol.iterator]()}var ta=class e{get changes(){return this._changes??=new oe}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]=dv)}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=Ng(t);(this._changesDetected=!Tg(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 Kd(e){return(e.flags&128)===128}var Jd=new Map,fv=0;function hv(){return fv++}function pv(e){Jd.set(e[Jo],e)}function na(e){Jd.delete(e[Jo])}var Il="__ngContext__";function Bt(e,t){yt(t)?(e[Il]=t[Jo],pv(t)):e[Il]=t}function ef(e){return nf(e[or])}function tf(e){return nf(e[Ae])}function nf(e){for(;e!==null&&!ot(e);)e=e[Ae];return e}var ra;function rf(e){ra=e}function gv(){if(ra!==void 0)return ra;if(typeof document<"u")return document;throw new w(210,!1)}var Qa=new I("",{providedIn:"root",factory:()=>mv}),mv="ng",Xa=new I(""),ke=new I("",{providedIn:"platform",factory:()=>"unknown"});var Ka=new I("",{providedIn:"root",factory:()=>gv().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var vv="h",yv="b";var Dv=()=>null;function Ja(e,t,n=!1){return Dv(e,t,n)}var of=!1,wv=new I("",{providedIn:"root",factory:()=>of});var wo;function Cv(){if(wo===void 0&&(wo=null,ks.trustedTypes))try{wo=ks.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return wo}function El(e){return Cv()?.createScriptURL(e)||e}var Uo=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${jl})`}};function gr(e){return e instanceof Uo?e.changingThisBreaksApplicationSecurity:e}function ec(e,t){let n=Iv(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 Iv(e){return e instanceof Uo&&e.getTypeName()||null}var Ev=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function sf(e){return e=String(e),e.match(Ev)?e:"unsafe:"+e}var ri=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}(ri||{});function bv(e){let t=cf();return t?t.sanitize(ri.URL,e)||"":ec(e,"URL")?gr(e):sf(xa(e))}function Mv(e){let t=cf();if(t)return El(t.sanitize(ri.RESOURCE_URL,e)||"");if(ec(e,"ResourceURL"))return El(gr(e));throw new w(904,!1)}function Sv(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?Mv:bv}function af(e,t,n){return Sv(t,n)(e)}function cf(){let e=$();return e&&e[He].sanitizer}function uf(e){return e instanceof Function?e():e}function _v(e){return(e??p(be)).get(ke)==="browser"}var nt=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(nt||{}),xv;function tc(e,t){return xv(e,t)}function fn(e,t,n,r,o){if(r!=null){let i,s=!1;ot(r)?i=r:yt(r)&&(s=!0,r=r[rt]);let a=Ge(r);e===0&&n!==null?o==null?pf(t,n,a):Ho(t,n,a,o||null,!0):e===1&&n!==null?Ho(t,n,a,o||null,!0):e===2?Uv(t,a,s):e===3&&t.destroyNode(a),i!=null&&zv(t,e,i,n,o)}}function Tv(e,t){return e.createText(t)}function lf(e,t,n){return e.createElement(t,n)}function Nv(e,t){df(e,t),t[rt]=null,t[Oe]=null}function Av(e,t,n,r,o,i){r[rt]=o,r[Oe]=t,oi(e,r,n,1,o,i)}function df(e,t){t[He].changeDetectionScheduler?.notify(9),oi(e,t,t[se],2,null,null)}function Rv(e){let t=e[or];if(!t)return As(e[_],e);for(;t;){let n=null;if(yt(t))n=t[or];else{let r=t[me];r&&(n=r)}if(!n){for(;t&&!t[Ae]&&t!==e;)yt(t)&&As(t[_],t),t=t[ie];t===null&&(t=e),yt(t)&&As(t[_],t),n=t&&t[Ae]}t=n}}function Ov(e,t,n,r){let o=me+r,i=n.length;r>0&&(n[o-1][Ae]=t),r0&&(e[n-1][Ae]=r[Ae]);let i=Ao(e,me+t);Nv(r[_],r);let s=i[Je];s!==null&&s.detachView(i[_]),r[ie]=null,r[Ae]=null,r[C]&=-129}return r}function hf(e,t){if(!(t[C]&256)){let n=t[se];n.destroyNode&&oi(e,t,n,3,null,null),Rv(t)}}function As(e,t){if(t[C]&256)return;let n=O(null);try{t[C]&=-129,t[C]|=256,t[Ee]&&es(t[Ee]),kv(e,t),Pv(e,t),t[_].type===1&&t[se].destroy();let r=t[Lt];if(r!==null&&ot(t[ie])){r!==t[ie]&&nc(r,t);let o=t[Je];o!==null&&o.detachView(e)}na(t)}finally{O(n)}}function Pv(e,t){let n=e.cleanup,r=t[Po];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[Po]=null);let o=t[vt];if(o!==null){t[vt]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===Ue.None||i===Ue.Emulated)return null}return Me(r,n)}}function Ho(e,t,n,r,o){e.insertBefore(t,n,r,o)}function pf(e,t,n){e.appendChild(t,n)}function bl(e,t,n,r,o){r!==null?Ho(e,t,n,r,o):pf(e,t,n)}function gf(e,t){return e.parentNode(t)}function jv(e,t){return e.nextSibling(t)}function Vv(e,t,n){return Bv(e,t,n)}function $v(e,t,n){return e.type&40?Me(e,n):null}var Bv=$v,Ml;function rc(e,t,n,r){let o=Fv(e,r,t),i=t[se],s=r.parent||t[Oe],a=Vv(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;cet&&Df(e,t,et,!1),$e(s?2:0,o),n(r,o)}finally{$t(i),$e(s?3:1,o)}}function bf(e,t,n){if(pd(t)){let r=O(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function Jv(e,t,n,r){let o=Of(t);o.push(n),e.firstCreatePass&&Pf(e).push(r,o.length-1)}function ey(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Im()&&(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 Sl(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=Dt.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 ty(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 ay(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;ei(n)&&py(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Bd(n,t),Bt(r,t);let s=n.initialInputs;for(let a=o;a{ni(e.lView)},consumerOnSignalRead(){this.lView[Ee]=this}});function Ty(e){let t=e[Ee]??Object.create(Ny);return t.lView=e,t}var Ny=B(g({},Xi),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Vt(e.lView);for(;t&&!Lf(t[_]);)t=Vt(t);t&&Cd(t)},consumerOnSignalRead(){this.lView[Ee]=this}});function Lf(e){return e.type!==2}var Ay=100;function jf(e,t=!0,n=0){let r=e[He],o=r.rendererFactory,i=!1;i||o.begin?.();try{Ry(e,n)}catch(s){throw t&&kf(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function Ry(e,t){let n=_d();try{hl(!0),ca(e,t);let r=0;for(;ti(e);){if(r===Ay)throw new w(103,!1);r++,ca(e,1)}}finally{hl(n)}}function Oy(e,t,n,r){let o=t[C];if((o&256)===256)return;let i=!1,s=!1;!i&&t[He].inlineEffectRunner?.flush(),Va(t);let a=!0,c=null,u=null;i||(Lf(e)?(u=My(t),c=Ki(u)):Du()===null?(a=!1,u=Ty(t),c=Ki(u)):t[Ee]&&(es(t[Ee]),t[Ee]=null));try{wd(t),Tm(e.bindingStartIndex),n!==null&&Ef(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&bo(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Mo(t,f,0,null),_s(t,0)}if(s||Py(t),Vf(t,0),e.contentQueries!==null&&Rf(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&bo(t,f)}else{let f=e.contentHooks;f!==null&&Mo(t,f,1),_s(t,1)}Wv(e,t);let d=e.components;d!==null&&Bf(t,d,0);let h=e.viewQuery;if(h!==null&&aa(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&bo(t,f)}else{let f=e.viewHooks;f!==null&&Mo(t,f,2),_s(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ss]){for(let f of t[Ss])f();t[Ss]=null}i||(t[C]&=-73)}catch(l){throw i||ni(t),l}finally{u!==null&&(wu(u,c),a&&_y(u)),$a()}}function Vf(e,t){for(let n=ef(e);n!==null;n=tf(n))for(let r=me;r-1&&(oa(t,r),Ao(n,r))}this._attachedToViewContainer=!1}hf(this._lView[_],this._lView)}onDestroy(t){Id(this._lView,t)}markForCheck(){cc(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[C]&=-129}reattach(){qs(this._lView),this._lView[C]|=128}detectChanges(){this._lView[C]|=1024,jf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=zs(this._lView),n=this._lView[Lt];n!==null&&!t&&nc(n,this._lView),df(this._lView[_],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=t;let n=zs(this._lView),r=this._lView[Lt];r!==null&&!n&&ff(r,this._lView),qs(this._lView)}},Cn=(()=>{class e{static{this.__NG_ELEMENT_ID__=jy}}return e})(),Fy=Cn,Ly=class extends Fy{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=Iy(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Ut(o)}};function jy(){return uc(ye(),$())}function uc(e,t){return e.type&4?new Ly(t,e,Rn(e,t)):null}var Qx=new RegExp(`^(\\d+)*(${yv}|${vv})*(.*)`);var Vy=()=>null;function Tl(e,t){return Vy(e,t)}var In=class{},ui=new I("",{providedIn:"root",factory:()=>!1});var Uf=new I(""),Hf=new I(""),ua=class{},Go=class{};function $y(e){let t=Error(`No component factory found for ${ce(e)}.`);return t[By]=e,t}var By="ngComponent";var la=class{resolveComponentFactory(t){throw $y(t)}},En=class{static{this.NULL=new la}},bn=class{},li=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>Uy()}}return e})();function Uy(){let e=$(),t=ye(),n=Et(t.index,e);return(yt(n)?n:e)[se]}var Hy=(()=>{class e{static{this.\u0275prov=y({token:e,providedIn:"root",factory:()=>null})}}return e})();function da(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&vf(e,n,i.join(" "))}}function Qy(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static{this.__NG_ELEMENT_ID__=Ky}}return e})();function Ky(){let e=ye();return Gf(e,$())}var Jy=zt,zf=class extends Jy{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Rn(this._hostTNode,this._hostLView)}get injector(){return new Ft(this._hostTNode,this._hostLView)}get parentInjector(){let t=za(this._hostTNode,this._hostLView);if(jd(t)){let n=Vo(t,this._hostLView),r=jo(t),o=n[_].data[r+8];return new Ft(o,n)}else return new Ft(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Al(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=Tl(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,xl(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!am(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 Mn(wt(t)),u=r||this.parentInjector;if(!i&&c.ngModule==null){let N=(s?u:this.parentInjector).get(ve,null);N&&(i=N)}let l=wt(c.componentType??{}),d=Tl(this._lContainer,l?.id??null),h=d?.firstChild??null,f=c.create(u,o,h,i);return this.insertImpl(f.hostView,a,xl(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(mm(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[ie],u=new zf(c,c[Oe],c[ie]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Ey(s,o,i,r),t.attachToViewContainerRef(),Ql(Rs(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Al(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=oa(this._lContainer,n);r&&(Ao(Rs(this._lContainer),n),hf(r[_],r))}detach(t){let n=this._adjustIndex(t,-1),r=oa(this._lContainer,n);return r&&Ao(Rs(this._lContainer),n)!=null?new Ut(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Al(e){return e[ko]}function Rs(e){return e[ko]||(e[ko]=[])}function Gf(e,t){let n,r=t[e.index];return ot(r)?n=r:(n=Af(r,t,null,e),t[e.index]=n,ci(t,n)),tD(n,t,e,r),new zf(n,e,t)}function eD(e,t){let n=e[se],r=n.createComment(""),o=Me(t,e),i=gf(n,o);return Ho(n,i,r,jv(n,o),!1),r}var tD=oD,nD=()=>!1;function rD(e,t,n){return nD(e,t,n)}function oD(e,t,n,r){if(e[jt])return;let o;n.type&8?o=Ge(r):o=eD(t,n),e[jt]=o}var ha=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},pa=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 hD(e,t,n){e.queries===null&&(e.queries=new ma),e.queries.track(new va(t,n))}function lc(e,t){return e.queries.getByIndex(t)}function pD(e,t){let n=e[_],r=lc(n,t);return r.crossesNgTemplate?ya(n,e,t,[]):qf(n,e,r,t)}var Rl=new Set;function di(e){Rl.has(e)||(Rl.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function dc(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 Ct=class{},sr=class{};var Da=class extends Ct{constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new qo(this);let i=id(t);this._bootstrapComponents=uf(i.bootstrap),this._r3Injector=Zd(t,n,[{provide:Ct,useValue:this},{provide:En,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)}},wa=class extends sr{constructor(t){super(),this.moduleType=t}create(t){return new Da(this.moduleType,t,[])}};var Wo=class extends Ct{constructor(t){super(),this.componentFactoryResolver=new qo(this),this.instance=null;let n=new rr([...t.providers,{provide:Ct,useValue:this},{provide:En,useValue:this.componentFactoryResolver}],t.parent||ka(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function fi(e,t,n=null){return new Wo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function gD(e,t,n){return e[t]=n}function mD(e,t){return e[t]}function fc(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function vD(e){return(e.flags&32)===32}function yD(e,t,n,r,o,i,s,a,c){let u=t.consts,l=ai(t,e,4,s||null,a||null);xf(t,n,l,Lo(u,c)),Ha(t,l);let d=l.tView=ic(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function DD(e,t,n,r,o,i,s,a,c,u){let l=n+et,d=t.firstCreatePass?yD(l,t,e,r,o,i,s,a,c):t.data[l];hr(d,!1);let h=wD(t,e,d,n);Ba()&&rc(t,e,h,d),Bt(h,e);let f=Af(h,e,h,d);return e[l]=f,ci(e,f),rD(f,d,e),Fa(d)&&Mf(t,e,d),c!=null&&Sf(e,d,u),d}function vr(e,t,n,r,o,i,s,a){let c=$(),u=Pe(),l=Lo(u.consts,i);return DD(c,u,e,t,n,r,o,l,s,a),vr}var wD=CD;function CD(e,t,n,r){return Ua(!0),t[se].createComment("")}var hn=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(hn||{}),Wf=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=y({token:e,providedIn:"root",factory:()=>new e})}}return e})(),Ca=class e{constructor(){this.ngZone=p(H),this.scheduler=p(In),this.errorHandler=p(tt,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[hn.EarlyRead,hn.Write,hn.MixedReadWrite,hn.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})}},Ia=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 hc(e,t){!t?.injector&&sm(hc);let n=t?.injector??p(be);return _v(n)?(di("NgAfterNextRender"),ED(e,n,t,!0)):bD}function ID(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 ED(e,t,n,r){let o=t.get(Wf);o.impl??=t.get(Ca);let i=n?.phase??hn.MixedReadWrite,s=n?.manualCleanup!==!0?t.get(Wa):null,a=new Ia(o.impl,ID(e,i),r,s);return o.impl.register(a),a}var bD={destroy(){}};function pc(e,t,n,r){let o=$(),i=xd();if(fc(o,i,t)){let s=Pe(),a=kd();gy(a,o,e,t,n,r)}return pc}function Co(e,t){return e<<17|t<<2}function Ht(e){return e>>17&32767}function MD(e){return(e&2)==2}function SD(e,t){return e&131071|t<<17}function Ea(e){return e|2}function Sn(e){return(e&131068)>>2}function Os(e,t){return e&-131069|t<<2}function _D(e){return(e&1)===1}function ba(e){return e|1}function xD(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Ht(s),c=Sn(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||ur(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let h=Ht(e[a+1]);e[r+1]=Co(h,a),h!==0&&(e[h+1]=Os(e[h+1],r)),e[a+1]=SD(e[a+1],r)}else e[r+1]=Co(a,0),a!==0&&(e[a+1]=Os(e[a+1],r)),a=r;else e[r+1]=Co(c,0),a===0?a=r:e[c+1]=Os(e[c+1],r),c=r;u&&(e[r+1]=Ea(e[r+1])),Ol(e,l,r,!0),Ol(e,l,r,!1),TD(t,l,e,r,i),s=Co(a,c),i?t.classBindings=s:t.styleBindings=s}function TD(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&ur(i,t)>=0&&(n[r+1]=ba(n[r+1]))}function Ol(e,t,n,r){let o=e[n+1],i=t===null,s=r?Ht(o):Sn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];ND(c,t)&&(a=!0,e[s+1]=r?ba(u):Ea(u)),s=r?Ht(u):Sn(u)}a&&(e[n+1]=r?Ea(o):ba(o))}function ND(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?ur(e,t)>=0:!1}function Gt(e,t,n){let r=$(),o=xd();if(fc(r,o,t)){let i=Pe(),s=kd();ry(i,s,r,e,t,r[se],n,!1)}return Gt}function Pl(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";sc(e,n,i[s],s,r)}function hi(e,t,n){return AD(e,t,n,!1),hi}function AD(e,t,n,r){let o=$(),i=Pe(),s=Nm(2);if(i.firstUpdatePass&&OD(i,e,s,r),t!==mr&&fc(o,s,t)){let a=i.data[pr()];jD(i,a,o,o[se],e,o[s+1]=VD(t,n),r,s)}}function RD(e,t){return t>=e.expandoStartIndex}function OD(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[pr()],s=RD(e,n);$D(i,r)&&t===null&&!s&&(t=!1),t=PD(o,i,t,r),xD(o,i,t,n,s,r)}}function PD(e,t,n,r){let o=Pm(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ps(null,e,t,n,r),n=ar(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Ps(o,e,t,n,r),i===null){let c=kD(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Ps(null,e,t,c[1],r),c=ar(c,t.attrs,r),FD(e,t,r,c))}else i=LD(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function kD(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Sn(r)!==0)return e[Ht(r)]}function FD(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Ht(o)]=r}function LD(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===mr&&(h=d?Ne:void 0);let f=d?bs(h,r):l===r?h:void 0;if(u&&!Zo(f)&&(f=bs(c,r)),Zo(f)&&(a=f,s))return a;let m=e[o+1];o=s?Ht(m):Sn(m)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=bs(c,r))}return a}function Zo(e){return e!==void 0}function VD(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ce(gr(e)))),e}function $D(e,t){return(e.flags&(t?8:16))!==0}function BD(e,t,n,r,o,i){let s=t.consts,a=Lo(s,o),c=ai(t,e,2,r,a);return xf(t,n,c,Lo(s,i)),c.attrs!==null&&da(c,c.attrs,!1),c.mergedAttrs!==null&&da(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function z(e,t,n,r){let o=$(),i=Pe(),s=et+e,a=o[se],c=i.firstCreatePass?BD(s,i,o,t,n,r):i.data[s],u=UD(i,o,c,a,t,e);o[s]=u;let l=Fa(c);return hr(c,!0),yf(a,u,c),!vD(c)&&Ba()&&rc(i,o,u,c),Dm()===0&&Bt(u,o),wm(),l&&(Mf(i,o,c),bf(i,c,o)),r!==null&&Sf(o,c),z}function W(){let e=ye();Sd()?Sm():(e=e.parent,hr(e,!1));let t=e;Em(t)&&bm(),Cm();let n=Pe();return n.firstCreatePass&&(Ha(n,e),pd(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&Bm(t)&&Pl(n,t,$(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Um(t)&&Pl(n,t,$(),t.stylesWithoutHost,!1),W}function it(e,t,n,r){return z(e,t,n,r),W(),it}var UD=(e,t,n,r,o,i)=>(Ua(!0),lf(r,o,Lm()));function yr(){return $()}var Yo="en-US";var HD=Yo;function zD(e){typeof e=="string"&&(HD=e.toLowerCase().replace(/_/g,"-"))}var GD=(e,t,n)=>{};function Z(e,t,n,r){let o=$(),i=Pe(),s=ye();return WD(i,o,o[se],s,e,t,r),Z}function qD(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 WD(e,t,n,r,o,i,s){let a=Fa(r),u=e.firstCreatePass&&Pf(e),l=t[Re],d=Of(t),h=!0;if(r.type&3||s){let N=Me(r,t),F=s?s(N):N,j=d.length,ue=s?_e=>s(Ge(_e[r.index])):r.index,le=null;if(!s&&a&&(le=qD(e,t,o,r.index)),le!==null){let _e=le.__ngLastListenerFn__||le;_e.__ngNextListenerFn__=i,le.__ngLastListenerFn__=i,h=!1}else{i=Ll(r,t,l,i),GD(N,o,i);let _e=n.listen(F,o,i);d.push(i,_e),u&&u.push(o,ue,j,j+1)}}else i=Ll(r,t,l,i);let f=r.outputs,m;if(h&&f!==null&&(m=f[o])){let N=m.length;if(N)for(let F=0;F-1?Et(e.index,t):t;cc(s,5);let a=Fl(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=Fl(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function fe(e=1){return Fm(e)}function gc(e,t,n){dD(e,t,n)}function pi(e){let t=$(),n=Pe(),r=Td();ja(r+1);let o=lc(n,r);if(e.dirty&&gm(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=pD(t,r);e.reset(i,lv),e.notifyOnChanges()}return!0}return!1}function gi(){return uD($(),Td())}function Zf(e){let t=_m();return pm(t,et+e)}function re(e,t=""){let n=$(),r=Pe(),o=e+et,i=r.firstCreatePass?ai(r,o,1,t,null):r.data[o],s=ZD(r,n,i,t,e);n[o]=s,Ba()&&rc(r,n,s,i),hr(i,!1)}var ZD=(e,t,n,r,o)=>(Ua(!0),Tv(t[se],r));var YD=(()=>{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=cd(!1,n.type),o=r.length>0?fi([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 Mt(e){di("NgStandalone"),e.getStandaloneInjector=t=>t.get(YD).getOrCreateStandaloneInjector(e)}function Yf(e,t,n){let r=xm()+e,o=$();return o[r]===mr?gD(o,r,n?t.call(n):t()):mD(o,r)}var mi=(()=>{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 Qf=new I("");function Dr(e){return!!e&&typeof e.then=="function"}function Xf(e){return!!e&&typeof e.subscribe=="function"}var On=new I(""),Kf=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=p(On,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=o();if(Dr(i))n.push(i);else if(Xf(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})(),vi=new I("");function QD(){Cu(()=>{throw new w(600,!1)})}function XD(e){return e.isBoundToModule}var KD=10;function JD(e,t,n){try{let r=n();return Dr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Ze=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(cv),this.afterRenderManager=p(Wf),this.zonelessEnabled=p(ui),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new q,this.afterTick=new q,this.componentTypes=[],this.components=[],this.isStable=p(An).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 Go;if(!this._injector.get(Kf).done){let h=!o&&od(n),f=!1;throw new w(405,f)}let s;o?s=n:s=this._injector.get(En).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=XD(s)?void 0:this._injector.get(Ct),c=r||s.selector,u=s.create(be.NULL,[],c,a),l=u.location.nativeElement,d=u.injector.get(Qf,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),_o(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(bn,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++ti(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;_o(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(vi,[]);[...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),()=>_o(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 _o(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function ew(e,t,n,r){if(!n&&!ti(e))return;jf(e,t,n&&!r?0:1)}var Ma=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},yi=(()=>{class e{compileModuleSync(n){return new wa(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=id(n),i=uf(o.declarations).reduce((s,a)=>{let c=wt(a);return c&&s.push(new Mn(c)),s},[]);return new Ma(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 tw=(()=>{class e{constructor(){this.zone=p(H),this.changeDetectionScheduler=p(In),this.applicationRef=p(Ze)}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})(),nw=new I("",{factory:()=>!1});function Jf({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new H(B(g({},th()),{scheduleInRootZone:n})),[{provide:H,useFactory:e},{provide:vn,multi:!0,useFactory:()=>{let r=p(tw,{optional:!0});return()=>r.initialize()}},{provide:vn,multi:!0,useFactory:()=>{let r=p(rw);return()=>{r.initialize()}}},t===!0?{provide:Uf,useValue:!0}:[],{provide:Hf,useValue:n??Yd}]}function eh(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=Jf({ngZoneFactory:()=>{let o=th(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&di("NgZone_CoalesceEvent"),new H(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return Tn([{provide:nw,useValue:!0},{provide:ui,useValue:!1},r])}function th(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var rw=(()=>{class e{constructor(){this.subscription=new G,this.initialized=!1,this.zone=p(H),this.pendingTasks=p(An)}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(()=>{H.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{H.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 ow=(()=>{class e{constructor(){this.appRef=p(Ze),this.taskService=p(An),this.ngZone=p(H),this.zonelessEnabled=p(ui),this.disableScheduling=p(Uf,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new G,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Bo):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(Hf,{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 ea||!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?Dl:Qd;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(Bo+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,Dl(()=>{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 iw(){return typeof $localize<"u"&&$localize.locale||Yo}var mc=new I("",{providedIn:"root",factory:()=>p(mc,S.Optional|S.SkipSelf)||iw()});var Sa=new I("");function Io(e){return!e.moduleRef}function sw(e){let t=Io(e)?e.r3Injector:e.moduleRef.injector,n=t.get(H);return n.run(()=>{Io(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(tt,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Io(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Sa);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Sa);s.add(i),e.moduleRef.onDestroy(()=>{_o(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return JD(r,n,()=>{let i=t.get(Kf);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(mc,Yo);if(zD(s||Yo),Io(e)){let a=t.get(Ze);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return aw(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function aw(e,t){let n=e.injector.get(Ze);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 xo=null;function cw(e=[],t){return be.create({name:t,providers:[{provide:Ko,useValue:"platform"},{provide:Sa,useValue:new Set([()=>xo=null])},...e]})}function uw(e=[]){if(xo)return xo;let t=cw(e);return xo=t,QD(),lw(t),t}function lw(e){e.get(Xa,null)?.forEach(n=>n())}function nh(){return!1}var wr=(()=>{class e{static{this.__NG_ELEMENT_ID__=dw}}return e})();function dw(e){return fw(ye(),$(),(e&16)===16)}function fw(e,t,n){if(ei(e)&&!n){let r=Et(e.index,t);return new Ut(r,r)}else if(e.type&175){let r=t[ze];return new Ut(r,t)}return null}function rh(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=uw(r),i=[Jf({}),{provide:In,useExisting:ow},...n||[]],s=new Wo({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return sw({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function Cr(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function oh(e){let t=wt(e);if(!t)return null;let n=new Mn(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 uh=null;function Pn(){return uh}function lh(e){uh??=e}var Di=class{};var he=new I(""),wc=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(hw),providedIn:"platform"})}}return e})(),dh=new I(""),hw=(()=>{class e extends wc{constructor(){super(),this._doc=p(he),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Pn().getBaseHref(this._doc)}onPopState(n){let r=Pn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Pn().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 Cc(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 ih(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 st(e){return e&&e[0]!=="?"?"?"+e:e}var at=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(Ic),providedIn:"root"})}}return e})(),fh=new I(""),Ic=(()=>{class e extends at{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 Cc(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+st(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+st(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+st(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(wc),E(fh,8))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),hh=(()=>{class e extends at{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=Cc(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+st(i));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+st(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(wc),E(fh,8))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),kn=(()=>{class e{constructor(n){this._subject=new oe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=mw(ih(sh(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+st(r))}normalize(n){return e.stripTrailingSlash(gw(this._basePath,sh(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+st(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+st(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=st}static{this.joinWithSlash=Cc}static{this.stripTrailingSlash=ih}static{this.\u0275fac=function(r){return new(r||e)(E(at))}}static{this.\u0275prov=y({token:e,factory:()=>pw(),providedIn:"root"})}}return e})();function pw(){return new kn(E(at))}function gw(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function sh(e){return e.replace(/\/index.html$/,"")}function mw(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function ph(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 Ci=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new vc,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){ah("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){ah("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)(We(zt),We(Cn))}}static{this.\u0275dir=lr({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return e})(),vc=class{constructor(){this.$implicit=null,this.ngIf=null}};function ah(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${ce(t)}'.`)}var Wt=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=xn({type:e})}static{this.\u0275inj=_n({})}}return e})(),Ec="browser",vw="server";function Ii(e){return e===Ec}function bc(e){return e===vw}var gh=(()=>{class e{static{this.\u0275prov=y({token:e,providedIn:"root",factory:()=>Ii(p(ke))?new yc(p(he),window):new Dc})}}return e})(),yc=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=yw(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 yw(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 Dc=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},wi=class{};var xc=class extends Di{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Tc=class e extends xc{static makeCurrent(){lh(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=Dw();return n==null?null:ww(n)}resetBaseElement(){Ir=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ph(document.cookie,t)}},Ir=null;function Dw(){return Ir=Ir||document.querySelector("base"),Ir?Ir.getAttribute("href"):null}function ww(e){return new URL(e,document.baseURI).pathname}var Cw=(()=>{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})(),Nc=new I(""),Dh=(()=>{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(Nc),E(H))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),Ei=class{constructor(t){this._doc=t}},Sc="ng-app-id",wh=(()=>{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=bc(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[${Sc}="${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(Sc),i;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Sc,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(Qa),E(Ka,8),E(ke))}}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"},Rc=/%COMP%/g,Ch="%COMP%",Iw=`_nghost-${Ch}`,Ew=`_ngcontent-${Ch}`,bw=!0,Mw=new I("",{providedIn:"root",factory:()=>bw});function Sw(e){return Ew.replace(Rc,e)}function _w(e){return Iw.replace(Rc,e)}function Ih(e,t){return t.map(n=>n.replace(Rc,e))}var mh=(()=>{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=bc(a),this.defaultRenderer=new Er(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ue.ShadowDom&&(r=B(g({},r),{encapsulation:Ue.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof bi?o.applyToHost(n):o instanceof br&&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 Ue.Emulated:i=new bi(c,u,r,this.appId,l,s,a,d);break;case Ue.ShadowDom:return new Ac(c,u,n,r,s,a,this.nonce,d);default:i=new br(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(Dh),E(wh),E(Qa),E(Mw),E(he),E(ke),E(H),E(Ka))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),Er=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){(vh(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(vh(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&(nt.DashCase|nt.Important)?t.style.setProperty(n,r,o&nt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&nt.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=Pn().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 vh(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Ac=class extends Er{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=Ih(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)}},br=class extends Er{constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?Ih(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},bi=class extends br{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=Sw(u),this.hostAttr=_w(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}},xw=(()=>{class e extends Ei{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})(),yh=["alt","control","meta","shift"],Tw={"\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"},Nw={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Aw=(()=>{class e extends Ei{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(()=>Pn().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."),yh.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=Tw[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"),yh.forEach(s=>{if(s!==o){let a=Nw[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 Eh(e,t){return rh(g({rootComponent:e},Rw(t)))}function Rw(e){return{appProviders:[...Lw,...e?.providers??[]],platformProviders:Fw}}function Ow(){Tc.makeCurrent()}function Pw(){return new tt}function kw(){return rf(document),document}var Fw=[{provide:ke,useValue:Ec},{provide:Xa,useValue:Ow,multi:!0},{provide:he,useFactory:kw,deps:[]}];var Lw=[{provide:Ko,useValue:"root"},{provide:tt,useFactory:Pw,deps:[]},{provide:Nc,useClass:xw,multi:!0,deps:[he,H,ke]},{provide:Nc,useClass:Aw,multi:!0,deps:[he]},mh,wh,Dh,{provide:bn,useExisting:mh},{provide:wi,useClass:Cw,deps:[]},[]];var bh=(()=>{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",Vr=Symbol("RouteTitle"),Lc=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 Bn(e){return new Lc(e)}function Vw(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 Fh(e){return e.length>0?e[e.length-1]:null}function xt(e){return ms(e)?e:Dr(e)?V(Promise.resolve(e)):D(e)}var Bw={exact:jh,subset:Vh},Lh={exact:Uw,subset:Hw,ignored:()=>!0};function Mh(e,t,n){return Bw[n.paths](e.root,t.root,n.matrixParams)&&Lh[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function Uw(e,t){return Ye(e,t)}function jh(e,t,n){if(!Yt(e.segments,t.segments)||!_i(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!jh(e.children[r],t.children[r],n))return!1;return!0}function Hw(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>kh(e[n],t[n]))}function Vh(e,t,n){return $h(e,t,t.segments,n)}function $h(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!Yt(o,n)||t.hasChildren()||!_i(o,n,r))}else if(e.segments.length===n.length){if(!Yt(e.segments,n)||!_i(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!Vh(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!Yt(e.segments,o)||!_i(e.segments,o,r)||!e.children[M]?!1:$h(e.children[M],t,i,r)}}function _i(e,t,n){return t.every((r,o)=>Lh[n](e[o].parameters,r.parameters))}var ut=class{constructor(t=new P([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Bn(this.queryParams),this._queryParamMap}toString(){return qw.serialize(this)}},P=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 xi(this)}},Zt=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Bn(this.parameters),this._parameterMap}toString(){return Uh(this)}};function zw(e,t){return Yt(e,t)&&e.every((n,r)=>Ye(n.parameters,t[r].parameters))}function Yt(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function Gw(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 $r=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>new Un,providedIn:"root"})}}return e})(),Un=class{parse(t){let n=new $c(t);return new ut(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Mr(t.root,!0)}`,r=Yw(t.queryParams),o=typeof t.fragment=="string"?`#${Ww(t.fragment)}`:"";return`${n}${r}${o}`}},qw=new Un;function xi(e){return e.segments.map(t=>Uh(t)).join("/")}function Mr(e,t){if(!e.hasChildren())return xi(e);if(t){let n=e.children[M]?Mr(e.children[M],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==M&&r.push(`${o}:${Mr(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=Gw(e,(r,o)=>o===M?[Mr(e.children[M],!1)]:[`${o}:${Mr(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[M]!=null?`${xi(e)}/${n[0]}`:`${xi(e)}/(${n.join("//")})`}}function Bh(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Mi(e){return Bh(e).replace(/%3B/gi,";")}function Ww(e){return encodeURI(e)}function Vc(e){return Bh(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ti(e){return decodeURIComponent(e)}function Sh(e){return Ti(e.replace(/\+/g,"%20"))}function Uh(e){return`${Vc(e.path)}${Zw(e.parameters)}`}function Zw(e){return Object.entries(e).map(([t,n])=>`;${Vc(t)}=${Vc(n)}`).join("")}function Yw(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${Mi(n)}=${Mi(o)}`).join("&"):`${Mi(n)}=${Mi(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var Qw=/^[^\/()?;#]+/;function Oc(e){let t=e.match(Qw);return t?t[0]:""}var Xw=/^[^\/()?;=#]+/;function Kw(e){let t=e.match(Xw);return t?t[0]:""}var Jw=/^[^=?&#]+/;function eC(e){let t=e.match(Jw);return t?t[0]:""}var tC=/^[^&#]+/;function nC(e){let t=e.match(tC);return t?t[0]:""}var $c=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new P([],{}):new P([],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 P(t,n)),r}parseSegment(){let t=Oc(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(t),new Zt(Ti(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=Kw(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=Oc(this.remaining);o&&(r=o,this.capture(r))}t[Ti(n)]=Ti(r)}parseQueryParam(t){let n=eC(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=nC(this.remaining);s&&(r=s,this.capture(r))}let o=Sh(n),i=Sh(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=Oc(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 P([],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 Hh(e){return e.segments.length>0?new P([],{[M]:e}):e}function zh(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=zh(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 P(e.segments,t);return rC(n)}function rC(e){if(e.numberOfChildren===1&&e.children[M]){let t=e.children[M];return new P(e.segments.concat(t.segments),t.children)}return e}function Qt(e){return e instanceof ut}function oC(e,t,n=null,r=null){let o=Gh(e);return qh(o,t,n,r)}function Gh(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 P(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=Hh(r);return t??o}function qh(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return Pc(o,o,o,n,r);let i=iC(t);if(i.toRoot())return Pc(o,o,new P([],{}),n,r);let s=sC(i,o,e),a=s.processChildren?xr(s.segmentGroup,s.index,i.commands):Zh(s.segmentGroup,s.index,i.commands);return Pc(o,s.segmentGroup,a,n,r)}function Ni(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Ar(e){return typeof e=="object"&&e!=null&&e.outlets}function Pc(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=Wh(e,t,n);let a=Hh(zh(s));return new ut(a,i,o)}function Wh(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=Wh(i,t,n)}),new P(e.segments,r)}var Ai=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Ni(r[0]))throw new w(4003,!1);let o=r.find(Ar);if(o&&o!==Fh(r))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function iC(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Ai(!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 Ai(n,t,r)}var jn=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function sC(e,t,n){if(e.isAbsolute)return new jn(t,!0,0);if(!n)return new jn(t,!1,NaN);if(n.parent===null)return new jn(n,!0,0);let r=Ni(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 jn(r,!1,o-i)}function cC(e){return Ar(e[0])?e[0].outlets:{[M]:e}}function Zh(e,t,n){if(e??=new P([],{}),e.segments.length===0&&e.hasChildren())return xr(e,t,n);let r=uC(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=xr(e.children[M],t,n);return new P(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Zh(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new P(e.segments,o)}}function uC(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(Ar(a))break;let c=`${a}`,u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!xh(c,u,s))return i;r+=2}else{if(!xh(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function Bc(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Bc(new P([],{}),0,r))}),t}function _h(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function xh(e,t,n){return e==n.path&&Ye(t,n.parameters)}var Tr="imperative",J=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}(J||{}),Se=class{constructor(t,n){this.id=t,this.url=n}},Hn=class extends Se{constructor(t,n,r="imperative",o=null){super(t,n),this.type=J.NavigationStart,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Qe=class extends Se{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=J.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},we=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(we||{}),Ri=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Ri||{}),ct=class extends Se{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=J.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},St=class extends Se{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=J.NavigationSkipped}},Rr=class extends Se{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=J.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Oi=class extends Se{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=J.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Uc=class extends Se{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=J.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Hc=class extends Se{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=J.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},zc=class extends Se{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=J.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Gc=class extends Se{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=J.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qc=class{constructor(t){this.route=t,this.type=J.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Wc=class{constructor(t){this.route=t,this.type=J.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Zc=class{constructor(t){this.snapshot=t,this.type=J.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Yc=class{constructor(t){this.snapshot=t,this.type=J.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Qc=class{constructor(t){this.snapshot=t,this.type=J.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Xc=class{constructor(t){this.snapshot=t,this.type=J.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Pi=class{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=J.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},Or=class{},zn=class{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function dC(e,t){return e.providers&&!e._injector&&(e._injector=fi(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Fe(e){return e.outlet||M}function fC(e,t){let n=e.filter(r=>Fe(r)===t);return n.push(...e.filter(r=>Fe(r)!==t)),n}function Br(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 Kc=class{get injector(){return Br(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new Ur(this.rootInjector),this.attachRef=null}},Ur=(()=>{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 Kc(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})(),ki=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=Jc(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Jc(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=eu(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return eu(t,this._root).map(n=>n.value)}};function Jc(e,t){if(e===t.value)return t;for(let n of t.children){let r=Jc(e,n);if(r)return r}return null}function eu(e,t){if(e===t.value)return[t];for(let n of t.children){let r=eu(e,n);if(r.length)return r.unshift(t),r}return[]}var De=class{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Ln(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Fi=class extends ki{constructor(t,n){super(t),this.snapshot=n,uu(this,t)}toString(){return this.snapshot.toString()}};function Yh(e){let t=hC(e),n=new ee([new Zt("",{})]),r=new ee({}),o=new ee({}),i=new ee({}),s=new ee(""),a=new _t(n,r,i,s,o,M,e,t.root);return a.snapshot=t.root,new Fi(new De(a,[]),t)}function hC(e){let t={},n={},r={},o="",i=new Vn([],t,r,o,n,M,e,null,{});return new ji("",new De(i,[]))}var _t=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[Vr]))??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=>Bn(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(b(t=>Bn(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Li(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&&Xh(o)&&(r.resolve[Vr]=o.title),r}var Vn=class{get title(){return this.data?.[Vr]}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??=Bn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Bn(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}')`}},ji=class extends ki{constructor(t,n){super(n),this.url=t,uu(this,n)}toString(){return Qh(this._root)}};function uu(e,t){t.value._routerState=e,t.children.forEach(n=>uu(e,n))}function Qh(e){let t=e.children.length>0?` { ${e.children.map(Qh).join(", ")} } `:"";return`${e.value}${t}`}function kc(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Ye(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Ye(t.params,n.params)||e.paramsSubject.next(n.params),$w(t.url,n.url)||e.urlSubject.next(n.url),Ye(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function tu(e,t){let n=Ye(e.params,t.params)&&zw(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||tu(e.parent,t.parent))}function Xh(e){return typeof e.title=="string"||e.title===null}var lu=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=M,this.activateEvents=new oe,this.deactivateEvents=new oe,this.attachEvents=new oe,this.detachEvents=new oe,this.parentContexts=p(Ur),this.location=p(zt),this.changeDetector=p(wr),this.inputBinder=p(Ui,{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 nu(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=lr({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[fr]})}}return e})(),nu=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===_t?this.route:t===Ur?this.childContexts:this.parent.get(t,n)}},Ui=new I(""),Th=(()=>{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=Qn([r.queryParams,r.params,r.data]).pipe(ne(([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=oh(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=Pr(e,t._root,n?n._root:void 0);return new Fi(r,t)}function Pr(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=gC(e,t,n);return new De(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=>Pr(e,a)),s}}let r=mC(t.value),o=t.children.map(i=>Pr(e,i));return new De(r,o)}}function gC(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Pr(e,r,o);return Pr(e,r)})}function mC(e){return new _t(new ee(e.url),new ee(e.params),new ee(e.queryParams),new ee(e.fragment),new ee(e.data),e.outlet,e.component,e)}var kr=class{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},Kh="ngNavigationCancelingError";function Vi(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Qt(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Jh(!1,we.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function Jh(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[Kh]=!0,n.cancellationCode=t,n}function vC(e){return ep(e)&&Qt(e.url)}function ep(e){return!!e&&e[Kh]}var yC=(e,t,n,r)=>b(o=>(new ru(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),ru=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),kc(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=Ln(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=Ln(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=Ln(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=Ln(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Xc(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Yc(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(kc(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),kc(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)}},$i=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},$n=class{constructor(t,n){this.component=t,this.route=n}};function DC(e,t,n){let r=e._root,o=t?t._root:null;return Sr(r,o,n,[r.value])}function wC(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function qn(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Ul(e)?e:t.get(e):r}function Sr(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Ln(t);return e.children.forEach(s=>{CC(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Nr(a,n.getContext(s),o)),o}function CC(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=IC(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new $i(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Sr(e,t,a?a.children:null,r,o):Sr(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new $n(a.outlet.component,s))}else s&&Nr(t,a,o),o.canActivateChecks.push(new $i(r)),i.component?Sr(e,null,a?a.children:null,r,o):Sr(e,null,n,r,o);return o}function IC(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!Yt(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Yt(e.url,t.url)||!Ye(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tu(e,t)||!Ye(e.queryParams,t.queryParams);case"paramsChange":default:return!tu(e,t)}}function Nr(e,t,n){let r=Ln(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?Nr(s,t.children.getContext(i),n):Nr(s,null,n):Nr(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new $n(t.outlet.component,o)):n.canDeactivateChecks.push(new $n(null,o)):n.canDeactivateChecks.push(new $n(null,o))}function Hr(e){return typeof e=="function"}function EC(e){return typeof e=="boolean"}function bC(e){return e&&Hr(e.canLoad)}function MC(e){return e&&Hr(e.canActivate)}function SC(e){return e&&Hr(e.canActivateChild)}function _C(e){return e&&Hr(e.canDeactivate)}function xC(e){return e&&Hr(e.canMatch)}function tp(e){return e instanceof Ke||e?.name==="EmptyError"}var Si=Symbol("INITIAL_VALUE");function Gn(){return ne(e=>Qn(e.map(t=>t.pipe(Y(1),Is(Si)))).pipe(b(t=>{for(let n of t)if(n!==!0){if(n===Si)return Si;if(n===!1||TC(n))return n}return!0}),te(t=>t!==Si),Y(1)))}function TC(e){return Qt(e)||e instanceof kr}function NC(e,t){return U(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?D(B(g({},n),{guardsResult:!0})):AC(s,r,o,e).pipe(U(a=>a&&EC(a)?RC(r,i,e,t):D(a)),b(a=>B(g({},n),{guardsResult:a})))})}function AC(e,t,n,r){return V(e).pipe(U(o=>LC(o.component,o.route,n,t,r)),Ve(o=>o!==!0,!0))}function RC(e,t,n,r){return V(t).pipe(kt(o=>je(PC(o.route.parent,r),OC(o.route,r),FC(e,o.path,n),kC(e,o.route,n))),Ve(o=>o!==!0,!0))}function OC(e,t){return e!==null&&t&&t(new Qc(e)),D(!0)}function PC(e,t){return e!==null&&t&&t(new Zc(e)),D(!0)}function kC(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return D(!0);let o=r.map(i=>Ot(()=>{let s=Br(t)??n,a=qn(i,s),c=MC(a)?a.canActivate(t,e):qe(s,()=>a(t,e));return xt(c).pipe(Ve())}));return D(o).pipe(Gn())}function FC(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>wC(s)).filter(s=>s!==null).map(s=>Ot(()=>{let a=s.guards.map(c=>{let u=Br(s.node)??n,l=qn(c,u),d=SC(l)?l.canActivateChild(r,e):qe(u,()=>l(r,e));return xt(d).pipe(Ve())});return D(a).pipe(Gn())}));return D(i).pipe(Gn())}function LC(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=Br(t)??o,u=qn(a,c),l=_C(u)?u.canDeactivate(e,t,n,r):qe(c,()=>u(e,t,n,r));return xt(l).pipe(Ve())});return D(s).pipe(Gn())}function jC(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=qn(s,e),c=bC(a)?a.canLoad(t,n):qe(e,()=>a(t,n));return xt(c)});return D(i).pipe(Gn(),np(r))}function np(e){return us(Q(t=>{if(typeof t!="boolean")throw Vi(e,t)}),b(t=>t===!0))}function VC(e,t,n,r){let o=t.canMatch;if(!o||o.length===0)return D(!0);let i=o.map(s=>{let a=qn(s,e),c=xC(a)?a.canMatch(t,n):qe(e,()=>a(t,n));return xt(c)});return D(i).pipe(Gn(),np(r))}var Fr=class{constructor(t){this.segmentGroup=t||null}},Lr=class extends Error{constructor(t){super(),this.urlTree=t}};function Fn(e){return ft(new Fr(e))}function $C(e){return ft(new w(4e3,!1))}function BC(e){return ft(Jh(!1,we.GuardRejected))}var ou=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 $C(`${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:N}=o,F=qe(i,()=>a({params:f,data:m,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,title:N}));if(F instanceof ut)throw new Lr(F);n=F}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new Lr(s);return s}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new ut(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 P(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}},iu={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function UC(e,t,n,r,o){let i=rp(e,t,n);return i.matched?(r=dC(t,r),VC(r,t,n,o).pipe(b(s=>s===!0?i:g({},iu)))):D(i)}function rp(e,t,n){if(t.path==="**")return HC(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?g({},iu):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||Vw)(n,e,t);if(!o)return g({},iu);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 HC(e){return{matched:!0,parameters:e.length>0?Fh(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function Nh(e,t,n,r){return n.length>0&&qC(e,n,r)?{segmentGroup:new P(t,GC(r,new P(n,e.children))),slicedSegments:[]}:n.length===0&&WC(e,n,r)?{segmentGroup:new P(e.segments,zC(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new P(e.segments,e.children),slicedSegments:n}}function zC(e,t,n,r){let o={};for(let i of n)if(Hi(e,t,i)&&!r[Fe(i)]){let s=new P([],{});o[Fe(i)]=s}return g(g({},r),o)}function GC(e,t){let n={};n[M]=t;for(let r of e)if(r.path===""&&Fe(r)!==M){let o=new P([],{});n[Fe(r)]=o}return n}function qC(e,t,n){return n.some(r=>Hi(e,t,r)&&Fe(r)!==M)}function WC(e,t,n){return n.some(r=>Hi(e,t,r))}function Hi(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function ZC(e,t,n){return t.length===0&&!e.children[n]}var su=class{};function YC(e,t,n,r,o,i,s="emptyOnly"){return new au(e,t,n,r,o,s,i).recognize()}var QC=31,au=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 ou(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new w(4002,`'${t.segmentGroup}'`)}recognize(){let t=Nh(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(b(({children:n,rootSnapshot:r})=>{let o=new De(r,n),i=new ji("",o),s=oC(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 Vn([],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})),pt(r=>{if(r instanceof Lr)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Fr?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 De?[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 V(i).pipe(kt(s=>{let a=r.children[s],c=fC(n,s);return this.processSegmentGroup(t,c,a,s,o)}),Cs((s,a)=>(s.push(...a),s)),gt(null),Ds(),U(s=>{if(s===null)return Fn(r);let a=op(s);return XC(a),D(a)}))}processSegment(t,n,r,o,i,s,a){return V(n).pipe(kt(c=>this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a).pipe(pt(u=>{if(u instanceof Fr)return D(null);throw u}))),Ve(c=>!!c),pt(c=>{if(tp(c))return ZC(r,o,i)?D(new su):Fn(r);throw c}))}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return Fe(r)!==s&&(s===M||!Hi(o,i,r))?Fn(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):Fn(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=rp(n,o,i);if(!c)return Fn(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>QC&&(this.allowRedirects=!1));let f=new Vn(i,u,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Ah(o),Fe(o),o.component??o._loadedComponent??null,o,Rh(o)),m=Li(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(m.params),f.data=Object.freeze(m.data);let N=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,t);return this.applyRedirects.lineralizeSegments(o,N).pipe(U(F=>this.processSegment(t,r,n,F.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a=UC(n,r,o,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(ne(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,o).pipe(ne(({routes:u})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=c,m=new Vn(h,d,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Ah(r),Fe(r),r.component??r._loadedComponent??null,r,Rh(r)),N=Li(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(N.params),m.data=Object.freeze(N.data);let{segmentGroup:F,slicedSegments:j}=Nh(n,h,f,u);if(j.length===0&&F.hasChildren())return this.processChildren(l,u,F,m).pipe(b(le=>new De(m,le)));if(u.length===0&&j.length===0)return D(new De(m,[]));let ue=Fe(r)===i;return this.processSegment(l,u,F,j,ue?M:i,!0,m).pipe(b(le=>new De(m,le instanceof De?[le]:[])))}))):Fn(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}):jC(t,n,r,this.urlSerializer).pipe(U(o=>o?this.configLoader.loadChildren(t,n).pipe(Q(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):BC(n))):D({routes:[],injector:t})}};function XC(e){e.sort((t,n)=>t.value.outlet===M?-1:n.value.outlet===M?1:t.value.outlet.localeCompare(n.value.outlet))}function KC(e){let t=e.value.routeConfig;return t&&t.path===""}function op(e){let t=[],n=new Set;for(let r of e){if(!KC(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=op(r.children);t.push(new De(r.value,o))}return t.filter(r=>!n.has(r))}function Ah(e){return e.data||{}}function Rh(e){return e.resolve||{}}function JC(e,t,n,r,o,i){return U(s=>YC(e,t,n,r,s.extractedUrl,o,i).pipe(b(({state:a,tree:c})=>B(g({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function eI(e,t){return U(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 ip(c))s.add(u);let a=0;return V(s).pipe(kt(c=>i.has(c)?tI(c,r,e,t):(c.data=Li(c,c.parent,e).resolve,D(void 0))),Q(()=>a++),un(1),U(c=>a===s.size?D(n):ae))})}function ip(e){let t=e.children.map(n=>ip(n)).flat();return[e,...t]}function tI(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!Xh(o)&&(i[Vr]=o.title),nI(i,e,t,r).pipe(b(s=>(e._resolvedData=s,e.data=Li(e,e.parent,n).resolve,null)))}function nI(e,t,n,r){let o=jc(e);if(o.length===0)return D({});let i={};return V(o).pipe(U(s=>rI(e[s],t,n,r).pipe(Ve(),Q(a=>{if(a instanceof kr)throw Vi(new Un,a);i[s]=a}))),un(1),Xn(i),pt(s=>tp(s)?ae:ft(s)))}function rI(e,t,n,r){let o=Br(t)??r,i=qn(e,o),s=i.resolve?i.resolve(t,n):qe(o,()=>i(t,n));return xt(s)}function Fc(e){return ne(t=>{let n=e(t);return n?V(n).pipe(b(()=>t)):D(t)})}var sp=(()=>{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[Vr]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(oI),providedIn:"root"})}}return e})(),oI=(()=>{class e extends sp{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(bh))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),zr=new I("",{providedIn:"root",factory:()=>({})}),iI=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=It({type:e,selectors:[["ng-component"]],standalone:!0,features:[Mt],decls:1,vars:0,template:function(r,o){r&1&&it(0,"router-outlet")},dependencies:[lu],encapsulation:2})}}return e})();function du(e){let t=e.children&&e.children.map(du),n=t?B(g({},e),{children:t}):g({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==M&&(n.component=iI),n}var jr=new I(""),fu=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(yi)}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=xt(n.loadComponent()).pipe(b(ap),Q(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),Kn(()=>{this.componentLoaders.delete(n)})),o=new dt(r,()=>new q).pipe(on());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(Kn(()=>{this.childrenLoaders.delete(r)})),s=new dt(i,()=>new q).pipe(on());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 xt(e.loadChildren()).pipe(b(ap),U(o=>o instanceof sr||Array.isArray(o)?D(o):V(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(jr,[],{optional:!0,self:!0}).flat()),{routes:s.map(du),injector:i}}))}function aI(e){return e&&typeof e=="object"&&"default"in e}function ap(e){return aI(e)?e.default:e}var hu=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(cI),providedIn:"root"})}}return e})(),cI=(()=>{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})(),cp=new I(""),up=new I("");function uI(e,t,n){let r=e.get(up),o=e.get(he);return e.get(H).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(),lI(e))),{onViewTransitionCreated:c}=r;return c&&qe(e,()=>c({transition:a,from:t,to:n})),s})}function lI(e){return new Promise(t=>{hc({read:()=>setTimeout(t)},{injector:e})})}var dI=new I(""),pu=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new q,this.transitionAbortSubject=new q,this.configLoader=p(fu),this.environmentInjector=p(ve),this.urlSerializer=p($r),this.rootContexts=p(Ur),this.location=p(kn),this.inputBindingEnabled=p(Ui,{optional:!0})!==null,this.titleStrategy=p(sp),this.options=p(zr,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(hu),this.createViewTransition=p(cp,{optional:!0}),this.navigationErrorHandler=p(dI,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>D(void 0),this.rootComponentType=null;let n=o=>this.events.next(new qc(o)),r=o=>this.events.next(new Wc(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(B(g(g({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new ee({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:Tr,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(te(i=>i.id!==0),b(i=>B(g({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),ne(i=>{let s=!1,a=!1;return D(i).pipe(ne(c=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",we.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?B(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 St(c.id,this.urlSerializer.serialize(c.rawUrl),d,Ri.IgnoredSameUrlNavigation)),c.resolve(!1),ae}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return D(c).pipe(ne(d=>{let h=this.transitions?.getValue();return this.events.next(new Hn(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?ae:Promise.resolve(d)}),JC(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),Q(d=>{i.targetSnapshot=d.targetSnapshot,i.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=B(g({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new Oi(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:N}=c,F=new Hn(d,this.urlSerializer.serialize(h),f,m);this.events.next(F);let j=Yh(this.rootComponentType).snapshot;return this.currentTransition=i=B(g({},c),{targetSnapshot:j,urlAfterRedirects:h,extras:B(g({},N),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,D(i)}else{let d="";return this.events.next(new St(c.id,this.urlSerializer.serialize(c.extractedUrl),d,Ri.IgnoredByUrlHandlingStrategy)),c.resolve(!1),ae}}),Q(c=>{let u=new Uc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),b(c=>(this.currentTransition=i=B(g({},c),{guards:DC(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),i)),NC(this.environmentInjector,c=>this.events.next(c)),Q(c=>{if(i.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw Vi(this.urlSerializer,c.guardsResult);let u=new Hc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),te(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",we.GuardRejected),!1)),Fc(c=>{if(c.guards.canActivateChecks.length)return D(c).pipe(Q(u=>{let l=new zc(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),ne(u=>{let l=!1;return D(u).pipe(eI(this.paramsInheritanceStrategy,this.environmentInjector),Q({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(u,"",we.NoDataFromResolver)}}))}),Q(u=>{let l=new Gc(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}))}),Fc(c=>{let u=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(Q(h=>{l.component=h}),b(()=>{})));for(let h of l.children)d.push(...u(h));return d};return Qn(u(c.targetSnapshot.root)).pipe(gt(null),Y(1))}),Fc(()=>this.afterPreactivation()),ne(()=>{let{currentSnapshot:c,targetSnapshot:u}=i,l=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return l?V(l).pipe(b(()=>i)):D(i)}),b(c=>{let u=pC(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=i=B(g({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,i}),Q(()=>{this.events.next(new Or)}),yC(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Y(1),Q({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Qe(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Es(this.transitionAbortSubject.pipe(Q(c=>{throw c}))),Kn(()=>{!s&&!a&&this.cancelNavigationTransition(i,"",we.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),pt(c=>{if(a=!0,ep(c))this.events.next(new ct(i.id,this.urlSerializer.serialize(i.extractedUrl),c.message,c.cancellationCode)),vC(c)?this.events.next(new zn(c.url,c.navigationBehaviorOptions)):i.resolve(!1);else{let u=new Rr(i.id,this.urlSerializer.serialize(i.extractedUrl),c,i.targetSnapshot??void 0);try{let l=qe(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof kr){let{message:d,cancellationCode:h}=Vi(this.urlSerializer,l);this.events.next(new ct(i.id,this.urlSerializer.serialize(i.extractedUrl),d,h)),this.events.next(new zn(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 ct(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!==Tr}var hI=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(pI),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}},pI=(()=>{class e extends cu{static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Ga(e)))(o||e)}})()}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),lp=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(gI),providedIn:"root"})}}return e})(),gI=(()=>{class e extends lp{constructor(){super(...arguments),this.location=p(kn),this.urlSerializer=p($r),this.options=p(zr,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(hu),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new ut,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Yh(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 Hn)this.stateMemento=this.createStateMemento();else if(n instanceof St)this.rawUrlTree=r.initialUrl;else if(n instanceof Oi){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 Or?(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 ct&&(n.code===we.GuardRejected||n.code===we.NoDataFromResolver)?this.restoreHistory(r):n instanceof Rr?this.restoreHistory(r,!0):n instanceof Qe&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=n instanceof ut?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=Ga(e)))(o||e)}})()}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),_r=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(_r||{});function dp(e,t){e.events.pipe(te(n=>n instanceof Qe||n instanceof ct||n instanceof Rr||n instanceof St),b(n=>n instanceof Qe||n instanceof St?_r.COMPLETE:(n instanceof ct?n.code===we.Redirect||n.code===we.SupersededByNewNavigation:!1)?_r.REDIRECTING:_r.FAILED),te(n=>n!==_r.REDIRECTING),Y(1)).subscribe(()=>{t()})}function mI(e){throw e}var vI={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},yI={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},lt=(()=>{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(mi),this.stateManager=p(lp),this.options=p(zr,{optional:!0})||{},this.pendingTasks=p(An),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(pu),this.urlSerializer=p($r),this.location=p(kn),this.urlHandlingStrategy=p(hu),this._events=new q,this.errorHandler=this.options.errorHandler||mI,this.navigated=!1,this.routeReuseStrategy=p(hI),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(jr,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(Ui,{optional:!0}),this.eventsSubscription=new G,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 ct&&r.code!==we.Redirect&&r.code!==we.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Qe)this.navigated=!0;else if(r instanceof zn){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,Tr,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}wI(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),Tr,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(du),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=Gh(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return qh(d,n,l,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=Qt(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Tr,null,r)}navigate(n,r={skipLocationChange:!1}){return DI(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({},vI):r===!1?o=g({},yI):o=r,Qt(n))return Mh(this.currentUrlTree,n,o);let i=this.parseUrl(n);return Mh(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 dp(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 DI(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 q,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 Qe&&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)):(Qt(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:af(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:Qt(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)(We(lt),We(_t),qa("tabindex"),We(li),We(bt),We(at))}}static{this.\u0275dir=lr({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&Z("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&pc("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Cr],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Cr],replaceUrl:[2,"replaceUrl","replaceUrl",Cr],routerLink:"routerLink"},standalone:!0,features:[dc,fr]})}}return e})();var Bi=class{};var CI=(()=>{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(te(n=>n instanceof Qe),kt(()=>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=fi(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 V(o).pipe(ht())}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(U(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 V([i,s]).pipe(ht())}else return i})}static{this.\u0275fac=function(r){return new(r||e)(E(lt),E(yi),E(ve),E(Bi),E(fu))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),hp=new I(""),II=(()=>{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 Hn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Qe?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof St&&n.code===Ri.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 Pi&&(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 Pi(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(r){wf()}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})();function pp(e,...t){return Tn([{provide:jr,multi:!0,useValue:e},[],{provide:_t,useFactory:gp,deps:[lt]},{provide:vi,multi:!0,useFactory:mp},t.map(n=>n.\u0275providers)])}function gp(e){return e.routerState.root}function Gr(e,t){return{\u0275kind:e,\u0275providers:t}}function mp(){let e=p(be);return t=>{let n=e.get(Ze);if(t!==n.components[0])return;let r=e.get(lt),o=e.get(vp);e.get(gu)===1&&r.initialNavigation(),e.get(yp,null,S.Optional)?.setUpPreloading(),e.get(hp,null,S.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var vp=new I("",{factory:()=>new q}),gu=new I("",{providedIn:"root",factory:()=>1});function EI(){return Gr(2,[{provide:gu,useValue:0},{provide:On,multi:!0,deps:[be],useFactory:t=>{let n=t.get(dh,Promise.resolve());return()=>n.then(()=>new Promise(r=>{let o=t.get(lt),i=t.get(vp);dp(o,()=>{r(!0)}),t.get(pu).afterPreactivation=()=>(r(!0),i.closed?D(void 0):i),o.initialNavigation()}))}}])}function bI(){return Gr(3,[{provide:On,multi:!0,useFactory:()=>{let t=p(lt);return()=>{t.setUpLocationChangeListener()}}},{provide:gu,useValue:2}])}var yp=new I("");function MI(e){return Gr(0,[{provide:yp,useExisting:CI},{provide:Bi,useExisting:e}])}function SI(){return Gr(8,[Th,{provide:Ui,useExisting:Th}])}function _I(e){let t=[{provide:cp,useValue:uI},{provide:up,useValue:g({skipNextTransition:!!e?.skipInitialTransition},e)}];return Gr(9,t)}var Oh=new I("ROUTER_FORROOT_GUARD"),xI=[kn,{provide:$r,useClass:Un},lt,Ur,{provide:_t,useFactory:gp,deps:[lt]},fu,[]],zi=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[xI,[],{provide:jr,multi:!0,useValue:n},{provide:Oh,useFactory:RI,deps:[[lt,new Na,new Yl]]},{provide:zr,useValue:r||{}},r?.useHash?NI():AI(),TI(),r?.preloadingStrategy?MI(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?OI(r):[],r?.bindToComponentInputs?SI().\u0275providers:[],r?.enableViewTransitions?_I().\u0275providers:[],PI()]}}static forChild(n){return{ngModule:e,providers:[{provide:jr,multi:!0,useValue:n}]}}static{this.\u0275fac=function(r){return new(r||e)(E(Oh,8))}}static{this.\u0275mod=xn({type:e})}static{this.\u0275inj=_n({})}}return e})();function TI(){return{provide:hp,useFactory:()=>{let e=p(gh),t=p(H),n=p(zr),r=p(pu),o=p($r);return n.scrollOffset&&e.setOffset(n.scrollOffset),new II(o,r,e,t,n)}}}function NI(){return{provide:at,useClass:hh}}function AI(){return{provide:at,useClass:Ic}}function RI(e){return"guarded"}function OI(e){return[e.initialNavigation==="disabled"?bI().\u0275providers:[],e.initialNavigation==="enabledBlocking"?EI().\u0275providers:[]]}var Ph=new I("");function PI(){return[{provide:Ph,useFactory:mp},{provide:vi,multi:!0,useExisting:Ph}]}var FI=["canvas"],LI=["fileInput"];function jI(e,t){if(e&1){let n=yr();z(0,"div",8),Z("mouseenter",function(){X(n);let o=fe();return K(o.onControlsMouseEnter())})("mouseleave",function(){X(n);let o=fe();return K(o.onControlsMouseLeave())}),z(1,"div",9)(2,"button",10),Z("click",function(){X(n);let o=fe();return K(o.rotatePhoto(-15))}),re(3,"\u21BA"),W(),z(4,"button",10),Z("click",function(){X(n);let o=fe();return K(o.rotatePhoto(15))}),re(5,"\u21BB"),W(),z(6,"button",10),Z("click",function(){X(n);let o=fe();return K(o.scalePhoto(.9))}),re(7,"-"),W(),z(8,"button",10),Z("click",function(){X(n);let o=fe();return K(o.scalePhoto(1.1))}),re(9,"+"),W()(),z(10,"div",9)(11,"button",10),Z("click",function(){X(n);let o=fe();return K(o.moveBackward(o.hoveredPhoto))}),re(12,"\u2193"),W(),z(13,"button",10),Z("click",function(){X(n);let o=fe();return K(o.moveForward(o.hoveredPhoto))}),re(14,"\u2191"),W(),z(15,"button",10),Z("click",function(){X(n);let o=fe();return K(o.moveToBack(o.hoveredPhoto))}),re(16,"\u2913"),W(),z(17,"button",10),Z("click",function(){X(n);let o=fe();return K(o.moveToFront(o.hoveredPhoto))}),re(18,"\u2912"),W()()()}if(e&2){let n=fe();hi("left",n.controlsPosition.x,"px")("top",n.controlsPosition.y,"px")}}var Gi=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;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(){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 Zn(this,null,function*(){for(let n of t){let r=URL.createObjectURL(n),o=new Image;o.src=r,yield o.decode(),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})}this.render()})}render(){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=new Image;r.src=n.url,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 t=this.canvas.toDataURL("image/png"),n=document.createElement("a");n.download="collage.png",n.href=t,n.click()}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.find(i=>r>=i.x&&r<=i.x+i.width&&o>=i.y&&o<=i.y+i.height)||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){let r=n.x*this.scale+this.panX,o=n.y*this.scale+this.panY;this.hoveredPhoto=B(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=[],this.maxZIndex=0,this.scale=1,this.panX=0,this.panY=0,this.hoveredPhoto=null,this.render()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=It({type:e,selectors:[["app-photo-collage"]],viewQuery:function(n,r){if(n&1&&(gc(FI,5),gc(LI,5)),n&2){let o;pi(o=gi())&&(r.canvasRef=o.first),pi(o=gi())&&(r.fileInput=o.first)}},standalone:!0,features:[Mt],decls:14,vars:1,consts:[["canvas",""],["fileInput",""],[1,"collage-container",3,"dragover","drop"],[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,"photo-controls",3,"mouseenter","mouseleave"],[1,"controls-row"],[1,"control-btn",3,"click"]],template:function(n,r){if(n&1){let o=yr();z(0,"div",2),Z("dragover",function(s){return X(o),K(s.preventDefault())})("drop",function(s){return X(o),K(r.handleDrop(s))}),z(1,"div",3),it(2,"canvas",null,0),vr(4,jI,19,4,"div",4),W(),z(5,"input",5,1),Z("change",function(s){return X(o),K(r.handleFileSelect(s))}),W(),z(7,"div",6)(8,"button",7),Z("click",function(){X(o);let s=Zf(6);return K(s.click())}),re(9,"Add Photos"),W(),z(10,"button",7),Z("click",function(){return X(o),K(r.saveCollage())}),re(11,"Save Collage"),W(),z(12,"button",7),Z("click",function(){return X(o),K(r.resetCollage())}),re(13,"Reset"),W()()()}n&2&&(ii(4),Gt("ngIf",r.hoveredPhoto))},dependencies:[Wt,Ci],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}"]})};var VI=()=>["/collage"],qi=class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=It({type:e,selectors:[["app-home"]],standalone:!0,features:[Mt],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&&(z(0,"div",0),it(1,"img",1),z(2,"div",2)(3,"h1"),re(4,"Welcome to Moments"),W(),z(5,"button",3),re(6," Create Collage "),W()()()),n&2&&(ii(5),Gt("routerLink",Yf(1,VI)))},dependencies:[Wt,zi,fp],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 wp=[{path:"",redirectTo:"/home",pathMatch:"full"},{path:"home",component:qi},{path:"collage",component:Gi}];var Wr="Service workers are disabled or not supported by this browser";function $I(e){return Ot(()=>ft(new Error(e)))}var Wn=class{constructor(t){if(this.serviceWorker=t,!t)this.worker=this.events=this.registration=$I(Wr);else{let r=cn(t,"controllerchange").pipe(b(()=>t.controller)),o=Ot(()=>D(t.controller)),i=je(o,r);this.worker=i.pipe(te(l=>!!l)),this.registration=this.worker.pipe(ne(()=>t.getRegistration()));let u=cn(t,"message").pipe(b(l=>l.data)).pipe(te(l=>l&&l.type)).pipe(ws());u.connect(),this.events=u}}postMessage(t,n){return this.worker.pipe(Y(1),Q(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(te(n))}nextEventOfType(t){return this.eventsOfType(t).pipe(Y(1))}waitForOperationCompleted(t){return this.eventsOfType("OPERATION_COMPLETED").pipe(te(n=>n.nonce===t),Y(1),b(n=>{if(n.result!==void 0)return n.result;throw new Error(n.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},BI=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,this.pushManager=null,this.subscriptionChanges=new q,!n.isEnabled){this.messages=Pt,this.notificationClicks=Pt,this.subscription=Pt;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(ne(o=>o.getSubscription()));this.subscription=mo(r,this.subscriptionChanges)}requestSubscription(n){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(Wr));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)),Y(1)).toPromise().then(s=>(this.subscriptionChanges.next(s),s))}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(Wr));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(Y(1),ne(n)).toPromise()}decodeBase64(n){return atob(n)}static{this.\u0275fac=function(r){return new(r||e)(E(Wn))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),UI=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,!n.isEnabled){this.versionUpdates=Pt,this.unrecoverable=Pt;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(Wr));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(Wr));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:n},n)}static{this.\u0275fac=function(r){return new(r||e)(E(Wn))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})();var Cp=new I("");function HI(e,t,n,r){return()=>{if(!(Ii(r)&&"serviceWorker"in navigator&&n.enabled!==!1))return;let o=e.get(H),i=e.get(Ze);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=Ip(+c[0]||0);break;case"registerWhenStable":let u=V(e.get(Ze).whenStable());s=c[0]?mo(u,Ip(+c[0])):u;break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${n.registrationStrategy}`)}}o.runOutsideAngular(()=>s.pipe(Y(1)).subscribe(()=>navigator.serviceWorker.register(t,{scope:n.scope}).catch(a=>console.error("Service worker registration failed with:",a))))}}function Ip(e){return D(null).pipe(ys(e))}function zI(e,t){return new Wn(Ii(t)&&e.enabled!==!1?navigator.serviceWorker:void 0)}var qr=class{};function Ep(e,t={}){return Tn([BI,UI,{provide:Cp,useValue:e},{provide:qr,useValue:t},{provide:Wn,useFactory:zI,deps:[qr,ke]},{provide:On,useFactory:HI,deps:[be,Cp,qr,ke],multi:!0}])}var bp={providers:[eh({eventCoalescing:!0}),pp(wp),Ep("ngsw-worker.js",{enabled:!nh(),registrationStrategy:"registerWhenStable:30000"})]};function GI(e,t){if(e&1){let n=yr();z(0,"button",1),Z("click",function(){X(n);let o=fe();return K(o.installPwa())}),re(1,` Install App -`),W()}}var Wi=class e{deferredPrompt;showInstallButton=!1;ngOnInit(){window.addEventListener("beforeinstallprompt",t=>{t.preventDefault(),this.deferredPrompt=t,this.showInstallButton=!0})}installPwa(){return Zn(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=It({type:e,selectors:[["app-root"]],standalone:!0,features:[Mt],decls:2,vars:1,consts:[["class","install-button",3,"click",4,"ngIf"],[1,"install-button",3,"click"]],template:function(n,r){n&1&&(vr(0,GI,2,0,"button",0),it(1,"router-outlet")),n&2&&Gt("ngIf",r.showInstallButton)},dependencies:[lu,Wt,Ci,zi],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}"]})};Eh(Wi,bp).catch(e=>console.error(e)); diff --git a/ngsw.json b/ngsw.json index bc4ad73..79306ad 100644 --- a/ngsw.json +++ b/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1731797512205, + "timestamp": 1731798702612, "index": "/index.html", "assetGroups": [ { @@ -12,7 +12,7 @@ }, "urls": [ "/index.html", - "/main-IAPDGBLK.js", + "/main-2AJKMG4J.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": "b0cbf7586e1df61d27c2e6e1966e64a8badeb2d0", - "/main-IAPDGBLK.js": "a0e9f74f7dca1e38beb34052364312f976605f64", + "/index.html": "afd7c75e582a524d23f23758526b0fba226eb13b", + "/main-2AJKMG4J.js": "4a2c643383cffae8323c91449d30186533bb1230", "/manifest.webmanifest": "6c2e5a015db86afd19982c24a59eae765c60e468", "/polyfills-FFHMD2TL.js": "f49b49a155bc7d192db62a4c15d0a612b460a667", "/styles-IH7QB2KV.css": "420e493224bf31e7de01bcdf9fd81bb33c95d60c"